@develit-services/ledger 0.3.2 → 0.3.4

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.
@@ -161,13 +161,133 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
161
161
  identity: undefined;
162
162
  generated: undefined;
163
163
  }, {}, {}>;
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>;
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
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
201
+ name: "created_by";
202
+ tableName: "account";
203
+ dataType: "string";
204
+ columnType: "SQLiteText";
205
+ data: string;
206
+ driverParam: string;
207
+ notNull: false;
208
+ hasDefault: true;
209
+ isPrimaryKey: false;
210
+ isAutoincrement: false;
211
+ hasRuntimeDefault: false;
212
+ enumValues: [string, ...string[]];
213
+ baseColumn: never;
214
+ identity: undefined;
215
+ generated: undefined;
216
+ }, {}, {
217
+ length: number | undefined;
218
+ }>;
219
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
220
+ name: "updated_at";
221
+ tableName: "account";
222
+ dataType: "date";
223
+ columnType: "SQLiteTimestamp";
224
+ data: Date;
225
+ driverParam: number;
226
+ notNull: false;
227
+ hasDefault: true;
228
+ isPrimaryKey: false;
229
+ isAutoincrement: false;
230
+ hasRuntimeDefault: false;
231
+ enumValues: undefined;
232
+ baseColumn: never;
233
+ identity: undefined;
234
+ generated: undefined;
235
+ }, {}, {}>;
236
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
237
+ name: "updated_by";
238
+ tableName: "account";
239
+ dataType: "string";
240
+ columnType: "SQLiteText";
241
+ data: string;
242
+ driverParam: string;
243
+ notNull: false;
244
+ hasDefault: true;
245
+ isPrimaryKey: false;
246
+ isAutoincrement: false;
247
+ hasRuntimeDefault: false;
248
+ enumValues: [string, ...string[]];
249
+ baseColumn: never;
250
+ identity: undefined;
251
+ generated: undefined;
252
+ }, {}, {
253
+ length: number | undefined;
254
+ }>;
255
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
256
+ name: "deleted_at";
257
+ tableName: "account";
258
+ dataType: "date";
259
+ columnType: "SQLiteTimestamp";
260
+ data: Date;
261
+ driverParam: number;
262
+ notNull: false;
263
+ hasDefault: true;
264
+ isPrimaryKey: false;
265
+ isAutoincrement: false;
266
+ hasRuntimeDefault: false;
267
+ enumValues: undefined;
268
+ baseColumn: never;
269
+ identity: undefined;
270
+ generated: undefined;
271
+ }, {}, {}>;
272
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
273
+ name: "deleted_by";
274
+ tableName: "account";
275
+ dataType: "string";
276
+ columnType: "SQLiteText";
277
+ data: string;
278
+ driverParam: string;
279
+ notNull: false;
280
+ hasDefault: true;
281
+ isPrimaryKey: false;
282
+ isAutoincrement: false;
283
+ hasRuntimeDefault: false;
284
+ enumValues: [string, ...string[]];
285
+ baseColumn: never;
286
+ identity: undefined;
287
+ generated: undefined;
288
+ }, {}, {
289
+ length: number | undefined;
290
+ }>;
171
291
  };
172
292
  dialect: "sqlite";
173
293
  }>;
@@ -373,7 +493,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
373
493
  tableName: "account_identifier";
374
494
  dataType: "string";
375
495
  columnType: "SQLiteText";
376
- data: "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";
496
+ data: "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" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
377
497
  driverParam: string;
378
498
  notNull: false;
379
499
  hasDefault: false;
@@ -386,15 +506,135 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
386
506
  generated: undefined;
