@develit-services/bank 0.0.44 → 0.1.1

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.
Files changed (41) hide show
  1. package/dist/database/schema.cjs +1 -1
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +1 -1
  6. package/dist/export/worker.cjs +138 -569
  7. package/dist/export/worker.d.cts +96 -36
  8. package/dist/export/worker.d.mts +97 -35
  9. package/dist/export/worker.d.ts +96 -36
  10. package/dist/export/worker.mjs +130 -558
  11. package/dist/export/workflows.cjs +21 -0
  12. package/dist/export/workflows.d.cts +2 -0
  13. package/dist/export/workflows.d.mts +2 -0
  14. package/dist/export/workflows.d.ts +2 -0
  15. package/dist/export/workflows.mjs +15 -0
  16. package/dist/export/wrangler.cjs +7 -0
  17. package/dist/export/wrangler.d.cts +5 -0
  18. package/dist/export/wrangler.d.mts +5 -0
  19. package/dist/export/wrangler.d.ts +5 -0
  20. package/dist/export/wrangler.mjs +7 -0
  21. package/dist/shared/{bank.6WoCPIFy.mjs → bank.8lAQLFNI.mjs} +1 -1
  22. package/dist/shared/{bank.0KTS9nMz.d.ts → bank.BQSnGZ-3.d.cts} +33 -80
  23. package/dist/shared/bank.CH22Zrdv.d.cts +20 -0
  24. package/dist/shared/bank.CH22Zrdv.d.mts +20 -0
  25. package/dist/shared/bank.CH22Zrdv.d.ts +20 -0
  26. package/dist/shared/{bank.DmzkJQVU.d.cts → bank.CouYVuOf.d.ts} +33 -80
  27. package/dist/shared/{bank.BPcrbUBa.cjs → bank.DISsqBb6.cjs} +1 -1
  28. package/dist/shared/bank.DJ9d1yaR.mjs +269 -0
  29. package/dist/shared/bank.DOJ8gbXQ.cjs +278 -0
  30. package/dist/shared/{bank.NTyp2XAv.d.mts → bank.DW3cHO1u.d.mts} +33 -80
  31. package/dist/shared/{bank.BWcFhTu1.mjs → bank.RUV2HUFo.mjs} +11 -11
  32. package/dist/shared/{bank.BVzOzXdX.cjs → bank.UfRkUN2y.cjs} +11 -11
  33. package/dist/shared/{bank.CCilUVCi.d.ts → bank.mub5_S4r.d.cts} +4 -21
  34. package/dist/shared/{bank.CCilUVCi.d.cts → bank.mub5_S4r.d.mts} +4 -21
  35. package/dist/shared/{bank.CCilUVCi.d.mts → bank.mub5_S4r.d.ts} +4 -21
  36. package/dist/types.cjs +2 -2
  37. package/dist/types.d.cts +16 -9
  38. package/dist/types.d.mts +16 -9
  39. package/dist/types.d.ts +16 -9
  40. package/dist/types.mjs +2 -2
  41. package/package.json +6 -1
@@ -1,11 +1,24 @@
1
1
  import { Environment } from '@develit-io/backend-sdk';
2
- import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
3
- import { a as PaymentInsertType, t as tables } from './bank.CCilUVCi.mjs';
4
2
  import { DrizzleD1Database } from 'drizzle-orm/d1';
3
+ import { a as PaymentInsertType, t as tables } from './bank.mub5_S4r.mjs';
4
+ import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
5
5
  import { z } from 'zod';
6
6
  import * as drizzle_zod from 'drizzle-zod';
7
7
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
8
8
 
9
+ interface BankAccountWithLastSync extends ConnectedAccount {
10
+ lastSyncedAt: Date;
11
+ }
12
+ declare const CONNECTOR_KEYS: readonly ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
13
+ type ConnectorKey = (typeof CONNECTOR_KEYS)[number];
14
+ declare const CREDENTIALS_TYPES: readonly ["AUTH_TOKEN", "REFRESH_TOKEN", "CLIENT_ID", "API_KEY"];
15
+ type CredentialsType = (typeof CREDENTIALS_TYPES)[number];
16
+ declare const TOKEN_TYPES: readonly ["ACCOUNT_AUTHORIZATION"];
17
+ type TokenType = (typeof TOKEN_TYPES)[number];
18
+ interface ConfigEnvironmentBank {
19
+ allowedProviders: ConnectorKey[];
20
+ }
21
+
9
22
  declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
