@develit-services/bank 0.0.44 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/schema.cjs +1 -1
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/database/schema.mjs +1 -1
- package/dist/export/worker.cjs +113 -568
- package/dist/export/worker.d.cts +81 -14
- package/dist/export/worker.d.mts +82 -13
- package/dist/export/worker.d.ts +81 -14
- package/dist/export/worker.mjs +105 -557
- package/dist/export/workflows.cjs +21 -0
- package/dist/export/workflows.d.cts +2 -0
- package/dist/export/workflows.d.mts +2 -0
- package/dist/export/workflows.d.ts +2 -0
- package/dist/export/workflows.mjs +15 -0
- package/dist/export/wrangler.cjs +7 -0
- package/dist/export/wrangler.d.cts +5 -0
- package/dist/export/wrangler.d.mts +5 -0
- package/dist/export/wrangler.d.ts +5 -0
- package/dist/export/wrangler.mjs +7 -0
- package/dist/shared/{bank.BVzOzXdX.cjs → bank.3YYIj-n6.cjs} +11 -9
- package/dist/shared/{bank.6WoCPIFy.mjs → bank.B72e0ibs.mjs} +1 -1
- package/dist/shared/{bank.BPcrbUBa.cjs → bank.BgpXGC_1.cjs} +1 -1
- package/dist/shared/{bank.CCilUVCi.d.ts → bank.BriEYREq.d.cts} +4 -4
- package/dist/shared/{bank.CCilUVCi.d.cts → bank.BriEYREq.d.mts} +4 -4
- package/dist/shared/{bank.CCilUVCi.d.mts → bank.BriEYREq.d.ts} +4 -4
- package/dist/shared/bank.CH22Zrdv.d.cts +20 -0
- package/dist/shared/bank.CH22Zrdv.d.mts +20 -0
- package/dist/shared/bank.CH22Zrdv.d.ts +20 -0
- package/dist/shared/{bank.BWcFhTu1.mjs → bank.CcKNlFRd.mjs} +11 -9
- package/dist/shared/{bank.DmzkJQVU.d.cts → bank.DSZbtb1J.d.mts} +33 -29
- package/dist/shared/{bank.0KTS9nMz.d.ts → bank.Ddhhr_rz.d.ts} +33 -29
- package/dist/shared/{bank.NTyp2XAv.d.mts → bank.DqRaP8LS.d.cts} +33 -29
- package/dist/shared/bank.GMK4QNvo.cjs +276 -0
- package/dist/shared/bank.jyyw3_3-.mjs +267 -0
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +16 -9
- package/dist/types.d.mts +16 -9
- package/dist/types.d.ts +16 -9
- package/dist/types.mjs +2 -2
- package/package.json +6 -1
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
export { w as BankWorkflows } from '../shared/bank.CH22Zrdv.cjs';
|
|
1
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
3
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
6
|
-
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.BriEYREq.cjs';
|
|
7
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.DqRaP8LS.cjs';
|
|
7
8
|
import { z } from 'zod';
|
|
8
9
|
import * as drizzle_zod from 'drizzle-zod';
|
|
9
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -1734,9 +1735,77 @@ type GetPaymentsOutput = {
|
|
|
1734
1735
|
declare const syncAccountInputSchema: z.ZodObject<{
|
|
1735
1736
|
accountId: z.ZodUUID;
|
|
1736
1737
|
}, z.core.$strip>;
|
|
1738
|
+
declare const syncAccountOutputSchema: z.ZodObject<{
|
|
1739
|
+
instanceId: z.ZodString;
|
|
1740
|
+
details: z.ZodObject<{
|
|
1741
|
+
status: z.ZodEnum<{
|
|
1742
|
+
unknown: "unknown";
|
|
1743
|
+
queued: "queued";
|
|
1744
|
+
running: "running";
|
|
1745
|
+
paused: "paused";
|
|
1746
|
+
errored: "errored";
|
|
1747
|
+
terminated: "terminated";
|
|
1748
|
+
complete: "complete";
|
|
1749
|
+
waiting: "waiting";
|
|
1750
|
+
waitingForPause: "waitingForPause";
|
|
1751
|
+
}>;
|
|
1752
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1754
|
+
}, z.core.$strip>;
|
|
1755
|
+
}, z.core.$strip>;
|
|
1737
1756
|
interface SyncAccountInput extends z.infer<typeof syncAccountInputSchema> {
|
|
1738
1757
|
}
|
|
1739
|
-
type SyncAccountOutput =
|
|
1758
|
+
type SyncAccountOutput = z.infer<typeof syncAccountOutputSchema>;
|
|
1759
|
+
|
|
1760
|
+
declare const syncAccountStatusInputSchema: z.ZodObject<{
|
|
1761
|
+
accountId: z.ZodUUID;
|
|
1762
|
+
}, z.core.$strip>;
|
|
1763
|
+
declare const syncAccountStatusOutputSchema: z.ZodObject<{
|
|
1764
|
+
instanceId: z.ZodString;
|
|
1765
|
+
details: z.ZodObject<{
|
|
1766
|
+
status: z.ZodEnum<{
|
|
1767
|
+
unknown: "unknown";
|
|
1768
|
+
queued: "queued";
|
|
1769
|
+
running: "running";
|
|
1770
|
+
paused: "paused";
|
|
1771
|
+
errored: "errored";
|
|
1772
|
+
terminated: "terminated";
|
|
1773
|
+
complete: "complete";
|
|
1774
|
+
waiting: "waiting";
|
|
1775
|
+
waitingForPause: "waitingForPause";
|
|
1776
|
+
}>;
|
|
1777
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1778
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1779
|
+
}, z.core.$strip>;
|
|
1780
|
+
}, z.core.$strip>;
|
|
1781
|
+
interface SyncAccountStatusInput extends z.infer<typeof syncAccountStatusInputSchema> {
|
|
1782
|
+
}
|
|
1783
|
+
type SyncAccountStatusOutput = z.infer<typeof syncAccountStatusOutputSchema>;
|
|
1784
|
+
|
|
1785
|
+
declare const syncAccountRestartInputSchema: z.ZodObject<{
|
|
1786
|
+
accountId: z.ZodUUID;
|
|
1787
|
+
}, z.core.$strip>;
|
|
1788
|
+
declare const syncAccountRestartOutputSchema: z.ZodObject<{
|
|
1789
|
+
instanceId: z.ZodString;
|
|
1790
|
+
details: z.ZodObject<{
|
|
1791
|
+
status: z.ZodEnum<{
|
|
1792
|
+
unknown: "unknown";
|
|
1793
|
+
queued: "queued";
|
|
1794
|
+
running: "running";
|
|
1795
|
+
paused: "paused";
|
|
1796
|
+
errored: "errored";
|
|
1797
|
+
terminated: "terminated";
|
|
1798
|
+
complete: "complete";
|
|
1799
|
+
waiting: "waiting";
|
|
1800
|
+
waitingForPause: "waitingForPause";
|
|
1801
|
+
}>;
|
|
1802
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1803
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1804
|
+
}, z.core.$strip>;
|
|
1805
|
+
}, z.core.$strip>;
|
|
1806
|
+
interface SyncAccountRestartInput extends z.infer<typeof syncAccountRestartInputSchema> {
|
|
1807
|
+
}
|
|
1808
|
+
type SyncAccountRestartOutput = z.infer<typeof syncAccountRestartOutputSchema>;
|
|
1740
1809
|
|
|
1741
1810
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
1742
1811
|
account: drizzle_zod.BuildSchema<"insert", {
|
|
@@ -1833,15 +1902,15 @@ declare const updateAccountInputSchema: z.ZodObject<{
|
|
|
1833
1902
|
identity: undefined;
|
|
1834
1903
|
generated: undefined;
|
|
1835
1904
|
}, {}, {}>;
|
|
1836
|
-
|
|
1837
|
-
name: "
|
|
1905
|
+
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1906
|
+
name: "sync_interval_s";
|
|
1838
1907
|
tableName: "account";
|
|
1839
1908
|
dataType: "number";
|
|
1840
1909
|
columnType: "SQLiteInteger";
|
|
1841
1910
|
data: number;
|
|
1842
1911
|
driverParam: number;
|
|
1843
|
-
notNull:
|
|
1844
|
-
hasDefault:
|
|
1912
|
+
notNull: true;
|
|
1913
|
+
hasDefault: true;
|
|
1845
1914
|
isPrimaryKey: false;
|
|
1846
1915
|
isAutoincrement: false;
|
|
1847
1916
|
hasRuntimeDefault: false;
|
|
@@ -2221,7 +2290,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2221
2290
|
bankRefId: string;
|
|
2222
2291
|
batchSizeLimit: number;
|
|
2223
2292
|
sync: boolean;
|
|
2224
|
-
|
|
2293
|
+
syncIntervalS: number;
|
|
2225
2294
|
lastSyncedAt: Date | null;
|
|
2226
2295
|
holderName: string;
|
|
2227
2296
|
number: string | null;
|
|
@@ -2250,6 +2319,8 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2250
2319
|
_accountFetchInterval(connectorKey: ConnectorKey): number;
|
|
2251
2320
|
getPayments(input: GetPaymentsInput): Promise<IRPCResponse<GetPaymentsOutput>>;
|
|
2252
2321
|
syncAccount(input: SyncAccountInput): Promise<IRPCResponse<SyncAccountOutput>>;
|
|
2322
|
+
syncAccountStatus(input: SyncAccountStatusInput): Promise<IRPCResponse<SyncAccountStatusOutput>>;
|
|
2323
|
+
syncAccountRestart(input: SyncAccountRestartInput): Promise<IRPCResponse<SyncAccountRestartOutput>>;
|
|
2253
2324
|
syncAccounts(options?: {
|
|
2254
2325
|
accounts?: AccountSelectType[];
|
|
2255
2326
|
}): Promise<IRPCResponse<void>>;
|
|
@@ -2258,14 +2329,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2258
2329
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2259
2330
|
paymentsToBatch: SendPaymentInput[];
|
|
2260
2331
|
}): Promise<IRPCResponse<{
|
|
2332
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2261
2333
|
id: string;
|
|
2262
2334
|
createdAt: Date | null;
|
|
2263
2335
|
updatedAt: Date | null;
|
|
2264
2336
|
deletedAt: Date | null;
|
|
2337
|
+
accountId: string | null;
|
|
2265
2338
|
batchPaymentInitiatedAt: Date | null;
|
|
2266
2339
|
authorizationUrls: string | string[] | null;
|
|
2267
|
-
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2268
|
-
accountId: string | null;
|
|
2269
2340
|
payments: PaymentInsertType[];
|
|
2270
2341
|
metadata: object | null;
|
|
2271
2342
|
}[] | undefined>>;
|
|
@@ -2284,8 +2355,4 @@ declare function defineBankService({ config, }: {
|
|
|
2284
2355
|
config: ConfigEnvironmentBank;
|
|
2285
2356
|
}): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
2286
2357
|
|
|
2287
|
-
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
2288
|
-
|
|
2289
|
-
// @ts-ignore
|
|
2290
|
-
export = _default;
|
|
2291
2358
|
export { defineBankService };
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
export { w as BankWorkflows } from '../shared/bank.CH22Zrdv.mjs';
|
|
1
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
3
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
6
|
-
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.BriEYREq.mjs';
|
|
7
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.DSZbtb1J.mjs';
|
|
7
8
|
import { z } from 'zod';
|
|
8
9
|
import * as drizzle_zod from 'drizzle-zod';
|
|
9
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -1734,9 +1735,77 @@ type GetPaymentsOutput = {
|
|
|
1734
1735
|
declare const syncAccountInputSchema: z.ZodObject<{
|
|
1735
1736
|
accountId: z.ZodUUID;
|
|
1736
1737
|
}, z.core.$strip>;
|
|
1738
|
+
declare const syncAccountOutputSchema: z.ZodObject<{
|
|
1739
|
+
instanceId: z.ZodString;
|
|
1740
|
+
details: z.ZodObject<{
|
|
1741
|
+
status: z.ZodEnum<{
|
|
1742
|
+
unknown: "unknown";
|
|
1743
|
+
queued: "queued";
|
|
1744
|
+
running: "running";
|
|
1745
|
+
paused: "paused";
|
|
1746
|
+
errored: "errored";
|
|
1747
|
+
terminated: "terminated";
|
|
1748
|
+
complete: "complete";
|
|
1749
|
+
waiting: "waiting";
|
|
1750
|
+
waitingForPause: "waitingForPause";
|
|
1751
|
+
}>;
|
|
1752
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1754
|
+
}, z.core.$strip>;
|
|
1755
|
+
}, z.core.$strip>;
|
|
1737
1756
|
interface SyncAccountInput extends z.infer<typeof syncAccountInputSchema> {
|
|
1738
1757
|
}
|
|
1739
|
-
type SyncAccountOutput =
|
|
1758
|
+
type SyncAccountOutput = z.infer<typeof syncAccountOutputSchema>;
|
|
1759
|
+
|
|
1760
|
+
declare const syncAccountStatusInputSchema: z.ZodObject<{
|
|
1761
|
+
accountId: z.ZodUUID;
|
|
1762
|
+
}, z.core.$strip>;
|
|
1763
|
+
declare const syncAccountStatusOutputSchema: z.ZodObject<{
|
|
1764
|
+
instanceId: z.ZodString;
|
|
1765
|
+
details: z.ZodObject<{
|
|
1766
|
+
status: z.ZodEnum<{
|
|
1767
|
+
unknown: "unknown";
|
|
1768
|
+
queued: "queued";
|
|
1769
|
+
running: "running";
|
|
1770
|
+
paused: "paused";
|
|
1771
|
+
errored: "errored";
|
|
1772
|
+
terminated: "terminated";
|
|
1773
|
+
complete: "complete";
|
|
1774
|
+
waiting: "waiting";
|
|
1775
|
+
waitingForPause: "waitingForPause";
|
|
1776
|
+
}>;
|
|
1777
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1778
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1779
|
+
}, z.core.$strip>;
|
|
1780
|
+
}, z.core.$strip>;
|
|
1781
|
+
interface SyncAccountStatusInput extends z.infer<typeof syncAccountStatusInputSchema> {
|
|
1782
|
+
}
|
|
1783
|
+
type SyncAccountStatusOutput = z.infer<typeof syncAccountStatusOutputSchema>;
|
|
1784
|
+
|
|
1785
|
+
declare const syncAccountRestartInputSchema: z.ZodObject<{
|
|
1786
|
+
accountId: z.ZodUUID;
|
|
1787
|
+
}, z.core.$strip>;
|
|
1788
|
+
declare const syncAccountRestartOutputSchema: z.ZodObject<{
|
|
1789
|
+
instanceId: z.ZodString;
|
|
1790
|
+
details: z.ZodObject<{
|
|
1791
|
+
status: z.ZodEnum<{
|
|
1792
|
+
unknown: "unknown";
|
|
1793
|
+
queued: "queued";
|
|
1794
|
+
running: "running";
|
|
1795
|
+
paused: "paused";
|
|
1796
|
+
errored: "errored";
|
|
1797
|
+
terminated: "terminated";
|
|
1798
|
+
complete: "complete";
|
|
1799
|
+
waiting: "waiting";
|
|
1800
|
+
waitingForPause: "waitingForPause";
|
|
1801
|
+
}>;
|
|
1802
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1803
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1804
|
+
}, z.core.$strip>;
|
|
1805
|
+
}, z.core.$strip>;
|
|
1806
|
+
interface SyncAccountRestartInput extends z.infer<typeof syncAccountRestartInputSchema> {
|
|
1807
|
+
}
|
|
1808
|
+
type SyncAccountRestartOutput = z.infer<typeof syncAccountRestartOutputSchema>;
|
|
1740
1809
|
|
|
1741
1810
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
1742
1811
|
account: drizzle_zod.BuildSchema<"insert", {
|
|
@@ -1833,15 +1902,15 @@ declare const updateAccountInputSchema: z.ZodObject<{
|
|
|
1833
1902
|
identity: undefined;
|
|
1834
1903
|
generated: undefined;
|
|
1835
1904
|
}, {}, {}>;
|
|
1836
|
-
|
|
1837
|
-
name: "
|
|
1905
|
+
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1906
|
+
name: "sync_interval_s";
|
|
1838
1907
|
tableName: "account";
|
|
1839
1908
|
dataType: "number";
|
|
1840
1909
|
columnType: "SQLiteInteger";
|
|
1841
1910
|
data: number;
|
|
1842
1911
|
driverParam: number;
|
|
1843
|
-
notNull:
|
|
1844
|
-
hasDefault:
|
|
1912
|
+
notNull: true;
|
|
1913
|
+
hasDefault: true;
|
|
1845
1914
|
isPrimaryKey: false;
|
|
1846
1915
|
isAutoincrement: false;
|
|
1847
1916
|
hasRuntimeDefault: false;
|
|
@@ -2221,7 +2290,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2221
2290
|
bankRefId: string;
|
|
2222
2291
|
batchSizeLimit: number;
|
|
2223
2292
|
sync: boolean;
|
|
2224
|
-
|
|
2293
|
+
syncIntervalS: number;
|
|
2225
2294
|
lastSyncedAt: Date | null;
|
|
2226
2295
|
holderName: string;
|
|
2227
2296
|
number: string | null;
|
|
@@ -2250,6 +2319,8 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2250
2319
|
_accountFetchInterval(connectorKey: ConnectorKey): number;
|
|
2251
2320
|
getPayments(input: GetPaymentsInput): Promise<IRPCResponse<GetPaymentsOutput>>;
|
|
2252
2321
|
syncAccount(input: SyncAccountInput): Promise<IRPCResponse<SyncAccountOutput>>;
|
|
2322
|
+
syncAccountStatus(input: SyncAccountStatusInput): Promise<IRPCResponse<SyncAccountStatusOutput>>;
|
|
2323
|
+
syncAccountRestart(input: SyncAccountRestartInput): Promise<IRPCResponse<SyncAccountRestartOutput>>;
|
|
2253
2324
|
syncAccounts(options?: {
|
|
2254
2325
|
accounts?: AccountSelectType[];
|
|
2255
2326
|
}): Promise<IRPCResponse<void>>;
|
|
@@ -2258,14 +2329,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2258
2329
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2259
2330
|
paymentsToBatch: SendPaymentInput[];
|
|
2260
2331
|
}): Promise<IRPCResponse<{
|
|
2332
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2261
2333
|
id: string;
|
|
2262
2334
|
createdAt: Date | null;
|
|
2263
2335
|
updatedAt: Date | null;
|
|
2264
2336
|
deletedAt: Date | null;
|
|
2337
|
+
accountId: string | null;
|
|
2265
2338
|
batchPaymentInitiatedAt: Date | null;
|
|
2266
2339
|
authorizationUrls: string | string[] | null;
|
|
2267
|
-
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2268
|
-
accountId: string | null;
|
|
2269
2340
|
payments: PaymentInsertType[];
|
|
2270
2341
|
metadata: object | null;
|
|
2271
2342
|
}[] | undefined>>;
|
|
@@ -2284,6 +2355,4 @@ declare function defineBankService({ config, }: {
|
|
|
2284
2355
|
config: ConfigEnvironmentBank;
|
|
2285
2356
|
}): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
2286
2357
|
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
export { _default as default, defineBankService };
|
|
2358
|
+
export { defineBankService };
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
export { w as BankWorkflows } from '../shared/bank.CH22Zrdv.js';
|
|
1
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
3
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
6
|
-
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.BriEYREq.js';
|
|
7
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.Ddhhr_rz.js';
|
|
7
8
|
import { z } from 'zod';
|
|
8
9
|
import * as drizzle_zod from 'drizzle-zod';
|
|
9
10
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -1734,9 +1735,77 @@ type GetPaymentsOutput = {
|
|
|
1734
1735
|
declare const syncAccountInputSchema: z.ZodObject<{
|
|
1735
1736
|
accountId: z.ZodUUID;
|
|
1736
1737
|
}, z.core.$strip>;
|
|
1738
|
+
declare const syncAccountOutputSchema: z.ZodObject<{
|
|
1739
|
+
instanceId: z.ZodString;
|
|
1740
|
+
details: z.ZodObject<{
|
|
1741
|
+
status: z.ZodEnum<{
|
|
1742
|
+
unknown: "unknown";
|
|
1743
|
+
queued: "queued";
|
|
1744
|
+
running: "running";
|
|
1745
|
+
paused: "paused";
|
|
1746
|
+
errored: "errored";
|
|
1747
|
+
terminated: "terminated";
|
|
1748
|
+
complete: "complete";
|
|
1749
|
+
waiting: "waiting";
|
|
1750
|
+
waitingForPause: "waitingForPause";
|
|
1751
|
+
}>;
|
|
1752
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1753
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1754
|
+
}, z.core.$strip>;
|
|
1755
|
+
}, z.core.$strip>;
|
|
1737
1756
|
interface SyncAccountInput extends z.infer<typeof syncAccountInputSchema> {
|
|
1738
1757
|
}
|
|
1739
|
-
type SyncAccountOutput =
|
|
1758
|
+
type SyncAccountOutput = z.infer<typeof syncAccountOutputSchema>;
|
|
1759
|
+
|
|
1760
|
+
declare const syncAccountStatusInputSchema: z.ZodObject<{
|
|
1761
|
+
accountId: z.ZodUUID;
|
|
1762
|
+
}, z.core.$strip>;
|
|
1763
|
+
declare const syncAccountStatusOutputSchema: z.ZodObject<{
|
|
1764
|
+
instanceId: z.ZodString;
|
|
1765
|
+
details: z.ZodObject<{
|
|
1766
|
+
status: z.ZodEnum<{
|
|
1767
|
+
unknown: "unknown";
|
|
1768
|
+
queued: "queued";
|
|
1769
|
+
running: "running";
|
|
1770
|
+
paused: "paused";
|
|
1771
|
+
errored: "errored";
|
|
1772
|
+
terminated: "terminated";
|
|
1773
|
+
complete: "complete";
|
|
1774
|
+
waiting: "waiting";
|
|
1775
|
+
waitingForPause: "waitingForPause";
|
|
1776
|
+
}>;
|
|
1777
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1778
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1779
|
+
}, z.core.$strip>;
|
|
1780
|
+
}, z.core.$strip>;
|
|
1781
|
+
interface SyncAccountStatusInput extends z.infer<typeof syncAccountStatusInputSchema> {
|
|
1782
|
+
}
|
|
1783
|
+
type SyncAccountStatusOutput = z.infer<typeof syncAccountStatusOutputSchema>;
|
|
1784
|
+
|
|
1785
|
+
declare const syncAccountRestartInputSchema: z.ZodObject<{
|
|
1786
|
+
accountId: z.ZodUUID;
|
|
1787
|
+
}, z.core.$strip>;
|
|
1788
|
+
declare const syncAccountRestartOutputSchema: z.ZodObject<{
|
|
1789
|
+
instanceId: z.ZodString;
|
|
1790
|
+
details: z.ZodObject<{
|
|
1791
|
+
status: z.ZodEnum<{
|
|
1792
|
+
unknown: "unknown";
|
|
1793
|
+
queued: "queued";
|
|
1794
|
+
running: "running";
|
|
1795
|
+
paused: "paused";
|
|
1796
|
+
errored: "errored";
|
|
1797
|
+
terminated: "terminated";
|
|
1798
|
+
complete: "complete";
|
|
1799
|
+
waiting: "waiting";
|
|
1800
|
+
waitingForPause: "waitingForPause";
|
|
1801
|
+
}>;
|
|
1802
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1803
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
1804
|
+
}, z.core.$strip>;
|
|
1805
|
+
}, z.core.$strip>;
|
|
1806
|
+
interface SyncAccountRestartInput extends z.infer<typeof syncAccountRestartInputSchema> {
|
|
1807
|
+
}
|
|
1808
|
+
type SyncAccountRestartOutput = z.infer<typeof syncAccountRestartOutputSchema>;
|
|
1740
1809
|
|
|
1741
1810
|
declare const updateAccountInputSchema: z.ZodObject<{
|
|
1742
1811
|
account: drizzle_zod.BuildSchema<"insert", {
|
|
@@ -1833,15 +1902,15 @@ declare const updateAccountInputSchema: z.ZodObject<{
|
|
|
1833
1902
|
identity: undefined;
|
|
1834
1903
|
generated: undefined;
|
|
1835
1904
|
}, {}, {}>;
|
|
1836
|
-
|
|
1837
|
-
name: "
|
|
1905
|
+
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1906
|
+
name: "sync_interval_s";
|
|
1838
1907
|
tableName: "account";
|
|
1839
1908
|
dataType: "number";
|
|
1840
1909
|
columnType: "SQLiteInteger";
|
|
1841
1910
|
data: number;
|
|
1842
1911
|
driverParam: number;
|
|
1843
|
-
notNull:
|
|
1844
|
-
hasDefault:
|
|
1912
|
+
notNull: true;
|
|
1913
|
+
hasDefault: true;
|
|
1845
1914
|
isPrimaryKey: false;
|
|
1846
1915
|
isAutoincrement: false;
|
|
1847
1916
|
hasRuntimeDefault: false;
|
|
@@ -2221,7 +2290,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2221
2290
|
bankRefId: string;
|
|
2222
2291
|
batchSizeLimit: number;
|
|
2223
2292
|
sync: boolean;
|
|
2224
|
-
|
|
2293
|
+
syncIntervalS: number;
|
|
2225
2294
|
lastSyncedAt: Date | null;
|
|
2226
2295
|
holderName: string;
|
|
2227
2296
|
number: string | null;
|
|
@@ -2250,6 +2319,8 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2250
2319
|
_accountFetchInterval(connectorKey: ConnectorKey): number;
|
|
2251
2320
|
getPayments(input: GetPaymentsInput): Promise<IRPCResponse<GetPaymentsOutput>>;
|
|
2252
2321
|
syncAccount(input: SyncAccountInput): Promise<IRPCResponse<SyncAccountOutput>>;
|
|
2322
|
+
syncAccountStatus(input: SyncAccountStatusInput): Promise<IRPCResponse<SyncAccountStatusOutput>>;
|
|
2323
|
+
syncAccountRestart(input: SyncAccountRestartInput): Promise<IRPCResponse<SyncAccountRestartOutput>>;
|
|
2253
2324
|
syncAccounts(options?: {
|
|
2254
2325
|
accounts?: AccountSelectType[];
|
|
2255
2326
|
}): Promise<IRPCResponse<void>>;
|
|
@@ -2258,14 +2329,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2258
2329
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2259
2330
|
paymentsToBatch: SendPaymentInput[];
|
|
2260
2331
|
}): Promise<IRPCResponse<{
|
|
2332
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2261
2333
|
id: string;
|
|
2262
2334
|
createdAt: Date | null;
|
|
2263
2335
|
updatedAt: Date | null;
|
|
2264
2336
|
deletedAt: Date | null;
|
|
2337
|
+
accountId: string | null;
|
|
2265
2338
|
batchPaymentInitiatedAt: Date | null;
|
|
2266
2339
|
authorizationUrls: string | string[] | null;
|
|
2267
|
-
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
2268
|
-
accountId: string | null;
|
|
2269
2340
|
payments: PaymentInsertType[];
|
|
2270
2341
|
metadata: object | null;
|
|
2271
2342
|
}[] | undefined>>;
|
|
@@ -2284,8 +2355,4 @@ declare function defineBankService({ config, }: {
|
|
|
2284
2355
|
config: ConfigEnvironmentBank;
|
|
2285
2356
|
}): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
2286
2357
|
|
|
2287
|
-
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
2288
|
-
|
|
2289
|
-
// @ts-ignore
|
|
2290
|
-
export = _default;
|
|
2291
2358
|
export { defineBankService };
|