NG-UI Added support for the OSM Repository
[osm/NG-UI.git] / src / models / OsmRepoModel.ts
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 OSM Repo related information.
20  */
21
22 /** Interface for OSM Repo Details */
23 export interface OSMRepoDetails {
24     _admin: Admin;
25     _id: string;
26     name: string;
27     url: string;
28     'type': string;
29     project_id?: string;
30     description?: string;
31 }
32 /** Interface for Admin */
33 interface Admin {
34     created: number;
35     modified: number;
36 }
37 /** Interface for OSM Repo data in smarttable */
38 export interface OSMRepoData {
39     name: string;
40     identifier: string;
41     url: string;
42     'type': string;
43     modified: string;
44     created: string;
45     description: string;
46 }