@lightdash/common 0.2578.0 → 0.2579.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.
@@ -49,9 +49,7 @@
49
49
  },
50
50
  "generationType": {
51
51
  "description": "Optional marker for metrics generated by the system.\nCurrently used for Period-over-Period (PoP) previous-period metrics.",
52
- "enum": [
53
- "periodOverPeriod"
54
- ],
52
+ "enum": ["periodOverPeriod"],
55
53
  "type": "string"
56
54
  },
57
55
  "granularity": {
@@ -108,18 +106,10 @@
108
106
  },
109
107
  "uuid": {
110
108
  "description": "Unique identifier for the metric",
111
- "type": [
112
- "string",
113
- "null"
114
- ]
109
+ "type": ["string", "null"]
115
110
  }
116
111
  },
117
- "required": [
118
- "type",
119
- "sql",
120
- "table",
121
- "name"
122
- ],
112
+ "required": ["type", "sql", "table", "name"],
123
113
  "type": "object"
124
114
  },
125
115
  "AndFilterGroupInput": {
@@ -134,9 +124,7 @@
134
124
  "type": "string"
135
125
  }
136
126
  },
137
- "required": [
138
- "and"
139
- ],
127
+ "required": ["and"],
140
128
  "type": "object"
141
129
  },
142
130
  "AnyType": {
@@ -202,10 +190,7 @@
202
190
  "type": "array"
203
191
  }
204
192
  },
205
- "required": [
206
- "operator",
207
- "id"
208
- ],
193
+ "required": ["operator", "id"],
209
194
  "type": "object"
210
195
  },
211
196
  "BigNumber": {
@@ -270,9 +255,7 @@
270
255
  "description": "Type of chart visualization"
271
256
  }
272
257
  },
273
- "required": [
274
- "type"
275
- ],
258
+ "required": ["type"],
276
259
  "type": "object"
277
260
  },
278
261
  "BinRange": {
@@ -291,11 +274,7 @@
291
274
  "type": "object"
292
275
  },
293
276
  "BinType": {
294
- "enum": [
295
- "fixed_number",
296
- "fixed_width",
297
- "custom_range"
298
- ],
277
+ "enum": ["fixed_number", "fixed_width", "custom_range"],
299
278
  "type": "string"
300
279
  },
301
280
  "CartesianChart": {
@@ -313,10 +292,7 @@
313
292
  "description": "Metadata for series (colors, etc.)"
314
293
  }
315
294
  },
316
- "required": [
317
- "eChartsConfig",
318
- "layout"
319
- ],
295
+ "required": ["eChartsConfig", "layout"],
320
296
  "type": "object"
321
297
  },
322
298
  "CartesianChartConfig": {
@@ -330,21 +306,14 @@
330
306
  "description": "Type of chart visualization"
331
307
  }
332
308
  },
333
- "required": [
334
- "type"
335
- ],
309
+ "required": ["type"],
336
310
  "type": "object"
337
311
  },
338
312
  "CartesianChartLayout": {
339
313
  "$ref": "#/$defs/Partial_CompleteCartesianChartLayout_"
340
314
  },
341
315
  "CartesianSeriesType": {
342
- "enum": [
343
- "line",
344
- "bar",
345
- "scatter",
346
- "area"
347
- ],
316
+ "enum": ["line", "bar", "scatter", "area"],
348
317
  "type": "string"
349
318
  },
350
319
  "ChartConfig": {
@@ -379,57 +348,39 @@
379
348
  ]
380
349
  },
381
350
  "ChartType.BIG_NUMBER": {
382
- "enum": [
383
- "big_number"
384
- ],
351
+ "enum": ["big_number"],
385
352
  "type": "string"
386
353
  },
387
354
  "ChartType.CARTESIAN": {
388
- "enum": [
389
- "cartesian"
390
- ],
355
+ "enum": ["cartesian"],
391
356
  "type": "string"
392
357
  },
393
358
  "ChartType.CUSTOM": {
394
- "enum": [
395
- "custom"
396
- ],
359
+ "enum": ["custom"],
397
360
  "type": "string"
398
361
  },
399
362
  "ChartType.FUNNEL": {
400
- "enum": [
401
- "funnel"
402
- ],
363
+ "enum": ["funnel"],
403
364
  "type": "string"
404
365
  },
405
366
  "ChartType.GAUGE": {
406
- "enum": [
407
- "gauge"
408
- ],
367
+ "enum": ["gauge"],
409
368
  "type": "string"
410
369
  },
