@develit-services/bank 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/export/worker.cjs +20 -0
- package/dist/export/worker.d.cts +31 -20
- package/dist/export/worker.d.mts +31 -20
- package/dist/export/worker.d.ts +31 -20
- package/dist/export/worker.mjs +20 -0
- package/dist/shared/{bank.DC2gbqhD.d.cts → bank.CgiMSTo7.d.cts} +6 -6
- package/dist/shared/{bank.DC2gbqhD.d.mts → bank.CgiMSTo7.d.mts} +6 -6
- package/dist/shared/{bank.DC2gbqhD.d.ts → bank.CgiMSTo7.d.ts} +6 -6
- package/dist/shared/{bank.C54o3LW_.d.mts → bank.DV-Kvdzh.d.cts} +1 -1
- package/dist/shared/{bank.DXWYeekU.d.ts → bank._W3dtG8P.d.ts} +1 -1
- package/dist/shared/{bank.Djg_pGS7.d.cts → bank.b_ehHCuG.d.mts} +1 -1
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.CgiMSTo7.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.CgiMSTo7.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.CgiMSTo7.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -355,6 +355,13 @@ zod.z.object({
|
|
|
355
355
|
details: backendSdk.workflowInstanceStatusSchema
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
+
const syncAccountTerminateInputSchema = zod.z.object({
|
|
359
|
+
accountId: zod.z.uuid()
|
|
360
|
+
});
|
|
361
|
+
zod.z.object({
|
|
362
|
+
instanceId: zod.z.string()
|
|
363
|
+
});
|
|
364
|
+
|
|
358
365
|
const updateAccountInputSchema = zod.z.object({
|
|
359
366
|
account: database_schema.accountInsertSchema
|
|
360
367
|
});
|
|
@@ -581,6 +588,19 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
581
588
|
}
|
|
582
589
|
);
|
|
583
590
|
}
|
|
591
|
+
async syncAccountTerminate(input) {
|
|
592
|
+
return this.handleAction(
|
|
593
|
+
{ data: input, schema: syncAccountTerminateInputSchema },
|
|
594
|
+
{ successMessage: "Account sync workflow terminated" },
|
|
595
|
+
async ({ accountId }) => {
|
|
596
|
+
const instance = await this.env.SYNC_ACCOUNT_PAYMENTS_WORKFLOW.get(accountId);
|
|
597
|
+
await instance.terminate();
|
|
598
|
+
return {
|
|
599
|
+
instanceId: instance.id
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
);
|
|
603
|
+
}
|
|
584
604
|
async syncAccounts(options) {
|
|
585
605
|
return this.handleAction(
|
|
586
606
|
null,
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
7
|
-
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.
|
|
6
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.CgiMSTo7.cjs';
|
|
7
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.DV-Kvdzh.cjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import * as drizzle_zod from 'drizzle-zod';
|
|
10
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -202,8 +202,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
202
202
|
MATIC: "MATIC";
|
|
203
203
|
AVAX: "AVAX";
|
|
204
204
|
}>>;
|
|
205
|
-
|
|
206
|
-
EC: "EC";
|
|
205
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
207
206
|
AF: "AF";
|
|
208
207
|
AL: "AL";
|
|
209
208
|
DZ: "DZ";
|
|
@@ -257,6 +256,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
257
256
|
DM: "DM";
|
|
258
257
|
DO: "DO";
|
|
259
258
|
TL: "TL";
|
|
259
|
+
EC: "EC";
|
|
260
260
|
EG: "EG";
|
|
261
261
|
SV: "SV";
|
|
262
262
|
GQ: "GQ";
|
|
@@ -531,8 +531,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
531
531
|
MATIC: "MATIC";
|
|
532
532
|
AVAX: "AVAX";
|
|
533
533
|
}>>;
|
|
534
|
-
|
|
535
|
-
EC: "EC";
|
|
534
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
536
535
|
AF: "AF";
|
|
537
536
|
AL: "AL";
|
|
538
537
|
DZ: "DZ";
|
|
@@ -586,6 +585,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
586
585
|
DM: "DM";
|
|
587
586
|
DO: "DO";
|
|
588
587
|
TL: "TL";
|
|
588
|
+
EC: "EC";
|
|
589
589
|
EG: "EG";
|
|
590
590
|
SV: "SV";
|
|
591
591
|
GQ: "GQ";
|
|
@@ -953,8 +953,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
953
953
|
MATIC: "MATIC";
|
|
954
954
|
AVAX: "AVAX";
|
|
955
955
|
}>>;
|
|
956
|
-
|
|
957
|
-
EC: "EC";
|
|
956
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
958
957
|
AF: "AF";
|
|
959
958
|
AL: "AL";
|
|
960
959
|
DZ: "DZ";
|
|
@@ -1008,6 +1007,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1008
1007
|
DM: "DM";
|
|
1009
1008
|
DO: "DO";
|
|
1010
1009
|
TL: "TL";
|
|
1010
|
+
EC: "EC";
|
|
1011
1011
|
EG: "EG";
|
|
1012
1012
|
SV: "SV";
|
|
1013
1013
|
GQ: "GQ";
|
|
@@ -1282,8 +1282,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1282
1282
|
MATIC: "MATIC";
|
|
1283
1283
|
AVAX: "AVAX";
|
|
1284
1284
|
}>>;
|
|
1285
|
-
|
|
1286
|
-
EC: "EC";
|
|
1285
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
1287
1286
|
AF: "AF";
|
|
1288
1287
|
AL: "AL";
|
|
1289
1288
|
DZ: "DZ";
|
|
@@ -1337,6 +1336,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1337
1336
|
DM: "DM";
|
|
1338
1337
|
DO: "DO";
|
|
1339
1338
|
TL: "TL";
|
|
1339
|
+
EC: "EC";
|
|
1340
1340
|
EG: "EG";
|
|
1341
1341
|
SV: "SV";
|
|
1342
1342
|
GQ: "GQ";
|
|
@@ -1539,21 +1539,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1539
1539
|
}, z.core.$strip>;
|
|
1540
1540
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1541
1541
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1542
|
-
PREPARED: "PREPARED";
|
|
1543
|
-
FAILED: "FAILED";
|
|
1544
|
-
COMPLETED: "COMPLETED";
|
|
1545
1542
|
OPEN: "OPEN";
|
|
1546
1543
|
PROCESSING: "PROCESSING";
|
|
1547
1544
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1548
1545
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
1549
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
1550
1546
|
PREPARED: "PREPARED";
|
|
1551
|
-
FAILED: "FAILED";
|
|
1552
1547
|
COMPLETED: "COMPLETED";
|
|
1548
|
+
FAILED: "FAILED";
|
|
1549
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1553
1550
|
OPEN: "OPEN";
|
|
1554
1551
|
PROCESSING: "PROCESSING";
|
|
1555
1552
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1556
1553
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
1554
|
+
PREPARED: "PREPARED";
|
|
1555
|
+
COMPLETED: "COMPLETED";
|
|
1556
|
+
FAILED: "FAILED";
|
|
1557
1557
|
}>>]>>;
|
|
1558
1558
|
}, z.core.$strip>;
|
|
1559
1559
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1713,17 +1713,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1713
1713
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1714
1714
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1715
1715
|
PREPARED: "PREPARED";
|
|
1716
|
-
|
|
1716
|
+
COMPLETED: "COMPLETED";
|
|
1717
1717
|
FAILED: "FAILED";
|
|
1718
|
+
INITIALIZED: "INITIALIZED";
|
|
1718
1719
|
PENDING: "PENDING";
|
|
1719
|
-
COMPLETED: "COMPLETED";
|
|
1720
1720
|
CREATED: "CREATED";
|
|
1721
1721
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1722
1722
|
PREPARED: "PREPARED";
|
|
1723
|
-
|
|
1723
|
+
COMPLETED: "COMPLETED";
|
|
1724
1724
|
FAILED: "FAILED";
|
|
1725
|
+
INITIALIZED: "INITIALIZED";
|
|
1725
1726
|
PENDING: "PENDING";
|
|
1726
|
-
COMPLETED: "COMPLETED";
|
|
1727
1727
|
CREATED: "CREATED";
|
|
1728
1728
|
}>>]>>;
|
|
1729
1729
|
}, z.core.$strip>;
|
|
@@ -1808,6 +1808,16 @@ interface SyncAccountRestartInput extends z.infer<typeof syncAccountRestartInput
|
|
|
1808
1808
|
}
|
|
1809
1809
|
type SyncAccountRestartOutput = z.infer<typeof syncAccountRestartOutputSchema>;
|
|
1810
1810
|
|
|
1811
|
+
declare const syncAccountTerminateInputSchema: z.ZodObject<{
|
|
1812
|
+
accountId: z.ZodUUID;
|
|
1813
|
+
}, z.core.$strip>;
|
|
1814
|
+
declare const syncAccountTerminateOutputSchema: z.ZodObject<{
|
|
1815
|
+
instanceId: z.ZodString;
|
|
1816
|
+
}, z.core.$strip>;
|
|
1817
|
+
interface SyncAccountTerminateInput extends z.infer<typeof syncAccountTerminateInputSchema> {
|
|
1818
|
+
}
|
|
1819
|
+
type SyncAccountTerminateOutput = z.infer<typeof syncAccountTerminateOutputSchema>;
|
|
1820
|
+
|
|
1811
1821
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
1812
1822
|
account: drizzle_zod.BuildSchema<"insert", {
|
|
1813
1823
|
connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
@@ -2315,6 +2325,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2315
2325
|
syncAccount(input: SyncAccountInput): Promise<IRPCResponse<SyncAccountOutput>>;
|
|
2316
2326
|
syncAccountStatus(input: SyncAccountStatusInput): Promise<IRPCResponse<SyncAccountStatusOutput>>;
|
|
2317
2327
|
syncAccountRestart(input: SyncAccountRestartInput): Promise<IRPCResponse<SyncAccountRestartOutput>>;
|
|
2328
|
+
syncAccountTerminate(input: SyncAccountTerminateInput): Promise<IRPCResponse<SyncAccountTerminateOutput>>;
|
|
2318
2329
|
syncAccounts(options?: {
|
|
2319
2330
|
accounts?: AccountSelectType[];
|
|
2320
2331
|
}): Promise<IRPCResponse<void>>;
|
|
@@ -2323,7 +2334,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2323
2334
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2324
2335
|
paymentsToBatch: SendPaymentInput[];
|
|
2325
2336
|
}): Promise<IRPCResponse<{
|
|
2326
|
-
status: "
|
|
2337
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2327
2338
|
id: string;
|
|
2328
2339
|
createdAt: Date | null;
|
|
2329
2340
|
updatedAt: Date | null;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -3,8 +3,8 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
7
|
-
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.
|
|
6
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.CgiMSTo7.mjs';
|
|
7
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.b_ehHCuG.mjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import * as drizzle_zod from 'drizzle-zod';
|
|
10
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -202,8 +202,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
202
202
|
MATIC: "MATIC";
|
|
203
203
|
AVAX: "AVAX";
|
|
204
204
|
}>>;
|
|
205
|
-
|
|
206
|
-
EC: "EC";
|
|
205
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
207
206
|
AF: "AF";
|
|
208
207
|
AL: "AL";
|
|
209
208
|
DZ: "DZ";
|
|
@@ -257,6 +256,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
257
256
|
DM: "DM";
|
|
258
257
|
DO: "DO";
|
|
259
258
|
TL: "TL";
|
|
259
|
+
EC: "EC";
|
|
260
260
|
EG: "EG";
|
|
261
261
|
SV: "SV";
|
|
262
262
|
GQ: "GQ";
|
|
@@ -531,8 +531,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
531
531
|
MATIC: "MATIC";
|
|
532
532
|
AVAX: "AVAX";
|
|
533
533
|
}>>;
|
|
534
|
-
|
|
535
|
-
EC: "EC";
|
|
534
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
536
535
|
AF: "AF";
|
|
537
536
|
AL: "AL";
|
|
538
537
|
DZ: "DZ";
|
|
@@ -586,6 +585,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
586
585
|
DM: "DM";
|
|
587
586
|
DO: "DO";
|
|
588
587
|
TL: "TL";
|
|
588
|
+
EC: "EC";
|
|
589
589
|
EG: "EG";
|
|
590
590
|
SV: "SV";
|
|
591
591
|
GQ: "GQ";
|
|
@@ -953,8 +953,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
953
953
|
MATIC: "MATIC";
|
|
954
954
|
AVAX: "AVAX";
|
|
955
955
|
}>>;
|
|
956
|
-
|
|
957
|
-
EC: "EC";
|
|
956
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
958
957
|
AF: "AF";
|
|
959
958
|
AL: "AL";
|
|
960
959
|
DZ: "DZ";
|
|
@@ -1008,6 +1007,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1008
1007
|
DM: "DM";
|
|
1009
1008
|
DO: "DO";
|
|
1010
1009
|
TL: "TL";
|
|
1010
|
+
EC: "EC";
|
|
1011
1011
|
EG: "EG";
|
|
1012
1012
|
SV: "SV";
|
|
1013
1013
|
GQ: "GQ";
|
|
@@ -1282,8 +1282,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1282
1282
|
MATIC: "MATIC";
|
|
1283
1283
|
AVAX: "AVAX";
|
|
1284
1284
|
}>>;
|
|
1285
|
-
|
|
1286
|
-
EC: "EC";
|
|
1285
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
1287
1286
|
AF: "AF";
|
|
1288
1287
|
AL: "AL";
|
|
1289
1288
|
DZ: "DZ";
|
|
@@ -1337,6 +1336,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1337
1336
|
DM: "DM";
|
|
1338
1337
|
DO: "DO";
|
|
1339
1338
|
TL: "TL";
|
|
1339
|
+
EC: "EC";
|
|
1340
1340
|
EG: "EG";
|
|
1341
1341
|
SV: "SV";
|
|
1342
1342
|
GQ: "GQ";
|
|
@@ -1539,21 +1539,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1539
1539
|
}, z.core.$strip>;
|
|
1540
1540
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1541
1541
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1542
|
-
PREPARED: "PREPARED";
|
|
1543
|
-
FAILED: "FAILED";
|
|
1544
|
-
COMPLETED: "COMPLETED";
|
|
1545
1542
|
OPEN: "OPEN";
|
|
1546
1543
|
PROCESSING: "PROCESSING";
|
|
1547
1544
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1548
1545
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
1549
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
1550
1546
|
PREPARED: "PREPARED";
|
|
1551
|
-
FAILED: "FAILED";
|
|
1552
1547
|
COMPLETED: "COMPLETED";
|
|
1548
|
+
FAILED: "FAILED";
|
|
1549
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1553
1550
|
OPEN: "OPEN";
|
|
1554
1551
|
PROCESSING: "PROCESSING";
|
|
1555
1552
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1556
1553
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
1554
|
+
PREPARED: "PREPARED";
|
|
1555
|
+
COMPLETED: "COMPLETED";
|
|
1556
|
+
FAILED: "FAILED";
|
|
1557
1557
|
}>>]>>;
|
|
1558
1558
|
}, z.core.$strip>;
|
|
1559
1559
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1713,17 +1713,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1713
1713
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1714
1714
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1715
1715
|
PREPARED: "PREPARED";
|
|
1716
|
-
|
|
1716
|
+
COMPLETED: "COMPLETED";
|
|
1717
1717
|
FAILED: "FAILED";
|
|
1718
|
+
INITIALIZED: "INITIALIZED";
|
|
1718
1719
|
PENDING: "PENDING";
|
|
1719
|
-
COMPLETED: "COMPLETED";
|
|
1720
1720
|
CREATED: "CREATED";
|
|
1721
1721
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1722
1722
|
PREPARED: "PREPARED";
|
|
1723
|
-
|
|
1723
|
+
COMPLETED: "COMPLETED";
|
|
1724
1724
|
FAILED: "FAILED";
|
|
1725
|
+
INITIALIZED: "INITIALIZED";
|
|
1725
1726
|
PENDING: "PENDING";
|
|
1726
|
-
COMPLETED: "COMPLETED";
|
|
1727
1727
|
CREATED: "CREATED";
|
|
1728
1728
|
}>>]>>;
|
|
1729
1729
|
}, z.core.$strip>;
|
|
@@ -1808,6 +1808,16 @@ interface SyncAccountRestartInput extends z.infer<typeof syncAccountRestartInput
|
|
|
1808
1808
|
}
|
|
1809
1809
|
type SyncAccountRestartOutput = z.infer<typeof syncAccountRestartOutputSchema>;
|
|
1810
1810
|
|
|
1811
|
+
declare const syncAccountTerminateInputSchema: z.ZodObject<{
|
|
1812
|
+
accountId: z.ZodUUID;
|
|
1813
|
+
}, z.core.$strip>;
|
|
1814
|
+
declare const syncAccountTerminateOutputSchema: z.ZodObject<{
|
|
1815
|
+
instanceId: z.ZodString;
|
|
1816
|
+
}, z.core.$strip>;
|
|
1817
|
+
interface SyncAccountTerminateInput extends z.infer<typeof syncAccountTerminateInputSchema> {
|
|
1818
|
+
}
|
|
1819
|
+
type SyncAccountTerminateOutput = z.infer<typeof syncAccountTerminateOutputSchema>;
|
|
1820
|
+
|
|
1811
1821
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
1812
1822
|
account: drizzle_zod.BuildSchema<"insert", {
|
|
1813
1823
|
connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
@@ -2315,6 +2325,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2315
2325
|
syncAccount(input: SyncAccountInput): Promise<IRPCResponse<SyncAccountOutput>>;
|
|
2316
2326
|
syncAccountStatus(input: SyncAccountStatusInput): Promise<IRPCResponse<SyncAccountStatusOutput>>;
|
|
2317
2327
|
syncAccountRestart(input: SyncAccountRestartInput): Promise<IRPCResponse<SyncAccountRestartOutput>>;
|
|
2328
|
+
syncAccountTerminate(input: SyncAccountTerminateInput): Promise<IRPCResponse<SyncAccountTerminateOutput>>;
|
|
2318
2329
|
syncAccounts(options?: {
|
|
2319
2330
|
accounts?: AccountSelectType[];
|
|
2320
2331
|
}): Promise<IRPCResponse<void>>;
|
|
@@ -2323,7 +2334,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2323
2334
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2324
2335
|
paymentsToBatch: SendPaymentInput[];
|
|
2325
2336
|
}): Promise<IRPCResponse<{
|
|
2326
|
-
status: "
|
|
2337
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2327
2338
|
id: string;
|
|
2328
2339
|
createdAt: Date | null;
|
|
2329
2340
|
updatedAt: Date | null;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
7
|
-
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.
|
|
6
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.CgiMSTo7.js';
|
|
7
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank._W3dtG8P.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import * as drizzle_zod from 'drizzle-zod';
|
|
10
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -202,8 +202,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
202
202
|
MATIC: "MATIC";
|
|
203
203
|
AVAX: "AVAX";
|
|
204
204
|
}>>;
|
|
205
|
-
|
|
206
|
-
EC: "EC";
|
|
205
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
207
206
|
AF: "AF";
|
|
208
207
|
AL: "AL";
|
|
209
208
|
DZ: "DZ";
|
|
@@ -257,6 +256,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
257
256
|
DM: "DM";
|
|
258
257
|
DO: "DO";
|
|
259
258
|
TL: "TL";
|
|
259
|
+
EC: "EC";
|
|
260
260
|
EG: "EG";
|
|
261
261
|
SV: "SV";
|
|
262
262
|
GQ: "GQ";
|
|
@@ -531,8 +531,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
531
531
|
MATIC: "MATIC";
|
|
532
532
|
AVAX: "AVAX";
|
|
533
533
|
}>>;
|
|
534
|
-
|
|
535
|
-
EC: "EC";
|
|
534
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
536
535
|
AF: "AF";
|
|
537
536
|
AL: "AL";
|
|
538
537
|
DZ: "DZ";
|
|
@@ -586,6 +585,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
586
585
|
DM: "DM";
|
|
587
586
|
DO: "DO";
|
|
588
587
|
TL: "TL";
|
|
588
|
+
EC: "EC";
|
|
589
589
|
EG: "EG";
|
|
590
590
|
SV: "SV";
|
|
591
591
|
GQ: "GQ";
|
|
@@ -953,8 +953,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
953
953
|
MATIC: "MATIC";
|
|
954
954
|
AVAX: "AVAX";
|
|
955
955
|
}>>;
|
|
956
|
-
|
|
957
|
-
EC: "EC";
|
|
956
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
958
957
|
AF: "AF";
|
|
959
958
|
AL: "AL";
|
|
960
959
|
DZ: "DZ";
|
|
@@ -1008,6 +1007,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1008
1007
|
DM: "DM";
|
|
1009
1008
|
DO: "DO";
|
|
1010
1009
|
TL: "TL";
|
|
1010
|
+
EC: "EC";
|
|
1011
1011
|
EG: "EG";
|
|
1012
1012
|
SV: "SV";
|
|
1013
1013
|
GQ: "GQ";
|
|
@@ -1282,8 +1282,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1282
1282
|
MATIC: "MATIC";
|
|
1283
1283
|
AVAX: "AVAX";
|
|
1284
1284
|
}>>;
|
|
1285
|
-
|
|
1286
|
-
EC: "EC";
|
|
1285
|
+
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
1287
1286
|
AF: "AF";
|
|
1288
1287
|
AL: "AL";
|
|
1289
1288
|
DZ: "DZ";
|
|
@@ -1337,6 +1336,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
1337
1336
|
DM: "DM";
|
|
1338
1337
|
DO: "DO";
|
|
1339
1338
|
TL: "TL";
|
|
1339
|
+
EC: "EC";
|
|
1340
1340
|
EG: "EG";
|
|
1341
1341
|
SV: "SV";
|
|
1342
1342
|
GQ: "GQ";
|
|
@@ -1539,21 +1539,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1539
1539
|
}, z.core.$strip>;
|
|
1540
1540
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1541
1541
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1542
|
-
PREPARED: "PREPARED";
|
|
1543
|
-
FAILED: "FAILED";
|
|
1544
|
-
COMPLETED: "COMPLETED";
|
|
1545
1542
|
OPEN: "OPEN";
|
|
1546
1543
|
PROCESSING: "PROCESSING";
|
|
1547
1544
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1548
1545
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
1549
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
1550
1546
|
PREPARED: "PREPARED";
|
|
1551
|
-
FAILED: "FAILED";
|
|
1552
1547
|
COMPLETED: "COMPLETED";
|
|
1548
|
+
FAILED: "FAILED";
|
|
1549
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1553
1550
|
OPEN: "OPEN";
|
|
1554
1551
|
PROCESSING: "PROCESSING";
|
|
1555
1552
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1556
1553
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
1554
|
+
PREPARED: "PREPARED";
|
|
1555
|
+
COMPLETED: "COMPLETED";
|
|
1556
|
+
FAILED: "FAILED";
|
|
1557
1557
|
}>>]>>;
|
|
1558
1558
|
}, z.core.$strip>;
|
|
1559
1559
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1713,17 +1713,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1713
1713
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1714
1714
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1715
1715
|
PREPARED: "PREPARED";
|
|
1716
|
-
|
|
1716
|
+
COMPLETED: "COMPLETED";
|
|
1717
1717
|
FAILED: "FAILED";
|
|
1718
|
+
INITIALIZED: "INITIALIZED";
|
|
1718
1719
|
PENDING: "PENDING";
|
|
1719
|
-
COMPLETED: "COMPLETED";
|
|
1720
1720
|
CREATED: "CREATED";
|
|
1721
1721
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1722
1722
|
PREPARED: "PREPARED";
|
|
1723
|
-
|
|
1723
|
+
COMPLETED: "COMPLETED";
|
|
1724
1724
|
FAILED: "FAILED";
|
|
1725
|
+
INITIALIZED: "INITIALIZED";
|
|
1725
1726
|
PENDING: "PENDING";
|
|
1726
|
-
COMPLETED: "COMPLETED";
|
|
1727
1727
|
CREATED: "CREATED";
|
|
1728
1728
|
}>>]>>;
|
|
1729
1729
|
}, z.core.$strip>;
|
|
@@ -1808,6 +1808,16 @@ interface SyncAccountRestartInput extends z.infer<typeof syncAccountRestartInput
|
|
|
1808
1808
|
}
|
|
1809
1809
|
type SyncAccountRestartOutput = z.infer<typeof syncAccountRestartOutputSchema>;
|
|
1810
1810
|
|
|
1811
|
+
declare const syncAccountTerminateInputSchema: z.ZodObject<{
|
|
1812
|
+
accountId: z.ZodUUID;
|
|
1813
|
+
}, z.core.$strip>;
|
|
1814
|
+
declare const syncAccountTerminateOutputSchema: z.ZodObject<{
|
|
1815
|
+
instanceId: z.ZodString;
|
|
1816
|
+
}, z.core.$strip>;
|
|
1817
|
+
interface SyncAccountTerminateInput extends z.infer<typeof syncAccountTerminateInputSchema> {
|
|
1818
|
+
}
|
|
1819
|
+
type SyncAccountTerminateOutput = z.infer<typeof syncAccountTerminateOutputSchema>;
|
|
1820
|
+
|
|
1811
1821
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
1812
1822
|
account: drizzle_zod.BuildSchema<"insert", {
|
|
1813
1823
|
connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
@@ -2315,6 +2325,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2315
2325
|
syncAccount(input: SyncAccountInput): Promise<IRPCResponse<SyncAccountOutput>>;
|
|
2316
2326
|
syncAccountStatus(input: SyncAccountStatusInput): Promise<IRPCResponse<SyncAccountStatusOutput>>;
|
|
2317
2327
|
syncAccountRestart(input: SyncAccountRestartInput): Promise<IRPCResponse<SyncAccountRestartOutput>>;
|
|
2328
|
+
syncAccountTerminate(input: SyncAccountTerminateInput): Promise<IRPCResponse<SyncAccountTerminateOutput>>;
|
|
2318
2329
|
syncAccounts(options?: {
|
|
2319
2330
|
accounts?: AccountSelectType[];
|
|
2320
2331
|
}): Promise<IRPCResponse<void>>;
|
|
@@ -2323,7 +2334,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2323
2334
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2324
2335
|
paymentsToBatch: SendPaymentInput[];
|
|
2325
2336
|
}): Promise<IRPCResponse<{
|
|
2326
|
-
status: "
|
|
2337
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2327
2338
|
id: string;
|
|
2328
2339
|
createdAt: Date | null;
|
|
2329
2340
|
updatedAt: Date | null;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -354,6 +354,13 @@ z.object({
|
|
|
354
354
|
details: workflowInstanceStatusSchema
|
|
355
355
|
});
|
|
356
356
|
|
|
357
|
+
const syncAccountTerminateInputSchema = z.object({
|
|
358
|
+
accountId: z.uuid()
|
|
359
|
+
});
|
|
360
|
+
z.object({
|
|
361
|
+
instanceId: z.string()
|
|
362
|
+
});
|
|
363
|
+
|
|
357
364
|
const updateAccountInputSchema = z.object({
|
|
358
365
|
account: accountInsertSchema
|
|
359
366
|
});
|
|
@@ -580,6 +587,19 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
580
587
|
}
|
|
581
588
|
);
|
|
582
589
|
}
|
|
590
|
+
async syncAccountTerminate(input) {
|
|
591
|
+
return this.handleAction(
|
|
592
|
+
{ data: input, schema: syncAccountTerminateInputSchema },
|
|
593
|
+
{ successMessage: "Account sync workflow terminated" },
|
|
594
|
+
async ({ accountId }) => {
|
|
595
|
+
const instance = await this.env.SYNC_ACCOUNT_PAYMENTS_WORKFLOW.get(accountId);
|
|
596
|
+
await instance.terminate();
|
|
597
|
+
return {
|
|
598
|
+
instanceId: instance.id
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
);
|
|
602
|
+
}
|
|
583
603
|
async syncAccounts(options) {
|
|
584
604
|
return this.handleAction(
|
|
585
605
|
null,
|
|
@@ -83,10 +83,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
83
83
|
}>;
|
|
84
84
|
status: z.ZodEnum<{
|
|
85
85
|
PREPARED: "PREPARED";
|
|
86
|
-
|
|
86
|
+
COMPLETED: "COMPLETED";
|
|
87
87
|
FAILED: "FAILED";
|
|
88
|
+
INITIALIZED: "INITIALIZED";
|
|
88
89
|
PENDING: "PENDING";
|
|
89
|
-
COMPLETED: "COMPLETED";
|
|
90
90
|
CREATED: "CREATED";
|
|
91
91
|
}>;
|
|
92
92
|
batchId: z.ZodString;
|
|
@@ -166,7 +166,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
166
166
|
tableName: "batch";
|
|
167
167
|
dataType: "string";
|
|
168
168
|
columnType: "SQLiteText";
|
|
169
|
-
data: "
|
|
169
|
+
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
170
170
|
driverParam: string;
|
|
171
171
|
notNull: false;
|
|
172
172
|
hasDefault: false;
|
|
@@ -179,7 +179,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
179
179
|
generated: undefined;
|
|
180
180
|
}, {}, {
|
|
181
181
|
length: number | undefined;
|
|
182
|
-
$type: "
|
|
182
|
+
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
183
183
|
}>;
|
|
184
184
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
185
185
|
name: "payments";
|
|
@@ -475,7 +475,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
475
475
|
tableName: "payment";
|
|
476
476
|
dataType: "string";
|
|
477
477
|
columnType: "SQLiteText";
|
|
478
|
-
data: "PREPARED" | "
|
|
478
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
479
479
|
driverParam: string;
|
|
480
480
|
notNull: true;
|
|
481
481
|
hasDefault: false;
|
|
@@ -488,7 +488,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
488
488
|
generated: undefined;
|
|
489
489
|
}, {}, {
|
|
490
490
|
length: number | undefined;
|
|
491
|
-
$type: "PREPARED" | "
|
|
491
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
492
492
|
}>;
|
|
493
493
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
494
494
|
name: "status_reason";
|
|
@@ -83,10 +83,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
83
83
|
}>;
|
|
84
84
|
status: z.ZodEnum<{
|
|
85
85
|
PREPARED: "PREPARED";
|
|
86
|
-
|
|
86
|
+
COMPLETED: "COMPLETED";
|
|
87
87
|
FAILED: "FAILED";
|
|
88
|
+
INITIALIZED: "INITIALIZED";
|
|
88
89
|
PENDING: "PENDING";
|
|
89
|
-
COMPLETED: "COMPLETED";
|
|
90
90
|
CREATED: "CREATED";
|
|
91
91
|
}>;
|
|
92
92
|
batchId: z.ZodString;
|
|
@@ -166,7 +166,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
166
166
|
tableName: "batch";
|
|
167
167
|
dataType: "string";
|
|
168
168
|
columnType: "SQLiteText";
|
|
169
|
-
data: "
|
|
169
|
+
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
170
170
|
driverParam: string;
|
|
171
171
|
notNull: false;
|
|
172
172
|
hasDefault: false;
|
|
@@ -179,7 +179,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
179
179
|
generated: undefined;
|
|
180
180
|
}, {}, {
|
|
181
181
|
length: number | undefined;
|
|
182
|
-
$type: "
|
|
182
|
+
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
183
183
|
}>;
|
|
184
184
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
185
185
|
name: "payments";
|
|
@@ -475,7 +475,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
475
475
|
tableName: "payment";
|
|
476
476
|
dataType: "string";
|
|
477
477
|
columnType: "SQLiteText";
|
|
478
|
-
data: "PREPARED" | "
|
|
478
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
479
479
|
driverParam: string;
|
|
480
480
|
notNull: true;
|
|
481
481
|
hasDefault: false;
|
|
@@ -488,7 +488,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
488
488
|
generated: undefined;
|
|
489
489
|
}, {}, {
|
|
490
490
|
length: number | undefined;
|
|
491
|
-
$type: "PREPARED" | "
|
|
491
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
492
492
|
}>;
|
|
493
493
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
494
494
|
name: "status_reason";
|
|
@@ -83,10 +83,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
83
83
|
}>;
|
|
84
84
|
status: z.ZodEnum<{
|
|
85
85
|
PREPARED: "PREPARED";
|
|
86
|
-
|
|
86
|
+
COMPLETED: "COMPLETED";
|
|
87
87
|
FAILED: "FAILED";
|
|
88
|
+
INITIALIZED: "INITIALIZED";
|
|
88
89
|
PENDING: "PENDING";
|
|
89
|
-
COMPLETED: "COMPLETED";
|
|
90
90
|
CREATED: "CREATED";
|
|
91
91
|
}>;
|
|
92
92
|
batchId: z.ZodString;
|
|
@@ -166,7 +166,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
166
166
|
tableName: "batch";
|
|
167
167
|
dataType: "string";
|
|
168
168
|
columnType: "SQLiteText";
|
|
169
|
-
data: "
|
|
169
|
+
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
170
170
|
driverParam: string;
|
|
171
171
|
notNull: false;
|
|
172
172
|
hasDefault: false;
|
|
@@ -179,7 +179,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
179
179
|
generated: undefined;
|
|
180
180
|
}, {}, {
|
|
181
181
|
length: number | undefined;
|
|
182
|
-
$type: "
|
|
182
|
+
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
183
183
|
}>;
|
|
184
184
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
185
185
|
name: "payments";
|
|
@@ -475,7 +475,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
475
475
|
tableName: "payment";
|
|
476
476
|
dataType: "string";
|
|
477
477
|
columnType: "SQLiteText";
|
|
478
|
-
data: "PREPARED" | "
|
|
478
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
479
479
|
driverParam: string;
|
|
480
480
|
notNull: true;
|
|
481
481
|
hasDefault: false;
|
|
@@ -488,7 +488,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
488
488
|
generated: undefined;
|
|
489
489
|
}, {}, {
|
|
490
490
|
length: number | undefined;
|
|
491
|
-
$type: "PREPARED" | "
|
|
491
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
492
492
|
}>;
|
|
493
493
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
494
494
|
name: "status_reason";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.CgiMSTo7.cjs';
|
|
4
4
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.CgiMSTo7.js';
|
|
4
4
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.CgiMSTo7.mjs';
|
|
4
4
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.DV-Kvdzh.cjs';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.DV-Kvdzh.cjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.CgiMSTo7.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.CgiMSTo7.cjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.b_ehHCuG.mjs';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.b_ehHCuG.mjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.CgiMSTo7.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.CgiMSTo7.mjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank._W3dtG8P.js';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank._W3dtG8P.js';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.CgiMSTo7.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.CgiMSTo7.js';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
|