10
23
  type PaymentType = (typeof PAYMENT_TYPES)[number];
11
24
  declare const CHARGE_BEARERS: readonly ["SHA", "OUR", "BEN"];
@@ -37,19 +50,6 @@ type BankCode = (typeof BANK_CODES)[number];
37
50
  declare const COUNTRY_CODES: ["AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW", ...("AF" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "CF" | "TD" | "CL" | "CN" | "CO" | "KM" | "CK" | "CR" | "HR" | "CW" | "CY" | "CZ" | "CD" | "DK" | "DJ" | "DM" | "DO" | "TL" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GR" | "GD" | "GP" | "GU" | "GT" | "GN" | "GW" | "GY" | "HT" | "HN" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "XK" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LI" | "LT" | "LU" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MQ" | "MR" | "MU" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "NA" | "NP" | "NL" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "NO" | "OM" | "PK" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PL" | "PT" | "PR" | "QA" | "CG" | "RE" | "RO" | "RU" | "RW" | "BL" | "KN" | "LC" | "MF" | "VC" | "WS" | "SM" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SO" | "ZA" | "KR" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "TW" | "TJ" | "TZ" | "TH" | "TG" | "TO" | "TT" | "TN" | "TR" | "TM" | "UM" | "VI" | "UG" | "UA" | "AE" | "GB" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW")[]];
38
51
  type CountryCode = (typeof COUNTRY_CODES)[number];
39
52
 
40
- interface BankAccountWithLastSync extends ConnectedAccount {
41
- lastSyncedAt: Date;
42
- }
43
- declare const CONNECTOR_KEYS: readonly ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA"];
44
- type ConnectorKey = (typeof CONNECTOR_KEYS)[number];
45
- declare const CREDENTIALS_TYPES: readonly ["AUTH_TOKEN", "REFRESH_TOKEN", "CLIENT_ID", "API_KEY"];
46
- type CredentialsType = (typeof CREDENTIALS_TYPES)[number];
47
- declare const TOKEN_TYPES: readonly ["ACCOUNT_AUTHORIZATION"];
48
- type TokenType = (typeof TOKEN_TYPES)[number];
49
- interface ConfigEnvironmentBank {
50
- allowedProviders: ConnectorKey[];
51
- }
52
-
53
53
  type WithStatus<T extends {
54
54
  status: PaymentStatus;
55
55
  }, S extends PaymentStatus> = Omit<T, 'status'> & {
@@ -106,10 +106,14 @@ declare abstract class IBankConnector {
106
106
  }): Promise<InitiatedBatch>;
107
107
  abstract initiateSEPAPayment(payment: IncomingPaymentMessage): Promise<InitiatedPayment>;
108
108
  abstract initiateSinglePayment(payment: PaymentPreparedInsertType): Promise<InitiatedPayment>;