387
507
  }, {}, {
388
508
  length: number | undefined;
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";
509
+ $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" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
510
+ }>;
511
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
512
+ name: "id";
513
+ tableName: "account_identifier";
514
+ dataType: "string";
515
+ columnType: "SQLiteText";
516
+ data: string;
517
+ driverParam: string;
518
+ notNull: true;
519
+ hasDefault: false;
520
+ isPrimaryKey: true;
521
+ isAutoincrement: false;
522
+ hasRuntimeDefault: false;
523
+ enumValues: [string, ...string[]];
524
+ baseColumn: never;
525
+ identity: undefined;
526
+ generated: undefined;
527
+ }, {}, {
528
+ length: number | undefined;
529
+ }>;
530
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
531
+ name: "created_at";
532
+ tableName: "account_identifier";
533
+ dataType: "date";
534
+ columnType: "SQLiteTimestamp";
535
+ data: Date;
536
+ driverParam: number;
537
+ notNull: false;
538
+ hasDefault: true;
539
+ isPrimaryKey: false;
540
+ isAutoincrement: false;
541
+ hasRuntimeDefault: false;
542
+ enumValues: undefined;
543
+ baseColumn: never;
544
+ identity: undefined;
545
+ generated: undefined;
546
+ }, {}, {}>;
547
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
548
+ name: "created_by";
549
+ tableName: "account_identifier";
550
+ dataType: "string";
551
+ columnType: "SQLiteText";
552
+ data: string;
553
+ driverParam: string;
554
+ notNull: false;
555
+ hasDefault: true;
556
+ isPrimaryKey: false;
557
+ isAutoincrement: false;
558
+ hasRuntimeDefault: false;
559
+ enumValues: [string, ...string[]];
560
+ baseColumn: never;
561
+ identity: undefined;
562
+ generated: undefined;
563
+ }, {}, {
564
+ length: number | undefined;
565
+ }>;
566
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
567
+ name: "updated_at";
568
+ tableName: "account_identifier";
569
+ dataType: "date";
570
+ columnType: "SQLiteTimestamp";
571
+ data: Date;
572
+ driverParam: number;
573
+ notNull: false;
574
+ hasDefault: true;
575
+ isPrimaryKey: false;
576
+ isAutoincrement: false;
577
+ hasRuntimeDefault: false;
578
+ enumValues: undefined;
579
+ baseColumn: never;
580
+ identity: undefined;
581
+ generated: undefined;
582
+ }, {}, {}>;
583
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
584
+ name: "updated_by";
585
+ tableName: "account_identifier";
586
+ dataType: "string";
587
+ columnType: "SQLiteText";
588
+ data: string;
589
+ driverParam: string;
590
+ notNull: false;
591
+ hasDefault: true;
592
+ isPrimaryKey: false;
593
+ isAutoincrement: false;
594
+ hasRuntimeDefault: false;
595
+ enumValues: [string, ...string[]];
596
+ baseColumn: never;
597
+ identity: undefined;
598
+ generated: undefined;
599
+ }, {}, {
600
+ length: number | undefined;
601
+ }>;
602
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
603
+ name: "deleted_at";
604
+ tableName: "account_identifier";
605
+ dataType: "date";
606
+ columnType: "SQLiteTimestamp";
607
+ data: Date;
608
+ driverParam: number;
609
+ notNull: false;
610
+ hasDefault: true;
611
+ isPrimaryKey: false;
612
+ isAutoincrement: false;
613
+ hasRuntimeDefault: false;
614
+ enumValues: undefined;
615
+ baseColumn: never;
616
+ identity: undefined;
617
+ generated: undefined;
618
+ }, {}, {}>;
619
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
620
+ name: "deleted_by";
621
+ tableName: "account_identifier";
622
+ dataType: "string";
623
+ columnType: "SQLiteText";
624
+ data: string;
625
+ driverParam: string;
626
+ notNull: false;
627
+ hasDefault: true;
628
+ isPrimaryKey: false;
629
+ isAutoincrement: false;
630
+ hasRuntimeDefault: false;
631
+ enumValues: [string, ...string[]];
632
+ baseColumn: never;
633
+ identity: undefined;
634
+ generated: undefined;
635
+ }, {}, {
636
+ length: number | undefined;
390
637
  }>;
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>;
398
638
  };
399
639
  dialect: "sqlite";
400
640
  }>;