411
370
  "ChartType.MAP": {
412
- "enum": [
413
- "map"
414
- ],
371
+ "enum": ["map"],
415
372
  "type": "string"
416
373
  },
417
374
  "ChartType.PIE": {
418
- "enum": [
419
- "pie"
420
- ],
375
+ "enum": ["pie"],
421
376
  "type": "string"
422
377
  },
423
378
  "ChartType.TABLE": {
424
- "enum": [
425
- "table"
426
- ],
379
+ "enum": ["table"],
427
380
  "type": "string"
428
381
  },
429
382
  "ChartType.TREEMAP": {
430
- "enum": [
431
- "treemap"
432
- ],
383
+ "enum": ["treemap"],
433
384
  "type": "string"
434
385
  },
435
386
  "ColumnProperties": {
@@ -440,10 +391,7 @@
440
391
  },
441
392
  "displayStyle": {
442
393
  "description": "How to display the cell value",
443
- "enum": [
444
- "text",
445
- "bar"
446
- ],
394
+ "enum": ["text", "bar"],
447
395
  "type": "string"
448
396
  },
449
397
  "frozen": {
@@ -525,17 +473,11 @@
525
473
  ]
526
474
  },
527
475
  "ComparisonFormatTypes": {
528
- "enum": [
529
- "raw",
530
- "percentage"
531
- ],
476
+ "enum": ["raw", "percentage"],
532
477
  "type": "string"
533
478
  },
534
479
  "ConditionalFormattingColorApplyTo": {
535
- "enum": [
536
- "cell",
537
- "text"
538
- ],
480
+ "enum": ["cell", "text"],
539
481
  "type": "string"
540
482
  },
541
483
  "ConditionalFormattingColorRange": {
@@ -549,10 +491,7 @@
549
491
  "type": "string"
550
492
  }
551
493
  },
552
- "required": [
553
- "end",
554
- "start"
555
- ],
494
+ "required": ["end", "start"],
556
495
  "type": "object"
557
496
  },
558
497
  "ConditionalFormattingConfig": {
@@ -595,11 +534,7 @@
595
534
  ]
596
535
  }
597
536
  },
598
- "required": [
599
- "rule",
600
- "color",
601
- "target"
602
- ],
537
+ "required": ["rule", "color", "target"],
603
538
  "type": "object"
604
539
  },
605
540
  "ConditionalFormattingConfigWithSingleColor": {
@@ -639,11 +574,7 @@
639
574
  ]
640
575
  }
641
576
  },
642
- "required": [
643
- "rules",
644
- "color",
645
- "target"
646
- ],
577
+ "required": ["rules", "color", "target"],
647
578
  "type": "object"
648
579
  },
649
580
  "ConditionalFormattingMinMax_number-or-auto_": {
@@ -655,9 +586,7 @@
655
586
  "type": "number"
656
587
  },
657
588
  {
658
- "enum": [
659
- "auto"
660
- ],
589
+ "enum": ["auto"],
661
590
  "type": "string"
662
591
  }
663
592
  ],
@@ -670,19 +599,14 @@
670
599
  "type": "number"
671
600
  },
672
601
  {
673
- "enum": [
674
- "auto"
675
- ],
602
+ "enum": ["auto"],
676
603
  "type": "string"
677
604
  }
678
605
  ],
679
606
  "description": "Minimum value (number or 'auto')"
680
607
  }
681
608
  },
682
- "required": [
683
- "max",
684
- "min"
685
- ],
609
+ "required": ["max", "min"],
686
610
  "type": "object"
687
611
  },
688
612
  "ConditionalFormattingWithCompareTarget_number-or-string_": {
@@ -723,9 +647,7 @@
723
647
  "type": "array"
724
648
  }
725
649
  },
726
- "required": [
727
- "compareTarget"
728
- ],
650
+ "required": ["compareTarget"],
729
651
  "type": "object"
730
652
  }
731
653
  ]
@@ -763,9 +685,7 @@
763
685
  "type": "array"
764
686
  }
765
687
  },
766
- "required": [
767
- "values"
768
- ],
688
+ "required": ["values"],
769
689
  "type": "object"
770
690
  }
771
691
  ]
@@ -836,15 +756,11 @@
836
756
  ]
837
757
  },
838
758
  "CustomDimensionType.BIN": {
839
- "enum": [
840
- "bin"
841
- ],
759
+ "enum": ["bin"],
842
760
  "type": "string"
843
761
  },
