@develit-services/bank 2.2.3 → 2.3.0
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 +2 -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 +2 -1
- package/dist/export/worker.cjs +15 -15
- package/dist/export/worker.d.cts +25 -4
- package/dist/export/worker.d.mts +25 -4
- package/dist/export/worker.d.ts +25 -4
- package/dist/export/worker.mjs +4 -4
- package/dist/export/workflows.cjs +11 -9
- package/dist/export/workflows.mjs +7 -5
- package/dist/shared/{bank.UBWdag5k.mjs → bank.BSiA1m0B.mjs} +1 -1
- package/dist/shared/{bank.t019WQuV.d.mts → bank.C5NCnZWS.d.ts} +1 -1
- package/dist/shared/{bank.COez_hEH.d.mts → bank.CC4p6Jf-.d.cts} +82 -4
- package/dist/shared/{bank.COez_hEH.d.ts → bank.CC4p6Jf-.d.mts} +82 -4
- package/dist/shared/{bank.COez_hEH.d.cts → bank.CC4p6Jf-.d.ts} +82 -4
- package/dist/shared/{bank.Cw3K7nIh.d.cts → bank.CxAHQOwW.d.cts} +1 -1
- package/dist/shared/{bank.B0EWZbAs.cjs → bank.DICdNw3T.cjs} +1 -1
- package/dist/shared/{bank.VB_ZSWGd.d.ts → bank.Dl3mNNS2.d.mts} +1 -1
- package/dist/shared/{bank.CQfKMyzc.cjs → bank.avgw-IRO.cjs} +391 -15
- package/dist/shared/{bank.CmgGdN-q.mjs → bank.gVOunsjq.mjs} +355 -17
- package/dist/types.cjs +25 -24
- package/dist/types.d.cts +30 -8
- package/dist/types.d.mts +30 -8
- package/dist/types.d.ts +30 -8
- package/dist/types.mjs +5 -5
- package/package.json +1 -1
- package/dist/shared/bank.C7MA33AX.mjs +0 -325
- package/dist/shared/bank.CIWYI18z.cjs +0 -363
|
@@ -29,6 +29,7 @@ interface LastSyncMetadata {
|
|
|
29
29
|
lastSyncBankRefIds: string[];
|
|
30
30
|
eventsEmitted: number;
|
|
31
31
|
}
|
|
32
|
+
type ConnectorConfig = Record<string, string | number | boolean | null>;
|
|
32
33
|
|
|
33
34
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "DOMESTIC", "UNKNOWN"];
|
|
34
35
|
type PaymentType = (typeof PAYMENT_TYPES)[number];
|
|
@@ -124,6 +125,7 @@ type ConnectedAccount = {
|
|
|
124
125
|
currency: CurrencyCode;
|
|
125
126
|
connectorKey: ConnectorKey;
|
|
126
127
|
bankRefId?: string;
|
|
128
|
+
config: unknown;
|
|
127
129
|
};
|
|
128
130
|
declare abstract class IBankConnector {
|
|
129
131
|
/** Unique identifier for this bank connector (e.g., 'ERSTE', 'FINBRICKS', 'MOCK') */
|
|
@@ -1210,6 +1212,25 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
1210
1212
|
}, {}, {
|
|
1211
1213
|
$type: LastSyncMetadata;
|
|
1212
1214
|
}>;
|
|
1215
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1216
|
+
name: "connector_config";
|
|
1217
|
+
tableName: "account";
|
|
1218
|
+
dataType: "json";
|
|
1219
|
+
columnType: "SQLiteTextJson";
|
|
1220
|
+
data: ConnectorConfig;
|
|
1221
|
+
driverParam: string;
|
|
1222
|
+
notNull: false;
|
|
1223
|
+
hasDefault: false;
|
|
1224
|
+
isPrimaryKey: false;
|
|
1225
|
+
isAutoincrement: false;
|
|
1226
|
+
hasRuntimeDefault: false;
|
|
1227
|
+
enumValues: undefined;
|
|
1228
|
+
baseColumn: never;
|
|
1229
|
+
identity: undefined;
|
|
1230
|
+
generated: undefined;
|
|
1231
|
+
}, {}, {
|
|
1232
|
+
$type: ConnectorConfig;
|
|
1233
|
+
}>;
|
|
1213
1234
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1214
1235
|
name: "holder_name";
|
|
1215
1236
|
tableName: "account";
|
|
@@ -1974,6 +1995,25 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
1974
1995
|
}, {}, {
|
|
1975
1996
|
$type: LastSyncMetadata;
|
|
1976
1997
|
}>;
|
|
1998
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1999
|
+
name: "connector_config";
|
|
2000
|
+
tableName: "account";
|
|
2001
|
+
dataType: "json";
|
|
2002
|
+
columnType: "SQLiteTextJson";
|
|
2003
|
+
data: ConnectorConfig;
|
|
2004
|
+
driverParam: string;
|
|
2005
|
+
notNull: false;
|
|
2006
|
+
hasDefault: false;
|
|
2007
|
+
isPrimaryKey: false;
|
|
2008
|
+
isAutoincrement: false;
|
|
2009
|
+
hasRuntimeDefault: false;
|
|
2010
|
+
enumValues: undefined;
|
|
2011
|
+
baseColumn: never;
|
|
2012
|
+
identity: undefined;
|
|
2013
|
+
generated: undefined;
|
|
2014
|
+
}, {}, {
|
|
2015
|
+
$type: ConnectorConfig;
|
|
2016
|
+
}>;
|
|
1977
2017
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1978
2018
|
name: "holder_name";
|
|
1979
2019
|
tableName: "account";
|
|
@@ -2738,6 +2778,25 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
2738
2778
|
}, {}, {
|
|
2739
2779
|
$type: LastSyncMetadata;
|
|
2740
2780
|
}>;
|
|
2781
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2782
|
+
name: "connector_config";
|
|
2783
|
+
tableName: "account";
|
|
2784
|
+
dataType: "json";
|
|
2785
|
+
columnType: "SQLiteTextJson";
|
|
2786
|
+
data: ConnectorConfig;
|
|
2787
|
+
driverParam: string;
|
|
2788
|
+
notNull: false;
|
|
2789
|
+
hasDefault: false;
|
|
2790
|
+
isPrimaryKey: false;
|
|
2791
|
+
isAutoincrement: false;
|
|
2792
|
+
hasRuntimeDefault: false;
|
|
2793
|
+
enumValues: undefined;
|
|
2794
|
+
baseColumn: never;
|
|
2795
|
+
identity: undefined;
|
|
2796
|
+
generated: undefined;
|
|
2797
|
+
}, {}, {
|
|
2798
|
+
$type: ConnectorConfig;
|
|
2799
|
+
}>;
|
|
2741
2800
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2742
2801
|
name: "holder_name";
|
|
2743
2802
|
tableName: "account";
|
|
@@ -3792,7 +3851,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3792
3851
|
tableName: "payment";
|
|
3793
3852
|
dataType: "string";
|
|
3794
3853
|
columnType: "SQLiteText";
|
|
3795
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3854
|
+
data: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3796
3855
|
driverParam: string;
|
|
3797
3856
|
notNull: true;
|
|
3798
3857
|
hasDefault: false;
|
|
@@ -3805,7 +3864,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3805
3864
|
generated: undefined;
|
|
3806
3865
|
}, {}, {
|
|
3807
3866
|
length: number | undefined;
|
|
3808
|
-
$type: "BOOKED" | "REJECTED" | "
|
|
3867
|
+
$type: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3809
3868
|
}>;
|
|
3810
3869
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3811
3870
|
name: "status_reason";
|
|
@@ -5256,6 +5315,25 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
5256
5315
|
}, {}, {
|
|
5257
5316
|
$type: LastSyncMetadata;
|
|
5258
5317
|
}>;
|
|
5318
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
5319
|
+
name: "connector_config";
|
|
5320
|
+
tableName: "account";
|
|
5321
|
+
dataType: "json";
|
|
5322
|
+
columnType: "SQLiteTextJson";
|
|
5323
|
+
data: ConnectorConfig;
|
|
5324
|
+
driverParam: string;
|
|
5325
|
+
notNull: false;
|
|
5326
|
+
hasDefault: false;
|
|
5327
|
+
isPrimaryKey: false;
|
|
5328
|
+
isAutoincrement: false;
|
|
5329
|
+
hasRuntimeDefault: false;
|
|
5330
|
+
enumValues: undefined;
|
|
5331
|
+
baseColumn: never;
|
|
5332
|
+
identity: undefined;
|
|
5333
|
+
generated: undefined;
|
|
5334
|
+
}, {}, {
|
|
5335
|
+
$type: ConnectorConfig;
|
|
5336
|
+
}>;
|
|
5259
5337
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
5260
5338
|
name: "holder_name";
|
|
5261
5339
|
tableName: "account";
|
|
@@ -5991,5 +6069,5 @@ declare function isBatchFailed(batch: {
|
|
|
5991
6069
|
status?: string | null;
|
|
5992
6070
|
}): batch is CompletedBatch;
|
|
5993
6071
|
|
|
5994
|
-
export { IBankConnector as I, BATCH_MODES as
|
|
5995
|
-
export type {
|
|
6072
|
+
export { IBankConnector as I, BATCH_MODES as M, BATCH_STATUSES as N, CHARGE_BEARERS as W, CONNECTOR_KEYS as X, COUNTRY_CODES as Y, CREDENTIALS_TYPES as Z, INSTRUCTION_PRIORITIES as a2, PAYMENT_DIRECTIONS as a4, PAYMENT_REQUEST_STATUSES as a5, PAYMENT_STATUSES as a6, PAYMENT_TYPES as a7, account as aA, accountCredentials as aB, batch as aC, ott as aD, payment as aE, paymentRelations as aF, paymentRequest as aG, paymentRequestRelations as aH, TOKEN_TYPES as ah, accountCredentialsInsertSchema as aj, accountCredentialsSelectSchema as ak, accountCredentialsUpdateSchema as al, accountInsertSchema as am, accountSelectSchema as an, accountUpdateSchema as ao, hasPaymentAccountAssigned as ap, isBatchAuthorized as aq, isBatchCompleted as ar, isBatchFailed as as, isBatchInitiated as at, isBatchProcessing as au, isBatchReadyToSign as av, isPaymentCompleted as aw, isPendingStatus as ax, isProcessedStatus as ay, isTerminalStatus as az, tables as t, ACCOUNT_STATUSES as y };
|
|
6073
|
+
export type { CompletedBatch as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, BankAccountWithLastSync as O, PaymentRequestSelectType as P, BankCode as Q, BatchInsertType as R, BatchLifecycle as S, BatchMode as T, BatchPayment as U, BatchStatus as V, ChargeBearer as _, PaymentSelectType as a, CountryCode as a0, CredentialsType as a1, InstructionPriority as a3, PaymentDirection as a8, PaymentFailedInsertType as a9, PaymentInsertType as aa, PaymentLifecycle as ab, PaymentPreparedInsertType as ac, PaymentStatus as ad, ProcessingBatch as ae, ReadyToSignBatch as af, ResolvedCredentials as ag, TokenType as ai, ConfigEnvironmentBank as b, ConnectorKey as c, PaymentType as d, CurrencyCode as e, HandleAuthorizationCallbackOutput as f, ConnectedAccount as g, CredentialsResolver as h, AccountCredentialsInsertType as i, AccountInsertType as j, BatchedPayment as k, InitiatedBatch as l, IncomingPayment as m, InitiatedPayment as n, ParsedBankPayment as o, PaymentRequestStatus as p, AuthorizationCallbackResult as q, BatchMetadata as r, Currency as s, AccountAssignedPayment as u, PreparedPayment as v, CompletedPayment as w, PaymentRequestInsertType as x, AccountCredentialsPatchType as z };
|
|
@@ -29,6 +29,7 @@ interface LastSyncMetadata {
|
|
|
29
29
|
lastSyncBankRefIds: string[];
|
|
30
30
|
eventsEmitted: number;
|
|
31
31
|
}
|
|
32
|
+
type ConnectorConfig = Record<string, string | number | boolean | null>;
|
|
32
33
|
|
|
33
34
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "DOMESTIC", "UNKNOWN"];
|
|
34
35
|
type PaymentType = (typeof PAYMENT_TYPES)[number];
|
|
@@ -124,6 +125,7 @@ type ConnectedAccount = {
|
|
|
124
125
|
currency: CurrencyCode;
|
|
125
126
|
connectorKey: ConnectorKey;
|
|
126
127
|
bankRefId?: string;
|
|
128
|
+
config: unknown;
|
|
127
129
|
};
|
|
128
130
|
declare abstract class IBankConnector {
|
|
129
131
|
/** Unique identifier for this bank connector (e.g., 'ERSTE', 'FINBRICKS', 'MOCK') */
|
|
@@ -1210,6 +1212,25 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
1210
1212
|
}, {}, {
|
|
1211
1213
|
$type: LastSyncMetadata;
|
|
1212
1214
|
}>;
|
|
1215
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1216
|
+
name: "connector_config";
|
|
1217
|
+
tableName: "account";
|
|
1218
|
+
dataType: "json";
|
|
1219
|
+
columnType: "SQLiteTextJson";
|
|
1220
|
+
data: ConnectorConfig;
|
|
1221
|
+
driverParam: string;
|
|
1222
|
+
notNull: false;
|
|
1223
|
+
hasDefault: false;
|
|
1224
|
+
isPrimaryKey: false;
|
|
1225
|
+
isAutoincrement: false;
|
|
1226
|
+
hasRuntimeDefault: false;
|
|
1227
|
+
enumValues: undefined;
|
|
1228
|
+
baseColumn: never;
|
|
1229
|
+
identity: undefined;
|
|
1230
|
+
generated: undefined;
|
|
1231
|
+
}, {}, {
|
|
1232
|
+
$type: ConnectorConfig;
|
|
1233
|
+
}>;
|
|
1213
1234
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1214
1235
|
name: "holder_name";
|
|
1215
1236
|
tableName: "account";
|
|
@@ -1974,6 +1995,25 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
1974
1995
|
}, {}, {
|
|
1975
1996
|
$type: LastSyncMetadata;
|
|
1976
1997
|
}>;
|
|
1998
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1999
|
+
name: "connector_config";
|
|
2000
|
+
tableName: "account";
|
|
2001
|
+
dataType: "json";
|
|
2002
|
+
columnType: "SQLiteTextJson";
|
|
2003
|
+
data: ConnectorConfig;
|
|
2004
|
+
driverParam: string;
|
|
2005
|
+
notNull: false;
|
|
2006
|
+
hasDefault: false;
|
|
2007
|
+
isPrimaryKey: false;
|
|
2008
|
+
isAutoincrement: false;
|
|
2009
|
+
hasRuntimeDefault: false;
|
|
2010
|
+
enumValues: undefined;
|
|
2011
|
+
baseColumn: never;
|
|
2012
|
+
identity: undefined;
|
|
2013
|
+
generated: undefined;
|
|
2014
|
+
}, {}, {
|
|
2015
|
+
$type: ConnectorConfig;
|
|
2016
|
+
}>;
|
|
1977
2017
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1978
2018
|
name: "holder_name";
|
|
1979
2019
|
tableName: "account";
|
|
@@ -2738,6 +2778,25 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
2738
2778
|
}, {}, {
|
|
2739
2779
|
$type: LastSyncMetadata;
|
|
2740
2780
|
}>;
|
|
2781
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2782
|
+
name: "connector_config";
|
|
2783
|
+
tableName: "account";
|
|
2784
|
+
dataType: "json";
|
|
2785
|
+
columnType: "SQLiteTextJson";
|
|
2786
|
+
data: ConnectorConfig;
|
|
2787
|
+
driverParam: string;
|
|
2788
|
+
notNull: false;
|
|
2789
|
+
hasDefault: false;
|
|
2790
|
+
isPrimaryKey: false;
|
|
2791
|
+
isAutoincrement: false;
|
|
2792
|
+
hasRuntimeDefault: false;
|
|
2793
|
+
enumValues: undefined;
|
|
2794
|
+
baseColumn: never;
|
|
2795
|
+
identity: undefined;
|
|
2796
|
+
generated: undefined;
|
|
2797
|
+
}, {}, {
|
|
2798
|
+
$type: ConnectorConfig;
|
|
2799
|
+
}>;
|
|
2741
2800
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2742
2801
|
name: "holder_name";
|
|
2743
2802
|
tableName: "account";
|
|
@@ -3792,7 +3851,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3792
3851
|
tableName: "payment";
|
|
3793
3852
|
dataType: "string";
|
|
3794
3853
|
columnType: "SQLiteText";
|
|
3795
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3854
|
+
data: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3796
3855
|
driverParam: string;
|
|
3797
3856
|
notNull: true;
|
|
3798
3857
|
hasDefault: false;
|
|
@@ -3805,7 +3864,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3805
3864
|
generated: undefined;
|
|
3806
3865
|
}, {}, {
|
|
3807
3866
|
length: number | undefined;
|
|
3808
|
-
$type: "BOOKED" | "REJECTED" | "
|
|
3867
|
+
$type: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3809
3868
|
}>;
|
|
3810
3869
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3811
3870
|
name: "status_reason";
|
|
@@ -5256,6 +5315,25 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
5256
5315
|
}, {}, {
|
|
5257
5316
|
$type: LastSyncMetadata;
|
|
5258
5317
|
}>;
|
|
5318
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
5319
|
+
name: "connector_config";
|
|
5320
|
+
tableName: "account";
|
|
5321
|
+
dataType: "json";
|
|
5322
|
+
columnType: "SQLiteTextJson";
|
|
5323
|
+
data: ConnectorConfig;
|
|
5324
|
+
driverParam: string;
|
|
5325
|
+
notNull: false;
|
|
5326
|
+
hasDefault: false;
|
|
5327
|
+
isPrimaryKey: false;
|
|
5328
|
+
isAutoincrement: false;
|
|
5329
|
+
hasRuntimeDefault: false;
|
|
5330
|
+
enumValues: undefined;
|
|
5331
|
+
baseColumn: never;
|
|
5332
|
+
identity: undefined;
|
|
5333
|
+
generated: undefined;
|
|
5334
|
+
}, {}, {
|
|
5335
|
+
$type: ConnectorConfig;
|
|
5336
|
+
}>;
|
|
5259
5337
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
5260
5338
|
name: "holder_name";
|
|
5261
5339
|
tableName: "account";
|
|
@@ -5991,5 +6069,5 @@ declare function isBatchFailed(batch: {
|
|
|
5991
6069
|
status?: string | null;
|
|
5992
6070
|
}): batch is CompletedBatch;
|
|
5993
6071
|
|
|
5994
|
-
export { IBankConnector as I, BATCH_MODES as
|
|
5995
|
-
export type {
|
|
6072
|
+
export { IBankConnector as I, BATCH_MODES as M, BATCH_STATUSES as N, CHARGE_BEARERS as W, CONNECTOR_KEYS as X, COUNTRY_CODES as Y, CREDENTIALS_TYPES as Z, INSTRUCTION_PRIORITIES as a2, PAYMENT_DIRECTIONS as a4, PAYMENT_REQUEST_STATUSES as a5, PAYMENT_STATUSES as a6, PAYMENT_TYPES as a7, account as aA, accountCredentials as aB, batch as aC, ott as aD, payment as aE, paymentRelations as aF, paymentRequest as aG, paymentRequestRelations as aH, TOKEN_TYPES as ah, accountCredentialsInsertSchema as aj, accountCredentialsSelectSchema as ak, accountCredentialsUpdateSchema as al, accountInsertSchema as am, accountSelectSchema as an, accountUpdateSchema as ao, hasPaymentAccountAssigned as ap, isBatchAuthorized as aq, isBatchCompleted as ar, isBatchFailed as as, isBatchInitiated as at, isBatchProcessing as au, isBatchReadyToSign as av, isPaymentCompleted as aw, isPendingStatus as ax, isProcessedStatus as ay, isTerminalStatus as az, tables as t, ACCOUNT_STATUSES as y };
|
|
6073
|
+
export type { CompletedBatch as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, BankAccountWithLastSync as O, PaymentRequestSelectType as P, BankCode as Q, BatchInsertType as R, BatchLifecycle as S, BatchMode as T, BatchPayment as U, BatchStatus as V, ChargeBearer as _, PaymentSelectType as a, CountryCode as a0, CredentialsType as a1, InstructionPriority as a3, PaymentDirection as a8, PaymentFailedInsertType as a9, PaymentInsertType as aa, PaymentLifecycle as ab, PaymentPreparedInsertType as ac, PaymentStatus as ad, ProcessingBatch as ae, ReadyToSignBatch as af, ResolvedCredentials as ag, TokenType as ai, ConfigEnvironmentBank as b, ConnectorKey as c, PaymentType as d, CurrencyCode as e, HandleAuthorizationCallbackOutput as f, ConnectedAccount as g, CredentialsResolver as h, AccountCredentialsInsertType as i, AccountInsertType as j, BatchedPayment as k, InitiatedBatch as l, IncomingPayment as m, InitiatedPayment as n, ParsedBankPayment as o, PaymentRequestStatus as p, AuthorizationCallbackResult as q, BatchMetadata as r, Currency as s, AccountAssignedPayment as u, PreparedPayment as v, CompletedPayment as w, PaymentRequestInsertType as x, AccountCredentialsPatchType as z };
|
|
@@ -29,6 +29,7 @@ interface LastSyncMetadata {
|
|
|
29
29
|
lastSyncBankRefIds: string[];
|
|
30
30
|
eventsEmitted: number;
|
|
31
31
|
}
|
|
32
|
+
type ConnectorConfig = Record<string, string | number | boolean | null>;
|
|
32
33
|
|
|
33
34
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "DOMESTIC", "UNKNOWN"];
|
|
34
35
|
type PaymentType = (typeof PAYMENT_TYPES)[number];
|
|
@@ -124,6 +125,7 @@ type ConnectedAccount = {
|
|
|
124
125
|
currency: CurrencyCode;
|
|
125
126
|
connectorKey: ConnectorKey;
|
|
126
127
|
bankRefId?: string;
|
|
128
|
+
config: unknown;
|
|
127
129
|
};
|
|
128
130
|
declare abstract class IBankConnector {
|
|
129
131
|
/** Unique identifier for this bank connector (e.g., 'ERSTE', 'FINBRICKS', 'MOCK') */
|
|
@@ -1210,6 +1212,25 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
1210
1212
|
}, {}, {
|
|
1211
1213
|
$type: LastSyncMetadata;
|
|
1212
1214
|
}>;
|
|
1215
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1216
|
+
name: "connector_config";
|
|
1217
|
+
tableName: "account";
|
|
1218
|
+
dataType: "json";
|
|
1219
|
+
columnType: "SQLiteTextJson";
|
|
1220
|
+
data: ConnectorConfig;
|
|
1221
|
+
driverParam: string;
|
|
1222
|
+
notNull: false;
|
|
1223
|
+
hasDefault: false;
|
|
1224
|
+
isPrimaryKey: false;
|
|
1225
|
+
isAutoincrement: false;
|
|
1226
|
+
hasRuntimeDefault: false;
|
|
1227
|
+
enumValues: undefined;
|
|
1228
|
+
baseColumn: never;
|
|
1229
|
+
identity: undefined;
|
|
1230
|
+
generated: undefined;
|
|
1231
|
+
}, {}, {
|
|
1232
|
+
$type: ConnectorConfig;
|
|
1233
|
+
}>;
|
|
1213
1234
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1214
1235
|
name: "holder_name";
|
|
1215
1236
|
tableName: "account";
|
|
@@ -1974,6 +1995,25 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
1974
1995
|
}, {}, {
|
|
1975
1996
|
$type: LastSyncMetadata;
|
|
1976
1997
|
}>;
|
|
1998
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1999
|
+
name: "connector_config";
|
|
2000
|
+
tableName: "account";
|
|
2001
|
+
dataType: "json";
|
|
2002
|
+
columnType: "SQLiteTextJson";
|
|
2003
|
+
data: ConnectorConfig;
|
|
2004
|
+
driverParam: string;
|
|
2005
|
+
notNull: false;
|
|
2006
|
+
hasDefault: false;
|
|
2007
|
+
isPrimaryKey: false;
|
|
2008
|
+
isAutoincrement: false;
|
|
2009
|
+
hasRuntimeDefault: false;
|
|
2010
|
+
enumValues: undefined;
|
|
2011
|
+
baseColumn: never;
|
|
2012
|
+
identity: undefined;
|
|
2013
|
+
generated: undefined;
|
|
2014
|
+
}, {}, {
|
|
2015
|
+
$type: ConnectorConfig;
|
|
2016
|
+
}>;
|
|
1977
2017
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1978
2018
|
name: "holder_name";
|
|
1979
2019
|
tableName: "account";
|
|
@@ -2738,6 +2778,25 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
2738
2778
|
}, {}, {
|
|
2739
2779
|
$type: LastSyncMetadata;
|
|
2740
2780
|
}>;
|
|
2781
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2782
|
+
name: "connector_config";
|
|
2783
|
+
tableName: "account";
|
|
2784
|
+
dataType: "json";
|
|
2785
|
+
columnType: "SQLiteTextJson";
|
|
2786
|
+
data: ConnectorConfig;
|
|
2787
|
+
driverParam: string;
|
|
2788
|
+
notNull: false;
|
|
2789
|
+
hasDefault: false;
|
|
2790
|
+
isPrimaryKey: false;
|
|
2791
|
+
isAutoincrement: false;
|
|
2792
|
+
hasRuntimeDefault: false;
|
|
2793
|
+
enumValues: undefined;
|
|
2794
|
+
baseColumn: never;
|
|
2795
|
+
identity: undefined;
|
|
2796
|
+
generated: undefined;
|
|
2797
|
+
}, {}, {
|
|
2798
|
+
$type: ConnectorConfig;
|
|
2799
|
+
}>;
|
|
2741
2800
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2742
2801
|
name: "holder_name";
|
|
2743
2802
|
tableName: "account";
|
|
@@ -3792,7 +3851,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3792
3851
|
tableName: "payment";
|
|
3793
3852
|
dataType: "string";
|
|
3794
3853
|
columnType: "SQLiteText";
|
|
3795
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3854
|
+
data: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3796
3855
|
driverParam: string;
|
|
3797
3856
|
notNull: true;
|
|
3798
3857
|
hasDefault: false;
|
|
@@ -3805,7 +3864,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3805
3864
|
generated: undefined;
|
|
3806
3865
|
}, {}, {
|
|
3807
3866
|
length: number | undefined;
|
|
3808
|
-
$type: "BOOKED" | "REJECTED" | "
|
|
3867
|
+
$type: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3809
3868
|
}>;
|
|
3810
3869
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3811
3870
|
name: "status_reason";
|
|
@@ -5256,6 +5315,25 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
5256
5315
|
}, {}, {
|
|
5257
5316
|
$type: LastSyncMetadata;
|
|
5258
5317
|
}>;
|
|
5318
|
+
connectorConfig: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
5319
|
+
name: "connector_config";
|
|
5320
|
+
tableName: "account";
|
|
5321
|
+
dataType: "json";
|
|
5322
|
+
columnType: "SQLiteTextJson";
|
|
5323
|
+
data: ConnectorConfig;
|
|
5324
|
+
driverParam: string;
|
|
5325
|
+
notNull: false;
|
|
5326
|
+
hasDefault: false;
|
|
5327
|
+
isPrimaryKey: false;
|
|
5328
|
+
isAutoincrement: false;
|
|
5329
|
+
hasRuntimeDefault: false;
|
|
5330
|
+
enumValues: undefined;
|
|
5331
|
+
baseColumn: never;
|
|
5332
|
+
identity: undefined;
|
|
5333
|
+
generated: undefined;
|
|
5334
|
+
}, {}, {
|
|
5335
|
+
$type: ConnectorConfig;
|
|
5336
|
+
}>;
|
|
5259
5337
|
holderName: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
5260
5338
|
name: "holder_name";
|
|
5261
5339
|
tableName: "account";
|
|
@@ -5991,5 +6069,5 @@ declare function isBatchFailed(batch: {
|
|
|
5991
6069
|
status?: string | null;
|
|
5992
6070
|
}): batch is CompletedBatch;
|
|
5993
6071
|
|
|
5994
|
-
export { IBankConnector as I, BATCH_MODES as
|
|
5995
|
-
export type {
|
|
6072
|
+
export { IBankConnector as I, BATCH_MODES as M, BATCH_STATUSES as N, CHARGE_BEARERS as W, CONNECTOR_KEYS as X, COUNTRY_CODES as Y, CREDENTIALS_TYPES as Z, INSTRUCTION_PRIORITIES as a2, PAYMENT_DIRECTIONS as a4, PAYMENT_REQUEST_STATUSES as a5, PAYMENT_STATUSES as a6, PAYMENT_TYPES as a7, account as aA, accountCredentials as aB, batch as aC, ott as aD, payment as aE, paymentRelations as aF, paymentRequest as aG, paymentRequestRelations as aH, TOKEN_TYPES as ah, accountCredentialsInsertSchema as aj, accountCredentialsSelectSchema as ak, accountCredentialsUpdateSchema as al, accountInsertSchema as am, accountSelectSchema as an, accountUpdateSchema as ao, hasPaymentAccountAssigned as ap, isBatchAuthorized as aq, isBatchCompleted as ar, isBatchFailed as as, isBatchInitiated as at, isBatchProcessing as au, isBatchReadyToSign as av, isPaymentCompleted as aw, isPendingStatus as ax, isProcessedStatus as ay, isTerminalStatus as az, tables as t, ACCOUNT_STATUSES as y };
|
|
6073
|
+
export type { CompletedBatch as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, BankAccountWithLastSync as O, PaymentRequestSelectType as P, BankCode as Q, BatchInsertType as R, BatchLifecycle as S, BatchMode as T, BatchPayment as U, BatchStatus as V, ChargeBearer as _, PaymentSelectType as a, CountryCode as a0, CredentialsType as a1, InstructionPriority as a3, PaymentDirection as a8, PaymentFailedInsertType as a9, PaymentInsertType as aa, PaymentLifecycle as ab, PaymentPreparedInsertType as ac, PaymentStatus as ad, ProcessingBatch as ae, ReadyToSignBatch as af, ResolvedCredentials as ag, TokenType as ai, ConfigEnvironmentBank as b, ConnectorKey as c, PaymentType as d, CurrencyCode as e, HandleAuthorizationCallbackOutput as f, ConnectedAccount as g, CredentialsResolver as h, AccountCredentialsInsertType as i, AccountInsertType as j, BatchedPayment as k, InitiatedBatch as l, IncomingPayment as m, InitiatedPayment as n, ParsedBankPayment as o, PaymentRequestStatus as p, AuthorizationCallbackResult as q, BatchMetadata as r, Currency as s, AccountAssignedPayment as u, PreparedPayment as v, CompletedPayment as w, PaymentRequestInsertType as x, AccountCredentialsPatchType as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as CurrencyCode, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.CC4p6Jf-.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const database_schema = require('./bank.
|
|
4
|
+
const database_schema = require('./bank.avgw-IRO.cjs');
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
require('date-fns');
|
|
7
7
|
require('jose');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as CurrencyCode, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.CC4p6Jf-.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|