tigerbeetle-node 0.13.125 → 0.13.127
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/README.md +92 -70
- package/dist/benchmark.js +43 -35
- package/dist/benchmark.js.map +1 -1
- package/dist/bin/aarch64-linux-gnu/client.node +0 -0
- package/dist/bin/aarch64-linux-musl/client.node +0 -0
- package/dist/bin/aarch64-macos/client.node +0 -0
- package/dist/bin/x86_64-linux-gnu/client.node +0 -0
- package/dist/bin/x86_64-linux-musl/client.node +0 -0
- package/dist/bin/x86_64-macos/client.node +0 -0
- package/dist/bin/x86_64-windows/client.node +0 -0
- package/dist/bindings.d.ts +74 -69
- package/dist/bindings.js +62 -59
- package/dist/bindings.js.map +1 -1
- package/dist/test.js +65 -51
- package/dist/test.js.map +1 -1
- package/package.json +1 -1
- package/src/benchmark.ts +57 -48
- package/src/bindings.ts +140 -110
- package/src/node.zig +89 -62
- package/src/test.ts +68 -54
package/src/bindings.ts
CHANGED
|
@@ -76,49 +76,59 @@ export type Account = {
|
|
|
76
76
|
id: bigint
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* See [
|
|
79
|
+
* See [debits_pending](https://docs.tigerbeetle.com/reference/accounts/#debits_pending)
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
debits_pending: bigint
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* See [
|
|
84
|
+
* See [debits_posted](https://docs.tigerbeetle.com/reference/accounts/#debits_posted)
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
debits_posted: bigint
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* See [
|
|
89
|
+
* See [credits_pending](https://docs.tigerbeetle.com/reference/accounts/#credits_pending)
|
|
90
90
|
*/
|
|
91
|
-
|
|
91
|
+
credits_pending: bigint
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* See [
|
|
94
|
+
* See [credits_posted](https://docs.tigerbeetle.com/reference/accounts/#credits_posted)
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
credits_posted: bigint
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* See [
|
|
99
|
+
* See [user_data_128](https://docs.tigerbeetle.com/reference/accounts/#user_data_128)
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
user_data_128: bigint
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* See [
|
|
104
|
+
* See [user_data_64](https://docs.tigerbeetle.com/reference/accounts/#user_data_64)
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
user_data_64: bigint
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* See [
|
|
109
|
+
* See [user_data_32](https://docs.tigerbeetle.com/reference/accounts/#user_data_32)
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
user_data_32: number
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* See [
|
|
114
|
+
* See [reserved](https://docs.tigerbeetle.com/reference/accounts/#reserved)
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
reserved: number
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* See [
|
|
119
|
+
* See [ledger](https://docs.tigerbeetle.com/reference/accounts/#ledger)
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
ledger: number
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* See [code](https://docs.tigerbeetle.com/reference/accounts/#code)
|
|
125
|
+
*/
|
|
126
|
+
code: number
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* See [flags](https://docs.tigerbeetle.com/reference/accounts/#flags)
|
|
130
|
+
*/
|
|
131
|
+
flags: number
|
|
122
132
|
|
|
123
133
|
/**
|
|
124
134
|
* See [timestamp](https://docs.tigerbeetle.com/reference/accounts/#timestamp)
|
|
@@ -148,24 +158,34 @@ export type Transfer = {
|
|
|
148
158
|
credit_account_id: bigint
|
|
149
159
|
|
|
150
160
|
/**
|
|
151
|
-
* See [
|
|
161
|
+
* See [amount](https://docs.tigerbeetle.com/reference/transfers/#amount)
|
|
152
162
|
*/
|
|
153
|
-
|
|
163
|
+
amount: bigint
|
|
154
164
|
|
|
155
165
|
/**
|
|
156
|
-
* See [
|
|
166
|
+
* See [pending_id](https://docs.tigerbeetle.com/reference/transfers/#pending_id)
|
|
157
167
|
*/
|
|
158
|
-
|
|
168
|
+
pending_id: bigint
|
|
159
169
|
|
|
160
170
|
/**
|
|
161
|
-
* See [
|
|
171
|
+
* See [user_data_128](https://docs.tigerbeetle.com/reference/transfers/#user_data_128)
|
|
162
172
|
*/
|
|
163
|
-
|
|
173
|
+
user_data_128: bigint
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* See [user_data_64](https://docs.tigerbeetle.com/reference/transfers/#user_data_64)
|
|
177
|
+
*/
|
|
178
|
+
user_data_64: bigint
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* See [user_data_32](https://docs.tigerbeetle.com/reference/transfers/#user_data_32)
|
|
182
|
+
*/
|
|
183
|
+
user_data_32: number
|
|
164
184
|
|
|
165
185
|
/**
|
|
166
186
|
* See [timeout](https://docs.tigerbeetle.com/reference/transfers/#timeout)
|
|
167
187
|
*/
|
|
168
|
-
timeout:
|
|
188
|
+
timeout: number
|
|
169
189
|
|
|
170
190
|
/**
|
|
171
191
|
* See [ledger](https://docs.tigerbeetle.com/reference/transfers/#ledger)
|
|
@@ -182,11 +202,6 @@ export type Transfer = {
|
|
|
182
202
|
*/
|
|
183
203
|
flags: number
|
|
184
204
|
|
|
185
|
-
/**
|
|
186
|
-
* See [amount](https://docs.tigerbeetle.com/reference/transfers/#amount)
|
|
187
|
-
*/
|
|
188
|
-
amount: bigint
|
|
189
|
-
|
|
190
205
|
/**
|
|
191
206
|
* See [timestamp](https://docs.tigerbeetle.com/reference/transfers/#timestamp)
|
|
192
207
|
*/
|
|
@@ -220,14 +235,14 @@ export enum CreateAccountError {
|
|
|
220
235
|
timestamp_must_be_zero = 3,
|
|
221
236
|
|
|
222
237
|
/**
|
|
223
|
-
* See [
|
|
238
|
+
* See [reserved_field](https://docs.tigerbeetle.com/reference/operations/create_accounts#reserved_field)
|
|
224
239
|
*/
|
|
225
|
-
|
|
240
|
+
reserved_field = 4,
|
|
226
241
|
|
|
227
242
|
/**
|
|
228
|
-
* See [
|
|
243
|
+
* See [reserved_flag](https://docs.tigerbeetle.com/reference/operations/create_accounts#reserved_flag)
|
|
229
244
|
*/
|
|
230
|
-
|
|
245
|
+
reserved_flag = 5,
|
|
231
246
|
|
|
232
247
|
/**
|
|
233
248
|
* See [id_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_accounts#id_must_not_be_zero)
|
|
@@ -245,34 +260,34 @@ export enum CreateAccountError {
|
|
|
245
260
|
flags_are_mutually_exclusive = 8,
|
|
246
261
|
|
|
247
262
|
/**
|
|
248
|
-
* See [
|
|
263
|
+
* See [debits_pending_must_be_zero](https://docs.tigerbeetle.com/reference/operations/create_accounts#debits_pending_must_be_zero)
|
|
249
264
|
*/
|
|
250
|
-
|
|
265
|
+
debits_pending_must_be_zero = 9,
|
|
251
266
|
|
|
252
267
|
/**
|
|
253
|
-
* See [
|
|
268
|
+
* See [debits_posted_must_be_zero](https://docs.tigerbeetle.com/reference/operations/create_accounts#debits_posted_must_be_zero)
|
|
254
269
|
*/
|
|
255
|
-
|
|
270
|
+
debits_posted_must_be_zero = 10,
|
|
256
271
|
|
|
257
272
|
/**
|
|
258
|
-
* See [
|
|
273
|
+
* See [credits_pending_must_be_zero](https://docs.tigerbeetle.com/reference/operations/create_accounts#credits_pending_must_be_zero)
|
|
259
274
|
*/
|
|
260
|
-
|
|
275
|
+
credits_pending_must_be_zero = 11,
|
|
261
276
|
|
|
262
277
|
/**
|
|
263
|
-
* See [
|
|
278
|
+
* See [credits_posted_must_be_zero](https://docs.tigerbeetle.com/reference/operations/create_accounts#credits_posted_must_be_zero)
|
|
264
279
|
*/
|
|
265
|
-
|
|
280
|
+
credits_posted_must_be_zero = 12,
|
|
266
281
|
|
|
267
282
|
/**
|
|
268
|
-
* See [
|
|
283
|
+
* See [ledger_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_accounts#ledger_must_not_be_zero)
|
|
269
284
|
*/
|
|
270
|
-
|
|
285
|
+
ledger_must_not_be_zero = 13,
|
|
271
286
|
|
|
272
287
|
/**
|
|
273
|
-
* See [
|
|
288
|
+
* See [code_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_accounts#code_must_not_be_zero)
|
|
274
289
|
*/
|
|
275
|
-
|
|
290
|
+
code_must_not_be_zero = 14,
|
|
276
291
|
|
|
277
292
|
/**
|
|
278
293
|
* See [exists_with_different_flags](https://docs.tigerbeetle.com/reference/operations/create_accounts#exists_with_different_flags)
|
|
@@ -280,24 +295,34 @@ export enum CreateAccountError {
|
|
|
280
295
|
exists_with_different_flags = 15,
|
|
281
296
|
|
|
282
297
|
/**
|
|
283
|
-
* See [
|
|
298
|
+
* See [exists_with_different_user_data_128](https://docs.tigerbeetle.com/reference/operations/create_accounts#exists_with_different_user_data_128)
|
|
284
299
|
*/
|
|
285
|
-
|
|
300
|
+
exists_with_different_user_data_128 = 16,
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* See [exists_with_different_user_data_64](https://docs.tigerbeetle.com/reference/operations/create_accounts#exists_with_different_user_data_64)
|
|
304
|
+
*/
|
|
305
|
+
exists_with_different_user_data_64 = 17,
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* See [exists_with_different_user_data_32](https://docs.tigerbeetle.com/reference/operations/create_accounts#exists_with_different_user_data_32)
|
|
309
|
+
*/
|
|
310
|
+
exists_with_different_user_data_32 = 18,
|
|
286
311
|
|
|
287
312
|
/**
|
|
288
313
|
* See [exists_with_different_ledger](https://docs.tigerbeetle.com/reference/operations/create_accounts#exists_with_different_ledger)
|
|
289
314
|
*/
|
|
290
|
-
exists_with_different_ledger =
|
|
315
|
+
exists_with_different_ledger = 19,
|
|
291
316
|
|
|
292
317
|
/**
|
|
293
318
|
* See [exists_with_different_code](https://docs.tigerbeetle.com/reference/operations/create_accounts#exists_with_different_code)
|
|
294
319
|
*/
|
|
295
|
-
exists_with_different_code =
|
|
320
|
+
exists_with_different_code = 20,
|
|
296
321
|
|
|
297
322
|
/**
|
|
298
323
|
* See [exists](https://docs.tigerbeetle.com/reference/operations/create_accounts#exists)
|
|
299
324
|
*/
|
|
300
|
-
exists =
|
|
325
|
+
exists = 21,
|
|
301
326
|
}
|
|
302
327
|
|
|
303
328
|
|
|
@@ -331,75 +356,75 @@ export enum CreateTransferError {
|
|
|
331
356
|
*/
|
|
332
357
|
reserved_flag = 4,
|
|
333
358
|
|
|
334
|
-
/**
|
|
335
|
-
* See [reserved_field](https://docs.tigerbeetle.com/reference/operations/create_transfers#reserved_field)
|
|
336
|
-
*/
|
|
337
|
-
reserved_field = 5,
|
|
338
|
-
|
|
339
359
|
/**
|
|
340
360
|
* See [id_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#id_must_not_be_zero)
|
|
341
361
|
*/
|
|
342
|
-
id_must_not_be_zero =
|
|
362
|
+
id_must_not_be_zero = 5,
|
|
343
363
|
|
|
344
364
|
/**
|
|
345
365
|
* See [id_must_not_be_int_max](https://docs.tigerbeetle.com/reference/operations/create_transfers#id_must_not_be_int_max)
|
|
346
366
|
*/
|
|
347
|
-
id_must_not_be_int_max =
|
|
367
|
+
id_must_not_be_int_max = 6,
|
|
348
368
|
|
|
349
369
|
/**
|
|
350
370
|
* See [flags_are_mutually_exclusive](https://docs.tigerbeetle.com/reference/operations/create_transfers#flags_are_mutually_exclusive)
|
|
351
371
|
*/
|
|
352
|
-
flags_are_mutually_exclusive =
|
|
372
|
+
flags_are_mutually_exclusive = 7,
|
|
353
373
|
|
|
354
374
|
/**
|
|
355
375
|
* See [debit_account_id_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#debit_account_id_must_not_be_zero)
|
|
356
376
|
*/
|
|
357
|
-
debit_account_id_must_not_be_zero =
|
|
377
|
+
debit_account_id_must_not_be_zero = 8,
|
|
358
378
|
|
|
359
379
|
/**
|
|
360
380
|
* See [debit_account_id_must_not_be_int_max](https://docs.tigerbeetle.com/reference/operations/create_transfers#debit_account_id_must_not_be_int_max)
|
|
361
381
|
*/
|
|
362
|
-
debit_account_id_must_not_be_int_max =
|
|
382
|
+
debit_account_id_must_not_be_int_max = 9,
|
|
363
383
|
|
|
364
384
|
/**
|
|
365
385
|
* See [credit_account_id_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#credit_account_id_must_not_be_zero)
|
|
366
386
|
*/
|
|
367
|
-
credit_account_id_must_not_be_zero =
|
|
387
|
+
credit_account_id_must_not_be_zero = 10,
|
|
368
388
|
|
|
369
389
|
/**
|
|
370
390
|
* See [credit_account_id_must_not_be_int_max](https://docs.tigerbeetle.com/reference/operations/create_transfers#credit_account_id_must_not_be_int_max)
|
|
371
391
|
*/
|
|
372
|
-
credit_account_id_must_not_be_int_max =
|
|
392
|
+
credit_account_id_must_not_be_int_max = 11,
|
|
373
393
|
|
|
374
394
|
/**
|
|
375
395
|
* See [accounts_must_be_different](https://docs.tigerbeetle.com/reference/operations/create_transfers#accounts_must_be_different)
|
|
376
396
|
*/
|
|
377
|
-
accounts_must_be_different =
|
|
397
|
+
accounts_must_be_different = 12,
|
|
378
398
|
|
|
379
399
|
/**
|
|
380
400
|
* See [pending_id_must_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_id_must_be_zero)
|
|
381
401
|
*/
|
|
382
|
-
pending_id_must_be_zero =
|
|
402
|
+
pending_id_must_be_zero = 13,
|
|
383
403
|
|
|
384
404
|
/**
|
|
385
405
|
* See [pending_id_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_id_must_not_be_zero)
|
|
386
406
|
*/
|
|
387
|
-
pending_id_must_not_be_zero =
|
|
407
|
+
pending_id_must_not_be_zero = 14,
|
|
388
408
|
|
|
389
409
|
/**
|
|
390
410
|
* See [pending_id_must_not_be_int_max](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_id_must_not_be_int_max)
|
|
391
411
|
*/
|
|
392
|
-
pending_id_must_not_be_int_max =
|
|
412
|
+
pending_id_must_not_be_int_max = 15,
|
|
393
413
|
|
|
394
414
|
/**
|
|
395
415
|
* See [pending_id_must_be_different](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_id_must_be_different)
|
|
396
416
|
*/
|
|
397
|
-
pending_id_must_be_different =
|
|
417
|
+
pending_id_must_be_different = 16,
|
|
398
418
|
|
|
399
419
|
/**
|
|
400
420
|
* See [timeout_reserved_for_pending_transfer](https://docs.tigerbeetle.com/reference/operations/create_transfers#timeout_reserved_for_pending_transfer)
|
|
401
421
|
*/
|
|
402
|
-
timeout_reserved_for_pending_transfer =
|
|
422
|
+
timeout_reserved_for_pending_transfer = 17,
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* See [amount_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#amount_must_not_be_zero)
|
|
426
|
+
*/
|
|
427
|
+
amount_must_not_be_zero = 18,
|
|
403
428
|
|
|
404
429
|
/**
|
|
405
430
|
* See [ledger_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#ledger_must_not_be_zero)
|
|
@@ -411,100 +436,100 @@ export enum CreateTransferError {
|
|
|
411
436
|
*/
|
|
412
437
|
code_must_not_be_zero = 20,
|
|
413
438
|
|
|
414
|
-
/**
|
|
415
|
-
* See [amount_must_not_be_zero](https://docs.tigerbeetle.com/reference/operations/create_transfers#amount_must_not_be_zero)
|
|
416
|
-
*/
|
|
417
|
-
amount_must_not_be_zero = 21,
|
|
418
|
-
|
|
419
439
|
/**
|
|
420
440
|
* See [debit_account_not_found](https://docs.tigerbeetle.com/reference/operations/create_transfers#debit_account_not_found)
|
|
421
441
|
*/
|
|
422
|
-
debit_account_not_found =
|
|
442
|
+
debit_account_not_found = 21,
|
|
423
443
|
|
|
424
444
|
/**
|
|
425
445
|
* See [credit_account_not_found](https://docs.tigerbeetle.com/reference/operations/create_transfers#credit_account_not_found)
|
|
426
446
|
*/
|
|
427
|
-
credit_account_not_found =
|
|
447
|
+
credit_account_not_found = 22,
|
|
428
448
|
|
|
429
449
|
/**
|
|
430
450
|
* See [accounts_must_have_the_same_ledger](https://docs.tigerbeetle.com/reference/operations/create_transfers#accounts_must_have_the_same_ledger)
|
|
431
451
|
*/
|
|
432
|
-
accounts_must_have_the_same_ledger =
|
|
452
|
+
accounts_must_have_the_same_ledger = 23,
|
|
433
453
|
|
|
434
454
|
/**
|
|
435
455
|
* See [transfer_must_have_the_same_ledger_as_accounts](https://docs.tigerbeetle.com/reference/operations/create_transfers#transfer_must_have_the_same_ledger_as_accounts)
|
|
436
456
|
*/
|
|
437
|
-
transfer_must_have_the_same_ledger_as_accounts =
|
|
457
|
+
transfer_must_have_the_same_ledger_as_accounts = 24,
|
|
438
458
|
|
|
439
459
|
/**
|
|
440
460
|
* See [pending_transfer_not_found](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_not_found)
|
|
441
461
|
*/
|
|
442
|
-
pending_transfer_not_found =
|
|
462
|
+
pending_transfer_not_found = 25,
|
|
443
463
|
|
|
444
464
|
/**
|
|
445
465
|
* See [pending_transfer_not_pending](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_not_pending)
|
|
446
466
|
*/
|
|
447
|
-
pending_transfer_not_pending =
|
|
467
|
+
pending_transfer_not_pending = 26,
|
|
448
468
|
|
|
449
469
|
/**
|
|
450
470
|
* See [pending_transfer_has_different_debit_account_id](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_has_different_debit_account_id)
|
|
451
471
|
*/
|
|
452
|
-
pending_transfer_has_different_debit_account_id =
|
|
472
|
+
pending_transfer_has_different_debit_account_id = 27,
|
|
453
473
|
|
|
454
474
|
/**
|
|
455
475
|
* See [pending_transfer_has_different_credit_account_id](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_has_different_credit_account_id)
|
|
456
476
|
*/
|
|
457
|
-
pending_transfer_has_different_credit_account_id =
|
|
477
|
+
pending_transfer_has_different_credit_account_id = 28,
|
|
458
478
|
|
|
459
479
|
/**
|
|
460
480
|
* See [pending_transfer_has_different_ledger](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_has_different_ledger)
|
|
461
481
|
*/
|
|
462
|
-
pending_transfer_has_different_ledger =
|
|
482
|
+
pending_transfer_has_different_ledger = 29,
|
|
463
483
|
|
|
464
484
|
/**
|
|
465
485
|
* See [pending_transfer_has_different_code](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_has_different_code)
|
|
466
486
|
*/
|
|
467
|
-
pending_transfer_has_different_code =
|
|
487
|
+
pending_transfer_has_different_code = 30,
|
|
468
488
|
|
|
469
489
|
/**
|
|
470
490
|
* See [exceeds_pending_transfer_amount](https://docs.tigerbeetle.com/reference/operations/create_transfers#exceeds_pending_transfer_amount)
|
|
471
491
|
*/
|
|
472
|
-
exceeds_pending_transfer_amount =
|
|
492
|
+
exceeds_pending_transfer_amount = 31,
|
|
473
493
|
|
|
474
494
|
/**
|
|
475
495
|
* See [pending_transfer_has_different_amount](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_has_different_amount)
|
|
476
496
|
*/
|
|
477
|
-
pending_transfer_has_different_amount =
|
|
497
|
+
pending_transfer_has_different_amount = 32,
|
|
478
498
|
|
|
479
499
|
/**
|
|
480
500
|
* See [pending_transfer_already_posted](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_already_posted)
|
|
481
501
|
*/
|
|
482
|
-
pending_transfer_already_posted =
|
|
502
|
+
pending_transfer_already_posted = 33,
|
|
483
503
|
|
|
484
504
|
/**
|
|
485
505
|
* See [pending_transfer_already_voided](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_already_voided)
|
|
486
506
|
*/
|
|
487
|
-
pending_transfer_already_voided =
|
|
507
|
+
pending_transfer_already_voided = 34,
|
|
488
508
|
|
|
489
509
|
/**
|
|
490
510
|
* See [pending_transfer_expired](https://docs.tigerbeetle.com/reference/operations/create_transfers#pending_transfer_expired)
|
|
491
511
|
*/
|
|
492
|
-
pending_transfer_expired =
|
|
512
|
+
pending_transfer_expired = 35,
|
|
493
513
|
|
|
494
514
|
/**
|
|
495
515
|
* See [exists_with_different_flags](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_flags)
|
|
496
516
|
*/
|
|
497
|
-
exists_with_different_flags =
|
|
517
|
+
exists_with_different_flags = 36,
|
|
498
518
|
|
|
499
519
|
/**
|
|
500
520
|
* See [exists_with_different_debit_account_id](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_debit_account_id)
|
|
501
521
|
*/
|
|
502
|
-
exists_with_different_debit_account_id =
|
|
522
|
+
exists_with_different_debit_account_id = 37,
|
|
503
523
|
|
|
504
524
|
/**
|
|
505
525
|
* See [exists_with_different_credit_account_id](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_credit_account_id)
|
|
506
526
|
*/
|
|
507
|
-
exists_with_different_credit_account_id =
|
|
527
|
+
exists_with_different_credit_account_id = 38,
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* See [exists_with_different_amount](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_amount)
|
|
531
|
+
*/
|
|
532
|
+
exists_with_different_amount = 39,
|
|
508
533
|
|
|
509
534
|
/**
|
|
510
535
|
* See [exists_with_different_pending_id](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_pending_id)
|
|
@@ -512,74 +537,79 @@ export enum CreateTransferError {
|
|
|
512
537
|
exists_with_different_pending_id = 40,
|
|
513
538
|
|
|
514
539
|
/**
|
|
515
|
-
* See [
|
|
540
|
+
* See [exists_with_different_user_data_128](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_user_data_128)
|
|
516
541
|
*/
|
|
517
|
-
|
|
542
|
+
exists_with_different_user_data_128 = 41,
|
|
518
543
|
|
|
519
544
|
/**
|
|
520
|
-
* See [
|
|
545
|
+
* See [exists_with_different_user_data_64](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_user_data_64)
|
|
521
546
|
*/
|
|
522
|
-
|
|
547
|
+
exists_with_different_user_data_64 = 42,
|
|
523
548
|
|
|
524
549
|
/**
|
|
525
|
-
* See [
|
|
550
|
+
* See [exists_with_different_user_data_32](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_user_data_32)
|
|
526
551
|
*/
|
|
527
|
-
|
|
552
|
+
exists_with_different_user_data_32 = 43,
|
|
528
553
|
|
|
529
554
|
/**
|
|
530
|
-
* See [
|
|
555
|
+
* See [exists_with_different_timeout](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_timeout)
|
|
556
|
+
*/
|
|
557
|
+
exists_with_different_timeout = 44,
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* See [exists_with_different_code](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists_with_different_code)
|
|
531
561
|
*/
|
|
532
|
-
|
|
562
|
+
exists_with_different_code = 45,
|
|
533
563
|
|
|
534
564
|
/**
|
|
535
565
|
* See [exists](https://docs.tigerbeetle.com/reference/operations/create_transfers#exists)
|
|
536
566
|
*/
|
|
537
|
-
exists =
|
|
567
|
+
exists = 46,
|
|
538
568
|
|
|
539
569
|
/**
|
|
540
570
|
* See [overflows_debits_pending](https://docs.tigerbeetle.com/reference/operations/create_transfers#overflows_debits_pending)
|
|
541
571
|
*/
|
|
542
|
-
overflows_debits_pending =
|
|
572
|
+
overflows_debits_pending = 47,
|
|
543
573
|
|
|
544
574
|
/**
|
|
545
575
|
* See [overflows_credits_pending](https://docs.tigerbeetle.com/reference/operations/create_transfers#overflows_credits_pending)
|
|
546
576
|
*/
|
|
547
|
-
overflows_credits_pending =
|
|
577
|
+
overflows_credits_pending = 48,
|
|
548
578
|
|
|
549
579
|
/**
|
|
550
580
|
* See [overflows_debits_posted](https://docs.tigerbeetle.com/reference/operations/create_transfers#overflows_debits_posted)
|
|
551
581
|
*/
|
|
552
|
-
overflows_debits_posted =
|
|
582
|
+
overflows_debits_posted = 49,
|
|
553
583
|
|
|
554
584
|
/**
|
|
555
585
|
* See [overflows_credits_posted](https://docs.tigerbeetle.com/reference/operations/create_transfers#overflows_credits_posted)
|
|
556
586
|
*/
|
|
557
|
-
overflows_credits_posted =
|
|
587
|
+
overflows_credits_posted = 50,
|
|
558
588
|
|
|
559
589
|
/**
|
|
560
590
|
* See [overflows_debits](https://docs.tigerbeetle.com/reference/operations/create_transfers#overflows_debits)
|
|
561
591
|
*/
|
|
562
|
-
overflows_debits =
|
|
592
|
+
overflows_debits = 51,
|
|
563
593
|
|
|
564
594
|
/**
|
|
565
595
|
* See [overflows_credits](https://docs.tigerbeetle.com/reference/operations/create_transfers#overflows_credits)
|
|
566
596
|
*/
|
|
567
|
-
overflows_credits =
|
|
597
|
+
overflows_credits = 52,
|
|
568
598
|
|
|
569
599
|
/**
|
|
570
600
|
* See [overflows_timeout](https://docs.tigerbeetle.com/reference/operations/create_transfers#overflows_timeout)
|
|
571
601
|
*/
|
|
572
|
-
overflows_timeout =
|
|
602
|
+
overflows_timeout = 53,
|
|
573
603
|
|
|
574
604
|
/**
|
|
575
605
|
* See [exceeds_credits](https://docs.tigerbeetle.com/reference/operations/create_transfers#exceeds_credits)
|
|
576
606
|
*/
|
|
577
|
-
exceeds_credits =
|
|
607
|
+
exceeds_credits = 54,
|
|
578
608
|
|
|
579
609
|
/**
|
|
580
610
|
* See [exceeds_debits](https://docs.tigerbeetle.com/reference/operations/create_transfers#exceeds_debits)
|
|
581
611
|
*/
|
|
582
|
-
exceeds_debits =
|
|
612
|
+
exceeds_debits = 55,
|
|
583
613
|
}
|
|
584
614
|
|
|
585
615
|
export type CreateAccountsError = {
|