@develit-services/ledger 0.0.1

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.
@@ -0,0 +1,1019 @@
1
+ import { z } from 'zod';
2
+ import { D as schema } from './ledger._YlR4Uxg.mjs';
3
+ import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
4
+
5
+ declare const tables: typeof schema;
6
+
7
+ interface TSchema extends ExtractTablesWithRelations<typeof tables> {
8
+ }
9
+ type IncludeRelation<TableName extends keyof TSchema> = DBQueryConfig<'one' | 'many', boolean, TSchema, TSchema[TableName]>['with'];
10
+ type InferResultType<TableName extends keyof TSchema, With extends IncludeRelation<TableName> | undefined = undefined> = BuildQueryResult<TSchema, TSchema[TableName], {
11
+ with: With;
12
+ }>;
13
+ interface AccountSelectType extends InferSelectModel<typeof tables.account> {
14
+ }
15
+ interface AccountInsertType extends InferInsertModel<typeof tables.account> {
16
+ }
17
+ interface AccountIdentifierSelectType extends InferSelectModel<typeof tables.accountIdentifier> {
18
+ }
19
+ interface AccountIdentifierInsertType extends InferInsertModel<typeof tables.accountIdentifier> {
20
+ }
21
+ interface AccountIdentifierMappingSelectType extends InferSelectModel<typeof tables.accountIdentifierMapping> {
22
+ }
23
+ interface AccountIdentifierMappingInsertType extends InferInsertModel<typeof tables.accountIdentifierMapping> {
24
+ }
25
+ interface TransactionInsertType extends InferInsertModel<typeof tables.transaction> {
26
+ }
27
+ interface AccountWithIdentifiersSelectType extends InferResultType<'account', {
28
+ identifiers: true;
29
+ }> {
30
+ }
31
+ interface TransactionSelectType extends InferSelectModel<typeof tables.transaction> {
32
+ }
33
+
34
+ declare const createAccountInputSchema: z.ZodObject<{
35
+ name: z.ZodString;
36
+ ownerId: z.ZodString;
37
+ accountType: z.ZodEnum<{
38
+ INTERNAL: "INTERNAL";
39
+ EXTERNAL: "EXTERNAL";
40
+ NOSTRO: "NOSTRO";
41
+ TECHNICAL: "TECHNICAL";
42
+ SETTLEMENT: "SETTLEMENT";
43
+ FX: "FX";
44
+ FEE: "FEE";
45
+ REVENUE: "REVENUE";
46
+ LOSS: "LOSS";
47
+ TRANSPORT: "TRANSPORT";
48
+ HOLD: "HOLD";
49
+ SYSTEM: "SYSTEM";
50
+ TEST: "TEST";
51
+ }>;
52
+ assetType: z.ZodEnum<{
53
+ FIAT: "FIAT";
54
+ CRYPTO: "CRYPTO";
55
+ TOKEN: "TOKEN";
56
+ STOCK: "STOCK";
57
+ COMMODITY: "COMMODITY";
58
+ OTHER: "OTHER";
59
+ }>;
60
+ currency: z.ZodEnum<{
61
+ CZK: "CZK";
62
+ EUR: "EUR";
63
+ USD: "USD";
64
+ PLN: "PLN";
65
+ RON: "RON";
66
+ GBP: "GBP";
67
+ RUB: "RUB";
68
+ HUF: "HUF";
69
+ CHF: "CHF";
70
+ DKK: "DKK";
71
+ SEK: "SEK";
72
+ HRK: "HRK";
73
+ NOK: "NOK";
74
+ BGN: "BGN";
75
+ TRY: "TRY";
76
+ AUD: "AUD";
77
+ CAD: "CAD";
78
+ JPY: "JPY";
79
+ CNY: "CNY";
80
+ INR: "INR";
81
+ BRL: "BRL";
82
+ MXN: "MXN";
83
+ ZAR: "ZAR";
84
+ SGD: "SGD";
85
+ HKD: "HKD";
86
+ KRW: "KRW";
87
+ MYR: "MYR";
88
+ THB: "THB";
89
+ IDR: "IDR";
90
+ PHP: "PHP";
91
+ AED: "AED";
92
+ SAR: "SAR";
93
+ ILS: "ILS";
94
+ EGP: "EGP";
95
+ NGN: "NGN";
96
+ PKR: "PKR";
97
+ COP: "COP";
98
+ CLP: "CLP";
99
+ PEN: "PEN";
100
+ VND: "VND";
101
+ KZT: "KZT";
102
+ UAH: "UAH";
103
+ BTC: "BTC";
104
+ ETH: "ETH";
105
+ ADA: "ADA";
106
+ DOT: "DOT";
107
+ ATOM: "ATOM";
108
+ XRP: "XRP";
109
+ LTC: "LTC";
110
+ SOL: "SOL";
111
+ DOGE: "DOGE";
112
+ MATIC: "MATIC";
113
+ AVAX: "AVAX";
114
+ }>;
115
+ balanceStrategy: z.ZodEnum<{
116
+ SNAPSHOT: "SNAPSHOT";
117
+ COMPUTED: "COMPUTED";
118
+ }>;
119
+ parentAccountId: z.ZodOptional<z.ZodString>;
120
+ countryCode: z.ZodOptional<z.ZodEnum<{
121
+ AF: "AF";
122
+ AL: "AL";
123
+ DZ: "DZ";
124
+ AS: "AS";
125
+ AD: "AD";
126
+ AO: "AO";
127
+ AG: "AG";
128
+ AR: "AR";
129
+ AM: "AM";
130
+ AW: "AW";
131
+ AU: "AU";
132
+ AT: "AT";
133
+ AZ: "AZ";
134
+ BS: "BS";
135
+ BH: "BH";
136
+ BD: "BD";
137
+ BB: "BB";
138
+ BY: "BY";
139
+ BE: "BE";
140
+ BZ: "BZ";
141
+ BJ: "BJ";
142
+ BO: "BO";
143
+ BQ: "BQ";
144
+ BA: "BA";
145
+ BW: "BW";
146
+ BR: "BR";
147
+ IO: "IO";
148
+ VG: "VG";
149
+ BG: "BG";
150
+ BF: "BF";
151
+ BI: "BI";
152
+ KH: "KH";
153
+ CM: "CM";
154
+ CA: "CA";
155
+ CV: "CV";
156
+ CF: "CF";
157
+ TD: "TD";
158
+ CL: "CL";
159
+ CN: "CN";
160
+ CO: "CO";
161
+ KM: "KM";
162
+ CK: "CK";
163
+ CR: "CR";
164
+ HR: "HR";
165
+ CW: "CW";
166
+ CY: "CY";
167
+ CZ: "CZ";
168
+ CD: "CD";
169
+ DK: "DK";
170
+ DJ: "DJ";
171
+ DM: "DM";
172
+ DO: "DO";
173
+ TL: "TL";
174
+ EC: "EC";
175
+ EG: "EG";
176
+ SV: "SV";
177
+ GQ: "GQ";
178
+ ER: "ER";
179
+ EE: "EE";
180
+ ET: "ET";
181
+ FO: "FO";
182
+ FJ: "FJ";
183
+ FI: "FI";
184
+ FR: "FR";
185
+ GF: "GF";
186
+ PF: "PF";
187
+ GA: "GA";
188
+ GM: "GM";
189
+ GE: "GE";
190
+ DE: "DE";
191
+ GH: "GH";
192
+ GR: "GR";
193
+ GD: "GD";
194
+ GP: "GP";
195
+ GU: "GU";
196
+ GT: "GT";
197
+ GN: "GN";
198
+ GW: "GW";
199
+ GY: "GY";
200
+ HT: "HT";
201
+ HN: "HN";
202
+ HU: "HU";
203
+ IS: "IS";
204
+ IN: "IN";
205
+ ID: "ID";
206
+ IR: "IR";
207
+ IQ: "IQ";
208
+ IE: "IE";
209
+ IM: "IM";
210
+ IL: "IL";
211
+ IT: "IT";
212
+ CI: "CI";
213
+ JM: "JM";
214
+ JP: "JP";
215
+ JE: "JE";
216
+ JO: "JO";
217
+ KZ: "KZ";
218
+ KE: "KE";
219
+ KI: "KI";
220
+ XK: "XK";
221
+ KW: "KW";
222
+ KG: "KG";
223
+ LA: "LA";
224
+ LV: "LV";
225
+ LB: "LB";
226
+ LS: "LS";
227
+ LR: "LR";
228
+ LI: "LI";
229
+ LT: "LT";
230
+ LU: "LU";
231
+ MK: "MK";
232
+ MG: "MG";
233
+ MW: "MW";
234
+ MY: "MY";
235
+ MV: "MV";
236
+ ML: "ML";
237
+ MT: "MT";
238
+ MQ: "MQ";
239
+ MR: "MR";
240
+ MU: "MU";
241
+ MX: "MX";
242
+ FM: "FM";
243
+ MD: "MD";
244
+ MC: "MC";
245
+ MN: "MN";
246
+ ME: "ME";
247
+ MS: "MS";
248
+ MA: "MA";
249
+ MZ: "MZ";
250
+ NA: "NA";
251
+ NP: "NP";
252
+ NL: "NL";
253
+ NZ: "NZ";
254
+ NI: "NI";
255
+ NE: "NE";
256
+ NG: "NG";
257
+ NU: "NU";
258
+ NF: "NF";
259
+ KP: "KP";
260
+ NO: "NO";
261
+ OM: "OM";
262
+ PK: "PK";
263
+ PS: "PS";
264
+ PA: "PA";
265
+ PG: "PG";
266
+ PY: "PY";
267
+ PE: "PE";
268
+ PH: "PH";
269
+ PL: "PL";
270
+ PT: "PT";
271
+ PR: "PR";
272
+ QA: "QA";
273
+ CG: "CG";
274
+ RE: "RE";
275
+ RO: "RO";
276
+ RU: "RU";
277
+ RW: "RW";
278
+ BL: "BL";
279
+ KN: "KN";
280
+ LC: "LC";
281
+ MF: "MF";
282
+ VC: "VC";
283
+ WS: "WS";
284
+ SM: "SM";
285
+ SA: "SA";
286
+ SN: "SN";
287
+ RS: "RS";
288
+ SC: "SC";
289
+ SL: "SL";
290
+ SG: "SG";
291
+ SX: "SX";
292
+ SK: "SK";
293
+ SI: "SI";
294
+ SO: "SO";
295
+ ZA: "ZA";
296
+ KR: "KR";
297
+ SS: "SS";
298
+ ES: "ES";
299
+ LK: "LK";
300
+ SD: "SD";
301
+ SR: "SR";
302
+ SJ: "SJ";
303
+ SZ: "SZ";
304
+ SE: "SE";
305
+ CH: "CH";
306
+ TW: "TW";
307
+ TJ: "TJ";
308
+ TZ: "TZ";
309
+ TH: "TH";
310
+ TG: "TG";
311
+ TO: "TO";
312
+ TT: "TT";
313
+ TN: "TN";
314
+ TR: "TR";
315
+ TM: "TM";
316
+ UM: "UM";
317
+ VI: "VI";
318
+ UG: "UG";
319
+ UA: "UA";
320
+ AE: "AE";
321
+ GB: "GB";
322
+ UZ: "UZ";
323
+ VU: "VU";
324
+ VE: "VE";
325
+ VN: "VN";
326
+ WF: "WF";
327
+ EH: "EH";
328
+ YE: "YE";
329
+ ZM: "ZM";
330
+ ZW: "ZW";
331
+ }>>;
332
+ identifier: z.ZodOptional<z.ZodObject<{
333
+ kind: z.ZodEnum<{
334
+ SWIFT: "SWIFT";
335
+ IBAN: "IBAN";
336
+ LOCAL_CZ: "LOCAL_CZ";
337
+ CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
338
+ }>;
339
+ iban: z.ZodOptional<z.ZodString>;
340
+ accountNumber: z.ZodOptional<z.ZodString>;
341
+ bankCode: z.ZodOptional<z.ZodEnum<{
342
+ 5051: "5051";
343
+ "0100": "0100";
344
+ "0300": "0300";
345
+ "0600": "0600";
346
+ "0710": "0710";
347
+ "0800": "0800";
348
+ 2010: "2010";
349
+ 2060: "2060";
350
+ 2070: "2070";
351
+ 2100: "2100";
352
+ 2200: "2200";
353
+ 2220: "2220";
354
+ 2250: "2250";
355
+ 2260: "2260";
356
+ 2600: "2600";
357
+ 2700: "2700";
358
+ 3030: "3030";
359
+ 3060: "3060";
360
+ 3500: "3500";
361
+ 4300: "4300";
362
+ 5500: "5500";
363
+ 5800: "5800";
364
+ 6000: "6000";
365
+ 6200: "6200";
366
+ 6210: "6210";
367
+ 6300: "6300";
368
+ 6363: "6363";
369
+ 6700: "6700";
370
+ 6800: "6800";
371
+ 7910: "7910";
372
+ 7950: "7950";
373
+ 7960: "7960";
374
+ 7970: "7970";
375
+ 7990: "7990";
376
+ 8030: "8030";
377
+ 8040: "8040";
378
+ 8060: "8060";
379
+ 8090: "8090";
380
+ 8150: "8150";
381
+ 8190: "8190";
382
+ 8198: "8198";
383
+ 8220: "8220";
384
+ 8250: "8250";
385
+ 8255: "8255";
386
+ 8265: "8265";
387
+ 8500: "8500";
388
+ }>>;
389
+ prefix: z.ZodOptional<z.ZodString>;
390
+ swift: z.ZodOptional<z.ZodString>;
391
+ cryptoAddress: z.ZodOptional<z.ZodString>;
392
+ label: z.ZodOptional<z.ZodString>;
393
+ holderName: z.ZodString;
394
+ }, z.core.$strip>>;
395
+ }, z.core.$strip>;
396
+ interface CreateAccountInput extends z.infer<typeof createAccountInputSchema> {
397
+ }
398
+ interface CreateAccountOutput {
399
+ account: AccountSelectType;
400
+ identifier?: AccountIdentifierSelectType;
401
+ }
402
+
403
+ declare const createTransactionInputSchema: z.ZodObject<{
404
+ correlationId: z.ZodString;
405
+ referenceType: z.ZodEnum<{
406
+ PAYMENT: "PAYMENT";
407
+ EXCHANGE: "EXCHANGE";
408
+ ORDER: "ORDER";
409
+ }>;
410
+ referenceId: z.ZodOptional<z.ZodString>;
411
+ type: z.ZodEnum<{
412
+ EXCHANGE: "EXCHANGE";
413
+ CLIENT_FUND_IN: "CLIENT_FUND_IN";
414
+ CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
415
+ PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
416
+ PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
417
+ UNMATCHED: "UNMATCHED";
418
+ ADJUSTMENT: "ADJUSTMENT";
419
+ TRANSFER: "TRANSFER";
420
+ }>;
421
+ description: z.ZodOptional<z.ZodString>;
422
+ paymentId: z.ZodOptional<z.ZodString>;
423
+ metadata: z.ZodDefault<z.ZodOptional<z.ZodObject<{
424
+ rejectImbalanced: z.ZodOptional<z.ZodBoolean>;
425
+ allowPartialFailure: z.ZodOptional<z.ZodBoolean>;
426
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
427
+ note: z.ZodOptional<z.ZodString>;
428
+ payment: z.ZodOptional<z.ZodObject<{
429
+ vs: z.ZodOptional<z.ZodString>;
430
+ ss: z.ZodOptional<z.ZodString>;
431
+ ks: z.ZodOptional<z.ZodString>;
432
+ message: z.ZodOptional<z.ZodString>;
433
+ reference: z.ZodOptional<z.ZodString>;
434
+ creditor: z.ZodOptional<z.ZodObject<{
435
+ id: z.ZodOptional<z.ZodString>;
436
+ number: z.ZodOptional<z.ZodString>;
437
+ bankCode: z.ZodOptional<z.ZodEnum<{
438
+ 5051: "5051";
439
+ "0100": "0100";
440
+ "0300": "0300";
441
+ "0600": "0600";
442
+ "0710": "0710";
443
+ "0800": "0800";
444
+ 2010: "2010";
445
+ 2060: "2060";
446
+ 2070: "2070";
447
+ 2100: "2100";
448
+ 2200: "2200";
449
+ 2220: "2220";
450
+ 2250: "2250";
451
+ 2260: "2260";
452
+ 2600: "2600";
453
+ 2700: "2700";
454
+ 3030: "3030";
455
+ 3060: "3060";
456
+ 3500: "3500";
457
+ 4300: "4300";
458
+ 5500: "5500";
459
+ 5800: "5800";
460
+ 6000: "6000";
461
+ 6200: "6200";
462
+ 6210: "6210";
463
+ 6300: "6300";
464
+ 6363: "6363";
465
+ 6700: "6700";
466
+ 6800: "6800";
467
+ 7910: "7910";
468
+ 7950: "7950";
469
+ 7960: "7960";
470
+ 7970: "7970";
471
+ 7990: "7990";
472
+ 8030: "8030";
473
+ 8040: "8040";
474
+ 8060: "8060";
475
+ 8090: "8090";
476
+ 8150: "8150";
477
+ 8190: "8190";
478
+ 8198: "8198";
479
+ 8220: "8220";
480
+ 8250: "8250";
481
+ 8255: "8255";
482
+ 8265: "8265";
483
+ 8500: "8500";
484
+ }>>;
485
+ holderName: z.ZodOptional<z.ZodString>;
486
+ iban: z.ZodOptional<z.ZodString>;
487
+ address: z.ZodOptional<z.ZodString>;
488
+ swiftBic: z.ZodOptional<z.ZodString>;
489
+ bicCor: z.ZodOptional<z.ZodString>;
490
+ }, z.core.$strip>>;
491
+ debtor: z.ZodOptional<z.ZodObject<{
492
+ id: z.ZodOptional<z.ZodString>;
493
+ number: z.ZodOptional<z.ZodString>;
494
+ bankCode: z.ZodOptional<z.ZodEnum<{
495
+ 5051: "5051";
496
+ "0100": "0100";
497
+ "0300": "0300";
498
+ "0600": "0600";
499
+ "0710": "0710";
500
+ "0800": "0800";
501
+ 2010: "2010";
502
+ 2060: "2060";
503
+ 2070: "2070";
504
+ 2100: "2100";
505
+ 2200: "2200";
506
+ 2220: "2220";
507
+ 2250: "2250";
508
+ 2260: "2260";
509
+ 2600: "2600";
510
+ 2700: "2700";
511
+ 3030: "3030";
512
+ 3060: "3060";
513
+ 3500: "3500";
514
+ 4300: "4300";
515
+ 5500: "5500";
516
+ 5800: "5800";
517
+ 6000: "6000";
518
+ 6200: "6200";
519
+ 6210: "6210";
520
+ 6300: "6300";
521
+ 6363: "6363";
522
+ 6700: "6700";
523
+ 6800: "6800";
524
+ 7910: "7910";
525
+ 7950: "7950";
526
+ 7960: "7960";
527
+ 7970: "7970";
528
+ 7990: "7990";
529
+ 8030: "8030";
530
+ 8040: "8040";
531
+ 8060: "8060";
532
+ 8090: "8090";
533
+ 8150: "8150";
534
+ 8190: "8190";
535
+ 8198: "8198";
536
+ 8220: "8220";
537
+ 8250: "8250";
538
+ 8255: "8255";
539
+ 8265: "8265";
540
+ 8500: "8500";
541
+ }>>;
542
+ holderName: z.ZodOptional<z.ZodString>;
543
+ iban: z.ZodOptional<z.ZodString>;
544
+ address: z.ZodOptional<z.ZodString>;
545
+ swiftBic: z.ZodOptional<z.ZodString>;
546
+ bicCor: z.ZodOptional<z.ZodString>;
547
+ }, z.core.$strip>>;
548
+ executionDate: z.ZodOptional<z.ZodString>;
549
+ currency: z.ZodOptional<z.ZodEnum<{
550
+ CZK: "CZK";
551
+ EUR: "EUR";
552
+ USD: "USD";
553
+ PLN: "PLN";
554
+ RON: "RON";
555
+ GBP: "GBP";
556
+ RUB: "RUB";
557
+ HUF: "HUF";
558
+ CHF: "CHF";
559
+ DKK: "DKK";
560
+ SEK: "SEK";
561
+ HRK: "HRK";
562
+ NOK: "NOK";
563
+ BGN: "BGN";
564
+ TRY: "TRY";
565
+ AUD: "AUD";
566
+ CAD: "CAD";
567
+ JPY: "JPY";
568
+ CNY: "CNY";
569
+ INR: "INR";
570
+ BRL: "BRL";
571
+ MXN: "MXN";
572
+ ZAR: "ZAR";
573
+ SGD: "SGD";
574
+ HKD: "HKD";
575
+ KRW: "KRW";
576
+ MYR: "MYR";
577
+ THB: "THB";
578
+ IDR: "IDR";
579
+ PHP: "PHP";
580
+ AED: "AED";
581
+ SAR: "SAR";
582
+ ILS: "ILS";
583
+ EGP: "EGP";
584
+ NGN: "NGN";
585
+ PKR: "PKR";
586
+ COP: "COP";
587
+ CLP: "CLP";
588
+ PEN: "PEN";
589
+ VND: "VND";
590
+ KZT: "KZT";
591
+ UAH: "UAH";
592
+ BTC: "BTC";
593
+ ETH: "ETH";
594
+ ADA: "ADA";
595
+ DOT: "DOT";
596
+ ATOM: "ATOM";
597
+ XRP: "XRP";
598
+ LTC: "LTC";
599
+ SOL: "SOL";
600
+ DOGE: "DOGE";
601
+ MATIC: "MATIC";
602
+ AVAX: "AVAX";
603
+ }>>;
604
+ amount: z.ZodOptional<z.ZodNumber>;
605
+ paymentChargeType: z.ZodOptional<z.ZodString>;
606
+ }, z.core.$strip>>;
607
+ }, z.core.$catchall<z.ZodUnknown>>>>;
608
+ status: z.ZodEnum<{
609
+ FAILED: "FAILED";
610
+ COMPLETED: "COMPLETED";
611
+ WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
612
+ PAUSED: "PAUSED";
613
+ WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
614
+ MATCHED: "MATCHED";
615
+ RETURNING: "RETURNING";
616
+ RETURNED: "RETURNED";
617
+ CANCELLED: "CANCELLED";
618
+ }>;
619
+ }, z.core.$strip>;
620
+ interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
621
+ }
622
+ interface CreateTransactionOutput {
623
+ transaction: TransactionSelectType;
624
+ }
625
+
626
+ declare const deleteAccountInputSchema: z.ZodObject<{
627
+ accountId: z.ZodUUID;
628
+ }, z.core.$strip>;
629
+ interface DeleteAccountInput extends z.infer<typeof deleteAccountInputSchema> {
630
+ }
631
+ interface DeleteAccountOutput {
632
+ }
633
+
634
+ declare const findAccountByIdentifierInputSchema: z.ZodObject<{
635
+ iban: z.ZodOptional<z.ZodString>;
636
+ accountNumber: z.ZodOptional<z.ZodString>;
637
+ bankCode: z.ZodOptional<z.ZodEnum<{
638
+ 5051: "5051";
639
+ "0100": "0100";
640
+ "0300": "0300";
641
+ "0600": "0600";
642
+ "0710": "0710";
643
+ "0800": "0800";
644
+ 2010: "2010";
645
+ 2060: "2060";
646
+ 2070: "2070";
647
+ 2100: "2100";
648
+ 2200: "2200";
649
+ 2220: "2220";
650
+ 2250: "2250";
651
+ 2260: "2260";
652
+ 2600: "2600";
653
+ 2700: "2700";
654
+ 3030: "3030";
655
+ 3060: "3060";
656
+ 3500: "3500";
657
+ 4300: "4300";
658
+ 5500: "5500";
659
+ 5800: "5800";
660
+ 6000: "6000";
661
+ 6200: "6200";
662
+ 6210: "6210";
663
+ 6300: "6300";
664
+ 6363: "6363";
665
+ 6700: "6700";
666
+ 6800: "6800";
667
+ 7910: "7910";
668
+ 7950: "7950";
669
+ 7960: "7960";
670
+ 7970: "7970";
671
+ 7990: "7990";
672
+ 8030: "8030";
673
+ 8040: "8040";
674
+ 8060: "8060";
675
+ 8090: "8090";
676
+ 8150: "8150";
677
+ 8190: "8190";
678
+ 8198: "8198";
679
+ 8220: "8220";
680
+ 8250: "8250";
681
+ 8255: "8255";
682
+ 8265: "8265";
683
+ 8500: "8500";
684
+ }>>;
685
+ swift: z.ZodOptional<z.ZodString>;
686
+ cryptoAddress: z.ZodOptional<z.ZodString>;
687
+ }, z.core.$strip>;
688
+ interface FindAccountByIdentifierInput extends z.infer<typeof findAccountByIdentifierInputSchema> {
689
+ }
690
+ interface FindAccountByIdentifierOutput extends AccountWithIdentifiersSelectType {
691
+ }
692
+
693
+ declare const getAccountInputSchema: z.ZodObject<{
694
+ accountId: z.ZodUUID;
695
+ }, z.core.$strip>;
696
+ interface GetAccountInput extends z.infer<typeof getAccountInputSchema> {
697
+ }
698
+ interface GetAccountOutput extends AccountWithIdentifiersSelectType {
699
+ }
700
+
701
+ declare const getAccountBalanceInputSchema: z.ZodObject<{
702
+ accountId: z.ZodUUID;
703
+ }, z.core.$strip>;
704
+ interface GetAccountBalanceInput extends z.infer<typeof getAccountBalanceInputSchema> {
705
+ }
706
+ interface GetAccountBalanceOutput {
707
+ balance: number;
708
+ }
709
+
710
+ declare const getAccountIdentifierInputSchema: z.ZodObject<{
711
+ identifierId: z.ZodUUID;
712
+ }, z.core.$strip>;
713
+ interface GetAccountIdentifierInput extends z.infer<typeof getAccountIdentifierInputSchema> {
714
+ }
715
+ interface GetAccountIdentifierOutput extends AccountIdentifierSelectType {
716
+ }
717
+
718
+ declare const getAccountsByOwnerInputSchema: z.ZodObject<{
719
+ ownerId: z.ZodString;
720
+ }, z.core.$strip>;
721
+ interface GetAccountsByOwnerInput extends z.infer<typeof getAccountsByOwnerInputSchema> {
722
+ }
723
+ interface GetAccountsByOwnerOutput extends Array<AccountSelectType> {
724
+ }
725
+
726
+ declare const listAccountIdentifiersInputSchema: z.ZodObject<{
727
+ accountId: z.ZodUUID;
728
+ }, z.core.$strip>;
729
+ interface ListAccountIdentifiersInput extends z.infer<typeof listAccountIdentifiersInputSchema> {
730
+ }
731
+ interface ListAccountIdentifiersOutput extends Array<AccountIdentifierSelectType> {
732
+ }
733
+
734
+ declare const listAccountsInputSchema: z.ZodObject<{
735
+ ownerId: z.ZodOptional<z.ZodString>;
736
+ accountType: z.ZodOptional<z.ZodEnum<{
737
+ INTERNAL: "INTERNAL";
738
+ EXTERNAL: "EXTERNAL";
739
+ NOSTRO: "NOSTRO";
740
+ TECHNICAL: "TECHNICAL";
741
+ SETTLEMENT: "SETTLEMENT";
742
+ FX: "FX";
743
+ FEE: "FEE";
744
+ REVENUE: "REVENUE";
745
+ LOSS: "LOSS";
746
+ TRANSPORT: "TRANSPORT";
747
+ HOLD: "HOLD";
748
+ SYSTEM: "SYSTEM";
749
+ TEST: "TEST";
750
+ }>>;
751
+ assetType: z.ZodOptional<z.ZodEnum<{
752
+ FIAT: "FIAT";
753
+ CRYPTO: "CRYPTO";
754
+ TOKEN: "TOKEN";
755
+ STOCK: "STOCK";
756
+ COMMODITY: "COMMODITY";
757
+ OTHER: "OTHER";
758
+ }>>;
759
+ currency: z.ZodOptional<z.ZodEnum<{
760
+ CZK: "CZK";
761
+ EUR: "EUR";
762
+ USD: "USD";
763
+ PLN: "PLN";
764
+ RON: "RON";
765
+ GBP: "GBP";
766
+ RUB: "RUB";
767
+ HUF: "HUF";
768
+ CHF: "CHF";
769
+ DKK: "DKK";
770
+ SEK: "SEK";
771
+ HRK: "HRK";
772
+ NOK: "NOK";
773
+ BGN: "BGN";
774
+ TRY: "TRY";
775
+ AUD: "AUD";
776
+ CAD: "CAD";
777
+ JPY: "JPY";
778
+ CNY: "CNY";
779
+ INR: "INR";
780
+ BRL: "BRL";
781
+ MXN: "MXN";
782
+ ZAR: "ZAR";
783
+ SGD: "SGD";
784
+ HKD: "HKD";
785
+ KRW: "KRW";
786
+ MYR: "MYR";
787
+ THB: "THB";
788
+ IDR: "IDR";
789
+ PHP: "PHP";
790
+ AED: "AED";
791
+ SAR: "SAR";
792
+ ILS: "ILS";
793
+ EGP: "EGP";
794
+ NGN: "NGN";
795
+ PKR: "PKR";
796
+ COP: "COP";
797
+ CLP: "CLP";
798
+ PEN: "PEN";
799
+ VND: "VND";
800
+ KZT: "KZT";
801
+ UAH: "UAH";
802
+ BTC: "BTC";
803
+ ETH: "ETH";
804
+ ADA: "ADA";
805
+ DOT: "DOT";
806
+ ATOM: "ATOM";
807
+ XRP: "XRP";
808
+ LTC: "LTC";
809
+ SOL: "SOL";
810
+ DOGE: "DOGE";
811
+ MATIC: "MATIC";
812
+ AVAX: "AVAX";
813
+ }>>;
814
+ parentAccountId: z.ZodOptional<z.ZodString>;
815
+ limit: z.ZodDefault<z.ZodNumber>;
816
+ offset: z.ZodDefault<z.ZodNumber>;
817
+ }, z.core.$strip>;
818
+ interface ListAccountsInput extends z.infer<typeof listAccountsInputSchema> {
819
+ }
820
+ interface ListAccountsOutput {
821
+ accounts: AccountSelectType[];
822
+ total: number;
823
+ limit: number;
824
+ offset: number;
825
+ }
826
+
827
+ declare const updateAccountInputSchema: z.ZodObject<{
828
+ accountId: z.ZodUUID;
829
+ name: z.ZodOptional<z.ZodString>;
830
+ accountType: z.ZodOptional<z.ZodEnum<{
831
+ INTERNAL: "INTERNAL";
832
+ EXTERNAL: "EXTERNAL";
833
+ NOSTRO: "NOSTRO";
834
+ TECHNICAL: "TECHNICAL";
835
+ SETTLEMENT: "SETTLEMENT";
836
+ FX: "FX";
837
+ FEE: "FEE";
838
+ REVENUE: "REVENUE";
839
+ LOSS: "LOSS";
840
+ TRANSPORT: "TRANSPORT";
841
+ HOLD: "HOLD";
842
+ SYSTEM: "SYSTEM";
843
+ TEST: "TEST";
844
+ }>>;
845
+ assetType: z.ZodOptional<z.ZodEnum<{
846
+ FIAT: "FIAT";
847
+ CRYPTO: "CRYPTO";
848
+ TOKEN: "TOKEN";
849
+ STOCK: "STOCK";
850
+ COMMODITY: "COMMODITY";
851
+ OTHER: "OTHER";
852
+ }>>;
853
+ currency: z.ZodOptional<z.ZodEnum<{
854
+ CZK: "CZK";
855
+ EUR: "EUR";
856
+ USD: "USD";
857
+ PLN: "PLN";
858
+ RON: "RON";
859
+ GBP: "GBP";
860
+ RUB: "RUB";
861
+ HUF: "HUF";
862
+ CHF: "CHF";
863
+ DKK: "DKK";
864
+ SEK: "SEK";
865
+ HRK: "HRK";
866
+ NOK: "NOK";
867
+ BGN: "BGN";
868
+ TRY: "TRY";
869
+ AUD: "AUD";
870
+ CAD: "CAD";
871
+ JPY: "JPY";
872
+ CNY: "CNY";
873
+ INR: "INR";
874
+ BRL: "BRL";
875
+ MXN: "MXN";
876
+ ZAR: "ZAR";
877
+ SGD: "SGD";
878
+ HKD: "HKD";
879
+ KRW: "KRW";
880
+ MYR: "MYR";
881
+ THB: "THB";
882
+ IDR: "IDR";
883
+ PHP: "PHP";
884
+ AED: "AED";
885
+ SAR: "SAR";
886
+ ILS: "ILS";
887
+ EGP: "EGP";
888
+ NGN: "NGN";
889
+ PKR: "PKR";
890
+ COP: "COP";
891
+ CLP: "CLP";
892
+ PEN: "PEN";
893
+ VND: "VND";
894
+ KZT: "KZT";
895
+ UAH: "UAH";
896
+ BTC: "BTC";
897
+ ETH: "ETH";
898
+ ADA: "ADA";
899
+ DOT: "DOT";
900
+ ATOM: "ATOM";
901
+ XRP: "XRP";
902
+ LTC: "LTC";
903
+ SOL: "SOL";
904
+ DOGE: "DOGE";
905
+ MATIC: "MATIC";
906
+ AVAX: "AVAX";
907
+ }>>;
908
+ balanceStrategy: z.ZodOptional<z.ZodEnum<{
909
+ SNAPSHOT: "SNAPSHOT";
910
+ COMPUTED: "COMPUTED";
911
+ }>>;
912
+ parentAccountId: z.ZodOptional<z.ZodString>;
913
+ }, z.core.$strip>;
914
+ interface UpdateAccountInput extends z.infer<typeof updateAccountInputSchema> {
915
+ }
916
+ interface UpdateAccountOutput extends AccountSelectType {
917
+ }
918
+
919
+ declare const updateTransactionInputSchema: z.ZodObject<{
920
+ transactionId: z.ZodUUID;
921
+ status: z.ZodEnum<{
922
+ FAILED: "FAILED";
923
+ COMPLETED: "COMPLETED";
924
+ WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
925
+ PAUSED: "PAUSED";
926
+ WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
927
+ MATCHED: "MATCHED";
928
+ RETURNING: "RETURNING";
929
+ RETURNED: "RETURNED";
930
+ CANCELLED: "CANCELLED";
931
+ }>;
932
+ completedAt: z.ZodOptional<z.ZodDate>;
933
+ }, z.core.$strip>;
934
+ interface UpdateTransactionInput extends z.infer<typeof updateTransactionInputSchema> {
935
+ }
936
+ interface UpdateTransactionOutput extends TransactionSelectType {
937
+ }
938
+
939
+ declare const getTransactionByIdInputSchema: z.ZodObject<{
940
+ id: z.ZodUUID;
941
+ }, z.core.$strip>;
942
+ interface GetTransactionByIdInput extends z.infer<typeof getTransactionByIdInputSchema> {
943
+ }
944
+ interface GetTransactionByIdOutput extends TransactionSelectType {
945
+ }
946
+
947
+ declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
948
+ referenceType: z.ZodEnum<{
949
+ PAYMENT: "PAYMENT";
950
+ EXCHANGE: "EXCHANGE";
951
+ ORDER: "ORDER";
952
+ }>;
953
+ referenceId: z.ZodUUID;
954
+ }, z.core.$strip>;
955
+ interface GetTransactionsByIdReferenceInput extends z.infer<typeof getTransactionsByReferenceIdInputSchema> {
956
+ }
957
+ interface GetTransactionsByReferenceIdOutput extends Array<TransactionSelectType> {
958
+ }
959
+
960
+ declare const getTransactionsInputSchema: z.ZodObject<{
961
+ page: z.ZodNumber;
962
+ limit: z.ZodNumber;
963
+ sort: z.ZodObject<{
964
+ column: z.ZodString;
965
+ direction: z.ZodEnum<{
966
+ asc: "asc";
967
+ desc: "desc";
968
+ }>;
969
+ }, z.core.$strip>;
970
+ filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
971
+ filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
972
+ PAYMENT: "PAYMENT";
973
+ EXCHANGE: "EXCHANGE";
974
+ ORDER: "ORDER";
975
+ }>>;
976
+ filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
977
+ filterTransactionType: z.ZodOptional<z.ZodEnum<{
978
+ EXCHANGE: "EXCHANGE";
979
+ CLIENT_FUND_IN: "CLIENT_FUND_IN";
980
+ CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
981
+ PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
982
+ PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
983
+ UNMATCHED: "UNMATCHED";
984
+ ADJUSTMENT: "ADJUSTMENT";
985
+ TRANSFER: "TRANSFER";
986
+ }>>;
987
+ filterTransactionDescription: z.ZodOptional<z.ZodString>;
988
+ filterTransactionDateFrom: z.ZodOptional<z.ZodDate>;
989
+ filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
990
+ filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
991
+ filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
992
+ FAILED: "FAILED";
993
+ COMPLETED: "COMPLETED";
994
+ WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
995
+ PAUSED: "PAUSED";
996
+ WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
997
+ MATCHED: "MATCHED";
998
+ RETURNING: "RETURNING";
999
+ RETURNED: "RETURNED";
1000
+ CANCELLED: "CANCELLED";
1001
+ }>>;
1002
+ search: z.ZodOptional<z.ZodString>;
1003
+ }, z.core.$strip>;
1004
+ interface GetTransactionsInput extends z.input<typeof getTransactionsInputSchema> {
1005
+ }
1006
+ interface GetTransactionsOutput {
1007
+ transactions: TransactionSelectType[];
1008
+ totalCount: number;
1009
+ }
1010
+
1011
+ declare const updateTransactionConfirmationSentAtInputSchema: z.ZodObject<{
1012
+ transactionId: z.ZodUUID;
1013
+ }, z.core.$strip>;
1014
+ interface UpdateTransactionConfirmationSentAtInput extends z.input<typeof updateTransactionConfirmationSentAtInputSchema> {
1015
+ }
1016
+ type UpdateTransactionConfirmationSentAtOutput = void;
1017
+
1018
+ export { listAccountsInputSchema as $, createAccountInputSchema as Q, createTransactionInputSchema as R, deleteAccountInputSchema as S, findAccountByIdentifierInputSchema as V, getAccountInputSchema as W, getAccountBalanceInputSchema as X, getAccountIdentifierInputSchema as Y, getAccountsByOwnerInputSchema as Z, listAccountIdentifiersInputSchema as _, updateAccountInputSchema as a0, updateTransactionInputSchema as a1, getTransactionByIdInputSchema as a2, getTransactionsByReferenceIdInputSchema as a3, getTransactionsInputSchema as a4, updateTransactionConfirmationSentAtInputSchema as a5, tables as t };
1019
+ export type { UpdateTransactionConfirmationSentAtOutput as A, InferResultType as B, CreateTransactionInput as C, DeleteAccountInput as D, AccountSelectType as E, FindAccountByIdentifierInput as F, GetTransactionByIdInput as G, AccountInsertType as H, IncludeRelation as I, AccountIdentifierSelectType as J, AccountIdentifierInsertType as K, ListAccountsInput as L, AccountIdentifierMappingSelectType as M, AccountIdentifierMappingInsertType as N, TransactionInsertType as O, AccountWithIdentifiersSelectType as P, TransactionSelectType as T, UpdateTransactionInput as U, CreateTransactionOutput as a, UpdateTransactionOutput as b, GetTransactionByIdOutput as c, GetTransactionsByIdReferenceInput as d, GetTransactionsByReferenceIdOutput as e, GetTransactionsInput as f, GetTransactionsOutput as g, CreateAccountInput as h, CreateAccountOutput as i, UpdateAccountInput as j, UpdateAccountOutput as k, DeleteAccountOutput as l, GetAccountInput as m, GetAccountOutput as n, GetAccountsByOwnerInput as o, GetAccountsByOwnerOutput as p, ListAccountsOutput as q, GetAccountIdentifierInput as r, GetAccountIdentifierOutput as s, ListAccountIdentifiersInput as u, ListAccountIdentifiersOutput as v, FindAccountByIdentifierOutput as w, GetAccountBalanceInput as x, GetAccountBalanceOutput as y, UpdateTransactionConfirmationSentAtInput as z };