@hpcc-js/ddl-shim 2.17.25 → 2.18.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/ddl-shim",
3
- "version": "2.17.25",
3
+ "version": "2.18.1",
4
4
  "description": "hpcc-js DDL parser",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es6",
@@ -26,8 +26,8 @@
26
26
  "clean": "rimraf bin lib* types dist ./src/ddl*Schema*.ts ./schema/*.json *.tsbuildinfo",
27
27
  "compile-es6": "tsc --module es6 --outDir ./lib-es6",
28
28
  "compile-es6-watch": "npm run compile-es6 -- -w",
29
- "generate-v1": "ts-json-schema-generator --path tsconfig-schema.json --type DDLSchema > ./schema/v1.json",
30
- "generate-v2": "ts-json-schema-generator --path tsconfig-schema.json --type Schema > ./schema/v2.json",
29
+ "generate-v1": "ts-json-schema-generator --tsconfig tsconfig-schema.json --type DDLSchema > ./schema/v1.json",
30
+ "generate-v2": "ts-json-schema-generator --tsconfig tsconfig-schema.json --type Schema > ./schema/v2.json",
31
31
  "generate": "run-p generate-v1 generate-v2",
32
32
  "bundle": "rollup -c",
33
33
  "bundle-watch": "npm run bundle -- --watch",
@@ -35,7 +35,7 @@
35
35
  "gen-legacy-types": "downlevel-dts ./types ./types-3.4",
36
36
  "build": "run-s generate compile-es6 bundle",
37
37
  "watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
38
- "stamp": "node node_modules/@hpcc-js/bundle/src/stamp.js",
38
+ "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
39
39
  "lint": "eslint src/**/*.ts",
40
40
  "docs": "typedoc --options tdoptions.json .",
41
41
  "update": "npx npm-check-updates -u -t minor"
@@ -44,28 +44,13 @@
44
44
  "ajv": "6.12.6"
45
45
  },
46
46
  "devDependencies": {
47
- "@hpcc-js/bundle": "^2.10.23",
48
- "@rollup/plugin-alias": "3.1.0",
49
- "@rollup/plugin-commonjs": "12.0.0",
50
- "@rollup/plugin-node-resolve": "8.0.0",
47
+ "@hpcc-js/bundle": "^2.11.1",
51
48
  "@types/node": "^10",
52
- "@typescript-eslint/eslint-plugin": "4.31.0",
53
- "@typescript-eslint/parser": "4.31.0",
54
- "ajv-cli": "3.3.0",
55
- "downlevel-dts": "0.6.0",
56
- "eslint": "7.32.0",
57
- "eslint-plugin-react-hooks": "^4.3.0",
58
- "npm-run-all": "4.1.5",
59
- "rimraf": "2.6.3",
60
- "rollup": "2.10.7",
49
+ "ajv-cli": "5.0.0",
61
50
  "rollup-plugin-add-shebang": "0.3.1",
62
51
  "rollup-plugin-json": "4.0.0",
63
- "rollup-plugin-postcss": "3.1.1",
64
- "rollup-plugin-sourcemaps": "0.6.2",
65
- "terser": "4.0.0",
66
- "ts-json-schema-generator": "0.47.0",
67
- "tslib": "2.3.0",
68
- "typescript": "4.3.4"
52
+ "ts-json-schema-generator": "0.98.0",
53
+ "tslib": "2.3.1"
69
54
  },
70
55
  "repository": {
71
56
  "type": "git",
@@ -78,5 +63,5 @@
78
63
  "url": "https://github.com/hpcc-systems/Visualization/issues"
79
64
  },
80
65
  "homepage": "https://github.com/hpcc-systems/Visualization",
81
- "gitHead": "e89ca1a0aecd1422fde175a1916720134e18014e"
66
+ "gitHead": "bc245d3dccc358e21bc1b2103f6d88bb75b9f999"
82
67
  }
package/schema/v1.json CHANGED
@@ -230,8 +230,7 @@
230
230
  "id": {
231
231
  "type": "string"
232
232
  },
