summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/distribution.ts
blob: b6854c68a26734f764d2bfb052d17b64813c6578 (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
33
34
35
36
37
38
39
40
41
42
43
'use strict';

export class DistributionStatuses {
    public omfComponentID:string;
    public url:string;
    public timestamp:string;
    public status:string;

    constructor() {
    }
}


export class DistributionComponent {
    public omfComponentID:string;
    public url:string;
    public timestamp:string;
    public status:string;

    constructor() {
    }
}

export class Distribution {
    public distributionID:string;
    public timestamp:string;
    public userId:string;
    public deployementStatus:string;
    public distributionComponents:Array<DistributionComponent>;
    public statusCount:any;
    //custom data
    public dateFormat:string;

    constructor() {
    }

    public toJSON = ():any => {
        this.dateFormat = undefined;
        return this;
    };
}