@develit-services/ledger 0.2.0 → 0.3.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.
Files changed (32) hide show
  1. package/dist/database/schema.cjs +2 -2
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +2 -2
  6. package/dist/export/worker.cjs +2 -2
  7. package/dist/export/worker.d.cts +2 -2
  8. package/dist/export/worker.d.mts +2 -2
  9. package/dist/export/worker.d.ts +2 -2
  10. package/dist/export/worker.mjs +2 -2
  11. package/dist/export/wrangler.d.cts +1 -1
  12. package/dist/export/wrangler.d.mts +1 -1
  13. package/dist/export/wrangler.d.ts +1 -1
  14. package/dist/shared/{ledger.X_sUCnek.mjs → ledger.149a0ags.mjs} +2 -2
  15. package/dist/shared/{ledger.BzCZUESF.cjs → ledger.B2SLAQpo.cjs} +1 -1
  16. package/dist/shared/{ledger.9Ll_cqva.d.mts → ledger.Bombc2Sm.d.ts} +19 -10
  17. package/dist/shared/{ledger.CG3rFnGr.d.cts → ledger.C63GL8Bq.d.mts} +19 -10
  18. package/dist/shared/{ledger.BChJGa5-.cjs → ledger.C6xAPWKq.cjs} +7 -2
  19. package/dist/shared/{ledger.Vn3IgETm.d.ts → ledger.CeePJr7h.d.cts} +19 -10
  20. package/dist/shared/{ledger.Bo3kdRvg.d.ts → ledger.Ci2NnLFo.d.cts} +43 -295
  21. package/dist/shared/{ledger.Bo3kdRvg.d.cts → ledger.Ci2NnLFo.d.mts} +43 -295
  22. package/dist/shared/{ledger.Bo3kdRvg.d.mts → ledger.Ci2NnLFo.d.ts} +43 -295
  23. package/dist/shared/{ledger._BGfS_Xc.mjs → ledger.DkcYdsVZ.mjs} +8 -3
  24. package/dist/shared/{ledger.Ce2yPDUS.d.cts → ledger.VQWxyeV6.d.cts} +1 -1
  25. package/dist/shared/{ledger.Ce2yPDUS.d.mts → ledger.VQWxyeV6.d.mts} +1 -1
  26. package/dist/shared/{ledger.Ce2yPDUS.d.ts → ledger.VQWxyeV6.d.ts} +1 -1
  27. package/dist/types.cjs +1 -1
  28. package/dist/types.d.cts +4 -4
  29. package/dist/types.d.mts +4 -4
  30. package/dist/types.d.ts +4 -4
  31. package/dist/types.mjs +1 -1
  32. package/package.json +11 -10
@@ -1,7 +1,7 @@
1
1
  import * as drizzle_orm from 'drizzle-orm';
2
2
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
3
3
  import { BankAccountMetadata } from '@develit-io/backend-sdk';
4
- import { CURRENCY_CODES, CRYPTO_NETWORK_CODES, CODES, BANK_CODES } from '@develit-io/general-codes';
4
+ import { CURRENCY_CODES, BANK_CODES, CRYPTO_NETWORK_CODES, CODES } from '@develit-io/general-codes';
5
5
 
6
6
  declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
7
7
  name: "account";
@@ -161,76 +161,13 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
161
161
  identity: undefined;
162
162
  generated: undefined;
163
163
  }, {}, {}>;
