datasource.ts
5.74 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
export enum ActTypeEnum {
/**
* @description 闪烁
*/
FLASH = 'FLASH',
/**
* @description 显示/隐藏
*/
DISPLAY = 'DISPLAY',
/**
* @description 旋转
*/
ROTATE = 'ROTATE',
/**
* @description 水流动效
*/
DYNAMIC = 'DYNAMIC',
/**
* @description 状态设置
*/
STATUS_SETTING = 'STATUS_SETTING',
/**
* @description 设置变量图片
*/
VARIABLE_IMAGE = 'VARIABLE_IMAGE',
}
export enum ActTypeNameEnum {
/**
* @description 闪烁
*/
FLASH = '闪烁',
/**
* @description 显示/隐藏
*/
DISPLAY = '显示/隐藏',
/**
* @description 旋转
*/
ROTATE = '旋转',
/**
* @description 水流动效
*/
DYNAMIC = '水流动效',
/**
* @description 状态设置
*/
STATUS_SETTING = '状态设置',
/**
* @description 设置变量图片
*/
VARIABLE_IMAGE = '变量图片',
}
export enum DeviceTypeEnum {
/**
* @description 网关设备
*/
GATEWAY = 'GATEWAY',
/**
* @description 直连设备
*/
DIRECT_CONNECTION = 'DIRECT_CONNECTION',
/**
* @description 网关子设备
*/
SENSOR = 'SENSOR',
}
export enum DeviceTypeNameEnum {
/**
* @description 网关设备
*/
GATEWAY = '网关设备',
/**
* @description 直连设备
*/
DIRECT_CONNECTION = '直连设备',
/**
* @description 网关子设备
*/
SENSOR = '网关子设备',
}
export enum TransportTypeEnum {
MQTT = 'MQTT',
TCP = 'TCP',
}
export enum CodeTypeEnum {
CUSTOM = 'CUSTOM',
MODBUS_RTU = 'MODBUS_RTU',
}
export enum EventTypeEnum {
/**
* @description 鼠标抬起
*/
UP = 'UP',
/**
* @description 鼠标按下
*/
DOWN = 'DOWN',
/**
* @description 单击
*/
SINGLE = 'SINGLE',
/**
* @description 双击
*/
DOUBLE = 'DOUBLE',
/**
* @description 操作密码
*/
OPERATION_PASSWORD = 'OPERATION_PASSWORD',
}
export enum EventTypeNameEnum {
/**
* @description 鼠标抬起
*/
UP = '抬起',
/**
* @description 鼠标按下
*/
DOWN = '按下',
/**
* @description 单击
*/
SINGLE = '单击',
/**
* @description 双击
*/
DOUBLE = '双击',
/**
* @description 操作密码
*/
OPERATION_PASSWORD = '操作密码',
}
export enum DataSourceTypeEnum {
/**
* @description 数据源
*/
DATASOURCE = 'dataSource',
/**
* @description 数据交互
*/
EVENT = 'event',
/**
* @description 数据动效
*/
ACT = 'act',
}
export enum DataSourceTypeNameEnum {
/**
* @description 数据源
*/
DATASOURCE = '数据源',
/**
* @description 数据交互
*/
EVENT = '数据交互',
/**
* @description 数据动效
*/
ACT = '数据动效',
}
export enum ActRangListItemTypeEnum {
SHOW = 'SHOW',
HIDDEN = 'HIDDEN',
RUN = 'RUN',
STOP = 'STOP',
OPEN = 'OPEN',
CLOSE = 'CLOSE',
}
export enum ActRangListItemTypeNameEnum {
SHOW = '显示',
HIDDEN = '隐藏',
RUN = '流动',
STOP = '停止',
OPEN = '开启',
CLOSE = '关闭',
}
export enum EventActionTypeEnum {
OPEN_LINK = 'OPEN_LINK',
OPEN_PAGE = 'OPEN_PAGE',
ASSIGN_VARIABLE = 'ASSIGN_VARIABLE',
PARAMS_SETTING = 'PARAMS_SETTING',
ATTRIBUTE_DELIVERY = 'ATTRIBUTE_DELIVERY',
}
export enum EventActionTypeNameEnum {
OPEN_LINK = '打开链接',
OPEN_PAGE = '打开页面',
ASSIGN_VARIABLE = '变量赋值',
PARAMS_SETTING = '参数设置',
ATTRIBUTE_DELIVERY = '属性下发',
}
export enum ContentDataFieldsEnum {
DEVICE_TYPE = 'deviceType',
DEVICE_PROFILE_ID = 'deviceProfileId',
DEVICE_PROFILE_TEMPLATE_ID = 'deviceProfileTemplateId', // 模板产品id
DEVICE_ID = 'deviceId',
ORG_ID = 'orgId',
ATTR = 'attr',
VIDEO_FILTER = 'videoFilter',
VIDEO_ID = 'id',
VIDEO_URL = 'videoUrl',
ACCESS_MODE = 'accessMode',
VIDEO_FLAG = 'videoComponentFlag',
CODE_TYPE = 'codeType',
}
export enum ContentDataFieldsNameEnum {
DEVICE_TYPE = '设备类型',
DEVICE_PROFILE_ID = '产品',
ORG_ID = '组织',
DEVICE_ID = '设备',
ATTR = '属性',
VIDEO_ID = '视频流',
ACCESS_MODE = 'ACCESS_MODE',
VIDEO_URL = '视频地址',
}
export enum VariableImageSourceEnum {
LOCAL = 'LOCAL',
GALLERY = 'GALLERY',
}
export enum VariableImageSourceNameEnum {
LOCAL = '本地图片',
GALLERY = '图库图形',
}
export enum CommandDeliveryWayEnum {
CUSTOM = 'CUSTOM',
SERVICE = 'SERVICE',
MODBUS = 'MODBUS',
}
export enum CommandDeliveryWayNameEnum {
CUSTOM = '自定义命令',
SERVICE = '服务调用',
MODBUS = 'MODBUS',
}
export enum FunctionTypeEnum {
PROPERTIES = 'properties',
EVENTS = 'events',
SERVICE = 'services',
}
export enum AssessMode {
READ = 'r',
WRITE = 'w',
}
export enum CommandTypeEnum {
SERVICE = 1,
API = 'API',
}
/**
* 新增参数 动态显示表单
*/
export enum DataTypeEnum {
NUMBER_INT = 'INT',
NUMBER_DOUBLE = 'DOUBLE',
STRING = 'TEXT',
STRUCT = 'STRUCT',
BOOL = 'BOOL',
ENUM = 'ENUM',
}
export enum AggregateTypeEnum {
MIN = 'MIN',
MAX = 'MAX',
AVG = 'AVG',
SUM = 'SUM',
COUNT = 'COUNT',
NONE = 'NONE',
}
export enum AggregateTypeNameEnum {
MIN = '最小值',
MAX = '最大值',
AVG = '平均值',
SUM = '求和',
COUNT = '计数',
NONE = '空',
}
export enum SocketSubscriberEnum {
TS_SUB_CMDS = 'tsSubCmds',
HISTORY_CMDS = 'historyCmds',
}
export enum AlarmStatusEnum {
CLEARED_UN_ACK = 'CLEARED_UNACK',
ACTIVE_UN_ACK = 'ACTIVE_UNACK',
CLEARED_ACK = 'CLEARED_ACK',
ACTIVE_ACK = 'ACTIVE_ACK',
}
export enum AlarmStatusColorEnum {
CLEARED_UNACK = 'red',
ACTIVE_UNACK = 'orange',
CLEARED_ACK = 'cyan',
ACTIVE_ACK = 'green',
}
export enum AlarmStatusNameEnum {
CLEARED_UNACK = '清除未确认',
ACTIVE_UNACK = '激活未确认',
CLEARED_ACK = '清除已确认',
ACTIVE_ACK = '激活已确认',
}