@develit-services/ledger 0.0.8 → 0.0.10

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.
@@ -1,9 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { D as schema } from './ledger.MnYNWZoo.js';
2
+ import { D as schema } from './ledger.CBwk-FaO.cjs';
3
3
  import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
4
4
 
5
- declare const tables: typeof schema;
6
-
7
5
  interface TSchema extends ExtractTablesWithRelations<typeof tables> {
8
6
  }
9
7
  type IncludeRelation<TableName extends keyof TSchema> = DBQueryConfig<'one' | 'many', boolean, TSchema, TSchema[TableName]>['with'];
@@ -331,9 +329,9 @@ declare const createAccountInputSchema: z.ZodObject<{
331
329
  }>>;
332
330
  identifier: z.ZodOptional<z.ZodObject<{
333
331
  kind: z.ZodEnum<{
332
+ SWIFT: "SWIFT";
334
333
  IBAN: "IBAN";
335
334
  LOCAL_CZ: "LOCAL_CZ";
336
- SWIFT: "SWIFT";
337
335
  CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
338
336
  }>;
339
337
  iban: z.ZodOptional<z.ZodString>;
@@ -487,6 +485,278 @@ declare const createTransactionInputSchema: z.ZodObject<{
487
485
  address: z.ZodOptional<z.ZodString>;
488
486
  swiftBic: z.ZodOptional<z.ZodString>;
489
487
  bicCor: z.ZodOptional<z.ZodString>;
488
+ currency: z.ZodOptional<z.ZodEnum<{
489
+ CZK: "CZK";
490
+ EUR: "EUR";
491
+ USD: "USD";
492
+ PLN: "PLN";
493
+ RON: "RON";
494
+ GBP: "GBP";
495
+ RUB: "RUB";
496
+ HUF: "HUF";
497
+ CHF: "CHF";
498
+ DKK: "DKK";
499
+ SEK: "SEK";
500
+ HRK: "HRK";
501
+ NOK: "NOK";
502
+ BGN: "BGN";
503
+ TRY: "TRY";
504
+ AUD: "AUD";
505
+ CAD: "CAD";
506
+ JPY: "JPY";
507
+ CNY: "CNY";
508
+ INR: "INR";
509
+ BRL: "BRL";
510
+ MXN: "MXN";
511
+ ZAR: "ZAR";
512
+ SGD: "SGD";
513
+ HKD: "HKD";
514
+ KRW: "KRW";
515
+ MYR: "MYR";
516
+ THB: "THB";
517
+ IDR: "IDR";
518
+ PHP: "PHP";
519
+ AED: "AED";
520
+ SAR: "SAR";
521
+ ILS: "ILS";
522
+ EGP: "EGP";
523
+ NGN: "NGN";
524
+ PKR: "PKR";
525
+ COP: "COP";
526
+ CLP: "CLP";
527
+ PEN: "PEN";
528
+ VND: "VND";
529
+ KZT: "KZT";
530
+ UAH: "UAH";
531
+ BTC: "BTC";
532
+ ETH: "ETH";
533
+ ADA: "ADA";
534
+ DOT: "DOT";
535
+ ATOM: "ATOM";
536
+ XRP: "XRP";
537
+ LTC: "LTC";
538
+ SOL: "SOL";
539
+ DOGE: "DOGE";
540
+ MATIC: "MATIC";
541
+ AVAX: "AVAX";
542
+ }>>;
543
+ country: z.ZodOptional<z.ZodEnum<{
544
+ EC: "EC";
545
+ AF: "AF";
546
+ AL: "AL";
547
+ DZ: "DZ";
548
+ AS: "AS";
549
+ AD: "AD";
550
+ AO: "AO";
551
+ AG: "AG";
552
+ AR: "AR";
553
+ AM: "AM";
554
+ AW: "AW";
555
+ AU: "AU";
556
+ AT: "AT";
557
+ AZ: "AZ";
558
+ BS: "BS";
559
+ BH: "BH";
560
+ BD: "BD";
561
+ BB: "BB";
562
+ BY: "BY";
563
+ BE: "BE";
564
+ BZ: "BZ";
565
+ BJ: "BJ";
566
+ BO: "BO";
567
+ BQ: "BQ";
568
+ BA: "BA";
569
+ BW: "BW";
570
+ BR: "BR";
571
+ IO: "IO";
572
+ VG: "VG";
573
+ BG: "BG";
574
+ BF: "BF";
575
+ BI: "BI";
576
+ KH: "KH";
577
+ CM: "CM";
578
+ CA: "CA";
579
+ CV: "CV";
580
+ CF: "CF";
581
+ TD: "TD";
582
+ CL: "CL";
583
+ CN: "CN";
584
+ CO: "CO";
585
+ KM: "KM";
586
+ CK: "CK";
587
+ CR: "CR";
588
+ HR: "HR";
589
+ CW: "CW";
590
+ CY: "CY";
591
+ CZ: "CZ";
592
+ CD: "CD";
593
+ DK: "DK";
594
+ DJ: "DJ";
595
+ DM: "DM";
596
+ DO: "DO";
597
+ TL: "TL";
598
+ EG: "EG";
599
+ SV: "SV";
600
+ GQ: "GQ";
601
+ ER: "ER";
602
+ EE: "EE";
603
+ ET: "ET";
604
+ FO: "FO";
605
+ FJ: "FJ";
606
+ FI: "FI";
607
+ FR: "FR";
608
+ GF: "GF";
609
+ PF: "PF";
610
+ GA: "GA";
611
+ GM: "GM";
612
+ GE: "GE";
613
+ DE: "DE";
614
+ GH: "GH";
615
+ GR: "GR";
616
+ GD: "GD";
617
+ GP: "GP";
618
+ GU: "GU";
619
+ GT: "GT";
620
+ GN: "GN";
621
+ GW: "GW";
622
+ GY: "GY";
623
+ HT: "HT";
624
+ HN: "HN";
625
+ HU: "HU";
626
+ IS: "IS";
627
+ IN: "IN";
628
+ ID: "ID";
629
+ IR: "IR";
630
+ IQ: "IQ";
631
+ IE: "IE";
632
+ IM: "IM";
633
+ IL: "IL";
634
+ IT: "IT";
635
+ CI: "CI";
636
+ JM: "JM";
637
+ JP: "JP";
638
+ JE: "JE";
639
+ JO: "JO";
640
+ KZ: "KZ";
641
+ KE: "KE";
642
+ KI: "KI";
643
+ XK: "XK";
644
+ KW: "KW";
645
+ KG: "KG";
646
+ LA: "LA";
647
+ LV: "LV";
648
+ LB: "LB";
649
+ LS: "LS";
650
+ LR: "LR";
651
+ LI: "LI";
652
+ LT: "LT";
653
+ LU: "LU";
654
+ MK: "MK";
655
+ MG: "MG";
656
+ MW: "MW";
657
+ MY: "MY";
658
+ MV: "MV";
659
+ ML: "ML";
660
+ MT: "MT";
661
+ MQ: "MQ";
662
+ MR: "MR";
663
+ MU: "MU";
664
+ MX: "MX";
665
+ FM: "FM";
666
+ MD: "MD";
667
+ MC: "MC";
668
+ MN: "MN";
669
+ ME: "ME";
670
+ MS: "MS";
671
+ MA: "MA";
672
+ MZ: "MZ";
673
+ NA: "NA";
674
+ NP: "NP";
675
+ NL: "NL";
676
+ NZ: "NZ";
677
+ NI: "NI";
678
+ NE: "NE";
679
+ NG: "NG";
680
+ NU: "NU";
681
+ NF: "NF";
682
+ KP: "KP";
683
+ NO: "NO";
684
+ OM: "OM";
685
+ PK: "PK";
686
+ PS: "PS";
687
+ PA: "PA";
688
+ PG: "PG";
689
+ PY: "PY";
690
+ PE: "PE";
691
+ PH: "PH";
692
+ PL: "PL";
693
+ PT: "PT";
694
+ PR: "PR";
695
+ QA: "QA";
696
+ CG: "CG";
697
+ RE: "RE";
698
+ RO: "RO";
699
+ RU: "RU";
700
+ RW: "RW";
701
+ BL: "BL";
702
+ KN: "KN";
703
+ LC: "LC";
704
+ MF: "MF";
705
+ VC: "VC";
706
+ WS: "WS";
707
+ SM: "SM";
708
+ SA: "SA";
709
+ SN: "SN";
710
+ RS: "RS";
711
+ SC: "SC";
712
+ SL: "SL";
713
+ SG: "SG";
714
+ SX: "SX";
715
+ SK: "SK";
716
+ SI: "SI";
717
+ SO: "SO";
718
+ ZA: "ZA";
719
+ KR: "KR";
720
+ SS: "SS";
721
+ ES: "ES";
722
+ LK: "LK";
723
+ SD: "SD";
724
+ SR: "SR";
725
+ SJ: "SJ";
726
+ SZ: "SZ";
727
+ SE: "SE";
728
+ CH: "CH";
729
+ TW: "TW";
730
+ TJ: "TJ";
731
+ TZ: "TZ";
732
+ TH: "TH";
733
+ TG: "TG";
734
+ TO: "TO";
735
+ TT: "TT";
736
+ TN: "TN";
737
+ TR: "TR";
738
+ TM: "TM";
739
+ UM: "UM";
740
+ VI: "VI";
741
+ UG: "UG";
742
+ UA: "UA";
743
+ AE: "AE";
744
+ GB: "GB";
745
+ UZ: "UZ";
746
+ VU: "VU";
747
+ VE: "VE";
748
+ VN: "VN";
749
+ WF: "WF";
750
+ EH: "EH";
751
+ YE: "YE";
752
+ ZM: "ZM";
753
+ ZW: "ZW";
754
+ }>>;
755
+ routingNumber: z.ZodOptional<z.ZodString>;
756
+ sortCode: z.ZodOptional<z.ZodString>;
757
+ clabe: z.ZodOptional<z.ZodString>;
758
+ bsb: z.ZodOptional<z.ZodString>;
759
+ brBankNumber: z.ZodOptional<z.ZodString>;
490
760
  }, z.core.$strip>>;
491
761
  debtor: z.ZodOptional<z.ZodObject<{
492
762
  id: z.ZodOptional<z.ZodString>;
@@ -544,6 +814,278 @@ declare const createTransactionInputSchema: z.ZodObject<{
544
814
  address: z.ZodOptional<z.ZodString>;
545
815
  swiftBic: z.ZodOptional<z.ZodString>;
546
816
  bicCor: z.ZodOptional<z.ZodString>;
817
+ currency: z.ZodOptional<z.ZodEnum<{
818
+ CZK: "CZK";
819
+ EUR: "EUR";
820
+ USD: "USD";
821
+ PLN: "PLN";
822
+ RON: "RON";
823
+ GBP: "GBP";
824
+ RUB: "RUB";
825
+ HUF: "HUF";
826
+ CHF: "CHF";
827
+ DKK: "DKK";
828
+ SEK: "SEK";
829
+ HRK: "HRK";
830
+ NOK: "NOK";
831
+ BGN: "BGN";
832
+ TRY: "TRY";
833
+ AUD: "AUD";
834
+ CAD: "CAD";
835
+ JPY: "JPY";
836
+ CNY: "CNY";
837
+ INR: "INR";
838
+ BRL: "BRL";
839
+ MXN: "MXN";
840
+ ZAR: "ZAR";
841
+ SGD: "SGD";
842
+ HKD: "HKD";
843
+ KRW: "KRW";
844
+ MYR: "MYR";
845
+ THB: "THB";
846
+ IDR: "IDR";
847
+ PHP: "PHP";
848
+ AED: "AED";
849
+ SAR: "SAR";
850
+ ILS: "ILS";
851
+ EGP: "EGP";
852
+ NGN: "NGN";
853
+ PKR: "PKR";
854
+ COP: "COP";
855
+ CLP: "CLP";
856
+ PEN: "PEN";
857
+ VND: "VND";
858
+ KZT: "KZT";
859
+ UAH: "UAH";
860
+ BTC: "BTC";
861
+ ETH: "ETH";
862
+ ADA: "ADA";
863
+ DOT: "DOT";
864
+ ATOM: "ATOM";
865
+ XRP: "XRP";
866
+ LTC: "LTC";
867
+ SOL: "SOL";
868
+ DOGE: "DOGE";
869
+ MATIC: "MATIC";
870
+ AVAX: "AVAX";
871
+ }>>;
872
+ country: z.ZodOptional<z.ZodEnum<{
873
+ EC: "EC";
874
+ AF: "AF";
875
+ AL: "AL";
876
+ DZ: "DZ";
877
+ AS: "AS";
878
+ AD: "AD";
879
+ AO: "AO";
880
+ AG: "AG";
881
+ AR: "AR";
882
+ AM: "AM";
883
+ AW: "AW";
884
+ AU: "AU";
885
+ AT: "AT";
886
+ AZ: "AZ";
887
+ BS: "BS";
888
+ BH: "BH";
889
+ BD: "BD";
890
+ BB: "BB";
891
+ BY: "BY";
892
+ BE: "BE";
893
+ BZ: "BZ";
894
+ BJ: "BJ";
895
+ BO: "BO";
896
+ BQ: "BQ";
897
+ BA: "BA";
898
+ BW: "BW";
899
+ BR: "BR";
900
+ IO: "IO";
901
+ VG: "VG";
902
+ BG: "BG";
903
+ BF: "BF";
904
+ BI: "BI";
905
+ KH: "KH";
906
+ CM: "CM";
907
+ CA: "CA";
908
+ CV: "CV";
909
+ CF: "CF";
910
+ TD: "TD";
911
+ CL: "CL";
912
+ CN: "CN";
913
+ CO: "CO";
914
+ KM: "KM";
915
+ CK: "CK";
916
+ CR: "CR";
917
+ HR: "HR";
918
+ CW: "CW";
919
+ CY: "CY";
920
+ CZ: "CZ";
921
+ CD: "CD";
922
+ DK: "DK";
923
+ DJ: "DJ";
924
+ DM: "DM";
925
+ DO: "DO";
926
+ TL: "TL";
927
+ EG: "EG";
928
+ SV: "SV";
929
+ GQ: "GQ";
930
+ ER: "ER";
931
+ EE: "EE";
932
+ ET: "ET";
933
+ FO: "FO";
934
+ FJ: "FJ";
935
+ FI: "FI";
936
+ FR: "FR";
937
+ GF: "GF";
938
+ PF: "PF";
939
+ GA: "GA";
940
+ GM: "GM";
941
+ GE: "GE";
942
+ DE: "DE";
943
+ GH: "GH";
944
+ GR: "GR";
945
+ GD: "GD";
946
+ GP: "GP";
947
+ GU: "GU";
948
+ GT: "GT";
949
+ GN: "GN";
950
+ GW: "GW";
951
+ GY: "GY";
952
+ HT: "HT";
953
+ HN: "HN";
954
+ HU: "HU";
955
+ IS: "IS";
956
+ IN: "IN";
957
+ ID: "ID";
958
+ IR: "IR";
959
+ IQ: "IQ";
960
+ IE: "IE";
961
+ IM: "IM";
962
+ IL: "IL";
963
+ IT: "IT";
964
+ CI: "CI";
965
+ JM: "JM";
966
+ JP: "JP";
967
+ JE: "JE";
968
+ JO: "JO";
969
+ KZ: "KZ";
970
+ KE: "KE";
971
+ KI: "KI";
972
+ XK: "XK";
973
+ KW: "KW";
974
+ KG: "KG";
975
+ LA: "LA";
976
+ LV: "LV";
977
+ LB: "LB";
978
+ LS: "LS";
979
+ LR: "LR";
980
+ LI: "LI";
981
+ LT: "LT";
982
+ LU: "LU";
983
+ MK: "MK";
984
+ MG: "MG";
985
+ MW: "MW";
986
+ MY: "MY";
987
+ MV: "MV";
988
+ ML: "ML";
989
+ MT: "MT";
990
+ MQ: "MQ";
991
+ MR: "MR";
992
+ MU: "MU";
993
+ MX: "MX";
994
+ FM: "FM";
995
+ MD: "MD";
996
+ MC: "MC";
997
+ MN: "MN";
998
+ ME: "ME";
999
+ MS: "MS";
1000
+ MA: "MA";
1001
+ MZ: "MZ";
1002
+ NA: "NA";
1003
+ NP: "NP";
1004
+ NL: "NL";
1005
+ NZ: "NZ";
1006
+ NI: "NI";
1007
+ NE: "NE";
1008
+ NG: "NG";
1009
+ NU: "NU";
1010
+ NF: "NF";
1011
+ KP: "KP";
1012
+ NO: "NO";
1013
+ OM: "OM";
1014
+ PK: "PK";
1015
+ PS: "PS";
1016
+ PA: "PA";
1017
+ PG: "PG";
1018
+ PY: "PY";
1019
+ PE: "PE";
1020
+ PH: "PH";
1021
+ PL: "PL";
1022
+ PT: "PT";
1023
+ PR: "PR";
1024
+ QA: "QA";
1025
+ CG: "CG";
1026
+ RE: "RE";
1027
+ RO: "RO";
1028
+ RU: "RU";
1029
+ RW: "RW";
1030
+ BL: "BL";
1031
+ KN: "KN";
1032
+ LC: "LC";
1033
+ MF: "MF";
1034
+ VC: "VC";
1035
+ WS: "WS";
1036
+ SM: "SM";
1037
+ SA: "SA";
1038
+ SN: "SN";
1039
+ RS: "RS";
1040
+ SC: "SC";
1041
+ SL: "SL";
1042
+ SG: "SG";
1043
+ SX: "SX";
1044
+ SK: "SK";
1045
+ SI: "SI";
1046
+ SO: "SO";
1047
+ ZA: "ZA";
1048
+ KR: "KR";
1049
+ SS: "SS";
1050
+ ES: "ES";
1051
+ LK: "LK";
1052
+ SD: "SD";
1053
+ SR: "SR";
1054
+ SJ: "SJ";
1055
+ SZ: "SZ";
1056
+ SE: "SE";
1057
+ CH: "CH";
1058
+ TW: "TW";
1059
+ TJ: "TJ";
1060
+ TZ: "TZ";
1061
+ TH: "TH";
1062
+ TG: "TG";
1063
+ TO: "TO";
1064
+ TT: "TT";
1065
+ TN: "TN";
1066
+ TR: "TR";
1067
+ TM: "TM";
1068
+ UM: "UM";
1069
+ VI: "VI";
1070
+ UG: "UG";
1071
+ UA: "UA";
1072
+ AE: "AE";
1073
+ GB: "GB";
1074
+ UZ: "UZ";
1075
+ VU: "VU";
1076
+ VE: "VE";
1077
+ VN: "VN";
1078
+ WF: "WF";
1079
+ EH: "EH";
1080
+ YE: "YE";
1081
+ ZM: "ZM";
1082
+ ZW: "ZW";
1083
+ }>>;
1084
+ routingNumber: z.ZodOptional<z.ZodString>;
1085
+ sortCode: z.ZodOptional<z.ZodString>;
1086
+ clabe: z.ZodOptional<z.ZodString>;
1087
+ bsb: z.ZodOptional<z.ZodString>;
1088
+ brBankNumber: z.ZodOptional<z.ZodString>;
547
1089
  }, z.core.$strip>>;
548
1090
  executionDate: z.ZodOptional<z.ZodString>;
549
1091
  currency: z.ZodOptional<z.ZodEnum<{
@@ -606,15 +1148,15 @@ declare const createTransactionInputSchema: z.ZodObject<{
606
1148
  }, z.core.$strip>>;
607
1149
  }, z.core.$catchall<z.ZodUnknown>>>>;
608
1150
  status: z.ZodEnum<{
1151
+ FAILED: "FAILED";
1152
+ COMPLETED: "COMPLETED";
609
1153
  WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
610
1154
  PAUSED: "PAUSED";
611
1155
  WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
612
1156
  MATCHED: "MATCHED";
613
1157
  RETURNING: "RETURNING";
614
1158
  RETURNED: "RETURNED";
615
- FAILED: "FAILED";
616
1159
  CANCELLED: "CANCELLED";
617
- COMPLETED: "COMPLETED";
618
1160
  }>;
619
1161
  }, z.core.$strip>;
620
1162
  interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
@@ -631,6 +1173,15 @@ interface DeleteAccountInput extends z.infer<typeof deleteAccountInputSchema> {
631
1173
  interface DeleteAccountOutput {
632
1174
  }
633
1175
 
1176
+ declare const failTransactionInputSchema: z.ZodObject<{
1177
+ transactionId: z.ZodUUID;
1178
+ completedAt: z.ZodOptional<z.ZodDate>;
1179
+ }, z.core.$strip>;
1180
+ interface FailTransactionInput extends z.infer<typeof failTransactionInputSchema> {
1181
+ }
1182
+ interface FailTransactionOutput extends TransactionSelectType {
1183
+ }
1184
+
634
1185
  declare const findAccountByIdentifierInputSchema: z.ZodObject<{
635
1186
  iban: z.ZodOptional<z.ZodString>;
636
1187
  accountNumber: z.ZodOptional<z.ZodString>;
@@ -723,6 +1274,78 @@ interface GetAccountsByOwnerInput extends z.infer<typeof getAccountsByOwnerInput
723
1274
  interface GetAccountsByOwnerOutput extends Array<AccountSelectType> {
724
1275
  }
725
1276
 
1277
+ declare const getTransactionByIdInputSchema: z.ZodObject<{
1278
+ id: z.ZodUUID;
1279
+ }, z.core.$strip>;
1280
+ interface GetTransactionByIdInput extends z.infer<typeof getTransactionByIdInputSchema> {
1281
+ }
1282
+ interface GetTransactionByIdOutput extends TransactionSelectType {
1283
+ }
1284
+
1285
+ declare const getTransactionsInputSchema: z.ZodObject<{
1286
+ page: z.ZodNumber;
1287
+ limit: z.ZodNumber;
1288
+ sort: z.ZodObject<{
1289
+ column: z.ZodString;
1290
+ direction: z.ZodEnum<{
1291
+ asc: "asc";
1292
+ desc: "desc";
1293
+ }>;
1294
+ }, z.core.$strip>;
1295
+ filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
1296
+ filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
1297
+ PAYMENT: "PAYMENT";
1298
+ EXCHANGE: "EXCHANGE";
1299
+ ORDER: "ORDER";
1300
+ }>>;
1301
+ filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
1302
+ filterTransactionType: z.ZodOptional<z.ZodEnum<{
1303
+ EXCHANGE: "EXCHANGE";
1304
+ CLIENT_FUND_IN: "CLIENT_FUND_IN";
1305
+ CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
1306
+ PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
1307
+ PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
1308
+ UNMATCHED: "UNMATCHED";
1309
+ ADJUSTMENT: "ADJUSTMENT";
1310
+ TRANSFER: "TRANSFER";
1311
+ }>>;
1312
+ filterTransactionDescription: z.ZodOptional<z.ZodString>;
1313
+ filterTransactionDateFrom: z.ZodOptional<z.ZodDate>;
1314
+ filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
1315
+ filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
1316
+ filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
1317
+ FAILED: "FAILED";
1318
+ COMPLETED: "COMPLETED";
1319
+ WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
1320
+ PAUSED: "PAUSED";
1321
+ WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
1322
+ MATCHED: "MATCHED";
1323
+ RETURNING: "RETURNING";
1324
+ RETURNED: "RETURNED";
1325
+ CANCELLED: "CANCELLED";
1326
+ }>>;
1327
+ search: z.ZodOptional<z.ZodString>;
1328
+ }, z.core.$strip>;
1329
+ interface GetTransactionsInput extends z.input<typeof getTransactionsInputSchema> {
1330
+ }
1331
+ interface GetTransactionsOutput {
1332
+ transactions: TransactionSelectType[];
1333
+ totalCount: number;
1334
+ }
1335
+
1336
+ declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
1337
+ referenceType: z.ZodEnum<{
1338
+ PAYMENT: "PAYMENT";
1339
+ EXCHANGE: "EXCHANGE";
1340
+ ORDER: "ORDER";
1341
+ }>;
1342
+ referenceId: z.ZodUUID;
1343
+ }, z.core.$strip>;
1344
+ interface GetTransactionsByIdReferenceInput extends z.infer<typeof getTransactionsByReferenceIdInputSchema> {
1345
+ }
1346
+ interface GetTransactionsByReferenceIdOutput extends Array<TransactionSelectType> {
1347
+ }
1348
+
726
1349
  declare const listAccountIdentifiersInputSchema: z.ZodObject<{
727
1350
  accountId: z.ZodUUID;
728
1351
  }, z.core.$strip>;
