@develit-services/bank 0.3.56 → 0.3.58

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.
@@ -1,4 +1,4 @@
1
- export { aa as account, ab as accountCredentials, a6 as batch, a9 as ott, a7 as payment, a8 as paymentRelations } from '../shared/bank.Clkw7jCx.cjs';
1
+ export { aa as account, ab as accountCredentials, a6 as batch, a9 as ott, a7 as payment, a8 as paymentRelations } from '../shared/bank.B0eZO8Uk.cjs';
2
2
  import 'zod';
3
3
  import 'drizzle-zod';
4
4
  import 'drizzle-orm/sqlite-core';
@@ -1,4 +1,4 @@
1
- export { aa as account, ab as accountCredentials, a6 as batch, a9 as ott, a7 as payment, a8 as paymentRelations } from '../shared/bank.Clkw7jCx.mjs';
1
+ export { aa as account, ab as accountCredentials, a6 as batch, a9 as ott, a7 as payment, a8 as paymentRelations } from '../shared/bank.B0eZO8Uk.mjs';
2
2
  import 'zod';
3
3
  import 'drizzle-zod';
4
4
  import 'drizzle-orm/sqlite-core';
@@ -1,4 +1,4 @@
1
- export { aa as account, ab as accountCredentials, a6 as batch, a9 as ott, a7 as payment, a8 as paymentRelations } from '../shared/bank.Clkw7jCx.js';
1
+ export { aa as account, ab as accountCredentials, a6 as batch, a9 as ott, a7 as payment, a8 as paymentRelations } from '../shared/bank.B0eZO8Uk.js';
2
2
  import 'zod';
3
3
  import 'drizzle-zod';
4
4
  import 'drizzle-orm/sqlite-core';
@@ -3,7 +3,7 @@
3
3
  const backendSdk = require('@develit-io/backend-sdk');
4
4
  const cloudflare_workers = require('cloudflare:workers');
5
5
  const d1 = require('drizzle-orm/d1');
6
- const drizzle = require('../shared/bank.BdlPpN78.cjs');
6
+ const drizzle = require('../shared/bank.CxDAfjIN.cjs');
7
7
  const zod = require('zod');
8
8
  const database_schema = require('../shared/bank.BnDb4liE.cjs');
9
9
  const generalCodes = require('@develit-io/general-codes');
@@ -11,7 +11,7 @@ require('date-fns');
11
11
  const drizzleOrm = require('drizzle-orm');
12
12
  require('jose');
13
13
  require('node:crypto');
14
- const encryption = require('../shared/bank.BfxCyEqX.cjs');
14
+ const encryption = require('../shared/bank.CVym33Hk.cjs');
15
15
  require('drizzle-orm/sqlite-core');
16
16
  require('drizzle-orm/relations');
17
17
  require('drizzle-zod');
@@ -849,7 +849,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
849
849
  async authorizeAccount(input) {
850
850
  return this.handleAction(
851
851
  { data: input, schema: authorizeAccountInputSchema },
852
- { successMessage: "Erste code saved." },
852
+ { successMessage: "Account connected" },
853
853
  async ({ ott, urlParams, syncIntervalS, startSync, lastSyncAt }) => {
854
854
  const ottRow = await getOttQuery(this.db, {
855
855
  ott
@@ -883,7 +883,6 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
883
883
  );
884
884
  const base = { ...acc };
885
885
  const existingPart = existingAccount ? {
886
- id: existingAccount.id,
887
886
  lastSyncAt: existingAccount.lastSyncAt
888
887
  } : {
889
888
  lastSyncAt: lastSyncAt ?? /* @__PURE__ */ new Date(),
@@ -914,8 +913,8 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
914
913
  });
915
914
  await this.db.batch([
916
915
  updateOtt,
917
- ...upsertAccounts,
918
916
  ...deleteCredentials,
917
+ ...upsertAccounts,
919
918
  ...createAccountCredentials
920
919
  ]);
921
920
  const fetchedAccounts = await this._getAccounts();
@@ -1030,6 +1029,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
1030
1029
  accounts.map(async (a) => {
1031
1030
  const result = {
1032
1031
  ...a,
1032
+ expiresAt: a.expiresAt || null,
1033
1033
  workflow: null,
1034
1034
  batches: null
1035
1035
  };
@@ -1,4 +1,4 @@
1
- import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector, b as BatchPayment, c as BatchMetadata } from '../shared/bank.Clkw7jCx.cjs';
1
+ import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector, b as BatchPayment, c as BatchMetadata } from '../shared/bank.B0eZO8Uk.cjs';
2
2
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
3
3
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
@@ -1532,19 +1532,19 @@ declare const getBatchesInputSchema: z.ZodObject<{
1532
1532
  }, z.core.$strip>;
1533
1533
  filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
1534
1534
  filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1535
- FAILED: "FAILED";
1536
1535
  OPEN: "OPEN";
1537
1536
  PROCESSING: "PROCESSING";
1538
1537
  READY_TO_SIGN: "READY_TO_SIGN";
1539
1538
  SIGNED: "SIGNED";
1540
1539
  SIGNATURE_FAILED: "SIGNATURE_FAILED";
1541
- }>, z.ZodArray<z.ZodEnum<{
1542
1540
  FAILED: "FAILED";
1541
+ }>, z.ZodArray<z.ZodEnum<{
1543
1542
  OPEN: "OPEN";
1544
1543
  PROCESSING: "PROCESSING";
1545
1544
  READY_TO_SIGN: "READY_TO_SIGN";
1546
1545
  SIGNED: "SIGNED";
1547
1546
  SIGNATURE_FAILED: "SIGNATURE_FAILED";
1547
+ FAILED: "FAILED";
1548
1548
  }>>]>>;
1549
1549
  }, z.core.$strip>;
