@lightdash/common 0.2191.1 → 0.2192.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.
@@ -4,6 +4,7 @@
4
4
  "title": "Lightdash Dashboard as Code",
5
5
  "description": "Schema for defining Lightdash dashboards in YAML format for version control",
6
6
  "type": "object",
7
+ "additionalProperties": false,
7
8
  "required": [
8
9
  "name",
9
10
  "slug",
@@ -31,7 +32,7 @@
31
32
  "slug": {
32
33
  "type": "string",
33
34
  "description": "Unique identifier slug for this dashboard",
34
- "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
35
+ "pattern": "^[a-z0-9-]+$"
35
36
  },
36
37
  "spaceSlug": {
37
38
  "type": "string",
@@ -52,6 +53,7 @@
52
53
  "description": "Array of tiles (charts, markdown, loom videos) positioned on the dashboard",
53
54
  "items": {
54
55
  "type": "object",
56
+ "additionalProperties": false,
55
57
  "required": ["type", "x", "y", "h", "w"],
56
58
  "properties": {
57
59
  "uuid": {
@@ -65,7 +67,7 @@
65
67
  "type": {
66
68
  "type": "string",
67
69
  "description": "Type of dashboard tile",
68
- "enum": ["saved_chart", "markdown", "loom"]
70
+ "enum": ["saved_chart", "sql_chart", "markdown", "loom"]
69
71
  },
70
72
  "x": {
71
73
  "type": "number",
@@ -97,6 +99,7 @@
97
99
  "oneOf": [
98
100
  {
99
101
  "description": "Properties for a saved chart tile",
102
+ "additionalProperties": false,
100
103
  "properties": {
101
104
  "title": {
102
105
  "type": "string",
@@ -113,12 +116,25 @@
113
116
  "chartName": {
114
117
  "type": "string",
115
118
  "description": "Name of the chart"
119
+ },
120
+ "savedChartUuid": {
121
+ "type": ["string", "null"],
122
+ "description": "UUID of the saved chart (readonly)"
123
+ },
124
+ "belongsToDashboard": {
125
+ "type": "boolean",
126
+ "description": "Whether this chart belongs to the dashboard"
127
+ },
128
+ "lastVersionChartKind": {
129
+ "type": ["string", "null"],
130
+ "description": "Type of chart from last version"
116
131
  }
117
132
  },
118
133
  "required": ["chartSlug"]
119
134
  },
120
135
  {
121
136
  "description": "Properties for a markdown tile",
137
+ "additionalProperties": false,
122
138
  "properties": {
123
139
  "title": {
124
140
  "type": "string",
@@ -135,8 +151,36 @@
135
151
  },
136
152
  "required": ["title", "content"]
137
153
  },
154
+ {
155
+ "description": "Properties for a SQL chart tile",
156
+ "additionalProperties": false,
157
+ "properties": {
158
+ "title": {
159
+ "type": "string",
160
+ "description": "Optional custom title for the SQL chart"
161
+ },
162
+ "hideTitle": {
163
+ "type": "boolean",
164
+ "description": "Whether to hide the chart title"
165
+ },
166
+ "chartSlug": {
167
+ "type": "string",
168
+ "description": "Slug of the SQL chart"
169
+ },
170
+ "chartName": {
171
+ "type": "string",
172
+ "description": "Name of the SQL chart"
173
+ },
174
+ "savedSqlUuid": {
175
+ "type": ["string", "null"],
176
+ "description": "UUID of the saved SQL chart (readonly)"
177
+ }
178
+ },
179
+ "required": ["chartName"]
180
+ },
138
181
  {
139
182
  "description": "Properties for a Loom video tile",
183
+ "additionalProperties": false,
140
184
  "properties": {
141
185
  "title": {
142
186
  "type": "string",
@@ -164,6 +208,7 @@
164
208
  "description": "Dashboard tabs for organizing tiles into separate views",
165
209
  "items": {
166
210
  "type": "object",
211
+ "additionalProperties": false,
167
212
  "required": ["uuid", "name", "order"],
168
213
  "properties": {
169
214
  "uuid": {
@@ -186,6 +231,7 @@
186
231
  "filters": {
187
232
  "type": "object",
188
233
  "description": "Dashboard-level filters that can be applied across all tiles",
234
+ "additionalProperties": false,
189
235
  "required": ["dimensions"],
190
236
  "properties": {
191
237
  "dimensions": {
@@ -193,8 +239,13 @@
193
239
  "description": "Dimension filters applied to the dashboard",
194
240
  "items": {
195
241
  "type": "object",
242
+ "additionalProperties": false,
196
243
  "required": ["operator", "target"],
197
244
  "properties": {
245
+ "id": {
246
+ "type": "string",
247
+ "description": "Optional unique identifier for the filter"
248
+ },
198
249
  "operator": {
199
250
  "type": "string",
200
251
  "description": "Filter operator determining how values are compared",
@@ -228,6 +279,7 @@
228
279
  "target": {
229
280
  "type": "object",
230
281
  "description": "Field to apply the filter to",
282
+ "additionalProperties": false,
231
283
  "required": ["fieldId", "tableName"],
232
284
  "properties": {
233
285
  "fieldId": {
@@ -262,6 +314,7 @@
262
314
  "settings": {
263
315
  "type": "object",
264
316
  "description": "Additional settings for date/time filters",
317
+ "additionalProperties": false,
265
318
  "properties": {
266
319
  "unitOfTime": {
267
320
  "type": "string",
@@ -302,6 +355,7 @@
302
355
  },
303
356
  {
304
357
  "type": "object",
358
+ "additionalProperties": false,
305
359
  "required": [
306
360
  "fieldId",
307
361
  "tableName"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightdash/common",
3
- "version": "0.2191.1",
3
+ "version": "0.2192.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",