From 4dccbb68399da2d46943b8d613585afb49aa5455 Mon Sep 17 00:00:00 2001
From: sean.zhou <sean.zhou@dji.com>
Date: Fri, 22 Jul 2022 20:48:54 +0800
Subject: [PATCH] V1.1.0 for dock

---
 src/types/enums.ts |  110 +++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 99 insertions(+), 11 deletions(-)

diff --git a/src/types/enums.ts b/src/types/enums.ts
index 15119db..999f1e1 100644
--- a/src/types/enums.ts
+++ b/src/types/enums.ts
@@ -1,15 +1,25 @@
 export enum ERouterName {
-    Element = 'element',
-    Project = 'project',
-    Tsa = 'tsa',
-    Layer = 'layer',
-    Media = 'media',
-    Wayline = 'wayline',
-    Livestream = 'livestream',
-    Pilot = 'pilot-login',
-    PilotHome = 'pilot-home',
-    PilotMedia = 'pilot-media',
-    PilotLiveshare = 'pilot-liveshare'
+    ELEMENT = 'element',
+    PROJECT = 'project',
+    HOME = 'home',
+    TSA = 'tsa',
+    LAYER = 'layer',
+    MEDIA = 'media',
+    WAYLINE = 'wayline',
+    LIVESTREAM = 'livestream',
+    LIVING = 'living',
+    WORKSPACE = 'workspace',
+    MEMBERS = 'members',
+    DEVICES = 'devices',
+    TASK = 'task',
+    CREATE_PLAN = 'create-plan',
+    SELECT_PLAN = 'select-plan',
+
+    PILOT = 'pilot-login',
+    PILOT_HOME = 'pilot-home',
+    PILOT_MEDIA = 'pilot-media',
+    PILOT_LIVESHARE = 'pilot-liveshare',
+    PILOT_BIND = 'pilot-bind'
 }
 
 export enum EStorageKey {
@@ -17,3 +27,81 @@
     TEST_TOOLS_POSITION_STORAGE_KEY = 'DJI_CREATE_VITE_H5_APP:test_tools_position',
     SESSION_ID = 'DJI_CREATE_VITE_H5_APP:sess'
 }
+
+export enum EStatusValue {
+    CONNECTED = 'Connected',
+    DISCONNECT = 'Disconnect',
+    LIVING = 'Living'
+}
+
+export enum ELiveStatusValue {
+    DISCONNECT,
+    CONNECTED,
+    LIVING
+}
+
+export enum EComponentName {
+    Thing = 'thing',
+    Liveshare = 'liveshare',
+    Api = 'api',
+    Ws = 'ws',
+    Map = 'map',
+    Tsa = 'tsa',
+    Media = 'media',
+    Mission = 'mission'
+}
+
+export enum ELocalStorageKey {
+    Username = 'username',
+    WorkspaceId = 'workspace_id',
+    Token = 'x-auth-token',
+    PlatformName = 'platform_name',
+    WorkspaceName = 'workspace_name',
+    WorkspaceDesc = 'workspace_desc',
+    Flag = 'flag',
+    UserId = 'user_id',
+    Device = 'device',
+    GatewayOnline = 'gateway_online',
+}
+
+export enum EPhotoType {
+    Original = 0,
+    Preview = 1,
+    Unknown = -1
+}
+
+export enum EDownloadOwner {
+    Mine = 0,
+    Others = 1,
+    Unknown = -1
+}
+
+export enum EUserType {
+    Web = 1,
+    Pilot = 2,
+}
+
+export enum EBizCode {
+    GatewayOsd = 'gateway_osd',
+    DeviceOsd = 'device_osd',
+    DockOsd = 'dock_osd',
+    MapElementCreate = 'map_element_create',
+    MapElementUpdate = 'map_element_update',
+    MapElementDelete = 'map_element_delete',
+    DeviceOnline = 'device_online',
+    DeviceOffline = 'device_offline',
+    FlightTaskProgress = 'flighttask_progress',
+    DeviceHms = 'device_hms',
+}
+
+export enum EDeviceTypeName {
+    Aircraft = 'sub-device',
+    Gateway = 'gateway',
+    Dock = 'dock',
+}
+
+export enum EHmsLevel {
+    NOTICE,
+    CAUTION,
+    WARN,
+}
\ No newline at end of file

--
Gitblit v1.9.3