@hpcc-js/ddl-shim 2.24.0 → 2.25.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/v2.json ADDED
@@ -0,0 +1,1567 @@
1
+ {
2
+ "$ref": "#/definitions/Schema",
3
+ "$schema": "http://json-schema.org/draft-07/schema#",
4
+ "definitions": {
5
+ "ActivityType": {
6
+ "anyOf": [
7
+ {
8
+ "$ref": "#/definitions/IFilter"
9
+ },
10
+ {
11
+ "$ref": "#/definitions/IProject"
12
+ },
13
+ {
14
+ "$ref": "#/definitions/IGroupBy"
15
+ },
16
+ {
17
+ "$ref": "#/definitions/ISort"
18
+ },
19
+ {
20
+ "$ref": "#/definitions/ILimit"
21
+ },
22
+ {
23
+ "$ref": "#/definitions/IMappings"
24
+ }
25
+ ]
26
+ },
27
+ "AggregateType": {
28
+ "anyOf": [
29
+ {
30
+ "$ref": "#/definitions/IAggregate"
31
+ },
32
+ {
33
+ "$ref": "#/definitions/ICount"
34
+ }
35
+ ]
36
+ },
37
+ "Dataset": {
38
+ "items": {},
39
+ "type": "array"
40
+ },
41
+ "DatasourceType": {
42
+ "anyOf": [
43
+ {
44
+ "$ref": "#/definitions/IWUResult"
45
+ },
46
+ {
47
+ "$ref": "#/definitions/ILogicalFile"
48
+ },
49
+ {
50
+ "$ref": "#/definitions/IRoxieService"
51
+ },
52
+ {
53
+ "$ref": "#/definitions/IHipieService"
54
+ },
55
+ {
56
+ "$ref": "#/definitions/IRestService"
57
+ },
58
+ {
59
+ "$ref": "#/definitions/IForm"
60
+ },
61
+ {
62
+ "$ref": "#/definitions/IDatabomb"
63
+ }
64
+ ]
65
+ },
66
+ "FilterCondition": {
67
+ "anyOf": [
68
+ {
69
+ "$ref": "#/definitions/IFilterCondition"
70
+ },
71
+ {
72
+ "$ref": "#/definitions/IFilterStaticCondition"
73
+ }
74
+ ]
75
+ },
76
+ "IAggregate": {
77
+ "additionalProperties": false,
78
+ "properties": {
79
+ "baseCountFieldID": {
80
+ "type": "string"
81
+ },
82
+ "fieldID": {
83
+ "type": "string"
84
+ },
85
+ "inFieldID": {
86
+ "type": "string"
87
+ },
88
+ "type": {
89
+ "$ref": "#/definitions/IAggregateType"
90
+ }
91
+ },
92
+ "required": [
93
+ "fieldID",
94
+ "type",
95
+ "inFieldID"
96
+ ],
97
+ "type": "object"
98
+ },
99
+ "IAggregateType": {
100
+ "enum": [
101
+ "min",
102
+ "max",
103
+ "sum",
104
+ "mean",
105
+ "variance",
106
+ "deviation"
107
+ ],
108
+ "type": "string"
109
+ },
110
+ "ICalculated": {
111
+ "additionalProperties": false,
112
+ "properties": {
113
+ "fieldID": {
114
+ "type": "string"
115
+ },
116
+ "sourceFieldID1": {
117
+ "type": "string"
118
+ },
119
+ "sourceFieldID2": {
120
+ "type": "string"
121
+ },
122
+ "type": {
123
+ "$ref": "#/definitions/ICalculatedType"
124
+ }
125
+ },
126
+ "required": [
127
+ "fieldID",
128
+ "type",
129
+ "sourceFieldID1",
130
+ "sourceFieldID2"
131
+ ],
132
+ "type": "object"
133
+ },
134
+ "ICalculatedType": {
135
+ "enum": [
136
+ "+",
137
+ "-",
138
+ "*",
139
+ "/"
140
+ ],
141
+ "type": "string"
142
+ },
143
+ "ICount": {
144
+ "additionalProperties": false,
145
+ "properties": {
146
+ "fieldID": {
147
+ "type": "string"
148
+ },
149
+ "type": {
150
+ "const": "count",
151
+ "type": "string"
152
+ }
153
+ },
154
+ "required": [
155
+ "fieldID",
156
+ "type"
157
+ ],
158
+ "type": "object"
159
+ },
160
+ "IDatabomb": {
161
+ "additionalProperties": false,
162
+ "properties": {
163
+ "fields": {
164
+ "items": {
165
+ "$ref": "#/definitions/IField"
166
+ },
167
+ "type": "array"
168
+ },
169
+ "format": {
170
+ "$ref": "#/definitions/IDatabombFormat"
171
+ },
172
+ "id": {
173
+ "type": "string"
174
+ },
175
+ "payload": {
176
+ "type": "string"
177
+ },
178
+ "type": {
179
+ "const": "databomb",
180
+ "type": "string"
181
+ }
182
+ },
183
+ "required": [
184
+ "fields",
185
+ "format",
186
+ "id",
187
+ "type"
188
+ ],
189
+ "type": "object"
190
+ },
191
+ "IDatabombFormat": {
192
+ "enum": [
193
+ "csv",
194
+ "tsv",
195
+ "json"
196
+ ],
197
+ "type": "string"
198
+ },
199
+ "IDatabombRef": {
200
+ "additionalProperties": false,
201
+ "properties": {
202
+ "id": {
203
+ "type": "string"
204
+ }
205
+ },
206
+ "required": [
207
+ "id"
208
+ ],
209
+ "type": "object"
210
+ },
211
+ "IDatasource": {
212
+ "additionalProperties": false,
213
+ "properties": {
214
+ "id": {
215
+ "type": "string"
216
+ },
217
+ "type": {
218
+ "$ref": "#/definitions/IDatasourceType"
219
+ }
220
+ },
221
+ "required": [
222
+ "type",
223
+ "id"
224
+ ],
225
+ "type": "object"
226
+ },
227
+ "IDatasourceRef": {
228
+ "anyOf": [
229
+ {
230
+ "$ref": "#/definitions/IDatabombRef"
231
+ },
232
+ {
233
+ "$ref": "#/definitions/IWUResultRef"
234
+ },
235
+ {
236
+ "$ref": "#/definitions/IRoxieServiceRef"
237
+ },
238
+ {
239
+ "$ref": "#/definitions/IHipieSqlRef"
240
+ }
241
+ ]
242
+ },
243
+ "IDatasourceType": {
244
+ "enum": [
245
+ "wuresult",
246
+ "logicalfile",
247
+ "roxie",
248
+ "hipie",
249
+ "rest",
250
+ "form",
251
+ "databomb"
252
+ ],
253
+ "type": "string"
254
+ },
255
+ "IEquals": {
256
+ "additionalProperties": false,
257
+ "properties": {
258
+ "fieldID": {
259
+ "type": "string"
260
+ },
261
+ "sourceFieldID": {
262
+ "type": "string"
263
+ },
264
+ "transformations": {
265
+ "items": {
266
+ "$ref": "#/definitions/MultiTransformationType"
267
+ },
268
+ "type": "array"
269
+ },
270
+ "type": {
271
+ "const": "=",
272
+ "type": "string"
273
+ }
274
+ },
275
+ "required": [
276
+ "fieldID",
277
+ "type",
278
+ "sourceFieldID"
279
+ ],
280
+ "type": "object"
281
+ },
282
+ "IField": {
283
+ "anyOf": [
284
+ {
285
+ "$ref": "#/definitions/IFieldBoolean"
286
+ },
287
+ {
288
+ "$ref": "#/definitions/IFieldNumber"
289
+ },
290
+ {
291
+ "$ref": "#/definitions/IFieldNumber64"
292
+ },
293
+ {
294
+ "$ref": "#/definitions/IFieldString"
295
+ },
296
+ {
297
+ "$ref": "#/definitions/IFieldRange"
298
+ },
299
+ {
300
+ "$ref": "#/definitions/IFieldDataset"
301
+ },
302
+ {
303
+ "$ref": "#/definitions/IFieldSet"
304
+ },
305
+ {
306
+ "$ref": "#/definitions/IFieldObject"
307
+ }
308
+ ]
309
+ },
310
+ "IFieldBoolean": {
311
+ "additionalProperties": false,
312
+ "properties": {
313
+ "default": {
314
+ "type": "boolean"
315
+ },
316
+ "id": {
317
+ "type": "string"
318
+ },
319
+ "type": {
320
+ "const": "boolean",
321
+ "type": "string"
322
+ }
323
+ },
324
+ "required": [
325
+ "type",
326
+ "id"
327
+ ],
328
+ "type": "object"
329
+ },
330
+ "IFieldDataset": {
331
+ "additionalProperties": false,
332
+ "properties": {
333
+ "children": {
334
+ "items": {
335
+ "$ref": "#/definitions/IField"
336
+ },
337
+ "type": "array"
338
+ },
339
+ "default": {
340
+ "$ref": "#/definitions/Dataset"
341
+ },
342
+ "id": {
343
+ "type": "string"
344
+ },
345
+ "type": {
346
+ "const": "dataset",
347
+ "type": "string"
348
+ }
349
+ },
350
+ "required": [
351
+ "type",
352
+ "id",
353
+ "children"
354
+ ],
355
+ "type": "object"
356
+ },
357
+ "IFieldNumber": {
358
+ "additionalProperties": false,
359
+ "properties": {
360
+ "default": {
361
+ "type": "number"
362
+ },
363
+ "id": {
364
+ "type": "string"
365
+ },
366
+ "type": {
367
+ "const": "number",
368
+ "type": "string"
369
+ }
370
+ },
371
+ "required": [
372
+ "type",
373
+ "id"
374
+ ],
375
+ "type": "object"
376
+ },
377
+ "IFieldNumber64": {
378
+ "additionalProperties": false,
379
+ "properties": {
380
+ "default": {
381
+ "$ref": "#/definitions/Number64"
382
+ },
383
+ "id": {
384
+ "type": "string"
385
+ },
386
+ "type": {
387
+ "const": "number64",
388
+ "type": "string"
389
+ }
390
+ },
391
+ "required": [
392
+ "type",
393
+ "id"
394
+ ],
395
+ "type": "object"
396
+ },
397
+ "IFieldObject": {
398
+ "additionalProperties": false,
399
+ "properties": {
400
+ "default": {
401
+ "type": "object"
402
+ },
403
+ "fields": {
404
+ "additionalProperties": {
405
+ "$ref": "#/definitions/IField"
406
+ },
407
+ "type": "object"
408
+ },
409
+ "id": {
410
+ "type": "string"
411
+ },
412
+ "type": {
413
+ "const": "object",
414
+ "type": "string"
415
+ }
416
+ },
417
+ "required": [
418
+ "type",
419
+ "id",
420
+ "fields"
421
+ ],
422
+ "type": "object"
423
+ },
424
+ "IFieldRange": {
425
+ "additionalProperties": false,
426
+ "properties": {
427
+ "default": {
428
+ "$ref": "#/definitions/Range"
429
+ },
430
+ "id": {
431
+ "type": "string"
432
+ },
433
+ "type": {
434
+ "const": "range",
435
+ "type": "string"
436
+ }
437
+ },
438
+ "required": [
439
+ "type",
440
+ "id"
441
+ ],
442
+ "type": "object"
443
+ },
444
+ "IFieldSet": {
445
+ "additionalProperties": false,
446
+ "properties": {
447
+ "default": {
448
+ "items": {
449
+ "type": [
450
+ "string",
451
+ "number"
452
+ ]
453
+ },
454
+ "type": "array"
455
+ },
456
+ "fieldType": {
457
+ "enum": [
458
+ "string",
459
+ "number"
460
+ ],
461
+ "type": "string"
462
+ },
463
+ "id": {
464
+ "type": "string"
465
+ },
466
+ "type": {
467
+ "const": "set",
468
+ "type": "string"
469
+ }
470
+ },
471
+ "required": [
472
+ "type",
473
+ "id",
474
+ "fieldType"
475
+ ],
476
+ "type": "object"
477
+ },
478
+ "IFieldString": {
479
+ "additionalProperties": false,
480
+ "properties": {
481
+ "default": {
482
+ "type": "string"
483
+ },
484
+ "id": {
485
+ "type": "string"
486
+ },
487
+ "type": {
488
+ "const": "string",
489
+ "type": "string"
490
+ }
491
+ },
492
+ "required": [
493
+ "type",
494
+ "id"
495
+ ],
496
+ "type": "object"
497
+ },
498
+ "IFieldType": {
499
+ "enum": [
500
+ "boolean",
501
+ "number",
502
+ "number64",
503
+ "string",
504
+ "range",
505
+ "dataset",
506
+ "set",
507
+ "object"
508
+ ],
509
+ "type": "string"
510
+ },
511
+ "IFilter": {
512
+ "additionalProperties": false,
513
+ "properties": {
514
+ "conditions": {
515
+ "items": {
516
+ "$ref": "#/definitions/FilterCondition"
517
+ },
518
+ "type": "array"
519
+ },
520
+ "type": {
521
+ "const": "filter",
522
+ "type": "string"
523
+ }
524
+ },
525
+ "required": [
526
+ "conditions",
527
+ "type"
528
+ ],
529
+ "type": "object"
530
+ },
531
+ "IFilterCondition": {
532
+ "additionalProperties": false,
533
+ "properties": {
534
+ "mappings": {
535
+ "items": {
536
+ "$ref": "#/definitions/IMapping"
537
+ },
538
+ "type": "array"
539
+ },
540
+ "viewID": {
541
+ "type": "string"
542
+ }
543
+ },
544
+ "required": [
545
+ "viewID",
546
+ "mappings"
547
+ ],
548
+ "type": "object"
549
+ },
550
+ "IFilterStaticCondition": {
551
+ "additionalProperties": false,
552
+ "properties": {
553
+ "condition": {
554
+ "$ref": "#/definitions/IMappingConditionType"
555
+ },
556
+ "localFieldID": {
557
+ "type": "string"
558
+ },
559
+ "value": {
560
+ "type": [
561
+ "string",
562
+ "number"
563
+ ]
564
+ }
565
+ },
566
+ "required": [
567
+ "localFieldID",
568
+ "condition",
569
+ "value"
570
+ ],
571
+ "type": "object"
572
+ },
573
+ "IForm": {
574
+ "additionalProperties": false,
575
+ "properties": {
576
+ "fields": {
577
+ "items": {
578
+ "$ref": "#/definitions/IField"
579
+ },
580
+ "type": "array"
581
+ },
582
+ "id": {
583
+ "type": "string"
584
+ },
585
+ "type": {
586
+ "const": "form",
587
+ "type": "string"
588
+ }
589
+ },
590
+ "required": [
591
+ "fields",
592
+ "id",
593
+ "type"
594
+ ],
595
+ "type": "object"
596
+ },
597
+ "IGroupBy": {
598
+ "additionalProperties": false,
599
+ "properties": {
600
+ "aggregates": {
601
+ "items": {
602
+ "$ref": "#/definitions/AggregateType"
603
+ },
604
+ "type": "array"
605
+ },
606
+ "groupByIDs": {
607
+ "items": {
608
+ "type": "string"
609
+ },
610
+ "type": "array"
611
+ },
612
+ "type": {
613
+ "const": "groupby",
614
+ "type": "string"
615
+ }
616
+ },
617
+ "required": [
618
+ "aggregates",
619
+ "groupByIDs",
620
+ "type"
621
+ ],
622
+ "type": "object"
623
+ },
624
+ "IHipieService": {
625
+ "additionalProperties": false,
626
+ "properties": {
627
+ "id": {
628
+ "type": "string"
629
+ },
630
+ "inputs": {
631
+ "items": {
632
+ "$ref": "#/definitions/IField"
633
+ },
634
+ "type": "array"
635
+ },
636
+ "outputs": {
637
+ "$ref": "#/definitions/OutputDict"
638
+ },
639
+ "queryID": {
640
+ "type": "string"
641
+ },
642
+ "querySet": {
643
+ "type": "string"
644
+ },
645
+ "type": {
646
+ "const": "hipie",
647
+ "type": "string"
648
+ },
649
+ "url": {
650
+ "type": "string"
651
+ }
652
+ },
653
+ "required": [
654
+ "id",
655
+ "inputs",
656
+ "outputs",
657
+ "queryID",
658
+ "querySet",
659
+ "type",
660
+ "url"
661
+ ],
662
+ "type": "object"
663
+ },
664
+ "IHipieSqlRef": {
665
+ "additionalProperties": false,
666
+ "properties": {
667
+ "id": {
668
+ "type": "string"
669
+ }
670
+ },
671
+ "required": [
672
+ "id"
673
+ ],
674
+ "type": "object"
675
+ },
676
+ "ILimit": {
677
+ "additionalProperties": false,
678
+ "properties": {
679
+ "limit": {
680
+ "type": "number"
681
+ },
682
+ "type": {
683
+ "const": "limit",
684
+ "type": "string"
685
+ }
686
+ },
687
+ "required": [
688
+ "limit",
689
+ "type"
690
+ ],
691
+ "type": "object"
692
+ },
693
+ "ILogicalFile": {
694
+ "additionalProperties": false,
695
+ "properties": {
696
+ "fields": {
697
+ "items": {
698
+ "$ref": "#/definitions/IField"
699
+ },
700
+ "type": "array"
701
+ },
702
+ "id": {
703
+ "type": "string"
704
+ },
705
+ "logicalFile": {
706
+ "type": "string"
707
+ },
708
+ "type": {
709
+ "const": "logicalfile",
710
+ "type": "string"
711
+ },
712
+ "url": {
713
+ "type": "string"
714
+ }
715
+ },
716
+ "required": [
717
+ "fields",
718
+ "id",
719
+ "logicalFile",
720
+ "type",
721
+ "url"
722
+ ],
723
+ "type": "object"
724
+ },
725
+ "IMap": {
726
+ "additionalProperties": false,
727
+ "properties": {
728
+ "default": {},
729
+ "fieldID": {
730
+ "type": "string"
731
+ },
732
+ "mappings": {
733
+ "items": {
734
+ "$ref": "#/definitions/IMapMapping"
735
+ },
736
+ "type": "array"
737
+ },
738
+ "sourceFieldID": {
739
+ "type": "string"
740
+ },
741
+ "type": {
742
+ "const": "map",
743
+ "type": "string"
744
+ }
745
+ },
746
+ "required": [
747
+ "fieldID",
748
+ "type",
749
+ "sourceFieldID",
750
+ "default",
751
+ "mappings"
752
+ ],
753
+ "type": "object"
754
+ },
755
+ "IMapMapping": {
756
+ "additionalProperties": false,
757
+ "properties": {
758
+ "newValue": {},
759
+ "value": {}
760
+ },
761
+ "required": [
762
+ "value",
763
+ "newValue"
764
+ ],
765
+ "type": "object"
766
+ },
767
+ "IMapping": {
768
+ "additionalProperties": false,
769
+ "properties": {
770
+ "condition": {
771
+ "$ref": "#/definitions/IMappingConditionType"
772
+ },
773
+ "localFieldID": {
774
+ "type": "string"
775
+ },
776
+ "nullable": {
777
+ "type": "boolean"
778
+ },
779
+ "remoteFieldID": {
780
+ "type": "string"
781
+ }
782
+ },
783
+ "required": [
784
+ "remoteFieldID",
785
+ "localFieldID",
786
+ "condition",
787
+ "nullable"
788
+ ],
789
+ "type": "object"
790
+ },
791
+ "IMappingConditionType": {
792
+ "enum": [
793
+ "==",
794
+ "!=",
795
+ ">",
796
+ ">=",
797
+ "<",
798
+ "<=",
799
+ "range",
800
+ "in"
801
+ ],
802
+ "type": "string"
803
+ },
804
+ "IMappings": {
805
+ "additionalProperties": false,
806
+ "properties": {
807
+ "transformations": {
808
+ "items": {
809
+ "$ref": "#/definitions/ProjectTransformationType"
810
+ },
811
+ "type": "array"
812
+ },
813
+ "type": {
814
+ "const": "mappings",
815
+ "type": "string"
816
+ }
817
+ },
818
+ "required": [
819
+ "transformations",
820
+ "type"
821
+ ],
822
+ "type": "object"
823
+ },
824
+ "IMulti": {
825
+ "additionalProperties": false,
826
+ "properties": {
827
+ "fieldID": {
828
+ "type": "string"
829
+ },
830
+ "transformations": {
831
+ "items": {
832
+ "$ref": "#/definitions/MultiTransformationType"
833
+ },
834
+ "type": "array"
835
+ },
836
+ "type": {
837
+ "const": "multi",
838
+ "type": "string"
839
+ }
840
+ },
841
+ "required": [
842
+ "fieldID",
843
+ "type",
844
+ "transformations"
845
+ ],
846
+ "type": "object"
847
+ },
848
+ "IOutput": {
849
+ "additionalProperties": false,
850
+ "properties": {
851
+ "fields": {
852
+ "items": {
853
+ "$ref": "#/definitions/IField"
854
+ },
855
+ "type": "array"
856
+ }
857
+ },
858
+ "required": [
859
+ "fields"
860
+ ],
861
+ "type": "object"
862
+ },
863
+ "IProject": {
864
+ "additionalProperties": false,
865
+ "properties": {
866
+ "transformations": {
867
+ "items": {
868
+ "$ref": "#/definitions/ProjectTransformationType"
869
+ },
870
+ "type": "array"
871
+ },
872
+ "type": {
873
+ "const": "project",
874
+ "type": "string"
875
+ }
876
+ },
877
+ "required": [
878
+ "transformations",
879
+ "type"
880
+ ],
881
+ "type": "object"
882
+ },
883
+ "IProperties": {
884
+ "type": "object"
885
+ },
886
+ "IRequestField": {
887
+ "additionalProperties": false,
888
+ "properties": {
889
+ "localFieldID": {
890
+ "type": "string"
891
+ },
892
+ "remoteFieldID": {
893
+ "type": "string"
894
+ },
895
+ "source": {
896
+ "type": "string"
897
+ },
898
+ "value": {
899
+ "type": "string"
900
+ }
901
+ },
902
+ "required": [
903
+ "localFieldID",
904
+ "source",
905
+ "remoteFieldID",
906
+ "value"
907
+ ],
908
+ "type": "object"
909
+ },
910
+ "IRestService": {
911
+ "additionalProperties": false,
912
+ "properties": {
913
+ "action": {
914
+ "type": "string"
915
+ },
916
+ "id": {
917
+ "type": "string"
918
+ },
919
+ "inputs": {
920
+ "items": {
921
+ "$ref": "#/definitions/IField"
922
+ },
923
+ "type": "array"
924
+ },
925
+ "mode": {
926
+ "enum": [
927
+ "get",
928
+ "post"
929
+ ],
930
+ "type": "string"
931
+ },
932
+ "outputs": {
933
+ "$ref": "#/definitions/OutputDict"
934
+ },
935
+ "type": {
936
+ "const": "rest",
937
+ "type": "string"
938
+ },
939
+ "url": {
940
+ "type": "string"
941
+ }
942
+ },
943
+ "required": [
944
+ "action",
945
+ "id",
946
+ "inputs",
947
+ "outputs",
948
+ "type",
949
+ "url"
950
+ ],
951
+ "type": "object"
952
+ },
953
+ "IRoxieService": {
954
+ "additionalProperties": false,
955
+ "properties": {
956
+ "id": {
957
+ "type": "string"
958
+ },
959
+ "inputs": {
960
+ "items": {
961
+ "$ref": "#/definitions/IField"
962
+ },
963
+ "type": "array"
964
+ },
965
+ "outputs": {
966
+ "$ref": "#/definitions/OutputDict"
967
+ },
968
+ "queryID": {
969
+ "type": "string"
970
+ },
971
+ "querySet": {
972
+ "type": "string"
973
+ },
974
+ "type": {
975
+ "const": "roxie",
976
+ "type": "string"
977
+ },
978
+ "url": {
979
+ "type": "string"
980
+ }
981
+ },
982
+ "required": [
983
+ "id",
984
+ "inputs",
985
+ "outputs",
986
+ "queryID",
987
+ "querySet",
988
+ "type",
989
+ "url"
990
+ ],
991
+ "type": "object"
992
+ },
993
+ "IRoxieServiceRef": {
994
+ "additionalProperties": false,
995
+ "properties": {
996
+ "id": {
997
+ "type": "string"
998
+ },
999
+ "output": {
1000
+ "type": "string"
1001
+ },
1002
+ "request": {
1003
+ "items": {
1004
+ "$ref": "#/definitions/IRequestField"
1005
+ },
1006
+ "type": "array"
1007
+ }
1008
+ },
1009
+ "required": [
1010
+ "id",
1011
+ "output",
1012
+ "request"
1013
+ ],
1014
+ "type": "object"
1015
+ },
1016
+ "IScale": {
1017
+ "additionalProperties": false,
1018
+ "properties": {
1019
+ "factor": {
1020
+ "type": "number"
1021
+ },
1022
+ "fieldID": {
1023
+ "type": "string"
1024
+ },
1025
+ "sourceFieldID": {
1026
+ "type": "string"
1027
+ },
1028
+ "type": {
1029
+ "const": "scale",
1030
+ "type": "string"
1031
+ }
1032
+ },
1033
+ "required": [
1034
+ "fieldID",
1035
+ "type",
1036
+ "sourceFieldID",
1037
+ "factor"
1038
+ ],
1039
+ "type": "object"
1040
+ },
1041
+ "ISort": {
1042
+ "additionalProperties": false,
1043
+ "properties": {
1044
+ "conditions": {
1045
+ "items": {
1046
+ "$ref": "#/definitions/ISortCondition"
1047
+ },
1048
+ "type": "array"
1049
+ },
1050
+ "type": {
1051
+ "const": "sort",
1052
+ "type": "string"
1053
+ }
1054
+ },
1055
+ "required": [
1056
+ "conditions",
1057
+ "type"
1058
+ ],
1059
+ "type": "object"
1060
+ },
1061
+ "ISortCondition": {
1062
+ "additionalProperties": false,
1063
+ "properties": {
1064
+ "descending": {
1065
+ "type": "boolean"
1066
+ },
1067
+ "fieldID": {
1068
+ "type": "string"
1069
+ }
1070
+ },
1071
+ "required": [
1072
+ "fieldID",
1073
+ "descending"
1074
+ ],
1075
+ "type": "object"
1076
+ },
1077
+ "ITemplate": {
1078
+ "additionalProperties": false,
1079
+ "properties": {
1080
+ "fieldID": {
1081
+ "type": "string"
1082
+ },
1083
+ "template": {
1084
+ "type": "string"
1085
+ },
1086
+ "type": {
1087
+ "const": "template",
1088
+ "type": "string"
1089
+ }
1090
+ },
1091
+ "required": [
1092
+ "fieldID",
1093
+ "type",
1094
+ "template"
1095
+ ],
1096
+ "type": "object"
1097
+ },
1098
+ "IView": {
1099
+ "additionalProperties": false,
1100
+ "properties": {
1101
+ "activities": {
1102
+ "items": {
1103
+ "$ref": "#/definitions/ActivityType"
1104
+ },
1105
+ "type": "array"
1106
+ },
1107
+ "datasource": {
1108
+ "$ref": "#/definitions/IDatasourceRef"
1109
+ },
1110
+ "id": {
1111
+ "type": "string"
1112
+ },
1113
+ "visualization": {
1114
+ "$ref": "#/definitions/IVisualization"
1115
+ }
1116
+ },
1117
+ "required": [
1118
+ "id",
1119
+ "datasource",
1120
+ "activities",
1121
+ "visualization"
1122
+ ],
1123
+ "type": "object"
1124
+ },
1125
+ "IVisualization": {
1126
+ "additionalProperties": false,
1127
+ "properties": {
1128
+ "__class": {
1129
+ "type": "string"
1130
+ },
1131
+ "chartType": {
1132
+ "type": "string"
1133
+ },
1134
+ "description": {
1135
+ "type": "string"
1136
+ },
1137
+ "id": {
1138
+ "type": "string"
1139
+ },
1140
+ "mappings": {
1141
+ "$ref": "#/definitions/IMappings"
1142
+ },
1143
+ "properties": {
1144
+ "$ref": "#/definitions/IWidgetProperties"
1145
+ },
1146
+ "secondaryDataviewID": {
1147
+ "type": "string"
1148
+ },
1149
+ "title": {
1150
+ "type": "string"
1151
+ },
1152
+ "visibility": {
1153
+ "$ref": "#/definitions/VisibilityType"
1154
+ }
1155
+ },
1156
+ "required": [
1157
+ "__class",
1158
+ "chartType",
1159
+ "id",
1160
+ "mappings",
1161
+ "properties",
1162
+ "title",
1163
+ "visibility"
1164
+ ],
1165
+ "type": "object"
1166
+ },
1167
+ "IWUResult": {
1168
+ "additionalProperties": false,
1169
+ "properties": {
1170
+ "id": {
1171
+ "type": "string"
1172
+ },
1173
+ "outputs": {
1174
+ "$ref": "#/definitions/OutputDict"
1175
+ },
1176
+ "type": {
1177
+ "const": "wuresult",
1178
+ "type": "string"
1179
+ },
1180
+ "url": {
1181
+ "type": "string"
1182
+ },
1183
+ "wuid": {
1184
+ "type": "string"
1185
+ }
1186
+ },
1187
+ "required": [
1188
+ "id",
1189
+ "outputs",
1190
+ "type",
1191
+ "url",
1192
+ "wuid"
1193
+ ],
1194
+ "type": "object"
1195
+ },
1196
+ "IWUResultRef": {
1197
+ "additionalProperties": false,
1198
+ "properties": {
1199
+ "id": {
1200
+ "type": "string"
1201
+ },
1202
+ "output": {
1203
+ "type": "string"
1204
+ }
1205
+ },
1206
+ "required": [
1207
+ "id",
1208
+ "output"
1209
+ ],
1210
+ "type": "object"
1211
+ },
1212
+ "IWidgetProperties": {
1213
+ "additionalProperties": {
1214
+ "anyOf": [
1215
+ {
1216
+ "type": "string"
1217
+ },
1218
+ {
1219
+ "items": {
1220
+ "type": "string"
1221
+ },
1222
+ "type": "array"
1223
+ },
1224
+ {
1225
+ "type": "number"
1226
+ },
1227
+ {
1228
+ "type": "boolean"
1229
+ },
1230
+ {
1231
+ "not": {}
1232
+ },
1233
+ {
1234
+ "$ref": "#/definitions/IWidgetProperties"
1235
+ },
1236
+ {
1237
+ "items": {
1238
+ "$ref": "#/definitions/IWidgetProperties"
1239
+ },
1240
+ "type": "array"
1241
+ }
1242
+ ]
1243
+ },
1244
+ "properties": {
1245
+ "__class": {
1246
+ "type": "string"
1247
+ }
1248
+ },
1249
+ "required": [
1250
+ "__class"
1251
+ ],
1252
+ "type": "object"
1253
+ },
1254
+ "MultiTransformationType": {
1255
+ "anyOf": [
1256
+ {
1257
+ "$ref": "#/definitions/IEquals"
1258
+ },
1259
+ {
1260
+ "$ref": "#/definitions/ICalculated"
1261
+ },
1262
+ {
1263
+ "$ref": "#/definitions/IScale"
1264
+ },
1265
+ {
1266
+ "$ref": "#/definitions/ITemplate"
1267
+ },
1268
+ {
1269
+ "$ref": "#/definitions/IMap"
1270
+ }
1271
+ ]
1272
+ },
1273
+ "Number64": {
1274
+ "type": "string"
1275
+ },
1276
+ "OutputDict": {
1277
+ "additionalProperties": {
1278
+ "$ref": "#/definitions/IOutput"
1279
+ },
1280
+ "type": "object"
1281
+ },
1282
+ "ProjectTransformationType": {
1283
+ "anyOf": [
1284
+ {
1285
+ "$ref": "#/definitions/MultiTransformationType"
1286
+ },
1287
+ {
1288
+ "$ref": "#/definitions/IMulti"
1289
+ }
1290
+ ]
1291
+ },
1292
+ "Range": {
1293
+ "items": {
1294
+ "type": [
1295
+ "number",
1296
+ "string"
1297
+ ]
1298
+ },
1299
+ "maxItems": 2,
1300
+ "minItems": 2,
1301
+ "type": "array"
1302
+ },
1303
+ "Schema": {
1304
+ "additionalProperties": false,
1305
+ "properties": {
1306
+ "createdBy": {
1307
+ "additionalProperties": false,
1308
+ "properties": {
1309
+ "name": {
1310
+ "type": "string"
1311
+ },
1312
+ "version": {
1313
+ "type": "string"
1314
+ }
1315
+ },
1316
+ "required": [
1317
+ "name",
1318
+ "version"
1319
+ ],
1320
+ "type": "object"
1321
+ },
1322
+ "datasources": {
1323
+ "items": {
1324
+ "$ref": "#/definitions/DatasourceType"
1325
+ },
1326
+ "type": "array"
1327
+ },
1328
+ "dataviews": {
1329
+ "items": {
1330
+ "$ref": "#/definitions/IView"
1331
+ },
1332
+ "type": "array"
1333
+ },
1334
+ "defs": {
1335
+ "additionalProperties": false,
1336
+ "properties": {
1337
+ "activityTypes": {
1338
+ "additionalProperties": false,
1339
+ "properties": {
1340
+ "filter": {
1341
+ "$ref": "#/definitions/IFilter"
1342
+ },
1343
+ "groupby": {
1344
+ "$ref": "#/definitions/IGroupBy"
1345
+ },
1346
+ "limit": {
1347
+ "$ref": "#/definitions/ILimit"
1348
+ },
1349
+ "mappings": {
1350
+ "$ref": "#/definitions/IMappings"
1351
+ },
1352
+ "project": {
1353
+ "$ref": "#/definitions/IProject"
1354
+ },
1355
+ "sort": {
1356
+ "$ref": "#/definitions/ISort"
1357
+ }
1358
+ },
1359
+ "required": [
1360
+ "filter",
1361
+ "project",
1362
+ "groupby",
1363
+ "sort",
1364
+ "limit",
1365
+ "mappings"
1366
+ ],
1367
+ "type": "object"
1368
+ },
1369
+ "aggregateTypes": {
1370
+ "additionalProperties": false,
1371
+ "properties": {
1372
+ "aggregate": {
1373
+ "$ref": "#/definitions/IAggregate"
1374
+ },
1375
+ "count": {
1376
+ "$ref": "#/definitions/ICount"
1377
+ }
1378
+ },
1379
+ "required": [
1380
+ "aggregate",
1381
+ "count"
1382
+ ],
1383
+ "type": "object"
1384
+ },
1385
+ "datasourceRefTypes": {
1386
+ "additionalProperties": false,
1387
+ "properties": {
1388
+ "roxieServiceRef": {
1389
+ "$ref": "#/definitions/IRoxieServiceRef"
1390
+ },
1391
+ "wuResultRef": {
1392
+ "$ref": "#/definitions/IWUResultRef"
1393
+ }
1394
+ },
1395
+ "required": [
1396
+ "wuResultRef",
1397
+ "roxieServiceRef"
1398
+ ],
1399
+ "type": "object"
1400
+ },
1401
+ "datasourceTypes": {
1402
+ "additionalProperties": false,
1403
+ "properties": {
1404
+ "databomb": {
1405
+ "$ref": "#/definitions/IDatabomb"
1406
+ },
1407
+ "datasource": {
1408
+ "$ref": "#/definitions/IDatasource"
1409
+ },
1410
+ "form": {
1411
+ "$ref": "#/definitions/IForm"
1412
+ },
1413
+ "hipieService": {
1414
+ "$ref": "#/definitions/IHipieService"
1415
+ },
1416
+ "logicalFile": {
1417
+ "$ref": "#/definitions/ILogicalFile"
1418
+ },
1419
+ "roxieService": {
1420
+ "$ref": "#/definitions/IRoxieService"
1421
+ },
1422
+ "wuresult": {
1423
+ "$ref": "#/definitions/IWUResult"
1424
+ }
1425
+ },
1426
+ "required": [
1427
+ "datasource",
1428
+ "logicalFile",
1429
+ "form",
1430
+ "databomb",
1431
+ "wuresult",
1432
+ "hipieService",
1433
+ "roxieService"
1434
+ ],
1435
+ "type": "object"
1436
+ },
1437
+ "fieldTypes": {
1438
+ "additionalProperties": false,
1439
+ "properties": {
1440
+ "dataset": {
1441
+ "$ref": "#/definitions/Dataset"
1442
+ },
1443
+ "field": {
1444
+ "$ref": "#/definitions/IField"
1445
+ },
1446
+ "fieldBoolean": {
1447
+ "$ref": "#/definitions/IFieldBoolean"
1448
+ },
1449
+ "fieldDataset": {
1450
+ "$ref": "#/definitions/IFieldDataset"
1451
+ },
1452
+ "fieldNumber": {
1453
+ "$ref": "#/definitions/IFieldNumber"
1454
+ },
1455
+ "fieldNumber64": {
1456
+ "$ref": "#/definitions/IFieldNumber64"
1457
+ },
1458
+ "fieldObject": {
1459
+ "$ref": "#/definitions/IFieldObject"
1460
+ },
1461
+ "fieldRange": {
1462
+ "$ref": "#/definitions/IFieldRange"
1463
+ },
1464
+ "fieldSet": {
1465
+ "$ref": "#/definitions/IFieldSet"
1466
+ },
1467
+ "fieldString": {
1468
+ "$ref": "#/definitions/IFieldString"
1469
+ },
1470
+ "fieldType": {
1471
+ "$ref": "#/definitions/IFieldType"
1472
+ },
1473
+ "number64": {
1474
+ "$ref": "#/definitions/Number64"
1475
+ },
1476
+ "range": {
1477
+ "$ref": "#/definitions/Range"
1478
+ }
1479
+ },
1480
+ "required": [
1481
+ "number64",
1482
+ "range",
1483
+ "dataset",
1484
+ "fieldType",
1485
+ "fieldBoolean",
1486
+ "fieldNumber",
1487
+ "fieldNumber64",
1488
+ "fieldString",
1489
+ "fieldRange",
1490
+ "fieldDataset",
1491
+ "fieldSet",
1492
+ "fieldObject",
1493
+ "field"
1494
+ ],
1495
+ "type": "object"
1496
+ },
1497
+ "transformationTypes": {
1498
+ "additionalProperties": false,
1499
+ "properties": {
1500
+ "calculated": {
1501
+ "$ref": "#/definitions/ICalculated"
1502
+ },
1503
+ "equals": {
1504
+ "$ref": "#/definitions/IEquals"
1505
+ },
1506
+ "map": {
1507
+ "$ref": "#/definitions/IMap"
1508
+ },
1509
+ "multi": {
1510
+ "$ref": "#/definitions/IMulti"
1511
+ },
1512
+ "scale": {
1513
+ "$ref": "#/definitions/IScale"
1514
+ },
1515
+ "template": {
1516
+ "$ref": "#/definitions/ITemplate"
1517
+ }
1518
+ },
1519
+ "required": [
1520
+ "equals",
1521
+ "calculated",
1522
+ "scale",
1523
+ "template",
1524
+ "map",
1525
+ "multi"
1526
+ ],
1527
+ "type": "object"
1528
+ }
1529
+ },
1530
+ "required": [
1531
+ "fieldTypes",
1532
+ "datasourceTypes",
1533
+ "datasourceRefTypes",
1534
+ "activityTypes",
1535
+ "aggregateTypes",
1536
+ "transformationTypes"
1537
+ ],
1538
+ "type": "object"
1539
+ },
1540
+ "hipieProperties": {
1541
+ "$ref": "#/definitions/IProperties"
1542
+ },
1543
+ "properties": {
1544
+ "$ref": "#/definitions/IProperties"
1545
+ },
1546
+ "version": {
1547
+ "const": "2.2.1",
1548
+ "type": "string"
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "version",
1553
+ "createdBy",
1554
+ "datasources",
1555
+ "dataviews"
1556
+ ],
1557
+ "type": "object"
1558
+ },
1559
+ "VisibilityType": {
1560
+ "enum": [
1561
+ "normal",
1562
+ "flyout"
1563
+ ],
1564
+ "type": "string"
1565
+ }
1566
+ }
1567
+ }