844
762
  "CustomDimensionType.SQL": {
845
- "enum": [
846
- "sql"
847
- ],
763
+ "enum": ["sql"],
848
764
  "type": "string"
849
765
  },
850
766
  "CustomFormat": {
@@ -888,9 +804,7 @@
888
804
  "description": "Format type"
889
805
  }
890
806
  },
891
- "required": [
892
- "type"
893
- ],
807
+ "required": ["type"],
894
808
  "type": "object"
895
809
  },
896
810
  "CustomFormatType": {
@@ -936,14 +850,7 @@
936
850
  "description": "Type of custom dimension (bin or sql)"
937
851
  }
938
852
  },
939
- "required": [
940
- "id",
941
- "name",
942
- "table",
943
- "type",
944
- "sql",
945
- "dimensionType"
946
- ],
853
+ "required": ["id", "name", "table", "type", "sql", "dimensionType"],
947
854
  "type": "object"
948
855
  },
949
856
  "CustomVis": {
@@ -966,9 +873,7 @@
966
873
  "description": "Type of chart visualization"
967
874
  }
968
875
  },
969
- "required": [
970
- "type"
971
- ],
876
+ "required": ["type"],
972
877
  "type": "object"
973
878
  },
974
879
  "DimensionOverrides": {
@@ -979,13 +884,7 @@
979
884
  "type": "object"
980
885
  },
981
886
  "DimensionType": {
982
- "enum": [
983
- "string",
984
- "number",
985
- "timestamp",
986
- "date",
987
- "boolean"
988
- ],
887
+ "enum": ["string", "number", "timestamp", "date", "boolean"],
989
888
  "type": "string"
990
889
  },
991
890
  "EChartsConfig": {
@@ -1028,11 +927,7 @@
1028
927
  "properties": {
1029
928
  "align": {
1030
929
  "description": "Legend alignment",
1031
- "enum": [
1032
- "auto",
1033
- "left",
1034
- "right"
1035
- ],
930
+ "enum": ["auto", "left", "right"],
1036
931
  "type": "string"
1037
932
  },
1038
933
  "bottom": {
@@ -1063,10 +958,7 @@
1063
958
  },
1064
959
  "orient": {
1065
960
  "description": "Legend orientation",
1066
- "enum": [
1067
- "horizontal",
1068
- "vertical"
1069
- ],
961
+ "enum": ["horizontal", "vertical"],
1070
962
  "type": "string"
1071
963
  },
1072
964
  "right": {
@@ -1083,10 +975,7 @@
1083
975
  },
1084
976
  "type": {
1085
977
  "description": "Legend type (plain or scrollable)",
1086
- "enum": [
1087
- "plain",
1088
- "scroll"
1089
- ],
978
+ "enum": ["plain", "scroll"],
1090
979
  "type": "string"
1091
980
  },
1092
981
  "width": {
@@ -1106,9 +995,7 @@
1106
995
  "type": "string"
1107
996
  }
1108
997
  },
1109
- "required": [
1110
- "fieldId"
1111
- ],
998
+ "required": ["fieldId"],
1112
999
  "type": "object"
1113
1000
  },
1114
1001
  "FilterGroupInput": {
@@ -1211,9 +1098,7 @@
1211
1098
  "description": "Boundary type"
1212
1099
  }
1213
1100
  },
1214
- "required": [
1215
- "type"
1216
- ],
1101
+ "required": ["type"],
1217
1102
  "type": "object"
1218
1103
  },
1219
1104
  "FrameBoundaryType": {
@@ -1241,17 +1126,11 @@
1241
1126
  "description": "Start boundary of the frame"
1242
1127
  }
1243
1128
  },
1244
- "required": [
1245
- "end",
1246
- "frameType"
1247
- ],
1129
+ "required": ["end", "frameType"],
1248
1130
  "type": "object"
1249
1131
  },
1250
1132
  "FrameType": {
1251
- "enum": [
1252
- "rows",
1253
- "range"
1254
- ],
1133
+ "enum": ["rows", "range"],
1255
1134
  "type": "string"
1256
1135
  },
1257
1136
  "FunnelChart": {
@@ -1316,32 +1195,19 @@
1316
1195
  "description": "Type of chart visualization"
1317
1196
  }
1318
1197
  },
1319
- "required": [
1320
- "type"
1321
- ],
1198
+ "required": ["type"],
1322
1199
  "type": "object"
1323
1200
  },
1324
1201
  "FunnelChartDataInput": {
1325
- "enum": [
1326
- "row",
1327
- "column"
1328
- ],
1202
+ "enum": ["row", "column"],
1329
1203
  "type": "string"
1330
1204
  },