@@ -464,16 +704,17 @@ declare const IDENTIFIER_KINDS: readonly ["IBAN", "LOCAL_CZ", "SWIFT", "CRYPTO_A
464
704
  type IdentifierKind = (typeof IDENTIFIER_KINDS)[number];
465
705
  declare const ENTRY_STATUSES: readonly ["PENDING", "REALIZED", "FAILED", "CANCELED"];
466
706
  type EntryStatus = (typeof ENTRY_STATUSES)[number];
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"];
707
+ declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
468
708
  type TransactionStatus = (typeof TRANSACTION_STATUSES)[number];
469
- declare const TRANSACTION_TYPES: readonly ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER", "COLLATERAL", "REFUND"];
709
+ declare const TRANSACTION_TYPES: readonly ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "COLLATERAL_FUND_IN", "COLLATERAL_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER", "REFUND"];
470
710
  type TransactionType = (typeof TRANSACTION_TYPES)[number];
471
711
  declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER", "FORWARD", "TRANSACTION"];
472
712
  type ReferenceType = (typeof REFERENCE_TYPES)[number];
473
- declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
474
- type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
713
+ declare const CHARGE_BEARERS: readonly ["SHA", "OUR", "BEN"];
714
+ type ChargeBearer = (typeof CHARGE_BEARERS)[number];
475
715
  declare const PAYMENT_TYPES: readonly ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
476
716
  type PaymentType = (typeof PAYMENT_TYPES)[number];
717
+ declare const REFUNDABLE_TRANSACTION_STATUSES: readonly ["WAITING_FOR_MANUAL_PROCESSING"];
477
718
 
478
719
  type CryptoNetworkCode = (typeof CRYPTO_NETWORK_CODES)[number];
479
720
  declare const PAYMENT_STATUSES: readonly ["PREPARED", "INITIALIZED", "FAILED", "PENDING", "COMPLETED", "CREATED"];
@@ -493,7 +734,7 @@ type BatchStatus = (typeof BATCH_STATUSES)[number];
493
734
  type Currency = CODES.Currency;
494
735
 
495
736
  type BankCode = (typeof BANK_CODES)[number];
496
- declare const COUNTRY_CODES: ["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", ...("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")[]];
737
+ declare const COUNTRY_CODES: ["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" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("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" | "US" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]];
497
738
  type CountryCode = (typeof COUNTRY_CODES)[number];
498
739
 
