Catalog alignment
[sdc.git] / catalog-ui / src / app / ng2 / store / actions / artifacts.action.ts
1 /**
2  * Created by ob0695
3  */
4 import {ArtifactModel} from "../../../models/artifacts";
5
6 export class GetArtifactsByTypeAction {
7     static readonly type = '[ARTIFACTS] GetArtifactsByType';
8
9     constructor(public payload: {componentType:string, componentId:string, artifactType: string}) {
10     }
11 }
12
13 export class CreateOrUpdateArtifactAction {
14     static readonly type = '[ARTIFACTS] CreateOrUpdateArtifactAction';
15
16     constructor(public payload: {componentType:string, componentId:string, artifact:ArtifactModel}) {
17     }
18 }
19
20 export class DeleteArtifactAction {
21     static readonly type = '[ARTIFACTS] DeleteArtifactAction';
22
23     constructor(public payload: {componentType:string, componentId:string, artifact: ArtifactModel}) {
24     }
25 }