2 * ========================LICENSE_START=================================
5 * Copyright (C) 2019 AT&T Intellectual Property
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
21 // Models of data used by the App Manager.
22 // TS interface names are Java class names plus XM prefix.
24 export interface XMConfigMetadata {
29 export interface XMXappConfig {
30 metadata: XMConfigMetadata;
34 export interface XMAllXappConfig {
35 [position: number]: XMXappConfig;
38 export interface XMConfigValidationError {
43 export interface XMConfigValidationErrors {
44 [position: number]: XMConfigValidationError;
47 export interface XMAppTransport {
52 export interface XMDashboardDeployableXapps {
53 [position: number]: XMAppTransport;
56 export interface XMXappInstance {
61 rxMessages: Array<string>;
62 txMessages: Array<string>;
63 policies: Array<number>;
66 export interface XMXapp {
68 status: string; // actually an enum
70 instances: Array<XMXappInstance>;
73 export interface XMAllDeployedXapps {
74 [postion: number]: XMXapp;
78 * xappName is the only required field
80 export interface XMXappDescriptor {
85 overrideFile?: object;
88 export interface XappControlRow {
90 instance: XMXappInstance;