@develit-services/bank 2.3.0 → 2.4.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.cjs +1 -1
- 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/database/schema.mjs +1 -1
- package/dist/export/worker.cjs +2 -2
- package/dist/export/worker.d.cts +4 -4
- package/dist/export/worker.d.mts +4 -4
- package/dist/export/worker.d.ts +4 -4
- 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 +4 -1
- package/dist/export/wrangler.d.cts +10 -2
- package/dist/export/wrangler.d.mts +10 -2
- package/dist/export/wrangler.d.ts +10 -2
- package/dist/export/wrangler.mjs +4 -1
- package/dist/shared/{bank.DICdNw3T.cjs → bank.B0I6H6AT.cjs} +1 -1
- package/dist/shared/{bank.CxAHQOwW.d.cts → bank.BI2OxQsM.d.mts} +1 -1
- package/dist/shared/{bank.CC4p6Jf-.d.ts → bank.BJ_vbyUT.d.cts} +2 -2
- package/dist/shared/{bank.CC4p6Jf-.d.cts → bank.BJ_vbyUT.d.mts} +2 -2
- package/dist/shared/{bank.CC4p6Jf-.d.mts → bank.BJ_vbyUT.d.ts} +2 -2
- package/dist/shared/{bank.C5NCnZWS.d.ts → bank.Bs0isbAY.d.ts} +1 -1
- package/dist/shared/{bank.Dl3mNNS2.d.mts → bank.Ca0iWjhb.d.cts} +1 -1
- package/dist/shared/{bank.gVOunsjq.mjs → bank.IlVbIEuM.mjs} +34 -14
- package/dist/shared/{bank.avgw-IRO.cjs → bank.c1sHv5v_.cjs} +34 -14
- package/dist/shared/{bank.BSiA1m0B.mjs → bank.fZkUcrn9.mjs} +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/database/schema.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRelations, aG as paymentRequest, aH as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRelations, aG as paymentRequest, aH as paymentRequestRelations } from '../shared/bank.BJ_vbyUT.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRelations, aG as paymentRequest, aH as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRelations, aG as paymentRequest, aH as paymentRequestRelations } from '../shared/bank.BJ_vbyUT.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRelations, aG as paymentRequest, aH as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { aA as account, aB as accountCredentials, aC as batch, aD as ott, aE as payment, aF as paymentRelations, aG as paymentRequest, aH as paymentRequestRelations } from '../shared/bank.BJ_vbyUT.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Y as account, Z as accountCredentials, _ as batch, $ as ott, a0 as payment, a1 as paymentRelations, a2 as paymentRequest, a3 as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { Y as account, Z as accountCredentials, _ as batch, $ as ott, a0 as payment, a1 as paymentRelations, a2 as paymentRequest, a3 as paymentRequestRelations } from '../shared/bank.IlVbIEuM.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import 'date-fns';
|
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 database_schema = require('../shared/bank.
|
|
4
|
+
const database_schema = require('../shared/bank.c1sHv5v_.cjs');
|
|
5
5
|
const drizzleOrm = require('drizzle-orm');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
@@ -10,7 +10,7 @@ const zod = require('zod');
|
|
|
10
10
|
const generalCodes = require('@develit-io/general-codes');
|
|
11
11
|
require('date-fns');
|
|
12
12
|
require('node:crypto');
|
|
13
|
-
const credentialsResolver = require('../shared/bank.
|
|
13
|
+
const credentialsResolver = require('../shared/bank.B0I6H6AT.cjs');
|
|
14
14
|
require('drizzle-orm/sqlite-core');
|
|
15
15
|
require('drizzle-orm/relations');
|
|
16
16
|
require('drizzle-zod');
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, 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.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, 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.BJ_vbyUT.cjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.Ca0iWjhb.cjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2950,8 +2950,8 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
2951
|
BOOKED: "BOOKED";
|
|
2952
2952
|
REJECTED: "REJECTED";
|
|
2953
|
-
PROCESSING: "PROCESSING";
|
|
2954
2953
|
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
2955
|
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
@@ -2959,8 +2959,8 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
2960
|
BOOKED: "BOOKED";
|
|
2961
2961
|
REJECTED: "REJECTED";
|
|
2962
|
-
PROCESSING: "PROCESSING";
|
|
2963
2962
|
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
2964
|
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, 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.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, 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.BJ_vbyUT.mjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BI2OxQsM.mjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2950,8 +2950,8 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
2951
|
BOOKED: "BOOKED";
|
|
2952
2952
|
REJECTED: "REJECTED";
|
|
2953
|
-
PROCESSING: "PROCESSING";
|
|
2954
2953
|
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
2955
|
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
@@ -2959,8 +2959,8 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
2960
|
BOOKED: "BOOKED";
|
|
2961
2961
|
REJECTED: "REJECTED";
|
|
2962
|
-
PROCESSING: "PROCESSING";
|
|
2963
2962
|
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
2964
|
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, 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.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, 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.BJ_vbyUT.js';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.Bs0isbAY.js';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2950,8 +2950,8 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
2951
|
BOOKED: "BOOKED";
|
|
2952
2952
|
REJECTED: "REJECTED";
|
|
2953
|
-
PROCESSING: "PROCESSING";
|
|
2954
2953
|
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
2955
|
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
@@ -2959,8 +2959,8 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
2960
|
BOOKED: "BOOKED";
|
|
2961
2961
|
REJECTED: "REJECTED";
|
|
2962
|
-
PROCESSING: "PROCESSING";
|
|
2963
2962
|
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
2964
|
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
package/dist/export/worker.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 { V as tables, h as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, l as PAYMENT_TYPES, b as CONNECTOR_KEYS, a as BATCH_STATUSES, k as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, p as accountInsertSchema, j as PAYMENT_REQUEST_STATUSES, W as initiateConnector, x as isProcessedStatus, y as isTerminalStatus, X as getNonTerminalPaymentRequestsQuery, Q as toIncomingPayment, s as assignAccount, L as toBatchedPayment, R as toPaymentRequestInsert, f as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.
|
|
2
|
+
import { V as tables, h as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, l as PAYMENT_TYPES, b as CONNECTOR_KEYS, a as BATCH_STATUSES, k as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, p as accountInsertSchema, j as PAYMENT_REQUEST_STATUSES, W as initiateConnector, x as isProcessedStatus, y as isTerminalStatus, X as getNonTerminalPaymentRequestsQuery, Q as toIncomingPayment, s as assignAccount, L as toBatchedPayment, R as toPaymentRequestInsert, f as FinbricksClient, F as FINBRICKS_ENDPOINTS } from '../shared/bank.IlVbIEuM.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';
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
9
9
|
import 'date-fns';
|
|
10
10
|
import 'node:crypto';
|
|
11
|
-
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.
|
|
11
|
+
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.fZkUcrn9.mjs';
|
|
12
12
|
import 'drizzle-orm/sqlite-core';
|
|
13
13
|
import 'drizzle-orm/relations';
|
|
14
14
|
import 'drizzle-zod';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const database_schema = require('../shared/bank.
|
|
4
|
+
const database_schema = require('../shared/bank.c1sHv5v_.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.B0I6H6AT.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 { V as tables, N as toBatchedPaymentFromPaymentRequest, S as toPreparedPayment, W as initiateConnector, v as isPaymentCompleted } from '../shared/bank.
|
|
2
|
+
import { V as tables, N as toBatchedPaymentFromPaymentRequest, S as toPreparedPayment, W as initiateConnector, v as isPaymentCompleted } from '../shared/bank.IlVbIEuM.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.fZkUcrn9.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
|
@@ -39,7 +39,10 @@ function defineBankServiceWrangler(config) {
|
|
|
39
39
|
{
|
|
40
40
|
name: `${project}-bank-sync-account-payments`,
|
|
41
41
|
binding: "SYNC_ACCOUNT_PAYMENTS_WORKFLOW",
|
|
42
|
-
class_name: "BankSyncAccountPayments"
|
|
42
|
+
class_name: "BankSyncAccountPayments",
|
|
43
|
+
limits: {
|
|
44
|
+
steps: 25e3
|
|
45
|
+
}
|
|
43
46
|
},
|
|
44
47
|
{
|
|
45
48
|
name: `${project}-bank-process-batch`,
|
|
@@ -33,11 +33,19 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
33
33
|
database_id: string;
|
|
34
34
|
migrations_dir: string;
|
|
35
35
|
}[];
|
|
36
|
-
workflows: {
|
|
36
|
+
workflows: ({
|
|
37
37
|
name: string;
|
|
38
38
|
binding: string;
|
|
39
39
|
class_name: string;
|
|
40
|
-
|
|
40
|
+
limits: {
|
|
41
|
+
steps: number;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
name: string;
|
|
45
|
+
binding: string;
|
|
46
|
+
class_name: string;
|
|
47
|
+
limits?: undefined;
|
|
48
|
+
})[];
|
|
41
49
|
vpc_services: {
|
|
42
50
|
binding: string;
|
|
43
51
|
service_id: string;
|
|
@@ -33,11 +33,19 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
33
33
|
database_id: string;
|
|
34
34
|
migrations_dir: string;
|
|
35
35
|
}[];
|
|
36
|
-
workflows: {
|
|
36
|
+
workflows: ({
|
|
37
37
|
name: string;
|
|
38
38
|
binding: string;
|
|
39
39
|
class_name: string;
|
|
40
|
-
|
|
40
|
+
limits: {
|
|
41
|
+
steps: number;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
name: string;
|
|
45
|
+
binding: string;
|
|
46
|
+
class_name: string;
|
|
47
|
+
limits?: undefined;
|
|
48
|
+
})[];
|
|
41
49
|
vpc_services: {
|
|
42
50
|
binding: string;
|
|
43
51
|
service_id: string;
|
|
@@ -33,11 +33,19 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
33
33
|
database_id: string;
|
|
34
34
|
migrations_dir: string;
|
|
35
35
|
}[];
|
|
36
|
-
workflows: {
|
|
36
|
+
workflows: ({
|
|
37
37
|
name: string;
|
|
38
38
|
binding: string;
|
|
39
39
|
class_name: string;
|
|
40
|
-
|
|
40
|
+
limits: {
|
|
41
|
+
steps: number;
|
|
42
|
+
};
|
|
43
|
+
} | {
|
|
44
|
+
name: string;
|
|
45
|
+
binding: string;
|
|
46
|
+
class_name: string;
|
|
47
|
+
limits?: undefined;
|
|
48
|
+
})[];
|
|
41
49
|
vpc_services: {
|
|
42
50
|
binding: string;
|
|
43
51
|
service_id: string;
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -37,7 +37,10 @@ function defineBankServiceWrangler(config) {
|
|
|
37
37
|
{
|
|
38
38
|
name: `${project}-bank-sync-account-payments`,
|
|
39
39
|
binding: "SYNC_ACCOUNT_PAYMENTS_WORKFLOW",
|
|
40
|
-
class_name: "BankSyncAccountPayments"
|
|
40
|
+
class_name: "BankSyncAccountPayments",
|
|
41
|
+
limits: {
|
|
42
|
+
steps: 25e3
|
|
43
|
+
}
|
|
41
44
|
},
|
|
42
45
|
{
|
|
43
46
|
name: `${project}-bank-process-batch`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const database_schema = require('./bank.
|
|
4
|
+
const database_schema = require('./bank.c1sHv5v_.cjs');
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
require('date-fns');
|
|
7
7
|
require('jose');
|
|
@@ -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.BJ_vbyUT.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -3851,7 +3851,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3851
3851
|
tableName: "payment";
|
|
3852
3852
|
dataType: "string";
|
|
3853
3853
|
columnType: "SQLiteText";
|
|
3854
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3854
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3855
3855
|
driverParam: string;
|
|
3856
3856
|
notNull: true;
|
|
3857
3857
|
hasDefault: false;
|
|
@@ -3864,7 +3864,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3864
3864
|
generated: undefined;
|
|
3865
3865
|
}, {}, {
|
|
3866
3866
|
length: number | undefined;
|
|
3867
|
-
$type: "BOOKED" | "REJECTED" | "
|
|
3867
|
+
$type: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3868
3868
|
}>;
|
|
3869
3869
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3870
3870
|
name: "status_reason";
|
|
@@ -3851,7 +3851,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3851
3851
|
tableName: "payment";
|
|
3852
3852
|
dataType: "string";
|
|
3853
3853
|
columnType: "SQLiteText";
|
|
3854
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3854
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3855
3855
|
driverParam: string;
|
|
3856
3856
|
notNull: true;
|
|
3857
3857
|
hasDefault: false;
|
|
@@ -3864,7 +3864,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3864
3864
|
generated: undefined;
|
|
3865
3865
|
}, {}, {
|
|
3866
3866
|
length: number | undefined;
|
|
3867
|
-
$type: "BOOKED" | "REJECTED" | "
|
|
3867
|
+
$type: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3868
3868
|
}>;
|
|
3869
3869
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3870
3870
|
name: "status_reason";
|
|
@@ -3851,7 +3851,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3851
3851
|
tableName: "payment";
|
|
3852
3852
|
dataType: "string";
|
|
3853
3853
|
columnType: "SQLiteText";
|
|
3854
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3854
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3855
3855
|
driverParam: string;
|
|
3856
3856
|
notNull: true;
|
|
3857
3857
|
hasDefault: false;
|
|
@@ -3864,7 +3864,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3864
3864
|
generated: undefined;
|
|
3865
3865
|
}, {}, {
|
|
3866
3866
|
length: number | undefined;
|
|
3867
|
-
$type: "BOOKED" | "REJECTED" | "
|
|
3867
|
+
$type: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3868
3868
|
}>;
|
|
3869
3869
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3870
3870
|
name: "status_reason";
|
|
@@ -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.BJ_vbyUT.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, 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.BJ_vbyUT.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -477,6 +477,26 @@ const SEPA_COUNTRIES = /* @__PURE__ */ new Set([
|
|
|
477
477
|
"GI",
|
|
478
478
|
"XK"
|
|
479
479
|
]);
|
|
480
|
+
function parseOtherIdentification(value) {
|
|
481
|
+
if (!value) return {};
|
|
482
|
+
const [first, second] = value.split("/");
|
|
483
|
+
if (!first) return {};
|
|
484
|
+
const looksLikeIban = first.length >= 15 && /^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(first);
|
|
485
|
+
if (looksLikeIban) {
|
|
486
|
+
const iban = first;
|
|
487
|
+
const swiftBic = second || void 0;
|
|
488
|
+
if (iban.startsWith("CZ") && iban.length === 24) {
|
|
489
|
+
const bankCode = iban.slice(4, 8);
|
|
490
|
+
const number = iban.slice(14, 24).replace(/^0+/, "") || iban.slice(14, 24);
|
|
491
|
+
return { iban, swiftBic, bankCode, number };
|
|
492
|
+
}
|
|
493
|
+
return { iban, swiftBic };
|
|
494
|
+
}
|
|
495
|
+
return {
|
|
496
|
+
number: first,
|
|
497
|
+
bankCode: second || void 0
|
|
498
|
+
};
|
|
499
|
+
}
|
|
480
500
|
function detectPaymentType(tx, isIncoming) {
|
|
481
501
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
482
502
|
const otherParty = isIncoming ? related?.debtorAccount : related?.creditorAccount;
|
|
@@ -498,6 +518,12 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
498
518
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
499
519
|
const endToEndId = tx.entryDetails.transactionDetails?.references?.endToEndIdentification;
|
|
500
520
|
const symbolsRegex = /^\/?VS\d+/;
|
|
521
|
+
const debtorParsed = parseOtherIdentification(
|
|
522
|
+
related?.debtorAccount?.identification?.other?.identification
|
|
523
|
+
);
|
|
524
|
+
const creditorParsed = parseOtherIdentification(
|
|
525
|
+
related?.creditorAccount?.identification?.other?.identification
|
|
526
|
+
);
|
|
501
527
|
const base = {
|
|
502
528
|
id: uuidv4(),
|
|
503
529
|
correlationId: uuidv4(),
|
|
@@ -515,13 +541,10 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
515
541
|
),
|
|
516
542
|
creditor: {
|
|
517
543
|
holderName: related?.creditorAccount?.name || related?.creditor?.name || "Unknown",
|
|
518
|
-
iban: isIncoming ? account.iban || void 0 : related?.creditorAccount?.identification?.iban ||
|
|
519
|
-
number: isIncoming ? account.number || void 0 :
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
bankCode: isIncoming ? account.bankCode || void 0 : related?.creditorAccount?.identification?.other?.identification ? related.creditorAccount.identification.other.identification.split(
|
|
523
|
-
"/"
|
|
524
|
-
)[1] : account.bankCode || void 0,
|
|
544
|
+
iban: isIncoming ? account.iban || void 0 : related?.creditorAccount?.identification?.iban || creditorParsed.iban || void 0,
|
|
545
|
+
number: isIncoming ? account.number || void 0 : creditorParsed.number || void 0,
|
|
546
|
+
bankCode: isIncoming ? account.bankCode || void 0 : creditorParsed.bankCode || void 0,
|
|
547
|
+
swiftBic: isIncoming ? void 0 : creditorParsed.swiftBic,
|
|
525
548
|
address: related?.creditor?.postalAddress ? {
|
|
526
549
|
streetName: related.creditor.postalAddress.streetName,
|
|
527
550
|
buildingNumber: related.creditor.postalAddress.buildingNumber,
|
|
@@ -532,13 +555,10 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
532
555
|
},
|
|
533
556
|
debtor: {
|
|
534
557
|
holderName: related?.debtorAccount?.name || related?.debtor?.name || "Unknown",
|
|
535
|
-
iban: isIncoming ? related?.debtorAccount?.identification?.iban ||
|
|
536
|
-
number: isIncoming ?
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
bankCode: isIncoming ? related?.debtorAccount?.identification?.other?.identification ? related.debtorAccount.identification.other.identification.split(
|
|
540
|
-
"/"
|
|
541
|
-
)[1] : account.bankCode || void 0 : account.bankCode || void 0,
|
|
558
|
+
iban: isIncoming ? related?.debtorAccount?.identification?.iban || debtorParsed.iban || void 0 : account.iban ?? void 0,
|
|
559
|
+
number: isIncoming ? debtorParsed.number || void 0 : account.number || void 0,
|
|
560
|
+
bankCode: isIncoming ? debtorParsed.bankCode || void 0 : account.bankCode || void 0,
|
|
561
|
+
swiftBic: isIncoming ? debtorParsed.swiftBic : void 0,
|
|
542
562
|
address: related?.debtor?.postalAddress ? {
|
|
543
563
|
streetName: related.debtor.postalAddress.streetName,
|
|
544
564
|
buildingNumber: related.debtor.postalAddress.buildingNumber,
|
|
@@ -479,6 +479,26 @@ const SEPA_COUNTRIES = /* @__PURE__ */ new Set([
|
|
|
479
479
|
"GI",
|
|
480
480
|
"XK"
|
|
481
481
|
]);
|
|
482
|
+
function parseOtherIdentification(value) {
|
|
483
|
+
if (!value) return {};
|
|
484
|
+
const [first, second] = value.split("/");
|
|
485
|
+
if (!first) return {};
|
|
486
|
+
const looksLikeIban = first.length >= 15 && /^[A-Z]{2}\d{2}[A-Z0-9]+$/.test(first);
|
|
487
|
+
if (looksLikeIban) {
|
|
488
|
+
const iban = first;
|
|
489
|
+
const swiftBic = second || void 0;
|
|
490
|
+
if (iban.startsWith("CZ") && iban.length === 24) {
|
|
491
|
+
const bankCode = iban.slice(4, 8);
|
|
492
|
+
const number = iban.slice(14, 24).replace(/^0+/, "") || iban.slice(14, 24);
|
|
493
|
+
return { iban, swiftBic, bankCode, number };
|
|
494
|
+
}
|
|
495
|
+
return { iban, swiftBic };
|
|
496
|
+
}
|
|
497
|
+
return {
|
|
498
|
+
number: first,
|
|
499
|
+
bankCode: second || void 0
|
|
500
|
+
};
|
|
501
|
+
}
|
|
482
502
|
function detectPaymentType(tx, isIncoming) {
|
|
483
503
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
484
504
|
const otherParty = isIncoming ? related?.debtorAccount : related?.creditorAccount;
|
|
@@ -500,6 +520,12 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
500
520
|
const related = tx.entryDetails?.transactionDetails?.relatedParties;
|
|
501
521
|
const endToEndId = tx.entryDetails.transactionDetails?.references?.endToEndIdentification;
|
|
502
522
|
const symbolsRegex = /^\/?VS\d+/;
|
|
523
|
+
const debtorParsed = parseOtherIdentification(
|
|
524
|
+
related?.debtorAccount?.identification?.other?.identification
|
|
525
|
+
);
|
|
526
|
+
const creditorParsed = parseOtherIdentification(
|
|
527
|
+
related?.creditorAccount?.identification?.other?.identification
|
|
528
|
+
);
|
|
503
529
|
const base = {
|
|
504
530
|
id: backendSdk.uuidv4(),
|
|
505
531
|
correlationId: backendSdk.uuidv4(),
|
|
@@ -517,13 +543,10 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
517
543
|
),
|
|
518
544
|
creditor: {
|
|
519
545
|
holderName: related?.creditorAccount?.name || related?.creditor?.name || "Unknown",
|
|
520
|
-
iban: isIncoming ? account.iban || void 0 : related?.creditorAccount?.identification?.iban ||
|
|
521
|
-
number: isIncoming ? account.number || void 0 :
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
bankCode: isIncoming ? account.bankCode || void 0 : related?.creditorAccount?.identification?.other?.identification ? related.creditorAccount.identification.other.identification.split(
|
|
525
|
-
"/"
|
|
526
|
-
)[1] : account.bankCode || void 0,
|
|
546
|
+
iban: isIncoming ? account.iban || void 0 : related?.creditorAccount?.identification?.iban || creditorParsed.iban || void 0,
|
|
547
|
+
number: isIncoming ? account.number || void 0 : creditorParsed.number || void 0,
|
|
548
|
+
bankCode: isIncoming ? account.bankCode || void 0 : creditorParsed.bankCode || void 0,
|
|
549
|
+
swiftBic: isIncoming ? void 0 : creditorParsed.swiftBic,
|
|
527
550
|
address: related?.creditor?.postalAddress ? {
|
|
528
551
|
streetName: related.creditor.postalAddress.streetName,
|
|
529
552
|
buildingNumber: related.creditor.postalAddress.buildingNumber,
|
|
@@ -534,13 +557,10 @@ const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
|
534
557
|
},
|
|
535
558
|
debtor: {
|
|
536
559
|
holderName: related?.debtorAccount?.name || related?.debtor?.name || "Unknown",
|
|
537
|
-
iban: isIncoming ? related?.debtorAccount?.identification?.iban ||
|
|
538
|
-
number: isIncoming ?
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
bankCode: isIncoming ? related?.debtorAccount?.identification?.other?.identification ? related.debtorAccount.identification.other.identification.split(
|
|
542
|
-
"/"
|
|
543
|
-
)[1] : account.bankCode || void 0 : account.bankCode || void 0,
|
|
560
|
+
iban: isIncoming ? related?.debtorAccount?.identification?.iban || debtorParsed.iban || void 0 : account.iban ?? void 0,
|
|
561
|
+
number: isIncoming ? debtorParsed.number || void 0 : account.number || void 0,
|
|
562
|
+
bankCode: isIncoming ? debtorParsed.bankCode || void 0 : account.bankCode || void 0,
|
|
563
|
+
swiftBic: isIncoming ? debtorParsed.swiftBic : void 0,
|
|
544
564
|
address: related?.debtor?.postalAddress ? {
|
|
545
565
|
streetName: related.debtor.postalAddress.streetName,
|
|
546
566
|
buildingNumber: related.debtor.postalAddress.buildingNumber,
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./shared/bank.
|
|
3
|
+
const database_schema = require('./shared/bank.c1sHv5v_.cjs');
|
|
4
4
|
const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.BJ_vbyUT.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.BJ_vbyUT.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.Ca0iWjhb.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.Ca0iWjhb.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.Bz4DIxJL.cjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.BJ_vbyUT.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.BJ_vbyUT.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BI2OxQsM.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.BI2OxQsM.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.Bz4DIxJL.mjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.BJ_vbyUT.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.BJ_vbyUT.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.Bs0isbAY.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.Bs0isbAY.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.Bz4DIxJL.js';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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, e as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, f as FinbricksClient, g as FinbricksConnector, I as IBankConnector, h as INSTRUCTION_PRIORITIES, K as KBConnector, M as MockCobsConnector, i as MockConnector, P as PAYMENT_DIRECTIONS, j as PAYMENT_REQUEST_STATUSES, k as PAYMENT_STATUSES, l as PAYMENT_TYPES, T as TOKEN_TYPES, m as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, o as accountCredentialsUpdateSchema, p as accountInsertSchema, q as accountSelectSchema, r as accountUpdateSchema, s as assignAccount, t as dbuAccountConfigSchema, u as hasPaymentAccountAssigned, v as isPaymentCompleted, w as isPendingStatus, x as isProcessedStatus, y as isTerminalStatus, z as ottInsertSchema, G as ottSelectSchema, H as ottUpdateSchema, J as signFinbricksJws, L as toBatchedPayment, N as toBatchedPaymentFromPaymentRequest, O as toCompletedPayment, Q as toIncomingPayment, R as toPaymentRequestInsert, S as toPreparedPayment, U as useFinbricksFetch } from './shared/bank.
|
|
1
|
+
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, e as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, f as FinbricksClient, g as FinbricksConnector, I as IBankConnector, h as INSTRUCTION_PRIORITIES, K as KBConnector, M as MockCobsConnector, i as MockConnector, P as PAYMENT_DIRECTIONS, j as PAYMENT_REQUEST_STATUSES, k as PAYMENT_STATUSES, l as PAYMENT_TYPES, T as TOKEN_TYPES, m as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, o as accountCredentialsUpdateSchema, p as accountInsertSchema, q as accountSelectSchema, r as accountUpdateSchema, s as assignAccount, t as dbuAccountConfigSchema, u as hasPaymentAccountAssigned, v as isPaymentCompleted, w as isPendingStatus, x as isProcessedStatus, y as isTerminalStatus, z as ottInsertSchema, G as ottSelectSchema, H as ottUpdateSchema, J as signFinbricksJws, L as toBatchedPayment, N as toBatchedPaymentFromPaymentRequest, O as toCompletedPayment, Q as toIncomingPayment, R as toPaymentRequestInsert, S as toPreparedPayment, U as useFinbricksFetch } from './shared/bank.IlVbIEuM.mjs';
|
|
2
2
|
export { i as isBatchAuthorized, a as isBatchCompleted, b as isBatchFailed, c as isBatchInitiated, d as isBatchProcessing, e as isBatchReadyToSign } from './shared/bank.XqSw509X.mjs';
|
|
3
3
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
4
|
import '@develit-io/backend-sdk';
|