@lightdash/common 0.2430.2 → 0.2430.3
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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/schemas/json/chart-as-code-1.0.json +11 -1
- package/dist/cjs/schemas/json/dashboard-as-code-1.0.json +6 -4
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/schemas/json/chart-as-code-1.0.json +11 -1
- package/dist/esm/schemas/json/dashboard-as-code-1.0.json +6 -4
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/schemas/json/chart-as-code-1.0.json +11 -1
- package/dist/types/schemas/json/dashboard-as-code-1.0.json +6 -4
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"name",
|
|
10
10
|
"tableName",
|
|
11
11
|
"metricQuery",
|
|
12
|
+
"tableConfig",
|
|
12
13
|
"slug",
|
|
13
14
|
"spaceSlug",
|
|
14
15
|
"version",
|
|
@@ -61,7 +62,15 @@
|
|
|
61
62
|
"type": "object",
|
|
62
63
|
"description": "The query configuration defining what data to fetch",
|
|
63
64
|
"additionalProperties": false,
|
|
64
|
-
"required": [
|
|
65
|
+
"required": [
|
|
66
|
+
"exploreName",
|
|
67
|
+
"dimensions",
|
|
68
|
+
"metrics",
|
|
69
|
+
"filters",
|
|
70
|
+
"sorts",
|
|
71
|
+
"limit",
|
|
72
|
+
"tableCalculations"
|
|
73
|
+
],
|
|
65
74
|
"properties": {
|
|
66
75
|
"exploreName": {
|
|
67
76
|
"type": "string",
|
|
@@ -877,6 +886,7 @@
|
|
|
877
886
|
"type": "object",
|
|
878
887
|
"description": "Table view configuration",
|
|
879
888
|
"additionalProperties": false,
|
|
889
|
+
"required": ["columnOrder"],
|
|
880
890
|
"properties": {
|
|
881
891
|
"columnOrder": {
|
|
882
892
|
"type": "array",
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
"type": "object",
|
|
267
267
|
"description": "Dashboard-level filters that can be applied across all tiles",
|
|
268
268
|
"additionalProperties": false,
|
|
269
|
-
"required": ["dimensions"],
|
|
269
|
+
"required": ["dimensions", "metrics", "tableCalculations"],
|
|
270
270
|
"properties": {
|
|
271
271
|
"dimensions": {
|
|
272
272
|
"type": "array",
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
},
|
|
381
381
|
"tileTargets": {
|
|
382
382
|
"type": "object",
|
|
383
|
-
"description": "Per-tile filter configuration
|
|
383
|
+
"description": "Per-tile filter configuration, keyed by tile slug. Use tileTargets when a single dashboard filter needs to apply to tiles from different explores, mapping the filter to the equivalent field in each explore. Set to false to exclude a tile from this filter entirely. Example: a 'Date Range' filter might target orders_created_at in the orders explore but customers_signup_date in the customers explore.",
|
|
384
384
|
"additionalProperties": {
|
|
385
385
|
"oneOf": [
|
|
386
386
|
{
|
|
@@ -396,10 +396,12 @@
|
|
|
396
396
|
],
|
|
397
397
|
"properties": {
|
|
398
398
|
"fieldId": {
|
|
399
|
-
"type": "string"
|
|
399
|
+
"type": "string",
|
|
400
|
+
"description": "The field ID to filter on for this tile (e.g., 'customers_signup_date' when the default target is 'orders_created_at')"
|
|
400
401
|
},
|
|
401
402
|
"tableName": {
|
|
402
|
-
"type": "string"
|
|
403
|
+
"type": "string",
|
|
404
|
+
"description": "The table/explore containing the field for this tile (e.g., 'customers' when the default target table is 'orders')"
|
|
403
405
|
}
|
|
404
406
|
}
|
|
405
407
|
}
|