@malloydata/malloy-interfaces 0.0.330 → 0.0.331
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 +3 -9
- package/dist/types.js +5 -17
- package/package.json +1 -1
- package/thrift/malloy.thrift +3 -9
package/dist/types.d.ts
CHANGED
|
@@ -69,10 +69,6 @@ export type AtomicTypeWithRecordType = {
|
|
|
69
69
|
export type AtomicTypeWithTimestamptzType = {
|
|
70
70
|
kind: 'timestamptz_type';
|
|
71
71
|
} & TimestamptzType;
|
|
72
|
-
export type BigNumberCell = {
|
|
73
|
-
number_value: string;
|
|
74
|
-
subtype?: NumberSubtype;
|
|
75
|
-
};
|
|
76
72
|
export type BooleanCell = {
|
|
77
73
|
boolean_value: boolean;
|
|
78
74
|
};
|
|
@@ -89,8 +85,8 @@ export type CalculateOperation = {
|
|
|
89
85
|
name: string;
|
|
90
86
|
field: Field;
|
|
91
87
|
};
|
|
92
|
-
export type CellType = 'string_cell' | 'boolean_cell' | 'date_cell' | 'timestamp_cell' | 'number_cell' | 'json_cell' | 'record_cell' | 'array_cell' | 'null_cell' | 'sql_native_cell'
|
|
93
|
-
export type Cell = CellWithStringCell | CellWithBooleanCell | CellWithDateCell | CellWithTimestampCell | CellWithNumberCell | CellWithJSONCell | CellWithRecordCell | CellWithArrayCell | CellWithNullCell | CellWithSQLNativeCell
|
|
88
|
+
export type CellType = 'string_cell' | 'boolean_cell' | 'date_cell' | 'timestamp_cell' | 'number_cell' | 'json_cell' | 'record_cell' | 'array_cell' | 'null_cell' | 'sql_native_cell';
|
|
89
|
+
export type Cell = CellWithStringCell | CellWithBooleanCell | CellWithDateCell | CellWithTimestampCell | CellWithNumberCell | CellWithJSONCell | CellWithRecordCell | CellWithArrayCell | CellWithNullCell | CellWithSQLNativeCell;
|
|
94
90
|
export type CellWithStringCell = {
|
|
95
91
|
kind: 'string_cell';
|
|
96
92
|
} & StringCell;
|
|
@@ -121,9 +117,6 @@ export type CellWithNullCell = {
|
|
|
121
117
|
export type CellWithSQLNativeCell = {
|
|
122
118
|
kind: 'sql_native_cell';
|
|
123
119
|
} & SQLNativeCell;
|
|
124
|
-
export type CellWithBigNumberCell = {
|
|
125
|
-
kind: 'big_number_cell';
|
|
126
|
-
} & BigNumberCell;
|
|
127
120
|
export type CompileModelRequest = {
|
|
128
121
|
model_url: string;
|
|
129
122
|
extend_model_url?: string;
|
|
@@ -392,6 +385,7 @@ export type NullLiteral = {};
|
|
|
392
385
|
export type NumberCell = {
|
|
393
386
|
number_value: number;
|
|
394
387
|
subtype?: NumberSubtype;
|
|
388
|
+
string_value?: string;
|
|
395
389
|
};
|
|
396
390
|
export type NumberLiteral = {
|
|
397
391
|
number_value: number;
|
package/dist/types.js
CHANGED
|
@@ -108,22 +108,6 @@ exports.MALLOY_INTERFACE_TYPES = {
|
|
|
108
108
|
'timestamptz_type': 'TimestamptzType',
|
|
109
109
|
},
|
|
110
110
|
},
|
|
111
|
-
'BigNumberCell': {
|
|
112
|
-
'type': 'struct',
|
|
113
|
-
'name': 'BigNumberCell',
|
|
114
|
-
'fields': {
|
|
115
|
-
'number_value': {
|
|
116
|
-
'type': 'string',
|
|
117
|
-
'optional': false,
|
|
118
|
-
'array': false,
|
|
119
|
-
},
|
|
120
|
-
'subtype': {
|
|
121
|
-
'type': 'NumberSubtype',
|
|
122
|
-
'optional': true,
|
|
123
|
-
'array': false,
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
111
|
'BooleanCell': {
|
|
128
112
|
'type': 'struct',
|
|
129
113
|
'name': 'BooleanCell',
|
|
@@ -202,7 +186,6 @@ exports.MALLOY_INTERFACE_TYPES = {
|
|
|
202
186
|
'array_cell': 'ArrayCell',
|
|
203
187
|
'null_cell': 'NullCell',
|
|
204
188
|
'sql_native_cell': 'SQLNativeCell',
|
|
205
|
-
'big_number_cell': 'BigNumberCell',
|
|
206
189
|
},
|
|
207
190
|
},
|
|
208
191
|
'CompileModelRequest': {
|
|
@@ -985,6 +968,11 @@ exports.MALLOY_INTERFACE_TYPES = {
|
|
|
985
968
|
'optional': true,
|
|
986
969
|
'array': false,
|
|
987
970
|
},
|
|
971
|
+
'string_value': {
|
|
972
|
+
'type': 'string',
|
|
973
|
+
'optional': true,
|
|
974
|
+
'array': false,
|
|
975
|
+
},
|
|
988
976
|
},
|
|
989
977
|
},
|
|
990
978
|
'NumberLiteral': {
|
package/package.json
CHANGED
package/thrift/malloy.thrift
CHANGED
|
@@ -505,14 +505,9 @@ struct BooleanCell {
|
|
|
505
505
|
struct NumberCell {
|
|
506
506
|
1: required double number_value,
|
|
507
507
|
2: optional NumberSubtype subtype,
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
// or require precision beyond float64. Currently used for bigints (64-bit+ integers),
|
|
512
|
-
// but designed to also support high-precision decimals in the future.
|
|
513
|
-
struct BigNumberCell {
|
|
514
|
-
1: required string number_value,
|
|
515
|
-
2: optional NumberSubtype subtype,
|
|
508
|
+
// String representation for numbers that exceed JavaScript's Number.MAX_SAFE_INTEGER
|
|
509
|
+
// or require precision beyond float64. Used for bigints and future large decimals.
|
|
510
|
+
3: optional string string_value,
|
|
516
511
|
}
|
|
517
512
|
|
|
518
513
|
struct NullCell {}
|
|
@@ -553,7 +548,6 @@ union Cell {
|
|
|
553
548
|
8: required ArrayCell array_cell,
|
|
554
549
|
9: required NullCell null_cell,
|
|
555
550
|
10: required SQLNativeCell sql_native_cell,
|
|
556
|
-
11: required BigNumberCell big_number_cell,
|
|
557
551
|
}
|
|
558
552
|
|
|
559
553
|
union Data {
|