@malloydata/malloy-interfaces 0.0.277 → 0.0.279
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.d.ts +20 -1
- package/dist/types.js +18 -1
- package/package.json +1 -1
- package/thrift/malloy.thrift +8 -0
package/dist/types.d.ts
CHANGED
|
@@ -225,7 +225,9 @@ export type FilterWithFilterString = {
|
|
|
225
225
|
export type FilterExpressionLiteral = {
|
|
226
226
|
filter_expression_value: string;
|
|
227
227
|
};
|
|
228
|
-
export type FilterExpressionType = {
|
|
228
|
+
export type FilterExpressionType = {
|
|
229
|
+
filter_type: FilterableType;
|
|
230
|
+
};
|
|
229
231
|
export type FilterOperation = {
|
|
230
232
|
filter: Filter;
|
|
231
233
|
};
|
|
@@ -233,6 +235,23 @@ export type FilterStringApplication = {
|
|
|
233
235
|
field_reference: Reference;
|
|
234
236
|
filter: string;
|
|
235
237
|
};
|
|
238
|
+
export type FilterableTypeType = 'string_type' | 'boolean_type' | 'number_type' | 'date_type' | 'timestamp_type';
|
|
239
|
+
export type FilterableType = FilterableTypeWithStringType | FilterableTypeWithBooleanType | FilterableTypeWithNumberType | FilterableTypeWithDateType | FilterableTypeWithTimestampType;
|
|
240
|
+
export type FilterableTypeWithStringType = {
|
|
241
|
+
kind: 'string_type';
|
|
242
|
+
} & StringType;
|
|
243
|
+
export type FilterableTypeWithBooleanType = {
|
|
244
|
+
kind: 'boolean_type';
|
|
245
|
+
} & BooleanType;
|
|
246
|
+
export type FilterableTypeWithNumberType = {
|
|
247
|
+
kind: 'number_type';
|
|
248
|
+
} & NumberType;
|
|
249
|
+
export type FilterableTypeWithDateType = {
|
|
250
|
+
kind: 'date_type';
|
|
251
|
+
} & DateType;
|
|
252
|
+
export type FilterableTypeWithTimestampType = {
|
|
253
|
+
kind: 'timestamp_type';
|
|
254
|
+
} & TimestampType;
|
|
236
255
|
export type FilteredField = {
|
|
237
256
|
field_reference: Reference;
|
|
238
257
|
where: Array<FilterOperation>;
|
package/dist/types.js
CHANGED
|
@@ -535,7 +535,13 @@ exports.MALLOY_INTERFACE_TYPES = {
|
|
|
535
535
|
'FilterExpressionType': {
|
|
536
536
|
'type': 'struct',
|
|
537
537
|
'name': 'FilterExpressionType',
|
|
538
|
-
'fields': {
|
|
538
|
+
'fields': {
|
|
539
|
+
'filter_type': {
|
|
540
|
+
'type': 'FilterableType',
|
|
541
|
+
'optional': false,
|
|
542
|
+
'array': false,
|
|
543
|
+
},
|
|
544
|
+
},
|
|
539
545
|
},
|
|
540
546
|
'FilterOperation': {
|
|
541
547
|
'type': 'struct',
|
|
@@ -564,6 +570,17 @@ exports.MALLOY_INTERFACE_TYPES = {
|
|
|
564
570
|
},
|
|
565
571
|
},
|
|
566
572
|
},
|
|
573
|
+
'FilterableType': {
|
|
574
|
+
'type': 'union',
|
|
575
|
+
'name': 'FilterableType',
|
|
576
|
+
'options': {
|
|
577
|
+
'string_type': 'StringType',
|
|
578
|
+
'boolean_type': 'BooleanType',
|
|
579
|
+
'number_type': 'NumberType',
|
|
580
|
+
'date_type': 'DateType',
|
|
581
|
+
'timestamp_type': 'TimestampType',
|
|
582
|
+
},
|
|
583
|
+
},
|
|
567
584
|
'FilteredField': {
|
|
568
585
|
'type': 'struct',
|
|
569
586
|
'name': 'FilteredField',
|
package/package.json
CHANGED
package/thrift/malloy.thrift
CHANGED
|
@@ -177,8 +177,16 @@ struct RecordType {
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
struct FilterExpressionType {
|
|
180
|
+
1: required FilterableType filter_type;
|
|
180
181
|
}
|
|
181
182
|
|
|
183
|
+
union FilterableType {
|
|
184
|
+
1: required StringType string_type;
|
|
185
|
+
2: required BooleanType boolean_type;
|
|
186
|
+
3: required NumberType number_type;
|
|
187
|
+
6: required DateType date_type;
|
|
188
|
+
7: required TimestampType timestamp_type;
|
|
189
|
+
}
|
|
182
190
|
|
|
183
191
|
union AtomicType {
|
|
184
192
|
1: required StringType string_type,
|