233
- "onSelect": {
234
- },
233
+ "onSelect": {},
235
234
  "properties": {
236
235
  "properties": {
237
236
  "charttype": {
@@ -247,9 +246,7 @@
247
246
  "type": "string"
248
247
  },
249
248
  "type": {
250
- "enum": [
251
- "CHORO"
252
- ],
249
+ "const": "CHORO",
253
250
  "type": "string"
254
251
  },
255
252
  "visualizations": {
@@ -330,9 +327,7 @@
330
327
  "additionalProperties": false,
331
328
  "properties": {
332
329
  "databomb": {
333
- "enum": [
334
- true
335
- ],
330
+ "const": true,
336
331
  "type": "boolean"
337
332
  },
338
333
  "filter": {
@@ -447,8 +442,7 @@
447
442
  "IFormVisualization": {
448
443
  "additionalProperties": false,
449
444
  "properties": {
450
- "color": {
451
- },
445
+ "color": {},
452
446
  "events": {
453
447
  "additionalProperties": {
454
448
  "$ref": "#/definitions/IEvent"
@@ -464,8 +458,7 @@
464
458
  "id": {
465
459
  "type": "string"
466
460
  },
467
- "onSelect": {
468
- },
461
+ "onSelect": {},
469
462
  "properties": {
470
463
  "properties": {
471
464
  "charttype": {
@@ -478,9 +471,7 @@
478
471
  "type": "string"
479
472
  },
480
473
  "type": {
481
- "enum": [
482
- "FORM"
483
- ],
474
+ "const": "FORM",
484
475
  "type": "string"
485
476
  }
486
477
  },
@@ -587,8 +578,7 @@
587
578
  "IGraphVisualization": {
588
579
  "additionalProperties": false,
589
580
  "properties": {
590
- "color": {
591
- },
581
+ "color": {},
592
582
  "events": {
593
583
  "additionalProperties": {
594
584
  "$ref": "#/definitions/IEvent"
@@ -619,8 +609,7 @@
619
609
  },
620
610
  "type": "array"
621
611
  },
622
- "onSelect": {
623
- },
612
+ "onSelect": {},
624
613
  "properties": {
625
614
  "properties": {
626
615
  "charttype": {
@@ -636,9 +625,7 @@
636
625
  "type": "string"
637
626
  },
638
627
  "type": {
639
- "enum": [
640
- "GRAPH"
641
- ],
628
+ "const": "GRAPH",
642
629
  "type": "string"
643
630
  }
644
631
  },
@@ -713,8 +700,7 @@
713
700
  "IHeatMapVisualization": {
714
701
  "additionalProperties": false,
715
702
  "properties": {
716
- "color": {
717
- },
703
+ "color": {},
718
704
  "events": {
719
705
  "additionalProperties": {
720
706
  "$ref": "#/definitions/IEvent"
@@ -730,8 +716,7 @@
730
716
  "id": {
731
717
  "type": "string"
732
718
  },
733
- "onSelect": {
734
- },
719
+ "onSelect": {},
735
720
  "properties": {
736
721
  "properties": {
737
722
  "charttype": {
@@ -747,9 +732,7 @@
747
732
  "type": "string"
748
733
  },
749
734
  "type": {
750
- "enum": [
751
- "HEAT_MAP"
752
- ],
735
+ "const": "HEAT_MAP",
753
736
  "type": "string"
754
737
  }
755
738
  },
@@ -862,8 +845,7 @@
862
845
  "ILineVisualization": {
863
846
  "additionalProperties": false,
864
847
  "properties": {
865
- "color": {
866
- },
848
+ "color": {},
867
849
  "events": {
868
850
  "additionalProperties": {
869
851
  "$ref": "#/definitions/IEvent"
@@ -879,8 +861,7 @@
879
861
  "id": {
880
862
  "type": "string"
881
863
  },
882
- "onSelect": {
883
- },
864
+ "onSelect": {},
884
865
  "properties": {
885
866
  "properties": {
886
867
  "charttype": {
@@ -896,9 +877,7 @@
896
877
  "type": "string"
897
878
  },
898
879
  "type": {
899
- "enum": [
900
- "LINE"
901
- ],
880
+ "const": "LINE",
902
881
  "type": "string"
903
882
  }
904
883
  },
@@ -993,8 +972,7 @@
993
972
  "IPieVisualization": {
994
973
  "additionalProperties": false,
995
974
  "properties": {
996
- "color": {
997
- },
975
+ "color": {},
998
976
  "events": {
999
977
  "additionalProperties": {
1000
978
  "$ref": "#/definitions/IEvent"
@@ -1010,8 +988,7 @@
1010
988
  "id": {
1011
989
  "type": "string"
1012
990
  },
1013
- "onSelect": {
1014
- },
991
+ "onSelect": {},
1015
992
  "properties": {
1016
993
  "properties": {
1017
994
  "charttype": {
@@ -1094,8 +1071,7 @@
1094
1071
  "ISliderVisualization": {
1095
1072
  "additionalProperties": false,
1096
1073
  "properties": {
1097
- "color": {
1098
- },
1074
+ "color": {},
1099
1075
  "events": {
1100
1076
  "additionalProperties": {
1101
1077
  "$ref": "#/definitions/IEvent"
@@ -1111,8 +1087,7 @@
1111
1087
  "id": {
1112
1088
  "type": "string"
1113
1089
  },
1114
- "onSelect": {
1115
- },
1090
+ "onSelect": {},
1116
1091
  "properties": {
1117
1092
  "properties": {
1118
1093
  "charttype": {
@@ -1134,9 +1109,7 @@
1134
1109
  "type": "string"
1135
1110
  },
1136
1111
  "type": {
1137
- "enum": [
1138
- "SLIDER"
1139
- ],
1112
+ "const": "SLIDER",
1140
1113
  "type": "string"
1141
1114
  }
1142
1115
  },
@@ -1203,8 +1176,7 @@
1203
1176
  "ITableVisualization": {
1204
1177
  "additionalProperties": false,
1205
1178
  "properties": {
1206
- "color": {
1207
- },
1179
+ "color": {},
1208
1180
  "events": {
1209
1181
  "additionalProperties": {
1210
1182
  "$ref": "#/definitions/IEvent"
@@ -1226,8 +1198,7 @@
1226
1198
  },
1227
1199
  "type": "array"
1228
1200
  },
1229
- "onSelect": {
1230
- },
1201
+ "onSelect": {},
1231
1202
  "properties": {
1232
1203
  "properties": {
1233
1204
  "charttype": {
@@ -1243,9 +1214,7 @@
1243
1214
  "type": "string"
1244
1215
  },
1245
1216
  "type": {
1246
- "enum": [
1247
- "TABLE"
1248
- ],
1217
+ "const": "TABLE",
1249
1218
  "type": "string"
1250
1219
  }
1251
1220
  },
@@ -1276,8 +1245,7 @@
1276
1245
  "$ref": "#/definitions/VisualizationFieldDataType"
1277
1246
  },
1278
1247
  "default": {
1279
- "items": {
1280
- },
1248
+ "items": {},
1281
1249
  "type": "array"
1282
1250
  },
1283
1251
  "function": {
@@ -1409,30 +1377,10 @@
1409
1377
  "$ref": "#/definitions/VisualizationFieldDataType"
1410
1378
  },
1411
1379
  {
1412
- "enum": [
1413
- "range"
1414
- ],
1380
+ "const": "range",
1415
1381
  "type": "string"
1416
1382
  }
1417
1383
  ]
1418
- },
1419
- "VisualizationType": {
1420
- "enum": [
1421
- "PIE",
1422
- "LINE",
1423
- "BAR",
1424
- "TABLE",
1425
- "CHORO",
1426
- "GRAPH",
1427
- "HEAT_MAP",
1428
- "SLIDER",
1429
- "SUMMARY",
1430
- "FORM",
1431
- "2DCHART",
1432
- "WORD_CLOUD",
1433
- "BUBBLE"
1434
- ],
1435
- "type": "string"
1436
1384
  }
1437
1385
  }
1438
- }
1386
+ }