@develit-services/bank 5.1.0 → 5.2.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.
- package/dist/base.cjs +2 -2
- package/dist/base.d.cts +15 -15
- package/dist/base.d.mts +15 -15
- package/dist/base.d.ts +15 -15
- 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.Do1KUeDr.d.ts → bank.BJTq7Qw9.d.cts} +3 -3
- package/dist/shared/{bank.Do1KUeDr.d.cts → bank.BJTq7Qw9.d.mts} +3 -3
- package/dist/shared/{bank.Do1KUeDr.d.mts → bank.BJTq7Qw9.d.ts} +3 -3
- package/dist/shared/{bank.C_JpNoSI.mjs → bank.BRD2WfnT.mjs} +1 -1
- package/dist/shared/{bank.Dji7yhN_.cjs → bank.Bgz1SSIP.cjs} +1 -1
- package/dist/shared/{bank.CjEKRnVl.cjs → bank.BkctD4hR.cjs} +106 -67
- package/dist/shared/{bank.D5skCz3H.mjs → bank.Bkxo76q4.mjs} +106 -67
- package/dist/shared/{bank.C-edstpR.d.cts → bank.DXU-wqnl.d.mts} +1 -1
- package/dist/shared/{bank.pZQAWlIB.d.ts → bank.JAN0kymF.d.ts} +1 -1
- package/dist/shared/{bank.C6BQDtpF.d.mts → bank.wFDtecu7.d.cts} +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 +1 -1
package/dist/base.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const bank = require('./shared/bank.
|
|
4
|
+
const bank = require('./shared/bank.BkctD4hR.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,7 +11,7 @@ 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.
|
|
14
|
+
const credentialsResolver = require('./shared/bank.Bgz1SSIP.cjs');
|
|
15
15
|
require('drizzle-orm/zod');
|
|
16
16
|
require('drizzle-orm/sqlite-core');
|
|
17
17
|
|
package/dist/base.d.cts
CHANGED
|
@@ -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, 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.
|
|
3
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.
|
|
2
|
+
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.BJTq7Qw9.cjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.wFDtecu7.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';
|
|
@@ -2691,9 +2691,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2691
2691
|
limit: z.ZodNumber;
|
|
2692
2692
|
sort: z.ZodObject<{
|
|
2693
2693
|
column: z.ZodEnum<{
|
|
2694
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
2695
2694
|
createdAt: "createdAt";
|
|
2696
2695
|
updatedAt: "updatedAt";
|
|
2696
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
2697
2697
|
}>;
|
|
2698
2698
|
direction: z.ZodEnum<{
|
|
2699
2699
|
asc: "asc";
|
|
@@ -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";
|
|
2706
2707
|
PROCESSING: "PROCESSING";
|
|
2707
2708
|
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";
|
|
2712
2713
|
PROCESSING: "PROCESSING";
|
|
2713
2714
|
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
|
-
PROCESSING: "PROCESSING";
|
|
2952
|
-
PENDING: "PENDING";
|
|
2953
2951
|
BOOKED: "BOOKED";
|
|
2954
|
-
CANCELLED: "CANCELLED";
|
|
2955
2952
|
REJECTED: "REJECTED";
|
|
2953
|
+
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
|
+
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
PROCESSING: "PROCESSING";
|
|
2961
|
-
PENDING: "PENDING";
|
|
2962
2960
|
BOOKED: "BOOKED";
|
|
2963
|
-
CANCELLED: "CANCELLED";
|
|
2964
2961
|
REJECTED: "REJECTED";
|
|
2962
|
+
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
|
+
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3620,20 +3620,20 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3620
3620
|
}, z.core.$strip>;
|
|
3621
3621
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3622
3622
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3623
|
+
OPENED: "OPENED";
|
|
3623
3624
|
AUTHORIZED: "AUTHORIZED";
|
|
3624
3625
|
COMPLETED: "COMPLETED";
|
|
3625
3626
|
BOOKED: "BOOKED";
|
|
3626
|
-
REJECTED: "REJECTED";
|
|
3627
|
-
OPENED: "OPENED";
|
|
3628
3627
|
SETTLED: "SETTLED";
|
|
3628
|
+
REJECTED: "REJECTED";
|
|
3629
3629
|
CLOSED: "CLOSED";
|
|
3630
3630
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3631
|
+
OPENED: "OPENED";
|
|
3631
3632
|
AUTHORIZED: "AUTHORIZED";
|
|
3632
3633
|
COMPLETED: "COMPLETED";
|
|
3633
3634
|
BOOKED: "BOOKED";
|
|
3634
|
-
REJECTED: "REJECTED";
|
|
3635
|
-
OPENED: "OPENED";
|
|
3636
3635
|
SETTLED: "SETTLED";
|
|
3636
|
+
REJECTED: "REJECTED";
|
|
3637
3637
|
CLOSED: "CLOSED";
|
|
3638
3638
|
}>>]>>;
|
|
3639
3639
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/base.d.mts
CHANGED
|
@@ -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, 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.
|
|
3
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.
|
|
2
|
+
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.BJTq7Qw9.mjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.DXU-wqnl.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';
|
|
@@ -2691,9 +2691,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2691
2691
|
limit: z.ZodNumber;
|
|
2692
2692
|
sort: z.ZodObject<{
|
|
2693
2693
|
column: z.ZodEnum<{
|
|
2694
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
2695
2694
|
createdAt: "createdAt";
|
|
2696
2695
|
updatedAt: "updatedAt";
|
|
2696
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
2697
2697
|
}>;
|
|
2698
2698
|
direction: z.ZodEnum<{
|
|
2699
2699
|
asc: "asc";
|
|
@@ -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";
|
|
2706
2707
|
PROCESSING: "PROCESSING";
|
|
2707
2708
|
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";
|
|
2712
2713
|
PROCESSING: "PROCESSING";
|
|
2713
2714
|
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
|
-
PROCESSING: "PROCESSING";
|
|
2952
|
-
PENDING: "PENDING";
|
|
2953
2951
|
BOOKED: "BOOKED";
|
|
2954
|
-
CANCELLED: "CANCELLED";
|
|
2955
2952
|
REJECTED: "REJECTED";
|
|
2953
|
+
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
|
+
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
PROCESSING: "PROCESSING";
|
|
2961
|
-
PENDING: "PENDING";
|
|
2962
2960
|
BOOKED: "BOOKED";
|
|
2963
|
-
CANCELLED: "CANCELLED";
|
|
2964
2961
|
REJECTED: "REJECTED";
|
|
2962
|
+
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
|
+
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3620,20 +3620,20 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3620
3620
|
}, z.core.$strip>;
|
|
3621
3621
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3622
3622
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3623
|
+
OPENED: "OPENED";
|
|
3623
3624
|
AUTHORIZED: "AUTHORIZED";
|
|
3624
3625
|
COMPLETED: "COMPLETED";
|
|
3625
3626
|
BOOKED: "BOOKED";
|
|
3626
|
-
REJECTED: "REJECTED";
|
|
3627
|
-
OPENED: "OPENED";
|
|
3628
3627
|
SETTLED: "SETTLED";
|
|
3628
|
+
REJECTED: "REJECTED";
|
|
3629
3629
|
CLOSED: "CLOSED";
|
|
3630
3630
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3631
|
+
OPENED: "OPENED";
|
|
3631
3632
|
AUTHORIZED: "AUTHORIZED";
|
|
3632
3633
|
COMPLETED: "COMPLETED";
|
|
3633
3634
|
BOOKED: "BOOKED";
|
|
3634
|
-
REJECTED: "REJECTED";
|
|
3635
|
-
OPENED: "OPENED";
|
|
3636
3635
|
SETTLED: "SETTLED";
|
|
3636
|
+
REJECTED: "REJECTED";
|
|
3637
3637
|
CLOSED: "CLOSED";
|
|
3638
3638
|
}>>]>>;
|
|
3639
3639
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/base.d.ts
CHANGED
|
@@ -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, 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.
|
|
3
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.
|
|
2
|
+
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.BJTq7Qw9.js';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from './shared/bank.JAN0kymF.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';
|
|
@@ -2691,9 +2691,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2691
2691
|
limit: z.ZodNumber;
|
|
2692
2692
|
sort: z.ZodObject<{
|
|
2693
2693
|
column: z.ZodEnum<{
|
|
2694
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
2695
2694
|
createdAt: "createdAt";
|
|
2696
2695
|
updatedAt: "updatedAt";
|
|
2696
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
2697
2697
|
}>;
|
|
2698
2698
|
direction: z.ZodEnum<{
|
|
2699
2699
|
asc: "asc";
|
|
@@ -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";
|
|
2706
2707
|
PROCESSING: "PROCESSING";
|
|
2707
2708
|
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";
|
|
2712
2713
|
PROCESSING: "PROCESSING";
|
|
2713
2714
|
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
|
-
PROCESSING: "PROCESSING";
|
|
2952
|
-
PENDING: "PENDING";
|
|
2953
2951
|
BOOKED: "BOOKED";
|
|
2954
|
-
CANCELLED: "CANCELLED";
|
|
2955
2952
|
REJECTED: "REJECTED";
|
|
2953
|
+
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
|
+
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
PROCESSING: "PROCESSING";
|
|
2961
|
-
PENDING: "PENDING";
|
|
2962
2960
|
BOOKED: "BOOKED";
|
|
2963
|
-
CANCELLED: "CANCELLED";
|
|
2964
2961
|
REJECTED: "REJECTED";
|
|
2962
|
+
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
|
+
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3620,20 +3620,20 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3620
3620
|
}, z.core.$strip>;
|
|
3621
3621
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3622
3622
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3623
|
+
OPENED: "OPENED";
|
|
3623
3624
|
AUTHORIZED: "AUTHORIZED";
|
|
3624
3625
|
COMPLETED: "COMPLETED";
|
|
3625
3626
|
BOOKED: "BOOKED";
|
|
3626
|
-
REJECTED: "REJECTED";
|
|
3627
|
-
OPENED: "OPENED";
|
|
3628
3627
|
SETTLED: "SETTLED";
|
|
3628
|
+
REJECTED: "REJECTED";
|
|
3629
3629
|
CLOSED: "CLOSED";
|
|
3630
3630
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3631
|
+
OPENED: "OPENED";
|
|
3631
3632
|
AUTHORIZED: "AUTHORIZED";
|
|
3632
3633
|
COMPLETED: "COMPLETED";
|
|
3633
3634
|
BOOKED: "BOOKED";
|
|
3634
|
-
REJECTED: "REJECTED";
|
|
3635
|
-
OPENED: "OPENED";
|
|
3636
3635
|
SETTLED: "SETTLED";
|
|
3636
|
+
REJECTED: "REJECTED";
|
|
3637
3637
|
CLOSED: "CLOSED";
|
|
3638
3638
|
}>>]>>;
|
|
3639
3639
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/base.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, J as initiateConnector, 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, J as initiateConnector, 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.Bkxo76q4.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,7 +9,7 @@ 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.
|
|
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.BRD2WfnT.mjs';
|
|
13
13
|
import 'drizzle-orm/zod';
|
|
14
14
|
import 'drizzle-orm/sqlite-core';
|
|
15
15
|
|
|
@@ -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.BJTq7Qw9.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.
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BJTq7Qw9.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.
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BJTq7Qw9.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
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 bank = require('../shared/bank.
|
|
4
|
+
const bank = require('../shared/bank.BkctD4hR.cjs');
|
|
5
5
|
const batchLifecycle = require('../shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const drizzleOrm = require('drizzle-orm');
|
|
7
|
-
const credentialsResolver = require('../shared/bank.
|
|
7
|
+
const credentialsResolver = require('../shared/bank.Bgz1SSIP.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.
|
|
2
|
+
import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, J as initiateConnector, m as isPaymentCompleted } from '../shared/bank.Bkxo76q4.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.
|
|
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.BRD2WfnT.mjs';
|
|
6
6
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
7
7
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
8
8
|
import { drizzle } from 'drizzle-orm/d1';
|
|
@@ -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" | "
|
|
2147
|
+
data: "AUTHORIZED" | "COMPLETED" | "PROCESSING" | "READY_TO_SIGN" | "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: "
|
|
2418
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "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: "
|
|
2817
|
+
data: "OPENED" | "AUTHORIZED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "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" | "
|
|
2147
|
+
data: "AUTHORIZED" | "COMPLETED" | "PROCESSING" | "READY_TO_SIGN" | "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: "
|
|
2418
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "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: "
|
|
2817
|
+
data: "OPENED" | "AUTHORIZED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "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" | "
|
|
2147
|
+
data: "AUTHORIZED" | "COMPLETED" | "PROCESSING" | "READY_TO_SIGN" | "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: "
|
|
2418
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "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: "
|
|
2817
|
+
data: "OPENED" | "AUTHORIZED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
2818
2818
|
driverParam: string;
|
|
2819
2819
|
notNull: true;
|
|
2820
2820
|
hasDefault: false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const bank = require('./bank.
|
|
4
|
+
const bank = require('./bank.BkctD4hR.cjs');
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
require('./bank.9Yw4KHyl.cjs');
|
|
7
7
|
require('date-fns');
|
|
@@ -1285,80 +1285,119 @@ class DbuConnector extends IBankConnector {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
async makeRequest(endpoint, requestId, options = {}) {
|
|
1287
1287
|
const { method = "GET", headers = {}, query = {}, body } = options;
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1288
|
+
let url;
|
|
1289
|
+
let response;
|
|
1290
|
+
try {
|
|
1291
|
+
if (method === "POST" && !this.allowedPostEndpoints.includes(endpoint)) {
|
|
1292
|
+
throw backendSdk.createInternalError(null, {
|
|
1293
|
+
message: `DBU API endpoint ${endpoint} does not support POST method`,
|
|
1294
|
+
code: "DBU_INVALID_METHOD"
|
|
1295
|
+
});
|
|
1296
|
+
}
|
|
1297
|
+
const defaultHeaders = {
|
|
1298
|
+
"x-dcs-username": this.username,
|
|
1299
|
+
"x-dcs-session-id": `session-${this.sessionId}`,
|
|
1300
|
+
"x-dcs-request-id": `request-${requestId}`,
|
|
1301
|
+
"Content-Type": "application/json",
|
|
1302
|
+
...headers
|
|
1303
|
+
};
|
|
1304
|
+
const baseUrl = this.baseUrl.endsWith("/") ? this.baseUrl.slice(0, -1) : this.baseUrl;
|
|
1305
|
+
const cleanEndpoint = endpoint.startsWith("/") ? endpoint.slice(1) : endpoint;
|
|
1306
|
+
url = new URL(`${baseUrl}/${cleanEndpoint}`);
|
|
1307
|
+
Object.entries(query).forEach(([key, value]) => {
|
|
1308
|
+
if (value !== void 0 && value !== null) {
|
|
1309
|
+
url.searchParams.append(key, value);
|
|
1310
|
+
}
|
|
1292
1311
|
});
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
"
|
|
1298
|
-
|
|
1299
|
-
...headers
|
|
1300
|
-
};
|
|
1301
|
-
const baseUrl = this.baseUrl.endsWith("/") ? this.baseUrl.slice(0, -1) : this.baseUrl;
|
|
1302
|
-
const cleanEndpoint = endpoint.startsWith("/") ? endpoint.slice(1) : endpoint;
|
|
1303
|
-
const url = new URL(`${baseUrl}/${cleanEndpoint}`);
|
|
1304
|
-
Object.entries(query).forEach(([key, value]) => {
|
|
1305
|
-
if (value !== void 0 && value !== null) {
|
|
1306
|
-
url.searchParams.append(key, value);
|
|
1312
|
+
const fetchOptions = {
|
|
1313
|
+
method,
|
|
1314
|
+
headers: defaultHeaders
|
|
1315
|
+
};
|
|
1316
|
+
if (body && method !== "GET") {
|
|
1317
|
+
fetchOptions.body = JSON.stringify(body);
|
|
1307
1318
|
}
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1319
|
+
console.log(
|
|
1320
|
+
"[DBU] request",
|
|
1321
|
+
JSON.stringify(
|
|
1322
|
+
{
|
|
1323
|
+
method,
|
|
1324
|
+
url: url.toString(),
|
|
1325
|
+
requestId,
|
|
1326
|
+
headers: defaultHeaders,
|
|
1327
|
+
body: body ?? null
|
|
1328
|
+
},
|
|
1329
|
+
null,
|
|
1330
|
+
2
|
|
1331
|
+
)
|
|
1332
|
+
);
|
|
1333
|
+
response = await this.api.fetch(url.toString(), fetchOptions);
|
|
1334
|
+
const responseText = await response.text().catch(() => "unable to read response");
|
|
1335
|
+
if (!response.ok) {
|
|
1336
|
+
let parsedBody = responseText;
|
|
1337
|
+
try {
|
|
1338
|
+
parsedBody = JSON.parse(responseText);
|
|
1339
|
+
} catch {
|
|
1340
|
+
}
|
|
1341
|
+
console.error("[DBU] error response", {
|
|
1342
|
+
status: response.status,
|
|
1343
|
+
statusText: response.statusText,
|
|
1321
1344
|
url: url.toString(),
|
|
1322
1345
|
requestId,
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1346
|
+
body: parsedBody
|
|
1347
|
+
});
|
|
1348
|
+
const errorMessage = typeof parsedBody === "string" ? parsedBody : JSON.stringify(parsedBody);
|
|
1349
|
+
throw backendSdk.createInternalError(
|
|
1350
|
+
new Error(`DBU API error: ${response.status}`),
|
|
1351
|
+
{
|
|
1352
|
+
message: `DBU request failed [${response.status}]: ${errorMessage}`
|
|
1353
|
+
}
|
|
1354
|
+
);
|
|
1355
|
+
}
|
|
1356
|
+
let data;
|
|
1357
|
+
try {
|
|
1358
|
+
data = JSON.parse(responseText);
|
|
1359
|
+
} catch (parseError) {
|
|
1360
|
+
console.error("[DBU] JSON parse error", {
|
|
1361
|
+
url: url.toString(),
|
|
1362
|
+
requestId,
|
|
1363
|
+
status: response.status,
|
|
1364
|
+
responseTextPreview: responseText.substring(0, 500),
|
|
1365
|
+
parseError: parseError instanceof Error ? parseError.message : String(parseError)
|
|
1366
|
+
});
|
|
1367
|
+
throw backendSdk.createInternalError(parseError, {
|
|
1368
|
+
message: "Failed to parse DBU response as JSON"
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
console.log(
|
|
1372
|
+
"[DBU] response",
|
|
1373
|
+
JSON.stringify(
|
|
1374
|
+
{
|
|
1375
|
+
status: response.status,
|
|
1376
|
+
url: url.toString(),
|
|
1377
|
+
requestId,
|
|
1378
|
+
body: data
|
|
1379
|
+
},
|
|
1380
|
+
null,
|
|
1381
|
+
2
|
|
1382
|
+
)
|
|
1383
|
+
);
|
|
1384
|
+
return data;
|
|
1385
|
+
} catch (error) {
|
|
1386
|
+
console.error("[DBU] makeRequest failed", {
|
|
1387
|
+
endpoint,
|
|
1337
1388
|
requestId,
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
{
|
|
1343
|
-
message:
|
|
1389
|
+
method,
|
|
1390
|
+
url: url?.toString(),
|
|
1391
|
+
responseStatus: response?.status,
|
|
1392
|
+
responseStatusText: response?.statusText,
|
|
1393
|
+
error: {
|
|
1394
|
+
message: error instanceof Error ? error.message : String(error),
|
|
1395
|
+
name: error instanceof Error ? error.name : "Unknown",
|
|
1396
|
+
stack: error instanceof Error ? error.stack : void 0
|
|
1344
1397
|
}
|
|
1345
|
-
);
|
|
1398
|
+
});
|
|
1399
|
+
throw error;
|
|
1346
1400
|
}
|
|
1347
|
-
const data = await response.json();
|
|
1348
|
-
console.log(
|
|
1349
|
-
"[DBU] response",
|
|
1350
|
-
JSON.stringify(
|
|
1351
|
-
{
|
|
1352
|
-
status: response.status,
|
|
1353
|
-
url: url.toString(),
|
|
1354
|
-
requestId,
|
|
1355
|
-
body: data
|
|
1356
|
-
},
|
|
1357
|
-
null,
|
|
1358
|
-
2
|
|
1359
|
-
)
|
|
1360
|
-
);
|
|
1361
|
-
return data;
|
|
1362
1401
|
}
|
|
1363
1402
|
mapDbuCurrencyCode(dbuCurrency) {
|
|
1364
1403
|
const currency = dbuCurrency.toUpperCase();
|
|
@@ -1283,80 +1283,119 @@ class DbuConnector extends IBankConnector {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
async makeRequest(endpoint, requestId, options = {}) {
|
|
1285
1285
|
const { method = "GET", headers = {}, query = {}, body } = options;
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1286
|
+
let url;
|
|
1287
|
+
let response;
|
|
1288
|
+
try {
|
|
1289
|
+
if (method === "POST" && !this.allowedPostEndpoints.includes(endpoint)) {
|
|
1290
|
+
throw createInternalError(null, {
|
|
1291
|
+
message: `DBU API endpoint ${endpoint} does not support POST method`,
|
|
1292
|
+
code: "DBU_INVALID_METHOD"
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
const defaultHeaders = {
|
|
1296
|
+
"x-dcs-username": this.username,
|
|
1297
|
+
"x-dcs-session-id": `session-${this.sessionId}`,
|
|
1298
|
+
"x-dcs-request-id": `request-${requestId}`,
|
|
1299
|
+
"Content-Type": "application/json",
|
|
1300
|
+
...headers
|
|
1301
|
+
};
|
|
1302
|
+
const baseUrl = this.baseUrl.endsWith("/") ? this.baseUrl.slice(0, -1) : this.baseUrl;
|
|
1303
|
+
const cleanEndpoint = endpoint.startsWith("/") ? endpoint.slice(1) : endpoint;
|
|
1304
|
+
url = new URL(`${baseUrl}/${cleanEndpoint}`);
|
|
1305
|
+
Object.entries(query).forEach(([key, value]) => {
|
|
1306
|
+
if (value !== void 0 && value !== null) {
|
|
1307
|
+
url.searchParams.append(key, value);
|
|
1308
|
+
}
|
|
1290
1309
|
});
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
"
|
|
1296
|
-
|
|
1297
|
-
...headers
|
|
1298
|
-
};
|
|
1299
|
-
const baseUrl = this.baseUrl.endsWith("/") ? this.baseUrl.slice(0, -1) : this.baseUrl;
|
|
1300
|
-
const cleanEndpoint = endpoint.startsWith("/") ? endpoint.slice(1) : endpoint;
|
|
1301
|
-
const url = new URL(`${baseUrl}/${cleanEndpoint}`);
|
|
1302
|
-
Object.entries(query).forEach(([key, value]) => {
|
|
1303
|
-
if (value !== void 0 && value !== null) {
|
|
1304
|
-
url.searchParams.append(key, value);
|
|
1310
|
+
const fetchOptions = {
|
|
1311
|
+
method,
|
|
1312
|
+
headers: defaultHeaders
|
|
1313
|
+
};
|
|
1314
|
+
if (body && method !== "GET") {
|
|
1315
|
+
fetchOptions.body = JSON.stringify(body);
|
|
1305
1316
|
}
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1317
|
+
console.log(
|
|
1318
|
+
"[DBU] request",
|
|
1319
|
+
JSON.stringify(
|
|
1320
|
+
{
|
|
1321
|
+
method,
|
|
1322
|
+
url: url.toString(),
|
|
1323
|
+
requestId,
|
|
1324
|
+
headers: defaultHeaders,
|
|
1325
|
+
body: body ?? null
|
|
1326
|
+
},
|
|
1327
|
+
null,
|
|
1328
|
+
2
|
|
1329
|
+
)
|
|
1330
|
+
);
|
|
1331
|
+
response = await this.api.fetch(url.toString(), fetchOptions);
|
|
1332
|
+
const responseText = await response.text().catch(() => "unable to read response");
|
|
1333
|
+
if (!response.ok) {
|
|
1334
|
+
let parsedBody = responseText;
|
|
1335
|
+
try {
|
|
1336
|
+
parsedBody = JSON.parse(responseText);
|
|
1337
|
+
} catch {
|
|
1338
|
+
}
|
|
1339
|
+
console.error("[DBU] error response", {
|
|
1340
|
+
status: response.status,
|
|
1341
|
+
statusText: response.statusText,
|
|
1319
1342
|
url: url.toString(),
|
|
1320
1343
|
requestId,
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1344
|
+
body: parsedBody
|
|
1345
|
+
});
|
|
1346
|
+
const errorMessage = typeof parsedBody === "string" ? parsedBody : JSON.stringify(parsedBody);
|
|
1347
|
+
throw createInternalError(
|
|
1348
|
+
new Error(`DBU API error: ${response.status}`),
|
|
1349
|
+
{
|
|
1350
|
+
message: `DBU request failed [${response.status}]: ${errorMessage}`
|
|
1351
|
+
}
|
|
1352
|
+
);
|
|
1353
|
+
}
|
|
1354
|
+
let data;
|
|
1355
|
+
try {
|
|
1356
|
+
data = JSON.parse(responseText);
|
|
1357
|
+
} catch (parseError) {
|
|
1358
|
+
console.error("[DBU] JSON parse error", {
|
|
1359
|
+
url: url.toString(),
|
|
1360
|
+
requestId,
|
|
1361
|
+
status: response.status,
|
|
1362
|
+
responseTextPreview: responseText.substring(0, 500),
|
|
1363
|
+
parseError: parseError instanceof Error ? parseError.message : String(parseError)
|
|
1364
|
+
});
|
|
1365
|
+
throw createInternalError(parseError, {
|
|
1366
|
+
message: "Failed to parse DBU response as JSON"
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
console.log(
|
|
1370
|
+
"[DBU] response",
|
|
1371
|
+
JSON.stringify(
|
|
1372
|
+
{
|
|
1373
|
+
status: response.status,
|
|
1374
|
+
url: url.toString(),
|
|
1375
|
+
requestId,
|
|
1376
|
+
body: data
|
|
1377
|
+
},
|
|
1378
|
+
null,
|
|
1379
|
+
2
|
|
1380
|
+
)
|
|
1381
|
+
);
|
|
1382
|
+
return data;
|
|
1383
|
+
} catch (error) {
|
|
1384
|
+
console.error("[DBU] makeRequest failed", {
|
|
1385
|
+
endpoint,
|
|
1335
1386
|
requestId,
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
{
|
|
1341
|
-
message:
|
|
1387
|
+
method,
|
|
1388
|
+
url: url?.toString(),
|
|
1389
|
+
responseStatus: response?.status,
|
|
1390
|
+
responseStatusText: response?.statusText,
|
|
1391
|
+
error: {
|
|
1392
|
+
message: error instanceof Error ? error.message : String(error),
|
|
1393
|
+
name: error instanceof Error ? error.name : "Unknown",
|
|
1394
|
+
stack: error instanceof Error ? error.stack : void 0
|
|
1342
1395
|
}
|
|
1343
|
-
);
|
|
1396
|
+
});
|
|
1397
|
+
throw error;
|
|
1344
1398
|
}
|
|
1345
|
-
const data = await response.json();
|
|
1346
|
-
console.log(
|
|
1347
|
-
"[DBU] response",
|
|
1348
|
-
JSON.stringify(
|
|
1349
|
-
{
|
|
1350
|
-
status: response.status,
|
|
1351
|
-
url: url.toString(),
|
|
1352
|
-
requestId,
|
|
1353
|
-
body: data
|
|
1354
|
-
},
|
|
1355
|
-
null,
|
|
1356
|
-
2
|
|
1357
|
-
)
|
|
1358
|
-
);
|
|
1359
|
-
return data;
|
|
1360
1399
|
}
|
|
1361
1400
|
mapDbuCurrencyCode(dbuCurrency) {
|
|
1362
1401
|
const currency = dbuCurrency.toUpperCase();
|
|
@@ -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.BJTq7Qw9.mjs';
|
|
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.BJTq7Qw9.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.BJTq7Qw9.cjs';
|
|
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 bank = require('./shared/bank.
|
|
3
|
+
const bank = require('./shared/bank.BkctD4hR.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.BJTq7Qw9.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.BJTq7Qw9.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.wFDtecu7.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.wFDtecu7.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.BJTq7Qw9.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.BJTq7Qw9.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DXU-wqnl.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.DXU-wqnl.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.BJTq7Qw9.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.BJTq7Qw9.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.JAN0kymF.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.JAN0kymF.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.Bkxo76q4.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';
|