Merge "SDN-R add updated featureaggregator"
[ccsdk/features.git] / sdnr / wt / odlux / apps / configurationApp / src / models / yang.ts
1 /**
2  * ============LICENSE_START========================================================================
3  * ONAP : ccsdk feature sdnr wt odlux
4  * =================================================================================================
5  * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6  * =================================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8  * in compliance with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software distributed under the License
13  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14  * or implied. See the License for the specific language governing permissions and limitations under
15  * the License.
16  * ============LICENSE_END==========================================================================
17  */
18
19 import { ViewElement, ViewSpecification } from "./uiModels";
20
21 export type Token = {
22   name: string;
23   value: string;
24   start: number;
25   end: number;
26 }
27
28 export type Statement = {
29   key: string;
30   arg?: string;
31   sub?: Statement[];
32 }
33
34 export type Identity = {
35   id: string,
36   label: string,
37   base?: string,
38   description?: string,
39   reference?: string,
40   children?: Identity[],
41   values?: Identity[],
42 }
43
44 export type Revision = {
45   description?: string,
46   reference?: string
47 };
48
49 export type Module = {
50   name: string;
51   namespace?: string;
52   prefix?: string;
53   identities: { [name: string]: Identity };
54   revisions: { [version: string]: Revision };
55   imports: { [prefix: string]: string };
56   features: { [feature: string]: { description?: string } };
57   typedefs: { [type: string]: ViewElement };
58   augments: { [path: string]: ViewSpecification[] };
59   groupings: { [group: string]: ViewSpecification };
60   views: { [view: string]: ViewSpecification };
61   elements: { [view: string]: ViewElement };
62 }