1331
1205
  "FunnelChartLabelPosition": {
1332
- "enum": [
1333
- "inside",
1334
- "left",
1335
- "right",
1336
- "hidden"
1337
- ],
1206
+ "enum": ["inside", "left", "right", "hidden"],
1338
1207
  "type": "string"
1339
1208
  },
1340
1209
  "FunnelChartLegendPosition": {
1341
- "enum": [
1342
- "horizontal",
1343
- "vertical"
1344
- ],
1210
+ "enum": ["horizontal", "vertical"],
1345
1211
  "type": "string"
1346
1212
  },
1347
1213
  "GaugeChart": {
@@ -1401,9 +1267,7 @@
1401
1267
  "description": "Type of chart visualization"
1402
1268
  }
1403
1269
  },
1404
- "required": [
1405
- "type"
1406
- ],
1270
+ "required": ["type"],
1407
1271
  "type": "object"
1408
1272
  },
1409
1273
  "GaugeSection": {
@@ -1431,11 +1295,7 @@
1431
1295
  "type": "string"
1432
1296
  }
1433
1297
  },
1434
- "required": [
1435
- "color",
1436
- "max",
1437
- "min"
1438
- ],
1298
+ "required": ["color", "max", "min"],
1439
1299
  "type": "object"
1440
1300
  },
1441
1301
  "MapChart": {
@@ -1576,26 +1436,15 @@
1576
1436
  "description": "Type of chart visualization"
1577
1437
  }
1578
1438
  },
1579
- "required": [
1580
- "type"
1581
- ],
1439
+ "required": ["type"],
1582
1440
  "type": "object"
1583
1441
  },
1584
1442
  "MapChartLocation": {
1585
- "enum": [
1586
- "USA",
1587
- "world",
1588
- "europe",
1589
- "custom"
1590
- ],
1443
+ "enum": ["USA", "world", "europe", "custom"],
1591
1444
  "type": "string"
1592
1445
  },
1593
1446
  "MapChartType": {
1594
- "enum": [
1595
- "scatter",
1596
- "area",
1597
- "heatmap"
1598
- ],
1447
+ "enum": ["scatter", "area", "heatmap"],
1599
1448
  "type": "string"
1600
1449
  },
1601
1450
  "MapFieldConfig": {
@@ -1612,13 +1461,7 @@
1612
1461
  "type": "object"
1613
1462
  },
1614
1463
  "MapTileBackground": {
1615
- "enum": [
1616
- "none",
1617
- "openstreetmap",
1618
- "light",
1619
- "dark",
1620
- "satellite"
1621
- ],
1464
+ "enum": ["none", "openstreetmap", "light", "dark", "satellite"],
1622
1465
  "type": "string"
1623
1466
  },
1624
1467
  "MarkLine": {
@@ -1657,11 +1500,7 @@
1657
1500
  "type": "number"
1658
1501
  }
1659
1502
  },
1660
- "required": [
1661
- "type",
1662
- "width",
1663
- "color"
1664
- ],
1503
+ "required": ["type", "width", "color"],
1665
1504
  "type": "object"
1666
1505
  },
1667
1506
  "symbol": {
@@ -1669,18 +1508,14 @@
1669
1508
  "type": "string"
1670
1509
  }
1671
1510
  },
1672
- "required": [
1673
- "data"
1674
- ],
1511
+ "required": ["data"],
1675
1512
  "type": "object"
1676
1513
  },
1677
1514
  "MarkLineData": {
1678
1515
  "properties": {
1679
1516
  "dynamicValue": {
1680
1517
  "description": "Dynamic value type",
1681
- "enum": [
1682
- "average"
1683
- ],
1518
+ "enum": ["average"],
1684
1519
  "type": "string"
1685
1520
  },
1686
1521
  "label": {
@@ -1692,11 +1527,7 @@
1692
1527
  },
1693
1528
  "position": {
1694
1529
  "description": "Label position",
1695
- "enum": [
1696
- "start",
1697
- "middle",
1698
- "end"
1699
- ],
1530
+ "enum": ["start", "middle", "end"],
1700
1531
  "type": "string"
1701
1532
  }
1702
1533
  },
@@ -1710,9 +1541,7 @@
1710
1541
  "type": "string"
1711
1542
  }
1712
1543
  },
1713
- "required": [
1714
- "color"
1715
- ],
1544
+ "required": ["color"],
1716
1545
  "type": "object"
1717
1546
  },