164
- id: drizzle_orm_sqlite_core.SQLiteColumn<{
165
- name: "id";
166
- tableName: "account";
167
- dataType: "string";
168
- columnType: "SQLiteText";
169
- data: string;
170
- driverParam: string;
171
- notNull: true;
172
- hasDefault: false;
173
- isPrimaryKey: true;
174
- isAutoincrement: false;
175
- hasRuntimeDefault: false;
176
- enumValues: [string, ...string[]];
177
- baseColumn: never;
178
- identity: undefined;
179
- generated: undefined;
180
- }, {}, {
181
- length: number | undefined;
182
- }>;
183
- createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
184
- name: "created_at";
185
- tableName: "account";
186
- dataType: "date";
187
- columnType: "SQLiteTimestamp";
188
- data: Date;
189
- driverParam: number;
190
- notNull: false;
191
- hasDefault: true;
192
- isPrimaryKey: false;
193
- isAutoincrement: false;
194
- hasRuntimeDefault: false;
195
- enumValues: undefined;
196
- baseColumn: never;
197
- identity: undefined;
198
- generated: undefined;
199
- }, {}, {}>;
200
- updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
201
- name: "updated_at";
202
- tableName: "account";
203
- dataType: "date";
204
- columnType: "SQLiteTimestamp";
205
- data: Date;
206
- driverParam: number;
207
- notNull: false;
208
- hasDefault: true;
209
- isPrimaryKey: false;
210
- isAutoincrement: false;
211
- hasRuntimeDefault: false;
212
- enumValues: undefined;
213
- baseColumn: never;
214
- identity: undefined;
215
- generated: undefined;
216
- }, {}, {}>;
217
- deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
218
- name: "deleted_at";
219
- tableName: "account";
220
- dataType: "date";
221
- columnType: "SQLiteTimestamp";
222
- data: Date;
223
- driverParam: number;
224
- notNull: false;
225
- hasDefault: true;
226
- isPrimaryKey: false;
227
- isAutoincrement: false;
228
- hasRuntimeDefault: false;
229
- enumValues: undefined;
230
- baseColumn: never;
231
- identity: undefined;
232
- generated: undefined;
233
- }, {}, {}>;
164
+ id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
165
+ createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
166
+ createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
167
+ updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
168
+ updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
169
+ deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
170
+ deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
234
171
  };
235
172
  dialect: "sqlite";
236
173
  }>;
@@ -451,76 +388,13 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
451
388
  length: number | undefined;
452
389
  $type: "AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
453
390
  }>;
454
- id: drizzle_orm_sqlite_core.SQLiteColumn<{
455
- name: "id";
456
- tableName: "account_identifier";
457
- dataType: "string";
458
- columnType: "SQLiteText";
459
- data: string;
460
- driverParam: string;
461
- notNull: true;
462
- hasDefault: false;
463
- isPrimaryKey: true;
464
- isAutoincrement: false;
465
- hasRuntimeDefault: false;
466
- enumValues: [string, ...string[]];
467
- baseColumn: never;
468
- identity: undefined;
469
- generated: undefined;
470
- }, {}, {
471
- length: number | undefined;
472
- }>;
473
- createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
474
- name: "created_at";
475
- tableName: "account_identifier";
476
- dataType: "date";
477
- columnType: "SQLiteTimestamp";
478
- data: Date;
479
- driverParam: number;
480
- notNull: false;
481
- hasDefault: true;
482
- isPrimaryKey: false;
483
- isAutoincrement: false;
484
- hasRuntimeDefault: false;
485
- enumValues: undefined;
486
- baseColumn: never;
487
- identity: undefined;
488
- generated: undefined;
489
- }, {}, {}>;
490
- updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
491
- name: "updated_at";
492
- tableName: "account_identifier";
493
- dataType: "date";
494
- columnType: "SQLiteTimestamp";
495
- data: Date;
496
- driverParam: number;
497
- notNull: false;
498
- hasDefault: true;
499
- isPrimaryKey: false;
500
- isAutoincrement: false;
501
- hasRuntimeDefault: false;
502
- enumValues: undefined;
503
- baseColumn: never;
504
- identity: undefined;
505
- generated: undefined;
506
- }, {}, {}>;
507
- deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
508
- name: "deleted_at";
509
- tableName: "account_identifier";
510
- dataType: "date";
511
- columnType: "SQLiteTimestamp";
512
- data: Date;
513
- driverParam: number;
514
- notNull: false;
515
- hasDefault: true;
516
- isPrimaryKey: false;
517
- isAutoincrement: false;
518
- hasRuntimeDefault: false;
519
- enumValues: undefined;
520
- baseColumn: never;
521
- identity: undefined;
522
- generated: undefined;
523
- }, {}, {}>;
391
+ id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
392
+ createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
393
+ createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
394
+ updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
395
+ updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
396
+ deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
397
+ deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
524
398
  };
