@malloydata/malloy-interfaces 0.0.322 → 0.0.324

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 CHANGED
@@ -37,8 +37,8 @@ export type ArrayCell = {
37
37
  export type ArrayType = {
38
38
  element_type: AtomicType;
39
39
  };
40
- export type AtomicTypeType = 'string_type' | 'boolean_type' | 'number_type' | 'json_type' | 'sql_native_type' | 'date_type' | 'timestamp_type' | 'array_type' | 'record_type';
41
- export type AtomicType = AtomicTypeWithStringType | AtomicTypeWithBooleanType | AtomicTypeWithNumberType | AtomicTypeWithJSONType | AtomicTypeWithSQLNativeType | AtomicTypeWithDateType | AtomicTypeWithTimestampType | AtomicTypeWithArrayType | AtomicTypeWithRecordType;
40
+ export type AtomicTypeType = 'string_type' | 'boolean_type' | 'number_type' | 'json_type' | 'sql_native_type' | 'date_type' | 'timestamp_type' | 'array_type' | 'record_type' | 'timestamptz_type';
41
+ export type AtomicType = AtomicTypeWithStringType | AtomicTypeWithBooleanType | AtomicTypeWithNumberType | AtomicTypeWithJSONType | AtomicTypeWithSQLNativeType | AtomicTypeWithDateType | AtomicTypeWithTimestampType | AtomicTypeWithArrayType | AtomicTypeWithRecordType | AtomicTypeWithTimestamptzType;
42
42
  export type AtomicTypeWithStringType = {
43
43
  kind: 'string_type';
44
44
  } & StringType;
@@ -66,6 +66,9 @@ export type AtomicTypeWithArrayType = {
66
66
  export type AtomicTypeWithRecordType = {
67
67
  kind: 'record_type';
68
68
  } & RecordType;
69
+ export type AtomicTypeWithTimestamptzType = {
70
+ kind: 'timestamptz_type';
71
+ } & TimestamptzType;
69
72
  export type BooleanCell = {
70
73
  boolean_value: boolean;
71
74
  };
@@ -267,8 +270,8 @@ export type FilterStringApplication = {
267
270
  expression: Expression;
268
271
  filter: string;
269
272
  };
270
- export type FilterableTypeType = 'string_type' | 'boolean_type' | 'number_type' | 'date_type' | 'timestamp_type';
271
- export type FilterableType = FilterableTypeWithStringType | FilterableTypeWithBooleanType | FilterableTypeWithNumberType | FilterableTypeWithDateType | FilterableTypeWithTimestampType;
273
+ export type FilterableTypeType = 'string_type' | 'boolean_type' | 'number_type' | 'date_type' | 'timestamp_type' | 'timestamptz_type';
274
+ export type FilterableType = FilterableTypeWithStringType | FilterableTypeWithBooleanType | FilterableTypeWithNumberType | FilterableTypeWithDateType | FilterableTypeWithTimestampType | FilterableTypeWithTimestamptzType;
272
275
  export type FilterableTypeWithStringType = {
273
276
  kind: 'string_type';
274
277
  } & StringType;
@@ -284,6 +287,9 @@ export type FilterableTypeWithDateType = {
284
287
  export type FilterableTypeWithTimestampType = {
285
288
  kind: 'timestamp_type';
286
289
  } & TimestampType;
290
+ export type FilterableTypeWithTimestamptzType = {
291
+ kind: 'timestamptz_type';
292
+ } & TimestamptzType;
287
293
  export type FilteredField = {
288
294
  field_reference: Reference;
289
295
  where: Array<FilterOperation>;
@@ -396,8 +402,8 @@ export type ParameterInfo = {
396
402
  type: ParameterType;
397
403
  default_value?: LiteralValue;
398
404
  };
399
- export type ParameterTypeType = 'string_type' | 'boolean_type' | 'number_type' | 'json_type' | 'sql_native_type' | 'date_type' | 'timestamp_type' | 'array_type' | 'record_type' | 'filter_expression_type';
400
- export type ParameterType = ParameterTypeWithStringType | ParameterTypeWithBooleanType | ParameterTypeWithNumberType | ParameterTypeWithJSONType | ParameterTypeWithSQLNativeType | ParameterTypeWithDateType | ParameterTypeWithTimestampType | ParameterTypeWithArrayType | ParameterTypeWithRecordType | ParameterTypeWithFilterExpressionType;
405
+ export type ParameterTypeType = 'string_type' | 'boolean_type' | 'number_type' | 'json_type' | 'sql_native_type' | 'date_type' | 'timestamp_type' | 'array_type' | 'record_type' | 'filter_expression_type' | 'timestamptz_type';
406
+ export type ParameterType = ParameterTypeWithStringType | ParameterTypeWithBooleanType | ParameterTypeWithNumberType | ParameterTypeWithJSONType | ParameterTypeWithSQLNativeType | ParameterTypeWithDateType | ParameterTypeWithTimestampType | ParameterTypeWithArrayType | ParameterTypeWithRecordType | ParameterTypeWithFilterExpressionType | ParameterTypeWithTimestamptzType;
401
407
  export type ParameterTypeWithStringType = {
402
408
  kind: 'string_type';
403
409
  } & StringType;
@@ -428,6 +434,9 @@ export type ParameterTypeWithRecordType = {
428
434
  export type ParameterTypeWithFilterExpressionType = {
429
435
  kind: 'filter_expression_type';
430
436
  } & FilterExpressionType;
437
+ export type ParameterTypeWithTimestamptzType = {
438
+ kind: 'timestamptz_type';
439
+ } & TimestamptzType;
431
440
  export type ParameterValue = {
432
441
  name: string;
433
442
  value: LiteralValue;
@@ -575,6 +584,9 @@ export type TimestampTimeframe = 'year' | 'quarter' | 'month' | 'week' | 'day' |
575
584
  export type TimestampType = {
576
585
  timeframe?: TimestampTimeframe;
577
586
  };
587
+ export type TimestamptzType = {
588
+ timeframe?: TimestampTimeframe;
589
+ };
578
590
  export type TimingInfo = {
579
591
  name: string;
580
592
  duration_ms: number;
package/dist/types.js CHANGED
@@ -105,6 +105,7 @@ exports.MALLOY_INTERFACE_TYPES = {
105
105
  'timestamp_type': 'TimestampType',
106
106
  'array_type': 'ArrayType',
107
107
  'record_type': 'RecordType',
108
+ 'timestamptz_type': 'TimestamptzType',
108
109
  },
109
110
  },
110
111
  'BooleanCell': {
@@ -671,6 +672,7 @@ exports.MALLOY_INTERFACE_TYPES = {
671
672
  'number_type': 'NumberType',
672
673
  'date_type': 'DateType',
673
674
  'timestamp_type': 'TimestampType',
675
+ 'timestamptz_type': 'TimestamptzType',
674
676
  },
675
677
  },
676
678
  'FilteredField': {
@@ -1052,6 +1054,7 @@ exports.MALLOY_INTERFACE_TYPES = {
1052
1054
  'array_type': 'ArrayType',
1053
1055
  'record_type': 'RecordType',
1054
1056
  'filter_expression_type': 'FilterExpressionType',
1057
+ 'timestamptz_type': 'TimestamptzType',
1055
1058
  },
1056
1059
  },
1057
1060
  'ParameterValue': {
@@ -1616,6 +1619,17 @@ exports.MALLOY_INTERFACE_TYPES = {
1616
1619
  },
1617
1620
  },
1618
1621
  },
1622
+ 'TimestamptzType': {
1623
+ 'type': 'struct',
1624
+ 'name': 'TimestamptzType',
1625
+ 'fields': {
1626
+ 'timeframe': {
1627
+ 'type': 'TimestampTimeframe',
1628
+ 'optional': true,
1629
+ 'array': false,
1630
+ },
1631
+ },
1632
+ },
1619
1633
  'TimingInfo': {
1620
1634
  'type': 'struct',
1621
1635
  'name': 'TimingInfo',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy-interfaces",
3
- "version": "0.0.322",
3
+ "version": "0.0.324",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -193,6 +193,7 @@ union FilterableType {
193
193
  3: required NumberType number_type;
194
194
  6: required DateType date_type;
195
195
  7: required TimestampType timestamp_type;
196
+ 8: required TimestamptzType timestamptz_type;
196
197
  }
197
198
 
198
199
  union AtomicType {
@@ -205,6 +206,7 @@ union AtomicType {
205
206
  7: required TimestampType timestamp_type,
206
207
  9: required ArrayType array_type,
207
208
  10: required RecordType record_type,
209
+ 11: required TimestamptzType timestamptz_type,
208
210
  }
209
211
 
210
212
  union ParameterType {
@@ -218,6 +220,7 @@ union ParameterType {
218
220
  9: required ArrayType array_type,
219
221
  10: required RecordType record_type,
220
222
  11: required FilterExpressionType filter_expression_type,
223
+ 12: required TimestamptzType timestamptz_type,
221
224
  }
222
225
 
223
226
  struct SQLNativeType {
@@ -251,6 +254,10 @@ struct TimestampType {
251
254
  2: optional TimestampTimeframe timeframe,
252
255
  }
253
256
 
257
+ struct TimestamptzType {
258
+ 2: optional TimestampTimeframe timeframe,
259
+ }
260
+
254
261
  /*
255
262
 
256
263
  Questions: