@develit-services/bank 4.2.1 → 4.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.
Files changed (32) hide show
  1. package/dist/database/schema.d.cts +1 -1
  2. package/dist/database/schema.d.mts +1 -1
  3. package/dist/database/schema.d.ts +1 -1
  4. package/dist/export/worker.cjs +40 -4
  5. package/dist/export/worker.d.cts +14 -14
  6. package/dist/export/worker.d.mts +14 -14
  7. package/dist/export/worker.d.ts +14 -14
  8. package/dist/export/worker.mjs +40 -4
  9. package/dist/export/workflows.cjs +2 -2
  10. package/dist/export/workflows.mjs +2 -2
  11. package/dist/export/wrangler.d.cts +2 -1
  12. package/dist/export/wrangler.d.mts +2 -1
  13. package/dist/export/wrangler.d.ts +2 -1
  14. package/dist/shared/{bank.BmX_IG66.d.ts → bank.B2FLbr0c.d.ts} +1 -1
  15. package/dist/shared/{bank.BOMobxtA.mjs → bank.BmDlJzUz.mjs} +27 -8
  16. package/dist/shared/{bank.CioJeFzf.cjs → bank.C-XeuTid.cjs} +1 -1
  17. package/dist/shared/{bank.mHFTrKBv.d.cts → bank.CkSgCZ-W.d.cts} +1 -1
  18. package/dist/shared/{bank.Dq24vYU7.d.cts → bank.DyZBd2qL.d.cts} +1 -0
  19. package/dist/shared/{bank.Dq24vYU7.d.mts → bank.DyZBd2qL.d.mts} +1 -0
  20. package/dist/shared/{bank.Dq24vYU7.d.ts → bank.DyZBd2qL.d.ts} +1 -0
  21. package/dist/shared/{bank.BELDXSDV.mjs → bank.DyueVCXo.mjs} +1 -1
  22. package/dist/shared/{bank.DiJmJkDt.cjs → bank.NjHGMD3j.cjs} +27 -8
  23. package/dist/shared/{bank.BCqBwSKC.d.cts → bank.d4sMg6i0.d.cts} +3 -3
  24. package/dist/shared/{bank.BCqBwSKC.d.mts → bank.d4sMg6i0.d.mts} +3 -3
  25. package/dist/shared/{bank.BCqBwSKC.d.ts → bank.d4sMg6i0.d.ts} +3 -3
  26. package/dist/shared/{bank.BnCJmT6k.d.mts → bank.tefvLkrJ.d.mts} +1 -1
  27. package/dist/types.cjs +1 -1
  28. package/dist/types.d.cts +5 -5
  29. package/dist/types.d.mts +5 -5
  30. package/dist/types.d.ts +5 -5
  31. package/dist/types.mjs +1 -1
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BCqBwSKC.cjs';
1
+ export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.d4sMg6i0.cjs';
2
2
  import 'drizzle-orm';
3
3
  import 'drizzle-orm/sqlite-core';
4
4
  import '@develit-io/general-codes';
@@ -1,4 +1,4 @@
1
- export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BCqBwSKC.mjs';
1
+ export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.d4sMg6i0.mjs';
2
2
  import 'drizzle-orm';
3
3
  import 'drizzle-orm/sqlite-core';
4
4
  import '@develit-io/general-codes';
@@ -1,4 +1,4 @@
1
- export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BCqBwSKC.js';
1
+ export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.d4sMg6i0.js';
2
2
  import 'drizzle-orm';
3
3
  import 'drizzle-orm/sqlite-core';
4
4
  import '@develit-io/general-codes';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const backendSdk = require('@develit-io/backend-sdk');
4
- const ott_zod = require('../shared/bank.DiJmJkDt.cjs');
4
+ const ott_zod = require('../shared/bank.NjHGMD3j.cjs');
5
5
  const drizzleOrm = require('drizzle-orm');
6
6
  const cloudflare_workers = require('cloudflare:workers');
7
7
  const d1 = require('drizzle-orm/d1');
@@ -11,11 +11,10 @@ const database_schema = require('../shared/bank.9Yw4KHyl.cjs');
11
11
  const generalCodes = require('@develit-io/general-codes');
12
12
  require('date-fns');
13
13
  require('node:crypto');
14
- const credentialsResolver = require('../shared/bank.CioJeFzf.cjs');
14
+ const credentialsResolver = require('../shared/bank.C-XeuTid.cjs');
15
15
  require('drizzle-orm/zod');
16
16
  require('drizzle-orm/sqlite-core');
17
17
 