525
399
  dialect: "sqlite";
526
400
  }>;
@@ -590,11 +464,11 @@ declare const IDENTIFIER_KINDS: readonly ["IBAN", "LOCAL_CZ", "SWIFT", "CRYPTO_A
590
464
  type IdentifierKind = (typeof IDENTIFIER_KINDS)[number];
591
465
  declare const ENTRY_STATUSES: readonly ["PENDING", "REALIZED", "FAILED", "CANCELED"];
592
466
  type EntryStatus = (typeof ENTRY_STATUSES)[number];
593
- declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
467
+ declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "WAITING_FOR_COLLATERAL", "COLLATERAL_PAID", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
594
468
  type TransactionStatus = (typeof TRANSACTION_STATUSES)[number];
595
- declare const TRANSACTION_TYPES: readonly ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER"];
469
+ declare const TRANSACTION_TYPES: readonly ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER", "COLLATERAL"];
596
470
  type TransactionType = (typeof TRANSACTION_TYPES)[number];
597
- declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
471
+ declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER", "FORWARD"];
598
472
  type ReferenceType = (typeof REFERENCE_TYPES)[number];
599
473
  declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
600
474
  type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
@@ -900,76 +774,13 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
900
774
  identity: undefined;
901
775
  generated: undefined;
902
776
  }, {}, {}>;
903
- id: drizzle_orm_sqlite_core.SQLiteColumn<{
904
- name: "id";
905
- tableName: "entry";
906
- dataType: "string";
907
- columnType: "SQLiteText";
908
- data: string;
909
- driverParam: string;
910
- notNull: true;
911
- hasDefault: false;
912
- isPrimaryKey: true;
913
- isAutoincrement: false;
914
- hasRuntimeDefault: false;
915
- enumValues: [string, ...string[]];
916
- baseColumn: never;
917
- identity: undefined;
918
- generated: undefined;
919
- }, {}, {
920
- length: number | undefined;
921
- }>;
922
- createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
923
- name: "created_at";
924
- tableName: "entry";
925
- dataType: "date";
926
- columnType: "SQLiteTimestamp";
927
- data: Date;
928
- driverParam: number;
929
- notNull: false;
930
- hasDefault: true;
931
- isPrimaryKey: false;
932
- isAutoincrement: false;
933
- hasRuntimeDefault: false;
934
- enumValues: undefined;
935
- baseColumn: never;
936
- identity: undefined;
937
- generated: undefined;
938
- }, {}, {}>;
939
- updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
940
- name: "updated_at";
941
- tableName: "entry";
942
- dataType: "date";
943
- columnType: "SQLiteTimestamp";
944
- data: Date;
945
- driverParam: number;
946
- notNull: false;
947
- hasDefault: true;
948
- isPrimaryKey: false;
949
- isAutoincrement: false;
950
- hasRuntimeDefault: false;
951
- enumValues: undefined;
952
- baseColumn: never;
953
- identity: undefined;
954
- generated: undefined;
955
- }, {}, {}>;
956
- deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
957
- name: "deleted_at";
958
- tableName: "entry";
959
- dataType: "date";
960
- columnType: "SQLiteTimestamp";
961
- data: Date;
962
- driverParam: number;
963
- notNull: false;
964
- hasDefault: true;
965
- isPrimaryKey: false;
966
- isAutoincrement: false;
967
- hasRuntimeDefault: false;
968
- enumValues: undefined;
969
- baseColumn: never;
970
- identity: undefined;
971
- generated: undefined;
972
- }, {}, {}>;
777
+ id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
778
+ createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
779
+ createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
780
+ updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
781
+ updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
782
+ deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
783
+ deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
973
784
  };
