losant_rest 1.8.7 → 1.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/docs/_schemas.md +38618 -21196
  3. data/docs/application.md +76 -0
  4. data/docs/auth.md +0 -36
  5. data/docs/dashboards.md +1 -1
  6. data/docs/dataTableRows.md +2 -2
  7. data/docs/device.md +1 -0
  8. data/docs/events.md +81 -0
  9. data/docs/file.md +43 -0
  10. data/docs/me.md +50 -13
  11. data/lib/losant_rest.rb +0 -4
  12. data/lib/losant_rest/application.rb +90 -0
  13. data/lib/losant_rest/application_api_token.rb +2 -0
  14. data/lib/losant_rest/application_api_tokens.rb +2 -0
  15. data/lib/losant_rest/application_certificate.rb +2 -0
  16. data/lib/losant_rest/application_certificate_authorities.rb +2 -0
  17. data/lib/losant_rest/application_certificate_authority.rb +2 -0
  18. data/lib/losant_rest/application_certificates.rb +2 -0
  19. data/lib/losant_rest/application_key.rb +2 -0
  20. data/lib/losant_rest/application_keys.rb +2 -0
  21. data/lib/losant_rest/applications.rb +2 -0
  22. data/lib/losant_rest/audit_log.rb +2 -0
  23. data/lib/losant_rest/audit_logs.rb +2 -0
  24. data/lib/losant_rest/auth.rb +2 -42
  25. data/lib/losant_rest/client.rb +2 -18
  26. data/lib/losant_rest/dashboard.rb +2 -0
  27. data/lib/losant_rest/dashboards.rb +3 -1
  28. data/lib/losant_rest/data.rb +2 -0
  29. data/lib/losant_rest/data_table.rb +2 -0
  30. data/lib/losant_rest/data_table_row.rb +2 -0
  31. data/lib/losant_rest/data_table_rows.rb +4 -2
  32. data/lib/losant_rest/data_tables.rb +2 -0
  33. data/lib/losant_rest/device.rb +4 -0
  34. data/lib/losant_rest/device_recipe.rb +2 -0
  35. data/lib/losant_rest/device_recipes.rb +2 -0
  36. data/lib/losant_rest/devices.rb +2 -0
  37. data/lib/losant_rest/edge_deployments.rb +2 -0
  38. data/lib/losant_rest/event.rb +2 -0
  39. data/lib/losant_rest/events.rb +103 -0
  40. data/lib/losant_rest/experience.rb +2 -0
  41. data/lib/losant_rest/experience_domain.rb +2 -0
  42. data/lib/losant_rest/experience_domains.rb +2 -0
  43. data/lib/losant_rest/experience_endpoint.rb +2 -0
  44. data/lib/losant_rest/experience_endpoints.rb +2 -0
  45. data/lib/losant_rest/experience_group.rb +2 -0
  46. data/lib/losant_rest/experience_groups.rb +2 -0
  47. data/lib/losant_rest/experience_slug.rb +2 -0
  48. data/lib/losant_rest/experience_slugs.rb +2 -0
  49. data/lib/losant_rest/experience_user.rb +2 -0
  50. data/lib/losant_rest/experience_users.rb +2 -0
  51. data/lib/losant_rest/experience_version.rb +2 -0
  52. data/lib/losant_rest/experience_versions.rb +2 -0
  53. data/lib/losant_rest/experience_view.rb +2 -0
  54. data/lib/losant_rest/experience_views.rb +2 -0
  55. data/lib/losant_rest/file.rb +2 -0
  56. data/lib/losant_rest/files.rb +2 -0
  57. data/lib/losant_rest/flow.rb +2 -0
  58. data/lib/losant_rest/flow_version.rb +2 -0
  59. data/lib/losant_rest/flow_versions.rb +2 -0
  60. data/lib/losant_rest/flows.rb +2 -0
  61. data/lib/losant_rest/integration.rb +2 -0
  62. data/lib/losant_rest/integrations.rb +2 -0
  63. data/lib/losant_rest/me.rb +57 -13
  64. data/lib/losant_rest/notebook.rb +2 -0
  65. data/lib/losant_rest/notebooks.rb +2 -0
  66. data/lib/losant_rest/org.rb +2 -0
  67. data/lib/losant_rest/org_invites.rb +2 -0
  68. data/lib/losant_rest/orgs.rb +2 -0
  69. data/lib/losant_rest/version.rb +1 -1
  70. data/lib/losant_rest/webhook.rb +2 -0
  71. data/lib/losant_rest/webhooks.rb +2 -0
  72. data/schemas/advancedEventQuery.json +817 -0
  73. data/schemas/{dataTableQuery.json → advancedQuery.json} +5 -4
  74. data/schemas/apiTokens.json +4 -1
  75. data/schemas/application.json +30 -1
  76. data/schemas/applicationApiTokenPost.json +5 -0
  77. data/schemas/applicationCertificate.json +29 -1
  78. data/schemas/applicationCertificateAuthorities.json +36 -3
  79. data/schemas/applicationCertificateAuthority.json +32 -2
  80. data/schemas/applicationCertificateAuthorityPatch.json +3 -1
  81. data/schemas/applicationCertificateAuthorityPost.json +3 -1
  82. data/schemas/applicationCertificatePatch.json +3 -1
  83. data/schemas/applicationCertificatePost.json +3 -1
  84. data/schemas/applicationCertificates.json +33 -2
  85. data/schemas/applicationKeys.json +4 -1
  86. data/schemas/applicationPatch.json +28 -0
  87. data/schemas/applicationPost.json +28 -0
  88. data/schemas/applications.json +34 -2
  89. data/schemas/auditLog.json +0 -3
  90. data/schemas/auditLogFilter.json +0 -3
  91. data/schemas/auditLogs.json +4 -4
  92. data/schemas/authedDevice.json +7 -0
  93. data/schemas/dashboard.json +3970 -72
  94. data/schemas/dashboardPatch.json +3969 -72
  95. data/schemas/dashboardPost.json +3969 -72
  96. data/schemas/dashboardSendReport.json +4 -0
  97. data/schemas/dashboardUpdateEvents.json +46 -0
  98. data/schemas/dashboards.json +3974 -73
  99. data/schemas/dataTableRows.json +4 -1
  100. data/schemas/dataTableRowsExport.json +11 -7
  101. data/schemas/dataTables.json +4 -1
  102. data/schemas/deviceRecipes.json +4 -1
  103. data/schemas/devices.json +4 -1
  104. data/schemas/event.json +19 -2
  105. data/schemas/eventPost.json +0 -1
  106. data/schemas/eventTagsSummary.json +28 -0
  107. data/schemas/events.json +841 -3
  108. data/schemas/eventsDeleted.json +9 -0
  109. data/schemas/eventsExport.json +830 -0
  110. data/schemas/experienceDomain.json +6 -2
  111. data/schemas/experienceDomainPatch.json +14 -10
  112. data/schemas/experienceDomainPost.json +8 -4
  113. data/schemas/experienceDomains.json +6 -2
  114. data/schemas/experienceEndpoints.json +4 -1
  115. data/schemas/experienceGroup.json +2 -2
  116. data/schemas/experienceGroupPatch.json +2 -2
  117. data/schemas/experienceGroupPost.json +2 -2
  118. data/schemas/experienceGroups.json +6 -3
  119. data/schemas/experienceSlugPatch.json +2 -2
  120. data/schemas/experienceSlugPost.json +2 -2
  121. data/schemas/experienceUsers.json +4 -1
  122. data/schemas/experienceViews.json +4 -1
  123. data/schemas/files.json +4 -1
  124. data/schemas/flow.json +4 -0
  125. data/schemas/flowPatch.json +6 -2
  126. data/schemas/flowPost.json +4 -0
  127. data/schemas/flowVersion.json +8 -0
  128. data/schemas/flowVersionPost.json +4 -0
  129. data/schemas/flowVersions.json +12 -1
  130. data/schemas/flows.json +8 -1
  131. data/schemas/flowsImportPost.json +10 -2
  132. data/schemas/flowsImportResult.json +12 -0
  133. data/schemas/githubLogin.json +6 -15
  134. data/schemas/integrations.json +4 -1
  135. data/schemas/notebooks.json +4 -1
  136. data/schemas/org.json +2 -4
  137. data/schemas/orgPatch.json +2 -1
  138. data/schemas/orgPost.json +2 -1
  139. data/schemas/orgs.json +6 -5
  140. data/schemas/passwordResetFinish.json +0 -4
  141. data/schemas/passwordResetInput.json +0 -4
  142. data/schemas/resourceTransfer.json +0 -8
  143. data/schemas/userCredentials.json +6 -15
  144. data/schemas/userPost.json +6 -15
  145. data/schemas/webhooks.json +4 -1
  146. data/test/basic_test.rb +15 -0
  147. metadata +8 -23
  148. data/docs/solution.md +0 -133
  149. data/docs/solutionUser.md +0 -139
  150. data/docs/solutionUsers.md +0 -96
  151. data/docs/solutions.md +0 -91
  152. data/lib/losant_rest/solution.rb +0 -174
  153. data/lib/losant_rest/solution_user.rb +0 -180
  154. data/lib/losant_rest/solution_users.rb +0 -138
  155. data/lib/losant_rest/solutions.rb +0 -134
  156. data/schemas/authedSolutionUser.json +0 -18
  157. data/schemas/fileUploadPostResp.json +0 -109
  158. data/schemas/solution.json +0 -76
  159. data/schemas/solutionMe.json +0 -150
  160. data/schemas/solutionPatch.json +0 -48
  161. data/schemas/solutionPost.json +0 -52
  162. data/schemas/solutionUser.json +0 -103
  163. data/schemas/solutionUserCredentials.json +0 -34
  164. data/schemas/solutionUserPatch.json +0 -74
  165. data/schemas/solutionUserPost.json +0 -80
  166. data/schemas/solutionUsers.json +0 -149
  167. data/schemas/solutions.json +0 -118
@@ -32,6 +32,10 @@
32
32
  },
33
33
  "time": {
34
34
  "type": "number"
35
+ },
36
+ "timezone": {
37
+ "type": "string",
38
+ "max": 255
35
39
  }
36
40
  },
37
41
  "additionalProperties": false
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "eventIds": {
6
+ "type": "array",
7
+ "items": {
8
+ "type": "string",
9
+ "pattern": "^[A-Fa-f\\d]{24}$"
10
+ }
11
+ },
12
+ "updates": {
13
+ "title": "Event Patch",
14
+ "description": "Schema for the body of an Event modification request",
15
+ "type": "object",
16
+ "properties": {
17
+ "state": {
18
+ "type": "string",
19
+ "enum": [
20
+ "new",
21
+ "acknowledged",
22
+ "resolved"
23
+ ]
24
+ },
25
+ "comment": {
26
+ "type": "string",
27
+ "maxLength": 32767
28
+ },
29
+ "data": {},
30
+ "eventTags": {
31
+ "type": "object",
32
+ "patternProperties": {
33
+ "^[0-9a-zA-Z_-]{1,255}$": {
34
+ "type": "string",
35
+ "minLength": 1,
36
+ "maxLength": 255
37
+ }
38
+ },
39
+ "additionalProperties": false
40
+ }
41
+ },
42
+ "additionalProperties": false
43
+ }
44
+ },
45
+ "additionalProperties": false
46
+ }
@@ -42,7 +42,8 @@
42
42
  "maxLength": 255
43
43
  },
44
44
  "organizationIconColor": {
45
- "type": "string"
45
+ "type": "string",
46
+ "maxLength": 64
46
47
  },
47
48
  "applicationId": {
48
49
  "type": "string",
@@ -85,11 +86,6 @@
85
86
  "max": 10,
86
87
  "items": {
87
88
  "type": "object",
88
- "additionalProperties": false,
89
- "required": [
90
- "cron",
91
- "toEmail"
92
- ],
93
89
  "properties": {
94
90
  "id": {
95
91
  "type": "string",
@@ -128,81 +124,3977 @@
128
124
  "type": "string",
129
125
  "max": 255
130
126
  }
131
- }
127
+ },
128
+ "additionalProperties": false,
129
+ "required": [
130
+ "cron",
131
+ "toEmail"
132
+ ]
132
133
  }
133
134
  },