18
- const SYNC_WORKFLOW_HEARTBEAT_CRON = "0 */8 * * *";
19
18
  const DEAD_STATUSES = /* @__PURE__ */ new Set([
20
19
  "complete",
21
20
  "terminated",
@@ -89,6 +88,43 @@ const sendPaymentInputSchema = zod.z.object({
89
88
  creditor: backendSdk.bankAccountMetadataSchema,
90
89
  debtor: backendSdk.bankAccountMetadataSchema,
91
90
  sendAsSinglePayment: zod.z.boolean().optional()
91
+ }).superRefine((data, ctx) => {
92
+ if (data.paymentType === "UNKNOWN") {
93
+ ctx.addIssue({
94
+ code: "custom",
95
+ message: "paymentType=UNKNOWN is not supported. Use DOMESTIC, SEPA, or SWIFT.",
96
+ path: ["paymentType"]
97
+ });
98
+ return;
99
+ }
100
+ if (!data.debtor.iban) {
101
+ ctx.addIssue({
102
+ code: "custom",
103
+ message: "debtor.iban is required",
104
+ path: ["debtor", "iban"]
105
+ });
106
+ }
107
+ if (data.paymentType === "DOMESTIC" || data.paymentType === "SEPA") {
108
+ if (!data.creditor.iban) {
109
+ ctx.addIssue({
110
+ code: "custom",
111
+ message: `creditor.iban is required for ${data.paymentType} payments`,
112
+ path: ["creditor", "iban"]
113
+ });
114
+ }
115
+ return;
116
+ }
117
+ if (data.paymentType === "SWIFT") {
118
+ const hasIban = !!data.creditor.iban;
119
+ const hasBban = !!data.creditor.number && !!(data.creditor.swiftBic ?? data.creditor.bicCor);
120
+ if (!hasIban && !hasBban) {
121
+ ctx.addIssue({
122
+ code: "custom",
123
+ message: "SWIFT creditor requires either iban OR (number + swiftBic/bicCor)",
124
+ path: ["creditor"]
125
+ });
126
+ }
127
+ }
92
128
  });
93
129
 
94
130
  const sendBatchInputSchema = zod.z.object({
@@ -1038,7 +1074,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
1038
1074
  await this.updatePaymentRequestStatuses();
1039
1075
  return;
1040
1076
  }
1041
- if (controller.cron === SYNC_WORKFLOW_HEARTBEAT_CRON) {
1077
+ if (controller.cron === this.env.CRON_SYNC_WORKFLOW_HEARTBEAT) {
1042
1078
  console.log("Scheduled CRON sync workflow heartbeat");
1043
1079
  await this.heartbeatSyncWorkflows();
1044
1080
  }
@@ -1,6 +1,6 @@
1
1
  import * as drizzle_orm from 'drizzle-orm';
2
- import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.BCqBwSKC.cjs';
3
- import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.mHFTrKBv.cjs';
2
+ import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.d4sMg6i0.cjs';
3
+ import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.CkSgCZ-W.cjs';
4
4
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
5
5
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
6
6
  import { WorkerEntrypoint } from 'cloudflare:workers';
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
2703
2703
  filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
2704
2704
  filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2705
2705
  AUTHORIZED: "AUTHORIZED";
2706
- COMPLETED: "COMPLETED";
2707
2706
  PROCESSING: "PROCESSING";
2708
2707
  READY_TO_SIGN: "READY_TO_SIGN";
2708
+ COMPLETED: "COMPLETED";
2709
2709
  FAILED: "FAILED";
2710
2710
  }>, z.ZodArray<z.ZodEnum<{
2711
2711
  AUTHORIZED: "AUTHORIZED";
2712
- COMPLETED: "COMPLETED";
2713
2712
  PROCESSING: "PROCESSING";
2714
2713
  READY_TO_SIGN: "READY_TO_SIGN";
2714
+ COMPLETED: "COMPLETED";
2715
2715
  FAILED: "FAILED";
2716
2716
  }>>]>>;
2717
2717
  }, z.core.$strip>;
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
2948
2948
  filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
2949
2949
  filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
2950
2950
  filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2951
- BOOKED: "BOOKED";
2952
- REJECTED: "REJECTED";
2953
- PENDING: "PENDING";
2954
2951
  PROCESSING: "PROCESSING";
2952
+ PENDING: "PENDING";
2953
+ BOOKED: "BOOKED";
2955
2954
  CANCELLED: "CANCELLED";
2955
+ REJECTED: "REJECTED";
2956
2956
  SCHEDULED: "SCHEDULED";
2957
2957
  HOLD: "HOLD";
2958
2958
  INFO: "INFO";
2959
2959
  }>, z.ZodArray<z.ZodEnum<{
2960
- BOOKED: "BOOKED";
2961
- REJECTED: "REJECTED";
2962
- PENDING: "PENDING";
2963
2960
  PROCESSING: "PROCESSING";
2961
+ PENDING: "PENDING";
2962
+ BOOKED: "BOOKED";
2964
2963
  CANCELLED: "CANCELLED";
2964
+ REJECTED: "REJECTED";
2965
2965
  SCHEDULED: "SCHEDULED";
2966
2966
  HOLD: "HOLD";
2967
2967
  INFO: "INFO";
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
3597
3597
  filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
3598
3598
  filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3599
3599
  AUTHORIZED: "AUTHORIZED";
3600
- OPENED: "OPENED";
3601
3600
  COMPLETED: "COMPLETED";
3602
3601
  BOOKED: "BOOKED";
3603
- SETTLED: "SETTLED";
3604
3602
  REJECTED: "REJECTED";
3603
+ OPENED: "OPENED";
3604
+ SETTLED: "SETTLED";
3605
3605
  CLOSED: "CLOSED";
3606
3606
  }>, z.ZodArray<z.ZodEnum<{
3607
3607
  AUTHORIZED: "AUTHORIZED";
3608
- OPENED: "OPENED";
3609
3608
  COMPLETED: "COMPLETED";
3610
3609
  BOOKED: "BOOKED";
3611
- SETTLED: "SETTLED";
3612
3610
  REJECTED: "REJECTED";
3611
+ OPENED: "OPENED";
3612
+ SETTLED: "SETTLED";
3613
3613
  CLOSED: "CLOSED";
3614
3614
  }>>]>>;
