| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame^] | 1 | /* |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in) |
| 17 | */ |
| 18 | /** |
| 19 | * @file Model For WIM Account Details Information. |
| 20 | */ |
| 21 | |
| 22 | /** Interface for WIMAccountModel */ |
| 23 | export interface WIMAccountModel { |
| 24 | config: {}; |
| 25 | description: string; |
| 26 | name: string; |
| 27 | password: string; |
| 28 | schema_version: string; |
| 29 | user: string; |
| 30 | wim_type: string; |
| 31 | wim_url: string; |
| 32 | _admin: ADMIN; |
| 33 | _id: string; |
| 34 | } |
| 35 | |
| 36 | /** Interface for _ADMIN */ |
| 37 | interface ADMIN { |
| 38 | created: number; |
| 39 | current_operation: boolean; |
| 40 | deployed: Deployed; |
| 41 | 'detailed-status': string; |
| 42 | modified: number; |
| 43 | operationalState: string; |
| 44 | operations: Operation[]; |
| 45 | projects_read: string[]; |
| 46 | projects_write: string[]; |
| 47 | } |
| 48 | |
| 49 | /** Interface for Deployed */ |
| 50 | interface Deployed { |
| 51 | 'RO-account': string; |
| 52 | RO: string; |
| 53 | } |
| 54 | |
| 55 | /** Interface for Operations */ |
| 56 | interface Operation { |
| 57 | 'detailed-status': string; |
| 58 | lcmOperationType: string; |
| 59 | operationParams: string; |
| 60 | operationState: string; |
| 61 | startTime: number; |
| 62 | statusEnteredTime: number; |
| 63 | worker: string; |
| 64 | } |
| 65 | |
| 66 | /** Interface for WIMAccountData */ |
| 67 | export interface WIMAccountData { |
| 68 | name?: string; |
| 69 | identifier: string; |
| 70 | 'type': string; |
| 71 | operationalState: string; |
| 72 | description: string; |
| 73 | page?: string; |
| 74 | } |
| 75 | |
| 76 | /** Interface for WIM Row Values */ |
| 77 | export interface WIMValue { |
| 78 | name: string; |
| 79 | identifier: string; |
| 80 | } |