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