@develit-services/bank 0.3.4 → 0.3.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/schema.cjs +1 -1
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/database/schema.mjs +1 -1
- package/dist/export/worker.cjs +4 -4
- package/dist/export/worker.d.cts +7 -7
- package/dist/export/worker.d.mts +7 -7
- package/dist/export/worker.d.ts +7 -7
- package/dist/export/worker.mjs +4 -4
- package/dist/export/workflows.cjs +3 -3
- package/dist/export/workflows.mjs +4 -4
- package/dist/shared/{bank.lZMrqjVR.mjs → bank.7e-LCMJ-.mjs} +2 -1
- package/dist/shared/{bank.BX43jn5k.mjs → bank.BQXTsTfX.mjs} +2 -2
- package/dist/shared/{bank.BGuS_o9V.cjs → bank.BUuz9ahr.cjs} +1 -1
- package/dist/shared/{bank.wqkNncOE.cjs → bank.Dc6O7-dN.cjs} +2 -2
- package/dist/shared/{bank.CthUj-ff.mjs → bank.DokzI07s.mjs} +1 -1
- package/dist/shared/{bank.CpcK1Dse.cjs → bank.HlxUqlDv.cjs} +2 -1
- package/dist/shared/{bank.CjJZ44pz.d.ts → bank.xrXNjWCo.d.cts} +4 -4
- package/dist/shared/{bank.CjJZ44pz.d.cts → bank.xrXNjWCo.d.mts} +4 -4
- package/dist/shared/{bank.CjJZ44pz.d.mts → bank.xrXNjWCo.d.ts} +4 -4
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +2 -2
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/types.mjs +2 -2
- package/package.json +1 -1
package/dist/database/schema.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.xrXNjWCo.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'drizzle-zod';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.xrXNjWCo.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'drizzle-zod';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.xrXNjWCo.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'drizzle-zod';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { y as account, z as accountCredentials, r as batch, x as ott, v as payment, w as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { y as account, z as accountCredentials, r as batch, x as ott, v as payment, w as paymentRelations } from '../shared/bank.7e-LCMJ-.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import 'date-fns';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const cloudflare_workers = require('cloudflare:workers');
|
|
5
5
|
const d1 = require('drizzle-orm/d1');
|
|
6
|
-
const database_schema = require('../shared/bank.
|
|
6
|
+
const database_schema = require('../shared/bank.HlxUqlDv.cjs');
|
|
7
7
|
require('jose');
|
|
8
8
|
const generalCodes = require('@develit-io/general-codes');
|
|
9
9
|
const zod = require('zod');
|
|
10
|
-
const processBatch_workflow = require('../shared/bank.
|
|
10
|
+
const processBatch_workflow = require('../shared/bank.Dc6O7-dN.cjs');
|
|
11
11
|
const drizzleOrm = require('drizzle-orm');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('date-fns');
|
|
@@ -15,7 +15,7 @@ require('drizzle-zod');
|
|
|
15
15
|
require('drizzle-orm/relations');
|
|
16
16
|
require('node:crypto');
|
|
17
17
|
require('cloudflare:workflows');
|
|
18
|
-
require('../shared/bank.
|
|
18
|
+
require('../shared/bank.BUuz9ahr.cjs');
|
|
19
19
|
|
|
20
20
|
const upsertAccountCommand = (db, { account }) => {
|
|
21
21
|
const id = account.id || backendSdk.uuidv4();
|
|
@@ -694,7 +694,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
694
694
|
accountId: acc.id
|
|
695
695
|
});
|
|
696
696
|
const availableBatch = openBatches.find(
|
|
697
|
-
(batch) => batch.payments.length
|
|
697
|
+
(batch) => batch.payments.length < acc.batchSizeLimit
|
|
698
698
|
);
|
|
699
699
|
this.log({
|
|
700
700
|
message: availableBatch ? `\u{1F504} Found existing OPEN batches for account ${acc.id}, merging ${availableBatch.payments.length} existing + ${newPayments.length} new payments` : `\u2728 Creating new batch for account ${acc.id} with ${newPayments.length} payments`
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.xrXNjWCo.cjs';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
@@ -1529,21 +1529,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1529
1529
|
}, z.core.$strip>;
|
|
1530
1530
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1531
1531
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1532
|
-
FAILED: "FAILED";
|
|
1533
1532
|
OPEN: "OPEN";
|
|
1534
1533
|
FULL: "FULL";
|
|
1535
1534
|
PROCESSING: "PROCESSING";
|
|
1536
1535
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1537
1536
|
SIGNED: "SIGNED";
|
|
1538
1537
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1539
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
1540
1538
|
FAILED: "FAILED";
|
|
1539
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1541
1540
|
OPEN: "OPEN";
|
|
1542
1541
|
FULL: "FULL";
|
|
1543
1542
|
PROCESSING: "PROCESSING";
|
|
1544
1543
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1545
1544
|
SIGNED: "SIGNED";
|
|
1546
1545
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1546
|
+
FAILED: "FAILED";
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1644,7 +1644,7 @@ type ProcessBatchRestartOutput = z.infer<typeof processBatchRestartOutputSchema>
|
|
|
1644
1644
|
|
|
1645
1645
|
declare const processBatchEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1646
1646
|
batchId: z.ZodUUID;
|
|
1647
|
-
eventType: z.ZodLiteral<
|
|
1647
|
+
eventType: z.ZodLiteral<"batch-authorized">;
|
|
1648
1648
|
payload: z.ZodObject<{
|
|
1649
1649
|
authorized: z.ZodBoolean;
|
|
1650
1650
|
}, z.core.$strip>;
|
|
@@ -1792,16 +1792,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1792
1792
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1793
1793
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1794
1794
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1795
|
+
FAILED: "FAILED";
|
|
1795
1796
|
PREPARED: "PREPARED";
|
|
1796
1797
|
INITIALIZED: "INITIALIZED";
|
|
1797
|
-
FAILED: "FAILED";
|
|
1798
1798
|
PENDING: "PENDING";
|
|
1799
1799
|
COMPLETED: "COMPLETED";
|
|
1800
1800
|
CREATED: "CREATED";
|
|
1801
1801
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1802
|
+
FAILED: "FAILED";
|
|
1802
1803
|
PREPARED: "PREPARED";
|
|
1803
1804
|
INITIALIZED: "INITIALIZED";
|
|
1804
|
-
FAILED: "FAILED";
|
|
1805
1805
|
PENDING: "PENDING";
|
|
1806
1806
|
COMPLETED: "COMPLETED";
|
|
1807
1807
|
CREATED: "CREATED";
|
|
@@ -2468,7 +2468,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2468
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2469
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2470
2470
|
}): Promise<IRPCResponse<{
|
|
2471
|
-
status: "
|
|
2471
|
+
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
|
|
2472
2472
|
id: string;
|
|
2473
2473
|
createdAt: Date | null;
|
|
2474
2474
|
updatedAt: Date | null;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.xrXNjWCo.mjs';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
@@ -1529,21 +1529,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1529
1529
|
}, z.core.$strip>;
|
|
1530
1530
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1531
1531
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1532
|
-
FAILED: "FAILED";
|
|
1533
1532
|
OPEN: "OPEN";
|
|
1534
1533
|
FULL: "FULL";
|
|
1535
1534
|
PROCESSING: "PROCESSING";
|
|
1536
1535
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1537
1536
|
SIGNED: "SIGNED";
|
|
1538
1537
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1539
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
1540
1538
|
FAILED: "FAILED";
|
|
1539
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1541
1540
|
OPEN: "OPEN";
|
|
1542
1541
|
FULL: "FULL";
|
|
1543
1542
|
PROCESSING: "PROCESSING";
|
|
1544
1543
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1545
1544
|
SIGNED: "SIGNED";
|
|
1546
1545
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1546
|
+
FAILED: "FAILED";
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1644,7 +1644,7 @@ type ProcessBatchRestartOutput = z.infer<typeof processBatchRestartOutputSchema>
|
|
|
1644
1644
|
|
|
1645
1645
|
declare const processBatchEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1646
1646
|
batchId: z.ZodUUID;
|
|
1647
|
-
eventType: z.ZodLiteral<
|
|
1647
|
+
eventType: z.ZodLiteral<"batch-authorized">;
|
|
1648
1648
|
payload: z.ZodObject<{
|
|
1649
1649
|
authorized: z.ZodBoolean;
|
|
1650
1650
|
}, z.core.$strip>;
|
|
@@ -1792,16 +1792,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1792
1792
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1793
1793
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1794
1794
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1795
|
+
FAILED: "FAILED";
|
|
1795
1796
|
PREPARED: "PREPARED";
|
|
1796
1797
|
INITIALIZED: "INITIALIZED";
|
|
1797
|
-
FAILED: "FAILED";
|
|
1798
1798
|
PENDING: "PENDING";
|
|
1799
1799
|
COMPLETED: "COMPLETED";
|
|
1800
1800
|
CREATED: "CREATED";
|
|
1801
1801
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1802
|
+
FAILED: "FAILED";
|
|
1802
1803
|
PREPARED: "PREPARED";
|
|
1803
1804
|
INITIALIZED: "INITIALIZED";
|
|
1804
|
-
FAILED: "FAILED";
|
|
1805
1805
|
PENDING: "PENDING";
|
|
1806
1806
|
COMPLETED: "COMPLETED";
|
|
1807
1807
|
CREATED: "CREATED";
|
|
@@ -2468,7 +2468,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2468
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2469
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2470
2470
|
}): Promise<IRPCResponse<{
|
|
2471
|
-
status: "
|
|
2471
|
+
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
|
|
2472
2472
|
id: string;
|
|
2473
2473
|
createdAt: Date | null;
|
|
2474
2474
|
updatedAt: Date | null;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.xrXNjWCo.js';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
@@ -1529,21 +1529,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1529
1529
|
}, z.core.$strip>;
|
|
1530
1530
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1531
1531
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1532
|
-
FAILED: "FAILED";
|
|
1533
1532
|
OPEN: "OPEN";
|
|
1534
1533
|
FULL: "FULL";
|
|
1535
1534
|
PROCESSING: "PROCESSING";
|
|
1536
1535
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1537
1536
|
SIGNED: "SIGNED";
|
|
1538
1537
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1539
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
1540
1538
|
FAILED: "FAILED";
|
|
1539
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1541
1540
|
OPEN: "OPEN";
|
|
1542
1541
|
FULL: "FULL";
|
|
1543
1542
|
PROCESSING: "PROCESSING";
|
|
1544
1543
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1545
1544
|
SIGNED: "SIGNED";
|
|
1546
1545
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1546
|
+
FAILED: "FAILED";
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1644,7 +1644,7 @@ type ProcessBatchRestartOutput = z.infer<typeof processBatchRestartOutputSchema>
|
|
|
1644
1644
|
|
|
1645
1645
|
declare const processBatchEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1646
1646
|
batchId: z.ZodUUID;
|
|
1647
|
-
eventType: z.ZodLiteral<
|
|
1647
|
+
eventType: z.ZodLiteral<"batch-authorized">;
|
|
1648
1648
|
payload: z.ZodObject<{
|
|
1649
1649
|
authorized: z.ZodBoolean;
|
|
1650
1650
|
}, z.core.$strip>;
|
|
@@ -1792,16 +1792,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1792
1792
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1793
1793
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1794
1794
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1795
|
+
FAILED: "FAILED";
|
|
1795
1796
|
PREPARED: "PREPARED";
|
|
1796
1797
|
INITIALIZED: "INITIALIZED";
|
|
1797
|
-
FAILED: "FAILED";
|
|
1798
1798
|
PENDING: "PENDING";
|
|
1799
1799
|
COMPLETED: "COMPLETED";
|
|
1800
1800
|
CREATED: "CREATED";
|
|
1801
1801
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1802
|
+
FAILED: "FAILED";
|
|
1802
1803
|
PREPARED: "PREPARED";
|
|
1803
1804
|
INITIALIZED: "INITIALIZED";
|
|
1804
|
-
FAILED: "FAILED";
|
|
1805
1805
|
PENDING: "PENDING";
|
|
1806
1806
|
COMPLETED: "COMPLETED";
|
|
1807
1807
|
CREATED: "CREATED";
|
|
@@ -2468,7 +2468,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2468
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2469
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2470
2470
|
}): Promise<IRPCResponse<{
|
|
2471
|
-
status: "
|
|
2471
|
+
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED" | null;
|
|
2472
2472
|
id: string;
|
|
2473
2473
|
createdAt: Date | null;
|
|
2474
2474
|
updatedAt: Date | null;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { uuidv4, bankAccountMetadataSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, first, action, service } from '@develit-io/backend-sdk';
|
|
2
2
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { t as tables, c as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, P as PAYMENT_TYPES, g as CONNECTOR_KEYS, B as BATCH_STATUSES, d as PAYMENT_STATUSES, e as PAYMENT_DIRECTIONS, i as accountInsertSchema, M as MockConnector, F as FinbricksConnector, E as ErsteConnector } from '../shared/bank.
|
|
4
|
+
import { t as tables, c as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, P as PAYMENT_TYPES, g as CONNECTOR_KEYS, B as BATCH_STATUSES, d as PAYMENT_STATUSES, e as PAYMENT_DIRECTIONS, i as accountInsertSchema, M as MockConnector, F as FinbricksConnector, E as ErsteConnector } from '../shared/bank.7e-LCMJ-.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { e as encrypt, P as PROCESS_BATCH_WORKFLOW_EVENTS, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.
|
|
8
|
+
import { e as encrypt, P as PROCESS_BATCH_WORKFLOW_EVENTS, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.BQXTsTfX.mjs';
|
|
9
9
|
import { eq, inArray, and, sql, asc, desc, gte, lte } from 'drizzle-orm';
|
|
10
10
|
import 'drizzle-orm/sqlite-core';
|
|
11
11
|
import 'date-fns';
|
|
@@ -13,7 +13,7 @@ import 'drizzle-zod';
|
|
|
13
13
|
import 'drizzle-orm/relations';
|
|
14
14
|
import 'node:crypto';
|
|
15
15
|
import 'cloudflare:workflows';
|
|
16
|
-
import '../shared/bank.
|
|
16
|
+
import '../shared/bank.DokzI07s.mjs';
|
|
17
17
|
|
|
18
18
|
const upsertAccountCommand = (db, { account }) => {
|
|
19
19
|
const id = account.id || uuidv4();
|
|
@@ -692,7 +692,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
692
692
|
accountId: acc.id
|
|
693
693
|
});
|
|
694
694
|
const availableBatch = openBatches.find(
|
|
695
|
-
(batch) => batch.payments.length
|
|
695
|
+
(batch) => batch.payments.length < acc.batchSizeLimit
|
|
696
696
|
);
|
|
697
697
|
this.log({
|
|
698
698
|
message: availableBatch ? `\u{1F504} Found existing OPEN batches for account ${acc.id}, merging ${availableBatch.payments.length} existing + ${newPayments.length} new payments` : `\u2728 Creating new batch for account ${acc.id} with ${newPayments.length} payments`
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
const cloudflare_workers = require('cloudflare:workers');
|
|
4
4
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
5
5
|
const d1 = require('drizzle-orm/d1');
|
|
6
|
-
const database_schema = require('../shared/bank.
|
|
6
|
+
const database_schema = require('../shared/bank.HlxUqlDv.cjs');
|
|
7
7
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
8
|
-
const processBatch_workflow = require('../shared/bank.
|
|
8
|
+
const processBatch_workflow = require('../shared/bank.Dc6O7-dN.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
10
|
require('drizzle-orm/sqlite-core');
|
|
11
11
|
require('date-fns');
|
|
@@ -14,7 +14,7 @@ require('@develit-io/general-codes');
|
|
|
14
14
|
require('drizzle-zod');
|
|
15
15
|
require('drizzle-orm/relations');
|
|
16
16
|
require('node:crypto');
|
|
17
|
-
require('../shared/bank.
|
|
17
|
+
require('../shared/bank.BUuz9ahr.cjs');
|
|
18
18
|
|
|
19
19
|
const updateAccountLastSyncCommand = (db, {
|
|
20
20
|
lastSyncAt,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
2
2
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { t as tables } from '../shared/bank.
|
|
4
|
+
import { t as tables } from '../shared/bank.7e-LCMJ-.mjs';
|
|
5
5
|
import { asNonEmpty } from '@develit-io/backend-sdk';
|
|
6
|
-
import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand } from '../shared/bank.
|
|
7
|
-
export { B as BankProcessBatch } from '../shared/bank.
|
|
6
|
+
import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand } from '../shared/bank.BQXTsTfX.mjs';
|
|
7
|
+
export { B as BankProcessBatch } from '../shared/bank.BQXTsTfX.mjs';
|
|
8
8
|
import { eq } from 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import 'date-fns';
|
|
@@ -13,7 +13,7 @@ import '@develit-io/general-codes';
|
|
|
13
13
|
import 'drizzle-zod';
|
|
14
14
|
import 'drizzle-orm/relations';
|
|
15
15
|
import 'node:crypto';
|
|
16
|
-
import '../shared/bank.
|
|
16
|
+
import '../shared/bank.DokzI07s.mjs';
|
|
17
17
|
|
|
18
18
|
const updateAccountLastSyncCommand = (db, {
|
|
19
19
|
lastSyncAt,
|
|
@@ -431,7 +431,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
431
431
|
return {
|
|
432
432
|
...payment,
|
|
433
433
|
id: uuidv4(),
|
|
434
|
-
bankRefId:
|
|
434
|
+
bankRefId: uuidv4(),
|
|
435
|
+
// merchantTransactionId
|
|
435
436
|
direction: "OUTGOING",
|
|
436
437
|
paymentType: "DOMESTIC",
|
|
437
438
|
status: "PREPARED",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector } from './bank.
|
|
1
|
+
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector } from './bank.7e-LCMJ-.mjs';
|
|
2
2
|
import { uuidv4, first } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
@@ -7,7 +7,7 @@ import { eq } from 'drizzle-orm';
|
|
|
7
7
|
import 'jose';
|
|
8
8
|
import '@develit-io/general-codes';
|
|
9
9
|
import { createHash } from 'node:crypto';
|
|
10
|
-
import { M as MockCobsConnector } from './bank.
|
|
10
|
+
import { M as MockCobsConnector } from './bank.DokzI07s.mjs';
|
|
11
11
|
|
|
12
12
|
const createPaymentCommand = (db, { payment }) => {
|
|
13
13
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./bank.
|
|
3
|
+
const database_schema = require('./bank.HlxUqlDv.cjs');
|
|
4
4
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
5
5
|
const cloudflare_workers = require('cloudflare:workers');
|
|
6
6
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
@@ -9,7 +9,7 @@ const drizzleOrm = require('drizzle-orm');
|
|
|
9
9
|
require('jose');
|
|
10
10
|
require('@develit-io/general-codes');
|
|
11
11
|
const node_crypto = require('node:crypto');
|
|
12
|
-
const mockCobs_connector = require('./bank.
|
|
12
|
+
const mockCobs_connector = require('./bank.BUuz9ahr.cjs');
|
|
13
13
|
|
|
14
14
|
const createPaymentCommand = (db, { payment }) => {
|
|
15
15
|
return {
|
|
@@ -433,7 +433,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
433
433
|
return {
|
|
434
434
|
...payment,
|
|
435
435
|
id: backendSdk.uuidv4(),
|
|
436
|
-
bankRefId:
|
|
436
|
+
bankRefId: backendSdk.uuidv4(),
|
|
437
|
+
// merchantTransactionId
|
|
437
438
|
direction: "OUTGOING",
|
|
438
439
|
paymentType: "DOMESTIC",
|
|
439
440
|
status: "PREPARED",
|
|
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
71
71
|
tableName: "batch";
|
|
72
72
|
dataType: "string";
|
|
73
73
|
columnType: "SQLiteText";
|
|
74
|
-
data: "
|
|
74
|
+
data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
|
|
75
75
|
driverParam: string;
|
|
76
76
|
notNull: false;
|
|
77
77
|
hasDefault: false;
|
|
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
84
84
|
generated: undefined;
|
|
85
85
|
}, {}, {
|
|
86
86
|
length: number | undefined;
|
|
87
|
-
$type: "
|
|
87
|
+
$type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
|
|
88
88
|
}>;
|
|
89
89
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
90
90
|
name: "payments";
|
|
@@ -399,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
399
399
|
tableName: "payment";
|
|
400
400
|
dataType: "string";
|
|
401
401
|
columnType: "SQLiteText";
|
|
402
|
-
data: "
|
|
402
|
+
data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
403
403
|
driverParam: string;
|
|
404
404
|
notNull: true;
|
|
405
405
|
hasDefault: false;
|
|
@@ -412,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
412
412
|
generated: undefined;
|
|
413
413
|
}, {}, {
|
|
414
414
|
length: number | undefined;
|
|
415
|
-
$type: "
|
|
415
|
+
$type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
416
416
|
}>;
|
|
417
417
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
418
418
|
name: "status_reason";
|
|
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
71
71
|
tableName: "batch";
|
|
72
72
|
dataType: "string";
|
|
73
73
|
columnType: "SQLiteText";
|
|
74
|
-
data: "
|
|
74
|
+
data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
|
|
75
75
|
driverParam: string;
|
|
76
76
|
notNull: false;
|
|
77
77
|
hasDefault: false;
|
|
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
84
84
|
generated: undefined;
|
|
85
85
|
}, {}, {
|
|
86
86
|
length: number | undefined;
|
|
87
|
-
$type: "
|
|
87
|
+
$type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
|
|
88
88
|
}>;
|
|
89
89
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
90
90
|
name: "payments";
|
|
@@ -399,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
399
399
|
tableName: "payment";
|
|
400
400
|
dataType: "string";
|
|
401
401
|
columnType: "SQLiteText";
|
|
402
|
-
data: "
|
|
402
|
+
data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
403
403
|
driverParam: string;
|
|
404
404
|
notNull: true;
|
|
405
405
|
hasDefault: false;
|
|
@@ -412,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
412
412
|
generated: undefined;
|
|
413
413
|
}, {}, {
|
|
414
414
|
length: number | undefined;
|
|
415
|
-
$type: "
|
|
415
|
+
$type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
416
416
|
}>;
|
|
417
417
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
418
418
|
name: "status_reason";
|
|
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
71
71
|
tableName: "batch";
|
|
72
72
|
dataType: "string";
|
|
73
73
|
columnType: "SQLiteText";
|
|
74
|
-
data: "
|
|
74
|
+
data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
|
|
75
75
|
driverParam: string;
|
|
76
76
|
notNull: false;
|
|
77
77
|
hasDefault: false;
|
|
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
84
84
|
generated: undefined;
|
|
85
85
|
}, {}, {
|
|
86
86
|
length: number | undefined;
|
|
87
|
-
$type: "
|
|
87
|
+
$type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | "FAILED";
|
|
88
88
|
}>;
|
|
89
89
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
90
90
|
name: "payments";
|
|
@@ -399,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
399
399
|
tableName: "payment";
|
|
400
400
|
dataType: "string";
|
|
401
401
|
columnType: "SQLiteText";
|
|
402
|
-
data: "
|
|
402
|
+
data: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
403
403
|
driverParam: string;
|
|
404
404
|
notNull: true;
|
|
405
405
|
hasDefault: false;
|
|
@@ -412,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
412
412
|
generated: undefined;
|
|
413
413
|
}, {}, {
|
|
414
414
|
length: number | undefined;
|
|
415
|
-
$type: "
|
|
415
|
+
$type: "FAILED" | "PREPARED" | "INITIALIZED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
416
416
|
}>;
|
|
417
417
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
418
418
|
name: "status_reason";
|
package/dist/types.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./shared/bank.
|
|
4
|
-
const mockCobs_connector = require('./shared/bank.
|
|
3
|
+
const database_schema = require('./shared/bank.HlxUqlDv.cjs');
|
|
4
|
+
const mockCobs_connector = require('./shared/bank.BUuz9ahr.cjs');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
|
7
7
|
require('drizzle-orm/sqlite-core');
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.
|
|
2
|
-
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.xrXNjWCo.cjs';
|
|
2
|
+
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.xrXNjWCo.cjs';
|
|
3
3
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.
|
|
2
|
-
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.xrXNjWCo.mjs';
|
|
2
|
+
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.xrXNjWCo.mjs';
|
|
3
3
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.
|
|
2
|
-
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.xrXNjWCo.js';
|
|
2
|
+
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.xrXNjWCo.js';
|
|
3
3
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
|
package/dist/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, q as ottSelectSchema, p as ottUpdateSchema, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.
|
|
2
|
-
export { M as MockCobsConnector } from './shared/bank.
|
|
1
|
+
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, q as ottSelectSchema, p as ottUpdateSchema, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.7e-LCMJ-.mjs';
|
|
2
|
+
export { M as MockCobsConnector } from './shared/bank.DokzI07s.mjs';
|
|
3
3
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|