summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/store/actions/instance-artifacts.actions.ts
blob: d762b171ceca49932aa0de03e6ab2230044a5105 (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
26
27
28
29
30
31
32
/**
 * Created by ob0695
 */
import {ArtifactModel} from "../../../models/artifacts";

export class GetInstanceArtifactsByTypeAction {
    static readonly type = '[INSTANCE_ARTIFACTS] GetInstanceArtifactsByTypeAction';

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

export class CreateInstanceArtifactAction {
    static readonly type = '[INSTANCE_ARTIFACTS] CreateInstanceArtifactAction';

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

export class UpdateInstanceArtifactAction {
    static readonly type = '[INSTANCE_ARTIFACTS] UpdateInstanceArtifactAction';

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

export class DeleteInstanceArtifactAction {
    static readonly type = '[INSTANCE_ARTIFACTS] DeleteInstanceArtifactAction';

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