974
785
  dialect: "sqlite";
975
786
  }>;
@@ -1002,20 +813,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1002
813
  tableName: "transaction";
1003
814
  dataType: "string";
1004
815
  columnType: "SQLiteText";
1005
- data: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
816
+ data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD";
1006
817
  driverParam: string;
1007
818
  notNull: true;
1008
819
  hasDefault: false;
1009
820
  isPrimaryKey: false;
1010
821
  isAutoincrement: false;
1011
822
  hasRuntimeDefault: false;
1012
- enumValues: ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
823
+ enumValues: ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER", "FORWARD"];
1013
824
  baseColumn: never;
1014
825
  identity: undefined;
1015
826
  generated: undefined;
1016
827
  }, {}, {
1017
828
  length: number | undefined;
1018
- $type: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
829
+ $type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD";
1019
830
  }>;
1020
831
  referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
1021
832
  name: "reference_id";
@@ -1041,20 +852,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1041
852
  tableName: "transaction";
1042
853
  dataType: "string";
1043
854
  columnType: "SQLiteText";
1044
- data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
855
+ data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "COLLATERAL";
1045
856
  driverParam: string;
1046
857
  notNull: true;
1047
858
  hasDefault: false;
1048
859
  isPrimaryKey: false;
1049
860
  isAutoincrement: false;
1050
861
  hasRuntimeDefault: false;
1051
- enumValues: ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER"];
862
+ enumValues: ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER", "COLLATERAL"];
1052
863
  baseColumn: never;
1053
864
  identity: undefined;
1054
865
  generated: undefined;
1055
866
  }, {}, {
1056
867
  length: number | undefined;
1057
- $type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
868
+ $type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "COLLATERAL";
1058
869
  }>;
1059
870
  description: drizzle_orm_sqlite_core.SQLiteColumn<{
1060
871
  name: "description";
@@ -1114,20 +925,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1114
925
  tableName: "transaction";
1115
926
  dataType: "string";
1116
927
  columnType: "SQLiteText";
1117
- data: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
928
+ data: "FAILED" | "WAITING_FOR_PAYMENT" | "WAITING_FOR_COLLATERAL" | "COLLATERAL_PAID" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
1118
929
  driverParam: string;
1119
930
  notNull: true;
1120
931
  hasDefault: false;
1121
932
  isPrimaryKey: false;
1122
933
  isAutoincrement: false;
1123
934
  hasRuntimeDefault: false;
1124
- enumValues: ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
935
+ enumValues: ["WAITING_FOR_PAYMENT", "WAITING_FOR_COLLATERAL", "COLLATERAL_PAID", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
1125
936
  baseColumn: never;
1126
937
  identity: undefined;
1127
938
  generated: undefined;
1128
939
  }, {}, {
1129
940
  length: number | undefined;
1130
- $type: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
941
+ $type: "FAILED" | "WAITING_FOR_PAYMENT" | "WAITING_FOR_COLLATERAL" | "COLLATERAL_PAID" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
1131
942
  }>;
1132
943
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
1133
944
  name: "status_reason";
@@ -1223,76 +1034,13 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1223
1034
  length: number | undefined;
1224
1035
  $type: "CZK" | "EUR" | "USD" | "PLN" | "RON" | "GBP" | "RUB" | "HUF" | "CHF" | "DKK" | "SEK" | "HRK" | "NOK" | "BGN" | "TRY" | "AUD" | "CAD" | "JPY" | "CNY" | "INR" | "BRL" | "MXN" | "ZAR" | "SGD" | "HKD" | "KRW" | "MYR" | "THB" | "IDR" | "PHP" | "AED" | "SAR" | "ILS" | "EGP" | "NGN" | "PKR" | "COP" | "CLP" | "PEN" | "VND" | "KZT" | "UAH" | "BTC" | "ETH" | "ADA" | "DOT" | "ATOM" | "XRP" | "LTC" | "SOL" | "DOGE" | "MATIC" | "AVAX";
1225
1036
  }>;