1550
1550
  type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
@@ -1789,16 +1789,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
1789
1789
  filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
1790
1790
  filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
1791
1791
  filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1792
+ FAILED: "FAILED";
1792
1793
  PREPARED: "PREPARED";
1793
1794
  INITIALIZED: "INITIALIZED";
1794
- FAILED: "FAILED";
1795
1795
  PENDING: "PENDING";
1796
1796
  COMPLETED: "COMPLETED";
1797
1797
  CREATED: "CREATED";
1798
1798
  }>, z.ZodArray<z.ZodEnum<{
1799
+ FAILED: "FAILED";
1799
1800
  PREPARED: "PREPARED";
1800
1801
  INITIALIZED: "INITIALIZED";
1801
- FAILED: "FAILED";
1802
1802
  PENDING: "PENDING";
1803
1803
  COMPLETED: "COMPLETED";
1804
1804
  CREATED: "CREATED";
@@ -2413,6 +2413,7 @@ type BatchCounts = {
2413
2413
  type AccountWithOptionalFields = AccountSelectType & {
2414
2414
  workflow: WorkflowInfo;
2415
2415
  batches: BatchCounts;
2416
+ expiresAt: Date | null;
2416
2417
  };
2417
2418
  type GetBankAccountsOutput = {
2418
2419
  accounts: AccountWithOptionalFields[];
@@ -2511,7 +2512,7 @@ declare class BankServiceBase extends BankServiceBase_base {
2511
2512
  addPaymentsToBatch({ paymentsToBatch, }: {
2512
2513
  paymentsToBatch: SendPaymentInput[];
2513
2514
  }): Promise<IRPCResponse<{
2514
- status: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | null;
2515
+ status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
2515
2516
  id: string;
2516
2517
  createdAt: Date | null;
2517
2518
  updatedAt: Date | null;
@@ -1,4 +1,4 @@
1
- import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector, b as BatchPayment, c as BatchMetadata } from '../shared/bank.Clkw7jCx.mjs';
1
+ import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector, b as BatchPayment, c as BatchMetadata } from '../shared/bank.B0eZO8Uk.mjs';
2
2
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
3
3
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
@@ -1532,19 +1532,19 @@ declare const getBatchesInputSchema: z.ZodObject<{
1532
1532
  }, z.core.$strip>;
1533
1533
  filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
1534
1534
  filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1535
- FAILED: "FAILED";
1536
1535
  OPEN: "OPEN";
1537
1536
  PROCESSING: "PROCESSING";
1538
1537
  READY_TO_SIGN: "READY_TO_SIGN";
1539
1538
  SIGNED: "SIGNED";
1540
1539
  SIGNATURE_FAILED: "SIGNATURE_FAILED";
1541
- }>, z.ZodArray<z.ZodEnum<{
1542
1540
  FAILED: "FAILED";
1541
+ }>, z.ZodArray<z.ZodEnum<{
1543
1542
  OPEN: "OPEN";
1544
1543
  PROCESSING: "PROCESSING";
1545
1544
  READY_TO_SIGN: "READY_TO_SIGN";
1546
1545
  SIGNED: "SIGNED";
1547
1546
  SIGNATURE_FAILED: "SIGNATURE_FAILED";
1547
+ FAILED: "FAILED";
1548
1548
  }>>]>>;
1549
1549
  }, z.core.$strip>;
