@develit-services/bank 0.7.7 → 0.7.8
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 +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/database/schema.mjs +1 -1
- package/dist/export/worker.cjs +4 -4
- package/dist/export/worker.d.cts +12 -10
- package/dist/export/worker.d.mts +12 -10
- package/dist/export/worker.d.ts +12 -10
- package/dist/export/worker.mjs +4 -4
- package/dist/export/workflows.cjs +4 -4
- package/dist/export/workflows.mjs +4 -4
- package/dist/shared/{bank.7tVPcX9l.cjs → bank.AEdMloQz.cjs} +2 -2
- package/dist/shared/{bank.FXsG6L3j.mjs → bank.BVRO97AQ.mjs} +2 -2
- package/dist/shared/{bank.CTLxLhFX.cjs → bank.Bz8-M6O4.cjs} +1 -1
- package/dist/shared/{bank.C5nVngk9.mjs → bank.CCQB8FnG.mjs} +23 -4
- package/dist/shared/{bank.DF8G4iKu.cjs → bank.DgGri2Wr.cjs} +2 -1
- package/dist/shared/{bank.Co1V8lgi.mjs → bank.I0pR4Me2.mjs} +1 -1
- package/dist/shared/{bank.DixDj12f.mjs → bank.PB07ttj3.mjs} +2 -1
- package/dist/shared/{bank.CJAPmWGK.d.mts → bank.Vm9IO_UH.d.cts} +32 -32
- package/dist/shared/{bank.CJAPmWGK.d.ts → bank.Vm9IO_UH.d.mts} +32 -32
- package/dist/shared/{bank.CJAPmWGK.d.cts → bank.Vm9IO_UH.d.ts} +32 -32
- package/dist/shared/{bank.CDLlfzki.cjs → bank.kYaMR0UG.cjs} +23 -3
- package/dist/types.cjs +3 -2
- package/dist/types.d.cts +8 -3
- package/dist/types.d.mts +8 -3
- package/dist/types.d.ts +8 -3
- package/dist/types.mjs +2 -2
- package/package.json +1 -1
|
@@ -31,20 +31,20 @@ declare const accountCredentialsInsertSchema: drizzle_zod.BuildSchema<"insert",
|
|
|
31
31
|
tableName: "account_credentials";
|
|
32
32
|
dataType: "string";
|
|
33
33
|
columnType: "SQLiteText";
|
|
34
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
34
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
35
35
|
driverParam: string;
|
|
36
36
|
notNull: true;
|
|
37
37
|
hasDefault: false;
|
|
38
38
|
isPrimaryKey: false;
|
|
39
39
|
isAutoincrement: false;
|
|
40
40
|
hasRuntimeDefault: false;
|
|
41
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
41
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
42
42
|
baseColumn: never;
|
|
43
43
|
identity: undefined;
|
|
44
44
|
generated: undefined;
|
|
45
45
|
}, {}, {
|
|
46
46
|
length: number | undefined;
|
|
47
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
47
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
48
48
|
}>;
|
|
49
49
|
type: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
50
50
|
name: "type";
|
|
@@ -255,20 +255,20 @@ declare const accountCredentialsUpdateSchema: drizzle_zod.BuildSchema<"update",
|
|
|
255
255
|
tableName: "account_credentials";
|
|
256
256
|
dataType: "string";
|
|
257
257
|
columnType: "SQLiteText";
|
|
258
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
258
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
259
259
|
driverParam: string;
|
|
260
260
|
notNull: true;
|
|
261
261
|
hasDefault: false;
|
|
262
262
|
isPrimaryKey: false;
|
|
263
263
|
isAutoincrement: false;
|
|
264
264
|
hasRuntimeDefault: false;
|
|
265
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
265
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
266
266
|
baseColumn: never;
|
|
267
267
|
identity: undefined;
|
|
268
268
|
generated: undefined;
|
|
269
269
|
}, {}, {
|
|
270
270
|
length: number | undefined;
|
|
271
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
271
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
272
272
|
}>;
|
|
273
273
|
type: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
274
274
|
name: "type";
|
|
@@ -479,20 +479,20 @@ declare const accountCredentialsSelectSchema: drizzle_zod.BuildSchema<"select",
|
|
|
479
479
|
tableName: "account_credentials";
|
|
480
480
|
dataType: "string";
|
|
481
481
|
columnType: "SQLiteText";
|
|
482
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
482
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
483
483
|
driverParam: string;
|
|
484
484
|
notNull: true;
|
|
485
485
|
hasDefault: false;
|
|
486
486
|
isPrimaryKey: false;
|
|
487
487
|
isAutoincrement: false;
|
|
488
488
|
hasRuntimeDefault: false;
|
|
489
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
489
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
490
490
|
baseColumn: never;
|
|
491
491
|
identity: undefined;
|
|
492
492
|
generated: undefined;
|
|
493
493
|
}, {}, {
|
|
494
494
|
length: number | undefined;
|
|
495
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
495
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
496
496
|
}>;
|
|
497
497
|
type: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
498
498
|
name: "type";
|
|
@@ -788,20 +788,20 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
788
788
|
tableName: "account";
|
|
789
789
|
dataType: "string";
|
|
790
790
|
columnType: "SQLiteText";
|
|
791
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
791
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
792
792
|
driverParam: string;
|
|
793
793
|
notNull: true;
|
|
794
794
|
hasDefault: false;
|
|
795
795
|
isPrimaryKey: false;
|
|
796
796
|
isAutoincrement: false;
|
|
797
797
|
hasRuntimeDefault: false;
|
|
798
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
798
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
799
799
|
baseColumn: never;
|
|
800
800
|
identity: undefined;
|
|
801
801
|
generated: undefined;
|
|
802
802
|
}, {}, {
|
|
803
803
|
length: number | undefined;
|
|
804
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
804
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
805
805
|
}>;
|
|
806
806
|
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
807
807
|
name: "status";
|
|
@@ -1332,20 +1332,20 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
1332
1332
|
tableName: "account";
|
|
1333
1333
|
dataType: "string";
|
|
1334
1334
|
columnType: "SQLiteText";
|
|
1335
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1335
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1336
1336
|
driverParam: string;
|
|
1337
1337
|
notNull: true;
|
|
1338
1338
|
hasDefault: false;
|
|
1339
1339
|
isPrimaryKey: false;
|
|
1340
1340
|
isAutoincrement: false;
|
|
1341
1341
|
hasRuntimeDefault: false;
|
|
1342
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
1342
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
1343
1343
|
baseColumn: never;
|
|
1344
1344
|
identity: undefined;
|
|
1345
1345
|
generated: undefined;
|
|
1346
1346
|
}, {}, {
|
|
1347
1347
|
length: number | undefined;
|
|
1348
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1348
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1349
1349
|
}>;
|
|
1350
1350
|
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1351
1351
|
name: "status";
|
|
@@ -1876,20 +1876,20 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
1876
1876
|
tableName: "account";
|
|
1877
1877
|
dataType: "string";
|
|
1878
1878
|
columnType: "SQLiteText";
|
|
1879
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1879
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1880
1880
|
driverParam: string;
|
|
1881
1881
|
notNull: true;
|
|
1882
1882
|
hasDefault: false;
|
|
1883
1883
|
isPrimaryKey: false;
|
|
1884
1884
|
isAutoincrement: false;
|
|
1885
1885
|
hasRuntimeDefault: false;
|
|
1886
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
1886
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
1887
1887
|
baseColumn: never;
|
|
1888
1888
|
identity: undefined;
|
|
1889
1889
|
generated: undefined;
|
|
1890
1890
|
}, {}, {
|
|
1891
1891
|
length: number | undefined;
|
|
1892
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1892
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1893
1893
|
}>;
|
|
1894
1894
|
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1895
1895
|
name: "status";
|
|
@@ -2329,7 +2329,7 @@ type AccountSelectType = z.infer<typeof accountSelectSchema>;
|
|
|
2329
2329
|
interface BankAccountWithLastSync extends ConnectedAccount {
|
|
2330
2330
|
lastSyncedAt: Date;
|
|
2331
2331
|
}
|
|
2332
|
-
declare const CONNECTOR_KEYS: readonly ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
2332
|
+
declare const CONNECTOR_KEYS: readonly ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
2333
2333
|
type ConnectorKey = (typeof CONNECTOR_KEYS)[number];
|
|
2334
2334
|
declare const CREDENTIALS_TYPES: readonly ["AUTH_TOKEN", "REFRESH_TOKEN", "CLIENT_ID", "API_KEY"];
|
|
2335
2335
|
type CredentialsType = (typeof CREDENTIALS_TYPES)[number];
|
|
@@ -2623,7 +2623,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2623
2623
|
tableName: "batch";
|
|
2624
2624
|
dataType: "string";
|
|
2625
2625
|
columnType: "SQLiteText";
|
|
2626
|
-
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2626
|
+
data: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2627
2627
|
driverParam: string;
|
|
2628
2628
|
notNull: false;
|
|
2629
2629
|
hasDefault: false;
|
|
@@ -2636,7 +2636,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2636
2636
|
generated: undefined;
|
|
2637
2637
|
}, {}, {
|
|
2638
2638
|
length: number | undefined;
|
|
2639
|
-
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2639
|
+
$type: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2640
2640
|
}>;
|
|
2641
2641
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2642
2642
|
name: "status_reason";
|
|
@@ -2969,20 +2969,20 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2969
2969
|
tableName: "payment";
|
|
2970
2970
|
dataType: "string";
|
|
2971
2971
|
columnType: "SQLiteText";
|
|
2972
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
2972
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
2973
2973
|
driverParam: string;
|
|
2974
2974
|
notNull: true;
|
|
2975
2975
|
hasDefault: false;
|
|
2976
2976
|
isPrimaryKey: false;
|
|
2977
2977
|
isAutoincrement: false;
|
|
2978
2978
|
hasRuntimeDefault: false;
|
|
2979
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
2979
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
2980
2980
|
baseColumn: never;
|
|
2981
2981
|
identity: undefined;
|
|
2982
2982
|
generated: undefined;
|
|
2983
2983
|
}, {}, {
|
|
2984
2984
|
length: number | undefined;
|
|
2985
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
2985
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
2986
2986
|
}>;
|
|
2987
2987
|
amount: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2988
2988
|
name: "amount";
|
|
@@ -3066,7 +3066,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3066
3066
|
tableName: "payment";
|
|
3067
3067
|
dataType: "string";
|
|
3068
3068
|
columnType: "SQLiteText";
|
|
3069
|
-
data: "
|
|
3069
|
+
data: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3070
3070
|
driverParam: string;
|
|
3071
3071
|
notNull: true;
|
|
3072
3072
|
hasDefault: false;
|
|
@@ -3079,7 +3079,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3079
3079
|
generated: undefined;
|
|
3080
3080
|
}, {}, {
|
|
3081
3081
|
length: number | undefined;
|
|
3082
|
-
$type: "
|
|
3082
|
+
$type: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3083
3083
|
}>;
|
|
3084
3084
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3085
3085
|
name: "status_reason";
|
|
@@ -3794,20 +3794,20 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3794
3794
|
tableName: "account";
|
|
3795
3795
|
dataType: "string";
|
|
3796
3796
|
columnType: "SQLiteText";
|
|
3797
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
3797
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
3798
3798
|
driverParam: string;
|
|
3799
3799
|
notNull: true;
|
|
3800
3800
|
hasDefault: false;
|
|
3801
3801
|
isPrimaryKey: false;
|
|
3802
3802
|
isAutoincrement: false;
|
|
3803
3803
|
hasRuntimeDefault: false;
|
|
3804
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
3804
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
3805
3805
|
baseColumn: never;
|
|
3806
3806
|
identity: undefined;
|
|
3807
3807
|
generated: undefined;
|
|
3808
3808
|
}, {}, {
|
|
3809
3809
|
length: number | undefined;
|
|
3810
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
3810
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
3811
3811
|
}>;
|
|
3812
3812
|
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3813
3813
|
name: "status";
|
|
@@ -4267,20 +4267,20 @@ declare const accountCredentials: drizzle_orm_sqlite_core.SQLiteTableWithColumns
|
|
|
4267
4267
|
tableName: "account_credentials";
|
|
4268
4268
|
dataType: "string";
|
|
4269
4269
|
columnType: "SQLiteText";
|
|
4270
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
4270
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
4271
4271
|
driverParam: string;
|
|
4272
4272
|
notNull: true;
|
|
4273
4273
|
hasDefault: false;
|
|
4274
4274
|
isPrimaryKey: false;
|
|
4275
4275
|
isAutoincrement: false;
|
|
4276
4276
|
hasRuntimeDefault: false;
|
|
4277
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
4277
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
4278
4278
|
baseColumn: never;
|
|
4279
4279
|
identity: undefined;
|
|
4280
4280
|
generated: undefined;
|
|
4281
4281
|
}, {}, {
|
|
4282
4282
|
length: number | undefined;
|
|
4283
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
4283
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
4284
4284
|
}>;
|
|
4285
4285
|
type: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
4286
4286
|
name: "type";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const dateFns = require('date-fns');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
|
-
require('./bank.
|
|
6
|
+
require('./bank.DgGri2Wr.cjs');
|
|
7
7
|
require('drizzle-orm');
|
|
8
8
|
const jose = require('jose');
|
|
9
9
|
require('node:crypto');
|
|
@@ -850,8 +850,8 @@ class AirBankConnector extends FinbricksConnector {
|
|
|
850
850
|
constructor(config) {
|
|
851
851
|
super("AIRBANK", config);
|
|
852
852
|
}
|
|
853
|
-
supportsBatch(
|
|
854
|
-
return
|
|
853
|
+
supportsBatch() {
|
|
854
|
+
return false;
|
|
855
855
|
}
|
|
856
856
|
}
|
|
857
857
|
|
|
@@ -889,6 +889,15 @@ class FioConnector extends FinbricksConnector {
|
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
|
|
892
|
+
class KBConnector extends FinbricksConnector {
|
|
893
|
+
constructor(config) {
|
|
894
|
+
super("KB", config);
|
|
895
|
+
}
|
|
896
|
+
supportsBatch(paymentType) {
|
|
897
|
+
return paymentType === "DOMESTIC";
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
|
|
892
901
|
class MonetaConnector extends FinbricksConnector {
|
|
893
902
|
constructor(config) {
|
|
894
903
|
super("MONETA", config);
|
|
@@ -993,6 +1002,16 @@ const initiateConnector = async ({
|
|
|
993
1002
|
REDIRECT_URI: env.REDIRECT_URI,
|
|
994
1003
|
connectedAccounts
|
|
995
1004
|
});
|
|
1005
|
+
case "KB":
|
|
1006
|
+
return new KBConnector({
|
|
1007
|
+
BASE_URI: env.FINBRICKS_BASE_URI,
|
|
1008
|
+
MERCHANT_ID: env.FINBRICKS_MERCHANT_ID,
|
|
1009
|
+
PRIVATE_KEY_PEM: (await env.SECRETS_STORE.get({
|
|
1010
|
+
secretName: "BANK_SERVICE_FINBRICKS_PRIVATE_KEY_PEM"
|
|
1011
|
+
})).data?.secretValue || "",
|
|
1012
|
+
REDIRECT_URI: env.REDIRECT_URI,
|
|
1013
|
+
connectedAccounts
|
|
1014
|
+
});
|
|
996
1015
|
case "DBU":
|
|
997
1016
|
return new DbuConnector({
|
|
998
1017
|
BASE_URL: env.DBUCS_BASE_URI,
|
|
@@ -1915,6 +1934,7 @@ exports.FINBRICKS_ENDPOINTS = FINBRICKS_ENDPOINTS;
|
|
|
1915
1934
|
exports.FinbricksClient = FinbricksClient;
|
|
1916
1935
|
exports.FinbricksConnector = FinbricksConnector;
|
|
1917
1936
|
exports.IBankConnector = IBankConnector;
|
|
1937
|
+
exports.KBConnector = KBConnector;
|
|
1918
1938
|
exports.MockCobsConnector = MockCobsConnector;
|
|
1919
1939
|
exports.MockConnector = MockConnector;
|
|
1920
1940
|
exports.assignAccount = assignAccount;
|
package/dist/types.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mock_connector = require('./shared/bank.
|
|
4
|
-
const payment_schema = require('./shared/bank.
|
|
3
|
+
const mock_connector = require('./shared/bank.kYaMR0UG.cjs');
|
|
4
|
+
const payment_schema = require('./shared/bank.DgGri2Wr.cjs');
|
|
5
5
|
const batchLifecycle = require('./shared/bank.Bg3Pdwm4.cjs');
|
|
6
6
|
const generalCodes = require('@develit-io/general-codes');
|
|
7
7
|
require('@develit-io/backend-sdk');
|
|
@@ -21,6 +21,7 @@ exports.FINBRICKS_ENDPOINTS = mock_connector.FINBRICKS_ENDPOINTS;
|
|
|
21
21
|
exports.FinbricksClient = mock_connector.FinbricksClient;
|
|
22
22
|
exports.FinbricksConnector = mock_connector.FinbricksConnector;
|
|
23
23
|
exports.IBankConnector = mock_connector.IBankConnector;
|
|
24
|
+
exports.KBConnector = mock_connector.KBConnector;
|
|
24
25
|
exports.MockCobsConnector = mock_connector.MockCobsConnector;
|
|
25
26
|
exports.MockConnector = mock_connector.MockConnector;
|
|
26
27
|
exports.assignAccount = mock_connector.assignAccount;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, a as ConnectorKey, b as ConnectedAccount, c as PaymentType, d as AccountCredentialsInsertType, e as AccountInsertType, f as BatchedPayment, g as InitiatedPayment, h as InitiatedBatch, A as AccountSelectType, i as ParsedBankPayment, j as PaymentStatus, k as BatchStatus, l as IncomingPayment, m as BatchMetadata, n as CurrencyCode, o as BankCode, p as CountryCode, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, s as PreparedPayment, u as CompletedPayment } from './shared/bank.
|
|
2
|
-
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BatchInsertType, J as BatchLifecycle, K as BatchPayment, B as BatchSelectType, M as CHARGE_BEARERS, N as CONNECTOR_KEYS, O as COUNTRY_CODES, Q as CREDENTIALS_TYPES, R as ChargeBearer, S as CompletedBatch, C as ConfigEnvironmentBank, T as CreatedBatch, U as CredentialsType, V as INSTRUCTION_PRIORITIES, W as InstructionPriority, L as LastSyncMetadata, X as PAYMENT_DIRECTIONS, Y as PAYMENT_STATUSES, Z as PAYMENT_TYPES, _ as PaymentDirection, $ as PaymentFailedInsertType, a0 as PaymentInsertType, a1 as PaymentLifecycle, a2 as PaymentPreparedInsertType, a3 as ProcessingBatch, a4 as ReadyToSignBatch, a5 as SignedBatch, a6 as TOKEN_TYPES, a7 as TokenType, a8 as accountCredentialsInsertSchema, a9 as accountCredentialsSelectSchema, aa as accountCredentialsUpdateSchema, ab as accountInsertSchema, ac as accountSelectSchema, ad as accountUpdateSchema, ae as hasPaymentAccountAssigned, af as isBatchCompleted, ag as isBatchFailed, ah as isBatchInitiated, ai as isBatchOpen, aj as isBatchProcessing, ak as isBatchReadyToSign, al as isBatchSigned, am as isPaymentCompleted, an as isPaymentPrepared } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, a as ConnectorKey, b as ConnectedAccount, c as PaymentType, d as AccountCredentialsInsertType, e as AccountInsertType, f as BatchedPayment, g as InitiatedPayment, h as InitiatedBatch, A as AccountSelectType, i as ParsedBankPayment, j as PaymentStatus, k as BatchStatus, l as IncomingPayment, m as BatchMetadata, n as CurrencyCode, o as BankCode, p as CountryCode, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, s as PreparedPayment, u as CompletedPayment } from './shared/bank.Vm9IO_UH.cjs';
|
|
2
|
+
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BatchInsertType, J as BatchLifecycle, K as BatchPayment, B as BatchSelectType, M as CHARGE_BEARERS, N as CONNECTOR_KEYS, O as COUNTRY_CODES, Q as CREDENTIALS_TYPES, R as ChargeBearer, S as CompletedBatch, C as ConfigEnvironmentBank, T as CreatedBatch, U as CredentialsType, V as INSTRUCTION_PRIORITIES, W as InstructionPriority, L as LastSyncMetadata, X as PAYMENT_DIRECTIONS, Y as PAYMENT_STATUSES, Z as PAYMENT_TYPES, _ as PaymentDirection, $ as PaymentFailedInsertType, a0 as PaymentInsertType, a1 as PaymentLifecycle, a2 as PaymentPreparedInsertType, a3 as ProcessingBatch, a4 as ReadyToSignBatch, a5 as SignedBatch, a6 as TOKEN_TYPES, a7 as TokenType, a8 as accountCredentialsInsertSchema, a9 as accountCredentialsSelectSchema, aa as accountCredentialsUpdateSchema, ab as accountInsertSchema, ac as accountSelectSchema, ad as accountUpdateSchema, ae as hasPaymentAccountAssigned, af as isBatchCompleted, ag as isBatchFailed, ah as isBatchInitiated, ai as isBatchOpen, aj as isBatchProcessing, ak as isBatchReadyToSign, al as isBatchSigned, am as isPaymentCompleted, an as isPaymentPrepared } from './shared/bank.Vm9IO_UH.cjs';
|
|
3
3
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BC06Rbrx.cjs';
|
|
4
4
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
5
5
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -594,6 +594,11 @@ declare abstract class FinbricksConnector extends IBankConnector {
|
|
|
594
594
|
}>;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
+
declare class KBConnector extends FinbricksConnector {
|
|
598
|
+
constructor(config: FinbricksConnectorConfig);
|
|
599
|
+
supportsBatch(paymentType: PaymentType): boolean;
|
|
600
|
+
}
|
|
601
|
+
|
|
597
602
|
declare class MockCobsConnector extends FinbricksConnector {
|
|
598
603
|
constructor(config: FinbricksConnectorConfig);
|
|
599
604
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
@@ -1483,5 +1488,5 @@ declare function toCompletedPayment(payment: PreparedPayment, status: 'COMPLETED
|
|
|
1483
1488
|
*/
|
|
1484
1489
|
declare function batchTransform<TInput, TOutput>(payments: TInput[], transformer: (payment: TInput) => TOutput): TOutput[];
|
|
1485
1490
|
|
|
1486
|
-
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BankCode, BatchMetadata, BatchStatus, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentSelectType, PaymentStatus, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, batchTransform, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toCompletedPayment, toIncomingPayment, toPreparedPayment, useFinbricksFetch };
|
|
1491
|
+
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BankCode, BatchMetadata, BatchStatus, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, KBConnector, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentSelectType, PaymentStatus, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, batchTransform, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toCompletedPayment, toIncomingPayment, toPreparedPayment, useFinbricksFetch };
|
|
1487
1492
|
export type { BankPaymentEvent, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksAccount, FinbricksAccountTransactionsResponse, FinbricksAccountsListResponse, FinbricksAuthTokenResponse, FinbricksBatchBody, FinbricksBatchResponse, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectAccountResponse, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksPaymentResponse, FinbricksProvider, FinbricksRequestInit, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, a as ConnectorKey, b as ConnectedAccount, c as PaymentType, d as AccountCredentialsInsertType, e as AccountInsertType, f as BatchedPayment, g as InitiatedPayment, h as InitiatedBatch, A as AccountSelectType, i as ParsedBankPayment, j as PaymentStatus, k as BatchStatus, l as IncomingPayment, m as BatchMetadata, n as CurrencyCode, o as BankCode, p as CountryCode, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, s as PreparedPayment, u as CompletedPayment } from './shared/bank.
|
|
2
|
-
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BatchInsertType, J as BatchLifecycle, K as BatchPayment, B as BatchSelectType, M as CHARGE_BEARERS, N as CONNECTOR_KEYS, O as COUNTRY_CODES, Q as CREDENTIALS_TYPES, R as ChargeBearer, S as CompletedBatch, C as ConfigEnvironmentBank, T as CreatedBatch, U as CredentialsType, V as INSTRUCTION_PRIORITIES, W as InstructionPriority, L as LastSyncMetadata, X as PAYMENT_DIRECTIONS, Y as PAYMENT_STATUSES, Z as PAYMENT_TYPES, _ as PaymentDirection, $ as PaymentFailedInsertType, a0 as PaymentInsertType, a1 as PaymentLifecycle, a2 as PaymentPreparedInsertType, a3 as ProcessingBatch, a4 as ReadyToSignBatch, a5 as SignedBatch, a6 as TOKEN_TYPES, a7 as TokenType, a8 as accountCredentialsInsertSchema, a9 as accountCredentialsSelectSchema, aa as accountCredentialsUpdateSchema, ab as accountInsertSchema, ac as accountSelectSchema, ad as accountUpdateSchema, ae as hasPaymentAccountAssigned, af as isBatchCompleted, ag as isBatchFailed, ah as isBatchInitiated, ai as isBatchOpen, aj as isBatchProcessing, ak as isBatchReadyToSign, al as isBatchSigned, am as isPaymentCompleted, an as isPaymentPrepared } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, a as ConnectorKey, b as ConnectedAccount, c as PaymentType, d as AccountCredentialsInsertType, e as AccountInsertType, f as BatchedPayment, g as InitiatedPayment, h as InitiatedBatch, A as AccountSelectType, i as ParsedBankPayment, j as PaymentStatus, k as BatchStatus, l as IncomingPayment, m as BatchMetadata, n as CurrencyCode, o as BankCode, p as CountryCode, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, s as PreparedPayment, u as CompletedPayment } from './shared/bank.Vm9IO_UH.mjs';
|
|
2
|
+
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BatchInsertType, J as BatchLifecycle, K as BatchPayment, B as BatchSelectType, M as CHARGE_BEARERS, N as CONNECTOR_KEYS, O as COUNTRY_CODES, Q as CREDENTIALS_TYPES, R as ChargeBearer, S as CompletedBatch, C as ConfigEnvironmentBank, T as CreatedBatch, U as CredentialsType, V as INSTRUCTION_PRIORITIES, W as InstructionPriority, L as LastSyncMetadata, X as PAYMENT_DIRECTIONS, Y as PAYMENT_STATUSES, Z as PAYMENT_TYPES, _ as PaymentDirection, $ as PaymentFailedInsertType, a0 as PaymentInsertType, a1 as PaymentLifecycle, a2 as PaymentPreparedInsertType, a3 as ProcessingBatch, a4 as ReadyToSignBatch, a5 as SignedBatch, a6 as TOKEN_TYPES, a7 as TokenType, a8 as accountCredentialsInsertSchema, a9 as accountCredentialsSelectSchema, aa as accountCredentialsUpdateSchema, ab as accountInsertSchema, ac as accountSelectSchema, ad as accountUpdateSchema, ae as hasPaymentAccountAssigned, af as isBatchCompleted, ag as isBatchFailed, ah as isBatchInitiated, ai as isBatchOpen, aj as isBatchProcessing, ak as isBatchReadyToSign, al as isBatchSigned, am as isPaymentCompleted, an as isPaymentPrepared } from './shared/bank.Vm9IO_UH.mjs';
|
|
3
3
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BC06Rbrx.mjs';
|
|
4
4
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
5
5
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -594,6 +594,11 @@ declare abstract class FinbricksConnector extends IBankConnector {
|
|
|
594
594
|
}>;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
+
declare class KBConnector extends FinbricksConnector {
|
|
598
|
+
constructor(config: FinbricksConnectorConfig);
|
|
599
|
+
supportsBatch(paymentType: PaymentType): boolean;
|
|
600
|
+
}
|
|
601
|
+
|
|
597
602
|
declare class MockCobsConnector extends FinbricksConnector {
|
|
598
603
|
constructor(config: FinbricksConnectorConfig);
|
|
599
604
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
@@ -1483,5 +1488,5 @@ declare function toCompletedPayment(payment: PreparedPayment, status: 'COMPLETED
|
|
|
1483
1488
|
*/
|
|
1484
1489
|
declare function batchTransform<TInput, TOutput>(payments: TInput[], transformer: (payment: TInput) => TOutput): TOutput[];
|
|
1485
1490
|
|
|
1486
|
-
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BankCode, BatchMetadata, BatchStatus, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentSelectType, PaymentStatus, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, batchTransform, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toCompletedPayment, toIncomingPayment, toPreparedPayment, useFinbricksFetch };
|
|
1491
|
+
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BankCode, BatchMetadata, BatchStatus, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, KBConnector, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentSelectType, PaymentStatus, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, batchTransform, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toCompletedPayment, toIncomingPayment, toPreparedPayment, useFinbricksFetch };
|
|
1487
1492
|
export type { BankPaymentEvent, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksAccount, FinbricksAccountTransactionsResponse, FinbricksAccountsListResponse, FinbricksAuthTokenResponse, FinbricksBatchBody, FinbricksBatchResponse, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectAccountResponse, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksPaymentResponse, FinbricksProvider, FinbricksRequestInit, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, a as ConnectorKey, b as ConnectedAccount, c as PaymentType, d as AccountCredentialsInsertType, e as AccountInsertType, f as BatchedPayment, g as InitiatedPayment, h as InitiatedBatch, A as AccountSelectType, i as ParsedBankPayment, j as PaymentStatus, k as BatchStatus, l as IncomingPayment, m as BatchMetadata, n as CurrencyCode, o as BankCode, p as CountryCode, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, s as PreparedPayment, u as CompletedPayment } from './shared/bank.
|
|
2
|
-
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BatchInsertType, J as BatchLifecycle, K as BatchPayment, B as BatchSelectType, M as CHARGE_BEARERS, N as CONNECTOR_KEYS, O as COUNTRY_CODES, Q as CREDENTIALS_TYPES, R as ChargeBearer, S as CompletedBatch, C as ConfigEnvironmentBank, T as CreatedBatch, U as CredentialsType, V as INSTRUCTION_PRIORITIES, W as InstructionPriority, L as LastSyncMetadata, X as PAYMENT_DIRECTIONS, Y as PAYMENT_STATUSES, Z as PAYMENT_TYPES, _ as PaymentDirection, $ as PaymentFailedInsertType, a0 as PaymentInsertType, a1 as PaymentLifecycle, a2 as PaymentPreparedInsertType, a3 as ProcessingBatch, a4 as ReadyToSignBatch, a5 as SignedBatch, a6 as TOKEN_TYPES, a7 as TokenType, a8 as accountCredentialsInsertSchema, a9 as accountCredentialsSelectSchema, aa as accountCredentialsUpdateSchema, ab as accountInsertSchema, ac as accountSelectSchema, ad as accountUpdateSchema, ae as hasPaymentAccountAssigned, af as isBatchCompleted, ag as isBatchFailed, ah as isBatchInitiated, ai as isBatchOpen, aj as isBatchProcessing, ak as isBatchReadyToSign, al as isBatchSigned, am as isPaymentCompleted, an as isPaymentPrepared } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, a as ConnectorKey, b as ConnectedAccount, c as PaymentType, d as AccountCredentialsInsertType, e as AccountInsertType, f as BatchedPayment, g as InitiatedPayment, h as InitiatedBatch, A as AccountSelectType, i as ParsedBankPayment, j as PaymentStatus, k as BatchStatus, l as IncomingPayment, m as BatchMetadata, n as CurrencyCode, o as BankCode, p as CountryCode, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, s as PreparedPayment, u as CompletedPayment } from './shared/bank.Vm9IO_UH.js';
|
|
2
|
+
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BatchInsertType, J as BatchLifecycle, K as BatchPayment, B as BatchSelectType, M as CHARGE_BEARERS, N as CONNECTOR_KEYS, O as COUNTRY_CODES, Q as CREDENTIALS_TYPES, R as ChargeBearer, S as CompletedBatch, C as ConfigEnvironmentBank, T as CreatedBatch, U as CredentialsType, V as INSTRUCTION_PRIORITIES, W as InstructionPriority, L as LastSyncMetadata, X as PAYMENT_DIRECTIONS, Y as PAYMENT_STATUSES, Z as PAYMENT_TYPES, _ as PaymentDirection, $ as PaymentFailedInsertType, a0 as PaymentInsertType, a1 as PaymentLifecycle, a2 as PaymentPreparedInsertType, a3 as ProcessingBatch, a4 as ReadyToSignBatch, a5 as SignedBatch, a6 as TOKEN_TYPES, a7 as TokenType, a8 as accountCredentialsInsertSchema, a9 as accountCredentialsSelectSchema, aa as accountCredentialsUpdateSchema, ab as accountInsertSchema, ac as accountSelectSchema, ad as accountUpdateSchema, ae as hasPaymentAccountAssigned, af as isBatchCompleted, ag as isBatchFailed, ah as isBatchInitiated, ai as isBatchOpen, aj as isBatchProcessing, ak as isBatchReadyToSign, al as isBatchSigned, am as isPaymentCompleted, an as isPaymentPrepared } from './shared/bank.Vm9IO_UH.js';
|
|
3
3
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BC06Rbrx.js';
|
|
4
4
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
5
5
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -594,6 +594,11 @@ declare abstract class FinbricksConnector extends IBankConnector {
|
|
|
594
594
|
}>;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
+
declare class KBConnector extends FinbricksConnector {
|
|
598
|
+
constructor(config: FinbricksConnectorConfig);
|
|
599
|
+
supportsBatch(paymentType: PaymentType): boolean;
|
|
600
|
+
}
|
|
601
|
+
|
|
597
602
|
declare class MockCobsConnector extends FinbricksConnector {
|
|
598
603
|
constructor(config: FinbricksConnectorConfig);
|
|
599
604
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
@@ -1483,5 +1488,5 @@ declare function toCompletedPayment(payment: PreparedPayment, status: 'COMPLETED
|
|
|
1483
1488
|
*/
|
|
1484
1489
|
declare function batchTransform<TInput, TOutput>(payments: TInput[], transformer: (payment: TInput) => TOutput): TOutput[];
|
|
1485
1490
|
|
|
1486
|
-
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BankCode, BatchMetadata, BatchStatus, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentSelectType, PaymentStatus, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, batchTransform, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toCompletedPayment, toIncomingPayment, toPreparedPayment, useFinbricksFetch };
|
|
1491
|
+
export { AccountAssignedPayment, AccountCredentialsInsertType, AccountInsertType, AccountSelectType, BankCode, BatchMetadata, BatchStatus, BatchedPayment, CompletedPayment, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, DbuConnector, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPayment, IncomingPayment as IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, KBConnector, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentSelectType, PaymentStatus, PaymentType, PreparedPayment, SendPaymentInput, assignAccount, batchTransform, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, toBatchedPayment, toCompletedPayment, toIncomingPayment, toPreparedPayment, useFinbricksFetch };
|
|
1487
1492
|
export type { BankPaymentEvent, DbuConnectorConfig, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksAccount, FinbricksAccountTransactionsResponse, FinbricksAccountsListResponse, FinbricksAuthTokenResponse, FinbricksBatchBody, FinbricksBatchResponse, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectAccountResponse, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksPaymentResponse, FinbricksProvider, FinbricksRequestInit, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, e as batchTransform, s as signFinbricksJws, t as toBatchedPayment, f as toCompletedPayment, g as toIncomingPayment, h as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.
|
|
2
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, a as CONNECTOR_KEYS, b as COUNTRY_CODES, c as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, e as PAYMENT_TYPES, T as TOKEN_TYPES, f as accountCredentialsInsertSchema, g as accountCredentialsSelectSchema, h as accountCredentialsUpdateSchema, i as accountInsertSchema, j as accountSelectSchema, k as accountUpdateSchema, o as ottInsertSchema, l as ottSelectSchema, m as ottUpdateSchema } from './shared/bank.
|
|
1
|
+
export { D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, e as batchTransform, s as signFinbricksJws, t as toBatchedPayment, f as toCompletedPayment, g as toIncomingPayment, h as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.CCQB8FnG.mjs';
|
|
2
|
+
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, a as CONNECTOR_KEYS, b as COUNTRY_CODES, c as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, e as PAYMENT_TYPES, T as TOKEN_TYPES, f as accountCredentialsInsertSchema, g as accountCredentialsSelectSchema, h as accountCredentialsUpdateSchema, i as accountInsertSchema, j as accountSelectSchema, k as accountUpdateSchema, o as ottInsertSchema, l as ottSelectSchema, m as ottUpdateSchema } from './shared/bank.PB07ttj3.mjs';
|
|
3
3
|
export { h as hasPaymentAccountAssigned, i as isBatchCompleted, a as isBatchFailed, b as isBatchInitiated, c as isBatchOpen, d as isBatchProcessing, e as isBatchReadyToSign, f as isBatchSigned, g as isPaymentCompleted, j as isPaymentPrepared } from './shared/bank.CbAwwIhZ.mjs';
|
|
4
4
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
5
5
|
import '@develit-io/backend-sdk';
|