@malloydata/malloy-interfaces 0.0.241 → 0.0.242-dev250313012122

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/types.js CHANGED
@@ -1,3 +1,1462 @@
1
1
  "use strict";
2
+ /*
3
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
4
+ *
5
+ * This source code is licensed under the MIT license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ /*
9
+ * Autogenerated.
10
+ * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
11
+ */
2
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.MALLOY_INTERFACE_TYPES = void 0;
14
+ exports.MALLOY_INTERFACE_TYPES = {
15
+ 'Aggregate': {
16
+ 'type': 'struct',
17
+ 'name': 'Aggregate',
18
+ 'fields': {
19
+ 'name': {
20
+ 'type': 'string',
21
+ 'optional': true,
22
+ 'array': false,
23
+ },
24
+ 'field': {
25
+ 'type': 'Field',
26
+ 'optional': false,
27
+ 'array': false,
28
+ },
29
+ },
30
+ },
31
+ 'Annotation': {
32
+ 'type': 'struct',
33
+ 'name': 'Annotation',
34
+ 'fields': {
35
+ 'value': {
36
+ 'type': 'string',
37
+ 'optional': false,
38
+ 'array': false,
39
+ },
40
+ },
41
+ },
42
+ 'AnonymousQueryInfo': {
43
+ 'type': 'struct',
44
+ 'name': 'AnonymousQueryInfo',
45
+ 'fields': {
46
+ 'schema': {
47
+ 'type': 'Schema',
48
+ 'optional': false,
49
+ 'array': false,
50
+ },
51
+ 'annotations': {
52
+ 'type': 'Annotation',
53
+ 'array': true,
54
+ 'optional': true,
55
+ },
56
+ 'definition': {
57
+ 'type': 'Query',
58
+ 'optional': true,
59
+ 'array': false,
60
+ },
61
+ 'code': {
62
+ 'type': 'string',
63
+ 'optional': true,
64
+ 'array': false,
65
+ },
66
+ 'location': {
67
+ 'type': 'Location',
68
+ 'optional': true,
69
+ 'array': false,
70
+ },
71
+ },
72
+ },
73
+ 'ArrayCell': {
74
+ 'type': 'struct',
75
+ 'name': 'ArrayCell',
76
+ 'fields': {
77
+ 'array_value': {
78
+ 'type': 'Cell',
79
+ 'array': true,
80
+ 'optional': false,
81
+ },
82
+ },
83
+ },
84
+ 'ArrayType': {
85
+ 'type': 'struct',
86
+ 'name': 'ArrayType',
87
+ 'fields': {
88
+ 'element_type': {
89
+ 'type': 'AtomicType',
90
+ 'optional': false,
91
+ 'array': false,
92
+ },
93
+ },
94
+ },
95
+ 'AtomicType': {
96
+ 'type': 'union',
97
+ 'name': 'AtomicType',
98
+ 'options': {
99
+ 'string_type': 'StringType',
100
+ 'boolean_type': 'BooleanType',
101
+ 'number_type': 'NumberType',
102
+ 'json_type': 'JSONType',
103
+ 'sql_native_type': 'SQLNativeType',
104
+ 'date_type': 'DateType',
105
+ 'timestamp_type': 'TimestampType',
106
+ 'array_type': 'ArrayType',
107
+ 'record_type': 'RecordType',
108
+ },
109
+ },
110
+ 'BooleanCell': {
111
+ 'type': 'struct',
112
+ 'name': 'BooleanCell',
113
+ 'fields': {
114
+ 'boolean_value': {
115
+ 'type': 'boolean',
116
+ 'optional': false,
117
+ 'array': false,
118
+ },
119
+ },
120
+ },
121
+ 'BooleanLiteral': {
122
+ 'type': 'struct',
123
+ 'name': 'BooleanLiteral',
124
+ 'fields': {
125
+ 'boolean_value': {
126
+ 'type': 'boolean',
127
+ 'optional': false,
128
+ 'array': false,
129
+ },
130
+ },
131
+ },
132
+ 'BooleanType': {
133
+ 'type': 'struct',
134
+ 'name': 'BooleanType',
135
+ 'fields': {},
136
+ },
137
+ 'Cell': {
138
+ 'type': 'union',
139
+ 'name': 'Cell',
140
+ 'options': {
141
+ 'string_cell': 'StringCell',
142
+ 'boolean_cell': 'BooleanCell',
143
+ 'date_cell': 'DateCell',
144
+ 'timestamp_cell': 'TimestampCell',
145
+ 'number_cell': 'NumberCell',
146
+ 'json_cell': 'JSONCell',
147
+ 'record_cell': 'RecordCell',
148
+ 'array_cell': 'ArrayCell',
149
+ 'null_cell': 'NullCell',
150
+ 'sql_native_cell': 'SQLNativeCell',
151
+ },
152
+ },
153
+ 'CompileModelRequest': {
154
+ 'type': 'struct',
155
+ 'name': 'CompileModelRequest',
156
+ 'fields': {
157
+ 'model_url': {
158
+ 'type': 'string',
159
+ 'optional': false,
160
+ 'array': false,
161
+ },
162
+ 'extend_model_url': {
163
+ 'type': 'string',
164
+ 'optional': true,
165
+ 'array': false,
166
+ },
167
+ 'compiler_needs': {
168
+ 'type': 'CompilerNeeds',
169
+ 'optional': true,
170
+ 'array': false,
171
+ },
172
+ },
173
+ },
174
+ 'CompileModelResponse': {
175
+ 'type': 'struct',
176
+ 'name': 'CompileModelResponse',
177
+ 'fields': {
178
+ 'model': {
179
+ 'type': 'ModelInfo',
180
+ 'optional': true,
181
+ 'array': false,
182
+ },
183
+ 'logs': {
184
+ 'type': 'LogMessage',
185
+ 'array': true,
186
+ 'optional': true,
187
+ },
188
+ 'compiler_needs': {
189
+ 'type': 'CompilerNeeds',
190
+ 'optional': true,
191
+ 'array': false,
192
+ },
193
+ },
194
+ },
195
+ 'CompileQueryRequest': {
196
+ 'type': 'struct',
197
+ 'name': 'CompileQueryRequest',
198
+ 'fields': {
199
+ 'model_url': {
200
+ 'type': 'string',
201
+ 'optional': false,
202
+ 'array': false,
203
+ },
204
+ 'query': {
205
+ 'type': 'Query',
206
+ 'optional': false,
207
+ 'array': false,
208
+ },
209
+ 'compiler_needs': {
210
+ 'type': 'CompilerNeeds',
211
+ 'optional': true,
212
+ 'array': false,
213
+ },
214
+ },
215
+ },
216
+ 'CompileQueryResponse': {
217
+ 'type': 'struct',
218
+ 'name': 'CompileQueryResponse',
219
+ 'fields': {
220
+ 'result': {
221
+ 'type': 'Result',
222
+ 'optional': true,
223
+ 'array': false,
224
+ },
225
+ 'logs': {
226
+ 'type': 'LogMessage',
227
+ 'array': true,
228
+ 'optional': true,
229
+ },
230
+ 'compiler_needs': {
231
+ 'type': 'CompilerNeeds',
232
+ 'optional': true,
233
+ 'array': false,
234
+ },
235
+ },
236
+ },
237
+ 'CompileSourceRequest': {
238
+ 'type': 'struct',
239
+ 'name': 'CompileSourceRequest',
240
+ 'fields': {
241
+ 'model_url': {
242
+ 'type': 'string',
243
+ 'optional': false,
244
+ 'array': false,
245
+ },
246
+ 'name': {
247
+ 'type': 'string',
248
+ 'optional': false,
249
+ 'array': false,
250
+ },
251
+ 'extend_model_url': {
252
+ 'type': 'string',
253
+ 'optional': true,
254
+ 'array': false,
255
+ },
256
+ 'compiler_needs': {
257
+ 'type': 'CompilerNeeds',
258
+ 'optional': true,
259
+ 'array': false,
260
+ },
261
+ },
262
+ },
263
+ 'CompileSourceResponse': {
264
+ 'type': 'struct',
265
+ 'name': 'CompileSourceResponse',
266
+ 'fields': {
267
+ 'source': {
268
+ 'type': 'SourceInfo',
269
+ 'optional': true,
270
+ 'array': false,
271
+ },
272
+ 'logs': {
273
+ 'type': 'LogMessage',
274
+ 'array': true,
275
+ 'optional': true,
276
+ },
277
+ 'compiler_needs': {
278
+ 'type': 'CompilerNeeds',
279
+ 'optional': true,
280
+ 'array': false,
281
+ },
282
+ },
283
+ },
284
+ 'CompilerNeeds': {
285
+ 'type': 'struct',
286
+ 'name': 'CompilerNeeds',
287
+ 'fields': {
288
+ 'table_schemas': {
289
+ 'type': 'SQLTable',
290
+ 'array': true,
291
+ 'optional': true,
292
+ },
293
+ 'sql_schemas': {
294
+ 'type': 'SQLQuery',
295
+ 'array': true,
296
+ 'optional': true,
297
+ },
298
+ 'files': {
299
+ 'type': 'File',
300
+ 'array': true,
301
+ 'optional': true,
302
+ },
303
+ 'connections': {
304
+ 'type': 'Connection',
305
+ 'array': true,
306
+ 'optional': true,
307
+ },
308
+ 'translations': {
309
+ 'type': 'Translation',
310
+ 'array': true,
311
+ 'optional': true,
312
+ },
313
+ },
314
+ },
315
+ 'Connection': {
316
+ 'type': 'struct',
317
+ 'name': 'Connection',
318
+ 'fields': {
319
+ 'name': {
320
+ 'type': 'string',
321
+ 'optional': false,
322
+ 'array': false,
323
+ },
324
+ 'dialect': {
325
+ 'type': 'string',
326
+ 'optional': true,
327
+ 'array': false,
328
+ },
329
+ },
330
+ },
331
+ 'Data': {
332
+ 'type': 'union',
333
+ 'name': 'Data',
334
+ 'options': {
335
+ 'record_cell': 'RecordCell',
336
+ 'array_cell': 'ArrayCell',
337
+ },
338
+ },
339
+ 'DateCell': {
340
+ 'type': 'struct',
341
+ 'name': 'DateCell',
342
+ 'fields': {
343
+ 'date_value': {
344
+ 'type': 'string',
345
+ 'optional': false,
346
+ 'array': false,
347
+ },
348
+ },
349
+ },
350
+ 'DateLiteral': {
351
+ 'type': 'struct',
352
+ 'name': 'DateLiteral',
353
+ 'fields': {
354
+ 'date_value': {
355
+ 'type': 'string',
356
+ 'optional': false,
357
+ 'array': false,
358
+ },
359
+ 'granularity': {
360
+ 'type': 'DateTimeframe',
361
+ 'optional': true,
362
+ 'array': false,
363
+ },
364
+ },
365
+ },
366
+ 'DateTimeframe': {
367
+ 'type': 'enum',
368
+ 'name': 'DateTimeframe',
369
+ 'values': ['year', 'quarter', 'month', 'week', 'day'],
370
+ },
371
+ 'DateType': {
372
+ 'type': 'struct',
373
+ 'name': 'DateType',
374
+ 'fields': {
375
+ 'timeframe': {
376
+ 'type': 'DateTimeframe',
377
+ 'optional': true,
378
+ 'array': false,
379
+ },
380
+ },
381
+ },
382
+ 'DimensionInfo': {
383
+ 'type': 'struct',
384
+ 'name': 'DimensionInfo',
385
+ 'fields': {
386
+ 'name': {
387
+ 'type': 'string',
388
+ 'optional': false,
389
+ 'array': false,
390
+ },
391
+ 'type': {
392
+ 'type': 'AtomicType',
393
+ 'optional': false,
394
+ 'array': false,
395
+ },
396
+ 'annotations': {
397
+ 'type': 'Annotation',
398
+ 'array': true,
399
+ 'optional': true,
400
+ },
401
+ },
402
+ },
403
+ 'DocumentPosition': {
404
+ 'type': 'struct',
405
+ 'name': 'DocumentPosition',
406
+ 'fields': {
407
+ 'line': {
408
+ 'type': 'number',
409
+ 'optional': false,
410
+ 'array': false,
411
+ },
412
+ 'character': {
413
+ 'type': 'number',
414
+ 'optional': false,
415
+ 'array': false,
416
+ },
417
+ },
418
+ },
419
+ 'DocumentRange': {
420
+ 'type': 'struct',
421
+ 'name': 'DocumentRange',
422
+ 'fields': {
423
+ 'start': {
424
+ 'type': 'DocumentPosition',
425
+ 'optional': false,
426
+ 'array': false,
427
+ },
428
+ 'end': {
429
+ 'type': 'DocumentPosition',
430
+ 'optional': false,
431
+ 'array': false,
432
+ },
433
+ },
434
+ },
435
+ 'Expression': {
436
+ 'type': 'union',
437
+ 'name': 'Expression',
438
+ 'options': {
439
+ 'field_reference': 'Reference',
440
+ 'time_truncation': 'TimeTruncationFieldReference',
441
+ 'filtered_field': 'FilteredField',
442
+ },
443
+ },
444
+ 'Field': {
445
+ 'type': 'struct',
446
+ 'name': 'Field',
447
+ 'fields': {
448
+ 'expression': {
449
+ 'type': 'Expression',
450
+ 'optional': false,
451
+ 'array': false,
452
+ },
453
+ 'annotations': {
454
+ 'type': 'Annotation',
455
+ 'array': true,
456
+ 'optional': true,
457
+ },
458
+ },
459
+ },
460
+ 'FieldInfo': {
461
+ 'type': 'union',
462
+ 'name': 'FieldInfo',
463
+ 'options': {
464
+ 'dimension': 'DimensionInfo',
465
+ 'measure': 'MeasureInfo',
466
+ 'join': 'JoinInfo',
467
+ 'view': 'ViewInfo',
468
+ },
469
+ },
470
+ 'File': {
471
+ 'type': 'struct',
472
+ 'name': 'File',
473
+ 'fields': {
474
+ 'url': {
475
+ 'type': 'string',
476
+ 'optional': false,
477
+ 'array': false,
478
+ },
479
+ 'contents': {
480
+ 'type': 'string',
481
+ 'optional': true,
482
+ 'array': false,
483
+ },
484
+ 'invalidation_key': {
485
+ 'type': 'string',
486
+ 'optional': true,
487
+ 'array': false,
488
+ },
489
+ },
490
+ },
491
+ 'Filter': {
492
+ 'type': 'union',
493
+ 'name': 'Filter',
494
+ 'options': {
495
+ 'filter_string': 'FilterStringApplication',
496
+ },
497
+ },
498
+ 'FilterStringApplication': {
499
+ 'type': 'struct',
500
+ 'name': 'FilterStringApplication',
501
+ 'fields': {
502
+ 'field_reference': {
503
+ 'type': 'Reference',
504
+ 'optional': false,
505
+ 'array': false,
506
+ },
507
+ 'filter': {
508
+ 'type': 'string',
509
+ 'optional': false,
510
+ 'array': false,
511
+ },
512
+ },
513
+ },
514
+ 'FilteredField': {
515
+ 'type': 'struct',
516
+ 'name': 'FilteredField',
517
+ 'fields': {
518
+ 'field_reference': {
519
+ 'type': 'Reference',
520
+ 'optional': false,
521
+ 'array': false,
522
+ },
523
+ 'where': {
524
+ 'type': 'Where',
525
+ 'array': true,
526
+ 'optional': false,
527
+ },
528
+ },
529
+ },
530
+ 'GroupBy': {
531
+ 'type': 'struct',
532
+ 'name': 'GroupBy',
533
+ 'fields': {
534
+ 'name': {
535
+ 'type': 'string',
536
+ 'optional': true,
537
+ 'array': false,
538
+ },
539
+ 'field': {
540
+ 'type': 'Field',
541
+ 'optional': false,
542
+ 'array': false,
543
+ },
544
+ },
545
+ },
546
+ 'JSONCell': {
547
+ 'type': 'struct',
548
+ 'name': 'JSONCell',
549
+ 'fields': {
550
+ 'json_value': {
551
+ 'type': 'string',
552
+ 'optional': false,
553
+ 'array': false,
554
+ },
555
+ },
556
+ },
557
+ 'JSONType': {
558
+ 'type': 'struct',
559
+ 'name': 'JSONType',
560
+ 'fields': {},
561
+ },
562
+ 'JoinInfo': {
563
+ 'type': 'struct',
564
+ 'name': 'JoinInfo',
565
+ 'fields': {
566
+ 'name': {
567
+ 'type': 'string',
568
+ 'optional': false,
569
+ 'array': false,
570
+ },
571
+ 'schema': {
572
+ 'type': 'Schema',
573
+ 'optional': false,
574
+ 'array': false,
575
+ },
576
+ 'annotations': {
577
+ 'type': 'Annotation',
578
+ 'array': true,
579
+ 'optional': true,
580
+ },
581
+ 'relationship': {
582
+ 'type': 'Relationship',
583
+ 'optional': false,
584
+ 'array': false,
585
+ },
586
+ },
587
+ },
588
+ 'Limit': {
589
+ 'type': 'struct',
590
+ 'name': 'Limit',
591
+ 'fields': {
592
+ 'limit': {
593
+ 'type': 'number',
594
+ 'optional': false,
595
+ 'array': false,
596
+ },
597
+ },
598
+ },
599
+ 'LiteralValue': {
600
+ 'type': 'union',
601
+ 'name': 'LiteralValue',
602
+ 'options': {
603
+ 'string_literal': 'StringLiteral',
604
+ 'number_literal': 'NumberLiteral',
605
+ 'date_literal': 'DateLiteral',
606
+ 'timestamp_literal': 'TimestampLiteral',
607
+ 'boolean_literal': 'BooleanLiteral',
608
+ 'null_literal': 'NullLiteral',
609
+ },
610
+ },
611
+ 'Location': {
612
+ 'type': 'struct',
613
+ 'name': 'Location',
614
+ 'fields': {
615
+ 'url': {
616
+ 'type': 'string',
617
+ 'optional': false,
618
+ 'array': false,
619
+ },
620
+ 'range': {
621
+ 'type': 'Range',
622
+ 'optional': false,
623
+ 'array': false,
624
+ },
625
+ },
626
+ },
627
+ 'LogMessage': {
628
+ 'type': 'struct',
629
+ 'name': 'LogMessage',
630
+ 'fields': {
631
+ 'url': {
632
+ 'type': 'string',
633
+ 'optional': false,
634
+ 'array': false,
635
+ },
636
+ 'range': {
637
+ 'type': 'DocumentRange',
638
+ 'optional': false,
639
+ 'array': false,
640
+ },
641
+ 'severity': {
642
+ 'type': 'LogSeverity',
643
+ 'optional': false,
644
+ 'array': false,
645
+ },
646
+ 'message': {
647
+ 'type': 'string',
648
+ 'optional': false,
649
+ 'array': false,
650
+ },
651
+ },
652
+ },
653
+ 'LogSeverity': {
654
+ 'type': 'enum',
655
+ 'name': 'LogSeverity',
656
+ 'values': ['debug', 'info', 'warn', 'error'],
657
+ },
658
+ 'MeasureInfo': {
659
+ 'type': 'struct',
660
+ 'name': 'MeasureInfo',
661
+ 'fields': {
662
+ 'name': {
663
+ 'type': 'string',
664
+ 'optional': false,
665
+ 'array': false,
666
+ },
667
+ 'type': {
668
+ 'type': 'AtomicType',
669
+ 'optional': false,
670
+ 'array': false,
671
+ },
672
+ 'annotations': {
673
+ 'type': 'Annotation',
674
+ 'array': true,
675
+ 'optional': true,
676
+ },
677
+ },
678
+ },
679
+ 'ModelEntryValue': {
680
+ 'type': 'union',
681
+ 'name': 'ModelEntryValue',
682
+ 'options': {
683
+ 'source': 'SourceInfo',
684
+ 'query': 'QueryInfo',
685
+ },
686
+ },
687
+ 'ModelInfo': {
688
+ 'type': 'struct',
689
+ 'name': 'ModelInfo',
690
+ 'fields': {
691
+ 'entries': {
692
+ 'type': 'ModelEntryValue',
693
+ 'array': true,
694
+ 'optional': false,
695
+ },
696
+ 'annotations': {
697
+ 'type': 'Annotation',
698
+ 'array': true,
699
+ 'optional': true,
700
+ },
701
+ 'anonymous_queries': {
702
+ 'type': 'AnonymousQueryInfo',
703
+ 'array': true,
704
+ 'optional': false,
705
+ },
706
+ },
707
+ },
708
+ 'Nest': {
709
+ 'type': 'struct',
710
+ 'name': 'Nest',
711
+ 'fields': {
712
+ 'name': {
713
+ 'type': 'string',
714
+ 'optional': true,
715
+ 'array': false,
716
+ },
717
+ 'view': {
718
+ 'type': 'View',
719
+ 'optional': false,
720
+ 'array': false,
721
+ },
722
+ },
723
+ },
724
+ 'NullCell': {
725
+ 'type': 'struct',
726
+ 'name': 'NullCell',
727
+ 'fields': {},
728
+ },
729
+ 'NullLiteral': {
730
+ 'type': 'struct',
731
+ 'name': 'NullLiteral',
732
+ 'fields': {},
733
+ },
734
+ 'NumberCell': {
735
+ 'type': 'struct',
736
+ 'name': 'NumberCell',
737
+ 'fields': {
738
+ 'number_value': {
739
+ 'type': 'number',
740
+ 'optional': false,
741
+ 'array': false,
742
+ },
743
+ },
744
+ },
745
+ 'NumberLiteral': {
746
+ 'type': 'struct',
747
+ 'name': 'NumberLiteral',
748
+ 'fields': {
749
+ 'number_value': {
750
+ 'type': 'number',
751
+ 'optional': false,
752
+ 'array': false,
753
+ },
754
+ },
755
+ },
756
+ 'NumberSubtype': {
757
+ 'type': 'enum',
758
+ 'name': 'NumberSubtype',
759
+ 'values': ['integer', 'decimal'],
760
+ },
761
+ 'NumberType': {
762
+ 'type': 'struct',
763
+ 'name': 'NumberType',
764
+ 'fields': {
765
+ 'subtype': {
766
+ 'type': 'NumberSubtype',
767
+ 'optional': true,
768
+ 'array': false,
769
+ },
770
+ },
771
+ },
772
+ 'OrderBy': {
773
+ 'type': 'struct',
774
+ 'name': 'OrderBy',
775
+ 'fields': {
776
+ 'field_reference': {
777
+ 'type': 'Reference',
778
+ 'optional': false,
779
+ 'array': false,
780
+ },
781
+ 'direction': {
782
+ 'type': 'OrderByDirection',
783
+ 'optional': true,
784
+ 'array': false,
785
+ },
786
+ },
787
+ },
788
+ 'OrderByDirection': {
789
+ 'type': 'enum',
790
+ 'name': 'OrderByDirection',
791
+ 'values': ['asc', 'desc'],
792
+ },
793
+ 'ParameterInfo': {
794
+ 'type': 'struct',
795
+ 'name': 'ParameterInfo',
796
+ 'fields': {
797
+ 'name': {
798
+ 'type': 'string',
799
+ 'optional': false,
800
+ 'array': false,
801
+ },
802
+ 'type': {
803
+ 'type': 'AtomicType',
804
+ 'optional': false,
805
+ 'array': false,
806
+ },
807
+ 'default_value': {
808
+ 'type': 'LiteralValue',
809
+ 'optional': true,
810
+ 'array': false,
811
+ },
812
+ },
813
+ },
814
+ 'ParameterValue': {
815
+ 'type': 'struct',
816
+ 'name': 'ParameterValue',
817
+ 'fields': {
818
+ 'name': {
819
+ 'type': 'string',
820
+ 'optional': false,
821
+ 'array': false,
822
+ },
823
+ 'value': {
824
+ 'type': 'LiteralValue',
825
+ 'optional': false,
826
+ 'array': false,
827
+ },
828
+ },
829
+ },
830
+ 'Position': {
831
+ 'type': 'struct',
832
+ 'name': 'Position',
833
+ 'fields': {
834
+ 'line': {
835
+ 'type': 'number',
836
+ 'optional': false,
837
+ 'array': false,
838
+ },
839
+ 'character': {
840
+ 'type': 'number',
841
+ 'optional': false,
842
+ 'array': false,
843
+ },
844
+ },
845
+ },
846
+ 'Query': {
847
+ 'type': 'struct',
848
+ 'name': 'Query',
849
+ 'fields': {
850
+ 'definition': {
851
+ 'type': 'QueryDefinition',
852
+ 'optional': false,
853
+ 'array': false,
854
+ },
855
+ 'annotations': {
856
+ 'type': 'Annotation',
857
+ 'array': true,
858
+ 'optional': true,
859
+ },
860
+ },
861
+ },
862
+ 'QueryArrow': {
863
+ 'type': 'struct',
864
+ 'name': 'QueryArrow',
865
+ 'fields': {
866
+ 'source': {
867
+ 'type': 'QueryArrowSource',
868
+ 'optional': false,
869
+ 'array': false,
870
+ },
871
+ 'view': {
872
+ 'type': 'ViewDefinition',
873
+ 'optional': false,
874
+ 'array': false,
875
+ },
876
+ },
877
+ },
878
+ 'QueryArrowSource': {
879
+ 'type': 'union',
880
+ 'name': 'QueryArrowSource',
881
+ 'options': {
882
+ 'refinement': 'QueryRefinement',
883
+ 'source_reference': 'Reference',
884
+ },
885
+ },
886
+ 'QueryDefinition': {
887
+ 'type': 'union',
888
+ 'name': 'QueryDefinition',
889
+ 'options': {
890
+ 'arrow': 'QueryArrow',
891
+ 'query_reference': 'Reference',
892
+ 'refinement': 'QueryRefinement',
893
+ },
894
+ },
895
+ 'QueryInfo': {
896
+ 'type': 'struct',
897
+ 'name': 'QueryInfo',
898
+ 'fields': {
899
+ 'name': {
900
+ 'type': 'string',
901
+ 'optional': false,
902
+ 'array': false,
903
+ },
904
+ 'schema': {
905
+ 'type': 'Schema',
906
+ 'optional': false,
907
+ 'array': false,
908
+ },
909
+ 'annotations': {
910
+ 'type': 'Annotation',
911
+ 'array': true,
912
+ 'optional': true,
913
+ },
914
+ 'definition': {
915
+ 'type': 'Query',
916
+ 'optional': true,
917
+ 'array': false,
918
+ },
919
+ 'code': {
920
+ 'type': 'string',
921
+ 'optional': true,
922
+ 'array': false,
923
+ },
924
+ 'location': {
925
+ 'type': 'Location',
926
+ 'optional': true,
927
+ 'array': false,
928
+ },
929
+ },
930
+ },
931
+ 'QueryRefinement': {
932
+ 'type': 'struct',
933
+ 'name': 'QueryRefinement',
934
+ 'fields': {
935
+ 'base': {
936
+ 'type': 'QueryDefinition',
937
+ 'optional': false,
938
+ 'array': false,
939
+ },
940
+ 'refinement': {
941
+ 'type': 'ViewDefinition',
942
+ 'optional': false,
943
+ 'array': false,
944
+ },
945
+ },
946
+ },
947
+ 'Range': {
948
+ 'type': 'struct',
949
+ 'name': 'Range',
950
+ 'fields': {
951
+ 'start': {
952
+ 'type': 'Position',
953
+ 'optional': false,
954
+ 'array': false,
955
+ },
956
+ 'end': {
957
+ 'type': 'Position',
958
+ 'optional': false,
959
+ 'array': false,
960
+ },
961
+ },
962
+ },
963
+ 'RecordCell': {
964
+ 'type': 'struct',
965
+ 'name': 'RecordCell',
966
+ 'fields': {
967
+ 'record_value': {
968
+ 'type': 'Cell',
969
+ 'array': true,
970
+ 'optional': false,
971
+ },
972
+ },
973
+ },
974
+ 'RecordType': {
975
+ 'type': 'struct',
976
+ 'name': 'RecordType',
977
+ 'fields': {
978
+ 'fields': {
979
+ 'type': 'DimensionInfo',
980
+ 'array': true,
981
+ 'optional': false,
982
+ },
983
+ },
984
+ },
985
+ 'Reference': {
986
+ 'type': 'struct',
987
+ 'name': 'Reference',
988
+ 'fields': {
989
+ 'name': {
990
+ 'type': 'string',
991
+ 'optional': false,
992
+ 'array': false,
993
+ },
994
+ 'path': {
995
+ 'type': 'string',
996
+ 'array': true,
997
+ 'optional': true,
998
+ },
999
+ 'parameters': {
1000
+ 'type': 'ParameterValue',
1001
+ 'array': true,
1002
+ 'optional': true,
1003
+ },
1004
+ },
1005
+ },
1006
+ 'Relationship': {
1007
+ 'type': 'enum',
1008
+ 'name': 'Relationship',
1009
+ 'values': ['one', 'many', 'cross'],
1010
+ },
1011
+ 'Result': {
1012
+ 'type': 'struct',
1013
+ 'name': 'Result',
1014
+ 'fields': {
1015
+ 'data': {
1016
+ 'type': 'Data',
1017
+ 'optional': true,
1018
+ 'array': false,
1019
+ },
1020
+ 'schema': {
1021
+ 'type': 'Schema',
1022
+ 'optional': false,
1023
+ 'array': false,
1024
+ },
1025
+ 'sql': {
1026
+ 'type': 'string',
1027
+ 'optional': true,
1028
+ 'array': false,
1029
+ },
1030
+ 'connection_name': {
1031
+ 'type': 'string',
1032
+ 'optional': false,
1033
+ 'array': false,
1034
+ },
1035
+ 'annotations': {
1036
+ 'type': 'Annotation',
1037
+ 'array': true,
1038
+ 'optional': true,
1039
+ },
1040
+ 'model_annotations': {
1041
+ 'type': 'Annotation',
1042
+ 'array': true,
1043
+ 'optional': true,
1044
+ },
1045
+ 'query_timezone': {
1046
+ 'type': 'string',
1047
+ 'optional': true,
1048
+ 'array': false,
1049
+ },
1050
+ },
1051
+ },
1052
+ 'RunIndexQueryRequest': {
1053
+ 'type': 'struct',
1054
+ 'name': 'RunIndexQueryRequest',
1055
+ 'fields': {
1056
+ 'model_url': {
1057
+ 'type': 'string',
1058
+ 'optional': false,
1059
+ 'array': false,
1060
+ },
1061
+ 'source_name': {
1062
+ 'type': 'string',
1063
+ 'optional': false,
1064
+ 'array': false,
1065
+ },
1066
+ 'compiler_needs': {
1067
+ 'type': 'CompilerNeeds',
1068
+ 'optional': true,
1069
+ 'array': false,
1070
+ },
1071
+ },
1072
+ },
1073
+ 'RunIndexQueryResponse': {
1074
+ 'type': 'struct',
1075
+ 'name': 'RunIndexQueryResponse',
1076
+ 'fields': {
1077
+ 'result': {
1078
+ 'type': 'Result',
1079
+ 'optional': true,
1080
+ 'array': false,
1081
+ },
1082
+ 'compiler_needs': {
1083
+ 'type': 'CompilerNeeds',
1084
+ 'optional': true,
1085
+ 'array': false,
1086
+ },
1087
+ },
1088
+ },
1089
+ 'RunQueryRequest': {
1090
+ 'type': 'struct',
1091
+ 'name': 'RunQueryRequest',
1092
+ 'fields': {
1093
+ 'model_url': {
1094
+ 'type': 'string',
1095
+ 'optional': false,
1096
+ 'array': false,
1097
+ },
1098
+ 'query': {
1099
+ 'type': 'Query',
1100
+ 'optional': false,
1101
+ 'array': false,
1102
+ },
1103
+ 'compiler_needs': {
1104
+ 'type': 'CompilerNeeds',
1105
+ 'optional': true,
1106
+ 'array': false,
1107
+ },
1108
+ },
1109
+ },
1110
+ 'RunQueryResponse': {
1111
+ 'type': 'struct',
1112
+ 'name': 'RunQueryResponse',
1113
+ 'fields': {
1114
+ 'result': {
1115
+ 'type': 'Result',
1116
+ 'optional': true,
1117
+ 'array': false,
1118
+ },
1119
+ 'logs': {
1120
+ 'type': 'LogMessage',
1121
+ 'array': true,
1122
+ 'optional': true,
1123
+ },
1124
+ 'compiler_needs': {
1125
+ 'type': 'CompilerNeeds',
1126
+ 'optional': true,
1127
+ 'array': false,
1128
+ },
1129
+ },
1130
+ },
1131
+ 'SQLNativeCell': {
1132
+ 'type': 'struct',
1133
+ 'name': 'SQLNativeCell',
1134
+ 'fields': {
1135
+ 'sql_native_value': {
1136
+ 'type': 'string',
1137
+ 'optional': false,
1138
+ 'array': false,
1139
+ },
1140
+ },
1141
+ },
1142
+ 'SQLNativeType': {
1143
+ 'type': 'struct',
1144
+ 'name': 'SQLNativeType',
1145
+ 'fields': {
1146
+ 'sql_type': {
1147
+ 'type': 'string',
1148
+ 'optional': true,
1149
+ 'array': false,
1150
+ },
1151
+ },
1152
+ },
1153
+ 'SQLQuery': {
1154
+ 'type': 'struct',
1155
+ 'name': 'SQLQuery',
1156
+ 'fields': {
1157
+ 'sql': {
1158
+ 'type': 'string',
1159
+ 'optional': false,
1160
+ 'array': false,
1161
+ },
1162
+ 'schema': {
1163
+ 'type': 'Schema',
1164
+ 'optional': true,
1165
+ 'array': false,
1166
+ },
1167
+ 'connection_name': {
1168
+ 'type': 'string',
1169
+ 'optional': false,
1170
+ 'array': false,
1171
+ },
1172
+ },
1173
+ },
1174
+ 'SQLTable': {
1175
+ 'type': 'struct',
1176
+ 'name': 'SQLTable',
1177
+ 'fields': {
1178
+ 'name': {
1179
+ 'type': 'string',
1180
+ 'optional': false,
1181
+ 'array': false,
1182
+ },
1183
+ 'schema': {
1184
+ 'type': 'Schema',
1185
+ 'optional': true,
1186
+ 'array': false,
1187
+ },
1188
+ 'connection_name': {
1189
+ 'type': 'string',
1190
+ 'optional': false,
1191
+ 'array': false,
1192
+ },
1193
+ },
1194
+ },
1195
+ 'Schema': {
1196
+ 'type': 'struct',
1197
+ 'name': 'Schema',
1198
+ 'fields': {
1199
+ 'fields': {
1200
+ 'type': 'FieldInfo',
1201
+ 'array': true,
1202
+ 'optional': false,
1203
+ },
1204
+ },
1205
+ },
1206
+ 'SourceInfo': {
1207
+ 'type': 'struct',
1208
+ 'name': 'SourceInfo',
1209
+ 'fields': {
1210
+ 'name': {
1211
+ 'type': 'string',
1212
+ 'optional': false,
1213
+ 'array': false,
1214
+ },
1215
+ 'schema': {
1216
+ 'type': 'Schema',
1217
+ 'optional': false,
1218
+ 'array': false,
1219
+ },
1220
+ 'annotations': {
1221
+ 'type': 'Annotation',
1222
+ 'array': true,
1223
+ 'optional': true,
1224
+ },
1225
+ 'parameters': {
1226
+ 'type': 'ParameterInfo',
1227
+ 'array': true,
1228
+ 'optional': true,
1229
+ },
1230
+ },
1231
+ },
1232
+ 'StringCell': {
1233
+ 'type': 'struct',
1234
+ 'name': 'StringCell',
1235
+ 'fields': {
1236
+ 'string_value': {
1237
+ 'type': 'string',
1238
+ 'optional': false,
1239
+ 'array': false,
1240
+ },
1241
+ },
1242
+ },
1243
+ 'StringLiteral': {
1244
+ 'type': 'struct',
1245
+ 'name': 'StringLiteral',
1246
+ 'fields': {
1247
+ 'string_value': {
1248
+ 'type': 'string',
1249
+ 'optional': false,
1250
+ 'array': false,
1251
+ },
1252
+ },
1253
+ },
1254
+ 'StringType': {
1255
+ 'type': 'struct',
1256
+ 'name': 'StringType',
1257
+ 'fields': {},
1258
+ },
1259
+ 'TimeTruncationFieldReference': {
1260
+ 'type': 'struct',
1261
+ 'name': 'TimeTruncationFieldReference',
1262
+ 'fields': {
1263
+ 'field_reference': {
1264
+ 'type': 'Reference',
1265
+ 'optional': false,
1266
+ 'array': false,
1267
+ },
1268
+ 'truncation': {
1269
+ 'type': 'TimestampTimeframe',
1270
+ 'optional': false,
1271
+ 'array': false,
1272
+ },
1273
+ },
1274
+ },
1275
+ 'TimestampCell': {
1276
+ 'type': 'struct',
1277
+ 'name': 'TimestampCell',
1278
+ 'fields': {
1279
+ 'timestamp_value': {
1280
+ 'type': 'string',
1281
+ 'optional': false,
1282
+ 'array': false,
1283
+ },
1284
+ },
1285
+ },
1286
+ 'TimestampLiteral': {
1287
+ 'type': 'struct',
1288
+ 'name': 'TimestampLiteral',
1289
+ 'fields': {
1290
+ 'timestamp_value': {
1291
+ 'type': 'string',
1292
+ 'optional': false,
1293
+ 'array': false,
1294
+ },
1295
+ 'granularity': {
1296
+ 'type': 'TimestampTimeframe',
1297
+ 'optional': true,
1298
+ 'array': false,
1299
+ },
1300
+ },
1301
+ },
1302
+ 'TimestampTimeframe': {
1303
+ 'type': 'enum',
1304
+ 'name': 'TimestampTimeframe',
1305
+ 'values': [
1306
+ 'year',
1307
+ 'quarter',
1308
+ 'month',
1309
+ 'week',
1310
+ 'day',
1311
+ 'hour',
1312
+ 'minute',
1313
+ 'second',
1314
+ ],
1315
+ },
1316
+ 'TimestampType': {
1317
+ 'type': 'struct',
1318
+ 'name': 'TimestampType',
1319
+ 'fields': {
1320
+ 'timeframe': {
1321
+ 'type': 'TimestampTimeframe',
1322
+ 'optional': true,
1323
+ 'array': false,
1324
+ },
1325
+ },
1326
+ },
1327
+ 'Translation': {
1328
+ 'type': 'struct',
1329
+ 'name': 'Translation',
1330
+ 'fields': {
1331
+ 'url': {
1332
+ 'type': 'string',
1333
+ 'optional': false,
1334
+ 'array': false,
1335
+ },
1336
+ 'compiled_model_json': {
1337
+ 'type': 'string',
1338
+ 'optional': true,
1339
+ 'array': false,
1340
+ },
1341
+ },
1342
+ },
1343
+ 'View': {
1344
+ 'type': 'struct',
1345
+ 'name': 'View',
1346
+ 'fields': {
1347
+ 'definition': {
1348
+ 'type': 'ViewDefinition',
1349
+ 'optional': false,
1350
+ 'array': false,
1351
+ },
1352
+ 'annotations': {
1353
+ 'type': 'Annotation',
1354
+ 'array': true,
1355
+ 'optional': true,
1356
+ },
1357
+ },
1358
+ },
1359
+ 'ViewArrow': {
1360
+ 'type': 'struct',
1361
+ 'name': 'ViewArrow',
1362
+ 'fields': {
1363
+ 'source': {
1364
+ 'type': 'ViewDefinition',
1365
+ 'optional': false,
1366
+ 'array': false,
1367
+ },
1368
+ 'view': {
1369
+ 'type': 'ViewDefinition',
1370
+ 'optional': false,
1371
+ 'array': false,
1372
+ },
1373
+ },
1374
+ },
1375
+ 'ViewDefinition': {
1376
+ 'type': 'union',
1377
+ 'name': 'ViewDefinition',
1378
+ 'options': {
1379
+ 'arrow': 'ViewArrow',
1380
+ 'view_reference': 'Reference',
1381
+ 'refinement': 'ViewRefinement',
1382
+ 'segment': 'ViewSegment',
1383
+ },
1384
+ },
1385
+ 'ViewInfo': {
1386
+ 'type': 'struct',
1387
+ 'name': 'ViewInfo',
1388
+ 'fields': {
1389
+ 'name': {
1390
+ 'type': 'string',
1391
+ 'optional': false,
1392
+ 'array': false,
1393
+ },
1394
+ 'schema': {
1395
+ 'type': 'Schema',
1396
+ 'optional': false,
1397
+ 'array': false,
1398
+ },
1399
+ 'annotations': {
1400
+ 'type': 'Annotation',
1401
+ 'array': true,
1402
+ 'optional': true,
1403
+ },
1404
+ 'definition': {
1405
+ 'type': 'View',
1406
+ 'optional': true,
1407
+ 'array': false,
1408
+ },
1409
+ },
1410
+ },
1411
+ 'ViewOperation': {
1412
+ 'type': 'union',
1413
+ 'name': 'ViewOperation',
1414
+ 'options': {
1415
+ 'group_by': 'GroupBy',
1416
+ 'aggregate': 'Aggregate',
1417
+ 'order_by': 'OrderBy',
1418
+ 'limit': 'Limit',
1419
+ 'where': 'Where',
1420
+ 'nest': 'Nest',
1421
+ },
1422
+ },
1423
+ 'ViewRefinement': {
1424
+ 'type': 'struct',
1425
+ 'name': 'ViewRefinement',
1426
+ 'fields': {
1427
+ 'base': {
1428
+ 'type': 'ViewDefinition',
1429
+ 'optional': false,
1430
+ 'array': false,
1431
+ },
1432
+ 'refinement': {
1433
+ 'type': 'ViewDefinition',
1434
+ 'optional': false,
1435
+ 'array': false,
1436
+ },
1437
+ },
1438
+ },
1439
+ 'ViewSegment': {
1440
+ 'type': 'struct',
1441
+ 'name': 'ViewSegment',
1442
+ 'fields': {
1443
+ 'operations': {
1444
+ 'type': 'ViewOperation',
1445
+ 'array': true,
1446
+ 'optional': false,
1447
+ },
1448
+ },
1449
+ },
1450
+ 'Where': {
1451
+ 'type': 'struct',
1452
+ 'name': 'Where',
1453
+ 'fields': {
1454
+ 'filter': {
1455
+ 'type': 'Filter',
1456
+ 'optional': false,
1457
+ 'array': false,
1458
+ },
1459
+ },
1460
+ },
1461
+ };
3
1462
  //# sourceMappingURL=types.js.map