3615
3615
  filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
@@ -1,6 +1,6 @@
1
1
  import * as drizzle_orm from 'drizzle-orm';
2
- import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.BCqBwSKC.mjs';
3
- import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BnCJmT6k.mjs';
2
+ import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.d4sMg6i0.mjs';
3
+ import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.tefvLkrJ.mjs';
4
4
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
5
5
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
6
6
  import { WorkerEntrypoint } from 'cloudflare:workers';
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
2703
2703
  filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
2704
2704
  filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2705
2705
  AUTHORIZED: "AUTHORIZED";
2706
- COMPLETED: "COMPLETED";
2707
2706
  PROCESSING: "PROCESSING";
2708
2707
  READY_TO_SIGN: "READY_TO_SIGN";
2708
+ COMPLETED: "COMPLETED";
2709
2709
  FAILED: "FAILED";
2710
2710
  }>, z.ZodArray<z.ZodEnum<{
2711
2711
  AUTHORIZED: "AUTHORIZED";
2712
- COMPLETED: "COMPLETED";
2713
2712
  PROCESSING: "PROCESSING";
2714
2713
  READY_TO_SIGN: "READY_TO_SIGN";
2714
+ COMPLETED: "COMPLETED";
2715
2715
  FAILED: "FAILED";
2716
2716
  }>>]>>;
2717
2717
  }, z.core.$strip>;
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
2948
2948
  filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
2949
2949
  filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
2950
2950
  filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2951
- BOOKED: "BOOKED";
2952
- REJECTED: "REJECTED";
2953
- PENDING: "PENDING";
2954
2951
  PROCESSING: "PROCESSING";
2952
+ PENDING: "PENDING";
2953
+ BOOKED: "BOOKED";
2955
2954
  CANCELLED: "CANCELLED";
2955
+ REJECTED: "REJECTED";
2956
2956
  SCHEDULED: "SCHEDULED";
2957
2957
  HOLD: "HOLD";
2958
2958
  INFO: "INFO";
2959
2959
  }>, z.ZodArray<z.ZodEnum<{
2960
- BOOKED: "BOOKED";
2961
- REJECTED: "REJECTED";
2962
- PENDING: "PENDING";
2963
2960
  PROCESSING: "PROCESSING";
2961
+ PENDING: "PENDING";
2962
+ BOOKED: "BOOKED";
2964
2963
  CANCELLED: "CANCELLED";
2964
+ REJECTED: "REJECTED";
2965
2965
  SCHEDULED: "SCHEDULED";
2966
2966
  HOLD: "HOLD";
2967
2967
  INFO: "INFO";
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
3597
3597
  filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
3598
3598
  filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3599
3599
  AUTHORIZED: "AUTHORIZED";
3600
- OPENED: "OPENED";
3601
3600
  COMPLETED: "COMPLETED";
3602
3601
  BOOKED: "BOOKED";
3603
- SETTLED: "SETTLED";
3604
3602
  REJECTED: "REJECTED";
3603
+ OPENED: "OPENED";
3604
+ SETTLED: "SETTLED";
3605
3605
  CLOSED: "CLOSED";
3606
3606
  }>, z.ZodArray<z.ZodEnum<{
3607
3607
  AUTHORIZED: "AUTHORIZED";
3608
- OPENED: "OPENED";
3609
3608
  COMPLETED: "COMPLETED";
3610
3609
  BOOKED: "BOOKED";
3611
- SETTLED: "SETTLED";
3612
3610
  REJECTED: "REJECTED";
3611
+ OPENED: "OPENED";
3612
+ SETTLED: "SETTLED";
3613
3613
  CLOSED: "CLOSED";
3614
3614
  }>>]>>;
