NG-UI Added support for the OSM Repository
* Added a list to show the repo added.
* Form to add the repo path with the type.
Change-Id: I77ddbf6ef4c7f02abd2e5bc455b3a21e04e5b20d
Signed-off-by: Barath Kumar R <barath.r@tataelxsi.co.in>
diff --git a/src/models/OsmRepoModel.ts b/src/models/OsmRepoModel.ts
new file mode 100644
index 0000000..2f2114b
--- /dev/null
+++ b/src/models/OsmRepoModel.ts
@@ -0,0 +1,46 @@
+/*
+ Copyright 2020 TATA ELXSI
+
+ Licensed under the Apache License, Version 2.0 (the 'License');
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
+ */
+/**
+ * @file Model for OSM Repo related information.
+ */
+
+/** Interface for OSM Repo Details */
+export interface OSMRepoDetails {
+ _admin: Admin;
+ _id: string;
+ name: string;
+ url: string;
+ 'type': string;
+ project_id?: string;
+ description?: string;
+}
+/** Interface for Admin */
+interface Admin {
+ created: number;
+ modified: number;
+}
+/** Interface for OSM Repo data in smarttable */
+export interface OSMRepoData {
+ name: string;
+ identifier: string;
+ url: string;
+ 'type': string;
+ modified: string;
+ created: string;
+ description: string;
+}