@@ -271,6 +271,7 @@ const VALUE_TO_ASSEMBLYSCRIPT = [
271
271
[ '[Boolean]' , 'Array<boolean>' , ( code : any ) => `${ code } .toBooleanArray()` ] ,
272
272
[ '[Int]' , 'Array<i32>' , ( code : any ) => `${ code } .toI32Array()` ] ,
273
273
[ '[Int8]' , 'Array<i64>' , ( code : any ) => `${ code } .toI64Array()` ] ,
274
+ [ '[Timestamp]' , 'Array<i64>' , ( code : any ) => `${ code } .toTimestampArray()` ] ,
274
275
[ '[BigInt]' , 'Array<BigInt>' , ( code : any ) => `${ code } .toBigIntArray()` ] ,
275
276
[ '[ID]' , 'Array<string>' , ( code : any ) => `${ code } .toStringArray()` ] ,
276
277
[ '[String]' , 'Array<string>' , ( code : any ) => `${ code } .toStringArray()` ] ,
@@ -287,6 +288,7 @@ const VALUE_TO_ASSEMBLYSCRIPT = [
287
288
[ 'ID' , 'string' , ( code : any ) => `${ code } .toString()` ] ,
288
289
[ 'String' , 'string' , ( code : any ) => `${ code } .toString()` ] ,
289
290
[ 'BigDecimal' , 'BigDecimal' , ( code : any ) => `${ code } .toBigDecimal()` ] ,
291
+ [ 'Timestamp' , 'i64' , ( code : any ) => `${ code } .toTimestamp()` ] ,
290
292
[ / .* / , 'string' , ( code : any ) => `${ code } .toString()` ] ,
291
293
] ;
292
294
@@ -305,6 +307,7 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
305
307
[ 'Array<Array<boolean>>' , '[[Boolean]]' , ( code : any ) => `Value.fromBooleanMatrix(${ code } )` ] ,
306
308
[ 'Array<Array<i32>>' , '[[Int]]' , ( code : any ) => `Value.fromI32Matrix(${ code } )` ] ,
307
309
[ 'Array<Array<i64>>' , '[[Int8]]' , ( code : any ) => `Value.fromI64Matrix(${ code } )` ] ,
310
+ [ 'Array<Array<i64>>' , '[[Timestamp]]' , ( code : any ) => `Value.fromTimestampMatrix(${ code } )` ] ,
308
311
[ 'Array<Array<BigInt>>' , '[[BigInt]]' , ( code : any ) => `Value.fromBigIntMatrix(${ code } )` ] ,
309
312
[ 'Array<Array<string>>' , '[[String]]' , ( code : any ) => `Value.fromStringMatrix(${ code } )` ] ,
310
313
[ 'Array<Array<string>>' , '[[ID]]' , ( code : any ) => `Value.fromStringMatrix(${ code } )` ] ,
@@ -323,6 +326,7 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
323
326
[ 'Array<boolean>' , '[Boolean]' , ( code : any ) => `Value.fromBooleanArray(${ code } )` ] ,
324
327
[ 'Array<i32>' , '[Int]' , ( code : any ) => `Value.fromI32Array(${ code } )` ] ,
325
328
[ 'Array<i64>' , '[Int8]' , ( code : any ) => `Value.fromI64Array(${ code } )` ] ,
329
+ [ 'Array<i64>' , '[Timestamp]' , ( code : any ) => `Value.fromTimestampArray(${ code } )` ] ,
326
330
[ 'Array<BigInt>' , '[BigInt]' , ( code : any ) => `Value.fromBigIntArray(${ code } )` ] ,
327
331
[ 'Array<string>' , '[String]' , ( code : any ) => `Value.fromStringArray(${ code } )` ] ,
328
332
[ 'Array<string>' , '[ID]' , ( code : any ) => `Value.fromStringArray(${ code } )` ] ,
@@ -337,6 +341,7 @@ const ASSEMBLYSCRIPT_TO_VALUE = [
337
341
[ 'boolean' , 'Boolean' , ( code : any ) => `Value.fromBoolean(${ code } )` ] ,
338
342
[ 'i32' , 'Int' , ( code : any ) => `Value.fromI32(${ code } )` ] ,
339
343
[ 'i64' , 'Int8' , ( code : any ) => `Value.fromI64(${ code } )` ] ,
344
+ [ 'i64' , 'Timestamp' , ( code : any ) => `Value.fromTimestamp(${ code } )` ] ,
340
345
[ 'BigInt' , 'BigInt' , ( code : any ) => `Value.fromBigInt(${ code } )` ] ,
341
346
[ 'string' , 'String' , ( code : any ) => `Value.fromString(${ code } )` ] ,
342
347
[ 'string' , 'ID' , ( code : any ) => `Value.fromString(${ code } )` ] ,
0 commit comments