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