Fix Bug 2121: NG-UI uses unmaintained Chokidar version
[osm/NG-UI.git] / src / models / CommonModel.ts
index 2d1c9c3..ed35029 100644 (file)
  */
 import { HttpHeaders } from '@angular/common/http';
 import { NSD } from 'NSInstanceModel';
+import { EXECUTEDACTIONS } from 'OperationalModel';
 import { VNFD } from 'VNFDModel';
 
 /**
  * @file  Model for Commonly used information.
  */
-// tslint:disable: completed-docs
+/* eslint-disable */
 /**
  * handle count @enum
  */
@@ -41,7 +42,9 @@ export enum CONSTANTNUMBER {
     oneMB = 1048576,
     paginationDefaultValue = 10,
     splitLongitude = 1,
-    splitLatitude = 2
+    splitLatitude = 2,
+    timeOutDefaultSeconds = 5,
+    oneGB = 1024
 }
 /**
  * handle count @enum
@@ -68,7 +71,9 @@ export enum CONFIGCONSTANT {
     sdnOperationalStateThirdStep = 'ERROR',
     k8OperationalStateFirstStep = 'PROCESSING',
     k8OperationalStateStateSecondStep = 'ENABLED',
-    k8OperationalStateThirdStep = 'ERROR'
+    k8OperationalStateThirdStep = 'ERROR',
+    done = 'done',
+    close = 'close'
 }
 /** Interface for Post options */
 export interface POSTAPIRESOURCE {
@@ -115,6 +120,9 @@ export interface URLPARAMS {
     nsID?: string;
     nsd?: NSD;
     data?: VNFD[];
+    configs?: object;
+    actions?: object;
+    executedActions?: EXECUTEDACTIONS[];
 }
 /** Handle the Delete params */
 export interface DELETEPARAMS {
@@ -190,7 +198,6 @@ export interface BREADCRUMBITEM {
 }
 /** Interface For the Pagination pager in ng-smarttable */
 export interface SMARTTABLECLASS {
-    // tslint:disable-next-line: no-reserved-keywords
     class: string;
 }
 /** Constants of the VIM Types */
@@ -200,7 +207,8 @@ export const VIM_TYPES: TYPESECTION[] = [
     { value: 'vmware', title: 'VMware vCD' },
     { value: 'openvim', title: 'OpenVIM' },
     { value: 'opennebula', title: 'OpenNebula' },
-    { value: 'azure', title: 'Azure' }
+    { value: 'azure', title: 'Azure' },
+    { value: 'dummy', title: 'Dummy' }
 ];
 /** Constants of the SDN Types */
 export const SDN_TYPES: TYPESECTION[] = [
@@ -250,7 +258,7 @@ export const TYPEOPENSTACK: {} = {
     user_domain_id: '',
     security_groups: '',
     user_domain_name: '',
-    availabilityZone: '',
+    availability_zone: '',
     keypair: '',
     region_name: '',
     dataplane_physical_net: '',
@@ -327,4 +335,10 @@ export interface DOMAINS {
 export interface LOGINPARAMS {
     username?: string;
     password?: string;
+    old_password?: string;
+}
+/** Interface for the LABELVALUE */
+export interface LABELVALUE {
+    label: string;
+    value: string;
 }