@develit-services/bank 0.8.7 → 0.8.9
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 +237 -277
- package/dist/export/worker.d.cts +25 -20
- package/dist/export/worker.d.mts +25 -20
- package/dist/export/worker.d.ts +25 -20
- package/dist/export/worker.mjs +238 -278
- package/dist/export/workflows.cjs +58 -96
- package/dist/export/workflows.mjs +59 -97
- package/dist/export/wrangler.d.cts +2 -1
- package/dist/export/wrangler.d.mts +2 -1
- package/dist/export/wrangler.d.ts +2 -1
- package/dist/shared/{bank.DEmzZGZW.mjs → bank.B5bZRvgq.mjs} +2 -5
- package/dist/shared/{bank.CQBfbG8u.d.cts → bank.BP_3WMIF.d.cts} +1 -0
- package/dist/shared/{bank.CQBfbG8u.d.mts → bank.BP_3WMIF.d.mts} +1 -0
- package/dist/shared/{bank.CQBfbG8u.d.ts → bank.BP_3WMIF.d.ts} +1 -0
- package/dist/shared/{bank.CA5ytXxp.mjs → bank.BoZtXQpG.mjs} +1 -1
- package/dist/shared/{bank.D1jqaHaF.mjs → bank.BtszLapg.mjs} +128 -20
- package/dist/shared/{bank.C0UN6luZ.mjs → bank.C6jjS1Pl.mjs} +0 -2
- package/dist/shared/{bank.BYRq3yJf.d.ts → bank.CHQ3VSEh.d.ts} +1 -1
- package/dist/shared/{bank.DwyCCyd0.cjs → bank.CtnsGHM8.cjs} +128 -20
- package/dist/shared/{bank.CO89tR9U.d.cts → bank.CwuH4spB.d.mts} +1 -1
- package/dist/shared/{bank.62VzK9Aj.cjs → bank.DJnDSYqE.cjs} +1 -1
- package/dist/shared/{bank.Dm8GHThw.cjs → bank.DT6bg8k5.cjs} +2 -5
- package/dist/shared/{bank.BS7fFjGA.cjs → bank.JVlyPAAb.cjs} +0 -2
- package/dist/shared/{bank.Cns5ss41.d.cts → bank.pgyk4j94.d.cts} +12 -25
- package/dist/shared/{bank.Cns5ss41.d.mts → bank.pgyk4j94.d.mts} +12 -25
- package/dist/shared/{bank.Cns5ss41.d.ts → bank.pgyk4j94.d.ts} +12 -25
- package/dist/shared/{bank.CreoSb2d.d.mts → bank.vPWD7Ce4.d.cts} +1 -1
- package/dist/types.cjs +3 -3
- package/dist/types.d.cts +10 -6
- package/dist/types.d.mts +10 -6
- package/dist/types.d.ts +10 -6
- package/dist/types.mjs +3 -3
- package/package.json +1 -1
|
@@ -90,6 +90,12 @@ type ConnectedAccount = {
|
|
|
90
90
|
declare abstract class IBankConnector {
|
|
91
91
|
/** Unique identifier for this bank connector (e.g., 'ERSTE', 'FINBRICKS', 'MOCK') */
|
|
92
92
|
abstract connectorKey: ConnectorKey;
|
|
93
|
+
/**
|
|
94
|
+
* Lifecycle mode for payment status resolution:
|
|
95
|
+
* - 'batch': statuses are resolved via updateBatchStatuses (getBatchStatus polling)
|
|
96
|
+
* - 'per-payment': statuses are resolved via updatePaymentStatuses (getPaymentStatus polling per payment)
|
|
97
|
+
*/
|
|
98
|
+
abstract readonly lifecycleMode: 'batch' | 'per-payment';
|
|
93
99
|
/** List of bank accounts connected through this connector instance */
|
|
94
100
|
abstract connectedAccounts: ConnectedAccount[];
|
|
95
101
|
/** Optional resolver for loading credentials on demand */
|
|
@@ -2630,7 +2636,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2630
2636
|
tableName: "batch";
|
|
2631
2637
|
dataType: "string";
|
|
2632
2638
|
columnType: "SQLiteText";
|
|
2633
|
-
data: "
|
|
2639
|
+
data: "SIGNED" | "COMPLETED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
|
|
2634
2640
|
driverParam: string;
|
|
2635
2641
|
notNull: false;
|
|
2636
2642
|
hasDefault: false;
|
|
@@ -2643,7 +2649,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2643
2649
|
generated: undefined;
|
|
2644
2650
|
}, {}, {
|
|
2645
2651
|
length: number | undefined;
|
|
2646
|
-
$type: "
|
|
2652
|
+
$type: "SIGNED" | "COMPLETED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
|
|
2647
2653
|
}>;
|
|
2648
2654
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2649
2655
|
name: "status_reason";
|
|
@@ -2895,25 +2901,6 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2895
2901
|
}, {}, {
|
|
2896
2902
|
length: number | undefined;
|
|
2897
2903
|
}>;
|
|
2898
|
-
paymentRequestId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2899
|
-
name: "payment_request_id";
|
|
2900
|
-
tableName: "payment";
|
|
2901
|
-
dataType: "string";
|
|
2902
|
-
columnType: "SQLiteText";
|
|
2903
|
-
data: string;
|
|
2904
|
-
driverParam: string;
|
|
2905
|
-
notNull: false;
|
|
2906
|
-
hasDefault: false;
|
|
2907
|
-
isPrimaryKey: false;
|
|
2908
|
-
isAutoincrement: false;
|
|
2909
|
-
hasRuntimeDefault: false;
|
|
2910
|
-
enumValues: [string, ...string[]];
|
|
2911
|
-
baseColumn: never;
|
|
2912
|
-
identity: undefined;
|
|
2913
|
-
generated: undefined;
|
|
2914
|
-
}, {}, {
|
|
2915
|
-
length: number | undefined;
|
|
2916
|
-
}>;
|
|
2917
2904
|
refId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2918
2905
|
name: "ref_id";
|
|
2919
2906
|
tableName: "payment";
|
|
@@ -3073,7 +3060,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3073
3060
|
tableName: "payment";
|
|
3074
3061
|
dataType: "string";
|
|
3075
3062
|
columnType: "SQLiteText";
|
|
3076
|
-
data: "
|
|
3063
|
+
data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3077
3064
|
driverParam: string;
|
|
3078
3065
|
notNull: true;
|
|
3079
3066
|
hasDefault: false;
|
|
@@ -3086,7 +3073,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3086
3073
|
generated: undefined;
|
|
3087
3074
|
}, {}, {
|
|
3088
3075
|
length: number | undefined;
|
|
3089
|
-
$type: "
|
|
3076
|
+
$type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3090
3077
|
}>;
|
|
3091
3078
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3092
3079
|
name: "status_reason";
|
|
@@ -3667,7 +3654,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3667
3654
|
tableName: "payment_request";
|
|
3668
3655
|
dataType: "string";
|
|
3669
3656
|
columnType: "SQLiteText";
|
|
3670
|
-
data: "
|
|
3657
|
+
data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3671
3658
|
driverParam: string;
|
|
3672
3659
|
notNull: true;
|
|
3673
3660
|
hasDefault: false;
|
|
@@ -3680,7 +3667,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3680
3667
|
generated: undefined;
|
|
3681
3668
|
}, {}, {
|
|
3682
3669
|
length: number | undefined;
|
|
3683
|
-
$type: "
|
|
3670
|
+
$type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3684
3671
|
}>;
|
|
3685
3672
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3686
3673
|
name: "status_reason";
|
|
@@ -90,6 +90,12 @@ type ConnectedAccount = {
|
|
|
90
90
|
declare abstract class IBankConnector {
|
|
91
91
|
/** Unique identifier for this bank connector (e.g., 'ERSTE', 'FINBRICKS', 'MOCK') */
|
|
92
92
|
abstract connectorKey: ConnectorKey;
|
|
93
|
+
/**
|
|
94
|
+
* Lifecycle mode for payment status resolution:
|
|
95
|
+
* - 'batch': statuses are resolved via updateBatchStatuses (getBatchStatus polling)
|
|
96
|
+
* - 'per-payment': statuses are resolved via updatePaymentStatuses (getPaymentStatus polling per payment)
|
|
97
|
+
*/
|
|
98
|
+
abstract readonly lifecycleMode: 'batch' | 'per-payment';
|
|
93
99
|
/** List of bank accounts connected through this connector instance */
|
|
94
100
|
abstract connectedAccounts: ConnectedAccount[];
|
|
95
101
|
/** Optional resolver for loading credentials on demand */
|
|
@@ -2630,7 +2636,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2630
2636
|
tableName: "batch";
|
|
2631
2637
|
dataType: "string";
|
|
2632
2638
|
columnType: "SQLiteText";
|
|
2633
|
-
data: "
|
|
2639
|
+
data: "SIGNED" | "COMPLETED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
|
|
2634
2640
|
driverParam: string;
|
|
2635
2641
|
notNull: false;
|
|
2636
2642
|
hasDefault: false;
|
|
@@ -2643,7 +2649,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2643
2649
|
generated: undefined;
|
|
2644
2650
|
}, {}, {
|
|
2645
2651
|
length: number | undefined;
|
|
2646
|
-
$type: "
|
|
2652
|
+
$type: "SIGNED" | "COMPLETED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
|
|
2647
2653
|
}>;
|
|
2648
2654
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2649
2655
|
name: "status_reason";
|
|
@@ -2895,25 +2901,6 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2895
2901
|
}, {}, {
|
|
2896
2902
|
length: number | undefined;
|
|
2897
2903
|
}>;
|
|
2898
|
-
paymentRequestId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2899
|
-
name: "payment_request_id";
|
|
2900
|
-
tableName: "payment";
|
|
2901
|
-
dataType: "string";
|
|
2902
|
-
columnType: "SQLiteText";
|
|
2903
|
-
data: string;
|
|
2904
|
-
driverParam: string;
|
|
2905
|
-
notNull: false;
|
|
2906
|
-
hasDefault: false;
|
|
2907
|
-
isPrimaryKey: false;
|
|
2908
|
-
isAutoincrement: false;
|
|
2909
|
-
hasRuntimeDefault: false;
|
|
2910
|
-
enumValues: [string, ...string[]];
|
|
2911
|
-
baseColumn: never;
|
|
2912
|
-
identity: undefined;
|
|
2913
|
-
generated: undefined;
|
|
2914
|
-
}, {}, {
|
|
2915
|
-
length: number | undefined;
|
|
2916
|
-
}>;
|
|
2917
2904
|
refId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2918
2905
|
name: "ref_id";
|
|
2919
2906
|
tableName: "payment";
|
|
@@ -3073,7 +3060,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3073
3060
|
tableName: "payment";
|
|
3074
3061
|
dataType: "string";
|
|
3075
3062
|
columnType: "SQLiteText";
|
|
3076
|
-
data: "
|
|
3063
|
+
data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3077
3064
|
driverParam: string;
|
|
3078
3065
|
notNull: true;
|
|
3079
3066
|
hasDefault: false;
|
|
@@ -3086,7 +3073,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3086
3073
|
generated: undefined;
|
|
3087
3074
|
}, {}, {
|
|
3088
3075
|
length: number | undefined;
|
|
3089
|
-
$type: "
|
|
3076
|
+
$type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3090
3077
|
}>;
|
|
3091
3078
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3092
3079
|
name: "status_reason";
|
|
@@ -3667,7 +3654,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3667
3654
|
tableName: "payment_request";
|
|
3668
3655
|
dataType: "string";
|
|
3669
3656
|
columnType: "SQLiteText";
|
|
3670
|
-
data: "
|
|
3657
|
+
data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3671
3658
|
driverParam: string;
|
|
3672
3659
|
notNull: true;
|
|
3673
3660
|
hasDefault: false;
|
|
@@ -3680,7 +3667,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3680
3667
|
generated: undefined;
|
|
3681
3668
|
}, {}, {
|
|
3682
3669
|
length: number | undefined;
|
|
3683
|
-
$type: "
|
|
3670
|
+
$type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3684
3671
|
}>;
|
|
3685
3672
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3686
3673
|
name: "status_reason";
|
|
@@ -90,6 +90,12 @@ type ConnectedAccount = {
|
|
|
90
90
|
declare abstract class IBankConnector {
|
|
91
91
|
/** Unique identifier for this bank connector (e.g., 'ERSTE', 'FINBRICKS', 'MOCK') */
|
|
92
92
|
abstract connectorKey: ConnectorKey;
|
|
93
|
+
/**
|
|
94
|
+
* Lifecycle mode for payment status resolution:
|
|
95
|
+
* - 'batch': statuses are resolved via updateBatchStatuses (getBatchStatus polling)
|
|
96
|
+
* - 'per-payment': statuses are resolved via updatePaymentStatuses (getPaymentStatus polling per payment)
|
|
97
|
+
*/
|
|
98
|
+
abstract readonly lifecycleMode: 'batch' | 'per-payment';
|
|
93
99
|
/** List of bank accounts connected through this connector instance */
|
|
94
100
|
abstract connectedAccounts: ConnectedAccount[];
|
|
95
101
|
/** Optional resolver for loading credentials on demand */
|
|
@@ -2630,7 +2636,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2630
2636
|
tableName: "batch";
|
|
2631
2637
|
dataType: "string";
|
|
2632
2638
|
columnType: "SQLiteText";
|
|
2633
|
-
data: "
|
|
2639
|
+
data: "SIGNED" | "COMPLETED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
|
|
2634
2640
|
driverParam: string;
|
|
2635
2641
|
notNull: false;
|
|
2636
2642
|
hasDefault: false;
|
|
@@ -2643,7 +2649,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2643
2649
|
generated: undefined;
|
|
2644
2650
|
}, {}, {
|
|
2645
2651
|
length: number | undefined;
|
|
2646
|
-
$type: "
|
|
2652
|
+
$type: "SIGNED" | "COMPLETED" | "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNATURE_FAILED";
|
|
2647
2653
|
}>;
|
|
2648
2654
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2649
2655
|
name: "status_reason";
|
|
@@ -2895,25 +2901,6 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2895
2901
|
}, {}, {
|
|
2896
2902
|
length: number | undefined;
|
|
2897
2903
|
}>;
|
|
2898
|
-
paymentRequestId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2899
|
-
name: "payment_request_id";
|
|
2900
|
-
tableName: "payment";
|
|
2901
|
-
dataType: "string";
|
|
2902
|
-
columnType: "SQLiteText";
|
|
2903
|
-
data: string;
|
|
2904
|
-
driverParam: string;
|
|
2905
|
-
notNull: false;
|
|
2906
|
-
hasDefault: false;
|
|
2907
|
-
isPrimaryKey: false;
|
|
2908
|
-
isAutoincrement: false;
|
|
2909
|
-
hasRuntimeDefault: false;
|
|
2910
|
-
enumValues: [string, ...string[]];
|
|
2911
|
-
baseColumn: never;
|
|
2912
|
-
identity: undefined;
|
|
2913
|
-
generated: undefined;
|
|
2914
|
-
}, {}, {
|
|
2915
|
-
length: number | undefined;
|
|
2916
|
-
}>;
|
|
2917
2904
|
refId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2918
2905
|
name: "ref_id";
|
|
2919
2906
|
tableName: "payment";
|
|
@@ -3073,7 +3060,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3073
3060
|
tableName: "payment";
|
|
3074
3061
|
dataType: "string";
|
|
3075
3062
|
columnType: "SQLiteText";
|
|
3076
|
-
data: "
|
|
3063
|
+
data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3077
3064
|
driverParam: string;
|
|
3078
3065
|
notNull: true;
|
|
3079
3066
|
hasDefault: false;
|
|
@@ -3086,7 +3073,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3086
3073
|
generated: undefined;
|
|
3087
3074
|
}, {}, {
|
|
3088
3075
|
length: number | undefined;
|
|
3089
|
-
$type: "
|
|
3076
|
+
$type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3090
3077
|
}>;
|
|
3091
3078
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3092
3079
|
name: "status_reason";
|
|
@@ -3667,7 +3654,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3667
3654
|
tableName: "payment_request";
|
|
3668
3655
|
dataType: "string";
|
|
3669
3656
|
columnType: "SQLiteText";
|
|
3670
|
-
data: "
|
|
3657
|
+
data: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3671
3658
|
driverParam: string;
|
|
3672
3659
|
notNull: true;
|
|
3673
3660
|
hasDefault: false;
|
|
@@ -3680,7 +3667,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3680
3667
|
generated: undefined;
|
|
3681
3668
|
}, {}, {
|
|
3682
3669
|
length: number | undefined;
|
|
3683
|
-
$type: "
|
|
3670
|
+
$type: "CREATED" | "PREPARED" | "SIGNED" | "PENDING" | "COMPLETED" | "FAILED";
|
|
3684
3671
|
}>;
|
|
3685
3672
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3686
3673
|
name: "status_reason";
|
package/dist/types.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mock_connector = require('./shared/bank.
|
|
4
|
-
const paymentRequest_schema = require('./shared/bank.
|
|
3
|
+
const mock_connector = require('./shared/bank.CtnsGHM8.cjs');
|
|
4
|
+
const paymentRequest_schema = require('./shared/bank.JVlyPAAb.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');
|
|
8
8
|
require('date-fns');
|
|
9
9
|
require('drizzle-orm');
|
|
10
|
-
require('drizzle-orm/sqlite-core');
|
|
11
10
|
require('jose');
|
|
12
11
|
require('node:crypto');
|
|
13
12
|
require('drizzle-orm/relations');
|
|
13
|
+
require('drizzle-orm/sqlite-core');
|
|
14
14
|
require('drizzle-zod');
|
|
15
15
|
|
|
16
16
|
|
package/dist/types.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, e as ConnectedAccount, c as PaymentType, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as BatchMetadata, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, a as PaymentRequestSelectType, s as PreparedPayment, u as CompletedPayment, v as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BankCode, K as BatchInsertType, M as BatchLifecycle, N as BatchPayment, B as BatchSelectType, O as CHARGE_BEARERS, Q as CONNECTOR_KEYS, R as COUNTRY_CODES, S as CREDENTIALS_TYPES, T as ChargeBearer, U as CompletedBatch, C as ConfigEnvironmentBank, V as CountryCode, W as CreatedBatch, X as CredentialsType, d as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, P as PaymentQueueMessage, b as SendPaymentSyncInput } from './shared/bank.
|
|
5
|
-
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, e as ConnectedAccount, c as PaymentType, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as BatchMetadata, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, a as PaymentRequestSelectType, s as PreparedPayment, u as CompletedPayment, v as PaymentRequestInsertType } from './shared/bank.pgyk4j94.cjs';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BankCode, K as BatchInsertType, M as BatchLifecycle, N as BatchPayment, B as BatchSelectType, O as CHARGE_BEARERS, Q as CONNECTOR_KEYS, R as COUNTRY_CODES, S as CREDENTIALS_TYPES, T as ChargeBearer, U as CompletedBatch, C as ConfigEnvironmentBank, V as CountryCode, W as CreatedBatch, X as CredentialsType, d as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.pgyk4j94.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.vPWD7Ce4.cjs';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, P as PaymentQueueMessage, b as SendPaymentSyncInput } from './shared/bank.vPWD7Ce4.cjs';
|
|
5
|
+
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BP_3WMIF.cjs';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
|
8
8
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -35,7 +35,7 @@ type FinbricksGetBatchStatusResponse = {
|
|
|
35
35
|
payments: {
|
|
36
36
|
merchantTransactionId: string;
|
|
37
37
|
resultCode: FinbricksTransactionStatus;
|
|
38
|
-
|
|
38
|
+
finalBankStatus: boolean;
|
|
39
39
|
}[];
|
|
40
40
|
batchRecoveryUrl: string;
|
|
41
41
|
};
|
|
@@ -239,6 +239,7 @@ interface FinbricksConnectorConfig {
|
|
|
239
239
|
}
|
|
240
240
|
declare abstract class FinbricksConnector extends IBankConnector {
|
|
241
241
|
connectorKey: ConnectorKey;
|
|
242
|
+
readonly lifecycleMode: 'batch' | 'per-payment';
|
|
242
243
|
connectedAccounts: ConnectedAccount[];
|
|
243
244
|
supportsPaymentType(paymentType: PaymentType): boolean;
|
|
244
245
|
protected readonly finbricks: FinbricksClient;
|
|
@@ -315,6 +316,7 @@ interface DbuConnectorConfig {
|
|
|
315
316
|
}
|
|
316
317
|
declare class DbuConnector extends IBankConnector {
|
|
317
318
|
connectorKey: ConnectorKey;
|
|
319
|
+
readonly lifecycleMode = "per-payment";
|
|
318
320
|
connectedAccounts: ConnectedAccount[];
|
|
319
321
|
readonly kv: KVNamespace;
|
|
320
322
|
readonly api: Fetcher;
|
|
@@ -399,6 +401,7 @@ declare class ErsteConnector extends IBankConnector {
|
|
|
399
401
|
private readonly REDIRECT_URI;
|
|
400
402
|
private readonly ACCOUNTS_URI;
|
|
401
403
|
connectorKey: ConnectorKey;
|
|
404
|
+
readonly lifecycleMode = "batch";
|
|
402
405
|
connectedAccounts: ConnectedAccount[];
|
|
403
406
|
private accessToken;
|
|
404
407
|
constructor(config: ErsteConnectorConfig);
|
|
@@ -465,6 +468,7 @@ declare class MockCobsConnector extends FinbricksConnector {
|
|
|
465
468
|
declare class MockConnector extends IBankConnector {
|
|
466
469
|
connectedAccounts: ConnectedAccount[];
|
|
467
470
|
connectorKey: ConnectorKey;
|
|
471
|
+
readonly lifecycleMode = "batch";
|
|
468
472
|
constructor();
|
|
469
473
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
470
474
|
getAuthUri({ accountId, }: {
|
package/dist/types.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, e as ConnectedAccount, c as PaymentType, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as BatchMetadata, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, a as PaymentRequestSelectType, s as PreparedPayment, u as CompletedPayment, v as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BankCode, K as BatchInsertType, M as BatchLifecycle, N as BatchPayment, B as BatchSelectType, O as CHARGE_BEARERS, Q as CONNECTOR_KEYS, R as COUNTRY_CODES, S as CREDENTIALS_TYPES, T as ChargeBearer, U as CompletedBatch, C as ConfigEnvironmentBank, V as CountryCode, W as CreatedBatch, X as CredentialsType, d as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, P as PaymentQueueMessage, b as SendPaymentSyncInput } from './shared/bank.
|
|
5
|
-
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, e as ConnectedAccount, c as PaymentType, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as BatchMetadata, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, a as PaymentRequestSelectType, s as PreparedPayment, u as CompletedPayment, v as PaymentRequestInsertType } from './shared/bank.pgyk4j94.mjs';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BankCode, K as BatchInsertType, M as BatchLifecycle, N as BatchPayment, B as BatchSelectType, O as CHARGE_BEARERS, Q as CONNECTOR_KEYS, R as COUNTRY_CODES, S as CREDENTIALS_TYPES, T as ChargeBearer, U as CompletedBatch, C as ConfigEnvironmentBank, V as CountryCode, W as CreatedBatch, X as CredentialsType, d as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.pgyk4j94.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CwuH4spB.mjs';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, P as PaymentQueueMessage, b as SendPaymentSyncInput } from './shared/bank.CwuH4spB.mjs';
|
|
5
|
+
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BP_3WMIF.mjs';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
|
8
8
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -35,7 +35,7 @@ type FinbricksGetBatchStatusResponse = {
|
|
|
35
35
|
payments: {
|
|
36
36
|
merchantTransactionId: string;
|
|
37
37
|
resultCode: FinbricksTransactionStatus;
|
|
38
|
-
|
|
38
|
+
finalBankStatus: boolean;
|
|
39
39
|
}[];
|
|
40
40
|
batchRecoveryUrl: string;
|
|
41
41
|
};
|
|
@@ -239,6 +239,7 @@ interface FinbricksConnectorConfig {
|
|
|
239
239
|
}
|
|
240
240
|
declare abstract class FinbricksConnector extends IBankConnector {
|
|
241
241
|
connectorKey: ConnectorKey;
|
|
242
|
+
readonly lifecycleMode: 'batch' | 'per-payment';
|
|
242
243
|
connectedAccounts: ConnectedAccount[];
|
|
243
244
|
supportsPaymentType(paymentType: PaymentType): boolean;
|
|
244
245
|
protected readonly finbricks: FinbricksClient;
|
|
@@ -315,6 +316,7 @@ interface DbuConnectorConfig {
|
|
|
315
316
|
}
|
|
316
317
|
declare class DbuConnector extends IBankConnector {
|
|
317
318
|
connectorKey: ConnectorKey;
|
|
319
|
+
readonly lifecycleMode = "per-payment";
|
|
318
320
|
connectedAccounts: ConnectedAccount[];
|
|
319
321
|
readonly kv: KVNamespace;
|
|
320
322
|
readonly api: Fetcher;
|
|
@@ -399,6 +401,7 @@ declare class ErsteConnector extends IBankConnector {
|
|
|
399
401
|
private readonly REDIRECT_URI;
|
|
400
402
|
private readonly ACCOUNTS_URI;
|
|
401
403
|
connectorKey: ConnectorKey;
|
|
404
|
+
readonly lifecycleMode = "batch";
|
|
402
405
|
connectedAccounts: ConnectedAccount[];
|
|
403
406
|
private accessToken;
|
|
404
407
|
constructor(config: ErsteConnectorConfig);
|
|
@@ -465,6 +468,7 @@ declare class MockCobsConnector extends FinbricksConnector {
|
|
|
465
468
|
declare class MockConnector extends IBankConnector {
|
|
466
469
|
connectedAccounts: ConnectedAccount[];
|
|
467
470
|
connectorKey: ConnectorKey;
|
|
471
|
+
readonly lifecycleMode = "batch";
|
|
468
472
|
constructor();
|
|
469
473
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
470
474
|
getAuthUri({ accountId, }: {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, e as ConnectedAccount, c as PaymentType, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as BatchMetadata, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, a as PaymentRequestSelectType, s as PreparedPayment, u as CompletedPayment, v as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BankCode, K as BatchInsertType, M as BatchLifecycle, N as BatchPayment, B as BatchSelectType, O as CHARGE_BEARERS, Q as CONNECTOR_KEYS, R as COUNTRY_CODES, S as CREDENTIALS_TYPES, T as ChargeBearer, U as CompletedBatch, C as ConfigEnvironmentBank, V as CountryCode, W as CreatedBatch, X as CredentialsType, d as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, P as PaymentQueueMessage, b as SendPaymentSyncInput } from './shared/bank.
|
|
5
|
-
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, e as ConnectedAccount, c as PaymentType, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as BatchMetadata, q as Currency, P as PaymentSelectType, r as AccountAssignedPayment, a as PaymentRequestSelectType, s as PreparedPayment, u as CompletedPayment, v as PaymentRequestInsertType } from './shared/bank.pgyk4j94.js';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BankCode, K as BatchInsertType, M as BatchLifecycle, N as BatchPayment, B as BatchSelectType, O as CHARGE_BEARERS, Q as CONNECTOR_KEYS, R as COUNTRY_CODES, S as CREDENTIALS_TYPES, T as ChargeBearer, U as CompletedBatch, C as ConfigEnvironmentBank, V as CountryCode, W as CreatedBatch, X as CredentialsType, d as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.pgyk4j94.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CHQ3VSEh.js';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, P as PaymentQueueMessage, b as SendPaymentSyncInput } from './shared/bank.CHQ3VSEh.js';
|
|
5
|
+
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BP_3WMIF.js';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
|
8
8
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -35,7 +35,7 @@ type FinbricksGetBatchStatusResponse = {
|
|
|
35
35
|
payments: {
|
|
36
36
|
merchantTransactionId: string;
|
|
37
37
|
resultCode: FinbricksTransactionStatus;
|
|
38
|
-
|
|
38
|
+
finalBankStatus: boolean;
|
|
39
39
|
}[];
|
|
40
40
|
batchRecoveryUrl: string;
|
|
41
41
|
};
|
|
@@ -239,6 +239,7 @@ interface FinbricksConnectorConfig {
|
|
|
239
239
|
}
|
|
240
240
|
declare abstract class FinbricksConnector extends IBankConnector {
|
|
241
241
|
connectorKey: ConnectorKey;
|
|
242
|
+
readonly lifecycleMode: 'batch' | 'per-payment';
|
|
242
243
|
connectedAccounts: ConnectedAccount[];
|
|
243
244
|
supportsPaymentType(paymentType: PaymentType): boolean;
|
|
244
245
|
protected readonly finbricks: FinbricksClient;
|
|
@@ -315,6 +316,7 @@ interface DbuConnectorConfig {
|
|
|
315
316
|
}
|
|
316
317
|
declare class DbuConnector extends IBankConnector {
|
|
317
318
|
connectorKey: ConnectorKey;
|
|
319
|
+
readonly lifecycleMode = "per-payment";
|
|
318
320
|
connectedAccounts: ConnectedAccount[];
|
|
319
321
|
readonly kv: KVNamespace;
|
|
320
322
|
readonly api: Fetcher;
|
|
@@ -399,6 +401,7 @@ declare class ErsteConnector extends IBankConnector {
|
|
|
399
401
|
private readonly REDIRECT_URI;
|
|
400
402
|
private readonly ACCOUNTS_URI;
|
|
401
403
|
connectorKey: ConnectorKey;
|
|
404
|
+
readonly lifecycleMode = "batch";
|
|
402
405
|
connectedAccounts: ConnectedAccount[];
|
|
403
406
|
private accessToken;
|
|
404
407
|
constructor(config: ErsteConnectorConfig);
|
|
@@ -465,6 +468,7 @@ declare class MockCobsConnector extends FinbricksConnector {
|
|
|
465
468
|
declare class MockConnector extends IBankConnector {
|
|
466
469
|
connectedAccounts: ConnectedAccount[];
|
|
467
470
|
connectorKey: ConnectorKey;
|
|
471
|
+
readonly lifecycleMode = "batch";
|
|
468
472
|
constructor();
|
|
469
473
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
470
474
|
getAuthUri({ accountId, }: {
|
package/dist/types.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { C as CsobConnector, 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, s as signFinbricksJws, t as toBatchedPayment, e as toBatchedPaymentFromPaymentRequest, f as toCompletedPayment, g as toIncomingPayment, h as toPaymentRequestInsert, i 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 { C as CsobConnector, 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, s as signFinbricksJws, t as toBatchedPayment, e as toBatchedPaymentFromPaymentRequest, f as toCompletedPayment, g as toIncomingPayment, h as toPaymentRequestInsert, i as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.BtszLapg.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.C6jjS1Pl.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';
|
|
6
6
|
import 'date-fns';
|
|
7
7
|
import 'drizzle-orm';
|
|
8
|
-
import 'drizzle-orm/sqlite-core';
|
|
9
8
|
import 'jose';
|
|
10
9
|
import 'node:crypto';
|
|
11
10
|
import 'drizzle-orm/relations';
|
|
11
|
+
import 'drizzle-orm/sqlite-core';
|
|
12
12
|
import 'drizzle-zod';
|