@@ -824,6 +1447,15 @@ interface ListAccountsOutput {
824
1447
  offset: number;
825
1448
  }
826
1449
 
1450
+ declare const matchTransactionInputSchema: z.ZodObject<{
1451
+ transactionId: z.ZodUUID;
1452
+ completedAt: z.ZodOptional<z.ZodDate>;
1453
+ }, z.core.$strip>;
1454
+ interface MatchTransactionInput extends z.infer<typeof matchTransactionInputSchema> {
1455
+ }
1456
+ interface MatchTransactionOutput extends TransactionSelectType {
1457
+ }
1458
+
827
1459
  declare const updateAccountInputSchema: z.ZodObject<{
828
1460
  accountId: z.ZodUUID;
829
1461
  name: z.ZodOptional<z.ZodString>;
@@ -916,98 +1548,6 @@ interface UpdateAccountInput extends z.infer<typeof updateAccountInputSchema> {
916
1548
  interface UpdateAccountOutput extends AccountSelectType {
917
1549
  }
918
1550
 
919
- declare const updateTransactionInputSchema: z.ZodObject<{
920
- transactionId: z.ZodUUID;
921
- status: z.ZodEnum<{
922
- WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
923
- PAUSED: "PAUSED";
924
- WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
925
- MATCHED: "MATCHED";
926
- RETURNING: "RETURNING";
927
- RETURNED: "RETURNED";
928
- FAILED: "FAILED";
929
- CANCELLED: "CANCELLED";
930
- COMPLETED: "COMPLETED";
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
- WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
993
- PAUSED: "PAUSED";
994
- WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
995
- MATCHED: "MATCHED";
996
- RETURNING: "RETURNING";
997
- RETURNED: "RETURNED";
998
- FAILED: "FAILED";
999
- CANCELLED: "CANCELLED";
1000
- COMPLETED: "COMPLETED";
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
1551
  declare const updateTransactionConfirmationSentAtInputSchema: z.ZodObject<{
1012
1552
  transactionId: z.ZodUUID;
1013
1553
  }, z.core.$strip>;
@@ -1015,5 +1555,7 @@ interface UpdateTransactionConfirmationSentAtInput extends z.input<typeof update
1015
1555
  }
1016
1556
  type UpdateTransactionConfirmationSentAtOutput = void;
1017
1557
 
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 };
1558
+ declare const tables: typeof schema;
1559
+
1560
+ export { getAccountIdentifierInputSchema as $, createAccountInputSchema as S, createTransactionInputSchema as V, deleteAccountInputSchema as W, failTransactionInputSchema as X, findAccountByIdentifierInputSchema as Y, getAccountInputSchema as Z, getAccountBalanceInputSchema as _, getAccountsByOwnerInputSchema as a0, getTransactionByIdInputSchema as a1, getTransactionsInputSchema as a2, getTransactionsByReferenceIdInputSchema as a3, listAccountIdentifiersInputSchema as a4, listAccountsInputSchema as a5, matchTransactionInputSchema as a6, updateAccountInputSchema as a7, updateTransactionConfirmationSentAtInputSchema as a8, tables as t };
1561
+ export type { UpdateTransactionConfirmationSentAtInput as A, UpdateTransactionConfirmationSentAtOutput as B, CreateTransactionInput as C, DeleteAccountInput as D, InferResultType as E, FailTransactionInput as F, GetTransactionByIdInput as G, AccountSelectType as H, IncludeRelation as I, AccountInsertType as J, AccountIdentifierSelectType as K, ListAccountsInput as L, MatchTransactionInput as M, AccountIdentifierInsertType as N, AccountIdentifierMappingSelectType as O, AccountIdentifierMappingInsertType as P, TransactionInsertType as Q, AccountWithIdentifiersSelectType as R, TransactionSelectType as T, UpdateAccountInput as U, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, GetTransactionByIdOutput as d, GetTransactionsByIdReferenceInput as e, GetTransactionsByReferenceIdOutput as f, GetTransactionsInput as g, GetTransactionsOutput as h, CreateAccountInput as i, CreateAccountOutput 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, FindAccountByIdentifierInput as w, FindAccountByIdentifierOutput as x, GetAccountBalanceInput as y, GetAccountBalanceOutput as z };