3615
3615
  filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
@@ -1,6 +1,6 @@
1
1
  import * as drizzle_orm from 'drizzle-orm';
2
- import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.BCqBwSKC.js';
3
- import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BmX_IG66.js';
2
+ import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.d4sMg6i0.js';
3
+ import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.B2FLbr0c.js';
4
4
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
5
5
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
6
6
  import { WorkerEntrypoint } from 'cloudflare:workers';
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
2703
2703
  filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
2704
2704
  filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2705
2705
  AUTHORIZED: "AUTHORIZED";
2706
- COMPLETED: "COMPLETED";
2707
2706
  PROCESSING: "PROCESSING";
2708
2707
  READY_TO_SIGN: "READY_TO_SIGN";
2708
+ COMPLETED: "COMPLETED";
2709
2709
  FAILED: "FAILED";
2710
2710
  }>, z.ZodArray<z.ZodEnum<{
2711
2711
  AUTHORIZED: "AUTHORIZED";
2712
- COMPLETED: "COMPLETED";
2713
2712
  PROCESSING: "PROCESSING";
2714
2713
  READY_TO_SIGN: "READY_TO_SIGN";
2714
+ COMPLETED: "COMPLETED";
2715
2715
  FAILED: "FAILED";
2716
2716
  }>>]>>;
2717
2717
  }, z.core.$strip>;
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
2948
2948
  filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
2949
2949
  filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
2950
2950
  filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2951
- BOOKED: "BOOKED";
2952
- REJECTED: "REJECTED";
2953
- PENDING: "PENDING";
2954
2951
  PROCESSING: "PROCESSING";
2952
+ PENDING: "PENDING";
2953
+ BOOKED: "BOOKED";
2955
2954
  CANCELLED: "CANCELLED";
2955
+ REJECTED: "REJECTED";
2956
2956
  SCHEDULED: "SCHEDULED";
2957
2957
  HOLD: "HOLD";
2958
2958
  INFO: "INFO";
2959
2959
  }>, z.ZodArray<z.ZodEnum<{
2960
- BOOKED: "BOOKED";
2961
- REJECTED: "REJECTED";
2962
- PENDING: "PENDING";
2963
2960
  PROCESSING: "PROCESSING";
2961
+ PENDING: "PENDING";
2962
+ BOOKED: "BOOKED";
2964
2963
  CANCELLED: "CANCELLED";
2964
+ REJECTED: "REJECTED";
2965
2965
  SCHEDULED: "SCHEDULED";
2966
2966
  HOLD: "HOLD";
2967
2967
  INFO: "INFO";
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
3597
3597
  filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
3598
3598
  filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
3599
3599
  AUTHORIZED: "AUTHORIZED";
3600
- OPENED: "OPENED";
3601
3600
  COMPLETED: "COMPLETED";
3602
3601
  BOOKED: "BOOKED";
3603
- SETTLED: "SETTLED";
3604
3602
  REJECTED: "REJECTED";
3603
+ OPENED: "OPENED";
3604
+ SETTLED: "SETTLED";
3605
3605
  CLOSED: "CLOSED";
3606
3606
  }>, z.ZodArray<z.ZodEnum<{
3607
3607
  AUTHORIZED: "AUTHORIZED";
3608
- OPENED: "OPENED";
3609
3608
  COMPLETED: "COMPLETED";
3610
3609
  BOOKED: "BOOKED";
3611
- SETTLED: "SETTLED";
3612
3610
  REJECTED: "REJECTED";
3611
+ OPENED: "OPENED";
3612
+ SETTLED: "SETTLED";
3613
3613
  CLOSED: "CLOSED";
3614
3614
  }>>]>>;
3615
3615
  filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
@@ -1,5 +1,5 @@
1
1
  import { bankAccountMetadataSchema, structuredAddressSchema, uuidv4, first, buildMultiFilterConditions as buildMultiFilterConditions$1, workflowInstanceStatusSchema, develitWorker, createInternalError, action, service } from '@develit-io/backend-sdk';
