aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/store/actions/artifacts.action.ts
blob: a00cc3a9ec5a3d95888babbeb0c49000e1aa8ab9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * Created by ob0695
 */
import {ArtifactModel} from "../../../models/artifacts";

export class GetArtifactsByTypeAction {
    static readonly type = '[ARTIFACTS] GetArtifactsByType';

    constructor(public payload: {componentType:string, componentId:string, artifactType: string}) {
    }
}

export class CreateOrUpdateArtifactAction {
    static readonly type = '[ARTIFACTS] CreateOrUpdateArtifactAction';

    constructor(public payload: {componentType:string, componentId:string, artifact:ArtifactModel}) {
    }
}

export class DeleteArtifactAction {
    static readonly type = '[ARTIFACTS] DeleteArtifactAction';

    constructor(public payload: {componentType:string, componentId:string, artifact: ArtifactModel}) {
    }
}