@develit-services/bank 3.0.0 → 3.0.1
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 +8 -8
- package/dist/export/worker.d.mts +8 -8
- package/dist/export/worker.d.ts +8 -8
- package/dist/export/worker.mjs +3 -3
- package/dist/export/workflows.cjs +3 -3
- package/dist/export/workflows.mjs +3 -3
- package/dist/shared/{bank.pU2vSCUr.cjs → bank.1DaJXkX5.cjs} +10 -10
- package/dist/shared/{bank.SoKDxQxH.d.ts → bank.2M66Yx-J.d.ts} +1 -1
- package/dist/shared/{bank.BanqNaZK.d.cts → bank.BUgy8rcb.d.mts} +1 -1
- package/dist/shared/{bank.OSj3Smwv.cjs → bank.C3FUz-p6.cjs} +1 -1
- package/dist/shared/{bank.DOlM7clW.d.mts → bank.CVPVkitI.d.cts} +1 -1
- package/dist/shared/{bank.CTFqGRuY.mjs → bank.Cwbl-Mjn.mjs} +1 -1
- package/dist/shared/{bank.CVCyY-qU.d.mts → bank.DR02_AJ7.d.cts} +8 -8
- package/dist/shared/{bank.CVCyY-qU.d.ts → bank.DR02_AJ7.d.mts} +8 -8
- package/dist/shared/{bank.CVCyY-qU.d.cts → bank.DR02_AJ7.d.ts} +8 -8
- package/dist/shared/{bank.ByesVuDp.mjs → bank.lJOMYeVw.mjs} +1 -1
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +8 -8
- package/dist/types.d.mts +8 -8
- package/dist/types.d.ts +8 -8
- 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.DR02_AJ7.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.DR02_AJ7.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.DR02_AJ7.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.DR02_AJ7.cjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.CVPVkitI.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';
|
|
@@ -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";
|
|
2820
2821
|
createdAt: "createdAt";
|
|
2821
2822
|
updatedAt: "updatedAt";
|
|
2822
|
-
amount: "amount";
|
|
2823
2823
|
}>;
|
|
2824
2824
|
direction: z.ZodEnum<{
|
|
2825
2825
|
asc: "asc";
|
|
@@ -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";
|
|
@@ -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";
|
|
3588
3589
|
createdAt: "createdAt";
|
|
3589
3590
|
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
|
-
AUTHORIZED: "AUTHORIZED";
|
|
3600
3599
|
OPENED: "OPENED";
|
|
3600
|
+
AUTHORIZED: "AUTHORIZED";
|
|
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
|
-
AUTHORIZED: "AUTHORIZED";
|
|
3608
3607
|
OPENED: "OPENED";
|
|
3608
|
+
AUTHORIZED: "AUTHORIZED";
|
|
3609
3609
|
COMPLETED: "COMPLETED";
|
|
3610
3610
|
BOOKED: "BOOKED";
|
|
3611
3611
|
SETTLED: "SETTLED";
|
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.DR02_AJ7.mjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BUgy8rcb.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';
|
|
@@ -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";
|
|
2820
2821
|
createdAt: "createdAt";
|
|
2821
2822
|
updatedAt: "updatedAt";
|
|
2822
|
-
amount: "amount";
|
|
2823
2823
|
}>;
|
|
2824
2824
|
direction: z.ZodEnum<{
|
|
2825
2825
|
asc: "asc";
|
|
@@ -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";
|
|
@@ -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";
|
|
3588
3589
|
createdAt: "createdAt";
|
|
3589
3590
|
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
|
-
AUTHORIZED: "AUTHORIZED";
|
|
3600
3599
|
OPENED: "OPENED";
|
|
3600
|
+
AUTHORIZED: "AUTHORIZED";
|
|
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
|
-
AUTHORIZED: "AUTHORIZED";
|
|
3608
3607
|
OPENED: "OPENED";
|
|
3608
|
+
AUTHORIZED: "AUTHORIZED";
|
|
3609
3609
|
COMPLETED: "COMPLETED";
|
|
3610
3610
|
BOOKED: "BOOKED";
|
|
3611
3611
|
SETTLED: "SETTLED";
|
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.DR02_AJ7.js';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.2M66Yx-J.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';
|
|
@@ -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";
|
|
2820
2821
|
createdAt: "createdAt";
|
|
2821
2822
|
updatedAt: "updatedAt";
|
|
2822
|
-
amount: "amount";
|
|
2823
2823
|
}>;
|
|
2824
2824
|
direction: z.ZodEnum<{
|
|
2825
2825
|
asc: "asc";
|
|
@@ -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";
|
|
@@ -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";
|
|
3588
3589
|
createdAt: "createdAt";
|
|
3589
3590
|
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
|
-
AUTHORIZED: "AUTHORIZED";
|
|
3600
3599
|
OPENED: "OPENED";
|
|
3600
|
+
AUTHORIZED: "AUTHORIZED";
|
|
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
|
-
AUTHORIZED: "AUTHORIZED";
|
|
3608
3607
|
OPENED: "OPENED";
|
|
3608
|
+
AUTHORIZED: "AUTHORIZED";
|
|
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.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,
|
|
@@ -7,7 +7,7 @@ const zod = require('zod');
|
|
|
7
7
|
const generalCodes = require('@develit-io/general-codes');
|
|
8
8
|
const database_schema = require('./bank.9Yw4KHyl.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const
|
|
10
|
+
const zod$1 = require('drizzle-orm/zod');
|
|
11
11
|
require('node:crypto');
|
|
12
12
|
|
|
13
13
|
const relations = drizzleOrm.defineRelations(database_schema.schema, (r) => ({
|
|
@@ -2407,23 +2407,23 @@ class MockConnector extends IBankConnector {
|
|
|
2407
2407
|
}
|
|
2408
2408
|
}
|
|
2409
2409
|
|
|
2410
|
-
const accountInsertSchema =
|
|
2410
|
+
const accountInsertSchema = zod$1.createInsertSchema(database_schema.account, {
|
|
2411
2411
|
address: () => backendSdk.structuredAddressSchema.optional()
|
|
2412
2412
|
});
|
|
2413
|
-
const accountUpdateSchema =
|
|
2413
|
+
const accountUpdateSchema = zod$1.createUpdateSchema(database_schema.account, {
|
|
2414
2414
|
address: () => backendSdk.structuredAddressSchema.optional()
|
|
2415
2415
|
});
|
|
2416
|
-
const accountSelectSchema =
|
|
2416
|
+
const accountSelectSchema = zod$1.createSelectSchema(database_schema.account, {
|
|
2417
2417
|
address: () => backendSdk.structuredAddressSchema.nullable()
|
|
2418
2418
|
});
|
|
2419
2419
|
|
|
2420
|
-
const accountCredentialsInsertSchema =
|
|
2421
|
-
const accountCredentialsUpdateSchema =
|
|
2422
|
-
const accountCredentialsSelectSchema =
|
|
2420
|
+
const accountCredentialsInsertSchema = zod$1.createInsertSchema(database_schema.accountCredentials);
|
|
2421
|
+
const accountCredentialsUpdateSchema = zod$1.createUpdateSchema(database_schema.accountCredentials);
|
|
2422
|
+
const accountCredentialsSelectSchema = zod$1.createSelectSchema(database_schema.accountCredentials);
|
|
2423
2423
|
|
|
2424
|
-
const ottInsertSchema =
|
|
2425
|
-
const ottUpdateSchema =
|
|
2426
|
-
const ottSelectSchema =
|
|
2424
|
+
const ottInsertSchema = zod$1.createInsertSchema(database_schema.ott);
|
|
2425
|
+
const ottUpdateSchema = zod$1.createUpdateSchema(database_schema.ott);
|
|
2426
|
+
const ottSelectSchema = zod$1.createSelectSchema(database_schema.ott);
|
|
2427
2427
|
|
|
2428
2428
|
exports.CsobConnector = CsobConnector;
|
|
2429
2429
|
exports.DbuConnector = DbuConnector;
|
|
@@ -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.DR02_AJ7.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.DR02_AJ7.mjs';
|
|
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.1DaJXkX5.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.DR02_AJ7.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -5,7 +5,7 @@ import { z } from 'zod';
|
|
|
5
5
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
6
6
|
import { s as schema, e as PAYMENT_REQUEST_STATUSES, h as account, i as accountCredentials, o as ott } from './bank.BzDNLxB_.mjs';
|
|
7
7
|
import { defineRelations, and, not, inArray, isNull } from 'drizzle-orm';
|
|
8
|
-
import { createInsertSchema, createUpdateSchema, createSelectSchema } from 'drizzle-zod';
|
|
8
|
+
import { createInsertSchema, createUpdateSchema, createSelectSchema } from 'drizzle-orm/zod';
|
|
9
9
|
import 'node:crypto';
|
|
10
10
|
|
|
11
11
|
const relations = defineRelations(schema, (r) => ({
|
|
@@ -4,7 +4,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
|
4
4
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
import * as zod from 'zod';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import * as
|
|
7
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
8
8
|
import * as zod_v4_core from 'zod/v4/core';
|
|
9
9
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
10
10
|
import { BankAccountMetadata } from '@develit-io/backend-sdk';
|
|
@@ -306,7 +306,7 @@ declare abstract class IBankConnector {
|
|
|
306
306
|
}>;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
declare const accountCredentialsInsertSchema:
|
|
309
|
+
declare const accountCredentialsInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
310
310
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
311
311
|
name: string;
|
|
312
312
|
tableName: "account_credentials";
|
|
@@ -395,7 +395,7 @@ declare const accountCredentialsInsertSchema: drizzle_zod.BuildSchema<"insert",
|
|
|
395
395
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
396
396
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
397
397
|
}, undefined, undefined>;
|
|
398
|
-
declare const accountCredentialsUpdateSchema:
|
|
398
|
+
declare const accountCredentialsUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
399
399
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
400
400
|
name: string;
|
|
401
401
|
tableName: "account_credentials";
|
|
@@ -484,7 +484,7 @@ declare const accountCredentialsUpdateSchema: drizzle_zod.BuildSchema<"update",
|
|
|
484
484
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
485
485
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
486
486
|
}, undefined, undefined>;
|
|
487
|
-
declare const accountCredentialsSelectSchema:
|
|
487
|
+
declare const accountCredentialsSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
488
488
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
489
489
|
name: string;
|
|
490
490
|
tableName: "account_credentials";
|
|
@@ -581,7 +581,7 @@ type AccountCredentialsUpdateType = z.infer<typeof accountCredentialsInsertSchem
|
|
|
581
581
|
type AccountCredentialsPatchType = z.infer<typeof accountCredentialsUpdateSchema>;
|
|
582
582
|
type AccountCredentialsSelectType = z.infer<typeof accountCredentialsSelectSchema>;
|
|
583
583
|
|
|
584
|
-
declare const accountInsertSchema:
|
|
584
|
+
declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
585
585
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
586
586
|
name: string;
|
|
587
587
|
tableName: "account";
|
|
@@ -1028,7 +1028,7 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
1028
1028
|
}>>;
|
|
1029
1029
|
}, zod_v4_core.$strip>>;
|
|
1030
1030
|
}, undefined>;
|
|
1031
|
-
declare const accountUpdateSchema:
|
|
1031
|
+
declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
1032
1032
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1033
1033
|
name: string;
|
|
1034
1034
|
tableName: "account";
|
|
@@ -1475,7 +1475,7 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
1475
1475
|
}>>;
|
|
1476
1476
|
}, zod_v4_core.$strip>>;
|
|
1477
1477
|
}, undefined>;
|
|
1478
|
-
declare const accountSelectSchema:
|
|
1478
|
+
declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
1479
1479
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1480
1480
|
name: string;
|
|
1481
1481
|
tableName: "account";
|
|
@@ -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: "OPENED" | "AUTHORIZED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
2799
2799
|
driverParam: string;
|
|
2800
2800
|
notNull: true;
|
|
2801
2801
|
hasDefault: false;
|
|
@@ -4,7 +4,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
|
4
4
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
import * as zod from 'zod';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import * as
|
|
7
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
8
8
|
import * as zod_v4_core from 'zod/v4/core';
|
|
9
9
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
10
10
|
import { BankAccountMetadata } from '@develit-io/backend-sdk';
|
|
@@ -306,7 +306,7 @@ declare abstract class IBankConnector {
|
|
|
306
306
|
}>;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
declare const accountCredentialsInsertSchema:
|
|
309
|
+
declare const accountCredentialsInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
310
310
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
311
311
|
name: string;
|
|
312
312
|
tableName: "account_credentials";
|
|
@@ -395,7 +395,7 @@ declare const accountCredentialsInsertSchema: drizzle_zod.BuildSchema<"insert",
|
|
|
395
395
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
396
396
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
397
397
|
}, undefined, undefined>;
|
|
398
|
-
declare const accountCredentialsUpdateSchema:
|
|
398
|
+
declare const accountCredentialsUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
399
399
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
400
400
|
name: string;
|
|
401
401
|
tableName: "account_credentials";
|
|
@@ -484,7 +484,7 @@ declare const accountCredentialsUpdateSchema: drizzle_zod.BuildSchema<"update",
|
|
|
484
484
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
485
485
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
486
486
|
}, undefined, undefined>;
|
|
487
|
-
declare const accountCredentialsSelectSchema:
|
|
487
|
+
declare const accountCredentialsSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
488
488
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
489
489
|
name: string;
|
|
490
490
|
tableName: "account_credentials";
|
|
@@ -581,7 +581,7 @@ type AccountCredentialsUpdateType = z.infer<typeof accountCredentialsInsertSchem
|
|
|
581
581
|
type AccountCredentialsPatchType = z.infer<typeof accountCredentialsUpdateSchema>;
|
|
582
582
|
type AccountCredentialsSelectType = z.infer<typeof accountCredentialsSelectSchema>;
|
|
583
583
|
|
|
584
|
-
declare const accountInsertSchema:
|
|
584
|
+
declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
585
585
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
586
586
|
name: string;
|
|
587
587
|
tableName: "account";
|
|
@@ -1028,7 +1028,7 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
1028
1028
|
}>>;
|
|
1029
1029
|
}, zod_v4_core.$strip>>;
|
|
1030
1030
|
}, undefined>;
|
|
1031
|
-
declare const accountUpdateSchema:
|
|
1031
|
+
declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
1032
1032
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1033
1033
|
name: string;
|
|
1034
1034
|
tableName: "account";
|
|
@@ -1475,7 +1475,7 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
1475
1475
|
}>>;
|
|
1476
1476
|
}, zod_v4_core.$strip>>;
|
|
1477
1477
|
}, undefined>;
|
|
1478
|
-
declare const accountSelectSchema:
|
|
1478
|
+
declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
1479
1479
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1480
1480
|
name: string;
|
|
1481
1481
|
tableName: "account";
|
|
@@ -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: "OPENED" | "AUTHORIZED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
2799
2799
|
driverParam: string;
|
|
2800
2800
|
notNull: true;
|
|
2801
2801
|
hasDefault: false;
|
|
@@ -4,7 +4,7 @@ import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
|
4
4
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
import * as zod from 'zod';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import * as
|
|
7
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
8
8
|
import * as zod_v4_core from 'zod/v4/core';
|
|
9
9
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
10
10
|
import { BankAccountMetadata } from '@develit-io/backend-sdk';
|
|
@@ -306,7 +306,7 @@ declare abstract class IBankConnector {
|
|
|
306
306
|
}>;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
declare const accountCredentialsInsertSchema:
|
|
309
|
+
declare const accountCredentialsInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
310
310
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
311
311
|
name: string;
|
|
312
312
|
tableName: "account_credentials";
|
|
@@ -395,7 +395,7 @@ declare const accountCredentialsInsertSchema: drizzle_zod.BuildSchema<"insert",
|
|
|
395
395
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
396
396
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
397
397
|
}, undefined, undefined>;
|
|
398
|
-
declare const accountCredentialsUpdateSchema:
|
|
398
|
+
declare const accountCredentialsUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
399
399
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
400
400
|
name: string;
|
|
401
401
|
tableName: "account_credentials";
|
|
@@ -484,7 +484,7 @@ declare const accountCredentialsUpdateSchema: drizzle_zod.BuildSchema<"update",
|
|
|
484
484
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
485
485
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
486
486
|
}, undefined, undefined>;
|
|
487
|
-
declare const accountCredentialsSelectSchema:
|
|
487
|
+
declare const accountCredentialsSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
488
488
|
accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
489
489
|
name: string;
|
|
490
490
|
tableName: "account_credentials";
|
|
@@ -581,7 +581,7 @@ type AccountCredentialsUpdateType = z.infer<typeof accountCredentialsInsertSchem
|
|
|
581
581
|
type AccountCredentialsPatchType = z.infer<typeof accountCredentialsUpdateSchema>;
|
|
582
582
|
type AccountCredentialsSelectType = z.infer<typeof accountCredentialsSelectSchema>;
|
|
583
583
|
|
|
584
|
-
declare const accountInsertSchema:
|
|
584
|
+
declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
585
585
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
586
586
|
name: string;
|
|
587
587
|
tableName: "account";
|
|
@@ -1028,7 +1028,7 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
1028
1028
|
}>>;
|
|
1029
1029
|
}, zod_v4_core.$strip>>;
|
|
1030
1030
|
}, undefined>;
|
|
1031
|
-
declare const accountUpdateSchema:
|
|
1031
|
+
declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
1032
1032
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1033
1033
|
name: string;
|
|
1034
1034
|
tableName: "account";
|
|
@@ -1475,7 +1475,7 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
1475
1475
|
}>>;
|
|
1476
1476
|
}, zod_v4_core.$strip>>;
|
|
1477
1477
|
}, undefined>;
|
|
1478
|
-
declare const accountSelectSchema:
|
|
1478
|
+
declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
1479
1479
|
countryCode: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1480
1480
|
name: string;
|
|
1481
1481
|
tableName: "account";
|
|
@@ -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: "OPENED" | "AUTHORIZED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
|
|
2799
2799
|
driverParam: string;
|
|
2800
2800
|
notNull: true;
|
|
2801
2801
|
hasDefault: false;
|
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.1DaJXkX5.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');
|
|
@@ -9,7 +9,7 @@ require('date-fns');
|
|
|
9
9
|
require('jose');
|
|
10
10
|
require('zod');
|
|
11
11
|
require('drizzle-orm');
|
|
12
|
-
require('drizzle-zod');
|
|
12
|
+
require('drizzle-orm/zod');
|
|
13
13
|
require('node:crypto');
|
|
14
14
|
require('drizzle-orm/sqlite-core');
|
|
15
15
|
|
package/dist/types.d.cts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.DR02_AJ7.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.DR02_AJ7.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CVPVkitI.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.CVPVkitI.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.C6sLje8B.cjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
|
-
import * as
|
|
8
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
|
10
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
11
11
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
@@ -673,7 +673,7 @@ type BankPaymentRequestEvent = BaseEvent & {
|
|
|
673
673
|
paymentRequest: PaymentRequestSelectType;
|
|
674
674
|
};
|
|
675
675
|
|
|
676
|
-
declare const ottInsertSchema:
|
|
676
|
+
declare const ottInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
677
677
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
678
678
|
name: string;
|
|
679
679
|
tableName: "ott";
|
|
@@ -746,7 +746,7 @@ declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
746
746
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
747
747
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
748
748
|
}, undefined, undefined>;
|
|
749
|
-
declare const ottUpdateSchema:
|
|
749
|
+
declare const ottUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
750
750
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
751
751
|
name: string;
|
|
752
752
|
tableName: "ott";
|
|
@@ -819,7 +819,7 @@ declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
819
819
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
820
820
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
821
821
|
}, undefined, undefined>;
|
|
822
|
-
declare const ottSelectSchema:
|
|
822
|
+
declare const ottSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
823
823
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
824
824
|
name: string;
|
|
825
825
|
tableName: "ott";
|
package/dist/types.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.DR02_AJ7.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.DR02_AJ7.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BUgy8rcb.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.BUgy8rcb.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.C6sLje8B.mjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
|
-
import * as
|
|
8
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
|
10
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
11
11
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
@@ -673,7 +673,7 @@ type BankPaymentRequestEvent = BaseEvent & {
|
|
|
673
673
|
paymentRequest: PaymentRequestSelectType;
|
|
674
674
|
};
|
|
675
675
|
|
|
676
|
-
declare const ottInsertSchema:
|
|
676
|
+
declare const ottInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
677
677
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
678
678
|
name: string;
|
|
679
679
|
tableName: "ott";
|
|
@@ -746,7 +746,7 @@ declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
746
746
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
747
747
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
748
748
|
}, undefined, undefined>;
|
|
749
|
-
declare const ottUpdateSchema:
|
|
749
|
+
declare const ottUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
750
750
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
751
751
|
name: string;
|
|
752
752
|
tableName: "ott";
|
|
@@ -819,7 +819,7 @@ declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
819
819
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
820
820
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
821
821
|
}, undefined, undefined>;
|
|
822
|
-
declare const ottSelectSchema:
|
|
822
|
+
declare const ottSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
823
823
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
824
824
|
name: string;
|
|
825
825
|
tableName: "ott";
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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.DR02_AJ7.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.DR02_AJ7.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.2M66Yx-J.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.2M66Yx-J.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.C6sLje8B.js';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
|
-
import * as
|
|
8
|
+
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
|
10
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
11
11
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
@@ -673,7 +673,7 @@ type BankPaymentRequestEvent = BaseEvent & {
|
|
|
673
673
|
paymentRequest: PaymentRequestSelectType;
|
|
674
674
|
};
|
|
675
675
|
|
|
676
|
-
declare const ottInsertSchema:
|
|
676
|
+
declare const ottInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
677
677
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
678
678
|
name: string;
|
|
679
679
|
tableName: "ott";
|
|
@@ -746,7 +746,7 @@ declare const ottInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
746
746
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
747
747
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
748
748
|
}, undefined, undefined>;
|
|
749
|
-
declare const ottUpdateSchema:
|
|
749
|
+
declare const ottUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
750
750
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
751
751
|
name: string;
|
|
752
752
|
tableName: "ott";
|
|
@@ -819,7 +819,7 @@ declare const ottUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
819
819
|
deletedAt: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTimestampBuilderInitial<"deleted_at">>;
|
|
820
820
|
deletedBy: drizzle_orm.HasDefault<drizzle_orm_sqlite_core.SQLiteTextBuilderInitial<"deleted_by", [string, ...string[]], number | undefined>>;
|
|
821
821
|
}, undefined, undefined>;
|
|
822
|
-
declare const ottSelectSchema:
|
|
822
|
+
declare const ottSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
823
823
|
oneTimeToken: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
824
824
|
name: string;
|
|
825
825
|
tableName: "ott";
|
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.Cwbl-Mjn.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';
|
|
@@ -7,6 +7,6 @@ import 'date-fns';
|
|
|
7
7
|
import 'jose';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
|
-
import 'drizzle-zod';
|
|
10
|
+
import 'drizzle-orm/zod';
|
|
11
11
|
import 'node:crypto';
|
|
12
12
|
import 'drizzle-orm/sqlite-core';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"@develit-io/backend-sdk": "^11.0.2",
|
|
61
61
|
"@develit-io/general-codes": "^1.19.0",
|
|
62
62
|
"drizzle-orm": "^1.0.0-rc.1",
|
|
63
|
-
"drizzle-zod": "^1.0.0-rc.1",
|
|
64
63
|
"zod": "^4.1.13"
|
|
65
64
|
}
|
|
66
65
|
}
|