@@ -12,6 +12,8 @@ export type NumberDataType =
12
12
| 'Float'
13
13
| 'Double'
14
14
15
+ export type BigIntDataType = 'Int64' | 'UInt64'
16
+
15
17
export type StringDataType = 'String' | 'Text' | 'UUID'
16
18
17
19
export type MetaData = {
@@ -32,6 +34,11 @@ export type NumberPropertyValue = {
32
34
value ?: number | null
33
35
}
34
36
37
+ export type BigIntPropertyValue = {
38
+ type : BigIntDataType
39
+ value ?: bigint | null
40
+ }
41
+
35
42
export type StringPropertyValue = {
36
43
type : StringDataType
37
44
value ?: string | null
@@ -44,7 +51,7 @@ export type BooleanPropertyValue = {
44
51
45
52
export type DateTimePropertyValue = {
46
53
type : 'DateTime'
47
- value ?: Date | number | null
54
+ value ?: Date | number | bigint | null
48
55
}
49
56
50
57
export type PropertySetValue = {
@@ -59,6 +66,7 @@ export type PropertySetListValue = {
59
66
60
67
export type PropertyValue =
61
68
| NumberPropertyValue
69
+ | BigIntPropertyValue
62
70
| StringPropertyValue
63
71
| BooleanPropertyValue
64
72
| DateTimePropertyValue
@@ -81,9 +89,14 @@ export type NumberMetric = MetricBase & {
81
89
value ?: number | null
82
90
}
83
91
92
+ export type BigIntMetric = MetricBase & {
93
+ type : BigIntDataType
94
+ value ?: bigint | null
95
+ }
96
+
84
97
export type DateTimeMetric = MetricBase & {
85
98
type : 'DateTime'
86
- value ?: Date | number | null
99
+ value ?: Date | number | bigint | null
87
100
}
88
101
89
102
export type BooleanMetric = MetricBase & {
@@ -100,18 +113,20 @@ export type DataSetValueTypes = {
100
113
Int8 : number
101
114
Int16 : number
102
115
Int32 : number
103
- Int64 : number
116
+ Int64 : number | bigint
104
117
UInt8 : number
105
118
UInt16 : number
106
119
UInt32 : number
107
- UInt64 : number
120
+ UInt64 : number | bigint
108
121
Float : number
109
122
Double : number
110
123
Boolean : boolean
111
124
String : string
112
- DateTime : Date | number
125
+ DateTime : Date | number | bigint
113
126
Text : string
114
127
UUID : string
128
+ Bytes : Bytes
129
+ File : Bytes
115
130
}
116
131
117
132
export type DataSetValueType = keyof DataSetValueTypes
@@ -157,6 +172,7 @@ export type FileMetric = MetricBase & {
157
172
}
158
173
159
174
export type Metric =
175
+ | NumberMetric
160
176
| NumberMetric
161
177
| BooleanMetric
162
178
| StringMetric
@@ -172,6 +188,12 @@ export type NumberParameter = {
172
188
value ?: number | null
173
189
}
174
190
191
+ export type BigIntParameter = {
192
+ name ?: string
193
+ type : BigIntDataType
194
+ value ?: bigint | null
195
+ }
196
+
175
197
export type BooleanParameter = {
176
198
name ?: string
177
199
type : 'Boolean'
@@ -187,11 +209,12 @@ export type StringParameter = {
187
209
export type DateTimeParameter = {
188
210
name ?: string
189
211
type : 'DateTime'
190
- value ?: Date | number | null
212
+ value ?: Date | number | bigint | null
191
213
}
192
214
193
215
export type Parameter =
194
216
| NumberParameter
217
+ | BigIntParameter
195
218
| BooleanParameter
196
219
| StringParameter
197
220
| DateTimeParameter
0 commit comments