@develit-services/bank 3.0.1 → 4.1.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/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/worker.cjs +2 -2
- package/dist/export/worker.d.cts +6 -6
- package/dist/export/worker.d.mts +6 -6
- package/dist/export/worker.d.ts +6 -6
- package/dist/export/worker.mjs +2 -2
- package/dist/export/workflows.cjs +2 -2
- package/dist/export/workflows.mjs +2 -2
- package/dist/export/wrangler.cjs +8 -22
- package/dist/export/wrangler.d.cts +3 -3
- package/dist/export/wrangler.d.mts +3 -3
- package/dist/export/wrangler.d.ts +3 -3
- package/dist/export/wrangler.mjs +8 -22
- package/dist/shared/{bank.lJOMYeVw.mjs → bank.BScD3GXI.mjs} +1 -1
- package/dist/shared/{bank.Cwbl-Mjn.mjs → bank.BxZARqNE.mjs} +2 -0
- package/dist/shared/{bank.C6sLje8B.d.cts → bank.BydmpvCs.d.cts} +19 -28
- package/dist/shared/{bank.C6sLje8B.d.mts → bank.BydmpvCs.d.mts} +19 -28
- package/dist/shared/{bank.C6sLje8B.d.ts → bank.BydmpvCs.d.ts} +19 -28
- package/dist/shared/{bank.DR02_AJ7.d.cts → bank.C0JeMUxQ.d.cts} +1 -1
- package/dist/shared/{bank.DR02_AJ7.d.mts → bank.C0JeMUxQ.d.mts} +1 -1
- package/dist/shared/{bank.DR02_AJ7.d.ts → bank.C0JeMUxQ.d.ts} +1 -1
- package/dist/shared/{bank.BUgy8rcb.d.mts → bank.CjPpPiJF.d.mts} +1 -1
- package/dist/shared/{bank.CVPVkitI.d.cts → bank.CwB3cDIG.d.cts} +1 -1
- package/dist/shared/{bank.C3FUz-p6.cjs → bank.DNFep60v.cjs} +1 -1
- package/dist/shared/{bank.2M66Yx-J.d.ts → bank.DflRiCrT.d.ts} +1 -1
- package/dist/shared/{bank.1DaJXkX5.cjs → bank.xrNekjj9.cjs} +2 -0
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +9 -5
- package/dist/types.d.mts +9 -5
- package/dist/types.d.ts +9 -5
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRequest } from '../shared/bank.
|
|
1
|
+
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRequest } from '../shared/bank.C0JeMUxQ.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 { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRequest } from '../shared/bank.
|
|
1
|
+
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRequest } from '../shared/bank.C0JeMUxQ.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 { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRequest } from '../shared/bank.
|
|
1
|
+
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRequest } from '../shared/bank.C0JeMUxQ.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const ott_zod = require('../shared/bank.
|
|
4
|
+
const ott_zod = require('../shared/bank.xrNekjj9.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.DNFep60v.cjs');
|
|
15
15
|
require('drizzle-orm/zod');
|
|
16
16
|
require('drizzle-orm/sqlite-core');
|
|
17
17
|
|
package/dist/export/worker.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, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
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, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.C0JeMUxQ.cjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.CwB3cDIG.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';
|
|
@@ -2817,9 +2817,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2817
2817
|
limit: z.ZodNumber;
|
|
2818
2818
|
sort: z.ZodObject<{
|
|
2819
2819
|
column: z.ZodEnum<{
|
|
2820
|
-
amount: "amount";
|
|
2821
2820
|
createdAt: "createdAt";
|
|
2822
2821
|
updatedAt: "updatedAt";
|
|
2822
|
+
amount: "amount";
|
|
2823
2823
|
}>;
|
|
2824
2824
|
direction: z.ZodEnum<{
|
|
2825
2825
|
asc: "asc";
|
|
@@ -3585,9 +3585,9 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3585
3585
|
limit: z.ZodNumber;
|
|
3586
3586
|
sort: z.ZodObject<{
|
|
3587
3587
|
column: z.ZodEnum<{
|
|
3588
|
-
amount: "amount";
|
|
3589
3588
|
createdAt: "createdAt";
|
|
3590
3589
|
updatedAt: "updatedAt";
|
|
3590
|
+
amount: "amount";
|
|
3591
3591
|
}>;
|
|
3592
3592
|
direction: z.ZodEnum<{
|
|
3593
3593
|
asc: "asc";
|
|
@@ -3596,16 +3596,16 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3596
3596
|
}, z.core.$strip>;
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
|
-
OPENED: "OPENED";
|
|
3600
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
+
OPENED: "OPENED";
|
|
3601
3601
|
COMPLETED: "COMPLETED";
|
|
3602
3602
|
BOOKED: "BOOKED";
|
|
3603
3603
|
SETTLED: "SETTLED";
|
|
3604
3604
|
REJECTED: "REJECTED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
|
-
OPENED: "OPENED";
|
|
3608
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
+
OPENED: "OPENED";
|
|
3609
3609
|
COMPLETED: "COMPLETED";
|
|
3610
3610
|
BOOKED: "BOOKED";
|
|
3611
3611
|
SETTLED: "SETTLED";
|
package/dist/export/worker.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, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
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, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.C0JeMUxQ.mjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.CjPpPiJF.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';
|
|
@@ -2817,9 +2817,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2817
2817
|
limit: z.ZodNumber;
|
|
2818
2818
|
sort: z.ZodObject<{
|
|
2819
2819
|
column: z.ZodEnum<{
|
|
2820
|
-
amount: "amount";
|
|
2821
2820
|
createdAt: "createdAt";
|
|
2822
2821
|
updatedAt: "updatedAt";
|
|
2822
|
+
amount: "amount";
|
|
2823
2823
|
}>;
|
|
2824
2824
|
direction: z.ZodEnum<{
|
|
2825
2825
|
asc: "asc";
|
|
@@ -3585,9 +3585,9 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3585
3585
|
limit: z.ZodNumber;
|
|
3586
3586
|
sort: z.ZodObject<{
|
|
3587
3587
|
column: z.ZodEnum<{
|
|
3588
|
-
amount: "amount";
|
|
3589
3588
|
createdAt: "createdAt";
|
|
3590
3589
|
updatedAt: "updatedAt";
|
|
3590
|
+
amount: "amount";
|
|
3591
3591
|
}>;
|
|
3592
3592
|
direction: z.ZodEnum<{
|
|
3593
3593
|
asc: "asc";
|
|
@@ -3596,16 +3596,16 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3596
3596
|
}, z.core.$strip>;
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
|
-
OPENED: "OPENED";
|
|
3600
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
+
OPENED: "OPENED";
|
|
3601
3601
|
COMPLETED: "COMPLETED";
|
|
3602
3602
|
BOOKED: "BOOKED";
|
|
3603
3603
|
SETTLED: "SETTLED";
|
|
3604
3604
|
REJECTED: "REJECTED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
|
-
OPENED: "OPENED";
|
|
3608
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
+
OPENED: "OPENED";
|
|
3609
3609
|
COMPLETED: "COMPLETED";
|
|
3610
3610
|
BOOKED: "BOOKED";
|
|
3611
3611
|
SETTLED: "SETTLED";
|
package/dist/export/worker.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, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
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, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.C0JeMUxQ.js';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.DflRiCrT.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';
|
|
@@ -2817,9 +2817,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2817
2817
|
limit: z.ZodNumber;
|
|
2818
2818
|
sort: z.ZodObject<{
|
|
2819
2819
|
column: z.ZodEnum<{
|
|
2820
|
-
amount: "amount";
|
|
2821
2820
|
createdAt: "createdAt";
|
|
2822
2821
|
updatedAt: "updatedAt";
|
|
2822
|
+
amount: "amount";
|
|
2823
2823
|
}>;
|
|
2824
2824
|
direction: z.ZodEnum<{
|
|
2825
2825
|
asc: "asc";
|
|
@@ -3585,9 +3585,9 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3585
3585
|
limit: z.ZodNumber;
|
|
3586
3586
|
sort: z.ZodObject<{
|
|
3587
3587
|
column: z.ZodEnum<{
|
|
3588
|
-
amount: "amount";
|
|
3589
3588
|
createdAt: "createdAt";
|
|
3590
3589
|
updatedAt: "updatedAt";
|
|
3590
|
+
amount: "amount";
|
|
3591
3591
|
}>;
|
|
3592
3592
|
direction: z.ZodEnum<{
|
|
3593
3593
|
asc: "asc";
|
|
@@ -3596,16 +3596,16 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3596
3596
|
}, z.core.$strip>;
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
|
-
OPENED: "OPENED";
|
|
3600
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
+
OPENED: "OPENED";
|
|
3601
3601
|
COMPLETED: "COMPLETED";
|
|
3602
3602
|
BOOKED: "BOOKED";
|
|
3603
3603
|
SETTLED: "SETTLED";
|
|
3604
3604
|
REJECTED: "REJECTED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
|
-
OPENED: "OPENED";
|
|
3608
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
+
OPENED: "OPENED";
|
|
3609
3609
|
COMPLETED: "COMPLETED";
|
|
3610
3610
|
BOOKED: "BOOKED";
|
|
3611
3611
|
SETTLED: "SETTLED";
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bankAccountMetadataSchema, structuredAddressSchema, uuidv4, first, buildMultiFilterConditions as buildMultiFilterConditions$1, workflowInstanceStatusSchema, develitWorker, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
|
-
import { B as tables, g as accountInsertSchema, G as relations, H as initiateConnector, o as isProcessedStatus, p as isTerminalStatus, J as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.
|
|
2
|
+
import { B as tables, g as accountInsertSchema, G as relations, H as initiateConnector, o as isProcessedStatus, p as isTerminalStatus, J as getNonTerminalPaymentRequestsQuery, x as toIncomingPayment, j as assignAccount, u as toBatchedPayment, y as toPaymentRequestInsert, a as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.BxZARqNE.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.BScD3GXI.mjs';
|
|
13
13
|
import 'drizzle-orm/zod';
|
|
14
14
|
import 'drizzle-orm/sqlite-core';
|
|
15
15
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const ott_zod = require('../shared/bank.
|
|
4
|
+
const ott_zod = require('../shared/bank.xrNekjj9.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.DNFep60v.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 { B as tables, G as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, H as initiateConnector, m as isPaymentCompleted } from '../shared/bank.
|
|
2
|
+
import { B as tables, G as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, H as initiateConnector, m as isPaymentCompleted } from '../shared/bank.BxZARqNE.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.BScD3GXI.mjs';
|
|
6
6
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
7
7
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
8
8
|
import { drizzle } from 'drizzle-orm/d1';
|
package/dist/export/wrangler.cjs
CHANGED
|
@@ -3,16 +3,15 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
|
|
5
5
|
function defineBankServiceWrangler(config) {
|
|
6
|
-
const { project, name, d1,
|
|
6
|
+
const { project, name, vars, d1, triggers, kv, queues } = config;
|
|
7
7
|
const base = {
|
|
8
8
|
...backendSdk.composeWranglerBase({
|
|
9
9
|
project,
|
|
10
10
|
name
|
|
11
11
|
}),
|
|
12
12
|
vars: {
|
|
13
|
-
|
|
14
|
-
...
|
|
15
|
-
ENVIRONMENT: "localhost"
|
|
13
|
+
ENVIRONMENT: "localhost",
|
|
14
|
+
...vars
|
|
16
15
|
},
|
|
17
16
|
services: [
|
|
18
17
|
{
|
|
@@ -20,11 +19,11 @@ function defineBankServiceWrangler(config) {
|
|
|
20
19
|
service: `${project}-secrets-store`
|
|
21
20
|
}
|
|
22
21
|
],
|
|
23
|
-
triggers
|
|
22
|
+
triggers,
|
|
24
23
|
kv_namespaces: [
|
|
25
24
|
{
|
|
26
25
|
binding: "BANK_KV",
|
|
27
|
-
id:
|
|
26
|
+
id: kv.id
|
|
28
27
|
}
|
|
29
28
|
],
|
|
30
29
|
d1_databases: [
|
|
@@ -60,29 +59,16 @@ function defineBankServiceWrangler(config) {
|
|
|
60
59
|
queues: {
|
|
61
60
|
producers: [
|
|
62
61
|
{
|
|
63
|
-
binding:
|
|
64
|
-
queue: `${project}-${
|
|
62
|
+
binding: queues.producers.bus.binding,
|
|
63
|
+
queue: `${project}-${queues.producers.bus.queue}`
|
|
65
64
|
},
|
|
66
65
|
{
|
|
67
66
|
binding: "NOTIFICATIONS_QUEUE",
|
|
68
67
|
queue: `${project}-notifications`
|
|
69
68
|
}
|
|
70
69
|
]
|
|
71
|
-
}
|
|
72
|
-
env: {}
|
|
70
|
+
}
|
|
73
71
|
};
|
|
74
|
-
for (const [envName, envCfg] of Object.entries(envs).filter(
|
|
75
|
-
([key]) => key !== "local"
|
|
76
|
-
)) {
|
|
77
|
-
base.env[envName] = {
|
|
78
|
-
vars: {
|
|
79
|
-
...envCfg.customVars,
|
|
80
|
-
...envCfg.vars,
|
|
81
|
-
ENVIRONMENT: envName
|
|
82
|
-
},
|
|
83
|
-
triggers: envs.local.triggers
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
72
|
return base;
|
|
87
73
|
}
|
|
88
74
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BankServiceWranglerConfig } from '../shared/bank.
|
|
1
|
+
import { B as BankServiceWranglerConfig } from '../shared/bank.BydmpvCs.cjs';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
4
|
vars: {
|
|
5
|
-
|
|
5
|
+
VERSION: string;
|
|
6
6
|
ERSTE_AUTH_URI: "https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp";
|
|
7
7
|
ERSTE_PAYMENTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments";
|
|
8
8
|
ERSTE_ACCOUNTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts";
|
|
@@ -15,6 +15,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
15
15
|
DBUCS_APPLICATION_CODE: string;
|
|
16
16
|
DBUCS_TX_AUTH_URI: string;
|
|
17
17
|
REDIRECT_URI: string;
|
|
18
|
+
ENVIRONMENT: string;
|
|
18
19
|
};
|
|
19
20
|
services: {
|
|
20
21
|
binding: string;
|
|
@@ -57,7 +58,6 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
57
58
|
queue: string;
|
|
58
59
|
}[];
|
|
59
60
|
};
|
|
60
|
-
env: Record<string, unknown>;
|
|
61
61
|
$schema: string;
|
|
62
62
|
name: string;
|
|
63
63
|
main: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BankServiceWranglerConfig } from '../shared/bank.
|
|
1
|
+
import { B as BankServiceWranglerConfig } from '../shared/bank.BydmpvCs.mjs';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
4
|
vars: {
|
|
5
|
-
|
|
5
|
+
VERSION: string;
|
|
6
6
|
ERSTE_AUTH_URI: "https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp";
|
|
7
7
|
ERSTE_PAYMENTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments";
|
|
8
8
|
ERSTE_ACCOUNTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts";
|
|
@@ -15,6 +15,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
15
15
|
DBUCS_APPLICATION_CODE: string;
|
|
16
16
|
DBUCS_TX_AUTH_URI: string;
|
|
17
17
|
REDIRECT_URI: string;
|
|
18
|
+
ENVIRONMENT: string;
|
|
18
19
|
};
|
|
19
20
|
services: {
|
|
20
21
|
binding: string;
|
|
@@ -57,7 +58,6 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
57
58
|
queue: string;
|
|
58
59
|
}[];
|
|
59
60
|
};
|
|
60
|
-
env: Record<string, unknown>;
|
|
61
61
|
$schema: string;
|
|
62
62
|
name: string;
|
|
63
63
|
main: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { B as BankServiceWranglerConfig } from '../shared/bank.
|
|
1
|
+
import { B as BankServiceWranglerConfig } from '../shared/bank.BydmpvCs.js';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
4
|
vars: {
|
|
5
|
-
|
|
5
|
+
VERSION: string;
|
|
6
6
|
ERSTE_AUTH_URI: "https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp";
|
|
7
7
|
ERSTE_PAYMENTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments";
|
|
8
8
|
ERSTE_ACCOUNTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts";
|
|
@@ -15,6 +15,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
15
15
|
DBUCS_APPLICATION_CODE: string;
|
|
16
16
|
DBUCS_TX_AUTH_URI: string;
|
|
17
17
|
REDIRECT_URI: string;
|
|
18
|
+
ENVIRONMENT: string;
|
|
18
19
|
};
|
|
19
20
|
services: {
|
|
20
21
|
binding: string;
|
|
@@ -57,7 +58,6 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
57
58
|
queue: string;
|
|
58
59
|
}[];
|
|
59
60
|
};
|
|
60
|
-
env: Record<string, unknown>;
|
|
61
61
|
$schema: string;
|
|
62
62
|
name: string;
|
|
63
63
|
main: string;
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { composeWranglerBase } from '@develit-io/backend-sdk';
|
|
2
2
|
|
|
3
3
|
function defineBankServiceWrangler(config) {
|
|
4
|
-
const { project, name, d1,
|
|
4
|
+
const { project, name, vars, d1, triggers, kv, queues } = config;
|
|
5
5
|
const base = {
|
|
6
6
|
...composeWranglerBase({
|
|
7
7
|
project,
|
|
8
8
|
name
|
|
9
9
|
}),
|
|
10
10
|
vars: {
|
|
11
|
-
|
|
12
|
-
...
|
|
13
|
-
ENVIRONMENT: "localhost"
|
|
11
|
+
ENVIRONMENT: "localhost",
|
|
12
|
+
...vars
|
|
14
13
|
},
|
|
15
14
|
services: [
|
|
16
15
|
{
|
|
@@ -18,11 +17,11 @@ function defineBankServiceWrangler(config) {
|
|
|
18
17
|
service: `${project}-secrets-store`
|
|
19
18
|
}
|
|
20
19
|
],
|
|
21
|
-
triggers
|
|
20
|
+
triggers,
|
|
22
21
|
kv_namespaces: [
|
|
23
22
|
{
|
|
24
23
|
binding: "BANK_KV",
|
|
25
|
-
id:
|
|
24
|
+
id: kv.id
|
|
26
25
|
}
|
|
27
26
|
],
|
|
28
27
|
d1_databases: [
|
|
@@ -58,29 +57,16 @@ function defineBankServiceWrangler(config) {
|
|
|
58
57
|
queues: {
|
|
59
58
|
producers: [
|
|
60
59
|
{
|
|
61
|
-
binding:
|
|
62
|
-
queue: `${project}-${
|
|
60
|
+
binding: queues.producers.bus.binding,
|
|
61
|
+
queue: `${project}-${queues.producers.bus.queue}`
|
|
63
62
|
},
|
|
64
63
|
{
|
|
65
64
|
binding: "NOTIFICATIONS_QUEUE",
|
|
66
65
|
queue: `${project}-notifications`
|
|
67
66
|
}
|
|
68
67
|
]
|
|
69
|
-
}
|
|
70
|
-
env: {}
|
|
68
|
+
}
|
|
71
69
|
};
|
|
72
|
-
for (const [envName, envCfg] of Object.entries(envs).filter(
|
|
73
|
-
([key]) => key !== "local"
|
|
74
|
-
)) {
|
|
75
|
-
base.env[envName] = {
|
|
76
|
-
vars: {
|
|
77
|
-
...envCfg.customVars,
|
|
78
|
-
...envCfg.vars,
|
|
79
|
-
ENVIRONMENT: envName
|
|
80
|
-
},
|
|
81
|
-
triggers: envs.local.triggers
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
70
|
return base;
|
|
85
71
|
}
|
|
86
72
|
|
|
@@ -1406,6 +1406,7 @@ const calculateCzechIban = (accountNumber, bankCode) => {
|
|
|
1406
1406
|
|
|
1407
1407
|
const dbuAccountConfigSchema = z.object({
|
|
1408
1408
|
with4EyeApproval: z.enum(["Y", "N"]).default("Y"),
|
|
1409
|
+
realizeImmediate: z.enum(["Y", "N"]).default("Y"),
|
|
1409
1410
|
channelCode: z.string().default("WWW"),
|
|
1410
1411
|
actionTypeCode: z.string().default("TRANSFER"),
|
|
1411
1412
|
transactionTypeCode: z.string().default("TRANSFER"),
|
|
@@ -1785,6 +1786,7 @@ class DbuConnector extends IBankConnector {
|
|
|
1785
1786
|
constSymbol: payment.ks,
|
|
1786
1787
|
uniqueExternalId: payment.id,
|
|
1787
1788
|
with4EyeApproval: cfg.with4EyeApproval,
|
|
1789
|
+
realizeImmediate: cfg.realizeImmediate,
|
|
1788
1790
|
applicationCode: this.applicationCode
|
|
1789
1791
|
};
|
|
1790
1792
|
const response = await this.makeRequest(
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
interface
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
max_batch_timeout?: number;
|
|
5
|
-
};
|
|
6
|
-
triggers: {
|
|
7
|
-
crons: string[];
|
|
8
|
-
};
|
|
9
|
-
kv: {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
queues: {
|
|
13
|
-
producers: {
|
|
14
|
-
bus: {
|
|
15
|
-
binding: string;
|
|
16
|
-
queue: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
interface BankServiceWranglerConfig {
|
|
2
|
+
project: string;
|
|
3
|
+
name: string;
|
|
20
4
|
vars: {
|
|
5
|
+
VERSION: string;
|
|
21
6
|
ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
|
|
22
7
|
ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
|
|
23
8
|
ERSTE_ACCOUNTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts';
|
|
@@ -30,21 +15,27 @@ interface BankServiceEnvironmentConfig {
|
|
|
30
15
|
DBUCS_APPLICATION_CODE: string;
|
|
31
16
|
DBUCS_TX_AUTH_URI: string;
|
|
32
17
|
REDIRECT_URI: string;
|
|
18
|
+
[key: string]: string | boolean;
|
|
19
|
+
};
|
|
20
|
+
triggers: {
|
|
21
|
+
crons: string[];
|
|
33
22
|
};
|
|
34
|
-
customVars?: Record<string, string>;
|
|
35
|
-
}
|
|
36
|
-
interface BankServiceWranglerConfig {
|
|
37
|
-
project: string;
|
|
38
|
-
name: string;
|
|
39
23
|
d1: {
|
|
40
24
|
id: string;
|
|
41
25
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
kv: {
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
queues: {
|
|
30
|
+
producers: {
|
|
31
|
+
bus: {
|
|
32
|
+
binding: string;
|
|
33
|
+
queue: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
45
36
|
};
|
|
46
37
|
}
|
|
47
38
|
interface BankServiceEnv extends BankEnv {
|
|
48
39
|
}
|
|
49
40
|
|
|
50
|
-
export type { BankServiceWranglerConfig as B, BankServiceEnv as a
|
|
41
|
+
export type { BankServiceWranglerConfig as B, BankServiceEnv as a };
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
interface
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
max_batch_timeout?: number;
|
|
5
|
-
};
|
|
6
|
-
triggers: {
|
|
7
|
-
crons: string[];
|
|
8
|
-
};
|
|
9
|
-
kv: {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
queues: {
|
|
13
|
-
producers: {
|
|
14
|
-
bus: {
|
|
15
|
-
binding: string;
|
|
16
|
-
queue: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
interface BankServiceWranglerConfig {
|
|
2
|
+
project: string;
|
|
3
|
+
name: string;
|
|
20
4
|
vars: {
|
|
5
|
+
VERSION: string;
|
|
21
6
|
ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
|
|
22
7
|
ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
|
|
23
8
|
ERSTE_ACCOUNTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts';
|
|
@@ -30,21 +15,27 @@ interface BankServiceEnvironmentConfig {
|
|
|
30
15
|
DBUCS_APPLICATION_CODE: string;
|
|
31
16
|
DBUCS_TX_AUTH_URI: string;
|
|
32
17
|
REDIRECT_URI: string;
|
|
18
|
+
[key: string]: string | boolean;
|
|
19
|
+
};
|
|
20
|
+
triggers: {
|
|
21
|
+
crons: string[];
|
|
33
22
|
};
|
|
34
|
-
customVars?: Record<string, string>;
|
|
35
|
-
}
|
|
36
|
-
interface BankServiceWranglerConfig {
|
|
37
|
-
project: string;
|
|
38
|
-
name: string;
|
|
39
23
|
d1: {
|
|
40
24
|
id: string;
|
|
41
25
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
kv: {
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
queues: {
|
|
30
|
+
producers: {
|
|
31
|
+
bus: {
|
|
32
|
+
binding: string;
|
|
33
|
+
queue: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
45
36
|
};
|
|
46
37
|
}
|
|
47
38
|
interface BankServiceEnv extends BankEnv {
|
|
48
39
|
}
|
|
49
40
|
|
|
50
|
-
export type { BankServiceWranglerConfig as B, BankServiceEnv as a
|
|
41
|
+
export type { BankServiceWranglerConfig as B, BankServiceEnv as a };
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
interface
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
max_batch_timeout?: number;
|
|
5
|
-
};
|
|
6
|
-
triggers: {
|
|
7
|
-
crons: string[];
|
|
8
|
-
};
|
|
9
|
-
kv: {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
queues: {
|
|
13
|
-
producers: {
|
|
14
|
-
bus: {
|
|
15
|
-
binding: string;
|
|
16
|
-
queue: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
interface BankServiceWranglerConfig {
|
|
2
|
+
project: string;
|
|
3
|
+
name: string;
|
|
20
4
|
vars: {
|
|
5
|
+
VERSION: string;
|
|
21
6
|
ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
|
|
22
7
|
ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
|
|
23
8
|
ERSTE_ACCOUNTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts';
|
|
@@ -30,21 +15,27 @@ interface BankServiceEnvironmentConfig {
|
|
|
30
15
|
DBUCS_APPLICATION_CODE: string;
|
|
31
16
|
DBUCS_TX_AUTH_URI: string;
|
|
32
17
|
REDIRECT_URI: string;
|
|
18
|
+
[key: string]: string | boolean;
|
|
19
|
+
};
|
|
20
|
+
triggers: {
|
|
21
|
+
crons: string[];
|
|
33
22
|
};
|
|
34
|
-
customVars?: Record<string, string>;
|
|
35
|
-
}
|
|
36
|
-
interface BankServiceWranglerConfig {
|
|
37
|
-
project: string;
|
|
38
|
-
name: string;
|
|
39
23
|
d1: {
|
|
40
24
|
id: string;
|
|
41
25
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
26
|
+
kv: {
|
|
27
|
+
id: string;
|
|
28
|
+
};
|
|
29
|
+
queues: {
|
|
30
|
+
producers: {
|
|
31
|
+
bus: {
|
|
32
|
+
binding: string;
|
|
33
|
+
queue: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
45
36
|
};
|
|
46
37
|
}
|
|
47
38
|
interface BankServiceEnv extends BankEnv {
|
|
48
39
|
}
|
|
49
40
|
|
|
50
|
-
export type { BankServiceWranglerConfig as B, BankServiceEnv as a
|
|
41
|
+
export type { BankServiceWranglerConfig as B, BankServiceEnv as a };
|
|
@@ -2795,7 +2795,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2795
2795
|
name: string;
|
|
2796
2796
|
tableName: "payment_request";
|
|
2797
2797
|
dataType: "string enum";
|
|
2798
|
-
data: "
|
|
2798
|
+
data: "AUTHORIZED" | "OPENED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
2799
2799
|
driverParam: string;
|
|
2800
2800
|
notNull: true;
|
|
2801
2801
|
hasDefault: false;
|
|
@@ -2795,7 +2795,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2795
2795
|
name: string;
|
|
2796
2796
|
tableName: "payment_request";
|
|
2797
2797
|
dataType: "string enum";
|
|
2798
|
-
data: "
|
|
2798
|
+
data: "AUTHORIZED" | "OPENED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
2799
2799
|
driverParam: string;
|
|
2800
2800
|
notNull: true;
|
|
2801
2801
|
hasDefault: false;
|
|
@@ -2795,7 +2795,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2795
2795
|
name: string;
|
|
2796
2796
|
tableName: "payment_request";
|
|
2797
2797
|
dataType: "string enum";
|
|
2798
|
-
data: "
|
|
2798
|
+
data: "AUTHORIZED" | "OPENED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
2799
2799
|
driverParam: string;
|
|
2800
2800
|
notNull: true;
|
|
2801
2801
|
hasDefault: false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.C0JeMUxQ.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, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.C0JeMUxQ.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const ott_zod = require('./bank.
|
|
4
|
+
const ott_zod = require('./bank.xrNekjj9.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, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, Q as BankCode, a0 as CountryCode, P as PaymentRequestSelectType } from './bank.C0JeMUxQ.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1408,6 +1408,7 @@ const calculateCzechIban = (accountNumber, bankCode) => {
|
|
|
1408
1408
|
|
|
1409
1409
|
const dbuAccountConfigSchema = zod.z.object({
|
|
1410
1410
|
with4EyeApproval: zod.z.enum(["Y", "N"]).default("Y"),
|
|
1411
|
+
realizeImmediate: zod.z.enum(["Y", "N"]).default("Y"),
|
|
1411
1412
|
channelCode: zod.z.string().default("WWW"),
|
|
1412
1413
|
actionTypeCode: zod.z.string().default("TRANSFER"),
|
|
1413
1414
|
transactionTypeCode: zod.z.string().default("TRANSFER"),
|
|
@@ -1787,6 +1788,7 @@ class DbuConnector extends IBankConnector {
|
|
|
1787
1788
|
constSymbol: payment.ks,
|
|
1788
1789
|
uniqueExternalId: payment.id,
|
|
1789
1790
|
with4EyeApproval: cfg.with4EyeApproval,
|
|
1791
|
+
realizeImmediate: cfg.realizeImmediate,
|
|
1790
1792
|
applicationCode: this.applicationCode
|
|
1791
1793
|
};
|
|
1792
1794
|
const response = await this.makeRequest(
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const ott_zod = require('./shared/bank.
|
|
3
|
+
const ott_zod = require('./shared/bank.xrNekjj9.cjs');
|
|
4
4
|
const database_schema = require('./shared/bank.9Yw4KHyl.cjs');
|
|
5
5
|
const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const generalCodes = require('@develit-io/general-codes');
|
package/dist/types.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
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 BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az 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, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.C0JeMUxQ.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 BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az as isTerminalStatus } from './shared/bank.C0JeMUxQ.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CwB3cDIG.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.CwB3cDIG.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv,
|
|
6
|
+
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.BydmpvCs.cjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
8
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
|
@@ -306,6 +306,10 @@ declare const dbuAccountConfigSchema: z.ZodObject<{
|
|
|
306
306
|
Y: "Y";
|
|
307
307
|
N: "N";
|
|
308
308
|
}>>;
|
|
309
|
+
realizeImmediate: z.ZodDefault<z.ZodEnum<{
|
|
310
|
+
Y: "Y";
|
|
311
|
+
N: "N";
|
|
312
|
+
}>>;
|
|
309
313
|
channelCode: z.ZodDefault<z.ZodString>;
|
|
310
314
|
actionTypeCode: z.ZodDefault<z.ZodString>;
|
|
311
315
|
transactionTypeCode: z.ZodDefault<z.ZodString>;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
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 BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az 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, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.C0JeMUxQ.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 BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az as isTerminalStatus } from './shared/bank.C0JeMUxQ.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CjPpPiJF.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.CjPpPiJF.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv,
|
|
6
|
+
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.BydmpvCs.mjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
8
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
|
@@ -306,6 +306,10 @@ declare const dbuAccountConfigSchema: z.ZodObject<{
|
|
|
306
306
|
Y: "Y";
|
|
307
307
|
N: "N";
|
|
308
308
|
}>>;
|
|
309
|
+
realizeImmediate: z.ZodDefault<z.ZodEnum<{
|
|
310
|
+
Y: "Y";
|
|
311
|
+
N: "N";
|
|
312
|
+
}>>;
|
|
309
313
|
channelCode: z.ZodDefault<z.ZodString>;
|
|
310
314
|
actionTypeCode: z.ZodDefault<z.ZodString>;
|
|
311
315
|
transactionTypeCode: z.ZodDefault<z.ZodString>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
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 BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az 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, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.C0JeMUxQ.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 BATCH_MODES, N as BATCH_STATUES, N as BATCH_STATUSES, O as BankAccountWithLastSync, Q as BankCode, R as BatchInsertType, S as BatchLifecycle, T as BatchMode, U as BatchPayment, B as BatchSelectType, V as BatchStatus, W as CHARGE_BEARERS, X as CONNECTOR_KEYS, Y as COUNTRY_CODES, Z as CREDENTIALS_TYPES, _ as ChargeBearer, $ as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a0 as CountryCode, a1 as CredentialsType, e as CurrencyCode, a2 as INSTRUCTION_PRIORITIES, a3 as InstructionPriority, L as LastSyncMetadata, a4 as PAYMENT_DIRECTIONS, a5 as PAYMENT_REQUEST_STATUSES, a6 as PAYMENT_STATUSES, a7 as PAYMENT_TYPES, a8 as PaymentDirection, a9 as PaymentFailedInsertType, aa as PaymentInsertType, ab as PaymentLifecycle, ac as PaymentPreparedInsertType, ad as PaymentStatus, ae as ProcessingBatch, af as ReadyToSignBatch, ag as ResolvedCredentials, ah as TOKEN_TYPES, ai as TokenType, aj as accountCredentialsInsertSchema, ak as accountCredentialsSelectSchema, al as accountCredentialsUpdateSchema, am as accountInsertSchema, an as accountSelectSchema, ao as accountUpdateSchema, ap as hasPaymentAccountAssigned, aq as isBatchAuthorized, ar as isBatchCompleted, as as isBatchFailed, at as isBatchInitiated, au as isBatchProcessing, av as isBatchReadyToSign, aw as isPaymentCompleted, ax as isPendingStatus, ay as isProcessedStatus, az as isTerminalStatus } from './shared/bank.C0JeMUxQ.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DflRiCrT.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.DflRiCrT.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv,
|
|
6
|
+
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.BydmpvCs.js';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
8
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
|
@@ -306,6 +306,10 @@ declare const dbuAccountConfigSchema: z.ZodObject<{
|
|
|
306
306
|
Y: "Y";
|
|
307
307
|
N: "N";
|
|
308
308
|
}>>;
|
|
309
|
+
realizeImmediate: z.ZodDefault<z.ZodEnum<{
|
|
310
|
+
Y: "Y";
|
|
311
|
+
N: "N";
|
|
312
|
+
}>>;
|
|
309
313
|
channelCode: z.ZodDefault<z.ZodString>;
|
|
310
314
|
actionTypeCode: z.ZodDefault<z.ZodString>;
|
|
311
315
|
transactionTypeCode: z.ZodDefault<z.ZodString>;
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { 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 { 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.BxZARqNE.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';
|