1550
1550
  type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
@@ -1789,16 +1789,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
1789
1789
  filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
1790
1790
  filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
1791
1791
  filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1792
+ FAILED: "FAILED";
1792
1793
  PREPARED: "PREPARED";
1793
1794
  INITIALIZED: "INITIALIZED";
1794
- FAILED: "FAILED";
1795
1795
  PENDING: "PENDING";
1796
1796
  COMPLETED: "COMPLETED";
1797
1797
  CREATED: "CREATED";
1798
1798
  }>, z.ZodArray<z.ZodEnum<{
1799
+ FAILED: "FAILED";
1799
1800
  PREPARED: "PREPARED";
1800
1801
  INITIALIZED: "INITIALIZED";
1801
- FAILED: "FAILED";
1802
1802
  PENDING: "PENDING";
1803
1803
  COMPLETED: "COMPLETED";
1804
1804
  CREATED: "CREATED";
@@ -2413,6 +2413,7 @@ type BatchCounts = {
2413
2413
  type AccountWithOptionalFields = AccountSelectType & {
2414
2414
  workflow: WorkflowInfo;
2415
2415
  batches: BatchCounts;
2416
+ expiresAt: Date | null;
2416
2417
  };
2417
2418
  type GetBankAccountsOutput = {
2418
2419
  accounts: AccountWithOptionalFields[];
@@ -2511,7 +2512,7 @@ declare class BankServiceBase extends BankServiceBase_base {
2511
2512
  addPaymentsToBatch({ paymentsToBatch, }: {
2512
2513
  paymentsToBatch: SendPaymentInput[];
2513
2514
  }): Promise<IRPCResponse<{
2514
- status: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | null;
2515
+ status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
2515
2516
  id: string;
2516
2517
  createdAt: Date | null;
2517
2518
  updatedAt: Date | null;
@@ -1,4 +1,4 @@
1
- import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector, b as BatchPayment, c as BatchMetadata } from '../shared/bank.Clkw7jCx.js';
1
+ import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector, b as BatchPayment, c as BatchMetadata } from '../shared/bank.B0eZO8Uk.js';
2
2
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
3
3
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
@@ -1532,19 +1532,19 @@ declare const getBatchesInputSchema: z.ZodObject<{
1532
1532
  }, z.core.$strip>;
1533
1533
  filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
1534
1534
  filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1535
- FAILED: "FAILED";
1536
1535
  OPEN: "OPEN";
1537
1536
  PROCESSING: "PROCESSING";
1538
1537
  READY_TO_SIGN: "READY_TO_SIGN";
1539
1538
  SIGNED: "SIGNED";
1540
1539
  SIGNATURE_FAILED: "SIGNATURE_FAILED";
1541
- }>, z.ZodArray<z.ZodEnum<{
1542
1540
  FAILED: "FAILED";
1541
+ }>, z.ZodArray<z.ZodEnum<{
1543
1542
  OPEN: "OPEN";
1544
1543
  PROCESSING: "PROCESSING";
1545
1544
  READY_TO_SIGN: "READY_TO_SIGN";
1546
1545
  SIGNED: "SIGNED";
1547
1546
  SIGNATURE_FAILED: "SIGNATURE_FAILED";
1547
+ FAILED: "FAILED";
1548
1548
  }>>]>>;
1549
1549
  }, z.core.$strip>;
1550
1550
  type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
@@ -1789,16 +1789,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
1789
1789
  filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
1790
1790
  filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
1791
1791
  filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1792
+ FAILED: "FAILED";
1792
1793
  PREPARED: "PREPARED";
1793
1794
  INITIALIZED: "INITIALIZED";
1794
- FAILED: "FAILED";
1795
1795
  PENDING: "PENDING";
1796
1796
  COMPLETED: "COMPLETED";
1797
1797
  CREATED: "CREATED";