1718
1547
  "name": {
@@ -1740,9 +1569,7 @@
1740
1569
  "type": "string"
1741
1570
  }
1742
1571
  },
1743
- "required": [
1744
- "uuid"
1745
- ],
1572
+ "required": ["uuid"],
1746
1573
  "type": "object"
1747
1574
  },
1748
1575
  "MetricFilterRule": {
@@ -1777,9 +1604,7 @@
1777
1604
  "type": "string"
1778
1605
  }
1779
1606
  },
1780
- "required": [
1781
- "fieldRef"
1782
- ],
1607
+ "required": ["fieldRef"],
1783
1608
  "type": "object"
1784
1609
  },
1785
1610
  "values": {
@@ -1790,11 +1615,7 @@
1790
1615
  "type": "array"
1791
1616
  }
1792
1617
  },
1793
- "required": [
1794
- "operator",
1795
- "id",
1796
- "target"
1797
- ],
1618
+ "required": ["operator", "id", "target"],
1798
1619
  "type": "object"
1799
1620
  },
1800
1621
  "MetricOverrides": {
@@ -1856,9 +1677,7 @@
1856
1677
  "type": "array"
1857
1678
  }
1858
1679
  },
1859
- "required": [
1860
- "or"
1861
- ],
1680
+ "required": ["or"],
1862
1681
  "type": "object"
1863
1682
  },
1864
1683
  "ParametersValuesMap": {
@@ -2015,11 +1834,7 @@
2015
1834
  "type": "boolean"
2016
1835
  },
2017
1836
  "valueLabel": {
2018
- "enum": [
2019
- "hidden",
2020
- "inside",
2021
- "outside"
2022
- ],
1837
+ "enum": ["hidden", "inside", "outside"],
2023
1838
  "type": "string"
2024
1839
  }
2025
1840
  },
@@ -2067,10 +1882,7 @@
2067
1882
  "type": "array"
2068
1883
  }
2069
1884
  },
2070
- "required": [
2071
- "target",
2072
- "operator"
2073
- ],
1885
+ "required": ["target", "operator"],
2074
1886
  "type": "object"
2075
1887
  },
2076
1888
  "Pick_Metric.formatOptions_": {
@@ -2125,9 +1937,7 @@
2125
1937
  "$ref": "#/$defs/Pick_CompiledDimension.name-or-label-or-table_"
2126
1938
  }
2127
1939
  },
2128
- "required": [
2129
- "hasADateDimension"
2130
- ],
1940
+ "required": ["hasADateDimension"],
2131
1941
  "type": "object"
2132
1942
  },
2133
1943
  "metricOverrides": {
@@ -2256,24 +2066,15 @@
2256
2066
  "description": "Type of chart visualization"
2257
2067
  }
2258
2068
  },
2259
- "required": [
2260
- "type"
2261
- ],
2069
+ "required": ["type"],
2262
2070
  "type": "object"
2263
2071
  },
2264
2072
  "PieChartLegendPosition": {
2265
- "enum": [
2266
- "horizontal",
2267
- "vertical"
2268
- ],
2073
+ "enum": ["horizontal", "vertical"],
2269
2074
  "type": "string"
2270
2075
  },
2271
2076
  "PieChartValueLabel": {
2272
- "enum": [
2273
- "hidden",
2274
- "inside",
2275
- "outside"
2276
- ],
2077
+ "enum": ["hidden", "inside", "outside"],
2277
2078
  "type": "string"
2278
2079
  },
2279
2080
  "PivotReference": {
@@ -2290,9 +2091,7 @@
2290
2091
  "type": "array"
2291
2092
  }
2292
2093
  },
2293
- "required": [
2294
- "field"
2295
- ],
2094
+ "required": ["field"],
2296
2095
  "type": "object"
2297
2096
  },
2298
2097
  "PivotValue": {
@@ -2305,10 +2104,7 @@
2305
2104
  "description": "Pivot value"
2306
2105
  }
2307
2106
  },
2308
- "required": [
2309
- "value",
2310
- "field"
2311
- ],
2107
+ "required": ["value", "field"],
2312
2108
  "type": "object"
2313
2109
  },
2314
2110
  "Record_string.ColumnProperties_": {
@@ -2395,10 +2191,7 @@
2395
2191
  "description": "Y axis field reference"
2396
2192
  }
2397
2193
  },
2398
- "required": [
2399
- "yRef",
2400
- "xRef"
2401
- ],
2194
+ "required": ["yRef", "xRef"],
2402
2195
  "type": "object"
2403
2196
  },
