Catalog alignment
[sdc.git] / catalog-ui / src / app / ng2 / store / actions / instance-artifacts.actions.ts
1 /**
2  * Created by ob0695
3  */
4 import {ArtifactModel} from "../../../models/artifacts";
5
6 export class GetInstanceArtifactsByTypeAction {
7     static readonly type = '[INSTANCE_ARTIFACTS] GetInstanceArtifactsByTypeAction';
8
9     constructor(public payload: { componentType: string, componentId: string, artifactType: string, instanceId: string }) {
10     }
11 }
12
13 export class CreateInstanceArtifactAction {
14     static readonly type = '[INSTANCE_ARTIFACTS] CreateInstanceArtifactAction';
15
16     constructor(public payload: { componentType: string, componentId: string, instanceId: string, artifact: ArtifactModel }) {
17     }
18 }
19
20 export class UpdateInstanceArtifactAction {
21     static readonly type = '[INSTANCE_ARTIFACTS] UpdateInstanceArtifactAction';
22
23     constructor(public payload: { componentType: string, componentId: string, instanceId: string, artifact: ArtifactModel }) {
24     }
25 }
26
27 export class DeleteInstanceArtifactAction {
28     static readonly type = '[INSTANCE_ARTIFACTS] DeleteInstanceArtifactAction';
29
30     constructor(public payload: { componentType: string, componentId: string, instanceId: string, artifact: ArtifactModel }) {
31     }
32 }