@develit-services/bank 0.0.7 → 0.0.9
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 +2 -2
- package/dist/@types.d.mts +2 -2
- package/dist/@types.d.ts +2 -2
- package/dist/export/worker.cjs +426 -421
- package/dist/export/worker.d.cts +4 -3
- package/dist/export/worker.d.mts +4 -3
- package/dist/export/worker.d.ts +4 -3
- package/dist/export/worker.mjs +426 -421
- package/dist/export/wrangler.cjs +2 -2
- package/dist/export/wrangler.mjs +2 -2
- package/dist/shared/{bank.C28GtA5s.d.cts → bank.BULPVep1.d.cts} +8 -4
- package/dist/shared/{bank.atHmEWmc.d.ts → bank.BYxCT5rk.d.ts} +8 -4
- package/dist/shared/{bank.LCrZu9Ic.d.mts → bank.Dxfp5h5B.d.mts} +8 -4
- package/package.json +1 -1
package/dist/export/worker.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as Payment
|
|
|
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.BULPVep1.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>>;
|
|
@@ -234,7 +235,7 @@ 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(): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
238
|
+
declare function defineBankService(): new (ctx: ExecutionContext, env: BankEnv, configAccounts?: ConfigEnvironmentBankAccount) => BankServiceBase;
|
|
238
239
|
|
|
239
240
|
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
240
241
|
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as Payment
|
|
|
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.Dxfp5h5B.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>>;
|
|
@@ -234,7 +235,7 @@ 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(): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
238
|
+
declare function defineBankService(): new (ctx: ExecutionContext, env: BankEnv, configAccounts?: ConfigEnvironmentBankAccount) => BankServiceBase;
|
|
238
239
|
|
|
239
240
|
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
240
241
|
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as Payment
|
|
|
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.BYxCT5rk.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>>;
|
|
@@ -234,7 +235,7 @@ 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(): new (ctx: ExecutionContext, env: BankEnv) => BankServiceBase;
|
|
238
|
+
declare function defineBankService(): new (ctx: ExecutionContext, env: BankEnv, configAccounts?: ConfigEnvironmentBankAccount) => BankServiceBase;
|
|
238
239
|
|
|
239
240
|
declare const _default: new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv>;
|
|
240
241
|
|