109
- abstract getAllAccountPayments({ account, db, env, }: {
109
+ abstract getAllAccountPayments({ account, db, environment, filter, }: {
110
110
  account: AccountSelectType;
111
111
  db: DrizzleD1Database<typeof tables>;
112
- env: Environment;
112
+ environment: Environment;
113
+ filter: {
114
+ dateFrom: Date;
115
+ dateTo?: Date;
116
+ };
113
117
  }): Promise<PaymentInsertType[]>;
114
118
  abstract getPaymentStatus({ paymentId, }: {
115
119
  paymentId: string;
@@ -200,32 +204,15 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
200
204
  identity: undefined;
201
205
  generated: undefined;
202
206
  }, {}, {}>;
203
- sync: drizzle_orm_sqlite_core.SQLiteColumn<{
204
- name: "sync";
205
- tableName: "account";
206
- dataType: "boolean";
207
- columnType: "SQLiteBoolean";
208
- data: boolean;
209
- driverParam: number;
210
- notNull: true;
211
- hasDefault: true;
212
- isPrimaryKey: false;
213
- isAutoincrement: false;
214
- hasRuntimeDefault: false;
215
- enumValues: undefined;
216
- baseColumn: never;
217
- identity: undefined;
218
- generated: undefined;
219
- }, {}, {}>;
220
- syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
221
- name: "sync_period";
207
+ syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
208
+ name: "sync_interval_s";
222
209
  tableName: "account";
223
210
  dataType: "number";
224
211
  columnType: "SQLiteInteger";
225
212
  data: number;
226
213
  driverParam: number;
227
- notNull: false;
228
- hasDefault: false;
214
+ notNull: true;
215
+ hasDefault: true;
229
216
  isPrimaryKey: false;
230
217
  isAutoincrement: false;
231
218
  hasRuntimeDefault: false;
@@ -665,32 +652,15 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
665
652
  identity: undefined;
666
653
  generated: undefined;
667
654
  }, {}, {}>;
668
- sync: drizzle_orm_sqlite_core.SQLiteColumn<{
669
- name: "sync";
670
- tableName: "account";
671
- dataType: "boolean";
672
- columnType: "SQLiteBoolean";
673
- data: boolean;
674
- driverParam: number;
675
- notNull: true;
676
- hasDefault: true;
677
- isPrimaryKey: false;
678
- isAutoincrement: false;
679
- hasRuntimeDefault: false;
680
- enumValues: undefined;
681
- baseColumn: never;
682
- identity: undefined;
683
- generated: undefined;
684
- }, {}, {}>;
685
- syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
686
- name: "sync_period";
655
+ syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
656
+ name: "sync_interval_s";
687
657
  tableName: "account";
688
658
  dataType: "number";
689
659
  columnType: "SQLiteInteger";
690
660
  data: number;
691
661
  driverParam: number;
692
- notNull: false;
693
- hasDefault: false;
662
+ notNull: true;
663
+ hasDefault: true;
694
664
  isPrimaryKey: false;
695
665
  isAutoincrement: false;
696
666
  hasRuntimeDefault: false;
@@ -1130,32 +1100,15 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
1130
1100
  identity: undefined;
1131
1101
  generated: undefined;
1132
1102
  }, {}, {}>;
1133
- sync: drizzle_orm_sqlite_core.SQLiteColumn<{
1134
- name: "sync";
1135
- tableName: "account";
1136
- dataType: "boolean";
1137
- columnType: "SQLiteBoolean";
1138
- data: boolean;
1139
- driverParam: number;
1140
- notNull: true;
1141
- hasDefault: true;
1142
- isPrimaryKey: false;
1143
- isAutoincrement: false;
1144
- hasRuntimeDefault: false;
1145
- enumValues: undefined;
1146
- baseColumn: never;
1147
- identity: undefined;
1148
- generated: undefined;
1149
- }, {}, {}>;
1150
- syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
1151
- name: "sync_period";
1103
+ syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
1104
+ name: "sync_interval_s";
1152
1105
  tableName: "account";
1153
1106
  dataType: "number";
1154
1107
  columnType: "SQLiteInteger";
1155
1108
  data: number;
1156
1109
  driverParam: number;
1157
- notNull: false;
1158
- hasDefault: false;
1110
+ notNull: true;
1111
+ hasDefault: true;
1159
1112
  isPrimaryKey: false;
1160
1113
  isAutoincrement: false;
1161
1114
  hasRuntimeDefault: false;
@@ -229,7 +229,6 @@ const mapFinbricksAccountInsert = ({
229
229
  bankRefId: account.bankRefId,
230
230
  connectorKey,
231
231
  status,
232
- sync: false,
233
232
  currency: account.currency,
234
233
  number: account.identification.accountNumber,
235
234
  bankCode: account.servicer.bankCode,
@@ -564,13 +563,14 @@ class FinbricksConnector extends IBankConnector {
564
563
  };
565
564
  }
566
565
  async getAllAccountPayments({
567
- account
566
+ account,
567
+ filter
568
568
  }) {
569
- const dateFormat = "yyyy-MM-dd";
570
- const dateFrom = format(account.lastSyncedAt, dateFormat);
571
- const dateTo = format(/* @__PURE__ */ new Date(), dateFormat);
572
569
  let cursor = null;
573
570
  const allPayments = [];
571
+ const dateFormat = "yyyy-MM-dd";
572
+ const dateFrom = format(filter.dateFrom, dateFormat);
573
+ const dateTo = format(filter?.dateTo ?? /* @__PURE__ */ new Date(), dateFormat);
574
574
  const fetchTransactions = async (cursor2) => {
575
575
  return useResult(
576
576
  this.finbricks.request({
@@ -873,18 +873,19 @@ class ErsteConnector extends IBankConnector {
873
873
  return (await data.json()).signingUrl;
874
874
  }
875
875
  async getAllAccountPayments({
876
- account
876
+ account,
877
+ filter
877
878
  }) {
878
879
  const erstePayments = [];
879
880
  const dateFormat = "yyyy-MM-dd";
880
- const fromDate = format(account.lastSyncedAt, dateFormat);
881
- const toDate = format(/* @__PURE__ */ new Date(), dateFormat);
881
+ const dateFrom = format(filter.dateFrom, dateFormat);
882
+ const dateTo = format(filter?.dateTo ?? /* @__PURE__ */ new Date(), dateFormat);
882
883
  let page = 0;
883
884
  const pageSize = 200;
884
885
  const pageCount = 1;
885
886
  while (page < pageCount) {
886
887
  const response = await fetch(
887
- `${this.ACCOUNTS_URI}/my/accounts/${account.id}/transactions?fromDate=${fromDate}&toDate=${toDate}&size=${pageSize}&page=${page}&sort=bookingDate&order=desc`,
888
+ `${this.ACCOUNTS_URI}/my/accounts/${account.id}/transactions?fromDate=${dateFrom}&toDate=${dateTo}&size=${pageSize}&page=${page}&sort=bookingDate&order=desc`,
888
889
  {
889
890
  headers: {
890
891
  "WEB-API-key": this.API_KEY,
@@ -1114,8 +1115,7 @@ const account = sqliteTable(
1114
1115
  status: text("status", { enum: ACCOUNT_STATUSES }).$type().notNull(),
1115
1116
  bankRefId: text("bank_ref_id").notNull(),
1116
1117
  batchSizeLimit: integer("batch_size_limit").notNull().default(50),
1117
- sync: integer("sync", { mode: "boolean" }).default(false).notNull(),
1118
- syncPeriod: integer("sync_period"),
1118
+ syncIntervalS: integer("sync_interval_s").notNull().default(600),
1119
1119
  lastSyncedAt: integer("last_synced_at", { mode: "timestamp_ms" })
1120
1120
  },
1121
1121
  (t) => [unique().on(t.iban)]
@@ -231,7 +231,6 @@ const mapFinbricksAccountInsert = ({
231
231
  bankRefId: account.bankRefId,
232
232
  connectorKey,
233
233
  status,
234
- sync: false,
235
234
  currency: account.currency,
236
235
  number: account.identification.accountNumber,
237
236
  bankCode: account.servicer.bankCode,
@@ -566,13 +565,14 @@ class FinbricksConnector extends IBankConnector {
566
565
  };
567
566
  }
568
567
  async getAllAccountPayments({
569
- account
568
+ account,
569
+ filter
570
570
  }) {
571
- const dateFormat = "yyyy-MM-dd";
572
- const dateFrom = dateFns.format(account.lastSyncedAt, dateFormat);
573
- const dateTo = dateFns.format(/* @__PURE__ */ new Date(), dateFormat);
574
571
  let cursor = null;
575
572
  const allPayments = [];
573
+ const dateFormat = "yyyy-MM-dd";
574
+ const dateFrom = dateFns.format(filter.dateFrom, dateFormat);
575
+ const dateTo = dateFns.format(filter?.dateTo ?? /* @__PURE__ */ new Date(), dateFormat);
576
576
  const fetchTransactions = async (cursor2) => {
577
577
  return backendSdk.useResult(
578
578
  this.finbricks.request({
@@ -875,18 +875,19 @@ class ErsteConnector extends IBankConnector {
875
875
  return (await data.json()).signingUrl;
876
876
  }
877
877
  async getAllAccountPayments({
878
- account
878
+ account,
879
+ filter
879
880
  }) {
880
881
  const erstePayments = [];
881
882
  const dateFormat = "yyyy-MM-dd";
882
- const fromDate = dateFns.format(account.lastSyncedAt, dateFormat);
883
- const toDate = dateFns.format(/* @__PURE__ */ new Date(), dateFormat);
883
+ const dateFrom = dateFns.format(filter.dateFrom, dateFormat);
884
+ const dateTo = dateFns.format(filter?.dateTo ?? /* @__PURE__ */ new Date(), dateFormat);
884
885
  let page = 0;
885
886
  const pageSize = 200;
886
887
  const pageCount = 1;
887
888
  while (page < pageCount) {
888
889
  const response = await fetch(
889
- `${this.ACCOUNTS_URI}/my/accounts/${account.id}/transactions?fromDate=${fromDate}&toDate=${toDate}&size=${pageSize}&page=${page}&sort=bookingDate&order=desc`,
890
+ `${this.ACCOUNTS_URI}/my/accounts/${account.id}/transactions?fromDate=${dateFrom}&toDate=${dateTo}&size=${pageSize}&page=${page}&sort=bookingDate&order=desc`,
890
891
  {
891
892
  headers: {
892
893
  "WEB-API-key": this.API_KEY,
@@ -1116,8 +1117,7 @@ const account = sqliteCore.sqliteTable(
1116
1117
  status: sqliteCore.text("status", { enum: ACCOUNT_STATUSES }).$type().notNull(),
1117
1118
  bankRefId: sqliteCore.text("bank_ref_id").notNull(),
1118
1119
  batchSizeLimit: sqliteCore.integer("batch_size_limit").notNull().default(50),
1119
- sync: sqliteCore.integer("sync", { mode: "boolean" }).default(false).notNull(),
1120
- syncPeriod: sqliteCore.integer("sync_period"),
1120
+ syncIntervalS: sqliteCore.integer("sync_interval_s").notNull().default(600),
1121
1121
  lastSyncedAt: sqliteCore.integer("last_synced_at", { mode: "timestamp_ms" })
1122
1122
  },
1123
1123
  (t) => [sqliteCore.unique().on(t.iban)]
@@ -1024,32 +1024,15 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1024
1024
  identity: undefined;
1025
1025
  generated: undefined;
1026
1026
  }, {}, {}>;
1027
- sync: drizzle_orm_sqlite_core.SQLiteColumn<{
1028
- name: "sync";
1029
- tableName: "account";
1030
- dataType: "boolean";
1031
- columnType: "SQLiteBoolean";
1032
- data: boolean;
1033
- driverParam: number;
1034
- notNull: true;
1035
- hasDefault: true;
1036
- isPrimaryKey: false;
1037
- isAutoincrement: false;
1038
- hasRuntimeDefault: false;
1039
- enumValues: undefined;
1040
- baseColumn: never;
1041
- identity: undefined;
1042
- generated: undefined;
1043
- }, {}, {}>;
1044
- syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
1045
- name: "sync_period";
1027
+ syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
1028
+ name: "sync_interval_s";
1046
1029
  tableName: "account";
1047
1030
  dataType: "number";
1048
1031
  columnType: "SQLiteInteger";
1049
1032
  data: number;
1050
1033
  driverParam: number;
1051
- notNull: false;
1052
- hasDefault: false;
1034
+ notNull: true;
1035
+ hasDefault: true;
1053
1036
  isPrimaryKey: false;
1054
1037
  isAutoincrement: false;
1055
1038
  hasRuntimeDefault: false;
@@ -1024,32 +1024,15 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1024
1024
  identity: undefined;
1025
1025
  generated: undefined;
1026
1026
  }, {}, {}>;
1027
- sync: drizzle_orm_sqlite_core.SQLiteColumn<{
1028
- name: "sync";
1029
- tableName: "account";
1030
- dataType: "boolean";
1031
- columnType: "SQLiteBoolean";
1032
- data: boolean;
1033
- driverParam: number;
1034
- notNull: true;
1035
- hasDefault: true;
1036
- isPrimaryKey: false;
1037
- isAutoincrement: false;
1038
- hasRuntimeDefault: false;
1039
- enumValues: undefined;
1040
- baseColumn: never;
1041
- identity: undefined;
1042
- generated: undefined;
1043
- }, {}, {}>;
1044
- syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
1045
- name: "sync_period";
1027
+ syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
1028
+ name: "sync_interval_s";
1046
1029
  tableName: "account";
1047
1030
  dataType: "number";
1048
1031
  columnType: "SQLiteInteger";
1049
1032
  data: number;
1050
1033
  driverParam: number;
1051
- notNull: false;
1052
- hasDefault: false;
1034
+ notNull: true;
1035
+ hasDefault: true;
1053
1036
  isPrimaryKey: false;
1054
1037
  isAutoincrement: false;
1055
1038
  hasRuntimeDefault: false;
@@ -1024,32 +1024,15 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1024
1024
  identity: undefined;
1025
1025
  generated: undefined;
1026
1026
  }, {}, {}>;
1027
- sync: drizzle_orm_sqlite_core.SQLiteColumn<{
1028
- name: "sync";
1029
- tableName: "account";
1030
- dataType: "boolean";
1031
- columnType: "SQLiteBoolean";
1032
- data: boolean;
1033
- driverParam: number;
1034
- notNull: true;
1035
- hasDefault: true;
1036
- isPrimaryKey: false;
1037
- isAutoincrement: false;
1038
- hasRuntimeDefault: false;
1039
- enumValues: undefined;
1040
- baseColumn: never;
1041
- identity: undefined;
1042
- generated: undefined;
1043
- }, {}, {}>;
1044
- syncPeriod: drizzle_orm_sqlite_core.SQLiteColumn<{
1045
- name: "sync_period";
1027
+ syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
1028
+ name: "sync_interval_s";
1046
1029
  tableName: "account";
1047
1030
  dataType: "number";
1048
1031
  columnType: "SQLiteInteger";
1049
1032
  data: number;
1050
1033
  driverParam: number;
1051
- notNull: false;
1052
- hasDefault: false;
1034
+ notNull: true;
1035
+ hasDefault: true;
1053
1036
  isPrimaryKey: false;
1054
1037
  isAutoincrement: false;
1055
1038
  hasRuntimeDefault: false;
package/dist/types.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('./shared/bank.BVzOzXdX.cjs');
4
- const mockCobs_connector = require('./shared/bank.BPcrbUBa.cjs');
3
+ const database_schema = require('./shared/bank.UfRkUN2y.cjs');
4
+ const mockCobs_connector = require('./shared/bank.DISsqBb6.cjs');
5
5
  const generalCodes = require('@develit-io/general-codes');
6
6
  require('@develit-io/backend-sdk');
7
7
  require('drizzle-orm/sqlite-core');
package/dist/types.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.DmzkJQVU.cjs';
2
- export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.DmzkJQVU.cjs';
3
- import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.CCilUVCi.cjs';
4
- export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.CCilUVCi.cjs';
1
+ import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.BQSnGZ-3.cjs';
2
+ export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.BQSnGZ-3.cjs';
3
+ import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.mub5_S4r.cjs';
4
+ export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.mub5_S4r.cjs';
5
5
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
6
6
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
7
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
@@ -59,8 +59,12 @@ declare class ErsteConnector extends IBankConnector {
59
59
  signId: string;
60
60
  signHash: string;
61
61
  }): Promise<string>;
62
- getAllAccountPayments({ account, }: {
62
+ getAllAccountPayments({ account, filter, }: {
63
63
  account: AccountSelectType;
64
+ filter: {
65
+ dateFrom: Date;
66
+ dateTo?: Date;
67
+ };
64
68
  }): Promise<PaymentInsertType[]>;
65
69
  getPaymentStatus(_: {
66
70
  paymentId: string;
@@ -414,10 +418,13 @@ declare abstract class FinbricksConnector extends IBankConnector {
414
418
  }): Promise<InitiatedBatch>;
415
419
  initiateSEPAPayment(payment: IncomingPaymentMessage): Promise<InitiatedPayment>;
416
420
  initiateSinglePayment(payment: PaymentPreparedInsertType): Promise<InitiatedPayment>;
417
- getAllAccountPayments({ account, }: {
421
+ getAllAccountPayments({ account, filter, }: {
418
422
  account: AccountSelectType;
419
- db: DrizzleD1Database<typeof tables>;
420
- env: Environment;
423
+ environment: Environment;
424
+ filter: {
425
+ dateFrom: Date;
426
+ dateTo?: Date;
427
+ };
421
428
  }): Promise<PaymentInsertType[]>;
422
429
  getPaymentStatus({ paymentId, }: {
423
430
  paymentId: string;
@@ -600,7 +607,7 @@ interface ErsteObtainAuthorizationURLResponse {
600
607
 
601
608
  type BankPaymentEvent = BaseEvent & {
602
609
  eventType: 'BANK_PAYMENT';
603
- eventSignal: 'created' | 'completed' | 'failed';
610
+ eventSignal: 'paymentCreated' | 'paymentCompleted' | 'paymentFailed' | 'paymentUpdated';
604
611
  bankPayment: Partial<PaymentSelectType>;
605
612
  };
606
613
 
package/dist/types.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.NTyp2XAv.mjs';
2
- export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.NTyp2XAv.mjs';
3
- import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.CCilUVCi.mjs';
4
- export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.CCilUVCi.mjs';
1
+ import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.DW3cHO1u.mjs';
2
+ export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.DW3cHO1u.mjs';
3
+ import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.mub5_S4r.mjs';
4
+ export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.mub5_S4r.mjs';
5
5
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
6
6
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
7
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
@@ -59,8 +59,12 @@ declare class ErsteConnector extends IBankConnector {
59
59
  signId: string;
60
60
  signHash: string;
61
61
  }): Promise<string>;
62
- getAllAccountPayments({ account, }: {
62
+ getAllAccountPayments({ account, filter, }: {
63
63
  account: AccountSelectType;
64
+ filter: {
65
+ dateFrom: Date;
66
+ dateTo?: Date;
67
+ };
64
68
  }): Promise<PaymentInsertType[]>;
65
69
  getPaymentStatus(_: {
66
70
  paymentId: string;
@@ -414,10 +418,13 @@ declare abstract class FinbricksConnector extends IBankConnector {
414
418
  }): Promise<InitiatedBatch>;
415
419
  initiateSEPAPayment(payment: IncomingPaymentMessage): Promise<InitiatedPayment>;
416
420
  initiateSinglePayment(payment: PaymentPreparedInsertType): Promise<InitiatedPayment>;
417
- getAllAccountPayments({ account, }: {
421
+ getAllAccountPayments({ account, filter, }: {
418
422
  account: AccountSelectType;
419
- db: DrizzleD1Database<typeof tables>;
420
- env: Environment;
423
+ environment: Environment;
424
+ filter: {
425
+ dateFrom: Date;
426
+ dateTo?: Date;
427
+ };
421
428
  }): Promise<PaymentInsertType[]>;
422
429
  getPaymentStatus({ paymentId, }: {
423
430
  paymentId: string;
@@ -600,7 +607,7 @@ interface ErsteObtainAuthorizationURLResponse {
600
607
 
601
608
  type BankPaymentEvent = BaseEvent & {
602
609
  eventType: 'BANK_PAYMENT';
603
- eventSignal: 'created' | 'completed' | 'failed';
610
+ eventSignal: 'paymentCreated' | 'paymentCompleted' | 'paymentFailed' | 'paymentUpdated';
604
611
  bankPayment: Partial<PaymentSelectType>;
605
612
  };
606
613
 
package/dist/types.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.0KTS9nMz.js';
2
- export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.0KTS9nMz.js';
3
- import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.CCilUVCi.js';
4
- export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.CCilUVCi.js';
1
+ import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.CouYVuOf.js';
2
+ export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.CouYVuOf.js';
3
+ import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.mub5_S4r.js';
4
+ export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.mub5_S4r.js';
5
5
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
6
6
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
7
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
@@ -59,8 +59,12 @@ declare class ErsteConnector extends IBankConnector {
59
59
  signId: string;
60
60
  signHash: string;
61
61
  }): Promise<string>;
62
- getAllAccountPayments({ account, }: {
62
+ getAllAccountPayments({ account, filter, }: {
63
63
  account: AccountSelectType;
64
+ filter: {
65
+ dateFrom: Date;
66
+ dateTo?: Date;
67
+ };
64
68
  }): Promise<PaymentInsertType[]>;
65
69
  getPaymentStatus(_: {
66
70
  paymentId: string;
@@ -414,10 +418,13 @@ declare abstract class FinbricksConnector extends IBankConnector {
414
418
  }): Promise<InitiatedBatch>;
415
419
  initiateSEPAPayment(payment: IncomingPaymentMessage): Promise<InitiatedPayment>;
416
420
  initiateSinglePayment(payment: PaymentPreparedInsertType): Promise<InitiatedPayment>;
417
- getAllAccountPayments({ account, }: {
421
+ getAllAccountPayments({ account, filter, }: {
418
422
  account: AccountSelectType;
419
- db: DrizzleD1Database<typeof tables>;
420
- env: Environment;
423
+ environment: Environment;
424
+ filter: {
425
+ dateFrom: Date;
426
+ dateTo?: Date;
427
+ };
421
428
  }): Promise<PaymentInsertType[]>;
422
429
  getPaymentStatus({ paymentId, }: {
423
430
  paymentId: string;
@@ -600,7 +607,7 @@ interface ErsteObtainAuthorizationURLResponse {
600
607
 
601
608
  type BankPaymentEvent = BaseEvent & {
602
609
  eventType: 'BANK_PAYMENT';
603
- eventSignal: 'created' | 'completed' | 'failed';
610
+ eventSignal: 'paymentCreated' | 'paymentCompleted' | 'paymentFailed' | 'paymentUpdated';
604
611
  bankPayment: Partial<PaymentSelectType>;
605
612
  };
606
613
 
package/dist/types.mjs CHANGED
@@ -1,5 +1,5 @@
1
- export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, r as ottSelectSchema, q as ottUpdateSchema, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.BWcFhTu1.mjs';
2
- export { M as MockCobsConnector } from './shared/bank.6WoCPIFy.mjs';
1
+ export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, r as ottSelectSchema, q as ottUpdateSchema, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.RUV2HUFo.mjs';
2
+ export { M as MockCobsConnector } from './shared/bank.8lAQLFNI.mjs';
3
3
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
4
4
  import '@develit-io/backend-sdk';
5
5
  import 'drizzle-orm/sqlite-core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.0.44",
3
+ "version": "0.1.1",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -14,6 +14,11 @@
14
14
  "import": "./dist/export/worker.mjs",
15
15
  "require": "./dist/export/worker.cjs"
16
16
  },
17
+ "./workflows": {
18
+ "types": "./dist/export/workflows.d.ts",
19
+ "import": "./dist/export/workflows.mjs",
20
+ "require": "./dist/export/workflows.cjs"
21
+ },
17
22
  "./db-schema": {
18
23
  "types": "./dist/database/schema.d.ts",
19
24
  "import": "./dist/database/schema.mjs",