@explo-tech/fido-api 3.0.0-jordan-testing.1 → 3.0.0-jordan-testing.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/index.ts +395 -1022
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,809 +1,7 @@
|
|
|
1
1
|
import { makeApi, Zodios } from "@zodios/core";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
targetPropertyId: string | null;
|
|
6
|
-
"@type": string;
|
|
7
|
-
propertyId: string | null;
|
|
8
|
-
aggregation: Aggregation;
|
|
9
|
-
aggregationOption?: AggregationOption | undefined;
|
|
10
|
-
};
|
|
11
|
-
type Aggregation =
|
|
12
|
-
| "avg"
|
|
13
|
-
| "count"
|
|
14
|
-
| "count-distinct"
|
|
15
|
-
| "max"
|
|
16
|
-
| "min"
|
|
17
|
-
| "percentile"
|
|
18
|
-
| "sum";
|
|
19
|
-
type AggregationOption = {
|
|
20
|
-
decimalValue: number;
|
|
21
|
-
};
|
|
22
|
-
type And = {
|
|
23
|
-
"@type": string;
|
|
24
|
-
values: Array<Filter>;
|
|
25
|
-
};
|
|
26
|
-
type Equal = {
|
|
27
|
-
"@type": string;
|
|
28
|
-
propertyId: string;
|
|
29
|
-
value: PropertyValue;
|
|
30
|
-
};
|
|
31
|
-
type PropertyValue =
|
|
32
|
-
| BooleanPropertyValue
|
|
33
|
-
| DatePropertyValue
|
|
34
|
-
| DateTimePropertyValue
|
|
35
|
-
| DecimalPropertyValue
|
|
36
|
-
| DoublePropertyValue
|
|
37
|
-
| IntegerPropertyValue
|
|
38
|
-
| StringPropertyValue;
|
|
39
|
-
type BooleanPropertyValue = {
|
|
40
|
-
"@type": string;
|
|
41
|
-
value: boolean;
|
|
42
|
-
};
|
|
43
|
-
type DatePropertyValue = {
|
|
44
|
-
"@type": string;
|
|
45
|
-
value: string;
|
|
46
|
-
};
|
|
47
|
-
type DateTimePropertyValue = {
|
|
48
|
-
"@type": string;
|
|
49
|
-
value: string;
|
|
50
|
-
};
|
|
51
|
-
type DecimalPropertyValue = {
|
|
52
|
-
"@type": string;
|
|
53
|
-
value: number;
|
|
54
|
-
};
|
|
55
|
-
type DoublePropertyValue = {
|
|
56
|
-
"@type": string;
|
|
57
|
-
value: number;
|
|
58
|
-
};
|
|
59
|
-
type IntegerPropertyValue = {
|
|
60
|
-
"@type": string;
|
|
61
|
-
value: number;
|
|
62
|
-
};
|
|
63
|
-
type StringPropertyValue = {
|
|
64
|
-
"@type": string;
|
|
65
|
-
value: string;
|
|
66
|
-
};
|
|
67
|
-
type LateBoundEqual = {
|
|
68
|
-
"@type": string;
|
|
69
|
-
propertyId: string;
|
|
70
|
-
valueVariableReference: string;
|
|
71
|
-
};
|
|
72
|
-
type In = {
|
|
73
|
-
"@type": string;
|
|
74
|
-
propertyId: string;
|
|
75
|
-
values: Array<PropertyValue>;
|
|
76
|
-
};
|
|
77
|
-
type LateBoundIn = {
|
|
78
|
-
"@type": string;
|
|
79
|
-
propertyId: string;
|
|
80
|
-
valueVariableReference: string;
|
|
81
|
-
};
|
|
82
|
-
type LessThan = {
|
|
83
|
-
"@type": string;
|
|
84
|
-
propertyId: string;
|
|
85
|
-
value: PropertyValue;
|
|
86
|
-
};
|
|
87
|
-
type LessThanOrEqual = {
|
|
88
|
-
"@type": string;
|
|
89
|
-
propertyId: string;
|
|
90
|
-
value: PropertyValue;
|
|
91
|
-
};
|
|
92
|
-
type GreaterThan = {
|
|
93
|
-
"@type": string;
|
|
94
|
-
propertyId: string;
|
|
95
|
-
value: PropertyValue;
|
|
96
|
-
};
|
|
97
|
-
type GreaterThanOrEqual = {
|
|
98
|
-
"@type": string;
|
|
99
|
-
propertyId: string;
|
|
100
|
-
value: PropertyValue;
|
|
101
|
-
};
|
|
102
|
-
type LateBoundLessThan = {
|
|
103
|
-
"@type": string;
|
|
104
|
-
propertyId: string;
|
|
105
|
-
valueVariableReference: string;
|
|
106
|
-
};
|
|
107
|
-
type LateBoundLessThanOrEqual = {
|
|
108
|
-
"@type": string;
|
|
109
|
-
propertyId: string;
|
|
110
|
-
valueVariableReference: string;
|
|
111
|
-
};
|
|
112
|
-
type LateBoundGreaterThan = {
|
|
113
|
-
"@type": string;
|
|
114
|
-
propertyId: string;
|
|
115
|
-
valueVariableReference: string;
|
|
116
|
-
};
|
|
117
|
-
type LateBoundGreaterThanOrEqual = {
|
|
118
|
-
"@type": string;
|
|
119
|
-
propertyId: string;
|
|
120
|
-
valueVariableReference: string;
|
|
121
|
-
};
|
|
122
|
-
type Null = {
|
|
123
|
-
"@type": string;
|
|
124
|
-
propertyId: string;
|
|
125
|
-
};
|
|
126
|
-
type StringContains = {
|
|
127
|
-
"@type": string;
|
|
128
|
-
propertyId: string;
|
|
129
|
-
value: StringPropertyValue;
|
|
130
|
-
caseInsensitive: boolean;
|
|
131
|
-
};
|
|
132
|
-
type LateBoundStringContains = {
|
|
133
|
-
"@type": string;
|
|
134
|
-
propertyId: string;
|
|
135
|
-
valueVariableReference: string;
|
|
136
|
-
caseInsensitive: boolean;
|
|
137
|
-
};
|
|
138
|
-
type And1 = {
|
|
139
|
-
"@type": string;
|
|
140
|
-
values: Array<Having>;
|
|
141
|
-
};
|
|
142
|
-
type Equal1 = {
|
|
143
|
-
"@type": string;
|
|
144
|
-
property: Property;
|
|
145
|
-
value: PropertyValue;
|
|
146
|
-
};
|
|
147
|
-
type Property = AggregateProperty | SourceProperty | FormulaProperty;
|
|
148
|
-
type SourceProperty = {
|
|
149
|
-
targetPropertyId: string | null;
|
|
150
|
-
"@type": string;
|
|
151
|
-
propertyId: string;
|
|
152
|
-
};
|
|
153
|
-
type FormulaProperty = {
|
|
154
|
-
targetPropertyId: string | null;
|
|
155
|
-
"@type": string;
|
|
156
|
-
formula: string;
|
|
157
|
-
};
|
|
158
|
-
type LateBoundEqual1 = {
|
|
159
|
-
"@type": string;
|
|
160
|
-
property: Property;
|
|
161
|
-
valueVariableReference: string;
|
|
162
|
-
};
|
|
163
|
-
type In1 = {
|
|
164
|
-
"@type": string;
|
|
165
|
-
property: Property;
|
|
166
|
-
values: Array<PropertyValue>;
|
|
167
|
-
};
|
|
168
|
-
type LateBoundIn1 = {
|
|
169
|
-
"@type": string;
|
|
170
|
-
property: Property;
|
|
171
|
-
valueVariableReference: string;
|
|
172
|
-
};
|
|
173
|
-
type LessThan1 = {
|
|
174
|
-
"@type": string;
|
|
175
|
-
property: Property;
|
|
176
|
-
value: PropertyValue;
|
|
177
|
-
};
|
|
178
|
-
type LessThanOrEqual1 = {
|
|
179
|
-
"@type": string;
|
|
180
|
-
property: Property;
|
|
181
|
-
value: PropertyValue;
|
|
182
|
-
};
|
|
183
|
-
type GreaterThan1 = {
|
|
184
|
-
"@type": string;
|
|
185
|
-
property: Property;
|
|
186
|
-
value: PropertyValue;
|
|
187
|
-
};
|
|
188
|
-
type GreaterThanOrEqual1 = {
|
|
189
|
-
"@type": string;
|
|
190
|
-
property: Property;
|
|
191
|
-
value: PropertyValue;
|
|
192
|
-
};
|
|
193
|
-
type LateBoundLessThan1 = {
|
|
194
|
-
"@type": string;
|
|
195
|
-
property: Property;
|
|
196
|
-
valueVariableReference: string;
|
|
197
|
-
};
|
|
198
|
-
type LateBoundLessThanOrEqual1 = {
|
|
199
|
-
"@type": string;
|
|
200
|
-
property: Property;
|
|
201
|
-
valueVariableReference: string;
|
|
202
|
-
};
|
|
203
|
-
type LateBoundGreaterThan1 = {
|
|
204
|
-
"@type": string;
|
|
205
|
-
property: Property;
|
|
206
|
-
valueVariableReference: string;
|
|
207
|
-
};
|
|
208
|
-
type LateBoundGreaterThanOrEqual1 = {
|
|
209
|
-
"@type": string;
|
|
210
|
-
property: Property;
|
|
211
|
-
valueVariableReference: string;
|
|
212
|
-
};
|
|
213
|
-
type Null1 = {
|
|
214
|
-
"@type": string;
|
|
215
|
-
property: Property;
|
|
216
|
-
};
|
|
217
|
-
type StringContains1 = {
|
|
218
|
-
"@type": string;
|
|
219
|
-
property: Property;
|
|
220
|
-
value: StringPropertyValue;
|
|
221
|
-
caseInsensitive: boolean;
|
|
222
|
-
};
|
|
223
|
-
type LateBoundStringContains1 = {
|
|
224
|
-
"@type": string;
|
|
225
|
-
property: Property;
|
|
226
|
-
valueVariableReference: string;
|
|
227
|
-
caseInsensitive: boolean;
|
|
228
|
-
};
|
|
229
|
-
type BigQuery = {
|
|
230
|
-
tunnel: Tunnel;
|
|
231
|
-
"@type": string;
|
|
232
|
-
authentication: BigQueryAuthentication;
|
|
233
|
-
};
|
|
234
|
-
type PublicTunnel = {
|
|
235
|
-
"@type": string;
|
|
236
|
-
};
|
|
237
|
-
type SSHAuthentication =
|
|
238
|
-
| VendorPrivateKeyAuthentication
|
|
239
|
-
| TenantPrivateKeyAuthentication;
|
|
240
|
-
type VendorPrivateKeyAuthentication = {
|
|
241
|
-
username: string;
|
|
242
|
-
"@type": string;
|
|
243
|
-
};
|
|
244
|
-
type TenantPrivateKeyAuthentication = {
|
|
245
|
-
username: string;
|
|
246
|
-
"@type": string;
|
|
247
|
-
privateKey?: (string | null) | undefined;
|
|
248
|
-
};
|
|
249
|
-
type BigQueryAuthentication = Partial<{
|
|
250
|
-
projectId: string | null;
|
|
251
|
-
jsonKeyFile: string | null;
|
|
252
|
-
}>;
|
|
253
|
-
type BranchRequest = {
|
|
254
|
-
branch: Branch;
|
|
255
|
-
};
|
|
256
|
-
type Branch = {
|
|
257
|
-
id?: string | undefined;
|
|
258
|
-
name: string;
|
|
259
|
-
headId: string;
|
|
260
|
-
};
|
|
261
|
-
type BranchResponse = {
|
|
262
|
-
branch: Branch;
|
|
263
|
-
meta: BranchResponseMetadata;
|
|
264
|
-
};
|
|
265
|
-
type BranchResponseMetadata = {
|
|
266
|
-
diff: Array<ResourceDiff> | null;
|
|
267
|
-
};
|
|
268
|
-
type ResourceDiff =
|
|
269
|
-
| CreateResourceDiff
|
|
270
|
-
| DeleteResourceDiff
|
|
271
|
-
| UpdateResourceDiff;
|
|
272
|
-
type CreateResourceDiff = {
|
|
273
|
-
"@type": string;
|
|
274
|
-
resource: Resource;
|
|
275
|
-
};
|
|
276
|
-
type ComputedView = {
|
|
277
|
-
columnDefinitions: Array<PropertySchema>;
|
|
278
|
-
namespaceId?: (string | null) | undefined;
|
|
279
|
-
name: string;
|
|
280
|
-
path: string | null;
|
|
281
|
-
description: string | null;
|
|
282
|
-
id?: (string | null) | undefined;
|
|
283
|
-
versionId?: (string | null) | undefined;
|
|
284
|
-
"@type": string;
|
|
285
|
-
query: string;
|
|
286
|
-
cacheable?: boolean | undefined;
|
|
287
|
-
parameters: Array<Parameter>;
|
|
288
|
-
cacheEvictionPolicy: EvictionPolicy;
|
|
289
|
-
};
|
|
290
|
-
type PropertySchema = {
|
|
291
|
-
array?: boolean | undefined;
|
|
292
|
-
id: string;
|
|
293
|
-
name?: (string | null) | undefined;
|
|
294
|
-
type: PropertyType;
|
|
295
|
-
};
|
|
296
|
-
type PropertyType =
|
|
297
|
-
| "boolean"
|
|
298
|
-
| "date"
|
|
299
|
-
| "datetime"
|
|
300
|
-
| "decimal"
|
|
301
|
-
| "double"
|
|
302
|
-
| "integer"
|
|
303
|
-
| "long"
|
|
304
|
-
| "string"
|
|
305
|
-
| "unsupported";
|
|
306
|
-
type Parameter = {
|
|
307
|
-
name: string;
|
|
308
|
-
description: string | null;
|
|
309
|
-
required: boolean;
|
|
310
|
-
};
|
|
311
|
-
type EvictionPolicy = ScheduledEviction | TtlEviction;
|
|
312
|
-
type ScheduledEviction = {
|
|
313
|
-
"@type": string;
|
|
314
|
-
evictionSchedule: string;
|
|
315
|
-
};
|
|
316
|
-
type TtlEviction = {
|
|
317
|
-
"@type": string;
|
|
318
|
-
ttl: string;
|
|
319
|
-
};
|
|
320
|
-
type TableView = {
|
|
321
|
-
columnDefinitions: Array<PropertySchema>;
|
|
322
|
-
namespaceId?: (string | null) | undefined;
|
|
323
|
-
name: string;
|
|
324
|
-
path: string | null;
|
|
325
|
-
description: string | null;
|
|
326
|
-
id?: (string | null) | undefined;
|
|
327
|
-
versionId?: (string | null) | undefined;
|
|
328
|
-
"@type": string;
|
|
329
|
-
tableName: string;
|
|
330
|
-
schemaName?: (string | null) | undefined;
|
|
331
|
-
};
|
|
332
|
-
type DeleteResourceDiff = {
|
|
333
|
-
"@type": string;
|
|
334
|
-
originalResource: Resource;
|
|
335
|
-
};
|
|
336
|
-
type UpdateResourceDiff = {
|
|
337
|
-
"@type": string;
|
|
338
|
-
originalResource: Resource;
|
|
339
|
-
updatedResource: Resource;
|
|
340
|
-
};
|
|
341
|
-
type CalendarIntervalGrouping = {
|
|
342
|
-
propertyId: string;
|
|
343
|
-
targetPropertyId: string | null;
|
|
344
|
-
"@type": string;
|
|
345
|
-
calendarInterval: CalendarInterval;
|
|
346
|
-
targetTimezone?: string | undefined;
|
|
347
|
-
};
|
|
348
|
-
type CalendarInterval = "year" | "month" | "week" | "day" | "hour" | "minute";
|
|
349
|
-
type Clickhouse = {
|
|
350
|
-
authentication: JdbcAuthentication;
|
|
351
|
-
database: string;
|
|
352
|
-
host: string;
|
|
353
|
-
tunnel: Tunnel;
|
|
354
|
-
"@type": string;
|
|
355
|
-
port?: number | undefined;
|
|
356
|
-
connectionType?: ClickhouseConnectionType | undefined;
|
|
357
|
-
};
|
|
358
|
-
type JdbcAuthentication = PasswordAuthentication;
|
|
359
|
-
type PasswordAuthentication = {
|
|
360
|
-
"@type": string;
|
|
361
|
-
username: string;
|
|
362
|
-
password?: (string | null) | undefined;
|
|
363
|
-
};
|
|
364
|
-
type ClickhouseConnectionType = "HTTP" | "NATIVE";
|
|
365
|
-
type ColumnFormat =
|
|
366
|
-
| DateTimeColumnFormat
|
|
367
|
-
| DecimalColumnFormat
|
|
368
|
-
| DurationColumnFormat;
|
|
369
|
-
type DateTimeColumnFormat = {
|
|
370
|
-
"@type": string;
|
|
371
|
-
dateTimeFormatPattern?: DateTimeFormat | undefined;
|
|
372
|
-
pattern?: (string | null) | undefined;
|
|
373
|
-
locale: string | null;
|
|
374
|
-
targetTimezone?: string | undefined;
|
|
375
|
-
};
|
|
376
|
-
type DateTimeFormat = {
|
|
377
|
-
pattern: string;
|
|
378
|
-
exportFormat?: string | undefined;
|
|
379
|
-
};
|
|
380
|
-
type DecimalColumnFormat = {
|
|
381
|
-
"@type": string;
|
|
382
|
-
decimalFormat: string | null;
|
|
383
|
-
locale: string | null;
|
|
384
|
-
unitOfMeasurement?: UnitOfMeasurement | undefined;
|
|
385
|
-
zeroReplacement: string | null;
|
|
386
|
-
multiplier: number | null;
|
|
387
|
-
};
|
|
388
|
-
type UnitOfMeasurement = "CURRENCY";
|
|
389
|
-
type DurationColumnFormat = {
|
|
390
|
-
"@type": string;
|
|
391
|
-
durationPattern: string | null;
|
|
392
|
-
};
|
|
393
|
-
type CommitResponse = {
|
|
394
|
-
commit: Commit;
|
|
395
|
-
};
|
|
396
|
-
type Commit = {
|
|
397
|
-
id?: string | undefined;
|
|
398
|
-
commitMessage: string;
|
|
399
|
-
parentId: string | null;
|
|
400
|
-
};
|
|
401
|
-
type Computation = {
|
|
402
|
-
filter: Filter;
|
|
403
|
-
properties: Array<Property>;
|
|
404
|
-
groupings: Array<Grouping>;
|
|
405
|
-
sorts: Array<Sort>;
|
|
406
|
-
having: Having;
|
|
407
|
-
includeRollup?: boolean | undefined;
|
|
408
|
-
};
|
|
409
|
-
type Grouping =
|
|
410
|
-
| CalendarIntervalGrouping
|
|
411
|
-
| DatePartGrouping
|
|
412
|
-
| DecimalIntervalGrouping
|
|
413
|
-
| IntegerIntervalGrouping
|
|
414
|
-
| ValueGrouping;
|
|
415
|
-
type DatePartGrouping = {
|
|
416
|
-
propertyId: string;
|
|
417
|
-
targetPropertyId: string | null;
|
|
418
|
-
"@type": string;
|
|
419
|
-
datePart: DatePart;
|
|
420
|
-
targetTimezone?: string | undefined;
|
|
421
|
-
};
|
|
422
|
-
type DatePart =
|
|
423
|
-
| "day-of-week"
|
|
424
|
-
| "day-of-month"
|
|
425
|
-
| "month-of-year"
|
|
426
|
-
| "hour-of-day";
|
|
427
|
-
type DecimalIntervalGrouping = {
|
|
428
|
-
propertyId: string;
|
|
429
|
-
targetPropertyId: string | null;
|
|
430
|
-
"@type": string;
|
|
431
|
-
interval: number;
|
|
432
|
-
};
|
|
433
|
-
type IntegerIntervalGrouping = {
|
|
434
|
-
propertyId: string;
|
|
435
|
-
targetPropertyId: string | null;
|
|
436
|
-
"@type": string;
|
|
437
|
-
interval: number;
|
|
438
|
-
};
|
|
439
|
-
type ValueGrouping = {
|
|
440
|
-
propertyId: string;
|
|
441
|
-
targetPropertyId: string | null;
|
|
442
|
-
"@type": string;
|
|
443
|
-
};
|
|
444
|
-
type Sort = {
|
|
445
|
-
sortDirection: SortDirection;
|
|
446
|
-
propertyId: string;
|
|
447
|
-
};
|
|
448
|
-
type SortDirection = "asc" | "desc";
|
|
449
|
-
type CreateCommitRequest = {
|
|
450
|
-
commitMessage: string;
|
|
451
|
-
parentCommitId: UUID;
|
|
452
|
-
changes: Array<ResourceChange>;
|
|
453
|
-
};
|
|
454
|
-
type UUID = string;
|
|
455
|
-
type ResourceChange =
|
|
456
|
-
| CreateResourceChange
|
|
457
|
-
| UpdateResourceChange
|
|
458
|
-
| DeleteResourceChange;
|
|
459
|
-
type CreateResourceChange = {
|
|
460
|
-
"@type": string;
|
|
461
|
-
resource: Resource;
|
|
462
|
-
};
|
|
463
|
-
type UpdateResourceChange = {
|
|
464
|
-
"@type": string;
|
|
465
|
-
resource: Resource;
|
|
466
|
-
};
|
|
467
|
-
type DeleteResourceChange = {
|
|
468
|
-
"@type": string;
|
|
469
|
-
id: string;
|
|
470
|
-
};
|
|
471
|
-
type CreateCommitResponse = {
|
|
472
|
-
commitId: string;
|
|
473
|
-
changes: Array<ResourceChange>;
|
|
474
|
-
};
|
|
475
|
-
type DataPage = {
|
|
476
|
-
dataRecords: Array<DataRecord>;
|
|
477
|
-
};
|
|
478
|
-
type DataRecord = {
|
|
479
|
-
propertyValues: {};
|
|
480
|
-
};
|
|
481
|
-
type DataRequestParameters = Partial<{
|
|
482
|
-
pagingConfiguration: PagingConfiguration;
|
|
483
|
-
includeTotalResults: boolean;
|
|
484
|
-
}>;
|
|
485
|
-
type PagingConfiguration = Partial<{
|
|
486
|
-
perPage: number;
|
|
487
|
-
page: number;
|
|
488
|
-
}>;
|
|
489
|
-
type DataResponseMetadata = {
|
|
490
|
-
schema: DataSchema;
|
|
491
|
-
totalResults: number | null;
|
|
492
|
-
renderedQuery: string | null;
|
|
493
|
-
};
|
|
494
|
-
type DataSchema = {
|
|
495
|
-
propertySchema: Array<PropertySchema>;
|
|
496
|
-
};
|
|
497
|
-
type DataSource = {
|
|
498
|
-
name: string;
|
|
499
|
-
externalId: string;
|
|
500
|
-
id?: string | undefined;
|
|
501
|
-
namespaceId?: string | undefined;
|
|
502
|
-
configuration: DataSourceConfiguration;
|
|
503
|
-
};
|
|
504
|
-
type DataSourceConfiguration =
|
|
505
|
-
| Postgres
|
|
506
|
-
| MySql
|
|
507
|
-
| MSS
|
|
508
|
-
| BigQuery
|
|
509
|
-
| Redshift
|
|
510
|
-
| Snowflake
|
|
511
|
-
| Clickhouse;
|
|
512
|
-
type Postgres = {
|
|
513
|
-
authentication: JdbcAuthentication;
|
|
514
|
-
database: string;
|
|
515
|
-
host: string;
|
|
516
|
-
tunnel: Tunnel;
|
|
517
|
-
"@type": string;
|
|
518
|
-
port?: number | undefined;
|
|
519
|
-
};
|
|
520
|
-
type MySql = {
|
|
521
|
-
authentication: JdbcAuthentication;
|
|
522
|
-
database: string;
|
|
523
|
-
host: string;
|
|
524
|
-
tunnel: Tunnel;
|
|
525
|
-
"@type": string;
|
|
526
|
-
port?: number | undefined;
|
|
527
|
-
};
|
|
528
|
-
type MSS = {
|
|
529
|
-
authentication: JdbcAuthentication;
|
|
530
|
-
database: string;
|
|
531
|
-
host: string;
|
|
532
|
-
tunnel: Tunnel;
|
|
533
|
-
"@type": string;
|
|
534
|
-
port?: number | undefined;
|
|
535
|
-
};
|
|
536
|
-
type Redshift = {
|
|
537
|
-
authentication: JdbcAuthentication;
|
|
538
|
-
database: string;
|
|
539
|
-
host: string;
|
|
540
|
-
tunnel: Tunnel;
|
|
541
|
-
"@type": string;
|
|
542
|
-
port?: number | undefined;
|
|
543
|
-
};
|
|
544
|
-
type Snowflake = {
|
|
545
|
-
tunnel: Tunnel;
|
|
546
|
-
"@type": string;
|
|
547
|
-
user: string;
|
|
548
|
-
account: string;
|
|
549
|
-
schema: string | null;
|
|
550
|
-
database: string | null;
|
|
551
|
-
authentication: SnowflakeAuthentication;
|
|
552
|
-
};
|
|
553
|
-
type SnowflakeAuthentication = SnowflakePasswordAuthentication;
|
|
554
|
-
type SnowflakePasswordAuthentication = {
|
|
555
|
-
"@type": string;
|
|
556
|
-
password?: (string | null) | undefined;
|
|
557
|
-
};
|
|
558
|
-
type DataSourceError = QueryExecutionError | QueryTimeoutError;
|
|
559
|
-
type QueryExecutionError = {
|
|
560
|
-
renderedQuery: string | null;
|
|
561
|
-
requestTelemetry: RequestTelemetry;
|
|
562
|
-
message: string | null;
|
|
563
|
-
"@type": string;
|
|
564
|
-
};
|
|
565
|
-
type RequestTelemetry = {
|
|
566
|
-
requestTime: string | null;
|
|
567
|
-
queryTime: string | null;
|
|
568
|
-
processingTime: string | null;
|
|
569
|
-
cacheTelemetry?: CacheTelemetry | undefined;
|
|
570
|
-
};
|
|
571
|
-
type CacheTelemetry = {
|
|
572
|
-
cacheHit: boolean;
|
|
573
|
-
recordedAt: string | null;
|
|
574
|
-
ttl: string | null;
|
|
575
|
-
};
|
|
576
|
-
type QueryTimeoutError = {
|
|
577
|
-
renderedQuery: string | null;
|
|
578
|
-
requestTelemetry: RequestTelemetry;
|
|
579
|
-
message: string | null;
|
|
580
|
-
"@type": string;
|
|
581
|
-
};
|
|
582
|
-
type DataSourceRequest = {
|
|
583
|
-
dataSource: DataSource;
|
|
584
|
-
};
|
|
585
|
-
type DataSourceResponse = {
|
|
586
|
-
dataSource: DataSource;
|
|
587
|
-
};
|
|
588
|
-
type DiffBranchResponse = {
|
|
589
|
-
diff: Array<ResourceDiff>;
|
|
590
|
-
};
|
|
591
|
-
type ExportColumnOptions = {
|
|
592
|
-
targetPropertyId: string;
|
|
593
|
-
displayName: string | null;
|
|
594
|
-
columnFormat: ColumnFormat;
|
|
595
|
-
};
|
|
596
|
-
type ExportTargetConfiguration = {
|
|
597
|
-
fileName: string | null;
|
|
598
|
-
exportFormat: ExportFormat;
|
|
599
|
-
columnDisplayOptions: Array<ExportColumnOptions>;
|
|
600
|
-
};
|
|
601
|
-
type ExportFormat = "CSV" | "TSV" | "XLSX";
|
|
602
|
-
type Filter =
|
|
603
|
-
| And
|
|
604
|
-
| Or
|
|
605
|
-
| Not
|
|
606
|
-
| Equal
|
|
607
|
-
| LateBoundEqual
|
|
608
|
-
| In
|
|
609
|
-
| LateBoundIn
|
|
610
|
-
| LessThan
|
|
611
|
-
| LessThanOrEqual
|
|
612
|
-
| GreaterThan
|
|
613
|
-
| GreaterThanOrEqual
|
|
614
|
-
| LateBoundLessThan
|
|
615
|
-
| LateBoundLessThanOrEqual
|
|
616
|
-
| LateBoundGreaterThan
|
|
617
|
-
| LateBoundGreaterThanOrEqual
|
|
618
|
-
| Null
|
|
619
|
-
| StringContains
|
|
620
|
-
| LateBoundStringContains;
|
|
621
|
-
type Folder = {
|
|
622
|
-
name: string;
|
|
623
|
-
path: string | null;
|
|
624
|
-
description: string | null;
|
|
625
|
-
id?: (string | null) | undefined;
|
|
626
|
-
versionId?: (string | null) | undefined;
|
|
627
|
-
"@type": string;
|
|
628
|
-
children: Array<Resource> | null;
|
|
629
|
-
};
|
|
630
|
-
type Having =
|
|
631
|
-
| And1
|
|
632
|
-
| Or1
|
|
633
|
-
| Not1
|
|
634
|
-
| Equal1
|
|
635
|
-
| LateBoundEqual1
|
|
636
|
-
| In1
|
|
637
|
-
| LateBoundIn1
|
|
638
|
-
| LessThan1
|
|
639
|
-
| LessThanOrEqual1
|
|
640
|
-
| GreaterThan1
|
|
641
|
-
| GreaterThanOrEqual1
|
|
642
|
-
| LateBoundLessThan1
|
|
643
|
-
| LateBoundLessThanOrEqual1
|
|
644
|
-
| LateBoundGreaterThan1
|
|
645
|
-
| LateBoundGreaterThanOrEqual1
|
|
646
|
-
| Null1
|
|
647
|
-
| StringContains1
|
|
648
|
-
| LateBoundStringContains1;
|
|
649
|
-
type ListBranchContentResponse = {
|
|
650
|
-
content: Resource;
|
|
651
|
-
};
|
|
652
|
-
type ListBranchResponse = {
|
|
653
|
-
branches: Array<Branch>;
|
|
654
|
-
};
|
|
655
|
-
type ListNamespacesResponse = {
|
|
656
|
-
namespaces: Array<NamespaceResponse>;
|
|
657
|
-
};
|
|
658
|
-
type NamespaceResponse = {
|
|
659
|
-
namespace: Namespace;
|
|
660
|
-
meta: NamespaceResponseMetadata;
|
|
661
|
-
};
|
|
662
|
-
type Namespace = {
|
|
663
|
-
name: string;
|
|
664
|
-
ignoreTableList?: Array<string> | undefined;
|
|
665
|
-
id?: string | undefined;
|
|
666
|
-
};
|
|
667
|
-
type NamespaceResponseMetadata = {
|
|
668
|
-
dataSources: Array<DataSource> | null;
|
|
669
|
-
resources: Array<Resource> | null;
|
|
670
|
-
views: Array<Resource> | null;
|
|
671
|
-
};
|
|
672
|
-
type ListVersionedViewsRequest = {
|
|
673
|
-
requests: Array<VersionedViewRequest>;
|
|
674
|
-
};
|
|
675
|
-
type VersionedViewRequest = {
|
|
676
|
-
id: UUID;
|
|
677
|
-
versionId: UUID;
|
|
678
|
-
};
|
|
679
|
-
type ListViewsResponse = {
|
|
680
|
-
views: Array<ViewResponse>;
|
|
681
|
-
};
|
|
682
|
-
type ViewResponse = {
|
|
683
|
-
view: View;
|
|
684
|
-
};
|
|
685
|
-
type View = {
|
|
686
|
-
name: string;
|
|
687
|
-
path: string | null;
|
|
688
|
-
description: string | null;
|
|
689
|
-
id?: (string | null) | undefined;
|
|
690
|
-
versionId?: (string | null) | undefined;
|
|
691
|
-
columnDefinitions: Array<PropertySchema>;
|
|
692
|
-
namespaceId?: (string | null) | undefined;
|
|
693
|
-
};
|
|
694
|
-
type MergeBranchRequest = {
|
|
695
|
-
commitMessage: string;
|
|
696
|
-
sourceBranchId: UUID;
|
|
697
|
-
};
|
|
698
|
-
type NamespaceRequest = {
|
|
699
|
-
namespace: Namespace;
|
|
700
|
-
};
|
|
701
|
-
type Not = {
|
|
702
|
-
"@type": string;
|
|
703
|
-
value: Filter;
|
|
704
|
-
};
|
|
705
|
-
type Not1 = {
|
|
706
|
-
"@type": string;
|
|
707
|
-
value: Having;
|
|
708
|
-
};
|
|
709
|
-
type Or = {
|
|
710
|
-
"@type": string;
|
|
711
|
-
values: Array<Filter>;
|
|
712
|
-
};
|
|
713
|
-
type Or1 = {
|
|
714
|
-
"@type": string;
|
|
715
|
-
values: Array<Having>;
|
|
716
|
-
};
|
|
717
|
-
type QueryExecutionResponse = {
|
|
718
|
-
data: DataPage;
|
|
719
|
-
meta: DataResponseMetadata;
|
|
720
|
-
requestTelemetry: RequestTelemetry;
|
|
721
|
-
};
|
|
722
|
-
type QueryExportResponse = QueryExportEmailResponse | QueryExportLinkResponse;
|
|
723
|
-
type QueryExportEmailResponse = {
|
|
724
|
-
"@type": string;
|
|
725
|
-
};
|
|
726
|
-
type QueryExportLinkResponse = {
|
|
727
|
-
"@type": string;
|
|
728
|
-
url: string;
|
|
729
|
-
};
|
|
730
|
-
type QueryPreviewRequest = {
|
|
731
|
-
query: string;
|
|
732
|
-
dataRequestParameters: DataRequestParameters;
|
|
733
|
-
queryContext: {};
|
|
734
|
-
computation: Computation;
|
|
735
|
-
};
|
|
736
|
-
type Resource = ComputedView | TableView | Folder;
|
|
737
|
-
type SSHTunnel = {
|
|
738
|
-
"@type": string;
|
|
739
|
-
tunnel: Tunnel;
|
|
740
|
-
host: string;
|
|
741
|
-
port?: number | undefined;
|
|
742
|
-
authentication: SSHAuthentication;
|
|
743
|
-
};
|
|
744
|
-
type SearchBranchContentResponse = {
|
|
745
|
-
results: Array<Resource>;
|
|
746
|
-
};
|
|
747
|
-
type TablePreviewRequest = {
|
|
748
|
-
tableIdentifier: string;
|
|
749
|
-
dataRequestParameters: DataRequestParameters;
|
|
750
|
-
};
|
|
751
|
-
type Tenant = {
|
|
752
|
-
id: string;
|
|
753
|
-
keys?: Array<TenantKey> | undefined;
|
|
754
|
-
configurationOverrides?: {} | undefined;
|
|
755
|
-
s3Configuration: TenantS3Configuration;
|
|
756
|
-
};
|
|
757
|
-
type TenantKey = {
|
|
758
|
-
id: string;
|
|
759
|
-
createdAt: string;
|
|
760
|
-
value: string | null;
|
|
761
|
-
};
|
|
762
|
-
type TenantS3Configuration = {
|
|
763
|
-
prefix: string;
|
|
764
|
-
bucket: string;
|
|
765
|
-
region: string;
|
|
766
|
-
roleArn: string;
|
|
767
|
-
};
|
|
768
|
-
type TenantRequest = {
|
|
769
|
-
configurationOverrides?: {} | undefined;
|
|
770
|
-
s3Configuration: TenantS3Configuration;
|
|
771
|
-
};
|
|
772
|
-
type TenantResponse = {
|
|
773
|
-
tenant: Tenant;
|
|
774
|
-
};
|
|
775
|
-
type TestConnectionRequest = {
|
|
776
|
-
configuration: DataSourceConfiguration;
|
|
777
|
-
};
|
|
778
|
-
type Tunnel = PublicTunnel | SSHTunnel;
|
|
779
|
-
type ViewExportRequest = {
|
|
780
|
-
queryContext: {};
|
|
781
|
-
computation: Computation;
|
|
782
|
-
exportConfiguration: ExportTargetConfiguration;
|
|
783
|
-
emailConfiguration: EmailConfiguration;
|
|
784
|
-
};
|
|
785
|
-
type EmailConfiguration = {
|
|
786
|
-
recipientEmails: Array<string>;
|
|
787
|
-
subject: string | null;
|
|
788
|
-
body: string | null;
|
|
789
|
-
};
|
|
790
|
-
type ViewRequest = {
|
|
791
|
-
view: TableView | ComputedView;
|
|
792
|
-
};
|
|
793
|
-
type ViewResponse1 = {
|
|
794
|
-
resource: Resource;
|
|
795
|
-
};
|
|
796
|
-
type ViewRunRequest = {
|
|
797
|
-
dataRequestParameters: DataRequestParameters;
|
|
798
|
-
requestExecutionParameters: RequestExecutionParameters;
|
|
799
|
-
queryContext: {};
|
|
800
|
-
computation: Computation;
|
|
801
|
-
};
|
|
802
|
-
type RequestExecutionParameters = Partial<{
|
|
803
|
-
forceRefresh: boolean;
|
|
804
|
-
}>;
|
|
805
|
-
|
|
806
|
-
const Branch: z.ZodType<Branch> = z
|
|
4
|
+
export const Branch = z
|
|
807
5
|
.object({
|
|
808
6
|
id: z
|
|
809
7
|
.string()
|
|
@@ -824,19 +22,21 @@ const Branch: z.ZodType<Branch> = z
|
|
|
824
22
|
.uuid(),
|
|
825
23
|
})
|
|
826
24
|
.passthrough();
|
|
827
|
-
|
|
25
|
+
export type Branch = z.infer<typeof Branch>;
|
|
26
|
+
export const ListBranchResponse = z
|
|
828
27
|
.object({ branches: z.array(Branch) })
|
|
829
28
|
.passthrough();
|
|
830
|
-
|
|
29
|
+
export type ListBranchResponse = z.infer<typeof ListBranchResponse>;
|
|
30
|
+
export const ClientError = z
|
|
831
31
|
.object({
|
|
832
32
|
status: z.number().int().gte(100).lte(599),
|
|
833
33
|
message: z.string().regex(/\S/),
|
|
834
34
|
})
|
|
835
35
|
.passthrough();
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
const PropertyType = z.enum([
|
|
36
|
+
export type ClientError = z.infer<typeof ClientError>;
|
|
37
|
+
export const BranchRequest = z.object({ branch: Branch }).passthrough();
|
|
38
|
+
export type BranchRequest = z.infer<typeof BranchRequest>;
|
|
39
|
+
export const PropertyType = z.enum([
|
|
840
40
|
"boolean",
|
|
841
41
|
"date",
|
|
842
42
|
"datetime",
|
|
@@ -847,7 +47,8 @@ const PropertyType = z.enum([
|
|
|
847
47
|
"string",
|
|
848
48
|
"unsupported",
|
|
849
49
|
]);
|
|
850
|
-
|
|
50
|
+
export type PropertyType = z.infer<typeof PropertyType>;
|
|
51
|
+
export const PropertySchema = z
|
|
851
52
|
.object({
|
|
852
53
|
array: z.boolean().optional(),
|
|
853
54
|
id: z.string().regex(/\S/),
|
|
@@ -855,24 +56,29 @@ const PropertySchema: z.ZodType<PropertySchema> = z
|
|
|
855
56
|
type: PropertyType,
|
|
856
57
|
})
|
|
857
58
|
.passthrough();
|
|
858
|
-
|
|
59
|
+
export type PropertySchema = z.infer<typeof PropertySchema>;
|
|
60
|
+
export const Parameter = z
|
|
859
61
|
.object({
|
|
860
62
|
name: z.string().regex(/\S/),
|
|
861
63
|
description: z.string().nullable(),
|
|
862
64
|
required: z.boolean(),
|
|
863
65
|
})
|
|
864
66
|
.passthrough();
|
|
865
|
-
|
|
67
|
+
export type Parameter = z.infer<typeof Parameter>;
|
|
68
|
+
export const ScheduledEviction = z
|
|
866
69
|
.object({ "@type": z.string(), evictionSchedule: z.string() })
|
|
867
70
|
.passthrough();
|
|
868
|
-
|
|
71
|
+
export type ScheduledEviction = z.infer<typeof ScheduledEviction>;
|
|
72
|
+
export const TtlEviction = z
|
|
869
73
|
.object({ "@type": z.string(), ttl: z.string() })
|
|
870
74
|
.passthrough();
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
75
|
+
export type TtlEviction = z.infer<typeof TtlEviction>;
|
|
76
|
+
export const EvictionPolicy = z.discriminatedUnion("@type", [
|
|
77
|
+
ScheduledEviction,
|
|
78
|
+
TtlEviction,
|
|
79
|
+
]);
|
|
80
|
+
export type EvictionPolicy = z.infer<typeof EvictionPolicy>;
|
|
81
|
+
export const ComputedView = z
|
|
876
82
|
.object({
|
|
877
83
|
columnDefinitions: z.array(PropertySchema),
|
|
878
84
|
namespaceId: z
|
|
@@ -906,7 +112,8 @@ const ComputedView: z.ZodType<ComputedView> = z
|
|
|
906
112
|
cacheEvictionPolicy: EvictionPolicy.nullable(),
|
|
907
113
|
})
|
|
908
114
|
.passthrough();
|
|
909
|
-
|
|
115
|
+
export type ComputedView = z.infer<typeof ComputedView>;
|
|
116
|
+
export const TableView = z
|
|
910
117
|
.object({
|
|
911
118
|
columnDefinitions: z.array(PropertySchema),
|
|
912
119
|
namespaceId: z
|
|
@@ -938,7 +145,8 @@ const TableView: z.ZodType<TableView> = z
|
|
|
938
145
|
schemaName: z.string().nullish(),
|
|
939
146
|
})
|
|
940
147
|
.passthrough();
|
|
941
|
-
|
|
148
|
+
export type TableView = z.infer<typeof TableView>;
|
|
149
|
+
export const Folder = z.lazy(() =>
|
|
942
150
|
z
|
|
943
151
|
.object({
|
|
944
152
|
name: z.string().max(200).regex(/\S/),
|
|
@@ -963,44 +171,56 @@ const Folder: z.ZodType<Folder> = z.lazy(() =>
|
|
|
963
171
|
})
|
|
964
172
|
.passthrough()
|
|
965
173
|
);
|
|
966
|
-
|
|
174
|
+
export type Folder = z.infer<typeof Folder>;
|
|
175
|
+
export const Resource = z.lazy(() =>
|
|
967
176
|
z.discriminatedUnion("@type", [ComputedView, TableView, Folder])
|
|
968
177
|
);
|
|
969
|
-
|
|
178
|
+
export type Resource = z.infer<typeof Resource>;
|
|
179
|
+
export const CreateResourceDiff = z
|
|
970
180
|
.object({ "@type": z.string(), resource: Resource })
|
|
971
181
|
.passthrough();
|
|
972
|
-
|
|
182
|
+
export type CreateResourceDiff = z.infer<typeof CreateResourceDiff>;
|
|
183
|
+
export const DeleteResourceDiff = z
|
|
973
184
|
.object({ "@type": z.string(), originalResource: Resource })
|
|
974
185
|
.passthrough();
|
|
975
|
-
|
|
186
|
+
export type DeleteResourceDiff = z.infer<typeof DeleteResourceDiff>;
|
|
187
|
+
export const UpdateResourceDiff = z
|
|
976
188
|
.object({
|
|
977
189
|
"@type": z.string(),
|
|
978
190
|
originalResource: Resource,
|
|
979
191
|
updatedResource: Resource,
|
|
980
192
|
})
|
|
981
193
|
.passthrough();
|
|
982
|
-
|
|
194
|
+
export type UpdateResourceDiff = z.infer<typeof UpdateResourceDiff>;
|
|
195
|
+
export const ResourceDiff = z.discriminatedUnion("@type", [
|
|
983
196
|
CreateResourceDiff,
|
|
984
197
|
DeleteResourceDiff,
|
|
985
198
|
UpdateResourceDiff,
|
|
986
199
|
]);
|
|
987
|
-
|
|
200
|
+
export type ResourceDiff = z.infer<typeof ResourceDiff>;
|
|
201
|
+
export const BranchResponseMetadata = z
|
|
988
202
|
.object({ diff: z.array(ResourceDiff).nullable() })
|
|
989
203
|
.passthrough();
|
|
990
|
-
|
|
204
|
+
export type BranchResponseMetadata = z.infer<typeof BranchResponseMetadata>;
|
|
205
|
+
export const BranchResponse = z
|
|
991
206
|
.object({ branch: Branch, meta: BranchResponseMetadata.nullable() })
|
|
992
207
|
.passthrough();
|
|
993
|
-
|
|
208
|
+
export type BranchResponse = z.infer<typeof BranchResponse>;
|
|
209
|
+
export const DiffBranchResponse = z
|
|
994
210
|
.object({ diff: z.array(ResourceDiff) })
|
|
995
211
|
.passthrough();
|
|
996
|
-
|
|
997
|
-
const
|
|
212
|
+
export type DiffBranchResponse = z.infer<typeof DiffBranchResponse>;
|
|
213
|
+
export const UUID = z.string();
|
|
214
|
+
export type UUID = z.infer<typeof UUID>;
|
|
215
|
+
export const CreateResourceChange = z
|
|
998
216
|
.object({ "@type": z.string(), resource: Resource })
|
|
999
217
|
.passthrough();
|
|
1000
|
-
|
|
218
|
+
export type CreateResourceChange = z.infer<typeof CreateResourceChange>;
|
|
219
|
+
export const UpdateResourceChange = z
|
|
1001
220
|
.object({ "@type": z.string(), resource: Resource })
|
|
1002
221
|
.passthrough();
|
|
1003
|
-
|
|
222
|
+
export type UpdateResourceChange = z.infer<typeof UpdateResourceChange>;
|
|
223
|
+
export const DeleteResourceChange = z
|
|
1004
224
|
.object({
|
|
1005
225
|
"@type": z.string(),
|
|
1006
226
|
id: z
|
|
@@ -1011,11 +231,14 @@ const DeleteResourceChange: z.ZodType<DeleteResourceChange> = z
|
|
|
1011
231
|
.uuid(),
|
|
1012
232
|
})
|
|
1013
233
|
.passthrough();
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
234
|
+
export type DeleteResourceChange = z.infer<typeof DeleteResourceChange>;
|
|
235
|
+
export const ResourceChange = z.discriminatedUnion("@type", [
|
|
236
|
+
CreateResourceChange,
|
|
237
|
+
UpdateResourceChange,
|
|
238
|
+
DeleteResourceChange,
|
|
239
|
+
]);
|
|
240
|
+
export type ResourceChange = z.infer<typeof ResourceChange>;
|
|
241
|
+
export const CreateCommitRequest = z
|
|
1019
242
|
.object({
|
|
1020
243
|
commitMessage: z.string().max(1000).regex(/\S/),
|
|
1021
244
|
parentCommitId: UUID.regex(
|
|
@@ -1024,7 +247,8 @@ const CreateCommitRequest: z.ZodType<CreateCommitRequest> = z
|
|
|
1024
247
|
changes: z.array(ResourceChange),
|
|
1025
248
|
})
|
|
1026
249
|
.passthrough();
|
|
1027
|
-
|
|
250
|
+
export type CreateCommitRequest = z.infer<typeof CreateCommitRequest>;
|
|
251
|
+
export const CreateCommitResponse = z
|
|
1028
252
|
.object({
|
|
1029
253
|
commitId: z
|
|
1030
254
|
.string()
|
|
@@ -1035,10 +259,14 @@ const CreateCommitResponse: z.ZodType<CreateCommitResponse> = z
|
|
|
1035
259
|
changes: z.array(ResourceChange),
|
|
1036
260
|
})
|
|
1037
261
|
.passthrough();
|
|
1038
|
-
|
|
262
|
+
export type CreateCommitResponse = z.infer<typeof CreateCommitResponse>;
|
|
263
|
+
export const ListBranchContentResponse = z
|
|
1039
264
|
.object({ content: Resource })
|
|
1040
265
|
.passthrough();
|
|
1041
|
-
|
|
266
|
+
export type ListBranchContentResponse = z.infer<
|
|
267
|
+
typeof ListBranchContentResponse
|
|
268
|
+
>;
|
|
269
|
+
export const MergeBranchRequest = z
|
|
1042
270
|
.object({
|
|
1043
271
|
commitMessage: z.string(),
|
|
1044
272
|
sourceBranchId: UUID.regex(
|
|
@@ -1046,35 +274,41 @@ const MergeBranchRequest: z.ZodType<MergeBranchRequest> = z
|
|
|
1046
274
|
).uuid(),
|
|
1047
275
|
})
|
|
1048
276
|
.passthrough();
|
|
1049
|
-
|
|
277
|
+
export type MergeBranchRequest = z.infer<typeof MergeBranchRequest>;
|
|
278
|
+
export const PasswordAuthentication = z
|
|
1050
279
|
.object({
|
|
1051
280
|
"@type": z.string(),
|
|
1052
281
|
username: z.string().regex(/\S/),
|
|
1053
282
|
password: z.string().nullish(),
|
|
1054
283
|
})
|
|
1055
284
|
.passthrough();
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
285
|
+
export type PasswordAuthentication = z.infer<typeof PasswordAuthentication>;
|
|
286
|
+
export const JdbcAuthentication = PasswordAuthentication;
|
|
287
|
+
export type JdbcAuthentication = z.infer<typeof JdbcAuthentication>;
|
|
288
|
+
export const PublicTunnel = z.object({ "@type": z.string() }).passthrough();
|
|
289
|
+
export type PublicTunnel = z.infer<typeof PublicTunnel>;
|
|
290
|
+
export const VendorPrivateKeyAuthentication = z
|
|
291
|
+
.object({ username: z.string().regex(/\S/), "@type": z.string() })
|
|
1060
292
|
.passthrough();
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
.
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
293
|
+
export type VendorPrivateKeyAuthentication = z.infer<
|
|
294
|
+
typeof VendorPrivateKeyAuthentication
|
|
295
|
+
>;
|
|
296
|
+
export const TenantPrivateKeyAuthentication = z
|
|
297
|
+
.object({
|
|
298
|
+
username: z.string().regex(/\S/),
|
|
299
|
+
"@type": z.string(),
|
|
300
|
+
privateKey: z.string().nullish(),
|
|
301
|
+
})
|
|
302
|
+
.passthrough();
|
|
303
|
+
export type TenantPrivateKeyAuthentication = z.infer<
|
|
304
|
+
typeof TenantPrivateKeyAuthentication
|
|
305
|
+
>;
|
|
306
|
+
export const SSHAuthentication = z.discriminatedUnion("@type", [
|
|
307
|
+
VendorPrivateKeyAuthentication,
|
|
308
|
+
TenantPrivateKeyAuthentication,
|
|
309
|
+
]);
|
|
310
|
+
export type SSHAuthentication = z.infer<typeof SSHAuthentication>;
|
|
311
|
+
export const SSHTunnel = z.lazy(() =>
|
|
1078
312
|
z
|
|
1079
313
|
.object({
|
|
1080
314
|
"@type": z.string(),
|
|
@@ -1085,10 +319,12 @@ const SSHTunnel: z.ZodType<SSHTunnel> = z.lazy(() =>
|
|
|
1085
319
|
})
|
|
1086
320
|
.passthrough()
|
|
1087
321
|
);
|
|
1088
|
-
|
|
322
|
+
export type SSHTunnel = z.infer<typeof SSHTunnel>;
|
|
323
|
+
export const Tunnel = z.lazy(() =>
|
|
1089
324
|
z.discriminatedUnion("@type", [PublicTunnel, SSHTunnel])
|
|
1090
325
|
);
|
|
1091
|
-
|
|
326
|
+
export type Tunnel = z.infer<typeof Tunnel>;
|
|
327
|
+
export const Postgres = z
|
|
1092
328
|
.object({
|
|
1093
329
|
authentication: JdbcAuthentication,
|
|
1094
330
|
database: z.string().regex(/\S/),
|
|
@@ -1098,7 +334,8 @@ const Postgres: z.ZodType<Postgres> = z
|
|
|
1098
334
|
port: z.number().int().optional(),
|
|
1099
335
|
})
|
|
1100
336
|
.passthrough();
|
|
1101
|
-
|
|
337
|
+
export type Postgres = z.infer<typeof Postgres>;
|
|
338
|
+
export const MySql = z
|
|
1102
339
|
.object({
|
|
1103
340
|
authentication: JdbcAuthentication,
|
|
1104
341
|
database: z.string().regex(/\S/),
|
|
@@ -1108,7 +345,8 @@ const MySql: z.ZodType<MySql> = z
|
|
|
1108
345
|
port: z.number().int().optional(),
|
|
1109
346
|
})
|
|
1110
347
|
.passthrough();
|
|
1111
|
-
|
|
348
|
+
export type MySql = z.infer<typeof MySql>;
|
|
349
|
+
export const MSS = z
|
|
1112
350
|
.object({
|
|
1113
351
|
authentication: JdbcAuthentication,
|
|
1114
352
|
database: z.string().regex(/\S/),
|
|
@@ -1118,21 +356,24 @@ const MSS: z.ZodType<MSS> = z
|
|
|
1118
356
|
port: z.number().int().optional(),
|
|
1119
357
|
})
|
|
1120
358
|
.passthrough();
|
|
1121
|
-
|
|
359
|
+
export type MSS = z.infer<typeof MSS>;
|
|
360
|
+
export const BigQueryAuthentication = z
|
|
1122
361
|
.object({
|
|
1123
362
|
projectId: z.string().nullable(),
|
|
1124
363
|
jsonKeyFile: z.string().nullable(),
|
|
1125
364
|
})
|
|
1126
365
|
.partial()
|
|
1127
366
|
.passthrough();
|
|
1128
|
-
|
|
367
|
+
export type BigQueryAuthentication = z.infer<typeof BigQueryAuthentication>;
|
|
368
|
+
export const BigQuery = z
|
|
1129
369
|
.object({
|
|
1130
370
|
tunnel: Tunnel,
|
|
1131
371
|
"@type": z.string(),
|
|
1132
372
|
authentication: BigQueryAuthentication,
|
|
1133
373
|
})
|
|
1134
374
|
.passthrough();
|
|
1135
|
-
|
|
375
|
+
export type BigQuery = z.infer<typeof BigQuery>;
|
|
376
|
+
export const Redshift = z
|
|
1136
377
|
.object({
|
|
1137
378
|
authentication: JdbcAuthentication,
|
|
1138
379
|
database: z.string().regex(/\S/),
|
|
@@ -1142,13 +383,16 @@ const Redshift: z.ZodType<Redshift> = z
|
|
|
1142
383
|
port: z.number().int().optional(),
|
|
1143
384
|
})
|
|
1144
385
|
.passthrough();
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
SnowflakePasswordAuthentication
|
|
1151
|
-
|
|
386
|
+
export type Redshift = z.infer<typeof Redshift>;
|
|
387
|
+
export const SnowflakePasswordAuthentication = z
|
|
388
|
+
.object({ "@type": z.string(), password: z.string().nullish() })
|
|
389
|
+
.passthrough();
|
|
390
|
+
export type SnowflakePasswordAuthentication = z.infer<
|
|
391
|
+
typeof SnowflakePasswordAuthentication
|
|
392
|
+
>;
|
|
393
|
+
export const SnowflakeAuthentication = SnowflakePasswordAuthentication;
|
|
394
|
+
export type SnowflakeAuthentication = z.infer<typeof SnowflakeAuthentication>;
|
|
395
|
+
export const Snowflake = z
|
|
1152
396
|
.object({
|
|
1153
397
|
tunnel: Tunnel,
|
|
1154
398
|
"@type": z.string(),
|
|
@@ -1159,8 +403,10 @@ const Snowflake: z.ZodType<Snowflake> = z
|
|
|
1159
403
|
authentication: SnowflakeAuthentication,
|
|
1160
404
|
})
|
|
1161
405
|
.passthrough();
|
|
1162
|
-
|
|
1163
|
-
const
|
|
406
|
+
export type Snowflake = z.infer<typeof Snowflake>;
|
|
407
|
+
export const ClickhouseConnectionType = z.enum(["HTTP", "NATIVE"]);
|
|
408
|
+
export type ClickhouseConnectionType = z.infer<typeof ClickhouseConnectionType>;
|
|
409
|
+
export const Clickhouse = z
|
|
1164
410
|
.object({
|
|
1165
411
|
authentication: JdbcAuthentication,
|
|
1166
412
|
database: z.string().regex(/\S/),
|
|
@@ -1171,20 +417,22 @@ const Clickhouse: z.ZodType<Clickhouse> = z
|
|
|
1171
417
|
connectionType: ClickhouseConnectionType.optional(),
|
|
1172
418
|
})
|
|
1173
419
|
.passthrough();
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
420
|
+
export type Clickhouse = z.infer<typeof Clickhouse>;
|
|
421
|
+
export const DataSourceConfiguration = z.discriminatedUnion("@type", [
|
|
422
|
+
Postgres,
|
|
423
|
+
MySql,
|
|
424
|
+
MSS,
|
|
425
|
+
BigQuery,
|
|
426
|
+
Redshift,
|
|
427
|
+
Snowflake,
|
|
428
|
+
Clickhouse,
|
|
429
|
+
]);
|
|
430
|
+
export type DataSourceConfiguration = z.infer<typeof DataSourceConfiguration>;
|
|
431
|
+
export const TestConnectionRequest = z
|
|
1185
432
|
.object({ configuration: DataSourceConfiguration })
|
|
1186
433
|
.passthrough();
|
|
1187
|
-
|
|
434
|
+
export type TestConnectionRequest = z.infer<typeof TestConnectionRequest>;
|
|
435
|
+
export const Namespace = z
|
|
1188
436
|
.object({
|
|
1189
437
|
name: z.string().max(200).regex(/\S/),
|
|
1190
438
|
ignoreTableList: z.array(z.string()).optional(),
|
|
@@ -1197,10 +445,12 @@ const Namespace: z.ZodType<Namespace> = z
|
|
|
1197
445
|
.optional(),
|
|
1198
446
|
})
|
|
1199
447
|
.passthrough();
|
|
1200
|
-
|
|
448
|
+
export type Namespace = z.infer<typeof Namespace>;
|
|
449
|
+
export const NamespaceRequest = z
|
|
1201
450
|
.object({ namespace: Namespace })
|
|
1202
451
|
.passthrough();
|
|
1203
|
-
|
|
452
|
+
export type NamespaceRequest = z.infer<typeof NamespaceRequest>;
|
|
453
|
+
export const DataSource = z
|
|
1204
454
|
.object({
|
|
1205
455
|
name: z.string().max(200).regex(/\S/),
|
|
1206
456
|
externalId: z.string().max(200).regex(/\S/),
|
|
@@ -1221,68 +471,87 @@ const DataSource: z.ZodType<DataSource> = z
|
|
|
1221
471
|
configuration: DataSourceConfiguration,
|
|
1222
472
|
})
|
|
1223
473
|
.passthrough();
|
|
1224
|
-
|
|
474
|
+
export type DataSource = z.infer<typeof DataSource>;
|
|
475
|
+
export const NamespaceResponseMetadata = z
|
|
1225
476
|
.object({
|
|
1226
477
|
dataSources: z.array(DataSource).nullable(),
|
|
1227
478
|
resources: z.array(Resource).nullable(),
|
|
1228
479
|
views: z.array(Resource).nullable(),
|
|
1229
480
|
})
|
|
1230
481
|
.passthrough();
|
|
1231
|
-
|
|
482
|
+
export type NamespaceResponseMetadata = z.infer<
|
|
483
|
+
typeof NamespaceResponseMetadata
|
|
484
|
+
>;
|
|
485
|
+
export const NamespaceResponse = z
|
|
1232
486
|
.object({ namespace: Namespace, meta: NamespaceResponseMetadata.nullable() })
|
|
1233
487
|
.passthrough();
|
|
1234
|
-
|
|
488
|
+
export type NamespaceResponse = z.infer<typeof NamespaceResponse>;
|
|
489
|
+
export const DataSourceRequest = z
|
|
1235
490
|
.object({ dataSource: DataSource })
|
|
1236
491
|
.passthrough();
|
|
1237
|
-
|
|
492
|
+
export type DataSourceRequest = z.infer<typeof DataSourceRequest>;
|
|
493
|
+
export const DataSourceResponse = z
|
|
1238
494
|
.object({ dataSource: DataSource })
|
|
1239
495
|
.passthrough();
|
|
1240
|
-
|
|
496
|
+
export type DataSourceResponse = z.infer<typeof DataSourceResponse>;
|
|
497
|
+
export const PagingConfiguration = z
|
|
1241
498
|
.object({ perPage: z.number().int().gte(1), page: z.number().int().gte(0) })
|
|
1242
499
|
.partial()
|
|
1243
500
|
.passthrough();
|
|
1244
|
-
|
|
501
|
+
export type PagingConfiguration = z.infer<typeof PagingConfiguration>;
|
|
502
|
+
export const DataRequestParameters = z
|
|
1245
503
|
.object({
|
|
1246
504
|
pagingConfiguration: PagingConfiguration,
|
|
1247
505
|
includeTotalResults: z.boolean(),
|
|
1248
506
|
})
|
|
1249
507
|
.partial()
|
|
1250
508
|
.passthrough();
|
|
1251
|
-
|
|
509
|
+
export type DataRequestParameters = z.infer<typeof DataRequestParameters>;
|
|
510
|
+
export const And = z.lazy(() =>
|
|
1252
511
|
z
|
|
1253
512
|
.object({ "@type": z.string(), values: z.array(Filter).min(1) })
|
|
1254
513
|
.passthrough()
|
|
1255
514
|
);
|
|
1256
|
-
|
|
515
|
+
export type And = z.infer<typeof And>;
|
|
516
|
+
export const Or = z.lazy(() =>
|
|
1257
517
|
z
|
|
1258
518
|
.object({ "@type": z.string(), values: z.array(Filter).min(1) })
|
|
1259
519
|
.passthrough()
|
|
1260
520
|
);
|
|
1261
|
-
|
|
521
|
+
export type Or = z.infer<typeof Or>;
|
|
522
|
+
export const Not = z.lazy(() =>
|
|
1262
523
|
z.object({ "@type": z.string(), value: Filter }).passthrough()
|
|
1263
524
|
);
|
|
1264
|
-
|
|
525
|
+
export type Not = z.infer<typeof Not>;
|
|
526
|
+
export const BooleanPropertyValue = z
|
|
1265
527
|
.object({ "@type": z.string(), value: z.boolean() })
|
|
1266
528
|
.passthrough();
|
|
1267
|
-
|
|
529
|
+
export type BooleanPropertyValue = z.infer<typeof BooleanPropertyValue>;
|
|
530
|
+
export const DatePropertyValue = z
|
|
1268
531
|
.object({ "@type": z.string(), value: z.string() })
|
|
1269
532
|
.passthrough();
|
|
1270
|
-
|
|
533
|
+
export type DatePropertyValue = z.infer<typeof DatePropertyValue>;
|
|
534
|
+
export const DateTimePropertyValue = z
|
|
1271
535
|
.object({ "@type": z.string(), value: z.string().datetime({ offset: true }) })
|
|
1272
536
|
.passthrough();
|
|
1273
|
-
|
|
537
|
+
export type DateTimePropertyValue = z.infer<typeof DateTimePropertyValue>;
|
|
538
|
+
export const DecimalPropertyValue = z
|
|
1274
539
|
.object({ "@type": z.string(), value: z.number() })
|
|
1275
540
|
.passthrough();
|
|
1276
|
-
|
|
541
|
+
export type DecimalPropertyValue = z.infer<typeof DecimalPropertyValue>;
|
|
542
|
+
export const DoublePropertyValue = z
|
|
1277
543
|
.object({ "@type": z.string(), value: z.number() })
|
|
1278
544
|
.passthrough();
|
|
1279
|
-
|
|
545
|
+
export type DoublePropertyValue = z.infer<typeof DoublePropertyValue>;
|
|
546
|
+
export const IntegerPropertyValue = z
|
|
1280
547
|
.object({ "@type": z.string(), value: z.number().int() })
|
|
1281
548
|
.passthrough();
|
|
1282
|
-
|
|
549
|
+
export type IntegerPropertyValue = z.infer<typeof IntegerPropertyValue>;
|
|
550
|
+
export const StringPropertyValue = z
|
|
1283
551
|
.object({ "@type": z.string(), value: z.string() })
|
|
1284
552
|
.passthrough();
|
|
1285
|
-
|
|
553
|
+
export type StringPropertyValue = z.infer<typeof StringPropertyValue>;
|
|
554
|
+
export const PropertyValue = z.discriminatedUnion("@type", [
|
|
1286
555
|
BooleanPropertyValue,
|
|
1287
556
|
DatePropertyValue,
|
|
1288
557
|
DateTimePropertyValue,
|
|
@@ -1291,94 +560,110 @@ const PropertyValue: z.ZodType<PropertyValue> = z.discriminatedUnion("@type", [
|
|
|
1291
560
|
IntegerPropertyValue,
|
|
1292
561
|
StringPropertyValue,
|
|
1293
562
|
]);
|
|
1294
|
-
|
|
563
|
+
export type PropertyValue = z.infer<typeof PropertyValue>;
|
|
564
|
+
export const Equal = z
|
|
1295
565
|
.object({
|
|
1296
566
|
"@type": z.string(),
|
|
1297
567
|
propertyId: z.string().regex(/\S/),
|
|
1298
568
|
value: PropertyValue,
|
|
1299
569
|
})
|
|
1300
570
|
.passthrough();
|
|
1301
|
-
|
|
571
|
+
export type Equal = z.infer<typeof Equal>;
|
|
572
|
+
export const LateBoundEqual = z
|
|
1302
573
|
.object({
|
|
1303
574
|
"@type": z.string(),
|
|
1304
575
|
propertyId: z.string().regex(/\S/),
|
|
1305
576
|
valueVariableReference: z.string().regex(/\S/),
|
|
1306
577
|
})
|
|
1307
578
|
.passthrough();
|
|
1308
|
-
|
|
579
|
+
export type LateBoundEqual = z.infer<typeof LateBoundEqual>;
|
|
580
|
+
export const In = z
|
|
1309
581
|
.object({
|
|
1310
582
|
"@type": z.string(),
|
|
1311
583
|
propertyId: z.string().regex(/\S/),
|
|
1312
584
|
values: z.array(PropertyValue),
|
|
1313
585
|
})
|
|
1314
586
|
.passthrough();
|
|
1315
|
-
|
|
587
|
+
export type In = z.infer<typeof In>;
|
|
588
|
+
export const LateBoundIn = z
|
|
1316
589
|
.object({
|
|
1317
590
|
"@type": z.string(),
|
|
1318
591
|
propertyId: z.string().regex(/\S/),
|
|
1319
592
|
valueVariableReference: z.string().regex(/\S/),
|
|
1320
593
|
})
|
|
1321
594
|
.passthrough();
|
|
1322
|
-
|
|
595
|
+
export type LateBoundIn = z.infer<typeof LateBoundIn>;
|
|
596
|
+
export const LessThan = z
|
|
1323
597
|
.object({
|
|
1324
598
|
"@type": z.string(),
|
|
1325
599
|
propertyId: z.string().regex(/\S/),
|
|
1326
600
|
value: PropertyValue,
|
|
1327
601
|
})
|
|
1328
602
|
.passthrough();
|
|
1329
|
-
|
|
603
|
+
export type LessThan = z.infer<typeof LessThan>;
|
|
604
|
+
export const LessThanOrEqual = z
|
|
1330
605
|
.object({
|
|
1331
606
|
"@type": z.string(),
|
|
1332
607
|
propertyId: z.string().regex(/\S/),
|
|
1333
608
|
value: PropertyValue,
|
|
1334
609
|
})
|
|
1335
610
|
.passthrough();
|
|
1336
|
-
|
|
611
|
+
export type LessThanOrEqual = z.infer<typeof LessThanOrEqual>;
|
|
612
|
+
export const GreaterThan = z
|
|
1337
613
|
.object({
|
|
1338
614
|
"@type": z.string(),
|
|
1339
615
|
propertyId: z.string().regex(/\S/),
|
|
1340
616
|
value: PropertyValue,
|
|
1341
617
|
})
|
|
1342
618
|
.passthrough();
|
|
1343
|
-
|
|
619
|
+
export type GreaterThan = z.infer<typeof GreaterThan>;
|
|
620
|
+
export const GreaterThanOrEqual = z
|
|
1344
621
|
.object({
|
|
1345
622
|
"@type": z.string(),
|
|
1346
623
|
propertyId: z.string().regex(/\S/),
|
|
1347
624
|
value: PropertyValue,
|
|
1348
625
|
})
|
|
1349
626
|
.passthrough();
|
|
1350
|
-
|
|
627
|
+
export type GreaterThanOrEqual = z.infer<typeof GreaterThanOrEqual>;
|
|
628
|
+
export const LateBoundLessThan = z
|
|
1351
629
|
.object({
|
|
1352
630
|
"@type": z.string(),
|
|
1353
631
|
propertyId: z.string().regex(/\S/),
|
|
1354
632
|
valueVariableReference: z.string().regex(/\S/),
|
|
1355
633
|
})
|
|
1356
634
|
.passthrough();
|
|
1357
|
-
|
|
635
|
+
export type LateBoundLessThan = z.infer<typeof LateBoundLessThan>;
|
|
636
|
+
export const LateBoundLessThanOrEqual = z
|
|
1358
637
|
.object({
|
|
1359
638
|
"@type": z.string(),
|
|
1360
639
|
propertyId: z.string().regex(/\S/),
|
|
1361
640
|
valueVariableReference: z.string().regex(/\S/),
|
|
1362
641
|
})
|
|
1363
642
|
.passthrough();
|
|
1364
|
-
|
|
643
|
+
export type LateBoundLessThanOrEqual = z.infer<typeof LateBoundLessThanOrEqual>;
|
|
644
|
+
export const LateBoundGreaterThan = z
|
|
1365
645
|
.object({
|
|
1366
646
|
"@type": z.string(),
|
|
1367
647
|
propertyId: z.string().regex(/\S/),
|
|
1368
648
|
valueVariableReference: z.string().regex(/\S/),
|
|
1369
649
|
})
|
|
1370
650
|
.passthrough();
|
|
1371
|
-
|
|
651
|
+
export type LateBoundGreaterThan = z.infer<typeof LateBoundGreaterThan>;
|
|
652
|
+
export const LateBoundGreaterThanOrEqual = z
|
|
1372
653
|
.object({
|
|
1373
654
|
"@type": z.string(),
|
|
1374
655
|
propertyId: z.string().regex(/\S/),
|
|
1375
656
|
valueVariableReference: z.string().regex(/\S/),
|
|
1376
657
|
})
|
|
1377
658
|
.passthrough();
|
|
1378
|
-
|
|
659
|
+
export type LateBoundGreaterThanOrEqual = z.infer<
|
|
660
|
+
typeof LateBoundGreaterThanOrEqual
|
|
661
|
+
>;
|
|
662
|
+
export const Null = z
|
|
1379
663
|
.object({ "@type": z.string(), propertyId: z.string().regex(/\S/) })
|
|
1380
664
|
.passthrough();
|
|
1381
|
-
|
|
665
|
+
export type Null = z.infer<typeof Null>;
|
|
666
|
+
export const StringContains = z
|
|
1382
667
|
.object({
|
|
1383
668
|
"@type": z.string(),
|
|
1384
669
|
propertyId: z.string().regex(/\S/),
|
|
@@ -1386,7 +671,8 @@ const StringContains: z.ZodType<StringContains> = z
|
|
|
1386
671
|
caseInsensitive: z.boolean(),
|
|
1387
672
|
})
|
|
1388
673
|
.passthrough();
|
|
1389
|
-
|
|
674
|
+
export type StringContains = z.infer<typeof StringContains>;
|
|
675
|
+
export const LateBoundStringContains = z
|
|
1390
676
|
.object({
|
|
1391
677
|
"@type": z.string(),
|
|
1392
678
|
propertyId: z.string().regex(/\S/),
|
|
@@ -1394,7 +680,8 @@ const LateBoundStringContains: z.ZodType<LateBoundStringContains> = z
|
|
|
1394
680
|
caseInsensitive: z.boolean(),
|
|
1395
681
|
})
|
|
1396
682
|
.passthrough();
|
|
1397
|
-
|
|
683
|
+
export type LateBoundStringContains = z.infer<typeof LateBoundStringContains>;
|
|
684
|
+
export const Filter = z.lazy(() =>
|
|
1398
685
|
z.discriminatedUnion("@type", [
|
|
1399
686
|
And,
|
|
1400
687
|
Or,
|
|
@@ -1416,7 +703,8 @@ const Filter: z.ZodType<Filter> = z.lazy(() =>
|
|
|
1416
703
|
LateBoundStringContains,
|
|
1417
704
|
])
|
|
1418
705
|
);
|
|
1419
|
-
|
|
706
|
+
export type Filter = z.infer<typeof Filter>;
|
|
707
|
+
export const Aggregation = z.enum([
|
|
1420
708
|
"avg",
|
|
1421
709
|
"count",
|
|
1422
710
|
"count-distinct",
|
|
@@ -1425,10 +713,12 @@ const Aggregation = z.enum([
|
|
|
1425
713
|
"percentile",
|
|
1426
714
|
"sum",
|
|
1427
715
|
]);
|
|
1428
|
-
|
|
716
|
+
export type Aggregation = z.infer<typeof Aggregation>;
|
|
717
|
+
export const AggregationOption = z
|
|
1429
718
|
.object({ decimalValue: z.number() })
|
|
1430
719
|
.passthrough();
|
|
1431
|
-
|
|
720
|
+
export type AggregationOption = z.infer<typeof AggregationOption>;
|
|
721
|
+
export const AggregateProperty = z
|
|
1432
722
|
.object({
|
|
1433
723
|
targetPropertyId: z.string().nullable(),
|
|
1434
724
|
"@type": z.string(),
|
|
@@ -1437,26 +727,30 @@ const AggregateProperty: z.ZodType<AggregateProperty> = z
|
|
|
1437
727
|
aggregationOption: AggregationOption.nullish(),
|
|
1438
728
|
})
|
|
1439
729
|
.passthrough();
|
|
1440
|
-
|
|
730
|
+
export type AggregateProperty = z.infer<typeof AggregateProperty>;
|
|
731
|
+
export const SourceProperty = z
|
|
1441
732
|
.object({
|
|
1442
733
|
targetPropertyId: z.string().nullable(),
|
|
1443
734
|
"@type": z.string(),
|
|
1444
735
|
propertyId: z.string().regex(/\S/),
|
|
1445
736
|
})
|
|
1446
737
|
.passthrough();
|
|
1447
|
-
|
|
738
|
+
export type SourceProperty = z.infer<typeof SourceProperty>;
|
|
739
|
+
export const FormulaProperty = z
|
|
1448
740
|
.object({
|
|
1449
741
|
targetPropertyId: z.string().nullable(),
|
|
1450
742
|
"@type": z.string(),
|
|
1451
743
|
formula: z.string(),
|
|
1452
744
|
})
|
|
1453
745
|
.passthrough();
|
|
1454
|
-
|
|
746
|
+
export type FormulaProperty = z.infer<typeof FormulaProperty>;
|
|
747
|
+
export const Property = z.discriminatedUnion("@type", [
|
|
1455
748
|
AggregateProperty,
|
|
1456
749
|
SourceProperty,
|
|
1457
750
|
FormulaProperty,
|
|
1458
751
|
]);
|
|
1459
|
-
|
|
752
|
+
export type Property = z.infer<typeof Property>;
|
|
753
|
+
export const CalendarInterval = z.enum([
|
|
1460
754
|
"year",
|
|
1461
755
|
"month",
|
|
1462
756
|
"week",
|
|
@@ -1464,7 +758,8 @@ const CalendarInterval = z.enum([
|
|
|
1464
758
|
"hour",
|
|
1465
759
|
"minute",
|
|
1466
760
|
]);
|
|
1467
|
-
|
|
761
|
+
export type CalendarInterval = z.infer<typeof CalendarInterval>;
|
|
762
|
+
export const CalendarIntervalGrouping = z
|
|
1468
763
|
.object({
|
|
1469
764
|
propertyId: z.string().regex(/\S/),
|
|
1470
765
|
targetPropertyId: z.string().nullable(),
|
|
@@ -1473,13 +768,15 @@ const CalendarIntervalGrouping: z.ZodType<CalendarIntervalGrouping> = z
|
|
|
1473
768
|
targetTimezone: z.string().optional(),
|
|
1474
769
|
})
|
|
1475
770
|
.passthrough();
|
|
1476
|
-
|
|
771
|
+
export type CalendarIntervalGrouping = z.infer<typeof CalendarIntervalGrouping>;
|
|
772
|
+
export const DatePart = z.enum([
|
|
1477
773
|
"day-of-week",
|
|
1478
774
|
"day-of-month",
|
|
1479
775
|
"month-of-year",
|
|
1480
776
|
"hour-of-day",
|
|
1481
777
|
]);
|
|
1482
|
-
|
|
778
|
+
export type DatePart = z.infer<typeof DatePart>;
|
|
779
|
+
export const DatePartGrouping = z
|
|
1483
780
|
.object({
|
|
1484
781
|
propertyId: z.string().regex(/\S/),
|
|
1485
782
|
targetPropertyId: z.string().nullable(),
|
|
@@ -1488,7 +785,8 @@ const DatePartGrouping: z.ZodType<DatePartGrouping> = z
|
|
|
1488
785
|
targetTimezone: z.string().optional(),
|
|
1489
786
|
})
|
|
1490
787
|
.passthrough();
|
|
1491
|
-
|
|
788
|
+
export type DatePartGrouping = z.infer<typeof DatePartGrouping>;
|
|
789
|
+
export const DecimalIntervalGrouping = z
|
|
1492
790
|
.object({
|
|
1493
791
|
propertyId: z.string().regex(/\S/),
|
|
1494
792
|
targetPropertyId: z.string().nullable(),
|
|
@@ -1496,7 +794,8 @@ const DecimalIntervalGrouping: z.ZodType<DecimalIntervalGrouping> = z
|
|
|
1496
794
|
interval: z.number().gt(0),
|
|
1497
795
|
})
|
|
1498
796
|
.passthrough();
|
|
1499
|
-
|
|
797
|
+
export type DecimalIntervalGrouping = z.infer<typeof DecimalIntervalGrouping>;
|
|
798
|
+
export const IntegerIntervalGrouping = z
|
|
1500
799
|
.object({
|
|
1501
800
|
propertyId: z.string().regex(/\S/),
|
|
1502
801
|
targetPropertyId: z.string().nullable(),
|
|
@@ -1504,105 +803,130 @@ const IntegerIntervalGrouping: z.ZodType<IntegerIntervalGrouping> = z
|
|
|
1504
803
|
interval: z.number().int().gt(0),
|
|
1505
804
|
})
|
|
1506
805
|
.passthrough();
|
|
1507
|
-
|
|
806
|
+
export type IntegerIntervalGrouping = z.infer<typeof IntegerIntervalGrouping>;
|
|
807
|
+
export const ValueGrouping = z
|
|
1508
808
|
.object({
|
|
1509
809
|
propertyId: z.string().regex(/\S/),
|
|
1510
810
|
targetPropertyId: z.string().nullable(),
|
|
1511
811
|
"@type": z.string(),
|
|
1512
812
|
})
|
|
1513
813
|
.passthrough();
|
|
1514
|
-
|
|
814
|
+
export type ValueGrouping = z.infer<typeof ValueGrouping>;
|
|
815
|
+
export const Grouping = z.discriminatedUnion("@type", [
|
|
1515
816
|
CalendarIntervalGrouping,
|
|
1516
817
|
DatePartGrouping,
|
|
1517
818
|
DecimalIntervalGrouping,
|
|
1518
819
|
IntegerIntervalGrouping,
|
|
1519
820
|
ValueGrouping,
|
|
1520
821
|
]);
|
|
1521
|
-
|
|
1522
|
-
const
|
|
822
|
+
export type Grouping = z.infer<typeof Grouping>;
|
|
823
|
+
export const SortDirection = z.enum(["asc", "desc"]);
|
|
824
|
+
export type SortDirection = z.infer<typeof SortDirection>;
|
|
825
|
+
export const Sort = z
|
|
1523
826
|
.object({ sortDirection: SortDirection, propertyId: z.string().regex(/\S/) })
|
|
1524
827
|
.passthrough();
|
|
1525
|
-
|
|
828
|
+
export type Sort = z.infer<typeof Sort>;
|
|
829
|
+
export const And1 = z.lazy(() =>
|
|
1526
830
|
z
|
|
1527
831
|
.object({ "@type": z.string(), values: z.array(Having).min(1) })
|
|
1528
832
|
.passthrough()
|
|
1529
833
|
);
|
|
1530
|
-
|
|
834
|
+
export type And1 = z.infer<typeof And1>;
|
|
835
|
+
export const Or1 = z.lazy(() =>
|
|
1531
836
|
z
|
|
1532
837
|
.object({ "@type": z.string(), values: z.array(Having).min(1) })
|
|
1533
838
|
.passthrough()
|
|
1534
839
|
);
|
|
1535
|
-
|
|
840
|
+
export type Or1 = z.infer<typeof Or1>;
|
|
841
|
+
export const Not1 = z.lazy(() =>
|
|
1536
842
|
z.object({ "@type": z.string(), value: Having }).passthrough()
|
|
1537
843
|
);
|
|
1538
|
-
|
|
844
|
+
export type Not1 = z.infer<typeof Not1>;
|
|
845
|
+
export const Equal1 = z
|
|
1539
846
|
.object({ "@type": z.string(), property: Property, value: PropertyValue })
|
|
1540
847
|
.passthrough();
|
|
1541
|
-
|
|
848
|
+
export type Equal1 = z.infer<typeof Equal1>;
|
|
849
|
+
export const LateBoundEqual1 = z
|
|
1542
850
|
.object({
|
|
1543
851
|
"@type": z.string(),
|
|
1544
852
|
property: Property,
|
|
1545
853
|
valueVariableReference: z.string().regex(/\S/),
|
|
1546
854
|
})
|
|
1547
855
|
.passthrough();
|
|
1548
|
-
|
|
856
|
+
export type LateBoundEqual1 = z.infer<typeof LateBoundEqual1>;
|
|
857
|
+
export const In1 = z
|
|
1549
858
|
.object({
|
|
1550
859
|
"@type": z.string(),
|
|
1551
860
|
property: Property,
|
|
1552
861
|
values: z.array(PropertyValue),
|
|
1553
862
|
})
|
|
1554
863
|
.passthrough();
|
|
1555
|
-
|
|
864
|
+
export type In1 = z.infer<typeof In1>;
|
|
865
|
+
export const LateBoundIn1 = z
|
|
1556
866
|
.object({
|
|
1557
867
|
"@type": z.string(),
|
|
1558
868
|
property: Property,
|
|
1559
869
|
valueVariableReference: z.string().regex(/\S/),
|
|
1560
870
|
})
|
|
1561
871
|
.passthrough();
|
|
1562
|
-
|
|
872
|
+
export type LateBoundIn1 = z.infer<typeof LateBoundIn1>;
|
|
873
|
+
export const LessThan1 = z
|
|
1563
874
|
.object({ "@type": z.string(), property: Property, value: PropertyValue })
|
|
1564
875
|
.passthrough();
|
|
1565
|
-
|
|
876
|
+
export type LessThan1 = z.infer<typeof LessThan1>;
|
|
877
|
+
export const LessThanOrEqual1 = z
|
|
1566
878
|
.object({ "@type": z.string(), property: Property, value: PropertyValue })
|
|
1567
879
|
.passthrough();
|
|
1568
|
-
|
|
880
|
+
export type LessThanOrEqual1 = z.infer<typeof LessThanOrEqual1>;
|
|
881
|
+
export const GreaterThan1 = z
|
|
1569
882
|
.object({ "@type": z.string(), property: Property, value: PropertyValue })
|
|
1570
883
|
.passthrough();
|
|
1571
|
-
|
|
884
|
+
export type GreaterThan1 = z.infer<typeof GreaterThan1>;
|
|
885
|
+
export const GreaterThanOrEqual1 = z
|
|
1572
886
|
.object({ "@type": z.string(), property: Property, value: PropertyValue })
|
|
1573
887
|
.passthrough();
|
|
1574
|
-
|
|
888
|
+
export type GreaterThanOrEqual1 = z.infer<typeof GreaterThanOrEqual1>;
|
|
889
|
+
export const LateBoundLessThan1 = z
|
|
1575
890
|
.object({
|
|
1576
891
|
"@type": z.string(),
|
|
1577
892
|
property: Property,
|
|
1578
893
|
valueVariableReference: z.string().regex(/\S/),
|
|
1579
894
|
})
|
|
1580
895
|
.passthrough();
|
|
1581
|
-
|
|
896
|
+
export type LateBoundLessThan1 = z.infer<typeof LateBoundLessThan1>;
|
|
897
|
+
export const LateBoundLessThanOrEqual1 = z
|
|
1582
898
|
.object({
|
|
1583
899
|
"@type": z.string(),
|
|
1584
900
|
property: Property,
|
|
1585
901
|
valueVariableReference: z.string().regex(/\S/),
|
|
1586
902
|
})
|
|
1587
903
|
.passthrough();
|
|
1588
|
-
|
|
904
|
+
export type LateBoundLessThanOrEqual1 = z.infer<
|
|
905
|
+
typeof LateBoundLessThanOrEqual1
|
|
906
|
+
>;
|
|
907
|
+
export const LateBoundGreaterThan1 = z
|
|
1589
908
|
.object({
|
|
1590
909
|
"@type": z.string(),
|
|
1591
910
|
property: Property,
|
|
1592
911
|
valueVariableReference: z.string().regex(/\S/),
|
|
1593
912
|
})
|
|
1594
913
|
.passthrough();
|
|
1595
|
-
|
|
914
|
+
export type LateBoundGreaterThan1 = z.infer<typeof LateBoundGreaterThan1>;
|
|
915
|
+
export const LateBoundGreaterThanOrEqual1 = z
|
|
1596
916
|
.object({
|
|
1597
917
|
"@type": z.string(),
|
|
1598
918
|
property: Property,
|
|
1599
919
|
valueVariableReference: z.string().regex(/\S/),
|
|
1600
920
|
})
|
|
1601
921
|
.passthrough();
|
|
1602
|
-
|
|
922
|
+
export type LateBoundGreaterThanOrEqual1 = z.infer<
|
|
923
|
+
typeof LateBoundGreaterThanOrEqual1
|
|
924
|
+
>;
|
|
925
|
+
export const Null1 = z
|
|
1603
926
|
.object({ "@type": z.string(), property: Property })
|
|
1604
927
|
.passthrough();
|
|
1605
|
-
|
|
928
|
+
export type Null1 = z.infer<typeof Null1>;
|
|
929
|
+
export const StringContains1 = z
|
|
1606
930
|
.object({
|
|
1607
931
|
"@type": z.string(),
|
|
1608
932
|
property: Property,
|
|
@@ -1610,7 +934,8 @@ const StringContains1: z.ZodType<StringContains1> = z
|
|
|
1610
934
|
caseInsensitive: z.boolean(),
|
|
1611
935
|
})
|
|
1612
936
|
.passthrough();
|
|
1613
|
-
|
|
937
|
+
export type StringContains1 = z.infer<typeof StringContains1>;
|
|
938
|
+
export const LateBoundStringContains1 = z
|
|
1614
939
|
.object({
|
|
1615
940
|
"@type": z.string(),
|
|
1616
941
|
property: Property,
|
|
@@ -1618,7 +943,8 @@ const LateBoundStringContains1: z.ZodType<LateBoundStringContains1> = z
|
|
|
1618
943
|
caseInsensitive: z.boolean(),
|
|
1619
944
|
})
|
|
1620
945
|
.passthrough();
|
|
1621
|
-
|
|
946
|
+
export type LateBoundStringContains1 = z.infer<typeof LateBoundStringContains1>;
|
|
947
|
+
export const Having = z.lazy(() =>
|
|
1622
948
|
z.discriminatedUnion("@type", [
|
|
1623
949
|
And1,
|
|
1624
950
|
Or1,
|
|
@@ -1640,7 +966,8 @@ const Having: z.ZodType<Having> = z.lazy(() =>
|
|
|
1640
966
|
LateBoundStringContains1,
|
|
1641
967
|
])
|
|
1642
968
|
);
|
|
1643
|
-
|
|
969
|
+
export type Having = z.infer<typeof Having>;
|
|
970
|
+
export const Computation = z
|
|
1644
971
|
.object({
|
|
1645
972
|
filter: Filter.nullable(),
|
|
1646
973
|
properties: z.array(Property),
|
|
@@ -1650,7 +977,8 @@ const Computation: z.ZodType<Computation> = z
|
|
|
1650
977
|
includeRollup: z.boolean().optional(),
|
|
1651
978
|
})
|
|
1652
979
|
.passthrough();
|
|
1653
|
-
|
|
980
|
+
export type Computation = z.infer<typeof Computation>;
|
|
981
|
+
export const QueryPreviewRequest = z
|
|
1654
982
|
.object({
|
|
1655
983
|
query: z.string().regex(/\S/),
|
|
1656
984
|
dataRequestParameters: DataRequestParameters,
|
|
@@ -1658,30 +986,36 @@ const QueryPreviewRequest: z.ZodType<QueryPreviewRequest> = z
|
|
|
1658
986
|
computation: Computation.nullable(),
|
|
1659
987
|
})
|
|
1660
988
|
.passthrough();
|
|
1661
|
-
|
|
989
|
+
export type QueryPreviewRequest = z.infer<typeof QueryPreviewRequest>;
|
|
990
|
+
export const DataRecord = z
|
|
1662
991
|
.object({ propertyValues: z.record(z.array(PropertyValue)) })
|
|
1663
992
|
.passthrough();
|
|
1664
|
-
|
|
993
|
+
export type DataRecord = z.infer<typeof DataRecord>;
|
|
994
|
+
export const DataPage = z
|
|
1665
995
|
.object({ dataRecords: z.array(DataRecord) })
|
|
1666
996
|
.passthrough();
|
|
1667
|
-
|
|
997
|
+
export type DataPage = z.infer<typeof DataPage>;
|
|
998
|
+
export const DataSchema = z
|
|
1668
999
|
.object({ propertySchema: z.array(PropertySchema) })
|
|
1669
1000
|
.passthrough();
|
|
1670
|
-
|
|
1001
|
+
export type DataSchema = z.infer<typeof DataSchema>;
|
|
1002
|
+
export const DataResponseMetadata = z
|
|
1671
1003
|
.object({
|
|
1672
1004
|
schema: DataSchema,
|
|
1673
1005
|
totalResults: z.number().int().nullable(),
|
|
1674
1006
|
renderedQuery: z.string().nullable(),
|
|
1675
1007
|
})
|
|
1676
1008
|
.passthrough();
|
|
1677
|
-
|
|
1009
|
+
export type DataResponseMetadata = z.infer<typeof DataResponseMetadata>;
|
|
1010
|
+
export const CacheTelemetry = z
|
|
1678
1011
|
.object({
|
|
1679
1012
|
cacheHit: z.boolean(),
|
|
1680
1013
|
recordedAt: z.string().datetime({ offset: true }).nullable(),
|
|
1681
1014
|
ttl: z.string().nullable(),
|
|
1682
1015
|
})
|
|
1683
1016
|
.passthrough();
|
|
1684
|
-
|
|
1017
|
+
export type CacheTelemetry = z.infer<typeof CacheTelemetry>;
|
|
1018
|
+
export const RequestTelemetry = z
|
|
1685
1019
|
.object({
|
|
1686
1020
|
requestTime: z.string().nullable(),
|
|
1687
1021
|
queryTime: z.string().nullable(),
|
|
@@ -1689,14 +1023,16 @@ const RequestTelemetry: z.ZodType<RequestTelemetry> = z
|
|
|
1689
1023
|
cacheTelemetry: CacheTelemetry.nullish(),
|
|
1690
1024
|
})
|
|
1691
1025
|
.passthrough();
|
|
1692
|
-
|
|
1026
|
+
export type RequestTelemetry = z.infer<typeof RequestTelemetry>;
|
|
1027
|
+
export const QueryExecutionResponse = z
|
|
1693
1028
|
.object({
|
|
1694
1029
|
data: DataPage,
|
|
1695
1030
|
meta: DataResponseMetadata,
|
|
1696
1031
|
requestTelemetry: RequestTelemetry.nullable(),
|
|
1697
1032
|
})
|
|
1698
1033
|
.passthrough();
|
|
1699
|
-
|
|
1034
|
+
export type QueryExecutionResponse = z.infer<typeof QueryExecutionResponse>;
|
|
1035
|
+
export const QueryExecutionError = z
|
|
1700
1036
|
.object({
|
|
1701
1037
|
renderedQuery: z.string().nullable(),
|
|
1702
1038
|
requestTelemetry: RequestTelemetry.nullable(),
|
|
@@ -1704,17 +1040,21 @@ const QueryExecutionError: z.ZodType<QueryExecutionError> = z
|
|
|
1704
1040
|
"@type": z.string(),
|
|
1705
1041
|
})
|
|
1706
1042
|
.passthrough();
|
|
1707
|
-
|
|
1043
|
+
export type QueryExecutionError = z.infer<typeof QueryExecutionError>;
|
|
1044
|
+
export const TablePreviewRequest = z
|
|
1708
1045
|
.object({
|
|
1709
1046
|
tableIdentifier: z.string().regex(/\S/),
|
|
1710
1047
|
dataRequestParameters: DataRequestParameters,
|
|
1711
1048
|
})
|
|
1712
1049
|
.passthrough();
|
|
1713
|
-
|
|
1714
|
-
const
|
|
1050
|
+
export type TablePreviewRequest = z.infer<typeof TablePreviewRequest>;
|
|
1051
|
+
export const ExportFormat = z.enum(["CSV", "TSV", "XLSX"]);
|
|
1052
|
+
export type ExportFormat = z.infer<typeof ExportFormat>;
|
|
1053
|
+
export const DateTimeFormat = z
|
|
1715
1054
|
.object({ pattern: z.string(), exportFormat: z.string().optional() })
|
|
1716
1055
|
.passthrough();
|
|
1717
|
-
|
|
1056
|
+
export type DateTimeFormat = z.infer<typeof DateTimeFormat>;
|
|
1057
|
+
export const DateTimeColumnFormat = z
|
|
1718
1058
|
.object({
|
|
1719
1059
|
"@type": z.string(),
|
|
1720
1060
|
dateTimeFormatPattern: DateTimeFormat.nullish(),
|
|
@@ -1723,8 +1063,10 @@ const DateTimeColumnFormat: z.ZodType<DateTimeColumnFormat> = z
|
|
|
1723
1063
|
targetTimezone: z.string().optional(),
|
|
1724
1064
|
})
|
|
1725
1065
|
.passthrough();
|
|
1726
|
-
|
|
1727
|
-
const
|
|
1066
|
+
export type DateTimeColumnFormat = z.infer<typeof DateTimeColumnFormat>;
|
|
1067
|
+
export const UnitOfMeasurement = z.literal("CURRENCY");
|
|
1068
|
+
export type UnitOfMeasurement = z.infer<typeof UnitOfMeasurement>;
|
|
1069
|
+
export const DecimalColumnFormat = z
|
|
1728
1070
|
.object({
|
|
1729
1071
|
"@type": z.string(),
|
|
1730
1072
|
decimalFormat: z.string().nullable(),
|
|
@@ -1734,36 +1076,44 @@ const DecimalColumnFormat: z.ZodType<DecimalColumnFormat> = z
|
|
|
1734
1076
|
multiplier: z.number().nullable(),
|
|
1735
1077
|
})
|
|
1736
1078
|
.passthrough();
|
|
1737
|
-
|
|
1079
|
+
export type DecimalColumnFormat = z.infer<typeof DecimalColumnFormat>;
|
|
1080
|
+
export const DurationColumnFormat = z
|
|
1738
1081
|
.object({ "@type": z.string(), durationPattern: z.string().nullable() })
|
|
1739
1082
|
.passthrough();
|
|
1740
|
-
|
|
1083
|
+
export type DurationColumnFormat = z.infer<typeof DurationColumnFormat>;
|
|
1084
|
+
export const ColumnFormat = z.discriminatedUnion("@type", [
|
|
1741
1085
|
DateTimeColumnFormat,
|
|
1742
1086
|
DecimalColumnFormat,
|
|
1743
1087
|
DurationColumnFormat,
|
|
1744
1088
|
]);
|
|
1745
|
-
|
|
1089
|
+
export type ColumnFormat = z.infer<typeof ColumnFormat>;
|
|
1090
|
+
export const ExportColumnOptions = z
|
|
1746
1091
|
.object({
|
|
1747
1092
|
targetPropertyId: z.string(),
|
|
1748
1093
|
displayName: z.string().nullable(),
|
|
1749
1094
|
columnFormat: ColumnFormat.nullable(),
|
|
1750
1095
|
})
|
|
1751
1096
|
.passthrough();
|
|
1752
|
-
|
|
1097
|
+
export type ExportColumnOptions = z.infer<typeof ExportColumnOptions>;
|
|
1098
|
+
export const ExportTargetConfiguration = z
|
|
1753
1099
|
.object({
|
|
1754
1100
|
fileName: z.string().nullable(),
|
|
1755
1101
|
exportFormat: ExportFormat,
|
|
1756
1102
|
columnDisplayOptions: z.array(ExportColumnOptions),
|
|
1757
1103
|
})
|
|
1758
1104
|
.passthrough();
|
|
1759
|
-
|
|
1105
|
+
export type ExportTargetConfiguration = z.infer<
|
|
1106
|
+
typeof ExportTargetConfiguration
|
|
1107
|
+
>;
|
|
1108
|
+
export const EmailConfiguration = z
|
|
1760
1109
|
.object({
|
|
1761
1110
|
recipientEmails: z.array(z.string()).min(1),
|
|
1762
1111
|
subject: z.string().nullable(),
|
|
1763
1112
|
body: z.string().nullable(),
|
|
1764
1113
|
})
|
|
1765
1114
|
.passthrough();
|
|
1766
|
-
|
|
1115
|
+
export type EmailConfiguration = z.infer<typeof EmailConfiguration>;
|
|
1116
|
+
export const ViewExportRequest = z
|
|
1767
1117
|
.object({
|
|
1768
1118
|
queryContext: z.object({}).partial().passthrough(),
|
|
1769
1119
|
computation: Computation.nullable(),
|
|
@@ -1771,22 +1121,28 @@ const ViewExportRequest: z.ZodType<ViewExportRequest> = z
|
|
|
1771
1121
|
emailConfiguration: EmailConfiguration.nullable(),
|
|
1772
1122
|
})
|
|
1773
1123
|
.passthrough();
|
|
1774
|
-
|
|
1124
|
+
export type ViewExportRequest = z.infer<typeof ViewExportRequest>;
|
|
1125
|
+
export const QueryExportEmailResponse = z
|
|
1775
1126
|
.object({ "@type": z.string() })
|
|
1776
1127
|
.passthrough();
|
|
1777
|
-
|
|
1128
|
+
export type QueryExportEmailResponse = z.infer<typeof QueryExportEmailResponse>;
|
|
1129
|
+
export const QueryExportLinkResponse = z
|
|
1778
1130
|
.object({ "@type": z.string(), url: z.string().regex(/\S/) })
|
|
1779
1131
|
.passthrough();
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1132
|
+
export type QueryExportLinkResponse = z.infer<typeof QueryExportLinkResponse>;
|
|
1133
|
+
export const QueryExportResponse = z.discriminatedUnion("@type", [
|
|
1134
|
+
QueryExportEmailResponse,
|
|
1135
|
+
QueryExportLinkResponse,
|
|
1136
|
+
]);
|
|
1137
|
+
export type QueryExportResponse = z.infer<typeof QueryExportResponse>;
|
|
1138
|
+
export const RequestExecutionParameters = z
|
|
1786
1139
|
.object({ forceRefresh: z.boolean() })
|
|
1787
1140
|
.partial()
|
|
1788
1141
|
.passthrough();
|
|
1789
|
-
|
|
1142
|
+
export type RequestExecutionParameters = z.infer<
|
|
1143
|
+
typeof RequestExecutionParameters
|
|
1144
|
+
>;
|
|
1145
|
+
export const ViewRunRequest = z
|
|
1790
1146
|
.object({
|
|
1791
1147
|
dataRequestParameters: DataRequestParameters,
|
|
1792
1148
|
requestExecutionParameters: RequestExecutionParameters.nullable(),
|
|
@@ -1794,7 +1150,8 @@ const ViewRunRequest: z.ZodType<ViewRunRequest> = z
|
|
|
1794
1150
|
computation: Computation.nullable(),
|
|
1795
1151
|
})
|
|
1796
1152
|
.passthrough();
|
|
1797
|
-
|
|
1153
|
+
export type ViewRunRequest = z.infer<typeof ViewRunRequest>;
|
|
1154
|
+
export const View = z
|
|
1798
1155
|
.object({
|
|
1799
1156
|
name: z.string().max(200).regex(/\S/),
|
|
1800
1157
|
path: z.string().nullable(),
|
|
@@ -1823,13 +1180,14 @@ const View: z.ZodType<View> = z
|
|
|
1823
1180
|
.nullish(),
|
|
1824
1181
|
})
|
|
1825
1182
|
.passthrough();
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
const ListViewsResponse
|
|
1183
|
+
export type View = z.infer<typeof View>;
|
|
1184
|
+
export const ViewResponse = z.object({ view: View }).passthrough();
|
|
1185
|
+
export type ViewResponse = z.infer<typeof ViewResponse>;
|
|
1186
|
+
export const ListViewsResponse = z
|
|
1830
1187
|
.object({ views: z.array(ViewResponse) })
|
|
1831
1188
|
.passthrough();
|
|
1832
|
-
|
|
1189
|
+
export type ListViewsResponse = z.infer<typeof ListViewsResponse>;
|
|
1190
|
+
export const TenantS3Configuration = z
|
|
1833
1191
|
.object({
|
|
1834
1192
|
prefix: z.string(),
|
|
1835
1193
|
bucket: z.string(),
|
|
@@ -1837,13 +1195,15 @@ const TenantS3Configuration: z.ZodType<TenantS3Configuration> = z
|
|
|
1837
1195
|
roleArn: z.string(),
|
|
1838
1196
|
})
|
|
1839
1197
|
.passthrough();
|
|
1840
|
-
|
|
1198
|
+
export type TenantS3Configuration = z.infer<typeof TenantS3Configuration>;
|
|
1199
|
+
export const TenantRequest = z
|
|
1841
1200
|
.object({
|
|
1842
1201
|
configurationOverrides: z.record(z.string()).optional(),
|
|
1843
1202
|
s3Configuration: TenantS3Configuration.nullable(),
|
|
1844
1203
|
})
|
|
1845
1204
|
.passthrough();
|
|
1846
|
-
|
|
1205
|
+
export type TenantRequest = z.infer<typeof TenantRequest>;
|
|
1206
|
+
export const TenantKey = z
|
|
1847
1207
|
.object({
|
|
1848
1208
|
id: z
|
|
1849
1209
|
.string()
|
|
@@ -1855,7 +1215,8 @@ const TenantKey: z.ZodType<TenantKey> = z
|
|
|
1855
1215
|
value: z.string().nullable(),
|
|
1856
1216
|
})
|
|
1857
1217
|
.passthrough();
|
|
1858
|
-
|
|
1218
|
+
export type TenantKey = z.infer<typeof TenantKey>;
|
|
1219
|
+
export const Tenant = z
|
|
1859
1220
|
.object({
|
|
1860
1221
|
id: z
|
|
1861
1222
|
.string()
|
|
@@ -1868,10 +1229,10 @@ const Tenant: z.ZodType<Tenant> = z
|
|
|
1868
1229
|
s3Configuration: TenantS3Configuration.nullable(),
|
|
1869
1230
|
})
|
|
1870
1231
|
.passthrough();
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
const VersionedViewRequest
|
|
1232
|
+
export type Tenant = z.infer<typeof Tenant>;
|
|
1233
|
+
export const TenantResponse = z.object({ tenant: Tenant }).passthrough();
|
|
1234
|
+
export type TenantResponse = z.infer<typeof TenantResponse>;
|
|
1235
|
+
export const VersionedViewRequest = z
|
|
1875
1236
|
.object({
|
|
1876
1237
|
id: UUID.regex(
|
|
1877
1238
|
/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}/
|
|
@@ -1881,10 +1242,14 @@ const VersionedViewRequest: z.ZodType<VersionedViewRequest> = z
|
|
|
1881
1242
|
).uuid(),
|
|
1882
1243
|
})
|
|
1883
1244
|
.passthrough();
|
|
1884
|
-
|
|
1245
|
+
export type VersionedViewRequest = z.infer<typeof VersionedViewRequest>;
|
|
1246
|
+
export const ListVersionedViewsRequest = z
|
|
1885
1247
|
.object({ requests: z.array(VersionedViewRequest) })
|
|
1886
1248
|
.passthrough();
|
|
1887
|
-
|
|
1249
|
+
export type ListVersionedViewsRequest = z.infer<
|
|
1250
|
+
typeof ListVersionedViewsRequest
|
|
1251
|
+
>;
|
|
1252
|
+
export const Commit = z
|
|
1888
1253
|
.object({
|
|
1889
1254
|
id: z
|
|
1890
1255
|
.string()
|
|
@@ -1903,10 +1268,10 @@ const Commit: z.ZodType<Commit> = z
|
|
|
1903
1268
|
.nullable(),
|
|
1904
1269
|
})
|
|
1905
1270
|
.passthrough();
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
const QueryTimeoutError
|
|
1271
|
+
export type Commit = z.infer<typeof Commit>;
|
|
1272
|
+
export const CommitResponse = z.object({ commit: Commit }).passthrough();
|
|
1273
|
+
export type CommitResponse = z.infer<typeof CommitResponse>;
|
|
1274
|
+
export const QueryTimeoutError = z
|
|
1910
1275
|
.object({
|
|
1911
1276
|
renderedQuery: z.string().nullable(),
|
|
1912
1277
|
requestTelemetry: RequestTelemetry.nullable(),
|
|
@@ -1914,14 +1279,17 @@ const QueryTimeoutError: z.ZodType<QueryTimeoutError> = z
|
|
|
1914
1279
|
"@type": z.string(),
|
|
1915
1280
|
})
|
|
1916
1281
|
.passthrough();
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1282
|
+
export type QueryTimeoutError = z.infer<typeof QueryTimeoutError>;
|
|
1283
|
+
export const DataSourceError = z.discriminatedUnion("@type", [
|
|
1284
|
+
QueryExecutionError,
|
|
1285
|
+
QueryTimeoutError,
|
|
1286
|
+
]);
|
|
1287
|
+
export type DataSourceError = z.infer<typeof DataSourceError>;
|
|
1288
|
+
export const ListNamespacesResponse = z
|
|
1922
1289
|
.object({ namespaces: z.array(NamespaceResponse) })
|
|
1923
1290
|
.passthrough();
|
|
1924
|
-
|
|
1291
|
+
export type ListNamespacesResponse = z.infer<typeof ListNamespacesResponse>;
|
|
1292
|
+
export const ListViewsRequest = z
|
|
1925
1293
|
.object({
|
|
1926
1294
|
viewIds: z.array(
|
|
1927
1295
|
z
|
|
@@ -1933,18 +1301,23 @@ const ListViewsRequest = z
|
|
|
1933
1301
|
),
|
|
1934
1302
|
})
|
|
1935
1303
|
.passthrough();
|
|
1936
|
-
|
|
1304
|
+
export type ListViewsRequest = z.infer<typeof ListViewsRequest>;
|
|
1305
|
+
export const SearchBranchContentResponse = z
|
|
1937
1306
|
.object({ results: z.array(Resource) })
|
|
1938
1307
|
.passthrough();
|
|
1939
|
-
|
|
1308
|
+
export type SearchBranchContentResponse = z.infer<
|
|
1309
|
+
typeof SearchBranchContentResponse
|
|
1310
|
+
>;
|
|
1311
|
+
export const TestConnectionResponse = z
|
|
1940
1312
|
.object({ numberOfTables: z.number().int().gte(0) })
|
|
1941
1313
|
.passthrough();
|
|
1942
|
-
|
|
1314
|
+
export type TestConnectionResponse = z.infer<typeof TestConnectionResponse>;
|
|
1315
|
+
export const ViewRequest = z
|
|
1943
1316
|
.object({ view: z.discriminatedUnion("@type", [TableView, ComputedView]) })
|
|
1944
1317
|
.passthrough();
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1318
|
+
export type ViewRequest = z.infer<typeof ViewRequest>;
|
|
1319
|
+
export const ViewResponse1 = z.object({ resource: Resource }).passthrough();
|
|
1320
|
+
export type ViewResponse1 = z.infer<typeof ViewResponse1>;
|
|
1948
1321
|
|
|
1949
1322
|
export const schemas = {
|
|
1950
1323
|
Branch,
|