@hpcc-js/ddl-shim 2.22.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/schema/v1.json DELETED
@@ -1,1386 +0,0 @@
1
- {
2
- "$ref": "#/definitions/DDLSchema",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "ChoroColor": {
6
- "enum": [
7
- "default",
8
- "YlGn",
9
- "YlGnBu",
10
- "GnBu",
11
- "BuGn",
12
- "PuBuGn",
13
- "PuBu",
14
- "BuPu",
15
- "RdPu",
16
- "PuRd",
17
- "OrRd",
18
- "YlOrRd",
19
- "YlOrBr",
20
- "Purples",
21
- "Blues",
22
- "Greens",
23
- "Oranges",
24
- "Reds",
25
- "Greys",
26
- "PuOr",
27
- "BrBG",
28
- "PRGn",
29
- "PiYG",
30
- "RdBu",
31
- "RdGy",
32
- "RdYlBu",
33
- "Spectral",
34
- "RdYlGn",
35
- "RdWhGr"
36
- ],
37
- "type": "string"
38
- },
39
- "DDLSchema": {
40
- "$ref": "#/definitions/IDDL"
41
- },
42
- "IAnyChoroMapping": {
43
- "anyOf": [
44
- {
45
- "$ref": "#/definitions/IChoroUSStateMapping"
46
- },
47
- {
48
- "$ref": "#/definitions/IChoroUSCountyMapping"
49
- },
50
- {
51
- "$ref": "#/definitions/IChoroGeohashMapping"
52
- }
53
- ]
54
- },
55
- "IAnyDatasource": {
56
- "anyOf": [
57
- {
58
- "$ref": "#/definitions/IWorkunitDatasource"
59
- },
60
- {
61
- "$ref": "#/definitions/IDatabombDatasource"
62
- },
63
- {
64
- "$ref": "#/definitions/IHipieDatasource"
65
- }
66
- ]
67
- },
68
- "IAnyVisualization": {
69
- "anyOf": [
70
- {
71
- "$ref": "#/definitions/IPieVisualization"
72
- },
73
- {
74
- "$ref": "#/definitions/ILineVisualization"
75
- },
76
- {
77
- "$ref": "#/definitions/ITableVisualization"
78
- },
79
- {
80
- "$ref": "#/definitions/IChoroVisualization"
81
- },
82
- {
83
- "$ref": "#/definitions/IGraphVisualization"
84
- },
85
- {
86
- "$ref": "#/definitions/IHeatMapVisualization"
87
- },
88
- {
89
- "$ref": "#/definitions/ISliderVisualization"
90
- },
91
- {
92
- "$ref": "#/definitions/IFormVisualization"
93
- }
94
- ]
95
- },
96
- "IChoroGeohashMapping": {
97
- "additionalProperties": false,
98
- "properties": {
99
- "geohash": {
100
- "type": "string"
101
- },
102
- "weight": {
103
- "anyOf": [
104
- {
105
- "type": "string"
106
- },
107
- {
108
- "items": {
109
- "type": "string"
110
- },
111
- "type": "array"
112
- }
113
- ]
114
- }
115
- },
116
- "required": [
117
- "geohash",
118
- "weight"
119
- ],
120
- "type": "object"
121
- },
122
- "IChoroSource": {
123
- "additionalProperties": false,
124
- "properties": {
125
- "first": {
126
- "type": [
127
- "string",
128
- "number"
129
- ]
130
- },
131
- "id": {
132
- "type": "string"
133
- },
134
- "mappings": {
135
- "$ref": "#/definitions/IAnyChoroMapping"
136
- },
137
- "output": {
138
- "type": "string"
139
- },
140
- "properties": {
141
- "$ref": "#/definitions/StringStringDict"
142
- },
143
- "reverse": {
144
- "type": "boolean"
145
- },
146
- "sort": {
147
- "items": {
148
- "type": "string"
149
- },
150
- "type": "array"
151
- }
152
- },
153
- "required": [
154
- "id",
155
- "mappings",
156
- "output"
157
- ],
158
- "type": "object"
159
- },
160
- "IChoroUSCountyMapping": {
161
- "additionalProperties": false,
162
- "properties": {
163
- "county": {
164
- "type": "string"
165
- },
166
- "weight": {
167
- "anyOf": [
168
- {
169
- "type": "string"
170
- },
171
- {
172
- "items": {
173
- "type": "string"
174
- },
175
- "type": "array"
176
- }
177
- ]
178
- }
179
- },
180
- "required": [
181
- "county",
182
- "weight"
183
- ],
184
- "type": "object"
185
- },
186
- "IChoroUSStateMapping": {
187
- "additionalProperties": false,
188
- "properties": {
189
- "state": {
190
- "type": "string"
191
- },
192
- "weight": {
193
- "anyOf": [
194
- {
195
- "type": "string"
196
- },
197
- {
198
- "items": {
199
- "type": "string"
200
- },
201
- "type": "array"
202
- }
203
- ]
204
- }
205
- },
206
- "required": [
207
- "state",
208
- "weight"
209
- ],
210
- "type": "object"
211
- },
212
- "IChoroVisualization": {
213
- "additionalProperties": false,
214
- "properties": {
215
- "color": {
216
- "$ref": "#/definitions/ChoroColor"
217
- },
218
- "events": {
219
- "additionalProperties": {
220
- "$ref": "#/definitions/IEvent"
221
- },
222
- "type": "object"
223
- },
224
- "fields": {
225
- "items": {
226
- "$ref": "#/definitions/IVisualizationField"
227
- },
228
- "type": "array"
229
- },
230
- "id": {
231
- "type": "string"
232
- },
233
- "onSelect": {},
234
- "properties": {
235
- "properties": {
236
- "charttype": {
237
- "type": "string"
238
- }
239
- },
240
- "type": "object"
241
- },
242
- "source": {
243
- "$ref": "#/definitions/IChoroSource"
244
- },
245
- "title": {
246
- "type": "string"
247
- },
248
- "type": {
249
- "const": "CHORO",
250
- "type": "string"
251
- },
252
- "visualizations": {
253
- "items": {
254
- "$ref": "#/definitions/IChoroVisualization"
255
- },
256
- "type": "array"
257
- }
258
- },
259
- "required": [
260
- "id",
261
- "source",
262
- "type"
263
- ],
264
- "type": "object"
265
- },
266
- "IDDL": {
267
- "additionalProperties": false,
268
- "properties": {
269
- "dashboards": {
270
- "items": {
271
- "$ref": "#/definitions/IDashboard"
272
- },
273
- "type": "array"
274
- },
275
- "datasources": {
276
- "items": {
277
- "$ref": "#/definitions/IAnyDatasource"
278
- },
279
- "type": "array"
280
- },
281
- "hipieversion": {
282
- "type": "string"
283
- },
284
- "visualizationversion": {
285
- "type": "string"
286
- }
287
- },
288
- "required": [
289
- "dashboards",
290
- "datasources",
291
- "hipieversion",
292
- "visualizationversion"
293
- ],
294
- "type": "object"
295
- },
296
- "IDashboard": {
297
- "additionalProperties": false,
298
- "properties": {
299
- "enable": {
300
- "type": "string"
301
- },
302
- "id": {
303
- "type": "string"
304
- },
305
- "label": {
306
- "type": "string"
307
- },
308
- "primary": {
309
- "type": "boolean"
310
- },
311
- "title": {
312
- "type": "string"
313
- },
314
- "visualizations": {
315
- "items": {
316
- "$ref": "#/definitions/IAnyVisualization"
317
- },
318
- "type": "array"
319
- }
320
- },
321
- "required": [
322
- "visualizations"
323
- ],
324
- "type": "object"
325
- },
326
- "IDatabombDatasource": {
327
- "additionalProperties": false,
328
- "properties": {
329
- "databomb": {
330
- "const": true,
331
- "type": "boolean"
332
- },
333
- "filter": {
334
- "items": {
335
- "$ref": "#/definitions/IFilter"
336
- },
337
- "type": "array"
338
- },
339
- "id": {
340
- "type": "string"
341
- },
342
- "outputs": {
343
- "items": {
344
- "$ref": "#/definitions/IOutput"
345
- },
346
- "type": "array"
347
- }
348
- },
349
- "required": [
350
- "databomb",
351
- "id",
352
- "outputs"
353
- ],
354
- "type": "object"
355
- },
356
- "IEvent": {
357
- "additionalProperties": false,
358
- "properties": {
359
- "mappings": {
360
- "$ref": "#/definitions/StringStringDict"
361
- },
362
- "updates": {
363
- "items": {
364
- "$ref": "#/definitions/IEventUpdate"
365
- },
366
- "type": "array"
367
- }
368
- },
369
- "required": [
370
- "updates"
371
- ],
372
- "type": "object"
373
- },
374
- "IEventUpdate": {
375
- "additionalProperties": false,
376
- "properties": {
377
- "col": {
378
- "type": "string"
379
- },
380
- "datasource": {
381
- "type": "string"
382
- },
383
- "instance": {
384
- "type": "string"
385
- },
386
- "mappings": {
387
- "$ref": "#/definitions/StringStringDict"
388
- },
389
- "merge": {
390
- "type": "boolean"
391
- },
392
- "visualization": {
393
- "type": "string"
394
- }
395
- },
396
- "required": [
397
- "visualization",
398
- "datasource",
399
- "merge"
400
- ],
401
- "type": "object"
402
- },
403
- "IFilter": {
404
- "additionalProperties": false,
405
- "properties": {
406
- "fieldid": {
407
- "type": "string"
408
- },
409
- "maxid": {
410
- "type": "string"
411
- },
412
- "minid": {
413
- "type": "string"
414
- },
415
- "nullable": {
416
- "type": "boolean"
417
- },
418
- "rule": {
419
- "$ref": "#/definitions/IFilterRule"
420
- }
421
- },
422
- "required": [
423
- "fieldid",
424
- "nullable",
425
- "rule"
426
- ],
427
- "type": "object"
428
- },
429
- "IFilterRule": {
430
- "enum": [
431
- "==",
432
- "!=",
433
- "<",
434
- "<=",
435
- ">",
436
- ">=",
437
- "set",
438
- "notequals"
439
- ],
440
- "type": "string"
441
- },
442
- "IFormVisualization": {
443
- "additionalProperties": false,
444
- "properties": {
445
- "color": {},
446
- "events": {
447
- "additionalProperties": {
448
- "$ref": "#/definitions/IEvent"
449
- },
450
- "type": "object"
451
- },
452
- "fields": {
453
- "items": {
454
- "$ref": "#/definitions/IVisualizationField"
455
- },
456
- "type": "array"
457
- },
458
- "id": {
459
- "type": "string"
460
- },
461
- "onSelect": {},
462
- "properties": {
463
- "properties": {
464
- "charttype": {
465
- "type": "string"
466
- }
467
- },
468
- "type": "object"
469
- },
470
- "title": {
471
- "type": "string"
472
- },
473
- "type": {
474
- "const": "FORM",
475
- "type": "string"
476
- }
477
- },
478
- "required": [
479
- "id",
480
- "type"
481
- ],
482
- "type": "object"
483
- },
484
- "IGraphLink": {
485
- "additionalProperties": false,
486
- "properties": {
487
- "childfile": {
488
- "type": "string"
489
- },
490
- "mappings": {
491
- "$ref": "#/definitions/IGraphLinkMapping"
492
- }
493
- },
494
- "required": [
495
- "mappings",
496
- "childfile"
497
- ],
498
- "type": "object"
499
- },
500
- "IGraphLinkMapping": {
501
- "additionalProperties": false,
502
- "properties": {
503
- "uid": {
504
- "type": "string"
505
- }
506
- },
507
- "required": [
508
- "uid"
509
- ],
510
- "type": "object"
511
- },
512
- "IGraphMapping": {
513
- "additionalProperties": false,
514
- "properties": {
515
- "flags": {
516
- "type": "string"
517
- },
518
- "label": {
519
- "type": "string"
520
- },
521
- "uid": {
522
- "type": "string"
523
- },
524
- "weight": {
525
- "type": "string"
526
- }
527
- },
528
- "required": [
529
- "uid",
530
- "label",
531
- "weight",
532
- "flags"
533
- ],
534
- "type": "object"
535
- },
536
- "IGraphSource": {
537
- "additionalProperties": false,
538
- "properties": {
539
- "first": {
540
- "type": [
541
- "string",
542
- "number"
543
- ]
544
- },
545
- "id": {
546
- "type": "string"
547
- },
548
- "link": {
549
- "$ref": "#/definitions/IGraphLink"
550
- },
551
- "mappings": {
552
- "$ref": "#/definitions/IGraphMapping"
553
- },
554
- "output": {
555
- "type": "string"
556
- },
557
- "properties": {
558
- "$ref": "#/definitions/StringStringDict"
559
- },
560
- "reverse": {
561
- "type": "boolean"
562
- },
563
- "sort": {
564
- "items": {
565
- "type": "string"
566
- },
567
- "type": "array"
568
- }
569
- },
570
- "required": [
571
- "id",
572
- "link",
573
- "mappings",
574
- "output"
575
- ],
576
- "type": "object"
577
- },
578
- "IGraphVisualization": {
579
- "additionalProperties": false,
580
- "properties": {
581
- "color": {},
582
- "events": {
583
- "additionalProperties": {
584
- "$ref": "#/definitions/IEvent"
585
- },
586
- "type": "object"
587
- },
588
- "fields": {
589
- "items": {
590
- "$ref": "#/definitions/IVisualizationField"
591
- },
592
- "type": "array"
593
- },
594
- "flag": {
595
- "items": {
596
- "$ref": "#/definitions/IVisualizationIcon"
597
- },
598
- "type": "array"
599
- },
600
- "icon": {
601
- "$ref": "#/definitions/IVisualizationIcon"
602
- },
603
- "id": {
604
- "type": "string"
605
- },
606
- "label": {
607
- "items": {
608
- "type": "string"
609
- },
610
- "type": "array"
611
- },
612
- "onSelect": {},
613
- "properties": {
614
- "properties": {
615
- "charttype": {
616
- "type": "string"
617
- }
618
- },
619
- "type": "object"
620
- },
621
- "source": {
622
- "$ref": "#/definitions/IGraphSource"
623
- },
624
- "title": {
625
- "type": "string"
626
- },
627
- "type": {
628
- "const": "GRAPH",
629
- "type": "string"
630
- }
631
- },
632
- "required": [
633
- "flag",
634
- "icon",
635
- "id",
636
- "label",
637
- "source",
638
- "type"
639
- ],
640
- "type": "object"
641
- },
642
- "IHeatMapMapping": {
643
- "additionalProperties": false,
644
- "properties": {
645
- "weight": {
646
- "type": "string"
647
- },
648
- "x": {
649
- "type": "string"
650
- },
651
- "y": {
652
- "type": "string"
653
- }
654
- },
655
- "required": [
656
- "x",
657
- "y",
658
- "weight"
659
- ],
660
- "type": "object"
661
- },
662
- "IHeatMapSource": {
663
- "additionalProperties": false,
664
- "properties": {
665
- "first": {
666
- "type": [
667
- "string",
668
- "number"
669
- ]
670
- },
671
- "id": {
672
- "type": "string"
673
- },
674
- "mappings": {
675
- "$ref": "#/definitions/IHeatMapMapping"
676
- },
677
- "output": {
678
- "type": "string"
679
- },
680
- "properties": {
681
- "$ref": "#/definitions/StringStringDict"
682
- },
683
- "reverse": {
684
- "type": "boolean"
685
- },
686
- "sort": {
687
- "items": {
688
- "type": "string"
689
- },
690
- "type": "array"
691
- }
692
- },
693
- "required": [
694
- "id",
695
- "mappings",
696
- "output"
697
- ],
698
- "type": "object"
699
- },
700
- "IHeatMapVisualization": {
701
- "additionalProperties": false,
702
- "properties": {
703
- "color": {},
704
- "events": {
705
- "additionalProperties": {
706
- "$ref": "#/definitions/IEvent"
707
- },
708
- "type": "object"
709
- },
710
- "fields": {
711
- "items": {
712
- "$ref": "#/definitions/IVisualizationField"
713
- },
714
- "type": "array"
715
- },
716
- "id": {
717
- "type": "string"
718
- },
719
- "onSelect": {},
720
- "properties": {
721
- "properties": {
722
- "charttype": {
723
- "type": "string"
724
- }
725
- },
726
- "type": "object"
727
- },
728
- "source": {
729
- "$ref": "#/definitions/IHeatMapSource"
730
- },
731
- "title": {
732
- "type": "string"
733
- },
734
- "type": {
735
- "const": "HEAT_MAP",
736
- "type": "string"
737
- }
738
- },
739
- "required": [
740
- "id",
741
- "source",
742
- "type"
743
- ],
744
- "type": "object"
745
- },
746
- "IHipieDatasource": {
747
- "additionalProperties": false,
748
- "properties": {
749
- "URL": {
750
- "type": "string"
751
- },
752
- "filter": {
753
- "items": {
754
- "$ref": "#/definitions/IFilter"
755
- },
756
- "type": "array"
757
- },
758
- "id": {
759
- "type": "string"
760
- },
761
- "outputs": {
762
- "items": {
763
- "$ref": "#/definitions/IOutput"
764
- },
765
- "type": "array"
766
- }
767
- },
768
- "required": [
769
- "URL",
770
- "id",
771
- "outputs"
772
- ],
773
- "type": "object"
774
- },
775
- "IIcon": {
776
- "additionalProperties": {
777
- "type": [
778
- "string",
779
- "number",
780
- "boolean"
781
- ]
782
- },
783
- "type": "object"
784
- },
785
- "ILineMapping": {
786
- "additionalProperties": false,
787
- "properties": {
788
- "x": {
789
- "items": {
790
- "type": "string"
791
- },
792
- "type": "array"
793
- },
794
- "y": {
795
- "items": {
796
- "type": "string"
797
- },
798
- "type": "array"
799
- }
800
- },
801
- "required": [
802
- "x",
803
- "y"
804
- ],
805
- "type": "object"
806
- },
807
- "ILineSource": {
808
- "additionalProperties": false,
809
- "properties": {
810
- "first": {
811
- "type": [
812
- "string",
813
- "number"
814
- ]
815
- },
816
- "id": {
817
- "type": "string"
818
- },
819
- "mappings": {
820
- "$ref": "#/definitions/ILineMapping"
821
- },
822
- "output": {
823
- "type": "string"
824
- },
825
- "properties": {
826
- "$ref": "#/definitions/StringStringDict"
827
- },
828
- "reverse": {
829
- "type": "boolean"
830
- },
831
- "sort": {
832
- "items": {
833
- "type": "string"
834
- },
835
- "type": "array"
836
- }
837
- },
838
- "required": [
839
- "id",
840
- "mappings",
841
- "output"
842
- ],
843
- "type": "object"
844
- },
845
- "ILineVisualization": {
846
- "additionalProperties": false,
847
- "properties": {
848
- "color": {},
849
- "events": {
850
- "additionalProperties": {
851
- "$ref": "#/definitions/IEvent"
852
- },
853
- "type": "object"
854
- },
855
- "fields": {
856
- "items": {
857
- "$ref": "#/definitions/IVisualizationField"
858
- },
859
- "type": "array"
860
- },
861
- "id": {
862
- "type": "string"
863
- },
864
- "onSelect": {},
865
- "properties": {
866
- "properties": {
867
- "charttype": {
868
- "type": "string"
869
- }
870
- },
871
- "type": "object"
872
- },
873
- "source": {
874
- "$ref": "#/definitions/ILineSource"
875
- },
876
- "title": {
877
- "type": "string"
878
- },
879
- "type": {
880
- "const": "LINE",
881
- "type": "string"
882
- }
883
- },
884
- "required": [
885
- "id",
886
- "source",
887
- "type"
888
- ],
889
- "type": "object"
890
- },
891
- "IOutput": {
892
- "additionalProperties": false,
893
- "properties": {
894
- "filter": {
895
- "items": {
896
- "$ref": "#/definitions/IFilter"
897
- },
898
- "type": "array"
899
- },
900
- "from": {
901
- "type": "string"
902
- },
903
- "id": {
904
- "type": "string"
905
- },
906
- "notify": {
907
- "items": {
908
- "type": "string"
909
- },
910
- "type": "array"
911
- }
912
- },
913
- "required": [
914
- "id"
915
- ],
916
- "type": "object"
917
- },
918
- "IPieMapping": {
919
- "additionalProperties": false,
920
- "properties": {
921
- "label": {
922
- "type": "string"
923
- },
924
- "weight": {
925
- "type": "string"
926
- }
927
- },
928
- "required": [
929
- "label",
930
- "weight"
931
- ],
932
- "type": "object"
933
- },
934
- "IPieSource": {
935
- "additionalProperties": false,
936
- "properties": {
937
- "first": {
938
- "type": [
939
- "string",
940
- "number"
941
- ]
942
- },
943
- "id": {
944
- "type": "string"
945
- },
946
- "mappings": {
947
- "$ref": "#/definitions/IPieMapping"
948
- },
949
- "output": {
950
- "type": "string"
951
- },
952
- "properties": {
953
- "$ref": "#/definitions/StringStringDict"
954
- },
955
- "reverse": {
956
- "type": "boolean"
957
- },
958
- "sort": {
959
- "items": {
960
- "type": "string"
961
- },
962
- "type": "array"
963
- }
964
- },
965
- "required": [
966
- "id",
967
- "mappings",
968
- "output"
969
- ],
970
- "type": "object"
971
- },
972
- "IPieVisualization": {
973
- "additionalProperties": false,
974
- "properties": {
975
- "color": {},
976
- "events": {
977
- "additionalProperties": {
978
- "$ref": "#/definitions/IEvent"
979
- },
980
- "type": "object"
981
- },
982
- "fields": {
983
- "items": {
984
- "$ref": "#/definitions/IVisualizationField"
985
- },
986
- "type": "array"
987
- },
988
- "id": {
989
- "type": "string"
990
- },
991
- "onSelect": {},
992
- "properties": {
993
- "properties": {
994
- "charttype": {
995
- "type": "string"
996
- }
997
- },
998
- "type": "object"
999
- },
1000
- "source": {
1001
- "$ref": "#/definitions/IPieSource"
1002
- },
1003
- "title": {
1004
- "type": "string"
1005
- },
1006
- "type": {
1007
- "enum": [
1008
- "PIE",
1009
- "BAR"
1010
- ],
1011
- "type": "string"
1012
- }
1013
- },
1014
- "required": [
1015
- "id",
1016
- "source",
1017
- "type"
1018
- ],
1019
- "type": "object"
1020
- },
1021
- "ISliderMapping": {
1022
- "additionalProperties": false,
1023
- "properties": {
1024
- "label": {
1025
- "type": "string"
1026
- }
1027
- },
1028
- "required": [
1029
- "label"
1030
- ],
1031
- "type": "object"
1032
- },
1033
- "ISliderSource": {
1034
- "additionalProperties": false,
1035
- "properties": {
1036
- "first": {
1037
- "type": [
1038
- "string",
1039
- "number"
1040
- ]
1041
- },
1042
- "id": {
1043
- "type": "string"
1044
- },
1045
- "mappings": {
1046
- "$ref": "#/definitions/ISliderMapping"
1047
- },
1048
- "output": {
1049
- "type": "string"
1050
- },
1051
- "properties": {
1052
- "$ref": "#/definitions/StringStringDict"
1053
- },
1054
- "reverse": {
1055
- "type": "boolean"
1056
- },
1057
- "sort": {
1058
- "items": {
1059
- "type": "string"
1060
- },
1061
- "type": "array"
1062
- }
1063
- },
1064
- "required": [
1065
- "id",
1066
- "mappings",
1067
- "output"
1068
- ],
1069
- "type": "object"
1070
- },
1071
- "ISliderVisualization": {
1072
- "additionalProperties": false,
1073
- "properties": {
1074
- "color": {},
1075
- "events": {
1076
- "additionalProperties": {
1077
- "$ref": "#/definitions/IEvent"
1078
- },
1079
- "type": "object"
1080
- },
1081
- "fields": {
1082
- "items": {
1083
- "$ref": "#/definitions/IVisualizationField"
1084
- },
1085
- "type": "array"
1086
- },
1087
- "id": {
1088
- "type": "string"
1089
- },
1090
- "onSelect": {},
1091
- "properties": {
1092
- "properties": {
1093
- "charttype": {
1094
- "type": "string"
1095
- }
1096
- },
1097
- "type": "object"
1098
- },
1099
- "range": {
1100
- "items": {
1101
- "type": "number"
1102
- },
1103
- "type": "array"
1104
- },
1105
- "source": {
1106
- "$ref": "#/definitions/ISliderSource"
1107
- },
1108
- "title": {
1109
- "type": "string"
1110
- },
1111
- "type": {
1112
- "const": "SLIDER",
1113
- "type": "string"
1114
- }
1115
- },
1116
- "required": [
1117
- "id",
1118
- "source",
1119
- "type"
1120
- ],
1121
- "type": "object"
1122
- },
1123
- "ITableMapping": {
1124
- "additionalProperties": false,
1125
- "properties": {
1126
- "value": {
1127
- "items": {
1128
- "type": "string"
1129
- },
1130
- "type": "array"
1131
- }
1132
- },
1133
- "required": [
1134
- "value"
1135
- ],
1136
- "type": "object"
1137
- },
1138
- "ITableSource": {
1139
- "additionalProperties": false,
1140
- "properties": {
1141
- "first": {
1142
- "type": [
1143
- "string",
1144
- "number"
1145
- ]
1146
- },
1147
- "id": {
1148
- "type": "string"
1149
- },
1150
- "mappings": {
1151
- "$ref": "#/definitions/ITableMapping"
1152
- },
1153
- "output": {
1154
- "type": "string"
1155
- },
1156
- "properties": {
1157
- "$ref": "#/definitions/StringStringDict"
1158
- },
1159
- "reverse": {
1160
- "type": "boolean"
1161
- },
1162
- "sort": {
1163
- "items": {
1164
- "type": "string"
1165
- },
1166
- "type": "array"
1167
- }
1168
- },
1169
- "required": [
1170
- "id",
1171
- "mappings",
1172
- "output"
1173
- ],
1174
- "type": "object"
1175
- },
1176
- "ITableVisualization": {
1177
- "additionalProperties": false,
1178
- "properties": {
1179
- "color": {},
1180
- "events": {
1181
- "additionalProperties": {
1182
- "$ref": "#/definitions/IEvent"
1183
- },
1184
- "type": "object"
1185
- },
1186
- "fields": {
1187
- "items": {
1188
- "$ref": "#/definitions/IVisualizationField"
1189
- },
1190
- "type": "array"
1191
- },
1192
- "id": {
1193
- "type": "string"
1194
- },
1195
- "label": {
1196
- "items": {
1197
- "type": "string"
1198
- },
1199
- "type": "array"
1200
- },
1201
- "onSelect": {},
1202
- "properties": {
1203
- "properties": {
1204
- "charttype": {
1205
- "type": "string"
1206
- }
1207
- },
1208
- "type": "object"
1209
- },
1210
- "source": {
1211
- "$ref": "#/definitions/ITableSource"
1212
- },
1213
- "title": {
1214
- "type": "string"
1215
- },
1216
- "type": {
1217
- "const": "TABLE",
1218
- "type": "string"
1219
- }
1220
- },
1221
- "required": [
1222
- "id",
1223
- "label",
1224
- "source",
1225
- "type"
1226
- ],
1227
- "type": "object"
1228
- },
1229
- "IValueMappings": {
1230
- "additionalProperties": {
1231
- "$ref": "#/definitions/IIcon"
1232
- },
1233
- "type": "object"
1234
- },
1235
- "IVisualizationField": {
1236
- "additionalProperties": false,
1237
- "properties": {
1238
- "id": {
1239
- "type": "string"
1240
- },
1241
- "properties": {
1242
- "additionalProperties": false,
1243
- "properties": {
1244
- "datatype": {
1245
- "$ref": "#/definitions/VisualizationFieldDataType"
1246
- },
1247
- "default": {
1248
- "items": {},
1249
- "type": "array"
1250
- },
1251
- "function": {
1252
- "$ref": "#/definitions/VisualizationFieldFuncitonType"
1253
- },
1254
- "label": {
1255
- "type": "string"
1256
- },
1257
- "params": {
1258
- "additionalProperties": false,
1259
- "properties": {
1260
- "param1": {
1261
- "type": "string"
1262
- },
1263
- "param2": {
1264
- "type": "string"
1265
- }
1266
- },
1267
- "required": [
1268
- "param1",
1269
- "param2"
1270
- ],
1271
- "type": "object"
1272
- },
1273
- "type": {
1274
- "$ref": "#/definitions/VisualizationFieldType"
1275
- }
1276
- },
1277
- "required": [
1278
- "datatype",
1279
- "type"
1280
- ],
1281
- "type": "object"
1282
- }
1283
- },
1284
- "required": [
1285
- "id",
1286
- "properties"
1287
- ],
1288
- "type": "object"
1289
- },
1290
- "IVisualizationIcon": {
1291
- "additionalProperties": false,
1292
- "properties": {
1293
- "faChar": {
1294
- "type": "string"
1295
- },
1296
- "fieldid": {
1297
- "type": "string"
1298
- },
1299
- "valuemappings": {
1300
- "$ref": "#/definitions/IValueMappings"
1301
- }
1302
- },
1303
- "type": "object"
1304
- },
1305
- "IWorkunitDatasource": {
1306
- "additionalProperties": false,
1307
- "properties": {
1308
- "WUID": {
1309
- "type": "boolean"
1310
- },
1311
- "filter": {
1312
- "items": {
1313
- "$ref": "#/definitions/IFilter"
1314
- },
1315
- "type": "array"
1316
- },
1317
- "id": {
1318
- "type": "string"
1319
- },
1320
- "outputs": {
1321
- "items": {
1322
- "$ref": "#/definitions/IOutput"
1323
- },
1324
- "type": "array"
1325
- }
1326
- },
1327
- "required": [
1328
- "WUID",
1329
- "id",
1330
- "outputs"
1331
- ],
1332
- "type": "object"
1333
- },
1334
- "StringStringDict": {
1335
- "additionalProperties": {
1336
- "type": "string"
1337
- },
1338
- "type": "object"
1339
- },
1340
- "VisualizationFieldDataType": {
1341
- "enum": [
1342
- "bool",
1343
- "boolean",
1344
- "integer",
1345
- "integer4",
1346
- "integer8",
1347
- "unsigned",
1348
- "unsigned4",
1349
- "unsigned8",
1350
- "float",
1351
- "double",
1352
- "real",
1353
- "real4",
1354
- "real8",
1355
- "string",
1356
- "date",
1357
- "time",
1358
- "geohash",
1359
- "dataset",
1360
- "visualization"
1361
- ],
1362
- "type": "string"
1363
- },
1364
- "VisualizationFieldFuncitonType": {
1365
- "enum": [
1366
- "SUM",
1367
- "AVE",
1368
- "MIN",
1369
- "MAX",
1370
- "SCALE"
1371
- ],
1372
- "type": "string"
1373
- },
1374
- "VisualizationFieldType": {
1375
- "anyOf": [
1376
- {
1377
- "$ref": "#/definitions/VisualizationFieldDataType"
1378
- },
1379
- {
1380
- "const": "range",
1381
- "type": "string"
1382
- }
1383
- ]
1384
- }
1385
- }
1386
- }