@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.
@@ -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" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
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" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
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 K, BATCH_STATUSES as M, CHARGE_BEARERS as V, CONNECTOR_KEYS as W, COUNTRY_CODES as X, CREDENTIALS_TYPES as Y, INSTRUCTION_PRIORITIES as a1, PAYMENT_DIRECTIONS as a3, PAYMENT_REQUEST_STATUSES as a4, PAYMENT_STATUSES as a5, PAYMENT_TYPES as a6, accountCredentials as aA, batch as aB, ott as aC, payment as aD, paymentRelations as aE, paymentRequest as aF, paymentRequestRelations as aG, TOKEN_TYPES as ag, accountCredentialsInsertSchema as ai, accountCredentialsSelectSchema as aj, accountCredentialsUpdateSchema as ak, accountInsertSchema as al, accountSelectSchema as am, accountUpdateSchema as an, hasPaymentAccountAssigned as ao, isBatchAuthorized as ap, isBatchCompleted as aq, isBatchFailed as ar, isBatchInitiated as as, isBatchProcessing as at, isBatchReadyToSign as au, isPaymentCompleted as av, isPendingStatus as aw, isProcessedStatus as ax, isTerminalStatus as ay, account as az, tables as t, ACCOUNT_STATUSES as x };
5995
- export type { CountryCode as $, AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountCredentialsUpdateType as D, AccountPatchType as E, AccountStatus as F, AccountUpdateType as G, HandleAuthorizationCallbackInput as H, AuthorizedBatch as J, LastSyncMetadata as L, BankAccountWithLastSync as N, BankCode as O, PaymentRequestSelectType as P, BatchInsertType as Q, BatchLifecycle as R, BatchMode as S, BatchPayment as T, BatchStatus as U, ChargeBearer as Z, CompletedBatch as _, PaymentSelectType as a, CredentialsType as a0, InstructionPriority as a2, PaymentDirection as a7, PaymentFailedInsertType as a8, PaymentInsertType as a9, PaymentLifecycle as aa, PaymentPreparedInsertType as ab, PaymentStatus as ac, ProcessingBatch as ad, ReadyToSignBatch as ae, ResolvedCredentials as af, TokenType as ah, ConnectorKey as b, PaymentType as c, CurrencyCode as d, HandleAuthorizationCallbackOutput as e, ConnectedAccount as f, CredentialsResolver as g, AccountCredentialsInsertType as h, AccountInsertType as i, BatchedPayment as j, InitiatedBatch as k, IncomingPayment as l, InitiatedPayment as m, ParsedBankPayment as n, PaymentRequestStatus as o, AuthorizationCallbackResult as p, BatchMetadata as q, Currency as r, AccountAssignedPayment as s, PreparedPayment as u, CompletedPayment as v, PaymentRequestInsertType as w, AccountCredentialsPatchType as y, AccountCredentialsSelectType as z };
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" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
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" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
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 K, BATCH_STATUSES as M, CHARGE_BEARERS as V, CONNECTOR_KEYS as W, COUNTRY_CODES as X, CREDENTIALS_TYPES as Y, INSTRUCTION_PRIORITIES as a1, PAYMENT_DIRECTIONS as a3, PAYMENT_REQUEST_STATUSES as a4, PAYMENT_STATUSES as a5, PAYMENT_TYPES as a6, accountCredentials as aA, batch as aB, ott as aC, payment as aD, paymentRelations as aE, paymentRequest as aF, paymentRequestRelations as aG, TOKEN_TYPES as ag, accountCredentialsInsertSchema as ai, accountCredentialsSelectSchema as aj, accountCredentialsUpdateSchema as ak, accountInsertSchema as al, accountSelectSchema as am, accountUpdateSchema as an, hasPaymentAccountAssigned as ao, isBatchAuthorized as ap, isBatchCompleted as aq, isBatchFailed as ar, isBatchInitiated as as, isBatchProcessing as at, isBatchReadyToSign as au, isPaymentCompleted as av, isPendingStatus as aw, isProcessedStatus as ax, isTerminalStatus as ay, account as az, tables as t, ACCOUNT_STATUSES as x };
5995
- export type { CountryCode as $, AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountCredentialsUpdateType as D, AccountPatchType as E, AccountStatus as F, AccountUpdateType as G, HandleAuthorizationCallbackInput as H, AuthorizedBatch as J, LastSyncMetadata as L, BankAccountWithLastSync as N, BankCode as O, PaymentRequestSelectType as P, BatchInsertType as Q, BatchLifecycle as R, BatchMode as S, BatchPayment as T, BatchStatus as U, ChargeBearer as Z, CompletedBatch as _, PaymentSelectType as a, CredentialsType as a0, InstructionPriority as a2, PaymentDirection as a7, PaymentFailedInsertType as a8, PaymentInsertType as a9, PaymentLifecycle as aa, PaymentPreparedInsertType as ab, PaymentStatus as ac, ProcessingBatch as ad, ReadyToSignBatch as ae, ResolvedCredentials as af, TokenType as ah, ConnectorKey as b, PaymentType as c, CurrencyCode as d, HandleAuthorizationCallbackOutput as e, ConnectedAccount as f, CredentialsResolver as g, AccountCredentialsInsertType as h, AccountInsertType as i, BatchedPayment as j, InitiatedBatch as k, IncomingPayment as l, InitiatedPayment as m, ParsedBankPayment as n, PaymentRequestStatus as o, AuthorizationCallbackResult as p, BatchMetadata as q, Currency as r, AccountAssignedPayment as s, PreparedPayment as u, CompletedPayment as v, PaymentRequestInsertType as w, AccountCredentialsPatchType as y, AccountCredentialsSelectType as z };
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" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
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" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
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 K, BATCH_STATUSES as M, CHARGE_BEARERS as V, CONNECTOR_KEYS as W, COUNTRY_CODES as X, CREDENTIALS_TYPES as Y, INSTRUCTION_PRIORITIES as a1, PAYMENT_DIRECTIONS as a3, PAYMENT_REQUEST_STATUSES as a4, PAYMENT_STATUSES as a5, PAYMENT_TYPES as a6, accountCredentials as aA, batch as aB, ott as aC, payment as aD, paymentRelations as aE, paymentRequest as aF, paymentRequestRelations as aG, TOKEN_TYPES as ag, accountCredentialsInsertSchema as ai, accountCredentialsSelectSchema as aj, accountCredentialsUpdateSchema as ak, accountInsertSchema as al, accountSelectSchema as am, accountUpdateSchema as an, hasPaymentAccountAssigned as ao, isBatchAuthorized as ap, isBatchCompleted as aq, isBatchFailed as ar, isBatchInitiated as as, isBatchProcessing as at, isBatchReadyToSign as au, isPaymentCompleted as av, isPendingStatus as aw, isProcessedStatus as ax, isTerminalStatus as ay, account as az, tables as t, ACCOUNT_STATUSES as x };
5995
- export type { CountryCode as $, AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountCredentialsUpdateType as D, AccountPatchType as E, AccountStatus as F, AccountUpdateType as G, HandleAuthorizationCallbackInput as H, AuthorizedBatch as J, LastSyncMetadata as L, BankAccountWithLastSync as N, BankCode as O, PaymentRequestSelectType as P, BatchInsertType as Q, BatchLifecycle as R, BatchMode as S, BatchPayment as T, BatchStatus as U, ChargeBearer as Z, CompletedBatch as _, PaymentSelectType as a, CredentialsType as a0, InstructionPriority as a2, PaymentDirection as a7, PaymentFailedInsertType as a8, PaymentInsertType as a9, PaymentLifecycle as aa, PaymentPreparedInsertType as ab, PaymentStatus as ac, ProcessingBatch as ad, ReadyToSignBatch as ae, ResolvedCredentials as af, TokenType as ah, ConnectorKey as b, PaymentType as c, CurrencyCode as d, HandleAuthorizationCallbackOutput as e, ConnectedAccount as f, CredentialsResolver as g, AccountCredentialsInsertType as h, AccountInsertType as i, BatchedPayment as j, InitiatedBatch as k, IncomingPayment as l, InitiatedPayment as m, ParsedBankPayment as n, PaymentRequestStatus as o, AuthorizationCallbackResult as p, BatchMetadata as q, Currency as r, AccountAssignedPayment as s, PreparedPayment as u, CompletedPayment as v, PaymentRequestInsertType as w, AccountCredentialsPatchType as y, AccountCredentialsSelectType as z };
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 { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.COez_hEH.cjs';
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.CIWYI18z.cjs');
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 { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.COez_hEH.js';
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}`;