Fix bugs in attribute outputs page
[sdc.git] / catalog-ui / src / app / models / distribution.ts
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 'use strict';
22
23 export class DistributionStatuses {
24     public omfComponentID:string;
25     public url:string;
26     public timestamp:string;
27     public status:string;
28
29     constructor() {
30     }
31 }
32
33
34 export class DistributionComponent {
35     public omfComponentID:string;
36     public url:string;
37     public timestamp:string;
38     public status:string;
39
40     constructor() {
41     }
42 }
43
44 export class Distribution {
45     public distributionID:string;
46     public timestamp:string;
47     public userId:string;
48     public deployementStatus:string;
49     public distributionComponents:Array<DistributionComponent>;
50     public statusCount:any;
51     //custom data
52     public dateFormat:string;
53
54     constructor() {
55     }
56
57     public toJSON = ():any => {
58         this.dateFormat = undefined;
59         return this;
60     };
61 }
62
63