@develit-services/bank 0.0.41 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/schema.cjs +1 -1
- package/dist/database/schema.d.cts +2 -1
- package/dist/database/schema.d.mts +2 -1
- package/dist/database/schema.d.ts +2 -1
- package/dist/database/schema.mjs +1 -1
- package/dist/export/worker.cjs +214 -209
- package/dist/export/worker.d.cts +1177 -52
- package/dist/export/worker.d.mts +1177 -52
- package/dist/export/worker.d.ts +1177 -52
- package/dist/export/worker.mjs +215 -210
- package/dist/shared/{bank.BmcSkaZh.d.mts → bank.B42VDp4J.d.ts} +352 -12
- package/dist/shared/{bank.HuMp6uP6.mjs → bank.C4RJkRzZ.mjs} +8 -8
- package/dist/shared/{bank.CELgdPJI.d.cts → bank.CZ3ewB_T.d.cts} +352 -12
- package/dist/shared/{bank.C2tmTjwq.cjs → bank.Cw5xzUgM.cjs} +9 -7
- package/dist/shared/{bank.DBgpADhg.cjs → bank.DSXZph4D.cjs} +1 -1
- package/dist/shared/{bank.e_XSg9KV.d.mts → bank.PvYf5Bqd.d.cts} +158 -64
- package/dist/shared/{bank.e_XSg9KV.d.cts → bank.PvYf5Bqd.d.mts} +158 -64
- package/dist/shared/{bank.e_XSg9KV.d.ts → bank.PvYf5Bqd.d.ts} +158 -64
- package/dist/shared/{bank.E-nyO12E.mjs → bank.WJE512Ly.mjs} +1 -1
- package/dist/shared/{bank.C_BFyEi4.d.ts → bank.k9J_kqIm.d.mts} +352 -12
- package/dist/types.cjs +4 -2
- package/dist/types.d.cts +5 -4
- package/dist/types.d.mts +5 -4
- package/dist/types.d.ts +5 -4
- package/dist/types.mjs +2 -2
- package/package.json +4 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.PvYf5Bqd.js';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -8,6 +8,10 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
|
8
8
|
|
|
9
9
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
10
10
|
type PaymentType = (typeof PAYMENT_TYPES)[number];
|
|
11
|
+
declare const CHARGE_BEARERS: readonly ["SHA", "OUR", "BEN"];
|
|
12
|
+
type ChargeBearer = (typeof CHARGE_BEARERS)[number];
|
|
13
|
+
declare const INSTRUCTION_PRIORITIES: readonly ["NORM", "INST"];
|
|
14
|
+
type InstructionPriority = (typeof INSTRUCTION_PRIORITIES)[number];
|
|
11
15
|
declare const PAYMENT_STATUSES: readonly ["PREPARED", "INITIALIZED", "FAILED", "PENDING", "COMPLETED", "CREATED"];
|
|
12
16
|
type PaymentStatus = (typeof PAYMENT_STATUSES)[number];
|
|
13
17
|
declare const PAYMENT_DIRECTIONS: readonly ["INCOMING", "OUTGOING"];
|
|
@@ -179,6 +183,23 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
179
183
|
}, {}, {
|
|
180
184
|
length: number | undefined;
|
|
181
185
|
}>;
|
|
186
|
+
batchSizeLimit: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
187
|
+
name: "batch_size_limit";
|
|
188
|
+
tableName: "account";
|
|
189
|
+
dataType: "number";
|
|
190
|
+
columnType: "SQLiteInteger";
|
|
191
|
+
data: number;
|
|
192
|
+
driverParam: number;
|
|
193
|
+
notNull: true;
|
|
194
|
+
hasDefault: true;
|
|
195
|
+
isPrimaryKey: false;
|
|
196
|
+
isAutoincrement: false;
|
|
197
|
+
hasRuntimeDefault: false;
|
|
198
|
+
enumValues: undefined;
|
|
199
|
+
baseColumn: never;
|
|
200
|
+
identity: undefined;
|
|
201
|
+
generated: undefined;
|
|
202
|
+
}, {}, {}>;
|
|
182
203
|
sync: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
183
204
|
name: "sync";
|
|
184
205
|
tableName: "account";
|
|
@@ -256,7 +277,7 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
256
277
|
columnType: "SQLiteText";
|
|
257
278
|
data: string;
|
|
258
279
|
driverParam: string;
|
|
259
|
-
notNull:
|
|
280
|
+
notNull: false;
|
|
260
281
|
hasDefault: false;
|
|
261
282
|
isPrimaryKey: false;
|
|
262
283
|
isAutoincrement: false;
|
|
@@ -275,7 +296,7 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
275
296
|
columnType: "SQLiteText";
|
|
276
297
|
data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
|
|
277
298
|
driverParam: string;
|
|
278
|
-
notNull:
|
|
299
|
+
notNull: false;
|
|
279
300
|
hasDefault: false;
|
|
280
301
|
isPrimaryKey: false;
|
|
281
302
|
isAutoincrement: false;
|
|
@@ -294,7 +315,7 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
294
315
|
columnType: "SQLiteText";
|
|
295
316
|
data: string;
|
|
296
317
|
driverParam: string;
|
|
297
|
-
notNull:
|
|
318
|
+
notNull: false;
|
|
298
319
|
hasDefault: false;
|
|
299
320
|
isPrimaryKey: false;
|
|
300
321
|
isAutoincrement: false;
|
|
@@ -401,6 +422,101 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
401
422
|
}, {}, {
|
|
402
423
|
length: number | undefined;
|
|
403
424
|
}>;
|
|
425
|
+
routingNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
426
|
+
name: "routing_number";
|
|
427
|
+
tableName: "account";
|
|
428
|
+
dataType: "string";
|
|
429
|
+
columnType: "SQLiteText";
|
|
430
|
+
data: string;
|
|
431
|
+
driverParam: string;
|
|
432
|
+
notNull: false;
|
|
433
|
+
hasDefault: false;
|
|
434
|
+
isPrimaryKey: false;
|
|
435
|
+
isAutoincrement: false;
|
|
436
|
+
hasRuntimeDefault: false;
|
|
437
|
+
enumValues: [string, ...string[]];
|
|
438
|
+
baseColumn: never;
|
|
439
|
+
identity: undefined;
|
|
440
|
+
generated: undefined;
|
|
441
|
+
}, {}, {
|
|
442
|
+
length: number | undefined;
|
|
443
|
+
}>;
|
|
444
|
+
sortCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
445
|
+
name: "sort_code";
|
|
446
|
+
tableName: "account";
|
|
447
|
+
dataType: "string";
|
|
448
|
+
columnType: "SQLiteText";
|
|
449
|
+
data: string;
|
|
450
|
+
driverParam: string;
|
|
451
|
+
notNull: false;
|
|
452
|
+
hasDefault: false;
|
|
453
|
+
isPrimaryKey: false;
|
|
454
|
+
isAutoincrement: false;
|
|
455
|
+
hasRuntimeDefault: false;
|
|
456
|
+
enumValues: [string, ...string[]];
|
|
457
|
+
baseColumn: never;
|
|
458
|
+
identity: undefined;
|
|
459
|
+
generated: undefined;
|
|
460
|
+
}, {}, {
|
|
461
|
+
length: number | undefined;
|
|
462
|
+
}>;
|
|
463
|
+
clabe: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
464
|
+
name: "clabe";
|
|
465
|
+
tableName: "account";
|
|
466
|
+
dataType: "string";
|
|
467
|
+
columnType: "SQLiteText";
|
|
468
|
+
data: string;
|
|
469
|
+
driverParam: string;
|
|
470
|
+
notNull: false;
|
|
471
|
+
hasDefault: false;
|
|
472
|
+
isPrimaryKey: false;
|
|
473
|
+
isAutoincrement: false;
|
|
474
|
+
hasRuntimeDefault: false;
|
|
475
|
+
enumValues: [string, ...string[]];
|
|
476
|
+
baseColumn: never;
|
|
477
|
+
identity: undefined;
|
|
478
|
+
generated: undefined;
|
|
479
|
+
}, {}, {
|
|
480
|
+
length: number | undefined;
|
|
481
|
+
}>;
|
|
482
|
+
bsb: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
483
|
+
name: "bsb";
|
|
484
|
+
tableName: "account";
|
|
485
|
+
dataType: "string";
|
|
486
|
+
columnType: "SQLiteText";
|
|
487
|
+
data: string;
|
|
488
|
+
driverParam: string;
|
|
489
|
+
notNull: false;
|
|
490
|
+
hasDefault: false;
|
|
491
|
+
isPrimaryKey: false;
|
|
492
|
+
isAutoincrement: false;
|
|
493
|
+
hasRuntimeDefault: false;
|
|
494
|
+
enumValues: [string, ...string[]];
|
|
495
|
+
baseColumn: never;
|
|
496
|
+
identity: undefined;
|
|
497
|
+
generated: undefined;
|
|
498
|
+
}, {}, {
|
|
499
|
+
length: number | undefined;
|
|
500
|
+
}>;
|
|
501
|
+
brBankNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
502
|
+
name: "br_bank_number";
|
|
503
|
+
tableName: "account";
|
|
504
|
+
dataType: "string";
|
|
505
|
+
columnType: "SQLiteText";
|
|
506
|
+
data: string;
|
|
507
|
+
driverParam: string;
|
|
508
|
+
notNull: false;
|
|
509
|
+
hasDefault: false;
|
|
510
|
+
isPrimaryKey: false;
|
|
511
|
+
isAutoincrement: false;
|
|
512
|
+
hasRuntimeDefault: false;
|
|
513
|
+
enumValues: [string, ...string[]];
|
|
514
|
+
baseColumn: never;
|
|
515
|
+
identity: undefined;
|
|
516
|
+
generated: undefined;
|
|
517
|
+
}, {}, {
|
|
518
|
+
length: number | undefined;
|
|
519
|
+
}>;
|
|
404
520
|
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
405
521
|
name: "id";
|
|
406
522
|
tableName: "account";
|
|
@@ -532,6 +648,23 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
532
648
|
}, {}, {
|
|
533
649
|
length: number | undefined;
|
|
534
650
|
}>;
|
|
651
|
+
batchSizeLimit: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
652
|
+
name: "batch_size_limit";
|
|
653
|
+
tableName: "account";
|
|
654
|
+
dataType: "number";
|
|
655
|
+
columnType: "SQLiteInteger";
|
|
656
|
+
data: number;
|
|
657
|
+
driverParam: number;
|
|
658
|
+
notNull: true;
|
|
659
|
+
hasDefault: true;
|
|
660
|
+
isPrimaryKey: false;
|
|
661
|
+
isAutoincrement: false;
|
|
662
|
+
hasRuntimeDefault: false;
|
|
663
|
+
enumValues: undefined;
|
|
664
|
+
baseColumn: never;
|
|
665
|
+
identity: undefined;
|
|
666
|
+
generated: undefined;
|
|
667
|
+
}, {}, {}>;
|
|
535
668
|
sync: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
536
669
|
name: "sync";
|
|
537
670
|
tableName: "account";
|
|
@@ -609,7 +742,7 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
609
742
|
columnType: "SQLiteText";
|
|
610
743
|
data: string;
|
|
611
744
|
driverParam: string;
|
|
612
|
-
notNull:
|
|
745
|
+
notNull: false;
|
|
613
746
|
hasDefault: false;
|
|
614
747
|
isPrimaryKey: false;
|
|
615
748
|
isAutoincrement: false;
|
|
@@ -628,7 +761,7 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
628
761
|
columnType: "SQLiteText";
|
|
629
762
|
data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
|
|
630
763
|
driverParam: string;
|
|
631
|
-
notNull:
|
|
764
|
+
notNull: false;
|
|
632
765
|
hasDefault: false;
|
|
633
766
|
isPrimaryKey: false;
|
|
634
767
|
isAutoincrement: false;
|
|
@@ -647,7 +780,7 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
647
780
|
columnType: "SQLiteText";
|
|
648
781
|
data: string;
|
|
649
782
|
driverParam: string;
|
|
650
|
-
notNull:
|
|
783
|
+
notNull: false;
|
|
651
784
|
hasDefault: false;
|
|
652
785
|
isPrimaryKey: false;
|
|
653
786
|
isAutoincrement: false;
|
|
@@ -754,6 +887,101 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
754
887
|
}, {}, {
|
|
755
888
|
length: number | undefined;
|
|
756
889
|
}>;
|
|
890
|
+
routingNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
891
|
+
name: "routing_number";
|
|
892
|
+
tableName: "account";
|
|
893
|
+
dataType: "string";
|
|
894
|
+
columnType: "SQLiteText";
|
|
895
|
+
data: string;
|
|
896
|
+
driverParam: string;
|
|
897
|
+
notNull: false;
|
|
898
|
+
hasDefault: false;
|
|
899
|
+
isPrimaryKey: false;
|
|
900
|
+
isAutoincrement: false;
|
|
901
|
+
hasRuntimeDefault: false;
|
|
902
|
+
enumValues: [string, ...string[]];
|
|
903
|
+
baseColumn: never;
|
|
904
|
+
identity: undefined;
|
|
905
|
+
generated: undefined;
|
|
906
|
+
}, {}, {
|
|
907
|
+
length: number | undefined;
|
|
908
|
+
}>;
|
|
909
|
+
sortCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
910
|
+
name: "sort_code";
|
|
911
|
+
tableName: "account";
|
|
912
|
+
dataType: "string";
|
|
913
|
+
columnType: "SQLiteText";
|
|
914
|
+
data: string;
|
|
915
|
+
driverParam: string;
|
|
916
|
+
notNull: false;
|
|
917
|
+
hasDefault: false;
|
|
918
|
+
isPrimaryKey: false;
|
|
919
|
+
isAutoincrement: false;
|
|
920
|
+
hasRuntimeDefault: false;
|
|
921
|
+
enumValues: [string, ...string[]];
|
|
922
|
+
baseColumn: never;
|
|
923
|
+
identity: undefined;
|
|
924
|
+
generated: undefined;
|
|
925
|
+
}, {}, {
|
|
926
|
+
length: number | undefined;
|
|
927
|
+
}>;
|
|
928
|
+
clabe: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
929
|
+
name: "clabe";
|
|
930
|
+
tableName: "account";
|
|
931
|
+
dataType: "string";
|
|
932
|
+
columnType: "SQLiteText";
|
|
933
|
+
data: string;
|
|
934
|
+
driverParam: string;
|
|
935
|
+
notNull: false;
|
|
936
|
+
hasDefault: false;
|
|
937
|
+
isPrimaryKey: false;
|
|
938
|
+
isAutoincrement: false;
|
|
939
|
+
hasRuntimeDefault: false;
|
|
940
|
+
enumValues: [string, ...string[]];
|
|
941
|
+
baseColumn: never;
|
|
942
|
+
identity: undefined;
|
|
943
|
+
generated: undefined;
|
|
944
|
+
}, {}, {
|
|
945
|
+
length: number | undefined;
|
|
946
|
+
}>;
|
|
947
|
+
bsb: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
948
|
+
name: "bsb";
|
|
949
|
+
tableName: "account";
|
|
950
|
+
dataType: "string";
|
|
951
|
+
columnType: "SQLiteText";
|
|
952
|
+
data: string;
|
|
953
|
+
driverParam: string;
|
|
954
|
+
notNull: false;
|
|
955
|
+
hasDefault: false;
|
|
956
|
+
isPrimaryKey: false;
|
|
957
|
+
isAutoincrement: false;
|
|
958
|
+
hasRuntimeDefault: false;
|
|
959
|
+
enumValues: [string, ...string[]];
|
|
960
|
+
baseColumn: never;
|
|
961
|
+
identity: undefined;
|
|
962
|
+
generated: undefined;
|
|
963
|
+
}, {}, {
|
|
964
|
+
length: number | undefined;
|
|
965
|
+
}>;
|
|
966
|
+
brBankNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
967
|
+
name: "br_bank_number";
|
|
968
|
+
tableName: "account";
|
|
969
|
+
dataType: "string";
|
|
970
|
+
columnType: "SQLiteText";
|
|
971
|
+
data: string;
|
|
972
|
+
driverParam: string;
|
|
973
|
+
notNull: false;
|
|
974
|
+
hasDefault: false;
|
|
975
|
+
isPrimaryKey: false;
|
|
976
|
+
isAutoincrement: false;
|
|
977
|
+
hasRuntimeDefault: false;
|
|
978
|
+
enumValues: [string, ...string[]];
|
|
979
|
+
baseColumn: never;
|
|
980
|
+
identity: undefined;
|
|
981
|
+
generated: undefined;
|
|
982
|
+
}, {}, {
|
|
983
|
+
length: number | undefined;
|
|
984
|
+
}>;
|
|
757
985
|
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
758
986
|
name: "id";
|
|
759
987
|
tableName: "account";
|
|
@@ -885,6 +1113,23 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
885
1113
|
}, {}, {
|
|
886
1114
|
length: number | undefined;
|
|
887
1115
|
}>;
|
|
1116
|
+
batchSizeLimit: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1117
|
+
name: "batch_size_limit";
|
|
1118
|
+
tableName: "account";
|
|
1119
|
+
dataType: "number";
|
|
1120
|
+
columnType: "SQLiteInteger";
|
|
1121
|
+
data: number;
|
|
1122
|
+
driverParam: number;
|
|
1123
|
+
notNull: true;
|
|
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
|
+
}, {}, {}>;
|
|
888
1133
|
sync: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
889
1134
|
name: "sync";
|
|
890
1135
|
tableName: "account";
|
|
@@ -962,7 +1207,7 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
962
1207
|
columnType: "SQLiteText";
|
|
963
1208
|
data: string;
|
|
964
1209
|
driverParam: string;
|
|
965
|
-
notNull:
|
|
1210
|
+
notNull: false;
|
|
966
1211
|
hasDefault: false;
|
|
967
1212
|
isPrimaryKey: false;
|
|
968
1213
|
isAutoincrement: false;
|
|
@@ -981,7 +1226,7 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
981
1226
|
columnType: "SQLiteText";
|
|
982
1227
|
data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
|
|
983
1228
|
driverParam: string;
|
|
984
|
-
notNull:
|
|
1229
|
+
notNull: false;
|
|
985
1230
|
hasDefault: false;
|
|
986
1231
|
isPrimaryKey: false;
|
|
987
1232
|
isAutoincrement: false;
|
|
@@ -1000,7 +1245,7 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
1000
1245
|
columnType: "SQLiteText";
|
|
1001
1246
|
data: string;
|
|
1002
1247
|
driverParam: string;
|
|
1003
|
-
notNull:
|
|
1248
|
+
notNull: false;
|
|
1004
1249
|
hasDefault: false;
|
|
1005
1250
|
isPrimaryKey: false;
|
|
1006
1251
|
isAutoincrement: false;
|
|
@@ -1107,6 +1352,101 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
1107
1352
|
}, {}, {
|
|
1108
1353
|
length: number | undefined;
|
|
1109
1354
|
}>;
|
|
1355
|
+
routingNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1356
|
+
name: "routing_number";
|
|
1357
|
+
tableName: "account";
|
|
1358
|
+
dataType: "string";
|
|
1359
|
+
columnType: "SQLiteText";
|
|
1360
|
+
data: string;
|
|
1361
|
+
driverParam: string;
|
|
1362
|
+
notNull: false;
|
|
1363
|
+
hasDefault: false;
|
|
1364
|
+
isPrimaryKey: false;
|
|
1365
|
+
isAutoincrement: false;
|
|
1366
|
+
hasRuntimeDefault: false;
|
|
1367
|
+
enumValues: [string, ...string[]];
|
|
1368
|
+
baseColumn: never;
|
|
1369
|
+
identity: undefined;
|
|
1370
|
+
generated: undefined;
|
|
1371
|
+
}, {}, {
|
|
1372
|
+
length: number | undefined;
|
|
1373
|
+
}>;
|
|
1374
|
+
sortCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1375
|
+
name: "sort_code";
|
|
1376
|
+
tableName: "account";
|
|
1377
|
+
dataType: "string";
|
|
1378
|
+
columnType: "SQLiteText";
|
|
1379
|
+
data: string;
|
|
1380
|
+
driverParam: string;
|
|
1381
|
+
notNull: false;
|
|
1382
|
+
hasDefault: false;
|
|
1383
|
+
isPrimaryKey: false;
|
|
1384
|
+
isAutoincrement: false;
|
|
1385
|
+
hasRuntimeDefault: false;
|
|
1386
|
+
enumValues: [string, ...string[]];
|
|
1387
|
+
baseColumn: never;
|
|
1388
|
+
identity: undefined;
|
|
1389
|
+
generated: undefined;
|
|
1390
|
+
}, {}, {
|
|
1391
|
+
length: number | undefined;
|
|
1392
|
+
}>;
|
|
1393
|
+
clabe: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1394
|
+
name: "clabe";
|
|
1395
|
+
tableName: "account";
|
|
1396
|
+
dataType: "string";
|
|
1397
|
+
columnType: "SQLiteText";
|
|
1398
|
+
data: string;
|
|
1399
|
+
driverParam: string;
|
|
1400
|
+
notNull: false;
|
|
1401
|
+
hasDefault: false;
|
|
1402
|
+
isPrimaryKey: false;
|
|
1403
|
+
isAutoincrement: false;
|
|
1404
|
+
hasRuntimeDefault: false;
|
|
1405
|
+
enumValues: [string, ...string[]];
|
|
1406
|
+
baseColumn: never;
|
|
1407
|
+
identity: undefined;
|
|
1408
|
+
generated: undefined;
|
|
1409
|
+
}, {}, {
|
|
1410
|
+
length: number | undefined;
|
|
1411
|
+
}>;
|
|
1412
|
+
bsb: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1413
|
+
name: "bsb";
|
|
1414
|
+
tableName: "account";
|
|
1415
|
+
dataType: "string";
|
|
1416
|
+
columnType: "SQLiteText";
|
|
1417
|
+
data: string;
|
|
1418
|
+
driverParam: string;
|
|
1419
|
+
notNull: false;
|
|
1420
|
+
hasDefault: false;
|
|
1421
|
+
isPrimaryKey: false;
|
|
1422
|
+
isAutoincrement: false;
|
|
1423
|
+
hasRuntimeDefault: false;
|
|
1424
|
+
enumValues: [string, ...string[]];
|
|
1425
|
+
baseColumn: never;
|
|
1426
|
+
identity: undefined;
|
|
1427
|
+
generated: undefined;
|
|
1428
|
+
}, {}, {
|
|
1429
|
+
length: number | undefined;
|
|
1430
|
+
}>;
|
|
1431
|
+
brBankNumber: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1432
|
+
name: "br_bank_number";
|
|
1433
|
+
tableName: "account";
|
|
1434
|
+
dataType: "string";
|
|
1435
|
+
columnType: "SQLiteText";
|
|
1436
|
+
data: string;
|
|
1437
|
+
driverParam: string;
|
|
1438
|
+
notNull: false;
|
|
1439
|
+
hasDefault: false;
|
|
1440
|
+
isPrimaryKey: false;
|
|
1441
|
+
isAutoincrement: false;
|
|
1442
|
+
hasRuntimeDefault: false;
|
|
1443
|
+
enumValues: [string, ...string[]];
|
|
1444
|
+
baseColumn: never;
|
|
1445
|
+
identity: undefined;
|
|
1446
|
+
generated: undefined;
|
|
1447
|
+
}, {}, {
|
|
1448
|
+
length: number | undefined;
|
|
1449
|
+
}>;
|
|
1110
1450
|
id: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1111
1451
|
name: "id";
|
|
1112
1452
|
tableName: "account";
|
|
@@ -1695,5 +2035,5 @@ type AccountCredentialsUpdateType = z.infer<typeof accountCredentialsInsertSchem
|
|
|
1695
2035
|
type AccountCredentialsPatchType = z.infer<typeof accountCredentialsUpdateSchema>;
|
|
1696
2036
|
type AccountCredentialsSelectType = z.infer<typeof accountCredentialsSelectSchema>;
|
|
1697
2037
|
|
|
1698
|
-
export {
|
|
1699
|
-
export type { AccountSelectType as A, BatchMetadata as B, ConfigEnvironmentBank as C,
|
|
2038
|
+
export { ACCOUNT_STATUSES as D, COUNTRY_CODES as F, CONNECTOR_KEYS as H, IBankConnector as I, CREDENTIALS_TYPES as J, accountInsertSchema as M, accountUpdateSchema as N, accountSelectSchema as Q, TOKEN_TYPES as T, accountCredentialsInsertSchema as U, accountCredentialsUpdateSchema as V, accountCredentialsSelectSchema as W, BATCH_STATUSES as q, PAYMENT_TYPES as r, CHARGE_BEARERS as t, INSTRUCTION_PRIORITIES as v, PAYMENT_STATUSES as x, PAYMENT_DIRECTIONS as y };
|
|
2039
|
+
export type { AccountSelectType as A, BatchMetadata as B, ConfigEnvironmentBank as C, AccountStatus as E, BankAccountWithLastSync as G, CredentialsType as K, TokenType as L, OutgoingPaymentMessage as O, PaymentPreparedInsertType as P, AccountUpdateType as R, AccountPatchType as S, AccountCredentialsUpdateType as X, AccountCredentialsPatchType as Y, AccountCredentialsSelectType as Z, ConnectorKey as a, IncomingPaymentMessage as b, InitiatedPayment as c, ConnectedAccount as d, AccountCredentialsInsertType as e, AccountInsertType as f, InitiatedBatch as g, PaymentStatus as h, BatchStatus as i, CurrencyCode as j, BankCode as k, CountryCode as l, AuthInput as m, Currency as n, PaymentFailedInsertType as o, paymentInitializedInsertType as p, PaymentType as s, ChargeBearer as u, InstructionPriority as w, PaymentDirection as z };
|
|
@@ -1010,6 +1010,8 @@ class MockConnector extends IBankConnector {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
|
|
1012
1012
|
const PAYMENT_TYPES = ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
1013
|
+
const CHARGE_BEARERS = ["SHA", "OUR", "BEN"];
|
|
1014
|
+
const INSTRUCTION_PRIORITIES = ["NORM", "INST"];
|
|
1013
1015
|
const PAYMENT_STATUSES = [
|
|
1014
1016
|
"PREPARED",
|
|
1015
1017
|
"INITIALIZED",
|
|
@@ -1079,6 +1081,7 @@ const account = sqliteTable(
|
|
|
1079
1081
|
}).$type().notNull(),
|
|
1080
1082
|
status: text("status", { enum: ACCOUNT_STATUSES }).$type().notNull(),
|
|
1081
1083
|
bankRefId: text("bank_ref_id").notNull(),
|
|
1084
|
+
batchSizeLimit: integer("batch_size_limit").notNull().default(50),
|
|
1082
1085
|
sync: integer("sync", { mode: "boolean" }).default(false).notNull(),
|
|
1083
1086
|
syncPeriod: integer("sync_period"),
|
|
1084
1087
|
lastSyncedAt: integer("last_synced_at", { mode: "timestamp_ms" })
|
|
@@ -1133,6 +1136,7 @@ const batch = sqliteTable("batch", {
|
|
|
1133
1136
|
|
|
1134
1137
|
const payment = sqliteTable("payment", {
|
|
1135
1138
|
...base,
|
|
1139
|
+
correlationId: text("correlation_id").notNull(),
|
|
1136
1140
|
refId: text("ref_id"),
|
|
1137
1141
|
bankRefId: text("bank_ref_id"),
|
|
1138
1142
|
accountId: text("account_id").references(() => account.id).notNull(),
|
|
@@ -1154,14 +1158,10 @@ const payment = sqliteTable("payment", {
|
|
|
1154
1158
|
processedAt: integer("processed_at", {
|
|
1155
1159
|
mode: "timestamp_ms"
|
|
1156
1160
|
}),
|
|
1157
|
-
|
|
1158
|
-
creditorAccountNumberWithBankCode: text(
|
|
1159
|
-
"creditor_account_number_with_bank_code"
|
|
1160
|
-
),
|
|
1161
|
+
creditor: text("creditor", { mode: "json" }).$type().notNull(),
|
|
1161
1162
|
creditorIban: text("creditor_iban"),
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
debtorAccountNumberWithBankCode: text("debtor_account_number_with_bank_code")
|
|
1163
|
+
debtor: text("debtor", { mode: "json" }).$type().notNull(),
|
|
1164
|
+
debtorIban: text("debtor_iban")
|
|
1165
1165
|
});
|
|
1166
1166
|
const paymentRelations = relations(payment, ({ one }) => ({
|
|
1167
1167
|
batch: one(batch, { fields: [payment.batchId], references: [batch.id] })
|
|
@@ -1179,4 +1179,4 @@ const schema = {
|
|
|
1179
1179
|
|
|
1180
1180
|
const tables = schema;
|
|
1181
1181
|
|
|
1182
|
-
export { ACCOUNT_STATUSES as A, BATCH_STATUSES as B,
|
|
1182
|
+
export { ACCOUNT_STATUSES as A, BATCH_STATUSES as B, CHARGE_BEARERS as C, account as D, ErsteConnector as E, FinbricksConnector as F, accountCredentials as G, IBankConnector as I, MockConnector as M, PAYMENT_TYPES as P, TOKEN_TYPES as T, FinbricksClient as a, FINBRICKS_ENDPOINTS as b, INSTRUCTION_PRIORITIES as c, PAYMENT_STATUSES as d, PAYMENT_DIRECTIONS as e, COUNTRY_CODES as f, CONNECTOR_KEYS as g, CREDENTIALS_TYPES as h, accountInsertSchema as i, accountUpdateSchema as j, accountSelectSchema as k, accountCredentialsInsertSchema as l, accountCredentialsUpdateSchema as m, accountCredentialsSelectSchema as n, ottInsertSchema as o, paymentInsertTypeZod as p, ottUpdateSchema as q, ottSelectSchema as r, signFinbricksJws as s, tables as t, useFinbricksFetch as u, getPaymentDirection as v, batch as w, payment as x, paymentRelations as y, ott as z };
|