@bendyline/gilde 0.1.45 → 0.1.46
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
|
@@ -130,6 +130,237 @@
|
|
|
130
130
|
"required": [
|
|
131
131
|
"kind"
|
|
132
132
|
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"type": "object",
|
|
136
|
+
"properties": {
|
|
137
|
+
"kind": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"const": "observations"
|
|
140
|
+
},
|
|
141
|
+
"tables": {
|
|
142
|
+
"minItems": 1,
|
|
143
|
+
"maxItems": 64,
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"type": "object",
|
|
147
|
+
"properties": {
|
|
148
|
+
"schemaVersion": {
|
|
149
|
+
"type": "number",
|
|
150
|
+
"const": 1
|
|
151
|
+
},
|
|
152
|
+
"table": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"minLength": 1,
|
|
155
|
+
"maxLength": 120,
|
|
156
|
+
"pattern": "^[a-z0-9][a-z0-9_-]*$"
|
|
157
|
+
},
|
|
158
|
+
"title": {
|
|
159
|
+
"type": "string",
|
|
160
|
+
"minLength": 1,
|
|
161
|
+
"maxLength": 200
|
|
162
|
+
},
|
|
163
|
+
"description": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"maxLength": 2000
|
|
166
|
+
},
|
|
167
|
+
"grain": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"maxLength": 300
|
|
170
|
+
},
|
|
171
|
+
"timeColumn": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"maxLength": 120
|
|
174
|
+
},
|
|
175
|
+
"partitionColumn": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"maxLength": 120
|
|
178
|
+
},
|
|
179
|
+
"columns": {
|
|
180
|
+
"minItems": 1,
|
|
181
|
+
"maxItems": 512,
|
|
182
|
+
"type": "array",
|
|
183
|
+
"items": {
|
|
184
|
+
"type": "object",
|
|
185
|
+
"properties": {
|
|
186
|
+
"name": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"minLength": 1,
|
|
189
|
+
"maxLength": 120,
|
|
190
|
+
"pattern": "^[a-z_][a-z0-9_]*$"
|
|
191
|
+
},
|
|
192
|
+
"type": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"enum": [
|
|
195
|
+
"BOOLEAN",
|
|
196
|
+
"BIGINT",
|
|
197
|
+
"DOUBLE",
|
|
198
|
+
"VARCHAR",
|
|
199
|
+
"DATE",
|
|
200
|
+
"TIMESTAMP",
|
|
201
|
+
"JSON"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"role": {
|
|
205
|
+
"default": "attribute",
|
|
206
|
+
"type": "string",
|
|
207
|
+
"enum": [
|
|
208
|
+
"time",
|
|
209
|
+
"dimension",
|
|
210
|
+
"measure",
|
|
211
|
+
"identifier",
|
|
212
|
+
"attribute"
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
"description": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"maxLength": 500
|
|
218
|
+
},
|
|
219
|
+
"unit": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"maxLength": 60
|
|
222
|
+
},
|
|
223
|
+
"cardinalityHint": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"maxLength": 120
|
|
226
|
+
},
|
|
227
|
+
"examples": {
|
|
228
|
+
"maxItems": 8,
|
|
229
|
+
"type": "array",
|
|
230
|
+
"items": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"maxLength": 200
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": [
|
|
237
|
+
"name",
|
|
238
|
+
"type"
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"measures": {
|
|
243
|
+
"default": [],
|
|
244
|
+
"maxItems": 64,
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"name": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"minLength": 1,
|
|
252
|
+
"maxLength": 120,
|
|
253
|
+
"pattern": "^[a-z_][a-z0-9_]*$"
|
|
254
|
+
},
|
|
255
|
+
"sql": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"minLength": 1,
|
|
258
|
+
"maxLength": 2000
|
|
259
|
+
},
|
|
260
|
+
"description": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"maxLength": 500
|
|
263
|
+
},
|
|
264
|
+
"unit": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"maxLength": 60
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"required": [
|
|
270
|
+
"name",
|
|
271
|
+
"sql"
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"exemplars": {
|
|
276
|
+
"default": [],
|
|
277
|
+
"maxItems": 32,
|
|
278
|
+
"type": "array",
|
|
279
|
+
"items": {
|
|
280
|
+
"type": "object",
|
|
281
|
+
"properties": {
|
|
282
|
+
"question": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"minLength": 1,
|
|
285
|
+
"maxLength": 300
|
|
286
|
+
},
|
|
287
|
+
"sql": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"minLength": 1,
|
|
290
|
+
"maxLength": 4000
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"required": [
|
|
294
|
+
"question",
|
|
295
|
+
"sql"
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"rollups": {
|
|
300
|
+
"default": [],
|
|
301
|
+
"maxItems": 32,
|
|
302
|
+
"type": "array",
|
|
303
|
+
"items": {
|
|
304
|
+
"type": "object",
|
|
305
|
+
"properties": {
|
|
306
|
+
"name": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"minLength": 1,
|
|
309
|
+
"maxLength": 120,
|
|
310
|
+
"pattern": "^[a-z_][a-z0-9_]*$"
|
|
311
|
+
},
|
|
312
|
+
"grain": {
|
|
313
|
+
"minItems": 1,
|
|
314
|
+
"maxItems": 16,
|
|
315
|
+
"type": "array",
|
|
316
|
+
"items": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"minLength": 1,
|
|
319
|
+
"maxLength": 120
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"sql": {
|
|
323
|
+
"type": "string",
|
|
324
|
+
"minLength": 1,
|
|
325
|
+
"maxLength": 8000
|
|
326
|
+
},
|
|
327
|
+
"description": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"maxLength": 500
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"required": [
|
|
333
|
+
"name",
|
|
334
|
+
"grain",
|
|
335
|
+
"sql"
|
|
336
|
+
]
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"retention": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"properties": {
|
|
342
|
+
"rawDays": {
|
|
343
|
+
"type": "integer",
|
|
344
|
+
"exclusiveMinimum": 0,
|
|
345
|
+
"maximum": 36500
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"inferred": {
|
|
350
|
+
"type": "boolean"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"required": [
|
|
354
|
+
"schemaVersion",
|
|
355
|
+
"table",
|
|
356
|
+
"columns"
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"required": [
|
|
362
|
+
"kind"
|
|
363
|
+
]
|
|
133
364
|
}
|
|
134
365
|
]
|
|
135
366
|
},
|