2404
2197
  "hidden": {
@@ -2486,10 +2279,7 @@
2486
2279
  "type": "number"
2487
2280
  }
2488
2281
  },
2489
- "required": [
2490
- "type",
2491
- "encode"
2492
- ],
2282
+ "required": ["type", "encode"],
2493
2283
  "type": "object"
2494
2284
  },
2495
2285
  "SeriesMetadata": {
@@ -2499,9 +2289,7 @@
2499
2289
  "type": "string"
2500
2290
  }
2501
2291
  },
2502
- "required": [
2503
- "color"
2504
- ],
2292
+ "required": ["color"],
2505
2293
  "type": "object"
2506
2294
  },
2507
2295
  "SortField": {
@@ -2519,10 +2307,7 @@
2519
2307
  "type": "boolean"
2520
2308
  }
2521
2309
  },
2522
- "required": [
2523
- "descending",
2524
- "fieldId"
2525
- ],
2310
+ "required": ["descending", "fieldId"],
2526
2311
  "type": "object"
2527
2312
  },
2528
2313
  "TableCalculation": {
@@ -2551,10 +2336,7 @@
2551
2336
  "description": "Data type of the calculation result"
2552
2337
  }
2553
2338
  },
2554
- "required": [
2555
- "displayName",
2556
- "name"
2557
- ],
2339
+ "required": ["displayName", "name"],
2558
2340
  "type": "object"
2559
2341
  },
2560
2342
  {
@@ -2566,9 +2348,7 @@
2566
2348
  "type": "string"
2567
2349
  }
2568
2350
  },
2569
- "required": [
2570
- "sql"
2571
- ],
2351
+ "required": ["sql"],
2572
2352
  "type": "object"
2573
2353
  },
2574
2354
  {
@@ -2578,9 +2358,7 @@
2578
2358
  "description": "Template-based calculation (alternative to sql)"
2579
2359
  }
2580
2360
  },
2581
- "required": [
2582
- "template"
2583
- ],
2361
+ "required": ["template"],
2584
2362
  "type": "object"
2585
2363
  }
2586
2364
  ]
@@ -2603,21 +2381,11 @@
2603
2381
  "type": "string"
2604
2382
  },
2605
2383
  "order": {
2606
- "enum": [
2607
- "asc",
2608
- "desc",
2609
- null
2610
- ],
2611
- "type": [
2612
- "string",
2613
- "null"
2614
- ]
2384
+ "enum": ["asc", "desc", null],
2385
+ "type": ["string", "null"]
2615
2386
  }
2616
2387
  },
2617
- "required": [
2618
- "order",
2619
- "fieldId"
2620
- ],
2388
+ "required": ["order", "fieldId"],
2621
2389
  "type": "object"
2622
2390
  },
2623
2391
  "type": "array"
@@ -2633,11 +2401,7 @@
2633
2401
  "description": "Type of template calculation"
2634
2402
  }
2635
2403
  },
2636
- "required": [
2637
- "orderBy",
2638
- "fieldId",
2639
- "type"
2640
- ],
2404
+ "required": ["orderBy", "fieldId", "type"],
2641
2405
  "type": "object"
2642
2406
  },
2643
2407
  {
@@ -2654,21 +2418,11 @@
2654
2418
  "type": "string"
2655
2419
  },
2656
2420
  "order": {
2657
- "enum": [
2658
- "asc",
2659
- "desc",
2660
- null
2661
- ],
2662
- "type": [
2663
- "string",
2664
- "null"
2665
- ]
2421
+ "enum": ["asc", "desc", null],
2422
+ "type": ["string", "null"]
2666
2423
  }
2667
2424
  },
2668
- "required": [
2669
- "order",
2670
- "fieldId"
2671
- ],
2425
+ "required": ["order", "fieldId"],
2672
2426
  "type": "object"
2673
2427
  },
2674
2428
  "type": "array"
@@ -2684,11 +2438,7 @@
2684
2438
  "description": "Type of template calculation"
2685
2439
  }
2686
2440
  },
2687
- "required": [
2688
- "orderBy",
2689
- "fieldId",
2690
- "type"
2691
- ],
2441
+ "required": ["orderBy", "fieldId", "type"],
2692
2442
  "type": "object"
2693
2443
  },
2694
2444
  {
@@ -2709,10 +2459,7 @@
2709
2459
  "description": "Type of template calculation"
2710
2460
  }
2711
2461
  },
2712
- "required": [
2713
- "fieldId",
2714
- "type"
2715
- ],
2462
+ "required": ["fieldId", "type"],
2716
2463
  "type": "object"