1226
- id: drizzle_orm_sqlite_core.SQLiteColumn<{
1227
- name: "id";
1228
- tableName: "transaction";
1229
- dataType: "string";
1230
- columnType: "SQLiteText";
1231
- data: string;
1232
- driverParam: string;
1233
- notNull: true;
1234
- hasDefault: false;
1235
- isPrimaryKey: true;
1236
- isAutoincrement: false;
1237
- hasRuntimeDefault: false;
1238
- enumValues: [string, ...string[]];
1239
- baseColumn: never;
1240
- identity: undefined;
1241
- generated: undefined;
1242
- }, {}, {
1243
- length: number | undefined;
1244
- }>;
1245
- createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1246
- name: "created_at";
1247
- tableName: "transaction";
1248
- dataType: "date";
1249
- columnType: "SQLiteTimestamp";
1250
- data: Date;
1251
- driverParam: number;
1252
- notNull: false;
1253
- hasDefault: true;
1254
- isPrimaryKey: false;
1255
- isAutoincrement: false;
1256
- hasRuntimeDefault: false;
1257
- enumValues: undefined;
1258
- baseColumn: never;
1259
- identity: undefined;
1260
- generated: undefined;
1261
- }, {}, {}>;
1262
- updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1263
- name: "updated_at";
1264
- tableName: "transaction";
1265
- dataType: "date";
1266
- columnType: "SQLiteTimestamp";
1267
- data: Date;
1268
- driverParam: number;
1269
- notNull: false;
1270
- hasDefault: true;
1271
- isPrimaryKey: false;
1272
- isAutoincrement: false;
1273
- hasRuntimeDefault: false;
1274
- enumValues: undefined;
1275
- baseColumn: never;
1276
- identity: undefined;
1277
- generated: undefined;
1278
- }, {}, {}>;
1279
- deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1280
- name: "deleted_at";
1281
- tableName: "transaction";
1282
- dataType: "date";
1283
- columnType: "SQLiteTimestamp";
1284
- data: Date;
1285
- driverParam: number;
1286
- notNull: false;
1287
- hasDefault: true;
1288
- isPrimaryKey: false;
1289
- isAutoincrement: false;
1290
- hasRuntimeDefault: false;
1291
- enumValues: undefined;
1292
- baseColumn: never;
1293
- identity: undefined;
1294
- generated: undefined;
1295
- }, {}, {}>;
1037
+ id: _packages_backend_sdk.IsPrimaryKey<_packages_backend_sdk.NotNull<_packages_backend_sdk.SQLiteTextBuilderInitial<"id", [string, ...string[]], number | undefined>>>;
1038
+ createdAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"created_at">>;
1039
+ createdBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"created_by", [string, ...string[]], number | undefined>;
1040
+ updatedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"updated_at">>>;
1041
+ updatedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"updated_by", [string, ...string[]], number | undefined>;
1042
+ deletedAt: _packages_backend_sdk.HasDefault<_packages_backend_sdk.SQLiteTimestampBuilderInitial<"deleted_at">>;
1043
+ deletedBy: _packages_backend_sdk.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>;
1296
1044
  };
1297
1045
  dialect: "sqlite";
1298
1046
  }>;
@@ -1318,5 +1066,5 @@ declare namespace schema {
1318
1066
  };
1319
1067
  }
1320
1068
 
