Add multi-layer RIC instance selector
[portal/ric-dashboard.git] / dashboard / webapp-frontend / src / app / interfaces / dashboard.types.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property
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 // Models of data used by Dashboard admin services
22
23 export interface DashboardSuccessTransport {
24   status: number;
25   data: string;
26 }
27
28 export interface EcompRoleFunction {
29   name: string;
30   code: string;
31   type: string;
32   action: string;
33 }
34
35 export interface EcompRole {
36   id: number;
37   name: string;
38   [position: number]: EcompRoleFunction;
39 }
40
41 export interface EcompUser {
42   orgId?: number;
43   managerId?: string;
44   firstName?: string;
45   middleInitial?: string;
46   lastName?: string;
47   phone?: string;
48   email?: string;
49   hrid?: string;
50   orgUserId?: string;
51   orgCode?: string;
52   orgManagerUserId?: string;
53   jobTitle?: string;
54   loginId: string;
55   active: boolean;
56   [position: number]: EcompRole;
57 }
58
59 export interface RicInstance {
60   key: string;
61   name: string;
62 }
63
64 export interface RicRegion {
65   name: string;
66   instances: Array<RicInstance>;
67 }