2717
2464
  },
2718
2465
  {
@@ -2726,10 +2473,7 @@
2726
2473
  "description": "Type of template calculation"
2727
2474
  }
2728
2475
  },
2729
- "required": [
2730
- "fieldId",
2731
- "type"
2732
- ],
2476
+ "required": ["fieldId", "type"],
2733
2477
  "type": "object"
2734
2478
  },
2735
2479
  {
@@ -2743,20 +2487,14 @@
2743
2487
  "description": "Type of template calculation"
2744
2488
  }
2745
2489
  },
2746
- "required": [
2747
- "fieldId",
2748
- "type"
2749
- ],
2490
+ "required": ["fieldId", "type"],
2750
2491
  "type": "object"
2751
2492
  },
2752
2493
  {
2753
2494
  "properties": {
2754
2495
  "fieldId": {
2755
2496
  "description": "Field ID to apply the template to",
2756
- "type": [
2757
- "string",
2758
- "null"
2759
- ]
2497
+ "type": ["string", "null"]
2760
2498
  },
2761
2499
  "frame": {
2762
2500
  "$ref": "#/$defs/FrameClause",
@@ -2770,21 +2508,11 @@
2770
2508
  "type": "string"
2771
2509
  },
2772
2510
  "order": {
2773
- "enum": [
2774
- "asc",
2775
- "desc",
2776
- null
2777
- ],
2778
- "type": [
2779
- "string",
2780
- "null"
2781
- ]
2511
+ "enum": ["asc", "desc", null],
2512
+ "type": ["string", "null"]
2782
2513
  }
2783
2514
  },
2784
- "required": [
2785
- "order",
2786
- "fieldId"
2787
- ],
2515
+ "required": ["order", "fieldId"],
2788
2516
  "type": "object"
2789
2517
  },
2790
2518
  "type": "array"
@@ -2817,49 +2545,31 @@
2817
2545
  ]
2818
2546
  },
2819
2547
  "TableCalculationTemplateType.PERCENT_CHANGE_FROM_PREVIOUS": {
2820
- "enum": [
2821
- "percent_change_from_previous"
2822
- ],
2548
+ "enum": ["percent_change_from_previous"],
2823
2549
  "type": "string"
2824
2550
  },
2825
2551
  "TableCalculationTemplateType.PERCENT_OF_COLUMN_TOTAL": {
2826
- "enum": [
2827
- "percent_of_column_total"
2828
- ],
2552
+ "enum": ["percent_of_column_total"],
2829
2553
  "type": "string"
2830
2554
  },
2831
2555
  "TableCalculationTemplateType.PERCENT_OF_PREVIOUS_VALUE": {
2832
- "enum": [
2833
- "percent_of_previous_value"
2834
- ],
2556
+ "enum": ["percent_of_previous_value"],
2835
2557
  "type": "string"
2836
2558
  },
2837
2559
  "TableCalculationTemplateType.RANK_IN_COLUMN": {
2838
- "enum": [
2839
- "rank_in_column"
2840
- ],
2560
+ "enum": ["rank_in_column"],
2841
2561
  "type": "string"
2842
2562
  },
2843
2563
  "TableCalculationTemplateType.RUNNING_TOTAL": {
2844
- "enum": [
2845
- "running_total"
2846
- ],
2564
+ "enum": ["running_total"],
2847
2565
  "type": "string"
2848
2566
  },
2849
2567
  "TableCalculationTemplateType.WINDOW_FUNCTION": {
2850
- "enum": [
2851
- "window_function"
2852
- ],
2568
+ "enum": ["window_function"],
2853
2569
  "type": "string"
2854
2570
  },
2855
2571
  "TableCalculationType": {
2856
- "enum": [
2857
- "number",
2858
- "string",
2859
- "date",
2860
- "timestamp",
2861
- "boolean"
2862
- ],
2572
+ "enum": ["number", "string", "date", "timestamp", "boolean"],
2863
2573
  "type": "string"
2864
2574
  },
2865
2575
  "TableChart": {
@@ -2917,9 +2627,7 @@
2917
2627
  "description": "Type of chart visualization"
2918
2628
  }
2919
2629
  },
2920
- "required": [
2921
- "type"
2922
- ],
2630
+ "required": ["type"],
2923
2631
  "type": "object"
2924
2632
  },
2925
2633
  "TimeFrames": {
@@ -3021,9 +2729,7 @@
3021
2729
  "description": "Type of chart visualization"
3022
2730
  }