1321
- export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountRelations as J, accountIdentifierRelations as K, accountIdentifierMappingRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as b, TRANSACTION_TYPES as h, PAYMENT_TYPES as l, PAYMENT_STATUSES as p, PAYMENT_DIRECTIONS as r, BATCH_STATUSES as u, COUNTRY_CODES as y };
1322
- export type { CryptoNetworkCode as C, AccountType as a, AssetType as c, BalanceStrategy as d, IdentifierKind as e, EntryStatus as f, TransactionStatus as g, TransactionType as i, ReferenceType as j, PaymentChargeType as k, PaymentType as m, TransactionMetadata as n, EntryMetadata as o, PaymentStatus as q, PaymentDirection as s, CurrencyCode as t, BatchStatus as v, Currency as w, BankCode as x, CountryCode as z };
1069
+ export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountIdentifierMappingRelations as J, accountIdentifierRelations as K, accountRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as a, BATCH_STATUSES as d, PAYMENT_DIRECTIONS as o, PAYMENT_STATUSES as p, PAYMENT_TYPES as q, TRANSACTION_TYPES as w };
1070
+ export type { AccountType as b, AssetType as c, BalanceStrategy as e, BankCode as f, BatchStatus as g, CountryCode as h, CryptoNetworkCode as i, Currency as j, CurrencyCode as k, EntryMetadata as l, EntryStatus as m, IdentifierKind as n, PaymentChargeType as r, PaymentDirection as s, PaymentStatus as t, PaymentType as u, ReferenceType as v, TransactionMetadata as x, TransactionStatus as y, TransactionType as z };
@@ -59,6 +59,8 @@ const ENTRY_STATUSES = [
59
59
  ];
