@develit-services/bank 0.0.8 → 0.0.10
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/@types.d.cts +4 -4
- package/dist/@types.d.mts +4 -4
- package/dist/@types.d.ts +4 -4
- 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 +427 -422
- package/dist/export/worker.d.cts +8 -5
- package/dist/export/worker.d.mts +8 -5
- package/dist/export/worker.d.ts +8 -5
- package/dist/export/worker.mjs +427 -422
- package/dist/shared/{bank.C28GtA5s.d.cts → bank.D1VhQbrS.d.ts} +9 -5
- package/dist/shared/{bank.LCrZu9Ic.d.mts → bank.DrgcXMkG.d.cts} +9 -5
- package/dist/shared/{bank.CBNQZ5Pd.d.cts → bank.dxpKOn1t.d.cts} +6 -6
- package/dist/shared/{bank.CBNQZ5Pd.d.mts → bank.dxpKOn1t.d.mts} +6 -6
- package/dist/shared/{bank.CBNQZ5Pd.d.ts → bank.dxpKOn1t.d.ts} +6 -6
- package/dist/shared/{bank.atHmEWmc.d.ts → bank.yLyF54-_.d.mts} +9 -5
- package/package.json +1 -1
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.dxpKOn1t.cjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { I as IBankConnector,
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.DrgcXMkG.cjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -198,9 +198,10 @@ interface GetBatchesOutput {
|
|
|
198
198
|
declare const BankServiceBase_base: (abstract new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
|
|
199
199
|
declare class BankServiceBase extends BankServiceBase_base {
|
|
200
200
|
readonly name: string;
|
|
201
|
+
readonly configAccounts: ConfigEnvironmentBankAccount;
|
|
201
202
|
readonly db: DrizzleD1Database<typeof tables>;
|
|
202
203
|
protected bankConnector: IBankConnector;
|
|
203
|
-
constructor(ctx: ExecutionContext, env: BankEnv);
|
|
204
|
+
constructor(ctx: ExecutionContext, env: BankEnv, configAccounts: ConfigEnvironmentBankAccount);
|
|
204
205
|
protected get accounts(): ConfigBankAccount[];
|
|
205
206
|
accountFetchInterval(connectorKey: ConnectorKey): number;
|
|
206
207
|
syncAccounts(): Promise<IRPCResponse<void>>;
|
|
@@ -209,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
209
210
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
210
211
|
paymentsToBatch: SendPaymentInput[];
|
|
211
212
|
}): Promise<IRPCResponse<{
|
|
213
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
212
214
|
batchPaymentInitiatedAt: Date | null;
|
|
213
215
|
authorizationUrls: string | string[] | null;
|
|
214
216
|
accountId: string | null;
|
|
215
|
-
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
216
217
|
payments: PaymentInsertType[];
|
|
217
218
|
metadata: object | null;
|
|
218
219
|
id: string;
|
|
@@ -234,7 +235,9 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
234
235
|
getBankAccounts(): Promise<IRPCResponse<ConfigBankAccount[]>>;
|
|
235
236
|
getBatches(input: GetBatchesInput): Promise<IRPCResponse<GetBatchesOutput>>;
|
|
236
237
|
}
|
|
237
|
-
declare function defineBankService(
|
|
238
|
+
declare function defineBankService({ configAccounts, }: {
|
|
239
|
+
configAccounts: ConfigEnvironmentBankAccount;
|
|
240
|
+
}): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
238
241
|
|
|
239
242
|
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
240
243
|
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.dxpKOn1t.mjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { I as IBankConnector,
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.yLyF54-_.mjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -198,9 +198,10 @@ interface GetBatchesOutput {
|
|
|
198
198
|
declare const BankServiceBase_base: (abstract new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
|
|
199
199
|
declare class BankServiceBase extends BankServiceBase_base {
|
|
200
200
|
readonly name: string;
|
|
201
|
+
readonly configAccounts: ConfigEnvironmentBankAccount;
|
|
201
202
|
readonly db: DrizzleD1Database<typeof tables>;
|
|
202
203
|
protected bankConnector: IBankConnector;
|
|
203
|
-
constructor(ctx: ExecutionContext, env: BankEnv);
|
|
204
|
+
constructor(ctx: ExecutionContext, env: BankEnv, configAccounts: ConfigEnvironmentBankAccount);
|
|
204
205
|
protected get accounts(): ConfigBankAccount[];
|
|
205
206
|
accountFetchInterval(connectorKey: ConnectorKey): number;
|
|
206
207
|
syncAccounts(): Promise<IRPCResponse<void>>;
|
|
@@ -209,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
209
210
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
210
211
|
paymentsToBatch: SendPaymentInput[];
|
|
211
212
|
}): Promise<IRPCResponse<{
|
|
213
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
212
214
|
batchPaymentInitiatedAt: Date | null;
|
|
213
215
|
authorizationUrls: string | string[] | null;
|
|
214
216
|
accountId: string | null;
|
|
215
|
-
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
216
217
|
payments: PaymentInsertType[];
|
|
217
218
|
metadata: object | null;
|
|
218
219
|
id: string;
|
|
@@ -234,7 +235,9 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
234
235
|
getBankAccounts(): Promise<IRPCResponse<ConfigBankAccount[]>>;
|
|
235
236
|
getBatches(input: GetBatchesInput): Promise<IRPCResponse<GetBatchesOutput>>;
|
|
236
237
|
}
|
|
237
|
-
declare function defineBankService(
|
|
238
|
+
declare function defineBankService({ configAccounts, }: {
|
|
239
|
+
configAccounts: ConfigEnvironmentBankAccount;
|
|
240
|
+
}): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
238
241
|
|
|
239
242
|
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
240
243
|
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.dxpKOn1t.js';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { I as IBankConnector,
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.D1VhQbrS.js';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -198,9 +198,10 @@ interface GetBatchesOutput {
|
|
|
198
198
|
declare const BankServiceBase_base: (abstract new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
|
|
199
199
|
declare class BankServiceBase extends BankServiceBase_base {
|
|
200
200
|
readonly name: string;
|
|
201
|
+
readonly configAccounts: ConfigEnvironmentBankAccount;
|
|
201
202
|
readonly db: DrizzleD1Database<typeof tables>;
|
|
202
203
|
protected bankConnector: IBankConnector;
|
|
203
|
-
constructor(ctx: ExecutionContext, env: BankEnv);
|
|
204
|
+
constructor(ctx: ExecutionContext, env: BankEnv, configAccounts: ConfigEnvironmentBankAccount);
|
|
204
205
|
protected get accounts(): ConfigBankAccount[];
|
|
205
206
|
accountFetchInterval(connectorKey: ConnectorKey): number;
|
|
206
207
|
syncAccounts(): Promise<IRPCResponse<void>>;
|
|
@@ -209,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
209
210
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
210
211
|
paymentsToBatch: SendPaymentInput[];
|
|
211
212
|
}): Promise<IRPCResponse<{
|
|
213
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
212
214
|
batchPaymentInitiatedAt: Date | null;
|
|
213
215
|
authorizationUrls: string | string[] | null;
|
|
214
216
|
accountId: string | null;
|
|
215
|
-
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
216
217
|
payments: PaymentInsertType[];
|
|
217
218
|
metadata: object | null;
|
|
218
219
|
id: string;
|
|
@@ -234,7 +235,9 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
234
235
|
getBankAccounts(): Promise<IRPCResponse<ConfigBankAccount[]>>;
|
|
235
236
|
getBatches(input: GetBatchesInput): Promise<IRPCResponse<GetBatchesOutput>>;
|
|
236
237
|
}
|
|
237
|
-
declare function defineBankService(
|
|
238
|
+
declare function defineBankService({ configAccounts, }: {
|
|
239
|
+
configAccounts: ConfigEnvironmentBankAccount;
|
|
240
|
+
}): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
238
241
|
|
|
239
242
|
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
240
243
|
|