499
740
  interface TransactionMetadata {
@@ -506,7 +747,8 @@ interface TransactionMetadata {
506
747
  ks?: string;
507
748
  message?: string;
508
749
  type: PaymentType;
509
- paymentChargeType?: PaymentChargeType;
750
+ direction?: PaymentDirection;
751
+ chargeBearer?: ChargeBearer;
510
752
  expressPayment?: boolean;
511
753
  reference?: string;
512
754
  creditor?: BankAccountMetadata;
@@ -525,6 +767,12 @@ interface TransactionMetadata {
525
767
  * Additional notes or comments about the transaction
526
768
  */
527
769
  note?: string;
770
+ /**
771
+ * Refund information when transaction type is REFUND
772
+ */
773
+ refund?: {
774
+ isPartialRefund: boolean;
775
+ };
528
776
  }
529
777
  interface EntryMetadata {
530
778
  context?: {
@@ -774,13 +1022,133 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
774
1022
  identity: undefined;
775
1023
  generated: undefined;
776
1024
  }, {}, {}>;
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>;
1025
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
1026
+ name: "id";
1027
+ tableName: "entry";
1028
+ dataType: "string";
1029
+ columnType: "SQLiteText";
1030
+ data: string;
1031
+ driverParam: string;
1032
+ notNull: true;
1033
+ hasDefault: false;
1034
+ isPrimaryKey: true;
1035
+ isAutoincrement: false;
1036
+ hasRuntimeDefault: false;
1037
+ enumValues: [string, ...string[]];
1038
+ baseColumn: never;
1039
+ identity: undefined;
1040
+ generated: undefined;
1041
+ }, {}, {
1042
+ length: number | undefined;
1043
+ }>;
1044
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1045
+ name: "created_at";
1046
+ tableName: "entry";
1047
+ dataType: "date";
1048
+ columnType: "SQLiteTimestamp";
1049
+ data: Date;
1050
+ driverParam: number;
1051
+ notNull: false;
1052
+ hasDefault: true;
1053
+ isPrimaryKey: false;
1054
+ isAutoincrement: false;
1055
+ hasRuntimeDefault: false;
1056
+ enumValues: undefined;
1057
+ baseColumn: never;
1058
+ identity: undefined;
1059
+ generated: undefined;
1060
+ }, {}, {}>;
1061
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1062
+ name: "created_by";
1063
+ tableName: "entry";
1064
+ dataType: "string";
1065
+ columnType: "SQLiteText";
1066
+ data: string;
1067
+ driverParam: string;
1068
+ notNull: false;
1069
+ hasDefault: true;
1070
+ isPrimaryKey: false;
1071
+ isAutoincrement: false;
1072
+ hasRuntimeDefault: false;
1073
+ enumValues: [string, ...string[]];
1074
+ baseColumn: never;
1075
+ identity: undefined;
1076
+ generated: undefined;
1077
+ }, {}, {
1078
+ length: number | undefined;
1079
+ }>;
1080
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1081
+ name: "updated_at";
1082
+ tableName: "entry";
1083
+ dataType: "date";
1084
+ columnType: "SQLiteTimestamp";
1085
+ data: Date;
1086
+ driverParam: number;
1087
+ notNull: false;
1088
+ hasDefault: true;
1089
+ isPrimaryKey: false;
1090
+ isAutoincrement: false;
1091
+ hasRuntimeDefault: false;
1092
+ enumValues: undefined;
1093
+ baseColumn: never;
1094
+ identity: undefined;
1095
+ generated: undefined;
1096
+ }, {}, {}>;
1097
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1098
+ name: "updated_by";
1099
+ tableName: "entry";
1100
+ dataType: "string";
1101
+ columnType: "SQLiteText";
1102
+ data: string;
1103
+ driverParam: string;
1104
+ notNull: false;
1105
+ hasDefault: true;
1106
+ isPrimaryKey: false;
1107
+ isAutoincrement: false;
1108
+ hasRuntimeDefault: false;
1109
+ enumValues: [string, ...string[]];
1110
+ baseColumn: never;
1111
+ identity: undefined;
1112
+ generated: undefined;
1113
+ }, {}, {
1114
+ length: number | undefined;
1115
+ }>;
1116
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1117
+ name: "deleted_at";
1118
+ tableName: "entry";
1119
+ dataType: "date";
1120
+ columnType: "SQLiteTimestamp";
1121
+ data: Date;
1122
+ driverParam: number;
1123
+ notNull: false;
1124
+ hasDefault: true;
1125
+ isPrimaryKey: false;
1126
+ isAutoincrement: false;
1127
+ hasRuntimeDefault: false;
1128
+ enumValues: undefined;
1129
+ baseColumn: never;
1130
+ identity: undefined;
1131
+ generated: undefined;
1132
+ }, {}, {}>;
1133
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1134
+ name: "deleted_by";
1135
+ tableName: "entry";
1136
+ dataType: "string";
1137
+ columnType: "SQLiteText";
1138
+ data: string;
1139
+ driverParam: string;
1140
+ notNull: false;
1141
+ hasDefault: true;
1142
+ isPrimaryKey: false;
1143
+ isAutoincrement: false;
1144
+ hasRuntimeDefault: false;
1145
+ enumValues: [string, ...string[]];
1146
+ baseColumn: never;
1147
+ identity: undefined;
1148
+ generated: undefined;
1149
+ }, {}, {
1150
+ length: number | undefined;
1151
+ }>;
784
1152
  };
785
1153
  dialect: "sqlite";
786
1154
  }>;
@@ -813,7 +1181,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
813
1181
  tableName: "transaction";
814
1182
  dataType: "string";
815
1183
  columnType: "SQLiteText";
816
- data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
1184
+ data: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
817
1185
  driverParam: string;
818
1186
  notNull: true;
819
1187
  hasDefault: false;
@@ -826,7 +1194,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
826
1194
  generated: undefined;
827
1195
  }, {}, {
828
1196
  length: number | undefined;
829
- $type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
1197
+ $type: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
830
1198
  }>;
831
1199
  referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
832
1200
  name: "reference_id";
@@ -852,20 +1220,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
852
1220
  tableName: "transaction";
853
1221
  dataType: "string";
854
1222
  columnType: "SQLiteText";
855
- data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "COLLATERAL" | "REFUND";
1223
+ data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
856
1224
  driverParam: string;
