@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.mjs';
|
|
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 };
|
package/dist/types.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./shared/bank.
|
|
4
|
-
const mockCobs_connector = require('./shared/bank.
|
|
3
|
+
const database_schema = require('./shared/bank.Cw5xzUgM.cjs');
|
|
4
|
+
const mockCobs_connector = require('./shared/bank.DSXZph4D.cjs');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
|
7
7
|
require('drizzle-orm/sqlite-core');
|
|
@@ -17,6 +17,7 @@ require('drizzle-orm/relations');
|
|
|
17
17
|
exports.ACCOUNT_STATUSES = database_schema.ACCOUNT_STATUSES;
|
|
18
18
|
exports.BATCH_STATUES = database_schema.BATCH_STATUSES;
|
|
19
19
|
exports.BATCH_STATUSES = database_schema.BATCH_STATUSES;
|
|
20
|
+
exports.CHARGE_BEARERS = database_schema.CHARGE_BEARERS;
|
|
20
21
|
exports.CONNECTOR_KEYS = database_schema.CONNECTOR_KEYS;
|
|
21
22
|
exports.COUNTRY_CODES = database_schema.COUNTRY_CODES;
|
|
22
23
|
exports.CREDENTIALS_TYPES = database_schema.CREDENTIALS_TYPES;
|
|
@@ -25,6 +26,7 @@ exports.FINBRICKS_ENDPOINTS = database_schema.FINBRICKS_ENDPOINTS;
|
|
|
25
26
|
exports.FinbricksClient = database_schema.FinbricksClient;
|
|
26
27
|
exports.FinbricksConnector = database_schema.FinbricksConnector;
|
|
27
28
|
exports.IBankConnector = database_schema.IBankConnector;
|
|
29
|
+
exports.INSTRUCTION_PRIORITIES = database_schema.INSTRUCTION_PRIORITIES;
|
|
28
30
|
exports.MockConnector = database_schema.MockConnector;
|
|
29
31
|
exports.PAYMENT_DIRECTIONS = database_schema.PAYMENT_DIRECTIONS;
|
|
30
32
|
exports.PAYMENT_STATUSES = database_schema.PAYMENT_STATUSES;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export {
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.CZ3ewB_T.cjs';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.CZ3ewB_T.cjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.PvYf5Bqd.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.PvYf5Bqd.cjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
|
|
@@ -600,6 +600,7 @@ interface ErsteObtainAuthorizationURLResponse {
|
|
|
600
600
|
|
|
601
601
|
type BankPaymentEvent = BaseEvent & {
|
|
602
602
|
eventType: 'BANK_PAYMENT';
|
|
603
|
+
eventSignal: 'created' | 'completed' | 'failed';
|
|
603
604
|
bankPayment: Partial<PaymentSelectType>;
|
|
604
605
|
};
|
|
605
606
|
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export {
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.k9J_kqIm.mjs';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.k9J_kqIm.mjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.PvYf5Bqd.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.PvYf5Bqd.mjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
|
|
@@ -600,6 +600,7 @@ interface ErsteObtainAuthorizationURLResponse {
|
|
|
600
600
|
|
|
601
601
|
type BankPaymentEvent = BaseEvent & {
|
|
602
602
|
eventType: 'BANK_PAYMENT';
|
|
603
|
+
eventSignal: 'created' | 'completed' | 'failed';
|
|
603
604
|
bankPayment: Partial<PaymentSelectType>;
|
|
604
605
|
};
|
|
605
606
|
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export {
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.B42VDp4J.js';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.B42VDp4J.js';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.PvYf5Bqd.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.PvYf5Bqd.js';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
|
|
@@ -600,6 +600,7 @@ interface ErsteObtainAuthorizationURLResponse {
|
|
|
600
600
|
|
|
601
601
|
type BankPaymentEvent = BaseEvent & {
|
|
602
602
|
eventType: 'BANK_PAYMENT';
|
|
603
|
+
eventSignal: 'created' | 'completed' | 'failed';
|
|
603
604
|
bankPayment: Partial<PaymentSelectType>;
|
|
604
605
|
};
|
|
605
606
|
|
package/dist/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES,
|
|
2
|
-
export { M as MockCobsConnector } from './shared/bank.
|
|
1
|
+
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, r as ottSelectSchema, q as ottUpdateSchema, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.C4RJkRzZ.mjs';
|
|
2
|
+
export { M as MockCobsConnector } from './shared/bank.WJE512Ly.mjs';
|
|
3
3
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.42",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -57,6 +57,9 @@
|
|
|
57
57
|
"wrangler": "*",
|
|
58
58
|
"zod": "*"
|
|
59
59
|
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@develit-io/backend-sdk": "5.43.0"
|
|
62
|
+
},
|
|
60
63
|
"devDependencies": {
|
|
61
64
|
"date-fns": "^4.1.0",
|
|
62
65
|
"jose": "^6.1.0"
|