1798
1798
  }>, z.ZodArray<z.ZodEnum<{
1799
+ FAILED: "FAILED";
1799
1800
  PREPARED: "PREPARED";
1800
1801
  INITIALIZED: "INITIALIZED";
1801
- FAILED: "FAILED";
1802
1802
  PENDING: "PENDING";
1803
1803
  COMPLETED: "COMPLETED";
1804
1804
  CREATED: "CREATED";
@@ -2413,6 +2413,7 @@ type BatchCounts = {
2413
2413
  type AccountWithOptionalFields = AccountSelectType & {
2414
2414
  workflow: WorkflowInfo;
2415
2415
  batches: BatchCounts;
2416
+ expiresAt: Date | null;
2416
2417
  };
2417
2418
  type GetBankAccountsOutput = {
2418
2419
  accounts: AccountWithOptionalFields[];
@@ -2511,7 +2512,7 @@ declare class BankServiceBase extends BankServiceBase_base {
2511
2512
  addPaymentsToBatch({ paymentsToBatch, }: {
2512
2513
  paymentsToBatch: SendPaymentInput[];
2513
2514
  }): Promise<IRPCResponse<{
2514
- status: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | null;
2515
+ status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
2515
2516
  id: string;
2516
2517
  createdAt: Date | null;
2517
2518
  updatedAt: Date | null;
@@ -1,7 +1,7 @@
1
1
  import { uuidv4, first, bankAccountMetadataSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, action, service } from '@develit-io/backend-sdk';
2
2
  import { WorkerEntrypoint } from 'cloudflare:workers';
3
3
  import { drizzle } from 'drizzle-orm/d1';
4
- import { t as tables } from '../shared/bank.BiOcvKnQ.mjs';
4
+ import { t as tables } from '../shared/bank.COvfOo72.mjs';
5
5
  import { z } from 'zod';
6
6
  import { I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, P as PAYMENT_TYPES, d as CONNECTOR_KEYS, B as BATCH_STATUSES, a as PAYMENT_STATUSES, b as PAYMENT_DIRECTIONS, f as accountInsertSchema } from '../shared/bank.BPxg79Tw.mjs';
7
7
  import { CURRENCY_CODES } from '@develit-io/general-codes';
@@ -9,7 +9,7 @@ import 'date-fns';
9
9
  import { eq, sql, inArray, and, asc, desc, gte, lte } from 'drizzle-orm';
10
10
  import 'jose';
11
11
  import 'node:crypto';
12
- import { f as encrypt, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, d as getBatchByIdQuery, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.DbS9RyGZ.mjs';
12
+ import { f as encrypt, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, d as getBatchByIdQuery, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.DZ0DVfgg.mjs';
13
13
  import 'drizzle-orm/sqlite-core';
14
14
  import 'drizzle-orm/relations';
15
15
  import 'drizzle-zod';
@@ -847,7 +847,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
847
847
  async authorizeAccount(input) {
848
848
  return this.handleAction(
849
849
  { data: input, schema: authorizeAccountInputSchema },
850
- { successMessage: "Erste code saved." },
850
+ { successMessage: "Account connected" },
851
851
  async ({ ott, urlParams, syncIntervalS, startSync, lastSyncAt }) => {
852
852
  const ottRow = await getOttQuery(this.db, {
853
853
  ott
@@ -881,7 +881,6 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
881
881
  );
882
882
  const base = { ...acc };
883
883
  const existingPart = existingAccount ? {
884
- id: existingAccount.id,
885
884
  lastSyncAt: existingAccount.lastSyncAt
886
885
  } : {
887
886
  lastSyncAt: lastSyncAt ?? /* @__PURE__ */ new Date(),
@@ -912,8 +911,8 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
912
911
  });
913
912
  await this.db.batch([
914
913
  updateOtt,
915
- ...upsertAccounts,
916
914
  ...deleteCredentials,
915
+ ...upsertAccounts,
917
916
  ...createAccountCredentials
918
917
  ]);
919
918
  const fetchedAccounts = await this._getAccounts();
@@ -1028,6 +1027,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
1028
1027
  accounts.map(async (a) => {
1029
1028
  const result = {
1030
1029
  ...a,
1030
+ expiresAt: a.expiresAt || null,
1031
1031
  workflow: null,
1032
1032
  batches: null
1033
1033
  };
@@ -3,9 +3,9 @@
3
3
  const cloudflare_workers = require('cloudflare:workers');
4
4
  const cloudflare_workflows = require('cloudflare:workflows');
5
5
  const d1 = require('drizzle-orm/d1');
6
- const drizzle = require('../shared/bank.BdlPpN78.cjs');
6
+ const drizzle = require('../shared/bank.CxDAfjIN.cjs');
7
7
  const backendSdk = require('@develit-io/backend-sdk');
8
- const encryption = require('../shared/bank.BfxCyEqX.cjs');
8
+ const encryption = require('../shared/bank.CVym33Hk.cjs');
9
9
  const drizzleOrm = require('drizzle-orm');
10
10
  require('date-fns');
11
11
  require('../shared/bank.BnDb4liE.cjs');
@@ -1,9 +1,9 @@
1
1
  import { WorkflowEntrypoint } from 'cloudflare:workers';
2
2
  import { NonRetryableError } from 'cloudflare:workflows';
3
3
  import { drizzle } from 'drizzle-orm/d1';
4
- import { t as tables } from '../shared/bank.BiOcvKnQ.mjs';
4
+ import { t as tables } from '../shared/bank.COvfOo72.mjs';
5
5
  import { asNonEmpty, first } from '@develit-io/backend-sdk';
6
- import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand, d as getBatchByIdQuery, e as checksum, u as upsertBatchCommand } from '../shared/bank.DbS9RyGZ.mjs';
6
+ import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand, d as getBatchByIdQuery, e as checksum, u as upsertBatchCommand } from '../shared/bank.DZ0DVfgg.mjs';
7
7
  import { eq } from 'drizzle-orm';
8
8
  import 'date-fns';
9
9
  import '../shared/bank.BPxg79Tw.mjs';
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
71
71
  tableName: "batch";
72
72
  dataType: "string";
73
73
  columnType: "SQLiteText";
74
- data: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
74
+ data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
75
75
  driverParam: string;
76
76
  notNull: false;
77
77
  hasDefault: false;
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
84
84
  generated: undefined;
85
85
  }, {}, {
86
86
  length: number | undefined;
87
- $type: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
87
+ $type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
88
88
  }>;
89
89
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
90
90
  name: "status_reason";
@@ -437,7 +437,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
437
437
  tableName: "payment";
438
438
  dataType: "string";
439
439
  columnType: "SQLiteText";
440
- data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
440
+ data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
441
441
  driverParam: string;
442
442
  notNull: true;
443
443
  hasDefault: false;
@@ -450,7 +450,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
450
450
  generated: undefined;
451
451
  }, {}, {
452
452
  length: number | undefined;
453
- $type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
453
+ $type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
454
454
  }>;
455
455
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
456
456
  name: "status_reason";
@@ -1688,7 +1688,7 @@ declare abstract class IBankConnector {
1688
1688
  abstract authorizeAccount({ urlParams }: {
1689
1689
  urlParams: string;
1690
1690
  }): Promise<{
1691
- credentials: AccountCredentialsInsertType[];
1691
+ credentials: Omit<AccountCredentialsInsertType, 'accountId'>[];
1692
1692
  accounts: AccountInsertType[];
1693
1693
  }>;
1694
1694
  abstract listAccounts(): Promise<AccountInsertType[]>;
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
71
71
  tableName: "batch";
72
72
  dataType: "string";
73
73
  columnType: "SQLiteText";
74
- data: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
74
+ data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
75
75
  driverParam: string;
76
76
  notNull: false;
77
77
  hasDefault: false;
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
84
84
  generated: undefined;
85
85
  }, {}, {
86
86
  length: number | undefined;
87
- $type: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
87
+ $type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
88
88
  }>;
89
89
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
90
90
  name: "status_reason";
@@ -437,7 +437,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
437
437
  tableName: "payment";
438
438
  dataType: "string";
439
439
  columnType: "SQLiteText";
440
- data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
440
+ data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
441
441
  driverParam: string;
442
442
  notNull: true;
443
443
  hasDefault: false;
@@ -450,7 +450,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
450
450
  generated: undefined;
451
451
  }, {}, {
452
452
  length: number | undefined;
453
- $type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
453
+ $type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
454
454
  }>;
455
455
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
456
456
  name: "status_reason";
@@ -1688,7 +1688,7 @@ declare abstract class IBankConnector {
1688
1688
  abstract authorizeAccount({ urlParams }: {
1689
1689
  urlParams: string;
1690
1690
  }): Promise<{
1691
- credentials: AccountCredentialsInsertType[];
1691
+ credentials: Omit<AccountCredentialsInsertType, 'accountId'>[];
1692
1692
  accounts: AccountInsertType[];
1693
1693
  }>;
1694
1694
  abstract listAccounts(): Promise<AccountInsertType[]>;
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
71
71
  tableName: "batch";
72
72
  dataType: "string";
73
73
  columnType: "SQLiteText";
74
- data: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
74
+ data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
75
75
  driverParam: string;
76
76
  notNull: false;
77
77
  hasDefault: false;
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
84
84
  generated: undefined;
85
85
  }, {}, {
86
86
  length: number | undefined;
87
- $type: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
87
+ $type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
88
88
  }>;
89
89
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
90
90
  name: "status_reason";
@@ -437,7 +437,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
437
437
  tableName: "payment";
438
438
  dataType: "string";
439
439
  columnType: "SQLiteText";
440
- data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
440
+ data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
441
441
  driverParam: string;
442
442
  notNull: true;
443
443
  hasDefault: false;
@@ -450,7 +450,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
450
450
  generated: undefined;
451
451
  }, {}, {
452
452
  length: number | undefined;
453
- $type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
453
+ $type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
454
454
  }>;
455
455
  statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
456
456
  name: "status_reason";
@@ -1688,7 +1688,7 @@ declare abstract class IBankConnector {
1688
1688
  abstract authorizeAccount({ urlParams }: {
1689
1689
  urlParams: string;
1690
1690
  }): Promise<{
1691
- credentials: AccountCredentialsInsertType[];
1691
+ credentials: Omit<AccountCredentialsInsertType, 'accountId'>[];
1692
1692
  accounts: AccountInsertType[];
1693
1693
  }>;
1694
1694
  abstract listAccounts(): Promise<AccountInsertType[]>;
@@ -300,12 +300,12 @@ class FinbricksConnector extends IBankConnector {
300
300
  (acc) => ({
301
301
  ...acc,
302
302
  bankRefId: acc.id,
303
- id: uuidv4()
303
+ id: acc.identification.iban
304
304
  })
305
305
  );
306
306
  const credentials = accounts.map((acc) => ({
307
307
  connectorKey: this.PROVIDER,
308
- expiresAt: new Date(Date.now() + 36e5),
308
+ expiresAt: new Date(Date.now() + 2592e6),
309
309
  type: "CLIENT_ID",
310
310
  value: clientId,
311
311
  accountId: acc.id
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const drizzle = require('./bank.BdlPpN78.cjs');
3
+ const drizzle = require('./bank.CxDAfjIN.cjs');
4
4
  const backendSdk = require('@develit-io/backend-sdk');
5
5
  const drizzleOrm = require('drizzle-orm');
6
6
  require('date-fns');
@@ -302,12 +302,12 @@ class FinbricksConnector extends IBankConnector {
302
302
  (acc) => ({
303
303
  ...acc,
304
304
  bankRefId: acc.id,
305
- id: backendSdk.uuidv4()
305
+ id: acc.identification.iban
306
306
  })
307
307
  );
308
308
  const credentials = accounts.map((acc) => ({
309
309
  connectorKey: this.PROVIDER,
310
- expiresAt: new Date(Date.now() + 36e5),
310
+ expiresAt: new Date(Date.now() + 2592e6),
311
311
  type: "CLIENT_ID",
312
312
  value: clientId,
313
313
  accountId: acc.id
@@ -1,4 +1,4 @@
1
- import { t as tables, F as FinbricksConnector, M as MockConnector, a as MockCobsConnector, E as ErsteConnector } from './bank.BiOcvKnQ.mjs';
1
+ import { t as tables, F as FinbricksConnector, M as MockConnector, a as MockCobsConnector, E as ErsteConnector } from './bank.COvfOo72.mjs';
2
2
  import { uuidv4 } from '@develit-io/backend-sdk';
3
3
  import { eq } from 'drizzle-orm';
4
4
  import 'date-fns';
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const drizzle = require('./shared/bank.BdlPpN78.cjs');
3
+ const drizzle = require('./shared/bank.CxDAfjIN.cjs');
4
4
  const database_schema = require('./shared/bank.BnDb4liE.cjs');
5
5
  const generalCodes = require('@develit-io/general-codes');
6
6
  require('@develit-io/backend-sdk');
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.Clkw7jCx.cjs';
2
- export { M as ACCOUNT_STATUSES, a4 as AccountCredentialsPatchType, a5 as AccountCredentialsSelectType, a3 as AccountCredentialsUpdateType, $ as AccountPatchType, N as AccountStatus, _ as AccountUpdateType, x as BATCH_STATUES, x as BATCH_STATUSES, R as BankAccountWithLastSync, w as BatchInsertType, b as BatchPayment, B as BatchSelectType, D as CHARGE_BEARERS, S as CONNECTOR_KEYS, Q as COUNTRY_CODES, T as CREDENTIALS_TYPES, E as ChargeBearer, C as ConfigEnvironmentBank, U as CredentialsType, F as INSTRUCTION_PRIORITIES, G as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, J as PAYMENT_DIRECTIONS, H as PAYMENT_STATUSES, y as PAYMENT_TYPES, K as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, v as PaymentInsertType, z as PaymentType, V as TOKEN_TYPES, W as TokenType, a0 as accountCredentialsInsertSchema, a2 as accountCredentialsSelectSchema, a1 as accountCredentialsUpdateSchema, X as accountInsertSchema, Z as accountSelectSchema, Y as accountUpdateSchema } from './shared/bank.Clkw7jCx.cjs';
1
+ import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.B0eZO8Uk.cjs';
2
+ export { M as ACCOUNT_STATUSES, a4 as AccountCredentialsPatchType, a5 as AccountCredentialsSelectType, a3 as AccountCredentialsUpdateType, $ as AccountPatchType, N as AccountStatus, _ as AccountUpdateType, x as BATCH_STATUES, x as BATCH_STATUSES, R as BankAccountWithLastSync, w as BatchInsertType, b as BatchPayment, B as BatchSelectType, D as CHARGE_BEARERS, S as CONNECTOR_KEYS, Q as COUNTRY_CODES, T as CREDENTIALS_TYPES, E as ChargeBearer, C as ConfigEnvironmentBank, U as CredentialsType, F as INSTRUCTION_PRIORITIES, G as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, J as PAYMENT_DIRECTIONS, H as PAYMENT_STATUSES, y as PAYMENT_TYPES, K as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, v as PaymentInsertType, z as PaymentType, V as TOKEN_TYPES, W as TokenType, a0 as accountCredentialsInsertSchema, a2 as accountCredentialsSelectSchema, a1 as accountCredentialsUpdateSchema, X as accountInsertSchema, Z as accountSelectSchema, Y as accountUpdateSchema } from './shared/bank.B0eZO8Uk.cjs';
3
3
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
5
5
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.Dh_H_5rC.cjs';
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.Clkw7jCx.mjs';
2
- export { M as ACCOUNT_STATUSES, a4 as AccountCredentialsPatchType, a5 as AccountCredentialsSelectType, a3 as AccountCredentialsUpdateType, $ as AccountPatchType, N as AccountStatus, _ as AccountUpdateType, x as BATCH_STATUES, x as BATCH_STATUSES, R as BankAccountWithLastSync, w as BatchInsertType, b as BatchPayment, B as BatchSelectType, D as CHARGE_BEARERS, S as CONNECTOR_KEYS, Q as COUNTRY_CODES, T as CREDENTIALS_TYPES, E as ChargeBearer, C as ConfigEnvironmentBank, U as CredentialsType, F as INSTRUCTION_PRIORITIES, G as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, J as PAYMENT_DIRECTIONS, H as PAYMENT_STATUSES, y as PAYMENT_TYPES, K as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, v as PaymentInsertType, z as PaymentType, V as TOKEN_TYPES, W as TokenType, a0 as accountCredentialsInsertSchema, a2 as accountCredentialsSelectSchema, a1 as accountCredentialsUpdateSchema, X as accountInsertSchema, Z as accountSelectSchema, Y as accountUpdateSchema } from './shared/bank.Clkw7jCx.mjs';
1
+ import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.B0eZO8Uk.mjs';
2
+ export { M as ACCOUNT_STATUSES, a4 as AccountCredentialsPatchType, a5 as AccountCredentialsSelectType, a3 as AccountCredentialsUpdateType, $ as AccountPatchType, N as AccountStatus, _ as AccountUpdateType, x as BATCH_STATUES, x as BATCH_STATUSES, R as BankAccountWithLastSync, w as BatchInsertType, b as BatchPayment, B as BatchSelectType, D as CHARGE_BEARERS, S as CONNECTOR_KEYS, Q as COUNTRY_CODES, T as CREDENTIALS_TYPES, E as ChargeBearer, C as ConfigEnvironmentBank, U as CredentialsType, F as INSTRUCTION_PRIORITIES, G as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, J as PAYMENT_DIRECTIONS, H as PAYMENT_STATUSES, y as PAYMENT_TYPES, K as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, v as PaymentInsertType, z as PaymentType, V as TOKEN_TYPES, W as TokenType, a0 as accountCredentialsInsertSchema, a2 as accountCredentialsSelectSchema, a1 as accountCredentialsUpdateSchema, X as accountInsertSchema, Z as accountSelectSchema, Y as accountUpdateSchema } from './shared/bank.B0eZO8Uk.mjs';
3
3
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
5
5
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.Dh_H_5rC.mjs';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.Clkw7jCx.js';
2
- export { M as ACCOUNT_STATUSES, a4 as AccountCredentialsPatchType, a5 as AccountCredentialsSelectType, a3 as AccountCredentialsUpdateType, $ as AccountPatchType, N as AccountStatus, _ as AccountUpdateType, x as BATCH_STATUES, x as BATCH_STATUSES, R as BankAccountWithLastSync, w as BatchInsertType, b as BatchPayment, B as BatchSelectType, D as CHARGE_BEARERS, S as CONNECTOR_KEYS, Q as COUNTRY_CODES, T as CREDENTIALS_TYPES, E as ChargeBearer, C as ConfigEnvironmentBank, U as CredentialsType, F as INSTRUCTION_PRIORITIES, G as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, J as PAYMENT_DIRECTIONS, H as PAYMENT_STATUSES, y as PAYMENT_TYPES, K as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, v as PaymentInsertType, z as PaymentType, V as TOKEN_TYPES, W as TokenType, a0 as accountCredentialsInsertSchema, a2 as accountCredentialsSelectSchema, a1 as accountCredentialsUpdateSchema, X as accountInsertSchema, Z as accountSelectSchema, Y as accountUpdateSchema } from './shared/bank.Clkw7jCx.js';
1
+ import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.B0eZO8Uk.js';
2
+ export { M as ACCOUNT_STATUSES, a4 as AccountCredentialsPatchType, a5 as AccountCredentialsSelectType, a3 as AccountCredentialsUpdateType, $ as AccountPatchType, N as AccountStatus, _ as AccountUpdateType, x as BATCH_STATUES, x as BATCH_STATUSES, R as BankAccountWithLastSync, w as BatchInsertType, b as BatchPayment, B as BatchSelectType, D as CHARGE_BEARERS, S as CONNECTOR_KEYS, Q as COUNTRY_CODES, T as CREDENTIALS_TYPES, E as ChargeBearer, C as ConfigEnvironmentBank, U as CredentialsType, F as INSTRUCTION_PRIORITIES, G as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, J as PAYMENT_DIRECTIONS, H as PAYMENT_STATUSES, y as PAYMENT_TYPES, K as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, v as PaymentInsertType, z as PaymentType, V as TOKEN_TYPES, W as TokenType, a0 as accountCredentialsInsertSchema, a2 as accountCredentialsSelectSchema, a1 as accountCredentialsUpdateSchema, X as accountInsertSchema, Z as accountSelectSchema, Y as accountUpdateSchema } from './shared/bank.B0eZO8Uk.js';
3
3
  import { Environment, BaseEvent } from '@develit-io/backend-sdk';
4
4
  import { DrizzleD1Database } from 'drizzle-orm/d1';
5
5
  export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.Dh_H_5rC.js';
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { E as ErsteConnector, c as FINBRICKS_ENDPOINTS, b as FinbricksClient, F as FinbricksConnector, I as IBankConnector, a as MockCobsConnector, M as MockConnector, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.BiOcvKnQ.mjs';
1
+ export { E as ErsteConnector, c as FINBRICKS_ENDPOINTS, b as FinbricksClient, F as FinbricksConnector, I as IBankConnector, a as MockCobsConnector, M as MockConnector, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.COvfOo72.mjs';
2
2
  export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, d as CONNECTOR_KEYS, c as COUNTRY_CODES, e as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, b as PAYMENT_DIRECTIONS, a as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, i as accountCredentialsInsertSchema, k as accountCredentialsSelectSchema, j as accountCredentialsUpdateSchema, f as accountInsertSchema, h as accountSelectSchema, g as accountUpdateSchema, o as ottInsertSchema, m as ottSelectSchema, l as ottUpdateSchema } from './shared/bank.BPxg79Tw.mjs';
3
3
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
4
4
  import '@develit-io/backend-sdk';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.3.56",
3
+ "version": "0.3.58",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "scripts": {
38
38
  "dev": "wrangler dev --port 9231 --persist-to ../../.wrangler/state",
39
- "wrangler:generate": "develit wrangler:generate",
39
+ "wrangler:generate": "bunx develit wrangler:generate --types",
40
40
  "db:init": "wrangler d1 execute develit-bank --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
41
41
  "db:generate": "drizzle-kit generate",
42
42
  "db:migrate": "drizzle-kit migrate",
@@ -60,8 +60,8 @@
60
60
  "drizzle-kit": "*",
61
61
  "drizzle-orm": "*",
62
62
  "drizzle-seed": "*",
63
- "wrangler": "*",
64
- "zod": "*"
63
+ "wrangler": "4.50.0",
64
+ "zod": "4.1.13"
65
65
  },
66
66
  "devDependencies": {
67
67
  "date-fns": "^4.1.0",