857
1225
  notNull: true;
858
1226
  hasDefault: false;
859
1227
  isPrimaryKey: false;
860
1228
  isAutoincrement: false;
861
1229
  hasRuntimeDefault: false;
862
- enumValues: ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER", "COLLATERAL", "REFUND"];
1230
+ enumValues: ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "COLLATERAL_FUND_IN", "COLLATERAL_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER", "REFUND"];
863
1231
  baseColumn: never;
864
1232
  identity: undefined;
865
1233
  generated: undefined;
866
1234
  }, {}, {
867
1235
  length: number | undefined;
868
- $type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "COLLATERAL" | "REFUND";
1236
+ $type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
869
1237
  }>;
870
1238
  description: drizzle_orm_sqlite_core.SQLiteColumn<{
871
1239
  name: "description";
@@ -925,20 +1293,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
925
1293
  tableName: "transaction";
926
1294
  dataType: "string";
927
1295
  columnType: "SQLiteText";
928
- data: "FAILED" | "WAITING_FOR_PAYMENT" | "WAITING_FOR_COLLATERAL" | "COLLATERAL_PAID" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
1296
+ data: "FAILED" | "WAITING_FOR_PAYMENT" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
929
1297
  driverParam: string;
930
1298
  notNull: true;
931
1299
  hasDefault: false;
932
1300
  isPrimaryKey: false;
933
1301
  isAutoincrement: false;
934
1302
  hasRuntimeDefault: false;
935
- enumValues: ["WAITING_FOR_PAYMENT", "WAITING_FOR_COLLATERAL", "COLLATERAL_PAID", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
1303
+ enumValues: ["WAITING_FOR_PAYMENT", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
936
1304
  baseColumn: never;
937
1305
  identity: undefined;
938
1306
  generated: undefined;
939
1307
  }, {}, {
940
1308
  length: number | undefined;
941
- $type: "FAILED" | "WAITING_FOR_PAYMENT" | "WAITING_FOR_COLLATERAL" | "COLLATERAL_PAID" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
1309
+ $type: "FAILED" | "WAITING_FOR_PAYMENT" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "SETTLED";
942
1310
  }>;
943
1311
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
944
1312
  name: "status_reason";
@@ -1034,13 +1402,133 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1034
1402
  length: number | undefined;
1035
1403
  $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";
1036
1404
  }>;
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>;
1405
+ id: drizzle_orm_sqlite_core.SQLiteColumn<{
1406
+ name: "id";
1407
+ tableName: "transaction";
1408
+ dataType: "string";
1409
+ columnType: "SQLiteText";
1410
+ data: string;
1411
+ driverParam: string;
1412
+ notNull: true;
1413
+ hasDefault: false;
1414
+ isPrimaryKey: true;
1415
+ isAutoincrement: false;
1416
+ hasRuntimeDefault: false;
1417
+ enumValues: [string, ...string[]];
1418
+ baseColumn: never;
1419
+ identity: undefined;
1420
+ generated: undefined;
1421
+ }, {}, {
1422
+ length: number | undefined;
1423
+ }>;
1424
+ createdAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1425
+ name: "created_at";
1426
+ tableName: "transaction";
1427
+ dataType: "date";
1428
+ columnType: "SQLiteTimestamp";
1429
+ data: Date;
1430
+ driverParam: number;
1431
+ notNull: false;
1432
+ hasDefault: true;
1433
+ isPrimaryKey: false;
1434
+ isAutoincrement: false;
1435
+ hasRuntimeDefault: false;
1436
+ enumValues: undefined;
1437
+ baseColumn: never;
1438
+ identity: undefined;
1439
+ generated: undefined;
1440
+ }, {}, {}>;
1441
+ createdBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1442
+ name: "created_by";
1443
+ tableName: "transaction";
1444
+ dataType: "string";
1445
+ columnType: "SQLiteText";
1446
+ data: string;
1447
+ driverParam: string;
1448
+ notNull: false;
1449
+ hasDefault: true;
1450
+ isPrimaryKey: false;
1451
+ isAutoincrement: false;
1452
+ hasRuntimeDefault: false;
1453
+ enumValues: [string, ...string[]];
1454
+ baseColumn: never;
1455
+ identity: undefined;
1456
+ generated: undefined;
1457
+ }, {}, {
1458
+ length: number | undefined;
1459
+ }>;
1460
+ updatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1461
+ name: "updated_at";
1462
+ tableName: "transaction";
1463
+ dataType: "date";
1464
+ columnType: "SQLiteTimestamp";
1465
+ data: Date;
1466
+ driverParam: number;
1467
+ notNull: false;
1468
+ hasDefault: true;
1469
+ isPrimaryKey: false;
1470
+ isAutoincrement: false;
1471
+ hasRuntimeDefault: false;
1472
+ enumValues: undefined;
1473
+ baseColumn: never;
1474
+ identity: undefined;
1475
+ generated: undefined;
1476
+ }, {}, {}>;
1477
+ updatedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1478
+ name: "updated_by";
1479
+ tableName: "transaction";
1480
+ dataType: "string";
1481
+ columnType: "SQLiteText";
1482
+ data: string;
1483
+ driverParam: string;
1484
+ notNull: false;
1485
+ hasDefault: true;
1486
+ isPrimaryKey: false;
1487
+ isAutoincrement: false;
1488
+ hasRuntimeDefault: false;
1489
+ enumValues: [string, ...string[]];
1490
+ baseColumn: never;
1491
+ identity: undefined;
1492
+ generated: undefined;
1493
+ }, {}, {
1494
+ length: number | undefined;
1495
+ }>;
1496
+ deletedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
1497
+ name: "deleted_at";
1498
+ tableName: "transaction";
1499
+ dataType: "date";
1500
+ columnType: "SQLiteTimestamp";
1501
+ data: Date;
1502
+ driverParam: number;
1503
+ notNull: false;
1504
+ hasDefault: true;
1505
+ isPrimaryKey: false;
1506
+ isAutoincrement: false;
1507
+ hasRuntimeDefault: false;
1508
+ enumValues: undefined;
1509
+ baseColumn: never;
1510
+ identity: undefined;
1511
+ generated: undefined;
1512
+ }, {}, {}>;
1513
+ deletedBy: drizzle_orm_sqlite_core.SQLiteColumn<{
1514
+ name: "deleted_by";
1515
+ tableName: "transaction";
1516
+ dataType: "string";
1517
+ columnType: "SQLiteText";
1518
+ data: string;
1519
+ driverParam: string;
1520
+ notNull: false;
1521
+ hasDefault: true;
1522
+ isPrimaryKey: false;
1523
+ isAutoincrement: false;
1524
+ hasRuntimeDefault: false;
1525
+ enumValues: [string, ...string[]];
1526
+ baseColumn: never;
1527
+ identity: undefined;
1528
+ generated: undefined;
1529
+ }, {}, {
1530
+ length: number | undefined;
1531
+ }>;
1044
1532
  };
