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