60
60
  const TRANSACTION_STATUSES = [
61
61
  "WAITING_FOR_PAYMENT",
62
+ "WAITING_FOR_COLLATERAL",
63
+ "COLLATERAL_PAID",
62
64
  "PAUSED",
63
65
  "WAITING_FOR_MANUAL_PROCESSING",
64
66
  "MATCHED",
@@ -78,14 +80,17 @@ const TRANSACTION_TYPES = [
78
80
  "UNMATCHED",
79
81
  "ADJUSTMENT",
80
82
  // manual correction
81
- "TRANSFER"
83
+ "TRANSFER",
82
84
  // internal transfer between accounts
85
+ "COLLATERAL"
86
+ // forward collateral payment from client
83
87
  ];
84
88
  const REFERENCE_TYPES = [
85
89
  "PAYMENT",
86
90
  "EXCHANGE",
87
91
  "ORDER",
88
- "INTERNAL-TRANSFER"
92
+ "INTERNAL-TRANSFER",
93
+ "FORWARD"
89
94
  ];
90
95
  const PAYMENT_CHARGE_TYPES = ["SHA", "OUR", "BEN"];
91
96
  const PAYMENT_TYPES = ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
@@ -304,4 +309,4 @@ const updateTransactionConfirmationSentAtInputSchema = z.object({
304
309
  transactionId: z.uuid()
305
310
  });
306
311
 
307
- export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, ENTRY_STATUSES as E, IDENTIFIER_KINDS as I, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as a, TRANSACTION_TYPES as b, PAYMENT_TYPES as c, ALLOWED_TRANSACTION_FILTERS as d, cancelTransactionInputSchema as e, createAccountInputSchema as f, createTransactionInputSchema as g, deleteAccountInputSchema as h, failTransactionInputSchema as i, findAccountByIdentifierInputSchema as j, getAccountInputSchema as k, getAccountBalanceInputSchema as l, getAccountIdentifierInputSchema as m, getAccountsByOwnerInputSchema as n, getTransactionByIdInputSchema as o, getTransactionsInputSchema as p, getTransactionsByReferenceIdInputSchema as q, listAccountIdentifiersInputSchema as r, listAccountsInputSchema as s, matchTransactionInputSchema as t, updateAccountInputSchema as u, updateTransactionConfirmationSentAtInputSchema as v, PAYMENT_STATUSES as w, PAYMENT_DIRECTIONS as x, BATCH_STATUSES as y };
312
+ export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, ENTRY_STATUSES as E, IDENTIFIER_KINDS as I, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ALLOWED_TRANSACTION_FILTERS as a, ASSET_TYPES as b, BATCH_STATUSES as c, PAYMENT_DIRECTIONS as d, PAYMENT_STATUSES as e, PAYMENT_TYPES as f, TRANSACTION_TYPES as g, cancelTransactionInputSchema as h, createAccountInputSchema as i, createTransactionInputSchema as j, deleteAccountInputSchema as k, failTransactionInputSchema as l, findAccountByIdentifierInputSchema as m, getAccountBalanceInputSchema as n, getAccountIdentifierInputSchema as o, getAccountInputSchema as p, getAccountsByOwnerInputSchema as q, getTransactionByIdInputSchema as r, getTransactionsByReferenceIdInputSchema as s, getTransactionsInputSchema as t, listAccountIdentifiersInputSchema as u, listAccountsInputSchema as v, matchTransactionInputSchema as w, updateAccountInputSchema as x, updateTransactionConfirmationSentAtInputSchema as y };
@@ -15,4 +15,4 @@ interface LedgerServiceWranglerConfig {
15
15
  interface LedgerServiceEnv extends LedgerEnv {
16
16
  }
17
17
 
18
- export type { LedgerServiceWranglerConfig as L, LedgerServiceEnvironmentConfig as a, LedgerServiceEnv as b };
18
+ export type { LedgerServiceWranglerConfig as L, LedgerServiceEnv as a, LedgerServiceEnvironmentConfig as b };
@@ -15,4 +15,4 @@ interface LedgerServiceWranglerConfig {
15
15
  interface LedgerServiceEnv extends LedgerEnv {
16
16
  }
17
17
 
18
- export type { LedgerServiceWranglerConfig as L, LedgerServiceEnvironmentConfig as a, LedgerServiceEnv as b };
18
+ export type { LedgerServiceWranglerConfig as L, LedgerServiceEnv as a, LedgerServiceEnvironmentConfig as b };
@@ -15,4 +15,4 @@ interface LedgerServiceWranglerConfig {
15
15
  interface LedgerServiceEnv extends LedgerEnv {
16
16
  }
17
17
 
18
- export type { LedgerServiceWranglerConfig as L, LedgerServiceEnvironmentConfig as a, LedgerServiceEnv as b };
18
+ export type { LedgerServiceWranglerConfig as L, LedgerServiceEnv as a, LedgerServiceEnvironmentConfig as b };
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const updateTransactionConfirmationSentAt = require('./shared/ledger.BChJGa5-.cjs');
3
+ const updateTransactionConfirmationSentAt = require('./shared/ledger.C6xAPWKq.cjs');
4
4
  const generalCodes = require('@develit-io/general-codes');
5
5
  require('zod');
6
6
  require('@develit-io/backend-sdk');
package/dist/types.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.Bo3kdRvg.cjs';
2
- import { T as TransactionSelectType } from './shared/ledger.CG3rFnGr.cjs';
3
- export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.CG3rFnGr.cjs';
4
- export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.cjs';
1
+ export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as ReferenceType, T as TRANSACTION_STATUSES, w as TRANSACTION_TYPES, x as TransactionMetadata, y as TransactionStatus, z as TransactionType } from './shared/ledger.Ci2NnLFo.cjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.CeePJr7h.cjs';
3
+ export { I as AccountIdentifierInsertType, J as AccountIdentifierMappingInsertType, K as AccountIdentifierMappingSelectType, N as AccountIdentifierSelectType, O as AccountInsertType, P as AccountSelectType, Q as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, R as IncludeRelation, S as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, V as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a0 as getAccountBalanceInputSchema, a1 as getAccountIdentifierInputSchema, a2 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a5 as getTransactionsByReferenceIdInputSchema, a6 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.CeePJr7h.cjs';
4
+ export { a as LedgerServiceEnv, b as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.VQWxyeV6.cjs';
5
5
  import { BaseEvent } from '@develit-io/backend-sdk';
6
6
  export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
7
7
  import 'drizzle-orm';
package/dist/types.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.Bo3kdRvg.mjs';
2
- import { T as TransactionSelectType } from './shared/ledger.9Ll_cqva.mjs';
3
- export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.9Ll_cqva.mjs';
4
- export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.mjs';
1
+ export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as ReferenceType, T as TRANSACTION_STATUSES, w as TRANSACTION_TYPES, x as TransactionMetadata, y as TransactionStatus, z as TransactionType } from './shared/ledger.Ci2NnLFo.mjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.C63GL8Bq.mjs';
3
+ export { I as AccountIdentifierInsertType, J as AccountIdentifierMappingInsertType, K as AccountIdentifierMappingSelectType, N as AccountIdentifierSelectType, O as AccountInsertType, P as AccountSelectType, Q as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, R as IncludeRelation, S as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, V as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a0 as getAccountBalanceInputSchema, a1 as getAccountIdentifierInputSchema, a2 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a5 as getTransactionsByReferenceIdInputSchema, a6 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.C63GL8Bq.mjs';
4
+ export { a as LedgerServiceEnv, b as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.VQWxyeV6.mjs';
5
5
  import { BaseEvent } from '@develit-io/backend-sdk';
6
6
  export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
7
7
  import 'drizzle-orm';
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.Bo3kdRvg.js';
2
- import { T as TransactionSelectType } from './shared/ledger.Vn3IgETm.js';
3
- export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.Vn3IgETm.js';
4
- export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.js';
1
+ export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as ReferenceType, T as TRANSACTION_STATUSES, w as TRANSACTION_TYPES, x as TransactionMetadata, y as TransactionStatus, z as TransactionType } from './shared/ledger.Ci2NnLFo.js';
2
+ import { T as TransactionSelectType } from './shared/ledger.Bombc2Sm.js';
3
+ export { I as AccountIdentifierInsertType, J as AccountIdentifierMappingInsertType, K as AccountIdentifierMappingSelectType, N as AccountIdentifierSelectType, O as AccountInsertType, P as AccountSelectType, Q as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, R as IncludeRelation, S as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, V as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a0 as getAccountBalanceInputSchema, a1 as getAccountIdentifierInputSchema, a2 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a5 as getTransactionsByReferenceIdInputSchema, a6 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.Bombc2Sm.js';
4
+ export { a as LedgerServiceEnv, b as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.VQWxyeV6.js';
5
5
  import { BaseEvent } from '@develit-io/backend-sdk';
6
6
  export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
7
7
  import 'drizzle-orm';
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, y as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, x as PAYMENT_DIRECTIONS, w as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as cancelTransactionInputSchema, f as createAccountInputSchema, g as createTransactionInputSchema, h as deleteAccountInputSchema, i as failTransactionInputSchema, j as findAccountByIdentifierInputSchema, l as getAccountBalanceInputSchema, m as getAccountIdentifierInputSchema, k as getAccountInputSchema, n as getAccountsByOwnerInputSchema, o as getTransactionByIdInputSchema, q as getTransactionsByReferenceIdInputSchema, p as getTransactionsInputSchema, r as listAccountIdentifiersInputSchema, s as listAccountsInputSchema, t as matchTransactionInputSchema, u as updateAccountInputSchema, v as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger._BGfS_Xc.mjs';
1
+ export { A as ACCOUNT_TYPES, a as ALLOWED_TRANSACTION_FILTERS, b as ASSET_TYPES, B as BALANCE_STRATEGIES, c as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, d as PAYMENT_DIRECTIONS, e as PAYMENT_STATUSES, f as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, g as TRANSACTION_TYPES, h as cancelTransactionInputSchema, i as createAccountInputSchema, j as createTransactionInputSchema, k as deleteAccountInputSchema, l as failTransactionInputSchema, m as findAccountByIdentifierInputSchema, n as getAccountBalanceInputSchema, o as getAccountIdentifierInputSchema, p as getAccountInputSchema, q as getAccountsByOwnerInputSchema, r as getTransactionByIdInputSchema, s as getTransactionsByReferenceIdInputSchema, t as getTransactionsInputSchema, u as listAccountIdentifiersInputSchema, v as listAccountsInputSchema, w as matchTransactionInputSchema, x as updateAccountInputSchema, y as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.DkcYdsVZ.mjs';
2
2
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
3
3
  import 'zod';
4
4
  import '@develit-io/backend-sdk';