enum.ts
5.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
export default {
aggregateData: {
min: 'min',
max: 'max',
avg: 'avg',
sum: 'sum',
count: 'count',
none: 'none',
},
orderBy: {
DESC: 'Descending order',
ASC: 'Ascending order',
},
timeUnit: {
SECOND: ' Second',
MINUTE: ' Minute',
HOUR: ' Hour',
DAY: ' Day',
},
week: {
MON: 'Monday',
TUES: 'Tuesday',
WED: 'Wednesday',
THUR: 'Thursday',
FRI: 'Friday',
SAT: 'Saturday',
SUN: 'Sunday',
},
periodType: {
MONTH: 'Monthly',
WEEK: 'Weekly',
DAY: 'Daily',
},
tcpProtocolType: {
CUSTOM: 'Custom',
MODBUS_RTU: 'MODBUS_RTU',
},
taskType: {
MODBUS_RTU: 'MODBUS_RTU polling',
CUSTOM: 'Custom data distribution',
},
executeTimeType: {
CUSTOM: 'Custom',
POLL: 'Repeated interval time',
},
taskTarget: {
DEVICES: '@:business.deviceText',
PRODUCTS: '@:business.productText',
},
taskStatus: {
DEACTIVATE: '@:common.deactivatedText',
NORMAL: '@:common.enabledText',
},
packagesCategory: {
TEXT: 'Text Component',
INSTRUMENT: 'Instrument Component',
CONTROL: 'Control Component',
MAP: 'Map Component',
FLOWMETER: 'Flowmeter',
STATISTICS: 'Statistics',
ALARM: 'Alarm',
OTHER: 'Other',
},
alarmLevel: {
CRITICAL: 'Critical',
MAJOR: 'Major',
MINOR: 'Minor',
WARNING: 'Warning',
INDETERMINATE: 'Indeterminate',
},
alarmStaus: {
CLEARED_UNACK: 'Cleared unack',
CLEARED_ACK: 'Cleared ack',
ACTIVE_ACK: 'Active ack',
ACTIVE_UNACK: 'Active unack',
},
deviceType: {
DIRECT_CONNECTION: 'Direct connection',
GATEWAY: 'Gateway',
SENSOR: 'Sensor',
},
deviceStatus: {
ALL: 'Whole',
INACTIVE: 'Inactive',
ONLINE: 'Online',
OFFLINE: 'Offline',
},
commandStatus: {
QUEUED: 'Queue',
SENT: 'Sent',
DELIVERED: 'Delivered',
SUCCESSFUL: 'Successful',
TIMEOUT: 'Timeout',
EXPIRED: 'Expired',
FAILED: 'Failed',
DELETED: 'Deleted',
},
callType: {
ASYNC: 'Async',
SYNC: 'Sync',
},
commandWay: {
oneway: 'Oneway',
twoway: 'Twoway',
},
commandType: {
service: 'Service',
custom: 'Custom',
},
videoAccessMode: {
ManuallyEnter: 'Manually enter',
Streaming: 'Streaming',
GBT28181: 'GBT28181',
},
codeStream: {
MASTER: 'Main code stream',
CHILD: 'Substream',
THIRD: 'Third stream',
},
articulation: {
HIGH_DEFINITION: 'High definition',
SMOOTH: 'Smooth',
},
notifyType: {
NOTICE: 'notice',
MEETING: 'meeting',
OTHER: 'other',
},
readStatus: {
Unread: 'unread',
Read: 'read',
Other: 'other',
},
actionType: {
INPUT_STATUS_R_02: 'Discrete Input (Read-only, 0x02)',
COIL_STATUS_R_01: 'Coil Status (Read-only, 0x01)',
COIL_STATUS_RW_01_05: 'Coil Status (Read/Write, read with 0x01, write with 0x05)',
COIL_STATUS_RW_01_0F: 'Coil Status (Read/Write, read with 0x01, write with 0x0F)',
COIL_STATUS_W_05: 'Coil Status (Write-only, 0x05)',
COIL_STATUS_W_0F: 'Coil Status (Write-only, 0x0F)',
HOLDING_REGISTER_R_03: 'Holding Register (Read-only, 0x03)',
HOLDING_REGISTER_RW_03_06: 'Holding Register (Read/Write, read with 0x03, write with 0x06)',
HOLDING_REGISTER_RW_03_10: 'Holding Register (Read/Write, read with 0x03, write with 0x10)',
HOLDING_REGISTER_W_06: 'Holding Register (Write-only, 0x06)',
HOLDING_REGISTER_W_10: 'Holding Register (Write-only, 0x10)',
INPUT_REGISTER_R_04: 'Input Register (Read-only, 0x04)',
},
originalDataType: {
INT16_AB: '16-bit Signed Integer AB',
INT16_BA: '16-bit Signed Integer BA',
UINT16_AB: '16-bit Unsigned Integer AB',
UINT16_BA: '16-bit Unsigned Integer BA',
INT32_AB_CD: '32-bit Signed Integer AB_CD',
INT32_CD_AB: '32-bit Signed Integer CD_AB',
INT32_BA_DC: '32-bit Signed Integer BA_DC',
INT32_DC_BA: '32-bit Signed Integer DC_BA',
UINT32_AB_CD: '32-bit Unsigned Integer AB_CD',
UINT32_CD_AB: '32-bit Unsigned Integer CD_AB',
UINT32_BA_DC: '32-bit Unsigned Integer BA_DC',
UINT32_DC_BA: '32-bit Unsigned Integer DC_BA',
FLOAT_AB_CD: 'Single-Precision Floating Point AB_CD',
FLOAT_CD_AB: 'Single-Precision Floating Point CD_AB',
FLOAT_BA_DC: 'Single-Precision Floating Point BA_DC',
FLOAT_DC_BA: 'Single-Precision Floating Point DC_BA',
DOUBLE: 'Double-Precision Floating Point',
STRING: 'String',
BOOLEAN: 'Boolean',
BITS: 'Bits',
},
userStatus: {
NORMAL: 'Normal',
DISABLED: 'Disabled',
EXPIRED: 'Expired',
},
credentials: {
ACCESS_TOKEN: 'Access token',
X509: 'X.509',
MQTT_CLIENT_ID: 'MQTT client ID',
MQTT_USER_NAME: 'MQTT user name',
MQTT_PASSWORD: 'MQTT password',
},
direction: {
FROM: 'From',
TO: 'To',
},
entityType: {
DEVICE: 'Device',
ASSET: 'Asset',
ENTITY_VIEW: 'Entity view',
TENANT: 'Tenant',
CUSTOMER: 'Customer',
USER: 'User',
DASHBOARD: 'Dashboard',
EDGE: 'Edge',
},
scope: {
SERVER_SCOPE: 'Server scope',
CLIENT_SCOPE: 'Client scope',
SHARED_SCOPE: 'Shared scope',
},
};