2
- import { G as tables, g as accountInsertSchema, H as relations, J as initiateConnector, o as isProcessedStatus, p as isTerminalStatus, L as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.BOMobxtA.mjs';
2
+ import { G as tables, g as accountInsertSchema, H as relations, J as initiateConnector, o as isProcessedStatus, p as isTerminalStatus, L as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.BmDlJzUz.mjs';
3
3
  import { eq, sql, and, like, asc, desc, inArray, gte, lte, isNull, count } from 'drizzle-orm';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { drizzle } from 'drizzle-orm/d1';
@@ -9,11 +9,10 @@ import { I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, g as PAYMENT_TYPES, b
9
9
  import { CURRENCY_CODES } from '@develit-io/general-codes';
10
10
  import 'date-fns';
11
11
  import 'node:crypto';
12
- import { h as encrypt, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, i as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from '../shared/bank.BELDXSDV.mjs';
12
+ import { h as encrypt, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, i as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from '../shared/bank.DyueVCXo.mjs';
13
13
  import 'drizzle-orm/zod';
14
14
  import 'drizzle-orm/sqlite-core';
15
15
 
16
- const SYNC_WORKFLOW_HEARTBEAT_CRON = "0 */8 * * *";
17
16
  const DEAD_STATUSES = /* @__PURE__ */ new Set([
18
17
  "complete",
19
18
  "terminated",
@@ -87,6 +86,43 @@ const sendPaymentInputSchema = z.object({
87
86
  creditor: bankAccountMetadataSchema,
88
87
  debtor: bankAccountMetadataSchema,
89
88
  sendAsSinglePayment: z.boolean().optional()
89
+ }).superRefine((data, ctx) => {
90
+ if (data.paymentType === "UNKNOWN") {
91
+ ctx.addIssue({
92
+ code: "custom",
93
+ message: "paymentType=UNKNOWN is not supported. Use DOMESTIC, SEPA, or SWIFT.",
94
+ path: ["paymentType"]
95
+ });
96
+ return;
97
+ }
98
+ if (!data.debtor.iban) {
99
+ ctx.addIssue({
100
+ code: "custom",
101
+ message: "debtor.iban is required",
102
+ path: ["debtor", "iban"]
103
+ });
104
+ }
105
+ if (data.paymentType === "DOMESTIC" || data.paymentType === "SEPA") {
106
+ if (!data.creditor.iban) {
107
+ ctx.addIssue({
108
+ code: "custom",
109
+ message: `creditor.iban is required for ${data.paymentType} payments`,
110
+ path: ["creditor", "iban"]
111
+ });
112
+ }
113
+ return;
114
+ }
115
+ if (data.paymentType === "SWIFT") {
116
+ const hasIban = !!data.creditor.iban;
117
+ const hasBban = !!data.creditor.number && !!(data.creditor.swiftBic ?? data.creditor.bicCor);
118
+ if (!hasIban && !hasBban) {
119
+ ctx.addIssue({
120
+ code: "custom",
121
+ message: "SWIFT creditor requires either iban OR (number + swiftBic/bicCor)",
122
+ path: ["creditor"]
123
+ });
124
+ }
125
+ }
90
126
  });
91
127
 
92
128
  const sendBatchInputSchema = z.object({
@@ -1036,7 +1072,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
1036
1072
  await this.updatePaymentRequestStatuses();
1037
1073
  return;
1038
1074
  }
1039
- if (controller.cron === SYNC_WORKFLOW_HEARTBEAT_CRON) {
1075
+ if (controller.cron === this.env.CRON_SYNC_WORKFLOW_HEARTBEAT) {
1040
1076
  console.log("Scheduled CRON sync workflow heartbeat");
1041
1077
  await this.heartbeatSyncWorkflows();
1042
1078
  }
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  const backendSdk = require('@develit-io/backend-sdk');
4
- const ott_zod = require('../shared/bank.DiJmJkDt.cjs');
4
+ const ott_zod = require('../shared/bank.NjHGMD3j.cjs');
5
5
  const batchLifecycle = require('../shared/bank.NF8bZBy0.cjs');
6
6
  const drizzleOrm = require('drizzle-orm');
7
- const credentialsResolver = require('../shared/bank.CioJeFzf.cjs');
7
+ const credentialsResolver = require('../shared/bank.C-XeuTid.cjs');
8
8
  const cloudflare_workers = require('cloudflare:workers');
9
9
  const cloudflare_workflows = require('cloudflare:workflows');
10
10
  const d1 = require('drizzle-orm/d1');
@@ -1,8 +1,8 @@
1
1
  import { first, uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
2
- import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, J as initiateConnector, m as isPaymentCompleted } from '../shared/bank.BOMobxtA.mjs';
2
+ import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, J as initiateConnector, m as isPaymentCompleted } from '../shared/bank.BmDlJzUz.mjs';
3
3
  import { i as isBatchAuthorized, b as isBatchFailed, d as isBatchProcessing } from '../shared/bank.XqSw509X.mjs';
4
4
  import { eq, and, inArray } from 'drizzle-orm';
5
- import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.BELDXSDV.mjs';
5
+ import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.DyueVCXo.mjs';
6
6
  import { WorkflowEntrypoint } from 'cloudflare:workers';
7
7
  import { NonRetryableError } from 'cloudflare:workflows';
8
8
  import { drizzle } from 'drizzle-orm/d1';
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.Dq24vYU7.cjs';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.cjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -9,6 +9,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
9
9
  FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.Dq24vYU7.mjs';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.mjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -9,6 +9,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
9
9
  FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.Dq24vYU7.js';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.js';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -9,6 +9,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
9
9
  FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.BCqBwSKC.js';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.d4sMg6i0.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -651,6 +651,21 @@ function autoVariableSymbol(paymentId) {
651
651
  }
652
652
  return String(Math.abs(hash) % 1e10).padStart(10, "0");
653
653
  }
654
+ function resolveAccountIdentification(account, currency) {
655
+ if (account.iban) {
656
+ return { type: "IBAN", value: account.iban };
657
+ }
658
+ if (account.number) {
659
+ return {
660
+ type: "BBAN",
661
+ value: account.number,
662
+ ...currency && { currency }
663
+ };
664
+ }
665
+ throw createInternalError(null, {
666
+ message: "Account has neither IBAN nor account number \u2014 cannot identify for foreign payment"
667
+ });
668
+ }
654
669
  function mapToFinbricksAddress(addr) {
655
670
  if (!addr) return void 0;
656
671
  return {
@@ -909,6 +924,15 @@ class FinbricksConnector extends IBankConnector {
909
924
  );
910
925
  const clientId = await this.getClientId(debtorAccount.id);
911
926
  const creditorAddress = mapToFinbricksAddress(payment.creditor.address);
927
+ const debtorIdentification = resolveAccountIdentification(payment.debtor);
928
+ const creditorIdentification = resolveAccountIdentification(
929
+ payment.creditor,
930
+ payment.currency
931
+ );
932
+ const creditorBic = payment.creditor.swiftBic ?? payment.creditor.bicCor;
933
+ const creditorAgent = creditorIdentification.type === "BBAN" && creditorBic ? {
934
+ financialInstitutionIdentification: { bic: creditorBic }
935
+ } : void 0;
912
936
  const bankRefId = uuidv4();
913
937
  const [response, error] = await useResult(
914
938
  this.finbricks.request({
@@ -928,21 +952,16 @@ class FinbricksConnector extends IBankConnector {
928
952
  },
929
953
  chargeBearer: payment.chargeBearer || "SHA",
930
954
  debtor: {
931
- accountIdentification: {
932
- type: "IBAN",
933
- value: payment.debtor.iban
934
- },
955
+ accountIdentification: debtorIdentification,
935
956
  debtorName: payment.debtor.holderName,
936
957
  paymentProvider: this.PROVIDER
937
958
  },
938
959
  creditor: {
939
- accountIdentification: {
940
- type: "IBAN",
941
- value: payment.creditor.iban
942
- },
960
+ accountIdentification: creditorIdentification,
943
961
  creditorName: payment.creditor.holderName || "",
944
962
  ...creditorAddress && { postalAddress: creditorAddress }
945
963
  },
964
+ ...creditorAgent && { creditorAgent },
946
965
  callbackUrl: `${this.finbricks.REDIRECT_URI}?type=paymentRequest&paymentRequestId=${payment.id}`
947
966
  }
948
967
  })
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const drizzleOrm = require('drizzle-orm');
4
- const ott_zod = require('./bank.DiJmJkDt.cjs');
4
+ const ott_zod = require('./bank.NjHGMD3j.cjs');
5
5
  const backendSdk = require('@develit-io/backend-sdk');
6
6
  require('./bank.9Yw4KHyl.cjs');
7
7
  require('date-fns');
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.BCqBwSKC.cjs';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.d4sMg6i0.cjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -9,6 +9,7 @@ interface BankServiceWranglerConfig {
9
9
  FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -9,6 +9,7 @@ interface BankServiceWranglerConfig {
9
9
  FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -9,6 +9,7 @@ interface BankServiceWranglerConfig {
9
9
  FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -1,5 +1,5 @@
1
1
  import { sql, and, eq, isNull } from 'drizzle-orm';
2
- import { G as tables } from './bank.BOMobxtA.mjs';
2
+ import { G as tables } from './bank.BmDlJzUz.mjs';
3
3
  import { uuidv4 } from '@develit-io/backend-sdk';
4
4
  import './bank.BzDNLxB_.mjs';
5
5
  import 'date-fns';
@@ -653,6 +653,21 @@ function autoVariableSymbol(paymentId) {
653
653
  }
654
654
  return String(Math.abs(hash) % 1e10).padStart(10, "0");
655
655
  }
656
+ function resolveAccountIdentification(account, currency) {
657
+ if (account.iban) {
658
+ return { type: "IBAN", value: account.iban };
659
+ }
660
+ if (account.number) {
661
+ return {
662
+ type: "BBAN",
663
+ value: account.number,
664
+ ...currency && { currency }
665
+ };
666
+ }
667
+ throw backendSdk.createInternalError(null, {
668
+ message: "Account has neither IBAN nor account number \u2014 cannot identify for foreign payment"
669
+ });
670
+ }
656
671
  function mapToFinbricksAddress(addr) {
657
672
  if (!addr) return void 0;
658
673
  return {
@@ -911,6 +926,15 @@ class FinbricksConnector extends IBankConnector {
911
926
  );
912
927
  const clientId = await this.getClientId(debtorAccount.id);
913
928
  const creditorAddress = mapToFinbricksAddress(payment.creditor.address);
929
+ const debtorIdentification = resolveAccountIdentification(payment.debtor);
930
+ const creditorIdentification = resolveAccountIdentification(
931
+ payment.creditor,
932
+ payment.currency
933
+ );
934
+ const creditorBic = payment.creditor.swiftBic ?? payment.creditor.bicCor;
935
+ const creditorAgent = creditorIdentification.type === "BBAN" && creditorBic ? {
936
+ financialInstitutionIdentification: { bic: creditorBic }
937
+ } : void 0;
914
938
  const bankRefId = backendSdk.uuidv4();
915
939
  const [response, error] = await backendSdk.useResult(
916
940
  this.finbricks.request({
@@ -930,21 +954,16 @@ class FinbricksConnector extends IBankConnector {
930
954
  },
931
955
  chargeBearer: payment.chargeBearer || "SHA",
932
956
  debtor: {
933
- accountIdentification: {
934
- type: "IBAN",
935
- value: payment.debtor.iban
936
- },
957
+ accountIdentification: debtorIdentification,
937
958
  debtorName: payment.debtor.holderName,
938
959
  paymentProvider: this.PROVIDER
939
960
  },
940
961
  creditor: {
941
- accountIdentification: {
942
- type: "IBAN",
943
- value: payment.creditor.iban
944
- },
962
+ accountIdentification: creditorIdentification,
945
963
  creditorName: payment.creditor.holderName || "",
946
964
  ...creditorAddress && { postalAddress: creditorAddress }
947
965
  },
966
+ ...creditorAgent && { creditorAgent },
948
967
  callbackUrl: `${this.finbricks.REDIRECT_URI}?type=paymentRequest&paymentRequestId=${payment.id}`
949
968
  }
950
969
  })
@@ -2144,7 +2144,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2144
2144
  name: string;
2145
2145
  tableName: "batch";
2146
2146
  dataType: "string enum";
2147
- data: "AUTHORIZED" | "COMPLETED" | "PROCESSING" | "READY_TO_SIGN" | "FAILED";
2147
+ data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
2148
2148
  driverParam: string;
2149
2149
  notNull: false;
2150
2150
  hasDefault: false;
@@ -2415,7 +2415,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2415
2415
  name: string;
2416
2416
  tableName: "payment";
2417
2417
  dataType: "string enum";
2418
- data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
2418
+ data: "PROCESSING" | "PENDING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
2419
2419
  driverParam: string;
2420
2420
  notNull: true;
2421
2421
  hasDefault: false;
@@ -2814,7 +2814,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2814
2814
  name: string;
2815
2815
  tableName: "payment_request";
2816
2816
  dataType: "string enum";
2817
- data: "AUTHORIZED" | "OPENED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
2817
+ data: "AUTHORIZED" | "COMPLETED" | "BOOKED" | "REJECTED" | "OPENED" | "SETTLED" | "CLOSED";
2818
2818
  driverParam: string;
2819
2819
  notNull: true;
2820
2820
  hasDefault: false;
@@ -2144,7 +2144,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2144
2144
  name: string;
2145
2145
  tableName: "batch";
2146
2146
  dataType: "string enum";
2147
- data: "AUTHORIZED" | "COMPLETED" | "PROCESSING" | "READY_TO_SIGN" | "FAILED";
2147
+ data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
2148
2148
  driverParam: string;
2149
2149
  notNull: false;
2150
2150
  hasDefault: false;
@@ -2415,7 +2415,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2415
2415
  name: string;
2416
2416
  tableName: "payment";
2417
2417
  dataType: "string enum";
2418
- data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
2418
+ data: "PROCESSING" | "PENDING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
2419
2419
  driverParam: string;
2420
2420
  notNull: true;
2421
2421
  hasDefault: false;
@@ -2814,7 +2814,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2814
2814
  name: string;
2815
2815
  tableName: "payment_request";
2816
2816
  dataType: "string enum";
2817
- data: "AUTHORIZED" | "OPENED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
2817
+ data: "AUTHORIZED" | "COMPLETED" | "BOOKED" | "REJECTED" | "OPENED" | "SETTLED" | "CLOSED";
2818
2818
  driverParam: string;
2819
2819
  notNull: true;
2820
2820
  hasDefault: false;
@@ -2144,7 +2144,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2144
2144
  name: string;
2145
2145
  tableName: "batch";
2146
2146
  dataType: "string enum";
2147
- data: "AUTHORIZED" | "COMPLETED" | "PROCESSING" | "READY_TO_SIGN" | "FAILED";
2147
+ data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
2148
2148
  driverParam: string;
2149
2149
  notNull: false;
2150
2150
  hasDefault: false;
@@ -2415,7 +2415,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2415
2415
  name: string;
2416
2416
  tableName: "payment";
2417
2417
  dataType: "string enum";
2418
- data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
2418
+ data: "PROCESSING" | "PENDING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
2419
2419
  driverParam: string;
2420
2420
  notNull: true;
2421
2421
  hasDefault: false;
@@ -2814,7 +2814,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2814
2814
  name: string;
2815
2815
  tableName: "payment_request";
2816
2816
  dataType: "string enum";
2817
- data: "AUTHORIZED" | "OPENED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
2817
+ data: "AUTHORIZED" | "COMPLETED" | "BOOKED" | "REJECTED" | "OPENED" | "SETTLED" | "CLOSED";
2818
2818
  driverParam: string;
2819
2819
  notNull: true;
2820
2820
  hasDefault: false;
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.BCqBwSKC.mjs';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.d4sMg6i0.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const ott_zod = require('./shared/bank.DiJmJkDt.cjs');
3
+ const ott_zod = require('./shared/bank.NjHGMD3j.cjs');
4
4
  const database_schema = require('./shared/bank.9Yw4KHyl.cjs');
5
5
  const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
6
6
  const generalCodes = require('@develit-io/general-codes');
package/dist/types.d.cts CHANGED
@@ -1,9 +1,9 @@
1
- import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.BCqBwSKC.cjs';
2
- export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.BCqBwSKC.cjs';
3
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.mHFTrKBv.cjs';
4
- export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.mHFTrKBv.cjs';
1
+ import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.d4sMg6i0.cjs';
2
+ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.d4sMg6i0.cjs';
3
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CkSgCZ-W.cjs';
4
+ export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.CkSgCZ-W.cjs';
5
5
  import { z } from 'zod';
6
- export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.cjs';
6
+ export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.cjs';
7
7
  import { BaseEvent } from '@develit-io/backend-sdk';
8
8
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
9
9
  import * as drizzle_orm from 'drizzle-orm';
package/dist/types.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.BCqBwSKC.mjs';
2
- export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.BCqBwSKC.mjs';
3
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BnCJmT6k.mjs';
4
- export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.BnCJmT6k.mjs';
1
+ import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.d4sMg6i0.mjs';
2
+ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.d4sMg6i0.mjs';
3
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.tefvLkrJ.mjs';
4
+ export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.tefvLkrJ.mjs';
5
5
  import { z } from 'zod';
6
- export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.mjs';
6
+ export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.mjs';
7
7
  import { BaseEvent } from '@develit-io/backend-sdk';
8
8
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
9
9
  import * as drizzle_orm from 'drizzle-orm';
package/dist/types.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.BCqBwSKC.js';
2
- export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.BCqBwSKC.js';
3
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BmX_IG66.js';
4
- export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.BmX_IG66.js';
1
+ import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.d4sMg6i0.js';
2
+ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.d4sMg6i0.js';
3
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.B2FLbr0c.js';
4
+ export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.B2FLbr0c.js';
5
5
  import { z } from 'zod';
6
- export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.js';
6
+ export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.js';
7
7
  import { BaseEvent } from '@develit-io/backend-sdk';
8
8
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
9
9
  import * as drizzle_orm from 'drizzle-orm';
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { B as BASE_TERMINAL_STATUSES, C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.BOMobxtA.mjs';
1
+ export { B as BASE_TERMINAL_STATUSES, C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.BmDlJzUz.mjs';
2
2
  export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES, f as PAYMENT_STATUSES, g as PAYMENT_TYPES, T as TOKEN_TYPES } from './shared/bank.BzDNLxB_.mjs';
3
3
  export { i as isBatchAuthorized, a as isBatchCompleted, b as isBatchFailed, c as isBatchInitiated, d as isBatchProcessing, e as isBatchReadyToSign } from './shared/bank.XqSw509X.mjs';
4
4
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "4.2.1",
3
+ "version": "4.3.0",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {