blob: 2cfd38482072664f31b37886723946d96dc55ff6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import {Action, ActionCreator} from "redux";
import {ServiceInstance} from "../../../models/serviceInstance";
export enum UseTemplateActions {
CREATE_SERVICE_INSTANCE_FROM_TEMPLATE = 'CREATE_SERVICE_INSTANCE_FROM_TEMPLATE',
}
export interface CreateServiceInstanceFromTemplate extends Action {
serviceInstantiationTemplate?: ServiceInstance;
serviceModelId?: string;
}
export const createServiceInstanceFromTemplate: ActionCreator<CreateServiceInstanceFromTemplate> = (serviceInstantiationTemplate, serviceModelId) => ({
type: UseTemplateActions.CREATE_SERVICE_INSTANCE_FROM_TEMPLATE,
serviceInstantiationTemplate: serviceInstantiationTemplate,
serviceModelId: serviceModelId
});
|