@develit-services/bank 5.5.2 → 5.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +10 -10
- package/dist/base.d.mts +10 -10
- package/dist/base.d.ts +10 -10
- package/dist/base.mjs +2 -2
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/export/workflows.cjs +2 -2
- package/dist/export/workflows.mjs +2 -2
- package/dist/shared/{bank.ByTmh14X.cjs → bank.6n35fwUh.cjs} +47 -23
- package/dist/shared/{bank.CjaaypJo.mjs → bank.BEpgphDY.mjs} +49 -25
- package/dist/shared/{bank.DDkXvGRH.mjs → bank.BG5L8Nyp.mjs} +1 -1
- package/dist/shared/{bank.DUlMOagc.cjs → bank.Bcn8spzj.cjs} +1 -1
- package/dist/shared/{bank.BuwSQL_7.d.mts → bank.BqTBTu_N.d.cts} +1 -1
- package/dist/shared/{bank.CdkOsZE8.d.ts → bank.CGVCfq1B.d.cts} +3 -3
- package/dist/shared/{bank.CdkOsZE8.d.cts → bank.CGVCfq1B.d.mts} +3 -3
- package/dist/shared/{bank.CdkOsZE8.d.mts → bank.CGVCfq1B.d.ts} +3 -3
- package/dist/shared/{bank.IAc8kIC-.d.ts → bank.CYJ75FSr.d.ts} +1 -1
- package/dist/shared/{bank.D__RVhfE.d.cts → bank.SSqNFzWn.d.mts} +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/types.mjs +1 -1
- package/package.json +6 -1
package/dist/base.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const paymentDirection = require('./shared/bank.
|
|
4
|
+
const paymentDirection = require('./shared/bank.6n35fwUh.cjs');
|
|
5
5
|
const drizzleOrm = require('drizzle-orm');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
8
8
|
require('jose');
|
|
9
|
-
const bank = require('./shared/bank.
|
|
9
|
+
const bank = require('./shared/bank.Bcn8spzj.cjs');
|
|
10
10
|
const zod = require('zod');
|
|
11
11
|
const database_schema = require('./shared/bank.9Yw4KHyl.cjs');
|
|
12
12
|
const generalCodes = require('@develit-io/general-codes');
|
package/dist/base.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, t as tables, b as ConnectorKey, c as ConfigEnvironmentBank, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from './shared/bank.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, t as tables, b as ConnectorKey, c as ConfigEnvironmentBank, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from './shared/bank.CGVCfq1B.cjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.BqTBTu_N.cjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2711,15 +2711,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2711
2711
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2712
2712
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2713
2713
|
AUTHORIZED: "AUTHORIZED";
|
|
2714
|
-
COMPLETED: "COMPLETED";
|
|
2715
2714
|
PROCESSING: "PROCESSING";
|
|
2716
2715
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2716
|
+
COMPLETED: "COMPLETED";
|
|
2717
2717
|
FAILED: "FAILED";
|
|
2718
2718
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2719
2719
|
AUTHORIZED: "AUTHORIZED";
|
|
2720
|
-
COMPLETED: "COMPLETED";
|
|
2721
2720
|
PROCESSING: "PROCESSING";
|
|
2722
2721
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2722
|
+
COMPLETED: "COMPLETED";
|
|
2723
2723
|
FAILED: "FAILED";
|
|
2724
2724
|
}>>]>>;
|
|
2725
2725
|
}, z.core.$strip>;
|
|
@@ -2825,9 +2825,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2825
2825
|
limit: z.ZodNumber;
|
|
2826
2826
|
sort: z.ZodObject<{
|
|
2827
2827
|
column: z.ZodEnum<{
|
|
2828
|
-
amount: "amount";
|
|
2829
2828
|
createdAt: "createdAt";
|
|
2830
2829
|
updatedAt: "updatedAt";
|
|
2830
|
+
amount: "amount";
|
|
2831
2831
|
}>;
|
|
2832
2832
|
direction: z.ZodEnum<{
|
|
2833
2833
|
asc: "asc";
|
|
@@ -2956,19 +2956,19 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2956
2956
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2957
2957
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2958
2958
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2959
|
+
PROCESSING: "PROCESSING";
|
|
2959
2960
|
BOOKED: "BOOKED";
|
|
2960
2961
|
REJECTED: "REJECTED";
|
|
2961
2962
|
PENDING: "PENDING";
|
|
2962
|
-
PROCESSING: "PROCESSING";
|
|
2963
2963
|
CANCELLED: "CANCELLED";
|
|
2964
2964
|
SCHEDULED: "SCHEDULED";
|
|
2965
2965
|
HOLD: "HOLD";
|
|
2966
2966
|
INFO: "INFO";
|
|
2967
2967
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2968
|
+
PROCESSING: "PROCESSING";
|
|
2968
2969
|
BOOKED: "BOOKED";
|
|
2969
2970
|
REJECTED: "REJECTED";
|
|
2970
2971
|
PENDING: "PENDING";
|
|
2971
|
-
PROCESSING: "PROCESSING";
|
|
2972
2972
|
CANCELLED: "CANCELLED";
|
|
2973
2973
|
SCHEDULED: "SCHEDULED";
|
|
2974
2974
|
HOLD: "HOLD";
|
|
@@ -3875,9 +3875,9 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3875
3875
|
limit: z.ZodNumber;
|
|
3876
3876
|
sort: z.ZodObject<{
|
|
3877
3877
|
column: z.ZodEnum<{
|
|
3878
|
-
amount: "amount";
|
|
3879
3878
|
createdAt: "createdAt";
|
|
3880
3879
|
updatedAt: "updatedAt";
|
|
3880
|
+
amount: "amount";
|
|
3881
3881
|
}>;
|
|
3882
3882
|
direction: z.ZodEnum<{
|
|
3883
3883
|
asc: "asc";
|
|
@@ -3886,17 +3886,17 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3886
3886
|
}, z.core.$strip>;
|
|
3887
3887
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3888
3888
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3889
|
-
OPENED: "OPENED";
|
|
3890
3889
|
AUTHORIZED: "AUTHORIZED";
|
|
3891
3890
|
COMPLETED: "COMPLETED";
|
|
3891
|
+
OPENED: "OPENED";
|
|
3892
3892
|
BOOKED: "BOOKED";
|
|
3893
3893
|
SETTLED: "SETTLED";
|
|
3894
3894
|
REJECTED: "REJECTED";
|
|
3895
3895
|
CLOSED: "CLOSED";
|
|
3896
3896
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3897
|
-
OPENED: "OPENED";
|
|
3898
3897
|
AUTHORIZED: "AUTHORIZED";
|
|
3899
3898
|
COMPLETED: "COMPLETED";
|
|
3899
|
+
OPENED: "OPENED";
|
|
3900
3900
|
BOOKED: "BOOKED";
|
|
3901
3901
|
SETTLED: "SETTLED";
|
|
3902
3902
|
REJECTED: "REJECTED";
|
package/dist/base.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, t as tables, b as ConnectorKey, c as ConfigEnvironmentBank, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from './shared/bank.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, t as tables, b as ConnectorKey, c as ConfigEnvironmentBank, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from './shared/bank.CGVCfq1B.mjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.SSqNFzWn.mjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2711,15 +2711,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2711
2711
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2712
2712
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2713
2713
|
AUTHORIZED: "AUTHORIZED";
|
|
2714
|
-
COMPLETED: "COMPLETED";
|
|
2715
2714
|
PROCESSING: "PROCESSING";
|
|
2716
2715
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2716
|
+
COMPLETED: "COMPLETED";
|
|
2717
2717
|
FAILED: "FAILED";
|
|
2718
2718
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2719
2719
|
AUTHORIZED: "AUTHORIZED";
|
|
2720
|
-
COMPLETED: "COMPLETED";
|
|
2721
2720
|
PROCESSING: "PROCESSING";
|
|
2722
2721
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2722
|
+
COMPLETED: "COMPLETED";
|
|
2723
2723
|
FAILED: "FAILED";
|
|
2724
2724
|
}>>]>>;
|
|
2725
2725
|
}, z.core.$strip>;
|
|
@@ -2825,9 +2825,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2825
2825
|
limit: z.ZodNumber;
|
|
2826
2826
|
sort: z.ZodObject<{
|
|
2827
2827
|
column: z.ZodEnum<{
|
|
2828
|
-
amount: "amount";
|
|
2829
2828
|
createdAt: "createdAt";
|
|
2830
2829
|
updatedAt: "updatedAt";
|
|
2830
|
+
amount: "amount";
|
|
2831
2831
|
}>;
|
|
2832
2832
|
direction: z.ZodEnum<{
|
|
2833
2833
|
asc: "asc";
|
|
@@ -2956,19 +2956,19 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2956
2956
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2957
2957
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2958
2958
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2959
|
+
PROCESSING: "PROCESSING";
|
|
2959
2960
|
BOOKED: "BOOKED";
|
|
2960
2961
|
REJECTED: "REJECTED";
|
|
2961
2962
|
PENDING: "PENDING";
|
|
2962
|
-
PROCESSING: "PROCESSING";
|
|
2963
2963
|
CANCELLED: "CANCELLED";
|
|
2964
2964
|
SCHEDULED: "SCHEDULED";
|
|
2965
2965
|
HOLD: "HOLD";
|
|
2966
2966
|
INFO: "INFO";
|
|
2967
2967
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2968
|
+
PROCESSING: "PROCESSING";
|
|
2968
2969
|
BOOKED: "BOOKED";
|
|
2969
2970
|
REJECTED: "REJECTED";
|
|
2970
2971
|
PENDING: "PENDING";
|
|
2971
|
-
PROCESSING: "PROCESSING";
|
|
2972
2972
|
CANCELLED: "CANCELLED";
|
|
2973
2973
|
SCHEDULED: "SCHEDULED";
|
|
2974
2974
|
HOLD: "HOLD";
|
|
@@ -3875,9 +3875,9 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3875
3875
|
limit: z.ZodNumber;
|
|
3876
3876
|
sort: z.ZodObject<{
|
|
3877
3877
|
column: z.ZodEnum<{
|
|
3878
|
-
amount: "amount";
|
|
3879
3878
|
createdAt: "createdAt";
|
|
3880
3879
|
updatedAt: "updatedAt";
|
|
3880
|
+
amount: "amount";
|
|
3881
3881
|
}>;
|
|
3882
3882
|
direction: z.ZodEnum<{
|
|
3883
3883
|
asc: "asc";
|
|
@@ -3886,17 +3886,17 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3886
3886
|
}, z.core.$strip>;
|
|
3887
3887
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3888
3888
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3889
|
-
OPENED: "OPENED";
|
|
3890
3889
|
AUTHORIZED: "AUTHORIZED";
|
|
3891
3890
|
COMPLETED: "COMPLETED";
|
|
3891
|
+
OPENED: "OPENED";
|
|
3892
3892
|
BOOKED: "BOOKED";
|
|
3893
3893
|
SETTLED: "SETTLED";
|
|
3894
3894
|
REJECTED: "REJECTED";
|
|
3895
3895
|
CLOSED: "CLOSED";
|
|
3896
3896
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3897
|
-
OPENED: "OPENED";
|
|
3898
3897
|
AUTHORIZED: "AUTHORIZED";
|
|
3899
3898
|
COMPLETED: "COMPLETED";
|
|
3899
|
+
OPENED: "OPENED";
|
|
3900
3900
|
BOOKED: "BOOKED";
|
|
3901
3901
|
SETTLED: "SETTLED";
|
|
3902
3902
|
REJECTED: "REJECTED";
|
package/dist/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, t as tables, b as ConnectorKey, c as ConfigEnvironmentBank, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from './shared/bank.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, t as tables, b as ConnectorKey, c as ConfigEnvironmentBank, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from './shared/bank.CGVCfq1B.js';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.CYJ75FSr.js';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2711,15 +2711,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2711
2711
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2712
2712
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2713
2713
|
AUTHORIZED: "AUTHORIZED";
|
|
2714
|
-
COMPLETED: "COMPLETED";
|
|
2715
2714
|
PROCESSING: "PROCESSING";
|
|
2716
2715
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2716
|
+
COMPLETED: "COMPLETED";
|
|
2717
2717
|
FAILED: "FAILED";
|
|
2718
2718
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2719
2719
|
AUTHORIZED: "AUTHORIZED";
|
|
2720
|
-
COMPLETED: "COMPLETED";
|
|
2721
2720
|
PROCESSING: "PROCESSING";
|
|
2722
2721
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2722
|
+
COMPLETED: "COMPLETED";
|
|
2723
2723
|
FAILED: "FAILED";
|
|
2724
2724
|
}>>]>>;
|
|
2725
2725
|
}, z.core.$strip>;
|
|
@@ -2825,9 +2825,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2825
2825
|
limit: z.ZodNumber;
|
|
2826
2826
|
sort: z.ZodObject<{
|
|
2827
2827
|
column: z.ZodEnum<{
|
|
2828
|
-
amount: "amount";
|
|
2829
2828
|
createdAt: "createdAt";
|
|
2830
2829
|
updatedAt: "updatedAt";
|
|
2830
|
+
amount: "amount";
|
|
2831
2831
|
}>;
|
|
2832
2832
|
direction: z.ZodEnum<{
|
|
2833
2833
|
asc: "asc";
|
|
@@ -2956,19 +2956,19 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2956
2956
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2957
2957
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2958
2958
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2959
|
+
PROCESSING: "PROCESSING";
|
|
2959
2960
|
BOOKED: "BOOKED";
|
|
2960
2961
|
REJECTED: "REJECTED";
|
|
2961
2962
|
PENDING: "PENDING";
|
|
2962
|
-
PROCESSING: "PROCESSING";
|
|
2963
2963
|
CANCELLED: "CANCELLED";
|
|
2964
2964
|
SCHEDULED: "SCHEDULED";
|
|
2965
2965
|
HOLD: "HOLD";
|
|
2966
2966
|
INFO: "INFO";
|
|
2967
2967
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2968
|
+
PROCESSING: "PROCESSING";
|
|
2968
2969
|
BOOKED: "BOOKED";
|
|
2969
2970
|
REJECTED: "REJECTED";
|
|
2970
2971
|
PENDING: "PENDING";
|
|
2971
|
-
PROCESSING: "PROCESSING";
|
|
2972
2972
|
CANCELLED: "CANCELLED";
|
|
2973
2973
|
SCHEDULED: "SCHEDULED";
|
|
2974
2974
|
HOLD: "HOLD";
|
|
@@ -3875,9 +3875,9 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3875
3875
|
limit: z.ZodNumber;
|
|
3876
3876
|
sort: z.ZodObject<{
|
|
3877
3877
|
column: z.ZodEnum<{
|
|
3878
|
-
amount: "amount";
|
|
3879
3878
|
createdAt: "createdAt";
|
|
3880
3879
|
updatedAt: "updatedAt";
|
|
3880
|
+
amount: "amount";
|
|
3881
3881
|
}>;
|
|
3882
3882
|
direction: z.ZodEnum<{
|
|
3883
3883
|
asc: "asc";
|
|
@@ -3886,17 +3886,17 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3886
3886
|
}, z.core.$strip>;
|
|
3887
3887
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3888
3888
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3889
|
-
OPENED: "OPENED";
|
|
3890
3889
|
AUTHORIZED: "AUTHORIZED";
|
|
3891
3890
|
COMPLETED: "COMPLETED";
|
|
3891
|
+
OPENED: "OPENED";
|
|
3892
3892
|
BOOKED: "BOOKED";
|
|
3893
3893
|
SETTLED: "SETTLED";
|
|
3894
3894
|
REJECTED: "REJECTED";
|
|
3895
3895
|
CLOSED: "CLOSED";
|
|
3896
3896
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3897
|
-
OPENED: "OPENED";
|
|
3898
3897
|
AUTHORIZED: "AUTHORIZED";
|
|
3899
3898
|
COMPLETED: "COMPLETED";
|
|
3899
|
+
OPENED: "OPENED";
|
|
3900
3900
|
BOOKED: "BOOKED";
|
|
3901
3901
|
SETTLED: "SETTLED";
|
|
3902
3902
|
REJECTED: "REJECTED";
|
package/dist/base.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { uuidv4, first, buildMultiFilterConditions as buildMultiFilterConditions$1, bankAccountMetadataSchema, structuredAddressSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
|
-
import { G as tables, g as accountInsertSchema, H as relations, o as isProcessedStatus, p as isTerminalStatus, L as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, N as calculateCzechIban, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from './shared/bank.
|
|
2
|
+
import { G as tables, g as accountInsertSchema, H as relations, o as isProcessedStatus, p as isTerminalStatus, L as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, N as calculateCzechIban, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from './shared/bank.BEpgphDY.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';
|
|
6
6
|
import 'jose';
|
|
7
|
-
import { h as encrypt, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, j as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from './shared/bank.
|
|
7
|
+
import { h as encrypt, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, a as getPaymentRequestsByBatchIdQuery, g as getBatchByIdQuery, u as upsertBatchCommand, j as importAesKey, f as createPaymentCommand, b as getAccountByIdQuery } from './shared/bank.BG5L8Nyp.mjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import { I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, g as PAYMENT_TYPES, b as CONNECTOR_KEYS, a as BATCH_STATUSES, f as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES } from './shared/bank.BzDNLxB_.mjs';
|
|
10
10
|
import { CURRENCY_CODES } from '@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.
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.CGVCfq1B.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
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.
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.CGVCfq1B.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
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.
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.CGVCfq1B.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const paymentDirection = require('../shared/bank.
|
|
4
|
+
const paymentDirection = require('../shared/bank.6n35fwUh.cjs');
|
|
5
5
|
const batchLifecycle = require('../shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const drizzleOrm = require('drizzle-orm');
|
|
7
|
-
const bank = require('../shared/bank.
|
|
7
|
+
const bank = require('../shared/bank.Bcn8spzj.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, m as isPaymentCompleted } from '../shared/bank.
|
|
2
|
+
import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, m as isPaymentCompleted } from '../shared/bank.BEpgphDY.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, i as initiateConnector, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.
|
|
5
|
+
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, f as createPaymentCommand } from '../shared/bank.BG5L8Nyp.mjs';
|
|
6
6
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
7
7
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
8
8
|
import { drizzle } from 'drizzle-orm/d1';
|
|
@@ -644,6 +644,9 @@ const SEPA_COUNTRIES = /* @__PURE__ */ new Set([
|
|
|
644
644
|
"GI",
|
|
645
645
|
"XK"
|
|
646
646
|
]);
|
|
647
|
+
const BANK_CODE_SET = new Set(generalCodes.BANK_CODES);
|
|
648
|
+
const isBankCode = (value) => BANK_CODE_SET.has(value);
|
|
649
|
+
const toBic = (value) => value && backendSdk.bicSchema.safeParse(value).success ? value : void 0;
|
|
647
650
|
function parseOtherIdentification(value) {
|
|
648
651
|
if (!value) return {};
|
|
649
652
|
const [first, second] = value.split("/");
|
|
@@ -651,33 +654,36 @@ function parseOtherIdentification(value) {
|
|
|
651
654
|
const looksLikeIban = first.length >= 15 && /^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(first);
|
|
652
655
|
if (looksLikeIban) {
|
|
653
656
|
const iban = first;
|
|
654
|
-
const swiftBic = second
|
|
657
|
+
const swiftBic = toBic(second);
|
|
655
658
|
if (iban.startsWith("CZ") && iban.length === 24) {
|
|
656
|
-
const
|
|
659
|
+
const code = iban.slice(4, 8);
|
|
657
660
|
const number = iban.slice(14, 24).replace(/^0+/, "") || iban.slice(14, 24);
|
|
658
|
-
return {
|
|
661
|
+
return {
|
|
662
|
+
iban,
|
|
663
|
+
swiftBic,
|
|
664
|
+
bankCode: isBankCode(code) ? code : void 0,
|
|
665
|
+
number
|
|
666
|
+
};
|
|
659
667
|
}
|
|
660
668
|
return { iban, swiftBic };
|
|
661
669
|
}
|
|
662
|
-
return {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
};
|
|
670
|
+
if (!second) return { number: first };
|
|
671
|
+
if (isBankCode(second)) return { number: first, bankCode: second };
|
|
672
|
+
return { number: first, swiftBic: toBic(second) };
|
|
666
673
|
}
|
|
667
|
-
function detectPaymentType(tx, isIncoming) {
|
|
674
|
+
function detectPaymentType(tx, isIncoming, otherParsed) {
|
|
668
675
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
669
676
|
const otherParty = isIncoming ? related?.debtorAccount : related?.creditorAccount;
|
|
670
|
-
|
|
671
|
-
const otherIban = otherParty?.identification?.iban;
|
|
672
|
-
const otherCountry = otherIban?.slice(0, 2);
|
|
673
|
-
if (otherCountry
|
|
674
|
-
|
|
675
|
-
if (
|
|
676
|
-
return "SEPA";
|
|
677
|
+
const currency = tx.amount?.currency || "CZK";
|
|
678
|
+
const otherIban = otherParty?.identification?.iban || otherParsed.iban;
|
|
679
|
+
const otherCountry = otherParsed.bankCode ? "CZ" : otherIban?.slice(0, 2) || otherParsed.swiftBic?.slice(4, 6);
|
|
680
|
+
if (otherCountry) {
|
|
681
|
+
if (currency === "EUR" && SEPA_COUNTRIES.has(otherCountry)) return "SEPA";
|
|
682
|
+
if (otherCountry === "CZ" && currency === "CZK") return "DOMESTIC";
|
|
677
683
|
return "SWIFT";
|
|
678
684
|
}
|
|
679
|
-
if (
|
|
680
|
-
if (
|
|
685
|
+
if (currency === "EUR") return "SEPA";
|
|
686
|
+
if (currency !== "CZK") return "SWIFT";
|
|
681
687
|
return "DOMESTIC";
|
|
682
688
|
}
|
|
683
689
|
const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
@@ -714,7 +720,11 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
714
720
|
bankRefId: tx.fbxReference ?? tx.entryReference,
|
|
715
721
|
amount: tx.amount?.value || 0,
|
|
716
722
|
currency: tx.amount?.currency || "CZK",
|
|
717
|
-
paymentType: detectPaymentType(
|
|
723
|
+
paymentType: detectPaymentType(
|
|
724
|
+
tx,
|
|
725
|
+
isIncoming,
|
|
726
|
+
isIncoming ? debtorParsed : creditorParsed
|
|
727
|
+
),
|
|
718
728
|
status: mapFinbricksStatus(tx.status, !!tx.bookingDate?.date),
|
|
719
729
|
message: td?.remittanceInformation?.unstructured || td?.additionalRemittanceInformation || td?.additionalTransactionInformation || null,
|
|
720
730
|
processedAt: new Date(tx.bookingDate.date),
|
|
@@ -831,13 +841,25 @@ function resolveCzechDomesticIban(account) {
|
|
|
831
841
|
}
|
|
832
842
|
return derived;
|
|
833
843
|
}
|
|
844
|
+
const STREET_WITH_TRAILING_NUMBER = /^(.+?)[,\s]+(\d+(?:\/\d+)?[a-z]?)$/i;
|
|
834
845
|
function mapToFinbricksAddress(addr) {
|
|
835
846
|
if (!addr) return void 0;
|
|
847
|
+
let streetName = addr.streetName?.trim();
|
|
848
|
+
let buildingNumber = addr.buildingNumber?.trim();
|
|
849
|
+
if (streetName && !buildingNumber) {
|
|
850
|
+
const match = streetName.match(STREET_WITH_TRAILING_NUMBER);
|
|
851
|
+
if (match) {
|
|
852
|
+
streetName = match[1];
|
|
853
|
+
buildingNumber = match[2];
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
const town = addr.city?.trim();
|
|
857
|
+
const country = addr.countryCode?.trim();
|
|
836
858
|
return {
|
|
837
|
-
...
|
|
838
|
-
...
|
|
839
|
-
...
|
|
840
|
-
...
|
|
859
|
+
...streetName && { streetName },
|
|
860
|
+
...buildingNumber && { buildingNumber },
|
|
861
|
+
...town && { town },
|
|
862
|
+
...country && { country }
|
|
841
863
|
};
|
|
842
864
|
}
|
|
843
865
|
class FinbricksConnector extends IBankConnector {
|
|
@@ -1261,7 +1283,9 @@ class FinbricksConnector extends IBankConnector {
|
|
|
1261
1283
|
creditorAccountIban: resolveCzechDomesticIban(payment.creditor),
|
|
1262
1284
|
creditorName: payment.creditor.holderName,
|
|
1263
1285
|
description: this.PROVIDER === "CSOB" ? composeWithUltimateCreditor(payment.message, payment.creditor, {
|
|
1264
|
-
|
|
1286
|
+
// This rail is CZK-only (it sends no currency), and CZ domestic
|
|
1287
|
+
// clearing accepts diacritics — unlike the foreign rail.
|
|
1288
|
+
stripDiacritics: false
|
|
1265
1289
|
}) : payment.message,
|
|
1266
1290
|
variableSymbol: payment.vs ?? (payment.ss ? void 0 : autoVariableSymbol(payment.id)),
|
|
1267
1291
|
specificSymbol: payment.ss,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { uuidv4, createInternalError, useResult, structuredAddressSchema } from '@develit-io/backend-sdk';
|
|
1
|
+
import { uuidv4, createInternalError, bicSchema, useResult, structuredAddressSchema } from '@develit-io/backend-sdk';
|
|
2
2
|
import { format, parseISO } from 'date-fns';
|
|
3
3
|
import { s as schema, h as account, i as accountCredentials, o as ott } from './bank.BzDNLxB_.mjs';
|
|
4
4
|
import { defineRelations, and, not, inArray, isNull } from 'drizzle-orm';
|
|
5
5
|
import { importPKCS8, SignJWT } from 'jose';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
7
|
+
import { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
8
8
|
import { createInsertSchema, createUpdateSchema, createSelectSchema } from 'drizzle-orm/zod';
|
|
9
9
|
import 'node:crypto';
|
|
10
10
|
|
|
@@ -642,6 +642,9 @@ const SEPA_COUNTRIES = /* @__PURE__ */ new Set([
|
|
|
642
642
|
"GI",
|
|
643
643
|
"XK"
|
|
644
644
|
]);
|
|
645
|
+
const BANK_CODE_SET = new Set(BANK_CODES);
|
|
646
|
+
const isBankCode = (value) => BANK_CODE_SET.has(value);
|
|
647
|
+
const toBic = (value) => value && bicSchema.safeParse(value).success ? value : void 0;
|
|
645
648
|
function parseOtherIdentification(value) {
|
|
646
649
|
if (!value) return {};
|
|
647
650
|
const [first, second] = value.split("/");
|
|
@@ -649,33 +652,36 @@ function parseOtherIdentification(value) {
|
|
|
649
652
|
const looksLikeIban = first.length >= 15 && /^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(first);
|
|
650
653
|
if (looksLikeIban) {
|
|
651
654
|
const iban = first;
|
|
652
|
-
const swiftBic = second
|
|
655
|
+
const swiftBic = toBic(second);
|
|
653
656
|
if (iban.startsWith("CZ") && iban.length === 24) {
|
|
654
|
-
const
|
|
657
|
+
const code = iban.slice(4, 8);
|
|
655
658
|
const number = iban.slice(14, 24).replace(/^0+/, "") || iban.slice(14, 24);
|
|
656
|
-
return {
|
|
659
|
+
return {
|
|
660
|
+
iban,
|
|
661
|
+
swiftBic,
|
|
662
|
+
bankCode: isBankCode(code) ? code : void 0,
|
|
663
|
+
number
|
|
664
|
+
};
|
|
657
665
|
}
|
|
658
666
|
return { iban, swiftBic };
|
|
659
667
|
}
|
|
660
|
-
return {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
};
|
|
668
|
+
if (!second) return { number: first };
|
|
669
|
+
if (isBankCode(second)) return { number: first, bankCode: second };
|
|
670
|
+
return { number: first, swiftBic: toBic(second) };
|
|
664
671
|
}
|
|
665
|
-
function detectPaymentType(tx, isIncoming) {
|
|
672
|
+
function detectPaymentType(tx, isIncoming, otherParsed) {
|
|
666
673
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
667
674
|
const otherParty = isIncoming ? related?.debtorAccount : related?.creditorAccount;
|
|
668
|
-
|
|
669
|
-
const otherIban = otherParty?.identification?.iban;
|
|
670
|
-
const otherCountry = otherIban?.slice(0, 2);
|
|
671
|
-
if (otherCountry
|
|
672
|
-
|
|
673
|
-
if (
|
|
674
|
-
return "SEPA";
|
|
675
|
+
const currency = tx.amount?.currency || "CZK";
|
|
676
|
+
const otherIban = otherParty?.identification?.iban || otherParsed.iban;
|
|
677
|
+
const otherCountry = otherParsed.bankCode ? "CZ" : otherIban?.slice(0, 2) || otherParsed.swiftBic?.slice(4, 6);
|
|
678
|
+
if (otherCountry) {
|
|
679
|
+
if (currency === "EUR" && SEPA_COUNTRIES.has(otherCountry)) return "SEPA";
|
|
680
|
+
if (otherCountry === "CZ" && currency === "CZK") return "DOMESTIC";
|
|
675
681
|
return "SWIFT";
|
|
676
682
|
}
|
|
677
|
-
if (
|
|
678
|
-
if (
|
|
683
|
+
if (currency === "EUR") return "SEPA";
|
|
684
|
+
if (currency !== "CZK") return "SWIFT";
|
|
679
685
|
return "DOMESTIC";
|
|
680
686
|
}
|
|
681
687
|
const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
@@ -712,7 +718,11 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
712
718
|
bankRefId: tx.fbxReference ?? tx.entryReference,
|
|
713
719
|
amount: tx.amount?.value || 0,
|
|
714
720
|
currency: tx.amount?.currency || "CZK",
|
|
715
|
-
paymentType: detectPaymentType(
|
|
721
|
+
paymentType: detectPaymentType(
|
|
722
|
+
tx,
|
|
723
|
+
isIncoming,
|
|
724
|
+
isIncoming ? debtorParsed : creditorParsed
|
|
725
|
+
),
|
|
716
726
|
status: mapFinbricksStatus(tx.status, !!tx.bookingDate?.date),
|
|
717
727
|
message: td?.remittanceInformation?.unstructured || td?.additionalRemittanceInformation || td?.additionalTransactionInformation || null,
|
|
718
728
|
processedAt: new Date(tx.bookingDate.date),
|
|
@@ -829,13 +839,25 @@ function resolveCzechDomesticIban(account) {
|
|
|
829
839
|
}
|
|
830
840
|
return derived;
|
|
831
841
|
}
|
|
842
|
+
const STREET_WITH_TRAILING_NUMBER = /^(.+?)[,\s]+(\d+(?:\/\d+)?[a-z]?)$/i;
|
|
832
843
|
function mapToFinbricksAddress(addr) {
|
|
833
844
|
if (!addr) return void 0;
|
|
845
|
+
let streetName = addr.streetName?.trim();
|
|
846
|
+
let buildingNumber = addr.buildingNumber?.trim();
|
|
847
|
+
if (streetName && !buildingNumber) {
|
|
848
|
+
const match = streetName.match(STREET_WITH_TRAILING_NUMBER);
|
|
849
|
+
if (match) {
|
|
850
|
+
streetName = match[1];
|
|
851
|
+
buildingNumber = match[2];
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
const town = addr.city?.trim();
|
|
855
|
+
const country = addr.countryCode?.trim();
|
|
834
856
|
return {
|
|
835
|
-
...
|
|
836
|
-
...
|
|
837
|
-
...
|
|
838
|
-
...
|
|
857
|
+
...streetName && { streetName },
|
|
858
|
+
...buildingNumber && { buildingNumber },
|
|
859
|
+
...town && { town },
|
|
860
|
+
...country && { country }
|
|
839
861
|
};
|
|
840
862
|
}
|
|
841
863
|
class FinbricksConnector extends IBankConnector {
|
|
@@ -1259,7 +1281,9 @@ class FinbricksConnector extends IBankConnector {
|
|
|
1259
1281
|
creditorAccountIban: resolveCzechDomesticIban(payment.creditor),
|
|
1260
1282
|
creditorName: payment.creditor.holderName,
|
|
1261
1283
|
description: this.PROVIDER === "CSOB" ? composeWithUltimateCreditor(payment.message, payment.creditor, {
|
|
1262
|
-
|
|
1284
|
+
// This rail is CZK-only (it sends no currency), and CZ domestic
|
|
1285
|
+
// clearing accepts diacritics — unlike the foreign rail.
|
|
1286
|
+
stripDiacritics: false
|
|
1263
1287
|
}) : payment.message,
|
|
1264
1288
|
variableSymbol: payment.vs ?? (payment.ss ? void 0 : autoVariableSymbol(payment.id)),
|
|
1265
1289
|
specificSymbol: payment.ss,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sql, and, eq, isNull } from 'drizzle-orm';
|
|
2
|
-
import { G as tables, b as FinbricksConnector, J as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.
|
|
2
|
+
import { G as tables, b as FinbricksConnector, J as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.BEpgphDY.mjs';
|
|
3
3
|
import { uuidv4 } from '@develit-io/backend-sdk';
|
|
4
4
|
import './bank.BzDNLxB_.mjs';
|
|
5
5
|
import 'date-fns';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const paymentDirection = require('./bank.
|
|
4
|
+
const paymentDirection = require('./bank.6n35fwUh.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.
|
|
1
|
+
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.CGVCfq1B.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -3230,7 +3230,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3230
3230
|
name: string;
|
|
3231
3231
|
tableName: "batch";
|
|
3232
3232
|
dataType: "string enum";
|
|
3233
|
-
data: "AUTHORIZED" | "
|
|
3233
|
+
data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
|
|
3234
3234
|
driverParam: string;
|
|
3235
3235
|
notNull: false;
|
|
3236
3236
|
hasDefault: false;
|
|
@@ -3606,7 +3606,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3606
3606
|
name: string;
|
|
3607
3607
|
tableName: "payment";
|
|
3608
3608
|
dataType: "string enum";
|
|
3609
|
-
data: "
|
|
3609
|
+
data: "PROCESSING" | "BOOKED" | "REJECTED" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3610
3610
|
driverParam: string;
|
|
3611
3611
|
notNull: true;
|
|
3612
3612
|
hasDefault: false;
|
|
@@ -4110,7 +4110,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
4110
4110
|
name: string;
|
|
4111
4111
|
tableName: "payment_request";
|
|
4112
4112
|
dataType: "string enum";
|
|
4113
|
-
data: "
|
|
4113
|
+
data: "AUTHORIZED" | "COMPLETED" | "OPENED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
4114
4114
|
driverParam: string;
|
|
4115
4115
|
notNull: true;
|
|
4116
4116
|
hasDefault: false;
|
|
@@ -3230,7 +3230,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3230
3230
|
name: string;
|
|
3231
3231
|
tableName: "batch";
|
|
3232
3232
|
dataType: "string enum";
|
|
3233
|
-
data: "AUTHORIZED" | "
|
|
3233
|
+
data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
|
|
3234
3234
|
driverParam: string;
|
|
3235
3235
|
notNull: false;
|
|
3236
3236
|
hasDefault: false;
|
|
@@ -3606,7 +3606,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3606
3606
|
name: string;
|
|
3607
3607
|
tableName: "payment";
|
|
3608
3608
|
dataType: "string enum";
|
|
3609
|
-
data: "
|
|
3609
|
+
data: "PROCESSING" | "BOOKED" | "REJECTED" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3610
3610
|
driverParam: string;
|
|
3611
3611
|
notNull: true;
|
|
3612
3612
|
hasDefault: false;
|
|
@@ -4110,7 +4110,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
4110
4110
|
name: string;
|
|
4111
4111
|
tableName: "payment_request";
|
|
4112
4112
|
dataType: "string enum";
|
|
4113
|
-
data: "
|
|
4113
|
+
data: "AUTHORIZED" | "COMPLETED" | "OPENED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
4114
4114
|
driverParam: string;
|
|
4115
4115
|
notNull: true;
|
|
4116
4116
|
hasDefault: false;
|
|
@@ -3230,7 +3230,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3230
3230
|
name: string;
|
|
3231
3231
|
tableName: "batch";
|
|
3232
3232
|
dataType: "string enum";
|
|
3233
|
-
data: "AUTHORIZED" | "
|
|
3233
|
+
data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
|
|
3234
3234
|
driverParam: string;
|
|
3235
3235
|
notNull: false;
|
|
3236
3236
|
hasDefault: false;
|
|
@@ -3606,7 +3606,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3606
3606
|
name: string;
|
|
3607
3607
|
tableName: "payment";
|
|
3608
3608
|
dataType: "string enum";
|
|
3609
|
-
data: "
|
|
3609
|
+
data: "PROCESSING" | "BOOKED" | "REJECTED" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3610
3610
|
driverParam: string;
|
|
3611
3611
|
notNull: true;
|
|
3612
3612
|
hasDefault: false;
|
|
@@ -4110,7 +4110,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
4110
4110
|
name: string;
|
|
4111
4111
|
tableName: "payment_request";
|
|
4112
4112
|
dataType: "string enum";
|
|
4113
|
-
data: "
|
|
4113
|
+
data: "AUTHORIZED" | "COMPLETED" | "OPENED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
4114
4114
|
driverParam: string;
|
|
4115
4115
|
notNull: true;
|
|
4116
4116
|
hasDefault: false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.CGVCfq1B.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.CGVCfq1B.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 paymentDirection = require('./shared/bank.
|
|
3
|
+
const paymentDirection = require('./shared/bank.6n35fwUh.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,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b 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.
|
|
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, c 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.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
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.
|
|
1
|
+
import { I as IBankConnector, b 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.CGVCfq1B.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, c 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.CGVCfq1B.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BqTBTu_N.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.BqTBTu_N.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b 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.
|
|
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, c 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.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
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.
|
|
1
|
+
import { I as IBankConnector, b 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.CGVCfq1B.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, c 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.CGVCfq1B.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.SSqNFzWn.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.SSqNFzWn.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b 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.
|
|
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, c 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.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
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.
|
|
1
|
+
import { I as IBankConnector, b 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.CGVCfq1B.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, c 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.CGVCfq1B.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CYJ75FSr.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.CYJ75FSr.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
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.
|
|
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.BEpgphDY.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": "5.5.
|
|
3
|
+
"version": "5.5.4",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -62,5 +62,10 @@
|
|
|
62
62
|
"drizzle-orm": "^1.0.0-rc.1",
|
|
63
63
|
"zod": "^4.1.13",
|
|
64
64
|
"@develit-io/platform-sdk": "^4.7.2"
|
|
65
|
+
},
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"@develit-io/platform-sdk": {
|
|
68
|
+
"optional": true
|
|
69
|
+
}
|
|
65
70
|
}
|
|
66
71
|
}
|