@develit-services/bank 3.0.0 → 4.0.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 +2 -2
- package/dist/database/schema.d.mts +2 -2
- package/dist/database/schema.d.ts +2 -2
- package/dist/export/worker.cjs +3 -3
- package/dist/export/worker.d.cts +16 -16
- package/dist/export/worker.d.mts +16 -16
- package/dist/export/worker.d.ts +16 -16
- package/dist/export/worker.mjs +3 -3
- package/dist/export/workflows.cjs +3 -3
- package/dist/export/workflows.mjs +3 -3
- 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.pU2vSCUr.cjs → bank.1DaJXkX5.cjs} +10 -10
- package/dist/shared/{bank.BanqNaZK.d.cts → bank.BGZ_RQHW.d.cts} +1 -1
- package/dist/shared/{bank.CVCyY-qU.d.cts → bank.BXMgOZmB.d.cts} +10 -10
- package/dist/shared/{bank.CVCyY-qU.d.mts → bank.BXMgOZmB.d.mts} +10 -10
- package/dist/shared/{bank.CVCyY-qU.d.ts → bank.BXMgOZmB.d.ts} +10 -10
- package/dist/shared/{bank.C6sLje8B.d.ts → bank.BydmpvCs.d.cts} +19 -28
- package/dist/shared/{bank.C6sLje8B.d.cts → bank.BydmpvCs.d.mts} +19 -28
- package/dist/shared/{bank.C6sLje8B.d.mts → bank.BydmpvCs.d.ts} +19 -28
- package/dist/shared/{bank.OSj3Smwv.cjs → bank.C3FUz-p6.cjs} +1 -1
- package/dist/shared/{bank.SoKDxQxH.d.ts → bank.CVlQjnAl.d.ts} +1 -1
- package/dist/shared/{bank.CTFqGRuY.mjs → bank.Cwbl-Mjn.mjs} +1 -1
- package/dist/shared/{bank.DOlM7clW.d.mts → bank.DDoo3Iz3.d.mts} +1 -1
- package/dist/shared/{bank.ByesVuDp.mjs → bank.lJOMYeVw.mjs} +1 -1
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +9 -9
- package/dist/types.d.mts +9 -9
- package/dist/types.d.ts +9 -9
- package/dist/types.mjs +2 -2
- package/package.json +1 -2
|
@@ -1,8 +1,8 @@
|
|
|
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.BXMgOZmB.cjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import 'drizzle-zod';
|
|
6
|
+
import 'drizzle-orm/zod';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import '@develit-io/backend-sdk';
|
|
@@ -1,8 +1,8 @@
|
|
|
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.BXMgOZmB.mjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import 'drizzle-zod';
|
|
6
|
+
import 'drizzle-orm/zod';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import '@develit-io/backend-sdk';
|
|
@@ -1,8 +1,8 @@
|
|
|
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.BXMgOZmB.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
5
5
|
import 'zod';
|
|
6
|
-
import 'drizzle-zod';
|
|
6
|
+
import 'drizzle-orm/zod';
|
|
7
7
|
import 'zod/v4/core';
|
|
8
8
|
import '@develit-io/backend-sdk';
|
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.1DaJXkX5.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,8 +11,8 @@ 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.
|
|
15
|
-
require('drizzle-zod');
|
|
14
|
+
const credentialsResolver = require('../shared/bank.C3FUz-p6.cjs');
|
|
15
|
+
require('drizzle-orm/zod');
|
|
16
16
|
require('drizzle-orm/sqlite-core');
|
|
17
17
|
|
|
18
18
|
const sendPaymentInputSchema = zod.z.object({
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.BXMgOZmB.cjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BGZ_RQHW.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';
|
|
7
7
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import * as
|
|
9
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
10
10
|
import * as drizzle_orm_sqlite_core$1 from 'drizzle-orm/sqlite-core';
|
|
11
11
|
import '@develit-io/general-codes';
|
|
12
12
|
import 'zod/v4/core';
|
|
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2703
2703
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2704
2704
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2705
2705
|
AUTHORIZED: "AUTHORIZED";
|
|
2706
|
-
COMPLETED: "COMPLETED";
|
|
2707
2706
|
PROCESSING: "PROCESSING";
|
|
2708
2707
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2708
|
+
COMPLETED: "COMPLETED";
|
|
2709
2709
|
FAILED: "FAILED";
|
|
2710
2710
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2711
2711
|
AUTHORIZED: "AUTHORIZED";
|
|
2712
|
-
COMPLETED: "COMPLETED";
|
|
2713
2712
|
PROCESSING: "PROCESSING";
|
|
2714
2713
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2714
|
+
COMPLETED: "COMPLETED";
|
|
2715
2715
|
FAILED: "FAILED";
|
|
2716
2716
|
}>>]>>;
|
|
2717
2717
|
}, z.core.$strip>;
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
-
BOOKED: "BOOKED";
|
|
2952
|
-
REJECTED: "REJECTED";
|
|
2953
|
-
PENDING: "PENDING";
|
|
2954
2951
|
PROCESSING: "PROCESSING";
|
|
2952
|
+
PENDING: "PENDING";
|
|
2953
|
+
BOOKED: "BOOKED";
|
|
2955
2954
|
CANCELLED: "CANCELLED";
|
|
2955
|
+
REJECTED: "REJECTED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
BOOKED: "BOOKED";
|
|
2961
|
-
REJECTED: "REJECTED";
|
|
2962
|
-
PENDING: "PENDING";
|
|
2963
2960
|
PROCESSING: "PROCESSING";
|
|
2961
|
+
PENDING: "PENDING";
|
|
2962
|
+
BOOKED: "BOOKED";
|
|
2964
2963
|
CANCELLED: "CANCELLED";
|
|
2964
|
+
REJECTED: "REJECTED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3089,7 +3089,7 @@ interface SyncAccountTerminateInput extends z.infer<typeof syncAccountTerminateI
|
|
|
3089
3089
|
type SyncAccountTerminateOutput = z.infer<typeof syncAccountTerminateOutputSchema>;
|
|
3090
3090
|
|
|
3091
3091
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
3092
|
-
account:
|
|
3092
|
+
account: drizzle_orm_zod.BuildSchema<"insert", {
|
|
3093
3093
|
countryCode: drizzle_orm_sqlite_core$1.SQLiteColumn<{
|
|
3094
3094
|
name: string;
|
|
3095
3095
|
tableName: "account";
|
|
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
-
OPENED: "OPENED";
|
|
3601
3600
|
COMPLETED: "COMPLETED";
|
|
3602
3601
|
BOOKED: "BOOKED";
|
|
3603
|
-
SETTLED: "SETTLED";
|
|
3604
3602
|
REJECTED: "REJECTED";
|
|
3603
|
+
OPENED: "OPENED";
|
|
3604
|
+
SETTLED: "SETTLED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
-
OPENED: "OPENED";
|
|
3609
3608
|
COMPLETED: "COMPLETED";
|
|
3610
3609
|
BOOKED: "BOOKED";
|
|
3611
|
-
SETTLED: "SETTLED";
|
|
3612
3610
|
REJECTED: "REJECTED";
|
|
3611
|
+
OPENED: "OPENED";
|
|
3612
|
+
SETTLED: "SETTLED";
|
|
3613
3613
|
CLOSED: "CLOSED";
|
|
3614
3614
|
}>>]>>;
|
|
3615
3615
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.BXMgOZmB.mjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.DDoo3Iz3.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';
|
|
7
7
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import * as
|
|
9
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
10
10
|
import * as drizzle_orm_sqlite_core$1 from 'drizzle-orm/sqlite-core';
|
|
11
11
|
import '@develit-io/general-codes';
|
|
12
12
|
import 'zod/v4/core';
|
|
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2703
2703
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2704
2704
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2705
2705
|
AUTHORIZED: "AUTHORIZED";
|
|
2706
|
-
COMPLETED: "COMPLETED";
|
|
2707
2706
|
PROCESSING: "PROCESSING";
|
|
2708
2707
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2708
|
+
COMPLETED: "COMPLETED";
|
|
2709
2709
|
FAILED: "FAILED";
|
|
2710
2710
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2711
2711
|
AUTHORIZED: "AUTHORIZED";
|
|
2712
|
-
COMPLETED: "COMPLETED";
|
|
2713
2712
|
PROCESSING: "PROCESSING";
|
|
2714
2713
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2714
|
+
COMPLETED: "COMPLETED";
|
|
2715
2715
|
FAILED: "FAILED";
|
|
2716
2716
|
}>>]>>;
|
|
2717
2717
|
}, z.core.$strip>;
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
-
BOOKED: "BOOKED";
|
|
2952
|
-
REJECTED: "REJECTED";
|
|
2953
|
-
PENDING: "PENDING";
|
|
2954
2951
|
PROCESSING: "PROCESSING";
|
|
2952
|
+
PENDING: "PENDING";
|
|
2953
|
+
BOOKED: "BOOKED";
|
|
2955
2954
|
CANCELLED: "CANCELLED";
|
|
2955
|
+
REJECTED: "REJECTED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
BOOKED: "BOOKED";
|
|
2961
|
-
REJECTED: "REJECTED";
|
|
2962
|
-
PENDING: "PENDING";
|
|
2963
2960
|
PROCESSING: "PROCESSING";
|
|
2961
|
+
PENDING: "PENDING";
|
|
2962
|
+
BOOKED: "BOOKED";
|
|
2964
2963
|
CANCELLED: "CANCELLED";
|
|
2964
|
+
REJECTED: "REJECTED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3089,7 +3089,7 @@ interface SyncAccountTerminateInput extends z.infer<typeof syncAccountTerminateI
|
|
|
3089
3089
|
type SyncAccountTerminateOutput = z.infer<typeof syncAccountTerminateOutputSchema>;
|
|
3090
3090
|
|
|
3091
3091
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
3092
|
-
account:
|
|
3092
|
+
account: drizzle_orm_zod.BuildSchema<"insert", {
|
|
3093
3093
|
countryCode: drizzle_orm_sqlite_core$1.SQLiteColumn<{
|
|
3094
3094
|
name: string;
|
|
3095
3095
|
tableName: "account";
|
|
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
-
OPENED: "OPENED";
|
|
3601
3600
|
COMPLETED: "COMPLETED";
|
|
3602
3601
|
BOOKED: "BOOKED";
|
|
3603
|
-
SETTLED: "SETTLED";
|
|
3604
3602
|
REJECTED: "REJECTED";
|
|
3603
|
+
OPENED: "OPENED";
|
|
3604
|
+
SETTLED: "SETTLED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
-
OPENED: "OPENED";
|
|
3609
3608
|
COMPLETED: "COMPLETED";
|
|
3610
3609
|
BOOKED: "BOOKED";
|
|
3611
|
-
SETTLED: "SETTLED";
|
|
3612
3610
|
REJECTED: "REJECTED";
|
|
3611
|
+
OPENED: "OPENED";
|
|
3612
|
+
SETTLED: "SETTLED";
|
|
3613
3613
|
CLOSED: "CLOSED";
|
|
3614
3614
|
}>>]>>;
|
|
3615
3615
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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.BXMgOZmB.js';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.CVlQjnAl.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';
|
|
7
7
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import * as
|
|
9
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
10
10
|
import * as drizzle_orm_sqlite_core$1 from 'drizzle-orm/sqlite-core';
|
|
11
11
|
import '@develit-io/general-codes';
|
|
12
12
|
import 'zod/v4/core';
|
|
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2703
2703
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2704
2704
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2705
2705
|
AUTHORIZED: "AUTHORIZED";
|
|
2706
|
-
COMPLETED: "COMPLETED";
|
|
2707
2706
|
PROCESSING: "PROCESSING";
|
|
2708
2707
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2708
|
+
COMPLETED: "COMPLETED";
|
|
2709
2709
|
FAILED: "FAILED";
|
|
2710
2710
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2711
2711
|
AUTHORIZED: "AUTHORIZED";
|
|
2712
|
-
COMPLETED: "COMPLETED";
|
|
2713
2712
|
PROCESSING: "PROCESSING";
|
|
2714
2713
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2714
|
+
COMPLETED: "COMPLETED";
|
|
2715
2715
|
FAILED: "FAILED";
|
|
2716
2716
|
}>>]>>;
|
|
2717
2717
|
}, z.core.$strip>;
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
-
BOOKED: "BOOKED";
|
|
2952
|
-
REJECTED: "REJECTED";
|
|
2953
|
-
PENDING: "PENDING";
|
|
2954
2951
|
PROCESSING: "PROCESSING";
|
|
2952
|
+
PENDING: "PENDING";
|
|
2953
|
+
BOOKED: "BOOKED";
|
|
2955
2954
|
CANCELLED: "CANCELLED";
|
|
2955
|
+
REJECTED: "REJECTED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
BOOKED: "BOOKED";
|
|
2961
|
-
REJECTED: "REJECTED";
|
|
2962
|
-
PENDING: "PENDING";
|
|
2963
2960
|
PROCESSING: "PROCESSING";
|
|
2961
|
+
PENDING: "PENDING";
|
|
2962
|
+
BOOKED: "BOOKED";
|
|
2964
2963
|
CANCELLED: "CANCELLED";
|
|
2964
|
+
REJECTED: "REJECTED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3089,7 +3089,7 @@ interface SyncAccountTerminateInput extends z.infer<typeof syncAccountTerminateI
|
|
|
3089
3089
|
type SyncAccountTerminateOutput = z.infer<typeof syncAccountTerminateOutputSchema>;
|
|
3090
3090
|
|
|
3091
3091
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
3092
|
-
account:
|
|
3092
|
+
account: drizzle_orm_zod.BuildSchema<"insert", {
|
|
3093
3093
|
countryCode: drizzle_orm_sqlite_core$1.SQLiteColumn<{
|
|
3094
3094
|
name: string;
|
|
3095
3095
|
tableName: "account";
|
|
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
-
OPENED: "OPENED";
|
|
3601
3600
|
COMPLETED: "COMPLETED";
|
|
3602
3601
|
BOOKED: "BOOKED";
|
|
3603
|
-
SETTLED: "SETTLED";
|
|
3604
3602
|
REJECTED: "REJECTED";
|
|
3603
|
+
OPENED: "OPENED";
|
|
3604
|
+
SETTLED: "SETTLED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
-
OPENED: "OPENED";
|
|
3609
3608
|
COMPLETED: "COMPLETED";
|
|
3610
3609
|
BOOKED: "BOOKED";
|
|
3611
|
-
SETTLED: "SETTLED";
|
|
3612
3610
|
REJECTED: "REJECTED";
|
|
3611
|
+
OPENED: "OPENED";
|
|
3612
|
+
SETTLED: "SETTLED";
|
|
3613
3613
|
CLOSED: "CLOSED";
|
|
3614
3614
|
}>>]>>;
|
|
3615
3615
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
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.Cwbl-Mjn.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,8 +9,8 @@ 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.
|
|
13
|
-
import 'drizzle-zod';
|
|
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.lJOMYeVw.mjs';
|
|
13
|
+
import 'drizzle-orm/zod';
|
|
14
14
|
import 'drizzle-orm/sqlite-core';
|
|
15
15
|
|
|
16
16
|
const sendPaymentInputSchema = z.object({
|
|
@@ -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.1DaJXkX5.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.C3FUz-p6.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');
|
|
@@ -15,7 +15,7 @@ require('zod');
|
|
|
15
15
|
require('@develit-io/general-codes');
|
|
16
16
|
require('../shared/bank.9Yw4KHyl.cjs');
|
|
17
17
|
require('drizzle-orm/sqlite-core');
|
|
18
|
-
require('drizzle-zod');
|
|
18
|
+
require('drizzle-orm/zod');
|
|
19
19
|
|
|
20
20
|
const updateAccountLastSyncCommand = (db, {
|
|
21
21
|
lastSyncAt,
|
|
@@ -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.Cwbl-Mjn.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.lJOMYeVw.mjs';
|
|
6
6
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
7
7
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
8
8
|
import { drizzle } from 'drizzle-orm/d1';
|
|
@@ -13,7 +13,7 @@ import 'zod';
|
|
|
13
13
|
import '@develit-io/general-codes';
|
|
14
14
|
import '../shared/bank.BzDNLxB_.mjs';
|
|
15
15
|
import 'drizzle-orm/sqlite-core';
|
|
16
|
-
import 'drizzle-zod';
|
|
16
|
+
import 'drizzle-orm/zod';
|
|
17
17
|
|
|
18
18
|
const updateAccountLastSyncCommand = (db, {
|
|
19
19
|
lastSyncAt,
|
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
|
|