134
135
  "blocks": {
135
136
  "type": "array",
136
137
  "items": {
137
- "type": "object",
138
- "properties": {
139
- "id": {
140
- "type": "string",
141
- "maxLength": 255
138
+ "oneOf": [
139
+ {
140
+ "type": "object",
141
+ "properties": {
142
+ "id": {
143
+ "type": "string",
144
+ "maxLength": 48
145
+ },
146
+ "title": {
147
+ "type": "string",
148
+ "maxLength": 255
149
+ },
150
+ "description": {
151
+ "type": "string",
152
+ "maxLength": 32767
153
+ },
154
+ "applicationId": {
155
+ "type": "string",
156
+ "pattern": "^[A-Fa-f\\d]{24}$"
157
+ },
158
+ "startX": {
159
+ "type": "number"
160
+ },
161
+ "startY": {
162
+ "type": "number"
163
+ },
164
+ "width": {
165
+ "type": "number"
166
+ },
167
+ "height": {
168
+ "type": "number"
169
+ },
170
+ "blockType": {
171
+ "type": "string",
172
+ "enum": [
173
+ "application-list"
174
+ ]
175
+ },
176
+ "config": {
177
+ "type": "object",
178
+ "properties": {
179
+ "filter": {
180
+ "type": "string",
181
+ "maxLength": 255
182
+ }
183
+ },
184
+ "additionalProperties": false
185
+ }
186
+ },
187
+ "required": [
188
+ "blockType",
189
+ "startX",
190
+ "startY",
191
+ "width",
192
+ "height"
193
+ ],
194
+ "additionalProperties": false
142
195
  },
143
- "blockType": {
144
- "type": "string",
145
- "enum": [
146
- "application-list",
147
- "bar",
148
- "custom-chart",
149
- "dashboard-list",
150
- "data-table",
151
- "device-list",
152
- "device-log",
153
- "device-state-table",
154
- "event-list",
155
- "gauge",
156
- "graph",
157
- "heatmap",
158
- "iframe",
159
- "image",
160
- "indicator",
161
- "input",
162
- "map",
163
- "open-event-indicator",
164
- "pie",
165
- "position-chart",
166
- "section-header",
167
- "workflow-list"
168
- ]
196
+ {
197
+ "type": "object",
198
+ "properties": {
199
+ "id": {
200
+ "type": "string",
201
+ "maxLength": 255
202
+ },
203
+ "title": {
204
+ "type": "string",
205
+ "maxLength": 255
206
+ },
207
+ "description": {
208
+ "type": "string",
209
+ "maxLength": 32767
210
+ },
211
+ "applicationId": {
212
+ "type": "string",
213
+ "pattern": "^[A-Fa-f\\d]{24}$"
214
+ },
215
+ "startX": {
216
+ "type": "number"
217
+ },
218
+ "startY": {
219
+ "type": "number"
220
+ },
221
+ "width": {
222
+ "type": "number"
223
+ },
224
+ "height": {
225
+ "type": "number"
226
+ },
227
+ "blockType": {
228
+ "type": "string",
229
+ "enum": [
230
+ "bar"
231
+ ]
232
+ },
233
+ "config": {
234
+ "type": "object",
235
+ "properties": {
236
+ "realTime": {
237
+ "type": "boolean"
238
+ },
239
+ "duration": {
240
+ "type": "integer",
241
+ "minimum": 0
242
+ },
243
+ "xAxisFormat": {
244
+ "type": "string",
245
+ "maxLength": 255
246
+ },
247
+ "xAxisLabel": {
248
+ "type": "string",
249
+ "maxLength": 255
250
+ },
251
+ "xAxisMax": {
252
+ "oneOf": [
253
+ {
254
+ "type": "number"
255
+ },
256
+ {
257
+ "type": "string",
258
+ "maxLength": 64
259
+ }
260
+ ]
261
+ },
262
+ "xAxisMin": {
263
+ "oneOf": [
264
+ {
265
+ "type": "number"
266
+ },
267
+ {
268
+ "type": "string",
269
+ "maxLength": 64
270
+ }
271
+ ]
272
+ },
273
+ "segments": {
274
+ "type": "array",
275
+ "maxItems": 255,
276
+ "items": {
277
+ "type": "object",
278
+ "properties": {
279
+ "attribute": {
280
+ "type": "string",
281
+ "maxLength": 255
282
+ },
283
+ "aggregation": {
284
+ "type": "string",
285
+ "enum": [
286
+ "FIRST",
287
+ "LAST",
288
+ "COUNT",
289
+ "MAX",
290
+ "MIN",
291
+ "MEDIAN",
292
+ "MEAN",
293
+ "SUM",
294
+ "STD_DEV",
295
+ "NONE"
296
+ ]
297
+ },
298
+ "color": {
299
+ "type": "string",
300
+ "maxLength": 64
301
+ },
302
+ "deviceIds": {
303
+ "type": "array",
304
+ "maxItems": 100,
305
+ "items": {
306
+ "type": "string",
307
+ "maxLength": 255
308
+ }
309
+ },
310
+ "deviceTags": {
311
+ "type": "array",
312
+ "maxItems": 100,
313
+ "items": {
314
+ "type": "object",
315
+ "properties": {
316
+ "key": {
317
+ "type": "string",
318
+ "maxLength": 255
319
+ },
320
+ "value": {
321
+ "type": "string",
322
+ "maxLength": 255
323
+ },
324
+ "fromCtx": {
325
+ "type": "string",
326
+ "maxLength": 255
327
+ }
328
+ },
329
+ "additionalProperties": false
330
+ }
331
+ },
332
+ "label": {
333
+ "type": "string",
334
+ "maxLength": 255
335
+ },
336
+ "yAxisLabel": {
337
+ "type": "string",
338
+ "maxLength": 255
339
+ },
340
+ "lineWeight": {
341
+ "type": "integer",
342
+ "minimum": 0,
343
+ "maximum": 5
344
+ },
345
+ "detectDataGaps": {
346
+ "type": "boolean"
347
+ },
348
+ "graphType": {
349
+ "type": "string",
350
+ "maxLength": 255
351
+ }
352
+ },
353
+ "additionalProperties": false
354
+ }
355
+ }
356
+ },
357
+ "additionalProperties": false
358
+ }
359
+ },
360
+ "required": [
361
+ "blockType",
362
+ "startX",
363
+ "startY",
364
+ "width",
365
+ "height"
366
+ ],
367
+ "additionalProperties": false
169
368
  },
170
- "title": {
171
- "type": "string",
172
- "maxLength": 255
369
+ {
370
+ "type": "object",
371
+ "properties": {
372
+ "id": {
373
+ "type": "string",
374
+ "maxLength": 48
375
+ },
376
+ "title": {
377
+ "type": "string",
378
+ "maxLength": 255
379
+ },
380
+ "description": {
381
+ "type": "string",
382
+ "maxLength": 32767
383
+ },
384
+ "applicationId": {
385
+ "type": "string",
386
+ "pattern": "^[A-Fa-f\\d]{24}$"
387
+ },
388
+ "startX": {
389
+ "type": "number"
390
+ },
391
+ "startY": {
392
+ "type": "number"
393
+ },
394
+ "width": {
395
+ "type": "number"
396
+ },
397
+ "height": {
398
+ "type": "number"
399
+ },
400
+ "blockType": {
401
+ "type": "string",
402
+ "enum": [
403
+ "custom-chart"
404
+ ]
405
+ },
406
+ "config": {
407
+ "type": "object",
408
+ "properties": {
409
+ "configuration": {
410
+ "type": "string",
411
+ "maxLength": 32767
412
+ },
413
+ "segments": {
414
+ "type": "array",
415
+ "maxItems": 100,
416
+ "items": {
417
+ "oneOf": [
418
+ {
419
+ "type": "object",
420
+ "properties": {
421
+ "queryType": {
422
+ "type": "string",
423
+ "enum": [
424
+ "time-series"
425
+ ]
426
+ },
427
+ "id": {
428
+ "type": "string",
429
+ "maxLength": 48
430
+ },
431
+ "attribute": {
432
+ "type": "string",
433
+ "maxLength": 255
434
+ },
435
+ "aggregation": {
436
+ "type": "string",
437
+ "enum": [
438
+ "FIRST",
439
+ "LAST",
440
+ "COUNT",
441
+ "MAX",
442
+ "MIN",
443
+ "MEDIAN",
444
+ "MEAN",
445
+ "SUM",
446
+ "STD_DEV",
447
+ "NONE"
448
+ ]
449
+ },
450
+ "deviceIds": {
451
+ "type": "array",
452
+ "maxItems": 100,
453
+ "items": {
454
+ "type": "string",
455
+ "maxLength": 255
456
+ }
457
+ },
458
+ "deviceTags": {
459
+ "type": "array",
460
+ "maxItems": 100,
461
+ "items": {
462
+ "type": "object",
463
+ "properties": {
464
+ "key": {
465
+ "type": "string",
466
+ "maxLength": 255
467
+ },
468
+ "value": {
469
+ "type": "string",
470
+ "maxLength": 255
471
+ },
472
+ "fromCtx": {
473
+ "type": "string",
474
+ "maxLength": 255
475
+ }
476
+ },
477
+ "additionalProperties": false
478
+ }
479
+ },
480
+ "duration": {
481
+ "type": "integer",
482
+ "minimum": 0
483
+ },
484
+ "resolution": {
485
+ "oneOf": [
486
+ {
487
+ "type": "integer",
488
+ "minimum": 0
489
+ },
490
+ {
491
+ "type": "null"
492
+ },
493
+ {
494
+ "type": "string",
495
+ "maxLength": 255
496
+ }
497
+ ]
498
+ }
499
+ },
500
+ "additionalProperties": false
501
+ },
502
+ {
503
+ "type": "object",
504
+ "properties": {
505
+ "queryType": {
506
+ "type": "string",
507
+ "enum": [
508
+ "gauge"
509
+ ]
510
+ },
511
+ "id": {
512
+ "type": "string",
513
+ "maxLength": 48
514
+ },
515
+ "attribute": {
516
+ "type": "string",
517
+ "maxLength": 255
518
+ },
519
+ "aggregation": {
520
+ "type": "string",
521
+ "enum": [
522
+ "FIRST",
523
+ "LAST",
524
+ "COUNT",
525
+ "MAX",
526
+ "MIN",
527
+ "MEDIAN",
528
+ "MEAN",
529
+ "SUM",
530
+ "STD_DEV",
531
+ "NONE"
532
+ ]
533
+ },
534
+ "deviceIds": {
535
+ "type": "array",
536
+ "maxItems": 100,
537
+ "items": {
538
+ "type": "string",
539
+ "maxLength": 255
540
+ }
541
+ },
542
+ "deviceTags": {
543
+ "type": "array",
544
+ "maxItems": 100,
545
+ "items": {
546
+ "type": "object",
547
+ "properties": {
548
+ "key": {
549
+ "type": "string",
550
+ "maxLength": 255
551
+ },
552
+ "value": {
553
+ "type": "string",
554
+ "maxLength": 255
555
+ },
556
+ "fromCtx": {
557
+ "type": "string",
558
+ "maxLength": 255
559
+ }
560
+ },
561
+ "additionalProperties": false
562
+ }
563
+ },
564
+ "duration": {
565
+ "type": "integer",
566
+ "minimum": 0
567
+ }
568
+ },
569
+ "additionalProperties": false
570
+ },
571
+ {
572
+ "type": "object",
573
+ "properties": {
574
+ "queryType": {
575
+ "type": "string",
576
+ "enum": [
577
+ "data-table"
578
+ ]
579
+ },
580
+ "id": {
581
+ "type": "string",
582
+ "maxLength": 48
583
+ },
584
+ "dataTableId": {
585
+ "type": "string",
586
+ "pattern": "^[A-Fa-f\\d]{24}$"
587
+ },
588
+ "query": {
589
+ "type": "string",
590
+ "maxLength": 32767
591
+ },
592
+ "queryMode": {
593
+ "type": "string",
594
+ "enum": [
595
+ "$or",
596
+ "$and",
597
+ "advanced"
598
+ ]
599
+ }
600
+ },
601
+ "additionalProperties": false
602
+ }
603
+ ]
604
+ }
605
+ }
606
+ },
607
+ "additionalProperties": false
608
+ }
609
+ },
610
+ "required": [
611
+ "blockType",
612
+ "startX",
613
+ "startY",
614
+ "width",
615
+ "height"
616
+ ],
617
+ "additionalProperties": false
173
618
  },
174
- "description": {
175
- "type": "string",
176
- "maxLength": 32767
619
+ {
620
+ "type": "object",
621
+ "properties": {
622
+ "id": {
623
+ "type": "string",
624
+ "maxLength": 48
625
+ },
626
+ "title": {
627
+ "type": "string",
628
+ "maxLength": 255
629
+ },
630
+ "description": {
631
+ "type": "string",
632
+ "maxLength": 32767
633
+ },
634
+ "applicationId": {
635
+ "type": "string",
636
+ "pattern": "^[A-Fa-f\\d]{24}$"
637
+ },
638
+ "startX": {
639
+ "type": "number"
640
+ },
641
+ "startY": {
642
+ "type": "number"
643
+ },
644
+ "width": {
645
+ "type": "number"
646
+ },
647
+ "height": {
648
+ "type": "number"
649
+ },
650
+ "blockType": {
651
+ "type": "string",
652
+ "enum": [
653
+ "dashboard-list"
654
+ ]
655
+ },
656
+ "config": {
657
+ "type": "object",
658
+ "properties": {
659
+ "filter": {
660
+ "type": "string",
661
+ "maxLength": 255
662
+ }
663
+ },
664
+ "additionalProperties": false
665
+ }
666
+ },
667
+ "required": [
668
+ "blockType",
669
+ "startX",
670
+ "startY",
671
+ "width",
672
+ "height"
673
+ ],
674
+ "additionalProperties": false
177
675
  },
178
- "applicationId": {
179
- "type": "string",
180
- "pattern": "^[A-Fa-f\\d]{24}$"
676
+ {
677
+ "type": "object",
678
+ "properties": {
679
+ "id": {
680
+ "type": "string",
681
+ "maxLength": 48
682
+ },
683
+ "title": {
684
+ "type": "string",
685
+ "maxLength": 255
686
+ },
687
+ "description": {
688
+ "type": "string",
689
+ "maxLength": 32767
690
+ },
691
+ "applicationId": {
692
+ "type": "string",
693
+ "pattern": "^[A-Fa-f\\d]{24}$"
694
+ },
695
+ "startX": {
696
+ "type": "number"
697
+ },
698
+ "startY": {
699
+ "type": "number"
700
+ },
701
+ "width": {
702
+ "type": "number"
703
+ },
704
+ "height": {
705
+ "type": "number"
706
+ },
707
+ "blockType": {
708
+ "type": "string",
709
+ "enum": [
710
+ "data-table"
711
+ ]
712
+ },
713
+ "config": {
714
+ "type": "object",
715
+ "properties": {
716
+ "dataTableId": {
717
+ "type": "string",
718
+ "pattern": "^[A-Fa-f\\d]{24}$"
719
+ },
720
+ "defaultSortColumn": {
721
+ "type": "string",
722
+ "maxLength": 255
723
+ },
724
+ "defaultSortDirection": {
725
+ "type": "string",
726
+ "enum": [
727
+ "asc",
728
+ "desc",
729
+ "ASC",
730
+ "DESC",
731
+ ""
732
+ ]
733
+ },
734
+ "query": {
735
+ "type": "string",
736
+ "maxLength": 32767
737
+ },
738
+ "queryMode": {
739
+ "type": "string",
740
+ "enum": [
741
+ "$or",
742
+ "$and",
743
+ "advanced"
744
+ ]
745
+ }
746
+ },
747
+ "additionalProperties": false
748
+ }
749
+ },
750
+ "required": [
751
+ "blockType",
752
+ "startX",
753
+ "startY",
754
+ "width",
755
+ "height"
756
+ ],
757
+ "additionalProperties": false
181
758
  },
182
- "startX": {
183
- "type": "number"
759
+ {
760
+ "type": "object",
761
+ "properties": {
762
+ "id": {
763
+ "type": "string",
764
+ "maxLength": 48
765
+ },
766
+ "title": {
767
+ "type": "string",
768
+ "maxLength": 255
769
+ },
770
+ "description": {
771
+ "type": "string",
772
+ "maxLength": 32767
773
+ },
774
+ "applicationId": {
775
+ "type": "string",
776
+ "pattern": "^[A-Fa-f\\d]{24}$"
777
+ },
778
+ "startX": {
779
+ "type": "number"
780
+ },
781
+ "startY": {
782
+ "type": "number"
783
+ },
784
+ "width": {
785
+ "type": "number"
786
+ },
787
+ "height": {
788
+ "type": "number"
789
+ },
790
+ "blockType": {
791
+ "type": "string",
792
+ "enum": [
793
+ "device-list"
794
+ ]
795
+ },
796
+ "config": {
797
+ "type": "object",
798
+ "properties": {
799
+ "deviceLinkNewWindow": {
800
+ "type": "boolean"
801
+ },
802
+ "deviceLinkType": {
803
+ "type": "string",
804
+ "enum": [
805
+ "custom",
806
+ "default"
807
+ ]
808
+ },
809
+ "deviceLinkUrl": {
810
+ "type": "string",
811
+ "maxLength": 2048
812
+ },
813
+ "match": {
814
+ "type": "string",
815
+ "enum": [
816
+ "unfiltered",
817
+ "all",
818
+ "any"
819
+ ]
820
+ },
821
+ "showPublicFilter": {
822
+ "type": "boolean"
823
+ },
824
+ "filter": {
825
+ "oneOf": [
826
+ {
827
+ "type": "string",
828
+ "maxLength": 255
829
+ },
830
+ {
831
+ "type": "object",
832
+ "properties": {
833
+ "ids": {
834
+ "type": "array",
835
+ "maxItems": 100,
836
+ "items": {
837
+ "type": "string",
838
+ "maxLength": 255
839
+ }
840
+ },
841
+ "tags": {
842
+ "type": "array",
843
+ "maxItems": 100,
844
+ "items": {
845
+ "type": "object",
846
+ "properties": {
847
+ "key": {
848
+ "type": "string",
849
+ "maxLength": 255
850
+ },
851
+ "value": {
852
+ "type": "string",
853
+ "maxLength": 255
854
+ },
855
+ "fromCtx": {
856
+ "type": "string",
857
+ "maxLength": 255
858
+ }
859
+ },
860
+ "additionalProperties": false
861
+ }
862
+ },
863
+ "searchParam": {
864
+ "type": "string",
865
+ "maxLength": 255
866
+ }
867
+ },
868
+ "additionalProperties": false
869
+ }
870
+ ]
871
+ }
872
+ },
873
+ "additionalProperties": false
874
+ }
875
+ },
876
+ "required": [
877
+ "blockType",
878
+ "startX",
879
+ "startY",
880
+ "width",
881
+ "height"
882
+ ],
883
+ "additionalProperties": false
884
+ },
885
+ {
886
+ "type": "object",
887
+ "properties": {
888
+ "id": {
889
+ "type": "string",
890
+ "maxLength": 48
891
+ },
892
+ "title": {
893
+ "type": "string",
894
+ "maxLength": 255
895
+ },
896
+ "description": {
897
+ "type": "string",
898
+ "maxLength": 32767
899
+ },
900
+ "applicationId": {
901
+ "type": "string",
902
+ "pattern": "^[A-Fa-f\\d]{24}$"
903
+ },
904
+ "startX": {
905
+ "type": "number"
906
+ },
907
+ "startY": {
908
+ "type": "number"
909
+ },
910
+ "width": {
911
+ "type": "number"
912
+ },
913
+ "height": {
914
+ "type": "number"
915
+ },
916
+ "blockType": {
917
+ "type": "string",
918
+ "enum": [
919
+ "device-log"
920
+ ]
921
+ },
922
+ "config": {
923
+ "type": "object",
924
+ "properties": {
925
+ "deviceIds": {
926
+ "type": "array",
927
+ "maxItems": 100,
928
+ "items": {
929
+ "type": "string",
930
+ "maxLength": 255
931
+ }
932
+ }
933
+ },
934
+ "additionalProperties": false
935
+ }
936
+ },
937
+ "required": [
938
+ "blockType",
939
+ "startX",
940
+ "startY",
941
+ "width",
942
+ "height"
943
+ ],
944
+ "additionalProperties": false
945
+ },
946
+ {
947
+ "type": "object",
948
+ "properties": {
949
+ "id": {
950
+ "type": "string",
951
+ "maxLength": 48
952
+ },
953
+ "title": {
954
+ "type": "string",
955
+ "maxLength": 255
956
+ },
957
+ "description": {
958
+ "type": "string",
959
+ "maxLength": 32767
960
+ },
961
+ "applicationId": {
962
+ "type": "string",
963
+ "pattern": "^[A-Fa-f\\d]{24}$"
964
+ },
965
+ "startX": {
966
+ "type": "number"
967
+ },
968
+ "startY": {
969
+ "type": "number"
970
+ },
971
+ "width": {
972
+ "type": "number"
973
+ },
974
+ "height": {
975
+ "type": "number"
976
+ },
977
+ "blockType": {
978
+ "type": "string",
979
+ "enum": [
980
+ "device-state-table"
981
+ ]
982
+ },
983
+ "config": {
984
+ "type": "object",
985
+ "properties": {
986
+ "attributes": {
987
+ "oneOf": [
988
+ {
989
+ "type": "null"
990
+ },
991
+ {
992
+ "type": "array",
993
+ "maxItems": 100,
994
+ "items": {
995
+ "type": "string",
996
+ "maxLength": 255
997
+ }
998
+ }
999
+ ]
1000
+ },
1001
+ "deviceIds": {
1002
+ "type": "array",
1003
+ "maxItems": 100,
1004
+ "items": {
1005
+ "type": "string",
1006
+ "maxLength": 255
1007
+ }
1008
+ },
1009
+ "deviceTags": {
1010
+ "type": "array",
1011
+ "maxItems": 100,
1012
+ "items": {
1013
+ "type": "object",
1014
+ "properties": {
1015
+ "key": {
1016
+ "type": "string",
1017
+ "maxLength": 255
1018
+ },
1019
+ "value": {
1020
+ "type": "string",
1021
+ "maxLength": 255
1022
+ },
1023
+ "fromCtx": {
1024
+ "type": "string",
1025
+ "maxLength": 255
1026
+ }
1027
+ },
1028
+ "additionalProperties": false
1029
+ }
1030
+ },
1031
+ "duration": {
1032
+ "type": "integer",
1033
+ "minimum": 0
1034
+ },
1035
+ "sortDirection": {
1036
+ "type": "integer",
1037
+ "minimum": -1,
1038
+ "maximum": 1
1039
+ },
1040
+ "sortIndex": {
1041
+ "type": "integer",
1042
+ "minimum": 0,
1043
+ "maximum": 100
1044
+ },
1045
+ "columns": {
1046
+ "type": "array",
1047
+ "maxItems": 100,
1048
+ "items": {
1049
+ "type": "object",
1050
+ "properties": {
1051
+ "headerTemplate": {
1052
+ "type": "string",
1053
+ "maxLength": 1024
1054
+ },
1055
+ "id": {
1056
+ "type": "string",
1057
+ "maxLength": 48
1058
+ },
1059
+ "rowTemplate": {
1060
+ "type": "string",
1061
+ "maxLength": 32767
1062
+ },
1063
+ "type": {
1064
+ "type": "string",
1065
+ "enum": [
1066
+ "deviceTags",
1067
+ "deviceId",
1068
+ "deviceName",
1069
+ "timestamp",
1070
+ "attribute"
1071
+ ]
1072
+ },
1073
+ "attribute": {
1074
+ "type": "string",
1075
+ "maxLength": 255
1076
+ }
1077
+ },
1078
+ "additionalProperties": false
1079
+ }
1080
+ }
1081
+ },
1082
+ "additionalProperties": false
1083
+ }
1084
+ },
1085
+ "required": [
1086
+ "blockType",
1087
+ "startX",
1088
+ "startY",
1089
+ "width",
1090
+ "height"
1091
+ ],
1092
+ "additionalProperties": false
1093
+ },
1094
+ {
1095
+ "type": "object",
1096
+ "properties": {
1097
+ "id": {
1098
+ "type": "string",
1099
+ "maxLength": 255
1100
+ },
1101
+ "title": {
1102
+ "type": "string",
1103
+ "maxLength": 255
1104
+ },
1105
+ "description": {
1106
+ "type": "string",
1107
+ "maxLength": 32767
1108
+ },
1109
+ "applicationId": {
1110
+ "type": "string",
1111
+ "pattern": "^[A-Fa-f\\d]{24}$"
1112
+ },
1113
+ "startX": {
1114
+ "type": "number"
1115
+ },
1116
+ "startY": {
1117
+ "type": "number"
1118
+ },
1119
+ "width": {
1120
+ "type": "number"
1121
+ },
1122
+ "height": {
1123
+ "type": "number"
1124
+ },
1125
+ "blockType": {
1126
+ "type": "string",
1127
+ "enum": [
1128
+ "event-list"
1129
+ ]
1130
+ },
1131
+ "config": {
1132
+ "type": "object",
1133
+ "properties": {
1134
+ "allowUpdates": {
1135
+ "type": "boolean"
1136
+ },
1137
+ "query": {
1138
+ "type": "string",
1139
+ "maxLength": 32767
1140
+ },
1141
+ "sortDirection": {
1142
+ "type": "string",
1143
+ "enum": [
1144
+ "asc",
1145
+ "desc",
1146
+ "ASC",
1147
+ "DESC",
1148
+ ""
1149
+ ]
1150
+ },
1151
+ "sortField": {
1152
+ "type": "string",
1153
+ "maxLength": 255
1154
+ },
1155
+ "filter": {
1156
+ "type": "string",
1157
+ "maxLength": 255
1158
+ },
1159
+ "eventState": {
1160
+ "oneOf": [
1161
+ {
1162
+ "type": "string",
1163
+ "maxLength": 255
1164
+ },
1165
+ {
1166
+ "type": "null"
1167
+ },
1168
+ {
1169
+ "type": "object",
1170
+ "additionalProperties": false
1171
+ }
1172
+ ]
1173
+ },
1174
+ "columnErrors": {
1175
+ "type": "object",
1176
+ "additionalProperties": false
1177
+ },
1178
+ "columns": {
1179
+ "type": "array",
1180
+ "maxItems": 100,
1181
+ "items": {
1182
+ "type": "object",
1183
+ "properties": {
1184
+ "id": {
1185
+ "type": "string",
1186
+ "maxLength": 48
1187
+ },
1188
+ "selectedTag": {
1189
+ "type": "string",
1190
+ "maxLength": 255
1191
+ },
1192
+ "type": {
1193
+ "type": "string",
1194
+ "enum": [
1195
+ "level",
1196
+ "subject",
1197
+ "subjectWithMessage",
1198
+ "creationDate",
1199
+ "creationDateWithSource",
1200
+ "lastUpdatedDate",
1201
+ "lastUpdatedDateWithSource",
1202
+ "id",
1203
+ "state",
1204
+ "tag",
1205
+ "deviceName",
1206
+ "sourceId"
1207
+ ]
1208
+ }
1209
+ },
1210
+ "additionalProperties": false
1211
+ }
1212
+ }
1213
+ },
1214
+ "additionalProperties": false
1215
+ }
1216
+ },
1217
+ "required": [
1218
+ "blockType",
1219
+ "startX",
1220
+ "startY",
1221
+ "width",
1222
+ "height"
1223
+ ],
1224
+ "additionalProperties": false
1225
+ },
1226
+ {
1227
+ "type": "object",
1228
+ "properties": {
1229
+ "id": {
1230
+ "type": "string",
1231
+ "maxLength": 48
1232
+ },
1233
+ "title": {
1234
+ "type": "string",
1235
+ "maxLength": 255
1236
+ },
1237
+ "description": {
1238
+ "type": "string",
1239
+ "maxLength": 32767
1240
+ },
1241
+ "applicationId": {
1242
+ "type": "string",
1243
+ "pattern": "^[A-Fa-f\\d]{24}$"
1244
+ },
1245
+ "startX": {
1246
+ "type": "number"
1247
+ },
1248
+ "startY": {
1249
+ "type": "number"
1250
+ },
1251
+ "width": {
1252
+ "type": "number"
1253
+ },
1254
+ "height": {
1255
+ "type": "number"
1256
+ },
1257
+ "blockType": {
1258
+ "type": "string",
1259
+ "enum": [
1260
+ "gauge"
1261
+ ]
1262
+ },
1263
+ "config": {
1264
+ "type": "object",
1265
+ "properties": {
1266
+ "realTime": {
1267
+ "type": "boolean"
1268
+ },
1269
+ "displayAsPercentage": {
1270
+ "type": "boolean"
1271
+ },
1272
+ "duration": {
1273
+ "type": "integer",
1274
+ "minimum": 0
1275
+ },
1276
+ "gaugeMax": {
1277
+ "oneOf": [
1278
+ {
1279
+ "type": "number"
1280
+ },
1281
+ {
1282
+ "type": "string",
1283
+ "maxLength": 64
1284
+ }
1285
+ ]
1286
+ },
1287
+ "gaugeMin": {
1288
+ "oneOf": [
1289
+ {
1290
+ "type": "number"
1291
+ },
1292
+ {
1293
+ "type": "string",
1294
+ "maxLength": 64
1295
+ }
1296
+ ]
1297
+ },
1298
+ "gaugeType": {
1299
+ "type": "string",
1300
+ "enum": [
1301
+ "battery",
1302
+ "dial",
1303
+ "number",
1304
+ "tank",
1305
+ "thermometer"
1306
+ ]
1307
+ },
1308
+ "precision": {
1309
+ "oneOf": [
1310
+ {
1311
+ "type": "number"
1312
+ },
1313
+ {
1314
+ "type": "string",
1315
+ "maxLength": 64
1316
+ }
1317
+ ]
1318
+ },
1319
+ "precisionType": {
1320
+ "type": "string",
1321
+ "enum": [
1322
+ "floating",
1323
+ "significant"
1324
+ ]
1325
+ },
1326
+ "segment": {
1327
+ "type": "object",
1328
+ "properties": {
1329
+ "attribute": {
1330
+ "type": "string",
1331
+ "maxLength": 255
1332
+ },
1333
+ "aggregation": {
1334
+ "type": "string",
1335
+ "enum": [
1336
+ "FIRST",
1337
+ "LAST",
1338
+ "COUNT",
1339
+ "MAX",
1340
+ "MIN",
1341
+ "MEDIAN",
1342
+ "MEAN",
1343
+ "SUM",
1344
+ "STD_DEV",
1345
+ "NONE"
1346
+ ]
1347
+ },
1348
+ "color": {
1349
+ "type": "string",
1350
+ "maxLength": 64
1351
+ },
1352
+ "deviceIds": {
1353
+ "type": "array",
1354
+ "maxItems": 100,
1355
+ "items": {
1356
+ "type": "string",
1357
+ "maxLength": 255
1358
+ }
1359
+ },
1360
+ "deviceTags": {
1361
+ "type": "array",
1362
+ "maxItems": 100,
1363
+ "items": {
1364
+ "type": "object",
1365
+ "properties": {
1366
+ "key": {
1367
+ "type": "string",
1368
+ "maxLength": 255
1369
+ },
1370
+ "value": {
1371
+ "type": "string",
1372
+ "maxLength": 255
1373
+ },
1374
+ "fromCtx": {
1375
+ "type": "string",
1376
+ "maxLength": 255
1377
+ }
1378
+ },
1379
+ "additionalProperties": false
1380
+ }
1381
+ },
1382
+ "label": {
1383
+ "type": "string",
1384
+ "maxLength": 255
1385
+ },
1386
+ "yAxisLabel": {
1387
+ "type": "string",
1388
+ "maxLength": 255
1389
+ },
1390
+ "lineWeight": {
1391
+ "type": "integer",
1392
+ "minimum": 0,
1393
+ "maximum": 5
1394
+ },
1395
+ "detectDataGaps": {
1396
+ "type": "boolean"
1397
+ },
1398
+ "graphType": {
1399
+ "type": "string",
1400
+ "maxLength": 255
1401
+ }
1402
+ },
1403
+ "additionalProperties": false
1404
+ },
1405
+ "conditions": {
1406
+ "type": "array",
1407
+ "maxItems": 100,
1408
+ "items": {
1409
+ "type": "object",
1410
+ "properties": {
1411
+ "color": {
1412
+ "type": "string",
1413
+ "maxLength": 64
1414
+ },
1415
+ "id": {
1416
+ "type": "string",
1417
+ "maxLength": 48
1418
+ },
1419
+ "label": {
1420
+ "type": "string",
1421
+ "maxLength": 32767
1422
+ },
1423
+ "condition": {
1424
+ "type": "string",
1425
+ "maxLength": 2048
1426
+ },
1427
+ "imageUrl": {
1428
+ "type": "string",
1429
+ "maxLength": 32767
1430
+ },
1431
+ "shape": {
1432
+ "type": "string",
1433
+ "enum": [
1434
+ "circle",
1435
+ "square",
1436
+ "triangle-down",
1437
+ "triangle-up",
1438
+ "octagon"
1439
+ ]
1440
+ }
1441
+ },
1442
+ "additionalProperties": false
1443
+ }
1444
+ }
1445
+ },
1446
+ "additionalProperties": false
1447
+ }
1448
+ },
1449
+ "required": [
1450
+ "blockType",
1451
+ "startX",
1452
+ "startY",
1453
+ "width",
1454
+ "height"
1455
+ ],
1456
+ "additionalProperties": false
1457
+ },
1458
+ {
1459
+ "type": "object",
1460
+ "properties": {
1461
+ "id": {
1462
+ "type": "string",
1463
+ "maxLength": 48
1464
+ },
1465
+ "title": {
1466
+ "type": "string",
1467
+ "maxLength": 255
1468
+ },
1469
+ "description": {
1470
+ "type": "string",
1471
+ "maxLength": 32767
1472
+ },
1473
+ "applicationId": {
1474
+ "type": "string",
1475
+ "pattern": "^[A-Fa-f\\d]{24}$"
1476
+ },
1477
+ "startX": {
1478
+ "type": "number"
1479
+ },
1480
+ "startY": {
1481
+ "type": "number"
1482
+ },
1483
+ "width": {
1484
+ "type": "number"
1485
+ },
1486
+ "height": {
1487
+ "type": "number"
1488
+ },
1489
+ "blockType": {
1490
+ "type": "string",
1491
+ "enum": [
1492
+ "graph"
1493
+ ]
1494
+ },
1495
+ "config": {
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "realTime": {
1499
+ "type": "boolean"
1500
+ },
1501
+ "duration": {
1502
+ "type": "integer",
1503
+ "minimum": 0
1504
+ },
1505
+ "resolution": {
1506
+ "oneOf": [
1507
+ {
1508
+ "type": "integer",
1509
+ "minimum": 0
1510
+ },
1511
+ {
1512
+ "type": "null"
1513
+ },
1514
+ {
1515
+ "type": "string",
1516
+ "maxLength": 255
1517
+ }
1518
+ ]
1519
+ },
1520
+ "recharts": {
1521
+ "type": "boolean"
1522
+ },
1523
+ "displayType": {
1524
+ "type": "string",
1525
+ "enum": [
1526
+ "stick",
1527
+ "line"
1528
+ ]
1529
+ },
1530
+ "segments": {
1531
+ "type": "array",
1532
+ "maxItems": 100,
1533
+ "items": {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "attribute": {
1537
+ "type": "string",
1538
+ "maxLength": 255
1539
+ },
1540
+ "aggregation": {
1541
+ "type": "string",
1542
+ "enum": [
1543
+ "FIRST",
1544
+ "LAST",
1545
+ "COUNT",
1546
+ "MAX",
1547
+ "MIN",
1548
+ "MEDIAN",
1549
+ "MEAN",
1550
+ "SUM",
1551
+ "STD_DEV",
1552
+ "NONE"
1553
+ ]
1554
+ },
1555
+ "color": {
1556
+ "type": "string",
1557
+ "maxLength": 64
1558
+ },
1559
+ "cumulative": {
1560
+ "type": "boolean"
1561
+ },
1562
+ "detectDataGaps": {
1563
+ "type": "boolean"
1564
+ },
1565
+ "graphType": {
1566
+ "type": "string",
1567
+ "enum": [
1568
+ "area",
1569
+ "bar",
1570
+ "line"
1571
+ ]
1572
+ },
1573
+ "label": {
1574
+ "type": "string",
1575
+ "maxLength": 255
1576
+ },
1577
+ "yAxisFormat": {
1578
+ "type": "string",
1579
+ "maxLength": 255
1580
+ },
1581
+ "yAxisLabel": {
1582
+ "type": "string",
1583
+ "maxLength": 255
1584
+ },
1585
+ "yAxisMax": {
1586
+ "oneOf": [
1587
+ {
1588
+ "type": "number"
1589
+ },
1590
+ {
1591
+ "type": "string",
1592
+ "maxLength": 64
1593
+ }
1594
+ ]
1595
+ },
1596
+ "yAxisMin": {
1597
+ "oneOf": [
1598
+ {
1599
+ "type": "number"
1600
+ },
1601
+ {
1602
+ "type": "string",
1603
+ "maxLength": 64
1604
+ }
1605
+ ]
1606
+ },
1607
+ "lineType": {
1608
+ "type": "string",
1609
+ "enum": [
1610
+ "monotone",
1611
+ "step",
1612
+ "stepAfter",
1613
+ "linear",
1614
+ "stepBefore"
1615
+ ]
1616
+ },
1617
+ "lineWeight": {
1618
+ "type": "integer",
1619
+ "minimum": 0,
1620
+ "maximum": 5
1621
+ },
1622
+ "dotWeight": {
1623
+ "type": "integer",
1624
+ "minimum": 0,
1625
+ "maximum": 5
1626
+ },
1627
+ "deviceIds": {
1628
+ "type": "array",
1629
+ "maxItems": 100,
1630
+ "items": {
1631
+ "type": "string",
1632
+ "maxLength": 255
1633
+ }
1634
+ },
1635
+ "deviceTags": {
1636
+ "type": "array",
1637
+ "maxItems": 100,
1638
+ "items": {
1639
+ "type": "object",
1640
+ "properties": {
1641
+ "key": {
1642
+ "type": "string",
1643
+ "maxLength": 255
1644
+ },
1645
+ "value": {
1646
+ "type": "string",
1647
+ "maxLength": 255
1648
+ },
1649
+ "fromCtx": {
1650
+ "type": "string",
1651
+ "maxLength": 255
1652
+ }
1653
+ },
1654
+ "additionalProperties": false
1655
+ }
1656
+ }
1657
+ },
1658
+ "additionalProperties": false
1659
+ }
1660
+ }
1661
+ },
1662
+ "additionalProperties": false
1663
+ }
1664
+ },
1665
+ "required": [
1666
+ "blockType",
1667
+ "startX",
1668
+ "startY",
1669
+ "width",
1670
+ "height"
1671
+ ],
1672
+ "additionalProperties": false
1673
+ },
1674
+ {
1675
+ "type": "object",
1676
+ "properties": {
1677
+ "id": {
1678
+ "type": "string",
1679
+ "maxLength": 48
1680
+ },
1681
+ "title": {
1682
+ "type": "string",
1683
+ "maxLength": 255
1684
+ },
1685
+ "description": {
1686
+ "type": "string",
1687
+ "maxLength": 32767
1688
+ },
1689
+ "applicationId": {
1690
+ "type": "string",
1691
+ "pattern": "^[A-Fa-f\\d]{24}$"
1692
+ },
1693
+ "startX": {
1694
+ "type": "number"
1695
+ },
1696
+ "startY": {
1697
+ "type": "number"
1698
+ },
1699
+ "width": {
1700
+ "type": "number"
1701
+ },
1702
+ "height": {
1703
+ "type": "number"
1704
+ },
1705
+ "blockType": {
1706
+ "type": "string",
1707
+ "enum": [
1708
+ "heatmap"
1709
+ ]
1710
+ },
1711
+ "config": {
1712
+ "type": "object",
1713
+ "properties": {
1714
+ "additionalAttributes": {
1715
+ "oneOf": [
1716
+ {
1717
+ "type": "null"
1718
+ },
1719
+ {
1720
+ "type": "array",
1721
+ "maxItems": 100,
1722
+ "items": {
1723
+ "type": "string",
1724
+ "maxLength": 255
1725
+ }
1726
+ }
1727
+ ]
1728
+ },
1729
+ "attribute": {
1730
+ "type": "string",
1731
+ "maxLength": 255
1732
+ },
1733
+ "defaultBearing": {
1734
+ "type": "number"
1735
+ },
1736
+ "defaultCenter": {
1737
+ "type": "string",
1738
+ "maxLength": 255
1739
+ },
1740
+ "defaultPitch": {
1741
+ "type": "number"
1742
+ },
1743
+ "defaultZoom": {
1744
+ "oneOf": [
1745
+ {
1746
+ "type": "number"
1747
+ },
1748
+ {
1749
+ "type": "string",
1750
+ "maxLength": 64
1751
+ }
1752
+ ]
1753
+ },
1754
+ "deviceIds": {
1755
+ "type": "array",
1756
+ "maxItems": 100,
1757
+ "items": {
1758
+ "type": "string",
1759
+ "maxLength": 255
1760
+ }
1761
+ },
1762
+ "deviceTags": {
1763
+ "type": "array",
1764
+ "maxItems": 100,
1765
+ "items": {
1766
+ "type": "object",
1767
+ "properties": {
1768
+ "key": {
1769
+ "type": "string",
1770
+ "maxLength": 255
1771
+ },
1772
+ "value": {
1773
+ "type": "string",
1774
+ "maxLength": 255
1775
+ },
1776
+ "fromCtx": {
1777
+ "type": "string",
1778
+ "maxLength": 255
1779
+ }
1780
+ },
1781
+ "additionalProperties": false
1782
+ }
1783
+ },
1784
+ "duration": {
1785
+ "type": "integer",
1786
+ "minimum": 0
1787
+ },
1788
+ "mapStyle": {
1789
+ "type": "string",
1790
+ "enum": [
1791
+ "normal",
1792
+ "satellite"
1793
+ ]
1794
+ }
1795
+ },
1796
+ "additionalProperties": false
1797
+ }
1798
+ },
1799
+ "required": [
1800
+ "blockType",
1801
+ "startX",
1802
+ "startY",
1803
+ "width",
1804
+ "height"
1805
+ ],
1806
+ "additionalProperties": false
1807
+ },
1808
+ {
1809
+ "type": "object",
1810
+ "properties": {
1811
+ "id": {
1812
+ "type": "string",
1813
+ "maxLength": 48
1814
+ },
1815
+ "title": {
1816
+ "type": "string",
1817
+ "maxLength": 255
1818
+ },
1819
+ "description": {
1820
+ "type": "string",
1821
+ "maxLength": 32767
1822
+ },
1823
+ "applicationId": {
1824
+ "type": "string",
1825
+ "pattern": "^[A-Fa-f\\d]{24}$"
1826
+ },
1827
+ "startX": {
1828
+ "type": "number"
1829
+ },
1830
+ "startY": {
1831
+ "type": "number"
1832
+ },
1833
+ "width": {
1834
+ "type": "number"
1835
+ },
1836
+ "height": {
1837
+ "type": "number"
1838
+ },
1839
+ "blockType": {
1840
+ "type": "string",
1841
+ "enum": [
1842
+ "iframe"
1843
+ ]
1844
+ },
1845
+ "config": {
1846
+ "type": "object",
1847
+ "properties": {
1848
+ "url": {
1849
+ "type": "string",
1850
+ "maxLength": 2048
1851
+ }
1852
+ },
1853
+ "additionalProperties": false
1854
+ }
1855
+ },
1856
+ "required": [
1857
+ "blockType",
1858
+ "startX",
1859
+ "startY",
1860
+ "width",
1861
+ "height"
1862
+ ],
1863
+ "additionalProperties": false
1864
+ },
1865
+ {
1866
+ "type": "object",
1867
+ "properties": {
1868
+ "id": {
1869
+ "type": "string",
1870
+ "maxLength": 48
1871
+ },
1872
+ "title": {
1873
+ "type": "string",
1874
+ "maxLength": 255
1875
+ },
1876
+ "description": {
1877
+ "type": "string",
1878
+ "maxLength": 32767
1879
+ },
1880
+ "applicationId": {
1881
+ "type": "string",
1882
+ "pattern": "^[A-Fa-f\\d]{24}$"
1883
+ },
1884
+ "startX": {
1885
+ "type": "number"
1886
+ },
1887
+ "startY": {
1888
+ "type": "number"
1889
+ },
1890
+ "width": {
1891
+ "type": "number"
1892
+ },
1893
+ "height": {
1894
+ "type": "number"
1895
+ },
1896
+ "blockType": {
1897
+ "type": "string",
1898
+ "enum": [
1899
+ "image"
1900
+ ]
1901
+ },
1902
+ "config": {
1903
+ "type": "object",
1904
+ "properties": {
1905
+ "bgColor": {
1906
+ "type": "string",
1907
+ "maxLength": 64
1908
+ },
1909
+ "imageLinkNewWindow": {
1910
+ "type": "boolean"
1911
+ },
1912
+ "imageLinkUrl": {
1913
+ "type": "string",
1914
+ "maxLength": 2048
1915
+ },
1916
+ "imageUrl": {
1917
+ "type": "string",
1918
+ "maxLength": 32767
1919
+ }
1920
+ },
1921
+ "additionalProperties": false
1922
+ }
1923
+ },
1924
+ "required": [
1925
+ "blockType",
1926
+ "startX",
1927
+ "startY",
1928
+ "width",
1929
+ "height"
1930
+ ],
1931
+ "additionalProperties": false
1932
+ },
1933
+ {
1934
+ "type": "object",
1935
+ "properties": {
1936
+ "id": {
1937
+ "type": "string",
1938
+ "maxLength": 48
1939
+ },
1940
+ "title": {
1941
+ "type": "string",
1942
+ "maxLength": 255
1943
+ },
1944
+ "description": {
1945
+ "type": "string",
1946
+ "maxLength": 32767
1947
+ },
1948
+ "applicationId": {
1949
+ "type": "string",
1950
+ "pattern": "^[A-Fa-f\\d]{24}$"
1951
+ },
1952
+ "startX": {
1953
+ "type": "number"
1954
+ },
1955
+ "startY": {
1956
+ "type": "number"
1957
+ },
1958
+ "width": {
1959
+ "type": "number"
1960
+ },
1961
+ "height": {
1962
+ "type": "number"
1963
+ },
1964
+ "blockType": {
1965
+ "type": "string",
1966
+ "enum": [
1967
+ "image-overlay"
1968
+ ]
1969
+ },
1970
+ "config": {
1971
+ "type": "object",
1972
+ "properties": {
1973
+ "imageUrl": {
1974
+ "type": "string",
1975
+ "maxLength": 32767
1976
+ },
1977
+ "backgroundColor": {
1978
+ "type": "string",
1979
+ "maxLength": 64
1980
+ },
1981
+ "defaultZoom": {
1982
+ "type": "number"
1983
+ },
1984
+ "segments": {
1985
+ "type": "array",
1986
+ "maxItems": 100,
1987
+ "items": {
1988
+ "oneOf": [
1989
+ {
1990
+ "type": "object",
1991
+ "properties": {
1992
+ "queryType": {
1993
+ "type": "string",
1994
+ "enum": [
1995
+ "gauge"
1996
+ ]
1997
+ },
1998
+ "id": {
1999
+ "type": "string",
2000
+ "maxLength": 48
2001
+ },
2002
+ "attribute": {
2003
+ "type": "string",
2004
+ "maxLength": 255
2005
+ },
2006
+ "aggregation": {
2007
+ "type": "string",
2008
+ "enum": [
2009
+ "FIRST",
2010
+ "LAST",
2011
+ "COUNT",
2012
+ "MAX",
2013
+ "MIN",
2014
+ "MEDIAN",
2015
+ "MEAN",
2016
+ "SUM",
2017
+ "STD_DEV",
2018
+ "NONE"
2019
+ ]
2020
+ },
2021
+ "deviceIds": {
2022
+ "type": "array",
2023
+ "maxItems": 100,
2024
+ "items": {
2025
+ "type": "string",
2026
+ "maxLength": 255
2027
+ }
2028
+ },
2029
+ "deviceTags": {
2030
+ "type": "array",
2031
+ "maxItems": 100,
2032
+ "items": {
2033
+ "type": "object",
2034
+ "properties": {
2035
+ "key": {
2036
+ "type": "string",
2037
+ "maxLength": 255
2038
+ },
2039
+ "value": {
2040
+ "type": "string",
2041
+ "maxLength": 255
2042
+ },
2043
+ "fromCtx": {
2044
+ "type": "string",
2045
+ "maxLength": 255
2046
+ }
2047
+ },
2048
+ "additionalProperties": false
2049
+ }
2050
+ },
2051
+ "duration": {
2052
+ "type": "integer",
2053
+ "minimum": 0
2054
+ }
2055
+ },
2056
+ "additionalProperties": false
2057
+ }
2058
+ ]
2059
+ }
2060
+ },
2061
+ "overlays": {
2062
+ "type": "array",
2063
+ "maxItems": 100,
2064
+ "items": {
2065
+ "oneOf": [
2066
+ {
2067
+ "type": "object",
2068
+ "properties": {
2069
+ "type": {
2070
+ "type": "string",
2071
+ "enum": [
2072
+ "indicator",
2073
+ "label",
2074
+ "image"
2075
+ ]
2076
+ },
2077
+ "size": {
2078
+ "type": "string",
2079
+ "enum": [
2080
+ "small",
2081
+ "medium",
2082
+ "large"
2083
+ ]
2084
+ },
2085
+ "position": {
2086
+ "type": "string",
2087
+ "minLength": 3,
2088
+ "maxLength": 255
2089
+ },
2090
+ "popupTemplate": {
2091
+ "type": "string",
2092
+ "maxLength": 32767
2093
+ },
2094
+ "conditions": {
2095
+ "type": "array",
2096
+ "maxItems": 100,
2097
+ "items": {
2098
+ "type": "object",
2099
+ "properties": {
2100
+ "color": {
2101
+ "type": "string",
2102
+ "maxLength": 64
2103
+ },
2104
+ "id": {
2105
+ "type": "string",
2106
+ "maxLength": 48
2107
+ },
2108
+ "label": {
2109
+ "type": "string",
2110
+ "maxLength": 32767
2111
+ },
2112
+ "condition": {
2113
+ "type": "string",
2114
+ "maxLength": 2048
2115
+ },
2116
+ "imageUrl": {
2117
+ "type": "string",
2118
+ "maxLength": 32767
2119
+ },
2120
+ "shape": {
2121
+ "type": "string",
2122
+ "enum": [
2123
+ "circle",
2124
+ "square",
2125
+ "triangle-down",
2126
+ "triangle-up",
2127
+ "octagon"
2128
+ ]
2129
+ }
2130
+ },
2131
+ "additionalProperties": false
2132
+ }
2133
+ },
2134
+ "defaultCondition": {
2135
+ "type": "object",
2136
+ "properties": {
2137
+ "color": {
2138
+ "type": "string",
2139
+ "maxLength": 64
2140
+ },
2141
+ "id": {
2142
+ "type": "string",
2143
+ "maxLength": 48
2144
+ },
2145
+ "label": {
2146
+ "type": "string",
2147
+ "maxLength": 32767
2148
+ },
2149
+ "condition": {
2150
+ "type": "string",
2151
+ "maxLength": 2048
2152
+ },
2153
+ "imageUrl": {
2154
+ "type": "string",
2155
+ "maxLength": 32767
2156
+ },
2157
+ "shape": {
2158
+ "type": "string",
2159
+ "enum": [
2160
+ "circle",
2161
+ "square",
2162
+ "triangle-down",
2163
+ "triangle-up",
2164
+ "octagon"
2165
+ ]
2166
+ }
2167
+ },
2168
+ "additionalProperties": false
2169
+ }
2170
+ },
2171
+ "required": [
2172
+ "type",
2173
+ "position",
2174
+ "size",
2175
+ "defaultCondition"
2176
+ ],
2177
+ "additionalProperties": false
2178
+ },
2179
+ {
2180
+ "type": "object",
2181
+ "properties": {
2182
+ "type": {
2183
+ "type": "string",
2184
+ "enum": [
2185
+ "value"
2186
+ ]
2187
+ },
2188
+ "size": {
2189
+ "type": "string",
2190
+ "enum": [
2191
+ "small",
2192
+ "medium",
2193
+ "large"
2194
+ ]
2195
+ },
2196
+ "position": {
2197
+ "type": "string",
2198
+ "minLength": 3,
2199
+ "maxLength": 255
2200
+ },
2201
+ "popupTemplate": {
2202
+ "type": "string",
2203
+ "maxLength": 32767
2204
+ },
2205
+ "conditions": {
2206
+ "type": "array",
2207
+ "maxItems": 100,
2208
+ "items": {
2209
+ "type": "object",
2210
+ "properties": {
2211
+ "color": {
2212
+ "type": "string",
2213
+ "maxLength": 64
2214
+ },
2215
+ "id": {
2216
+ "type": "string",
2217
+ "maxLength": 48
2218
+ },
2219
+ "label": {
2220
+ "type": "string",
2221
+ "maxLength": 32767
2222
+ },
2223
+ "condition": {
2224
+ "type": "string",
2225
+ "maxLength": 2048
2226
+ },
2227
+ "imageUrl": {
2228
+ "type": "string",
2229
+ "maxLength": 32767
2230
+ },
2231
+ "shape": {
2232
+ "type": "string",
2233
+ "enum": [
2234
+ "circle",
2235
+ "square",
2236
+ "triangle-down",
2237
+ "triangle-up",
2238
+ "octagon"
2239
+ ]
2240
+ }
2241
+ },
2242
+ "additionalProperties": false
2243
+ }
2244
+ },
2245
+ "defaultCondition": {
2246
+ "type": "object",
2247
+ "properties": {
2248
+ "color": {
2249
+ "type": "string",
2250
+ "maxLength": 64
2251
+ },
2252
+ "id": {
2253
+ "type": "string",
2254
+ "maxLength": 48
2255
+ },
2256
+ "label": {
2257
+ "type": "string",
2258
+ "maxLength": 32767
2259
+ },
2260
+ "condition": {
2261
+ "type": "string",
2262
+ "maxLength": 2048
2263
+ },
2264
+ "imageUrl": {
2265
+ "type": "string",
2266
+ "maxLength": 32767
2267
+ },
2268
+ "shape": {
2269
+ "type": "string",
2270
+ "enum": [
2271
+ "circle",
2272
+ "square",
2273
+ "triangle-down",
2274
+ "triangle-up",
2275
+ "octagon"
2276
+ ]
2277
+ }
2278
+ },
2279
+ "additionalProperties": false
2280
+ },
2281
+ "valueTemplate": {
2282
+ "type": "string",
2283
+ "maxLength": 255
2284
+ }
2285
+ },
2286
+ "required": [
2287
+ "type",
2288
+ "position",
2289
+ "size",
2290
+ "defaultCondition"
2291
+ ],
2292
+ "additionalProperties": false
2293
+ },
2294
+ {
2295
+ "type": "object",
2296
+ "properties": {
2297
+ "type": {
2298
+ "type": "string",
2299
+ "enum": [
2300
+ "bar"
2301
+ ]
2302
+ },
2303
+ "size": {
2304
+ "type": "string",
2305
+ "enum": [
2306
+ "small",
2307
+ "medium",
2308
+ "large"
2309
+ ]
2310
+ },
2311
+ "position": {
2312
+ "type": "string",
2313
+ "minLength": 3,
2314
+ "maxLength": 255
2315
+ },
2316
+ "popupTemplate": {
2317
+ "type": "string",
2318
+ "maxLength": 32767
2319
+ },
2320
+ "conditions": {
2321
+ "type": "array",
2322
+ "maxItems": 100,
2323
+ "items": {
2324
+ "type": "object",
2325
+ "properties": {
2326
+ "color": {
2327
+ "type": "string",
2328
+ "maxLength": 64
2329
+ },
2330
+ "id": {
2331
+ "type": "string",
2332
+ "maxLength": 48
2333
+ },
2334
+ "label": {
2335
+ "type": "string",
2336
+ "maxLength": 32767
2337
+ },
2338
+ "condition": {
2339
+ "type": "string",
2340
+ "maxLength": 2048
2341
+ },
2342
+ "imageUrl": {
2343
+ "type": "string",
2344
+ "maxLength": 32767
2345
+ },
2346
+ "shape": {
2347
+ "type": "string",
2348
+ "enum": [
2349
+ "circle",
2350
+ "square",
2351
+ "triangle-down",
2352
+ "triangle-up",
2353
+ "octagon"
2354
+ ]
2355
+ }
2356
+ },
2357
+ "additionalProperties": false
2358
+ }
2359
+ },
2360
+ "defaultCondition": {
2361
+ "type": "object",
2362
+ "properties": {
2363
+ "color": {
2364
+ "type": "string",
2365
+ "maxLength": 64
2366
+ },
2367
+ "id": {
2368
+ "type": "string",
2369
+ "maxLength": 48
2370
+ },
2371
+ "label": {
2372
+ "type": "string",
2373
+ "maxLength": 32767
2374
+ },
2375
+ "condition": {
2376
+ "type": "string",
2377
+ "maxLength": 2048
2378
+ },
2379
+ "imageUrl": {
2380
+ "type": "string",
2381
+ "maxLength": 32767
2382
+ },
2383
+ "shape": {
2384
+ "type": "string",
2385
+ "enum": [
2386
+ "circle",
2387
+ "square",
2388
+ "triangle-down",
2389
+ "triangle-up",
2390
+ "octagon"
2391
+ ]
2392
+ }
2393
+ },
2394
+ "additionalProperties": false
2395
+ },
2396
+ "min": {
2397
+ "oneOf": [
2398
+ {
2399
+ "type": "number"
2400
+ },
2401
+ {
2402
+ "type": "string",
2403
+ "maxLength": 64
2404
+ }
2405
+ ]
2406
+ },
2407
+ "max": {
2408
+ "oneOf": [
2409
+ {
2410
+ "type": "number"
2411
+ },
2412
+ {
2413
+ "type": "string",
2414
+ "maxLength": 64
2415
+ }
2416
+ ]
2417
+ },
2418
+ "backgroundColor": {
2419
+ "type": "string",
2420
+ "maxLength": 64
2421
+ },
2422
+ "valueTemplate": {
2423
+ "type": "string",
2424
+ "maxLength": 255
2425
+ },
2426
+ "length": {
2427
+ "type": "integer",
2428
+ "min": 1,
2429
+ "max": 10
2430
+ },
2431
+ "orientation": {
2432
+ "type": "string",
2433
+ "enum": [
2434
+ "horizontal",
2435
+ "vertical"
2436
+ ]
2437
+ }
2438
+ },
2439
+ "required": [
2440
+ "type",
2441
+ "position",
2442
+ "size",
2443
+ "defaultCondition"
2444
+ ],
2445
+ "additionalProperties": false
2446
+ }
2447
+ ]
2448
+ }
2449
+ }
2450
+ },
2451
+ "additionalProperties": false
2452
+ }
2453
+ },
2454
+ "required": [
2455
+ "blockType",
2456
+ "startX",
2457
+ "startY",
2458
+ "width",
2459
+ "height",
2460
+ "config"
2461
+ ],
2462
+ "additionalProperties": false
2463
+ },
2464
+ {
2465
+ "type": "object",
2466
+ "properties": {
2467
+ "id": {
2468
+ "type": "string",
2469
+ "maxLength": 255
2470
+ },
2471
+ "title": {
2472
+ "type": "string",
2473
+ "maxLength": 255
2474
+ },
2475
+ "description": {
2476
+ "type": "string",
2477
+ "maxLength": 32767
2478
+ },
2479
+ "applicationId": {
2480
+ "type": "string",
2481
+ "pattern": "^[A-Fa-f\\d]{24}$"
2482
+ },
2483
+ "startX": {
2484
+ "type": "number"
2485
+ },
2486
+ "startY": {
2487
+ "type": "number"
2488
+ },
2489
+ "width": {
2490
+ "type": "number"
2491
+ },
2492
+ "height": {
2493
+ "type": "number"
2494
+ },
2495
+ "blockType": {
2496
+ "type": "string",
2497
+ "enum": [
2498
+ "indicator"
2499
+ ]
2500
+ },
2501
+ "config": {
2502
+ "type": "object",
2503
+ "properties": {
2504
+ "realTime": {
2505
+ "type": "boolean"
2506
+ },
2507
+ "duration": {
2508
+ "type": "integer",
2509
+ "minimum": 0
2510
+ },
2511
+ "segments": {
2512
+ "type": "array",
2513
+ "maxItems": 255,
2514
+ "items": {
2515
+ "type": "object",
2516
+ "properties": {
2517
+ "attribute": {
2518
+ "type": "string",
2519
+ "maxLength": 255
2520
+ },
2521
+ "aggregation": {
2522
+ "type": "string",
2523
+ "enum": [
2524
+ "FIRST",
2525
+ "LAST",
2526
+ "COUNT",
2527
+ "MAX",
2528
+ "MIN",
2529
+ "MEDIAN",
2530
+ "MEAN",
2531
+ "SUM",
2532
+ "STD_DEV",
2533
+ "NONE"
2534
+ ]
2535
+ },
2536
+ "color": {
2537
+ "type": "string",
2538
+ "maxLength": 64
2539
+ },
2540
+ "deviceIds": {
2541
+ "type": "array",
2542
+ "maxItems": 100,
2543
+ "items": {
2544
+ "type": "string",
2545
+ "maxLength": 255
2546
+ }
2547
+ },
2548
+ "deviceTags": {
2549
+ "type": "array",
2550
+ "maxItems": 100,
2551
+ "items": {
2552
+ "type": "object",
2553
+ "properties": {
2554
+ "key": {
2555
+ "type": "string",
2556
+ "maxLength": 255
2557
+ },
2558
+ "value": {
2559
+ "type": "string",
2560
+ "maxLength": 255
2561
+ },
2562
+ "fromCtx": {
2563
+ "type": "string",
2564
+ "maxLength": 255
2565
+ }
2566
+ },
2567
+ "additionalProperties": false
2568
+ }
2569
+ },
2570
+ "label": {
2571
+ "type": "string",
2572
+ "maxLength": 255
2573
+ },
2574
+ "yAxisLabel": {
2575
+ "type": "string",
2576
+ "maxLength": 255
2577
+ },
2578
+ "lineWeight": {
2579
+ "type": "integer",
2580
+ "minimum": 0,
2581
+ "maximum": 5
2582
+ },
2583
+ "detectDataGaps": {
2584
+ "type": "boolean"
2585
+ },
2586
+ "graphType": {
2587
+ "type": "string",
2588
+ "maxLength": 255
2589
+ }
2590
+ },
2591
+ "additionalProperties": false
2592
+ }
2593
+ },
2594
+ "conditions": {
2595
+ "type": "array",
2596
+ "maxItems": 100,
2597
+ "items": {
2598
+ "type": "object",
2599
+ "properties": {
2600
+ "color": {
2601
+ "type": "string",
2602
+ "maxLength": 64
2603
+ },
2604
+ "id": {
2605
+ "type": "string",
2606
+ "maxLength": 48
2607
+ },
2608
+ "label": {
2609
+ "type": "string",
2610
+ "maxLength": 32767
2611
+ },
2612
+ "condition": {
2613
+ "type": "string",
2614
+ "maxLength": 2048
2615
+ },
2616
+ "imageUrl": {
2617
+ "type": "string",
2618
+ "maxLength": 32767
2619
+ },
2620
+ "shape": {
2621
+ "type": "string",
2622
+ "enum": [
2623
+ "circle",
2624
+ "square",
2625
+ "triangle-down",
2626
+ "triangle-up",
2627
+ "octagon"
2628
+ ]
2629
+ }
2630
+ },
2631
+ "additionalProperties": false
2632
+ }
2633
+ },
2634
+ "defaultCondition": {
2635
+ "type": "object",
2636
+ "properties": {
2637
+ "color": {
2638
+ "type": "string",
2639
+ "maxLength": 64
2640
+ },
2641
+ "id": {
2642
+ "type": "string",
2643
+ "maxLength": 48
2644
+ },
2645
+ "label": {
2646
+ "type": "string",
2647
+ "maxLength": 32767
2648
+ },
2649
+ "condition": {
2650
+ "type": "string",
2651
+ "maxLength": 2048
2652
+ },
2653
+ "imageUrl": {
2654
+ "type": "string",
2655
+ "maxLength": 32767
2656
+ },
2657
+ "shape": {
2658
+ "type": "string",
2659
+ "enum": [
2660
+ "circle",
2661
+ "square",
2662
+ "triangle-down",
2663
+ "triangle-up",
2664
+ "octagon"
2665
+ ]
2666
+ }
2667
+ },
2668
+ "additionalProperties": false
2669
+ }
2670
+ },
2671
+ "additionalProperties": false
2672
+ }
2673
+ },
2674
+ "required": [
2675
+ "blockType",
2676
+ "startX",
2677
+ "startY",
2678
+ "width",
2679
+ "height"
2680
+ ],
2681
+ "additionalProperties": false
2682
+ },
2683
+ {
2684
+ "type": "object",
2685
+ "properties": {
2686
+ "id": {
2687
+ "type": "string",
2688
+ "maxLength": 48
2689
+ },
2690
+ "title": {
2691
+ "type": "string",
2692
+ "maxLength": 255
2693
+ },
2694
+ "description": {
2695
+ "type": "string",
2696
+ "maxLength": 32767
2697
+ },
2698
+ "applicationId": {
2699
+ "type": "string",
2700
+ "pattern": "^[A-Fa-f\\d]{24}$"
2701
+ },
2702
+ "startX": {
2703
+ "type": "number"
2704
+ },
2705
+ "startY": {
2706
+ "type": "number"
2707
+ },
2708
+ "width": {
2709
+ "type": "number"
2710
+ },
2711
+ "height": {
2712
+ "type": "number"
2713
+ },
2714
+ "blockType": {
2715
+ "type": "string",
2716
+ "enum": [
2717
+ "input"
2718
+ ]
2719
+ },
2720
+ "config": {
2721
+ "type": "object",
2722
+ "properties": {
2723
+ "defaultMode": {
2724
+ "type": "string",
2725
+ "enum": [
2726
+ "unlocked",
2727
+ "locked"
2728
+ ]
2729
+ },
2730
+ "controls": {
2731
+ "type": "array",
2732
+ "maxItems": 100,
2733
+ "items": {
2734
+ "oneOf": [
2735
+ {
2736
+ "type": "object",
2737
+ "properties": {
2738
+ "type": {
2739
+ "type": "string",
2740
+ "enum": [
2741
+ "range"
2742
+ ]
2743
+ },
2744
+ "id": {
2745
+ "type": "string",
2746
+ "maxLength": 48
2747
+ },
2748
+ "templateId": {
2749
+ "type": "string",
2750
+ "maxLength": 64
2751
+ },
2752
+ "label": {
2753
+ "type": "string",
2754
+ "maxLength": 512
2755
+ },
2756
+ "color": {
2757
+ "type": "string",
2758
+ "maxLength": 64
2759
+ },
2760
+ "grid": {
2761
+ "type": "object",
2762
+ "properties": {
2763
+ "h": {
2764
+ "type": "number"
2765
+ },
2766
+ "w": {
2767
+ "type": "number"
2768
+ },
2769
+ "x": {
2770
+ "type": "number"
2771
+ },
2772
+ "y": {
2773
+ "type": "number"
2774
+ }
2775
+ },
2776
+ "additionalProperties": false
2777
+ },
2778
+ "defaultQuery": {
2779
+ "type": "object",
2780
+ "properties": {
2781
+ "attribute": {
2782
+ "type": "string",
2783
+ "maxLength": 255
2784
+ },
2785
+ "aggregation": {
2786
+ "type": "string",
2787
+ "enum": [
2788
+ "FIRST",
2789
+ "LAST",
2790
+ "COUNT",
2791
+ "MAX",
2792
+ "MIN",
2793
+ "MEDIAN",
2794
+ "MEAN",
2795
+ "SUM",
2796
+ "STD_DEV",
2797
+ "NONE"
2798
+ ]
2799
+ },
2800
+ "deviceIds": {
2801
+ "type": "array",
2802
+ "maxItems": 100,
2803
+ "items": {
2804
+ "type": "string",
2805
+ "maxLength": 255
2806
+ }
2807
+ },
2808
+ "deviceTags": {
2809
+ "type": "array",
2810
+ "maxItems": 100,
2811
+ "items": {
2812
+ "type": "object",
2813
+ "properties": {
2814
+ "key": {
2815
+ "type": "string",
2816
+ "maxLength": 255
2817
+ },
2818
+ "value": {
2819
+ "type": "string",
2820
+ "maxLength": 255
2821
+ },
2822
+ "fromCtx": {
2823
+ "type": "string",
2824
+ "maxLength": 255
2825
+ }
2826
+ },
2827
+ "additionalProperties": false
2828
+ }
2829
+ }
2830
+ },
2831
+ "additionalProperties": false
2832
+ },
2833
+ "max": {
2834
+ "oneOf": [
2835
+ {
2836
+ "type": "number"
2837
+ },
2838
+ {
2839
+ "type": "string",
2840
+ "maxLength": 64
2841
+ }
2842
+ ]
2843
+ },
2844
+ "min": {
2845
+ "oneOf": [
2846
+ {
2847
+ "type": "number"
2848
+ },
2849
+ {
2850
+ "type": "string",
2851
+ "maxLength": 64
2852
+ }
2853
+ ]
2854
+ },
2855
+ "step": {
2856
+ "oneOf": [
2857
+ {
2858
+ "type": "number"
2859
+ },
2860
+ {
2861
+ "type": "string",
2862
+ "maxLength": 64
2863
+ }
2864
+ ]
2865
+ },
2866
+ "defaultValue": {
2867
+ "oneOf": [
2868
+ {
2869
+ "type": "number"
2870
+ },
2871
+ {
2872
+ "type": "string",
2873
+ "maxLength": 64
2874
+ }
2875
+ ]
2876
+ }
2877
+ },
2878
+ "additionalProperties": false
2879
+ },
2880
+ {
2881
+ "type": "object",
2882
+ "properties": {
2883
+ "type": {
2884
+ "type": "string",
2885
+ "enum": [
2886
+ "toggle"
2887
+ ]
2888
+ },
2889
+ "id": {
2890
+ "type": "string",
2891
+ "maxLength": 48
2892
+ },
2893
+ "templateId": {
2894
+ "type": "string",
2895
+ "maxLength": 64
2896
+ },
2897
+ "label": {
2898
+ "type": "string",
2899
+ "maxLength": 512
2900
+ },
2901
+ "color": {
2902
+ "type": "string",
2903
+ "maxLength": 64
2904
+ },
2905
+ "grid": {
2906
+ "type": "object",
2907
+ "properties": {
2908
+ "h": {
2909
+ "type": "number"
2910
+ },
2911
+ "w": {
2912
+ "type": "number"
2913
+ },
2914
+ "x": {
2915
+ "type": "number"
2916
+ },
2917
+ "y": {
2918
+ "type": "number"
2919
+ }
2920
+ },
2921
+ "additionalProperties": false
2922
+ },
2923
+ "defaultQuery": {
2924
+ "type": "object",
2925
+ "properties": {
2926
+ "attribute": {
2927
+ "type": "string",
2928
+ "maxLength": 255
2929
+ },
2930
+ "aggregation": {
2931
+ "type": "string",
2932
+ "enum": [
2933
+ "FIRST",
2934
+ "LAST",
2935
+ "COUNT",
2936
+ "MAX",
2937
+ "MIN",
2938
+ "MEDIAN",
2939
+ "MEAN",
2940
+ "SUM",
2941
+ "STD_DEV",
2942
+ "NONE"
2943
+ ]
2944
+ },
2945
+ "deviceIds": {
2946
+ "type": "array",
2947
+ "maxItems": 100,
2948
+ "items": {
2949
+ "type": "string",
2950
+ "maxLength": 255
2951
+ }
2952
+ },
2953
+ "deviceTags": {
2954
+ "type": "array",
2955
+ "maxItems": 100,
2956
+ "items": {
2957
+ "type": "object",
2958
+ "properties": {
2959
+ "key": {
2960
+ "type": "string",
2961
+ "maxLength": 255
2962
+ },
2963
+ "value": {
2964
+ "type": "string",
2965
+ "maxLength": 255
2966
+ },
2967
+ "fromCtx": {
2968
+ "type": "string",
2969
+ "maxLength": 255
2970
+ }
2971
+ },
2972
+ "additionalProperties": false
2973
+ }
2974
+ }
2975
+ },
2976
+ "additionalProperties": false
2977
+ },
2978
+ "defaultValue": {
2979
+ "type": "boolean"
2980
+ }
2981
+ },
2982
+ "additionalProperties": false
2983
+ },
2984
+ {
2985
+ "type": "object",
2986
+ "properties": {
2987
+ "type": {
2988
+ "type": "string",
2989
+ "enum": [
2990
+ "text"
2991
+ ]
2992
+ },
2993
+ "id": {
2994
+ "type": "string",
2995
+ "maxLength": 48
2996
+ },
2997
+ "templateId": {
2998
+ "type": "string",
2999
+ "maxLength": 64
3000
+ },
3001
+ "label": {
3002
+ "type": "string",
3003
+ "maxLength": 512
3004
+ },
3005
+ "grid": {
3006
+ "type": "object",
3007
+ "properties": {
3008
+ "h": {
3009
+ "type": "number"
3010
+ },
3011
+ "w": {
3012
+ "type": "number"
3013
+ },
3014
+ "x": {
3015
+ "type": "number"
3016
+ },
3017
+ "y": {
3018
+ "type": "number"
3019
+ }
3020
+ },
3021
+ "additionalProperties": false
3022
+ },
3023
+ "defaultQuery": {
3024
+ "type": "object",
3025
+ "properties": {
3026
+ "attribute": {
3027
+ "type": "string",
3028
+ "maxLength": 255
3029
+ },
3030
+ "aggregation": {
3031
+ "type": "string",
3032
+ "enum": [
3033
+ "FIRST",
3034
+ "LAST",
3035
+ "COUNT",
3036
+ "MAX",
3037
+ "MIN",
3038
+ "MEDIAN",
3039
+ "MEAN",
3040
+ "SUM",
3041
+ "STD_DEV",
3042
+ "NONE"
3043
+ ]
3044
+ },
3045
+ "deviceIds": {
3046
+ "type": "array",
3047
+ "maxItems": 100,
3048
+ "items": {
3049
+ "type": "string",
3050
+ "maxLength": 255
3051
+ }
3052
+ },
3053
+ "deviceTags": {
3054
+ "type": "array",
3055
+ "maxItems": 100,
3056
+ "items": {
3057
+ "type": "object",
3058
+ "properties": {
3059
+ "key": {
3060
+ "type": "string",
3061
+ "maxLength": 255
3062
+ },
3063
+ "value": {
3064
+ "type": "string",
3065
+ "maxLength": 255
3066
+ },
3067
+ "fromCtx": {
3068
+ "type": "string",
3069
+ "maxLength": 255
3070
+ }
3071
+ },
3072
+ "additionalProperties": false
3073
+ }
3074
+ }
3075
+ },
3076
+ "additionalProperties": false
3077
+ },
3078
+ "defaultValue": {
3079
+ "type": "string",
3080
+ "maxLength": 2048
3081
+ }
3082
+ },
3083
+ "additionalProperties": false
3084
+ },
3085
+ {
3086
+ "type": "object",
3087
+ "properties": {
3088
+ "type": {
3089
+ "type": "string",
3090
+ "enum": [
3091
+ "select"
3092
+ ]
3093
+ },
3094
+ "id": {
3095
+ "type": "string",
3096
+ "maxLength": 48
3097
+ },
3098
+ "templateId": {
3099
+ "type": "string",
3100
+ "maxLength": 64
3101
+ },
3102
+ "label": {
3103
+ "type": "string",
3104
+ "maxLength": 512
3105
+ },
3106
+ "grid": {
3107
+ "type": "object",
3108
+ "properties": {
3109
+ "h": {
3110
+ "type": "number"
3111
+ },
3112
+ "w": {
3113
+ "type": "number"
3114
+ },
3115
+ "x": {
3116
+ "type": "number"
3117
+ },
3118
+ "y": {
3119
+ "type": "number"
3120
+ }
3121
+ },
3122
+ "additionalProperties": false
3123
+ },
3124
+ "defaultQuery": {
3125
+ "type": "object",
3126
+ "properties": {
3127
+ "attribute": {
3128
+ "type": "string",
3129
+ "maxLength": 255
3130
+ },
3131
+ "aggregation": {
3132
+ "type": "string",
3133
+ "enum": [
3134
+ "FIRST",
3135
+ "LAST",
3136
+ "COUNT",
3137
+ "MAX",
3138
+ "MIN",
3139
+ "MEDIAN",
3140
+ "MEAN",
3141
+ "SUM",
3142
+ "STD_DEV",
3143
+ "NONE"
3144
+ ]
3145
+ },
3146
+ "deviceIds": {
3147
+ "type": "array",
3148
+ "maxItems": 100,
3149
+ "items": {
3150
+ "type": "string",
3151
+ "maxLength": 255
3152
+ }
3153
+ },
3154
+ "deviceTags": {
3155
+ "type": "array",
3156
+ "maxItems": 100,
3157
+ "items": {
3158
+ "type": "object",
3159
+ "properties": {
3160
+ "key": {
3161
+ "type": "string",
3162
+ "maxLength": 255
3163
+ },
3164
+ "value": {
3165
+ "type": "string",
3166
+ "maxLength": 255
3167
+ },
3168
+ "fromCtx": {
3169
+ "type": "string",
3170
+ "maxLength": 255
3171
+ }
3172
+ },
3173
+ "additionalProperties": false
3174
+ }
3175
+ }
3176
+ },
3177
+ "additionalProperties": false
3178
+ },
3179
+ "defaultValue": {
3180
+ "type": "string",
3181
+ "maxLength": 255
3182
+ },
3183
+ "options": {
3184
+ "type": "array",
3185
+ "maxItems": 500,
3186
+ "items": {
3187
+ "type": "object",
3188
+ "properties": {
3189
+ "value": {
3190
+ "type": "string",
3191
+ "maxLength": 255
3192
+ },
3193
+ "label": {
3194
+ "type": "string",
3195
+ "maxLength": 255
3196
+ }
3197
+ },
3198
+ "additionalProperties": false
3199
+ }
3200
+ }
3201
+ },
3202
+ "additionalProperties": false
3203
+ },
3204
+ {
3205
+ "type": "object",
3206
+ "properties": {
3207
+ "type": {
3208
+ "type": "string",
3209
+ "enum": [
3210
+ "help"
3211
+ ]
3212
+ },
3213
+ "id": {
3214
+ "type": "string",
3215
+ "maxLength": 48
3216
+ },
3217
+ "templateId": {
3218
+ "type": "string",
3219
+ "maxLength": 64
3220
+ },
3221
+ "grid": {
3222
+ "type": "object",
3223
+ "properties": {
3224
+ "h": {
3225
+ "type": "number"
3226
+ },
3227
+ "w": {
3228
+ "type": "number"
3229
+ },
3230
+ "x": {
3231
+ "type": "number"
3232
+ },
3233
+ "y": {
3234
+ "type": "number"
3235
+ }
3236
+ },
3237
+ "additionalProperties": false
3238
+ },
3239
+ "help": {
3240
+ "type": "string",
3241
+ "maxLength": 32767
3242
+ }
3243
+ },
3244
+ "additionalProperties": false
3245
+ },
3246
+ {
3247
+ "type": "object",
3248
+ "properties": {
3249
+ "type": {
3250
+ "type": "string",
3251
+ "enum": [
3252
+ "button"
3253
+ ]
3254
+ },
3255
+ "action": {
3256
+ "type": "string",
3257
+ "enum": [
3258
+ "workflow",
3259
+ "command"
3260
+ ]
3261
+ },
3262
+ "id": {
3263
+ "type": "string",
3264
+ "maxLength": 48
3265
+ },
3266
+ "templateId": {
3267
+ "type": "string",
3268
+ "maxLength": 64
3269
+ },
3270
+ "label": {
3271
+ "type": "string",
3272
+ "maxLength": 512
3273
+ },
3274
+ "grid": {
3275
+ "type": "object",
3276
+ "properties": {
3277
+ "h": {
3278
+ "type": "number"
3279
+ },
3280
+ "w": {
3281
+ "type": "number"
3282
+ },
3283
+ "x": {
3284
+ "type": "number"
3285
+ },
3286
+ "y": {
3287
+ "type": "number"
3288
+ }
3289
+ },
3290
+ "additionalProperties": false
3291
+ },
3292
+ "color": {
3293
+ "type": "string",
3294
+ "maxLength": 64
3295
+ },
3296
+ "payload": {
3297
+ "type": "string",
3298
+ "maxLength": 32767
3299
+ },
3300
+ "buttonId": {
3301
+ "type": "string",
3302
+ "maxLength": 255
3303
+ },
3304
+ "workflowId": {
3305
+ "oneOf": [
3306
+ {
3307
+ "type": "string",
3308
+ "maxLength": 255
3309
+ },
3310
+ {
3311
+ "type": "null"
3312
+ }
3313
+ ]
3314
+ },
3315
+ "deviceIds": {
3316
+ "type": "array",
3317
+ "maxItems": 100,
3318
+ "items": {
3319
+ "type": "string",
3320
+ "maxLength": 255
3321
+ }
3322
+ },
3323
+ "deviceTags": {
3324
+ "type": "array",
3325
+ "maxItems": 100,
3326
+ "items": {
3327
+ "type": "object",
3328
+ "properties": {
3329
+ "key": {
3330
+ "type": "string",
3331
+ "maxLength": 255
3332
+ },
3333
+ "value": {
3334
+ "type": "string",
3335
+ "maxLength": 255
3336
+ },
3337
+ "fromCtx": {
3338
+ "type": "string",
3339
+ "maxLength": 255
3340
+ }
3341
+ },
3342
+ "additionalProperties": false
3343
+ }
3344
+ },
3345
+ "commandName": {
3346
+ "type": "string",
3347
+ "maxLength": 255
3348
+ }
3349
+ },
3350
+ "additionalProperties": false
3351
+ }
3352
+ ]
3353
+ }
3354
+ }
3355
+ },
3356
+ "additionalProperties": false
3357
+ }
3358
+ },
3359
+ "required": [
3360
+ "blockType",
3361
+ "startX",
3362
+ "startY",
3363
+ "width",
3364
+ "height"
3365
+ ],
3366
+ "additionalProperties": false
3367
+ },
3368
+ {
3369
+ "type": "object",
3370
+ "properties": {
3371
+ "id": {
3372
+ "type": "string",
3373
+ "maxLength": 48
3374
+ },
3375
+ "title": {
3376
+ "type": "string",
3377
+ "maxLength": 255
3378
+ },
3379
+ "description": {
3380
+ "type": "string",
3381
+ "maxLength": 32767
3382
+ },
3383
+ "applicationId": {
3384
+ "type": "string",
3385
+ "pattern": "^[A-Fa-f\\d]{24}$"
3386
+ },
3387
+ "startX": {
3388
+ "type": "number"
3389
+ },
3390
+ "startY": {
3391
+ "type": "number"
3392
+ },
3393
+ "width": {
3394
+ "type": "number"
3395
+ },
3396
+ "height": {
3397
+ "type": "number"
3398
+ },
3399
+ "blockType": {
3400
+ "type": "string",
3401
+ "enum": [
3402
+ "map"
3403
+ ]
3404
+ },
3405
+ "config": {
3406
+ "type": "object",
3407
+ "properties": {
3408
+ "additionalAttributes": {
3409
+ "oneOf": [
3410
+ {
3411
+ "type": "null"
3412
+ },
3413
+ {
3414
+ "type": "array",
3415
+ "maxItems": 100,
3416
+ "items": {
3417
+ "type": "string",
3418
+ "maxLength": 255
3419
+ }
3420
+ }
3421
+ ]
3422
+ },
3423
+ "attribute": {
3424
+ "type": "string",
3425
+ "maxLength": 255
3426
+ },
3427
+ "clusterPoints": {
3428
+ "type": "boolean"
3429
+ },
3430
+ "compositeResult": {
3431
+ "type": "boolean"
3432
+ },
3433
+ "defaultBearing": {
3434
+ "type": "number"
3435
+ },
3436
+ "defaultCenter": {
3437
+ "type": "string",
3438
+ "maxLength": 255
3439
+ },
3440
+ "defaultPitch": {
3441
+ "type": "number"
3442
+ },
3443
+ "defaultZoom": {
3444
+ "oneOf": [
3445
+ {
3446
+ "type": "number"
3447
+ },
3448
+ {
3449
+ "type": "string",
3450
+ "maxLength": 64
3451
+ }
3452
+ ]
3453
+ },
3454
+ "deviceIds": {
3455
+ "type": "array",
3456
+ "maxItems": 100,
3457
+ "items": {
3458
+ "type": "string",
3459
+ "maxLength": 255
3460
+ }
3461
+ },
3462
+ "deviceTags": {
3463
+ "type": "array",
3464
+ "maxItems": 100,
3465
+ "items": {
3466
+ "type": "object",
3467
+ "properties": {
3468
+ "key": {
3469
+ "type": "string",
3470
+ "maxLength": 255
3471
+ },
3472
+ "value": {
3473
+ "type": "string",
3474
+ "maxLength": 255
3475
+ },
3476
+ "fromCtx": {
3477
+ "type": "string",
3478
+ "maxLength": 255
3479
+ }
3480
+ },
3481
+ "additionalProperties": false
3482
+ }
3483
+ },
3484
+ "duration": {
3485
+ "type": "integer",
3486
+ "minimum": 0
3487
+ },
3488
+ "endColor": {
3489
+ "type": "string",
3490
+ "maxLength": 64
3491
+ },
3492
+ "iconTemplate": {
3493
+ "type": "string",
3494
+ "maxLength": 73727
3495
+ },
3496
+ "includeArrows": {
3497
+ "type": "boolean"
3498
+ },
3499
+ "includeLines": {
3500
+ "type": "boolean"
3501
+ },
3502
+ "mapStyle": {
3503
+ "type": "string",
3504
+ "enum": [
3505
+ "normal",
3506
+ "satellite"
3507
+ ]
3508
+ },
3509
+ "pinMode": {
3510
+ "type": "string",
3511
+ "enum": [
3512
+ "simple",
3513
+ "advanced"
3514
+ ]
3515
+ },
3516
+ "popupTemplate": {
3517
+ "type": "string",
3518
+ "maxLength": 32767
3519
+ },
3520
+ "resizedPins": {
3521
+ "type": "boolean"
3522
+ },
3523
+ "resolution": {
3524
+ "oneOf": [
3525
+ {
3526
+ "type": "integer",
3527
+ "minimum": 0
3528
+ },
3529
+ {
3530
+ "type": "null"
3531
+ },
3532
+ {
3533
+ "type": "string",
3534
+ "maxLength": 255
3535
+ }
3536
+ ]
3537
+ },
3538
+ "startColor": {
3539
+ "type": "string",
3540
+ "maxLength": 64
3541
+ }
3542
+ },
3543
+ "additionalProperties": false
3544
+ }
3545
+ },
3546
+ "required": [
3547
+ "blockType",
3548
+ "startX",
3549
+ "startY",
3550
+ "width",
3551
+ "height"
3552
+ ],
3553
+ "additionalProperties": false
3554
+ },
3555
+ {
3556
+ "type": "object",
3557
+ "properties": {
3558
+ "id": {
3559
+ "type": "string",
3560
+ "maxLength": 48
3561
+ },
3562
+ "title": {
3563
+ "type": "string",
3564
+ "maxLength": 255
3565
+ },
3566
+ "description": {
3567
+ "type": "string",
3568
+ "maxLength": 32767
3569
+ },
3570
+ "applicationId": {
3571
+ "type": "string",
3572
+ "pattern": "^[A-Fa-f\\d]{24}$"
3573
+ },
3574
+ "startX": {
3575
+ "type": "number"
3576
+ },
3577
+ "startY": {
3578
+ "type": "number"
3579
+ },
3580
+ "width": {
3581
+ "type": "number"
3582
+ },
3583
+ "height": {
3584
+ "type": "number"
3585
+ },
3586
+ "blockType": {
3587
+ "type": "string",
3588
+ "enum": [
3589
+ "open-event-indicator"
3590
+ ]
3591
+ },
3592
+ "config": {
3593
+ "type": "object",
3594
+ "properties": {
3595
+ "allowUpdates": {
3596
+ "type": "boolean"
3597
+ },
3598
+ "query": {
3599
+ "type": "string",
3600
+ "maxLength": 32767
3601
+ },
3602
+ "filter": {
3603
+ "type": "string",
3604
+ "maxLength": 255
3605
+ }
3606
+ },
3607
+ "additionalProperties": false
3608
+ }
3609
+ },
3610
+ "required": [
3611
+ "blockType",
3612
+ "startX",
3613
+ "startY",
3614
+ "width",
3615
+ "height"
3616
+ ],
3617
+ "additionalProperties": false
184
3618
  },
185
- "startY": {
186
- "type": "number"
3619
+ {
3620
+ "type": "object",
3621
+ "properties": {
3622
+ "id": {
3623
+ "type": "string",
3624
+ "maxLength": 48
3625
+ },
3626
+ "title": {
3627
+ "type": "string",
3628
+ "maxLength": 255
3629
+ },
3630
+ "description": {
3631
+ "type": "string",
3632
+ "maxLength": 32767
3633
+ },
3634
+ "applicationId": {
3635
+ "type": "string",
3636
+ "pattern": "^[A-Fa-f\\d]{24}$"
3637
+ },
3638
+ "startX": {
3639
+ "type": "number"
3640
+ },
3641
+ "startY": {
3642
+ "type": "number"
3643
+ },
3644
+ "width": {
3645
+ "type": "number"
3646
+ },
3647
+ "height": {
3648
+ "type": "number"
3649
+ },
3650
+ "blockType": {
3651
+ "type": "string",
3652
+ "enum": [
3653
+ "pie"
3654
+ ]
3655
+ },
3656
+ "config": {
3657
+ "type": "object",
3658
+ "properties": {
3659
+ "realTime": {
3660
+ "type": "boolean"
3661
+ },
3662
+ "duration": {
3663
+ "type": "integer",
3664
+ "minimum": 0
3665
+ },
3666
+ "percentFormat": {
3667
+ "type": "string",
3668
+ "maxLength": 255
3669
+ },
3670
+ "valueFormat": {
3671
+ "type": "string",
3672
+ "maxLength": 255
3673
+ },
3674
+ "segments": {
3675
+ "type": "array",
3676
+ "maxItems": 255,
3677
+ "items": {
3678
+ "type": "object",
3679
+ "properties": {
3680
+ "attribute": {
3681
+ "type": "string",
3682
+ "maxLength": 255
3683
+ },
3684
+ "aggregation": {
3685
+ "type": "string",
3686
+ "enum": [
3687
+ "FIRST",
3688
+ "LAST",
3689
+ "COUNT",
3690
+ "MAX",
3691
+ "MIN",
3692
+ "MEDIAN",
3693
+ "MEAN",
3694
+ "SUM",
3695
+ "STD_DEV",
3696
+ "NONE"
3697
+ ]
3698
+ },
3699
+ "color": {
3700
+ "type": "string",
3701
+ "maxLength": 64
3702
+ },
3703
+ "deviceIds": {
3704
+ "type": "array",
3705
+ "maxItems": 100,
3706
+ "items": {
3707
+ "type": "string",
3708
+ "maxLength": 255
3709
+ }
3710
+ },
3711
+ "deviceTags": {
3712
+ "type": "array",
3713
+ "maxItems": 100,
3714
+ "items": {
3715
+ "type": "object",
3716
+ "properties": {
3717
+ "key": {
3718
+ "type": "string",
3719
+ "maxLength": 255
3720
+ },
3721
+ "value": {
3722
+ "type": "string",
3723
+ "maxLength": 255
3724
+ },
3725
+ "fromCtx": {
3726
+ "type": "string",
3727
+ "maxLength": 255
3728
+ }
3729
+ },
3730
+ "additionalProperties": false
3731
+ }
3732
+ },
3733
+ "label": {
3734
+ "type": "string",
3735
+ "maxLength": 255
3736
+ },
3737
+ "yAxisLabel": {
3738
+ "type": "string",
3739
+ "maxLength": 255
3740
+ },
3741
+ "lineWeight": {
3742
+ "type": "integer",
3743
+ "minimum": 0,
3744
+ "maximum": 5
3745
+ },
3746
+ "detectDataGaps": {
3747
+ "type": "boolean"
3748
+ },
3749
+ "graphType": {
3750
+ "type": "string",
3751
+ "maxLength": 255
3752
+ }
3753
+ },
3754
+ "additionalProperties": false
3755
+ }
3756
+ }
3757
+ },
3758
+ "additionalProperties": false
3759
+ }
3760
+ },
3761
+ "required": [
3762
+ "blockType",
3763
+ "startX",
3764
+ "startY",
3765
+ "width",
3766
+ "height"
3767
+ ],
3768
+ "additionalProperties": false
187
3769
  },
188
- "width": {
189
- "type": "number"
3770
+ {
3771
+ "type": "object",
3772
+ "properties": {
3773
+ "id": {
3774
+ "type": "string",
3775
+ "maxLength": 48
3776
+ },
3777
+ "title": {
3778
+ "type": "string",
3779
+ "maxLength": 255
3780
+ },
3781
+ "description": {
3782
+ "type": "string",
3783
+ "maxLength": 32767
3784
+ },
3785
+ "applicationId": {
3786
+ "type": "string",
3787
+ "pattern": "^[A-Fa-f\\d]{24}$"
3788
+ },
3789
+ "startX": {
3790
+ "type": "number"
3791
+ },
3792
+ "startY": {
3793
+ "type": "number"
3794
+ },
3795
+ "width": {
3796
+ "type": "number"
3797
+ },
3798
+ "height": {
3799
+ "type": "number"
3800
+ },
3801
+ "blockType": {
3802
+ "type": "string",
3803
+ "enum": [
3804
+ "position-chart"
3805
+ ]
3806
+ },
3807
+ "config": {
3808
+ "type": "object",
3809
+ "properties": {
3810
+ "additionalAttributes": {
3811
+ "oneOf": [
3812
+ {
3813
+ "type": "null"
3814
+ },
3815
+ {
3816
+ "type": "array",
3817
+ "maxItems": 100,
3818
+ "items": {
3819
+ "type": "string",
3820
+ "maxLength": 255
3821
+ }
3822
+ }
3823
+ ]
3824
+ },
3825
+ "compositeResult": {
3826
+ "type": "boolean"
3827
+ },
3828
+ "coordinateA": {
3829
+ "type": "string",
3830
+ "minLength": 3,
3831
+ "maxLength": 255
3832
+ },
3833
+ "coordinateB": {
3834
+ "type": "string",
3835
+ "minLength": 3,
3836
+ "maxLength": 255
3837
+ },
3838
+ "defaultCenter": {
3839
+ "type": "string",
3840
+ "minLength": 3,
3841
+ "maxLength": 255
3842
+ },
3843
+ "defaultZoom": {
3844
+ "oneOf": [
3845
+ {
3846
+ "type": "number"
3847
+ },
3848
+ {
3849
+ "type": "string",
3850
+ "maxLength": 64
3851
+ }
3852
+ ]
3853
+ },
3854
+ "deviceIds": {
3855
+ "type": "array",
3856
+ "maxItems": 100,
3857
+ "items": {
3858
+ "type": "string",
3859
+ "maxLength": 255
3860
+ }
3861
+ },
3862
+ "deviceTags": {
3863
+ "type": "array",
3864
+ "maxItems": 100,
3865
+ "items": {
3866
+ "type": "object",
3867
+ "properties": {
3868
+ "key": {
3869
+ "type": "string",
3870
+ "maxLength": 255
3871
+ },
3872
+ "value": {
3873
+ "type": "string",
3874
+ "maxLength": 255
3875
+ },
3876
+ "fromCtx": {
3877
+ "type": "string",
3878
+ "maxLength": 255
3879
+ }
3880
+ },
3881
+ "additionalProperties": false
3882
+ }
3883
+ },
3884
+ "duration": {
3885
+ "type": "integer",
3886
+ "minimum": 0
3887
+ },
3888
+ "endColor": {
3889
+ "type": "string",
3890
+ "maxLength": 64
3891
+ },
3892
+ "iconTemplate": {
3893
+ "type": "string",
3894
+ "maxLength": 73727
3895
+ },
3896
+ "imageUrl": {
3897
+ "type": "string",
3898
+ "maxLength": 32767
3899
+ },
3900
+ "includeArrows": {
3901
+ "type": "boolean"
3902
+ },
3903
+ "includeLines": {
3904
+ "type": "boolean"
3905
+ },
3906
+ "pinMode": {
3907
+ "type": "string",
3908
+ "enum": [
3909
+ "simple",
3910
+ "advanced"
3911
+ ]
3912
+ },
3913
+ "pixelA": {
3914
+ "type": "string",
3915
+ "minLength": 3,
3916
+ "maxLength": 255
3917
+ },
3918
+ "pixelB": {
3919
+ "type": "string",
3920
+ "minLength": 3,
3921
+ "maxLength": 255
3922
+ },
3923
+ "popupTemplate": {
3924
+ "type": "string",
3925
+ "maxLength": 32767
3926
+ },
3927
+ "resizedPins": {
3928
+ "type": "boolean"
3929
+ },
3930
+ "resolution": {
3931
+ "oneOf": [
3932
+ {
3933
+ "type": "integer",
3934
+ "minimum": 0
3935
+ },
3936
+ {
3937
+ "type": "null"
3938
+ },
3939
+ {
3940
+ "type": "string",
3941
+ "maxLength": 255
3942
+ }
3943
+ ]
3944
+ },
3945
+ "startColor": {
3946
+ "type": "string",
3947
+ "maxLength": 64
3948
+ },
3949
+ "xAttribute": {
3950
+ "type": "string",
3951
+ "maxLength": 255
3952
+ },
3953
+ "yAttribute": {
3954
+ "type": "string",
3955
+ "maxLength": 255
3956
+ }
3957
+ },
3958
+ "additionalProperties": false
3959
+ }
3960
+ },
3961
+ "required": [
3962
+ "blockType",
3963
+ "startX",
3964
+ "startY",
3965
+ "width",
3966
+ "height"
3967
+ ],
3968
+ "additionalProperties": false
190
3969
  },
191
- "height": {
192
- "type": "number"
3970
+ {
3971
+ "type": "object",
3972
+ "properties": {
3973
+ "id": {
3974
+ "type": "string",
3975
+ "maxLength": 48
3976
+ },
3977
+ "title": {
3978
+ "type": "string",
3979
+ "maxLength": 255
3980
+ },
3981
+ "description": {
3982
+ "type": "string",
3983
+ "maxLength": 32767
3984
+ },
3985
+ "applicationId": {
3986
+ "type": "string",
3987
+ "pattern": "^[A-Fa-f\\d]{24}$"
3988
+ },
3989
+ "startX": {
3990
+ "type": "number"
3991
+ },
3992
+ "startY": {
3993
+ "type": "number"
3994
+ },
3995
+ "width": {
3996
+ "type": "number"
3997
+ },
3998
+ "height": {
3999
+ "type": "number"
4000
+ },
4001
+ "blockType": {
4002
+ "type": "string",
4003
+ "enum": [
4004
+ "section-header"
4005
+ ]
4006
+ },
4007
+ "config": {
4008
+ "type": "object",
4009
+ "properties": {
4010
+ "title": {
4011
+ "type": "string",
4012
+ "maxLength": 255
4013
+ },
4014
+ "content": {
4015
+ "type": "string",
4016
+ "maxLength": 32767
4017
+ }
4018
+ },
4019
+ "additionalProperties": false
4020
+ }
4021
+ },
4022
+ "required": [
4023
+ "blockType",
4024
+ "startX",
4025
+ "startY",
4026
+ "width",
4027
+ "height"
4028
+ ],
4029
+ "additionalProperties": false
193
4030
  },
194
- "config": {
195
- "type": "object"
4031
+ {
4032
+ "type": "object",
4033
+ "properties": {
4034
+ "id": {
4035
+ "type": "string",
4036
+ "maxLength": 48
4037
+ },
4038
+ "title": {
4039
+ "type": "string",
4040
+ "maxLength": 255
4041
+ },
4042
+ "description": {
4043
+ "type": "string",
4044
+ "maxLength": 32767
4045
+ },
4046
+ "applicationId": {
4047
+ "type": "string",
4048
+ "pattern": "^[A-Fa-f\\d]{24}$"
4049
+ },
4050
+ "startX": {
4051
+ "type": "number"
4052
+ },
4053
+ "startY": {
4054
+ "type": "number"
4055
+ },
4056
+ "width": {
4057
+ "type": "number"
4058
+ },
4059
+ "height": {
4060
+ "type": "number"
4061
+ },
4062
+ "blockType": {
4063
+ "type": "string",
4064
+ "enum": [
4065
+ "workflow-list"
4066
+ ]
4067
+ },
4068
+ "config": {
4069
+ "type": "object",
4070
+ "properties": {
4071
+ "filter": {
4072
+ "type": "string",
4073
+ "maxLength": 255
4074
+ },
4075
+ "includeCloud": {
4076
+ "type": "boolean"
4077
+ },
4078
+ "includeEdge": {
4079
+ "type": "boolean"
4080
+ },
4081
+ "includeExperience": {
4082
+ "type": "boolean"
4083
+ }
4084
+ },
4085
+ "additionalProperties": false
4086
+ }
4087
+ },
4088
+ "required": [
4089
+ "blockType",
4090
+ "startX",
4091
+ "startY",
4092
+ "width",
4093
+ "height"
4094
+ ],
4095
+ "additionalProperties": false
196
4096
  }
197
- },
198
- "required": [
199
- "blockType",
200
- "startX",
201
- "startY",
202
- "width",
203
- "height"
204
- ],
205
- "additionalProperties": false
4097
+ ]
206
4098
  }
207
4099
  },
208
4100
  "contextConfiguration": {
@@ -252,7 +4144,8 @@
252
4144
  "name",
253
4145
  "type",
254
4146
  "defaultValue"
255
- ]
4147
+ ],
4148
+ "additionalProperties": false
256
4149
  },
257
4150
  {
258
4151
  "type": "object",
@@ -319,7 +4212,8 @@
319
4212
  "name",
320
4213
  "type",
321
4214
  "defaultValue"
322
- ]
4215
+ ],
4216
+ "additionalProperties": false
323
4217
  },
324
4218
  {
325
4219
  "type": "object",
@@ -386,7 +4280,8 @@
386
4280
  "name",
387
4281
  "type",
388
4282
  "defaultValue"
389
- ]
4283
+ ],
4284
+ "additionalProperties": false
390
4285
  },
391
4286
  {
392
4287
  "type": "object",
@@ -431,7 +4326,8 @@
431
4326
  "name",
432
4327
  "type",
433
4328
  "defaultValue"
434
- ]
4329
+ ],
4330
+ "additionalProperties": false
435
4331
  },
436
4332
  {
437
4333
  "type": "object",
@@ -472,7 +4368,8 @@
472
4368
  "name",
473
4369
  "type",
474
4370
  "defaultValue"
475
- ]
4371
+ ],
4372
+ "additionalProperties": false
476
4373
  },
477
4374
  {
478
4375
  "type": "object",
@@ -517,7 +4414,8 @@
517
4414
  "name",
518
4415
  "type",
519
4416
  "defaultValue"
520
- ]
4417
+ ],
4418
+ "additionalProperties": false
521
4419
  }
522
4420
  ]
523
4421
  },
@@ -551,7 +4449,10 @@
551
4449
  "type": "string",
552
4450
  "enum": [
553
4451
  "asc",
554
- "desc"
4452
+ "desc",
4453
+ "ASC",
4454
+ "DESC",
4455
+ ""
555
4456
  ]
556
4457
  },
557
4458
  "orgId": {