First version of NonRT RIC Controlpanel
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / interfaces / controlpanel.types.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * O-RAN-SC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property
6  * Modifications Copyright (C) 2020 Nordix Foundation
7  * %%
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  * ========================LICENSE_END===================================
20  */
21
22 // Models of data used by Controlpanel admin services
23
24 export interface ControlpanelSuccessTransport {
25   status: number;
26   data: string;
27 }
28
29 export interface EcompRoleFunction {
30   name: string;
31   code: string;
32   type: string;
33   action: string;
34 }
35
36 export interface EcompRole {
37   id: number;
38   name: string;
39   [position: number]: EcompRoleFunction;
40 }
41
42 export interface EcompUser {
43   orgId?: number;
44   managerId?: string;
45   firstName?: string;
46   middleInitial?: string;
47   lastName?: string;
48   phone?: string;
49   email?: string;
50   hrid?: string;
51   orgUserId?: string;
52   orgCode?: string;
53   orgManagerUserId?: string;
54   jobTitle?: string;
55   loginId: string;
56   active: boolean;
57   [position: number]: EcompRole;
58 }