3023
2731
  },
3024
- "required": [
3025
- "type"
3026
- ],
2732
+ "required": ["type"],
3027
2733
  "type": "object"
3028
2734
  },
3029
2735
  "WindowFunctionType": {
@@ -3061,11 +2767,7 @@
3061
2767
  ]
3062
2768
  },
3063
2769
  "XAxisSortType": {
3064
- "enum": [
3065
- "default",
3066
- "category",
3067
- "bar_totals"
3068
- ],
2770
+ "enum": ["default", "category", "bar_totals"],
3069
2771
  "type": "string"
3070
2772
  }
3071
2773
  },
@@ -3091,9 +2793,7 @@
3091
2793
  "description": "Type of chart visualization"
3092
2794
  }
3093
2795
  },
3094
- "required": [
3095
- "type"
3096
- ],
2796
+ "required": ["type"],
3097
2797
  "type": "object"
3098
2798
  },
3099
2799
  {
@@ -3107,9 +2807,7 @@
3107
2807
  "description": "Type of chart visualization"
3108
2808
  }
3109
2809
  },
3110
- "required": [
3111
- "type"
3112
- ],
2810
+ "required": ["type"],
3113
2811
  "type": "object"
3114
2812
  },
3115
2813
  {
@@ -3123,9 +2821,7 @@
3123
2821
  "description": "Type of chart visualization"
3124
2822
  }
3125
2823
  },
3126
- "required": [
3127
- "type"
3128
- ],
2824
+ "required": ["type"],
3129
2825
  "type": "object"
3130
2826
  },
3131
2827
  {
@@ -3139,9 +2835,7 @@
3139
2835
  "description": "Type of chart visualization"
3140
2836
  }
3141
2837
  },
3142
- "required": [
3143
- "type"
3144
- ],
2838
+ "required": ["type"],
3145
2839
  "type": "object"
3146
2840
  },
3147
2841
  {
@@ -3155,9 +2849,7 @@
3155
2849
  "description": "Type of chart visualization"
3156
2850
  }
3157
2851
  },
3158
- "required": [
3159
- "type"
3160
- ],
2852
+ "required": ["type"],
3161
2853
  "type": "object"
3162
2854
  },
3163
2855
  {
@@ -3171,9 +2863,7 @@
3171
2863
  "description": "Type of chart visualization"
3172
2864
  }
3173
2865
  },
3174
- "required": [
3175
- "type"
3176
- ],
2866
+ "required": ["type"],
3177
2867
  "type": "object"
3178
2868
  },
3179
2869
  {
@@ -3187,9 +2877,7 @@
3187
2877
  "description": "Type of chart visualization"
3188
2878
  }
3189
2879
  },
3190
- "required": [
3191
- "type"
3192
- ],
2880
+ "required": ["type"],
3193
2881
  "type": "object"
3194
2882
  },
3195
2883
  {
@@ -3203,9 +2891,7 @@
3203
2891
  "description": "Type of chart visualization"
3204
2892
  }
3205
2893
  },
3206
- "required": [
3207
- "type"
3208
- ],
2894
+ "required": ["type"],
3209
2895
  "type": "object"
3210
2896
  },
3211
2897
  {
@@ -3219,9 +2905,7 @@
3219
2905
  "description": "Type of chart visualization"
3220
2906
  }
3221
2907
  },
3222
- "required": [
3223
- "type"
3224
- ],
2908
+ "required": ["type"],
3225
2909
  "type": "object"
3226
2910
  }
3227
2911
  ],
@@ -3259,9 +2943,7 @@
3259
2943
  "$ref": "#/$defs/FiltersInput"
3260
2944
  }
3261
2945
  },
3262
- "required": [
3263
- "filters"
3264
- ],
2946
+ "required": ["filters"],
3265
2947
  "type": "object"
3266
2948
  }
3267
2949
  ]
@@ -3285,9 +2967,7 @@
3285
2967
  "type": "array"
3286
2968
  }
3287
2969
  },
3288
- "required": [
3289
- "columns"
3290
- ],
2970
+ "required": ["columns"],
3291
2971
  "type": "object"
3292
2972
  },
3293
2973
  "slug": {
@@ -3309,9 +2989,7 @@
3309
2989
  "type": "array"
3310
2990
  }
3311
2991
  },
3312
- "required": [
3313
- "columnOrder"
3314
- ],
2992
+ "required": ["columnOrder"],
3315
2993
  "type": "object"
3316
2994
  },
3317
2995
  "tableName": {