1045
1533
  dialect: "sqlite";
1046
1534
  }>;
@@ -1066,5 +1554,5 @@ declare namespace schema {
1066
1554
  };
1067
1555
  }
1068
1556
 
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 };
1557
+ export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, CHARGE_BEARERS as C, ENTRY_STATUSES as E, schema as F, account as G, accountIdentifier as H, IDENTIFIER_KINDS as I, accountIdentifierMapping as J, accountIdentifierMappingRelations as K, accountIdentifierRelations as L, accountRelations as M, entry as N, transaction as O, PAYMENT_DIRECTIONS as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as a, BATCH_STATUSES as d, COUNTRY_CODES as h, PAYMENT_STATUSES as q, PAYMENT_TYPES as r, REFUNDABLE_TRANSACTION_STATUSES as v, TRANSACTION_TYPES as x };
1558
+ export type { TransactionType as D, AccountType as b, AssetType as c, BalanceStrategy as e, BankCode as f, BatchStatus as g, ChargeBearer as i, CountryCode as j, CryptoNetworkCode as k, Currency as l, CurrencyCode as m, EntryMetadata as n, EntryStatus as o, IdentifierKind as p, PaymentDirection as s, PaymentStatus as t, PaymentType as u, ReferenceType as w, TransactionMetadata as y, TransactionStatus as z };