@develit-services/bank 0.1.3 → 0.1.5

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.
Files changed (30) hide show
  1. package/dist/database/schema.cjs +1 -1
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +1 -1
  6. package/dist/export/worker.cjs +23 -3
  7. package/dist/export/worker.d.cts +83 -72
  8. package/dist/export/worker.d.mts +83 -72
  9. package/dist/export/worker.d.ts +83 -72
  10. package/dist/export/worker.mjs +24 -4
  11. package/dist/export/workflows.cjs +3 -3
  12. package/dist/export/workflows.mjs +3 -3
  13. package/dist/shared/{bank._ilV3SSc.cjs → bank.BcCfzRPi.cjs} +1 -1
  14. package/dist/shared/{bank.BVoTAfMF.mjs → bank.C4V6vvM1.mjs} +2 -2
  15. package/dist/shared/{bank.DXWYeekU.d.ts → bank.CKFLzN49.d.mts} +172 -172
  16. package/dist/shared/{bank.Djg_pGS7.d.cts → bank.CRz5Du_I.d.cts} +172 -172
  17. package/dist/shared/{bank.C54o3LW_.d.mts → bank.ClVtgYqT.d.ts} +172 -172
  18. package/dist/shared/{bank.DC5Hk4UF.mjs → bank.D2ZeOkyc.mjs} +1 -1
  19. package/dist/shared/{bank.DC2gbqhD.d.mts → bank.DpCeuDbj.d.cts} +57 -57
  20. package/dist/shared/{bank.DC2gbqhD.d.ts → bank.DpCeuDbj.d.mts} +57 -57
  21. package/dist/shared/{bank.DC2gbqhD.d.cts → bank.DpCeuDbj.d.ts} +57 -57
  22. package/dist/shared/{bank.DN3pRw5j.cjs → bank.PDmcU0T-.cjs} +3 -0
  23. package/dist/shared/{bank.DTMwkDFH.cjs → bank.aQ9BdSZH.cjs} +2 -2
  24. package/dist/shared/{bank.Buq4PwHY.mjs → bank.xIMAnZ4v.mjs} +3 -0
  25. package/dist/types.cjs +2 -2
  26. package/dist/types.d.cts +4 -4
  27. package/dist/types.d.mts +4 -4
  28. package/dist/types.d.ts +4 -4
  29. package/dist/types.mjs +2 -2
  30. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const database_schema = require('../shared/bank.DN3pRw5j.cjs');
3
+ const database_schema = require('../shared/bank.PDmcU0T-.cjs');
4
4
  require('@develit-io/backend-sdk');
5
5
  require('drizzle-orm/sqlite-core');
6
6
  require('date-fns');
@@ -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.DC2gbqhD.cjs';
1
+ export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.DpCeuDbj.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.DC2gbqhD.mjs';
1
+ export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.DpCeuDbj.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.DC2gbqhD.js';
1
+ export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.DpCeuDbj.js';
2
2
  import 'drizzle-orm/sqlite-core';
3
3
  import 'drizzle-orm';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { D as account, G as accountCredentials, w as batch, z as ott, x as payment, y as paymentRelations } from '../shared/bank.Buq4PwHY.mjs';
1
+ export { D as account, G as accountCredentials, w as batch, z as ott, x as payment, y as paymentRelations } from '../shared/bank.xIMAnZ4v.mjs';
2
2
  import '@develit-io/backend-sdk';
3
3
  import 'drizzle-orm/sqlite-core';
4
4
  import 'date-fns';
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
- const export_workflows = require('../shared/bank.DTMwkDFH.cjs');
3
+ const export_workflows = require('../shared/bank.aQ9BdSZH.cjs');
4
4
  const backendSdk = require('@develit-io/backend-sdk');
5
5
  const cloudflare_workers = require('cloudflare:workers');
6
6
  const d1 = require('drizzle-orm/d1');
7
- const database_schema = require('../shared/bank.DN3pRw5j.cjs');
7
+ const database_schema = require('../shared/bank.PDmcU0T-.cjs');
8
8
  require('jose');
9
9
  const generalCodes = require('@develit-io/general-codes');
10
10
  const zod = require('zod');
11
11
  const drizzleOrm = require('drizzle-orm');
12
12
  require('cloudflare:workflows');
13
- require('../shared/bank._ilV3SSc.cjs');
13
+ require('../shared/bank.BcCfzRPi.cjs');
14
14
  require('drizzle-orm/sqlite-core');
15
15
  require('date-fns');
16
16
  require('drizzle-zod');
@@ -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,
@@ -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.DC2gbqhD.cjs';
7
- import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.Djg_pGS7.cjs';
6
+ import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.DpCeuDbj.cjs';
7
+ import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.CRz5Du_I.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
- country: z.ZodOptional<z.ZodEnum<{
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
- country: z.ZodOptional<z.ZodEnum<{
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
- country: z.ZodOptional<z.ZodEnum<{
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
- country: z.ZodOptional<z.ZodEnum<{
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";
@@ -1808,8 +1808,75 @@ 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", {
1823
+ number: drizzle_orm_sqlite_core.SQLiteColumn<{
1824
+ name: "number";
1825
+ tableName: "account";
1826
+ dataType: "string";
1827
+ columnType: "SQLiteText";
1828
+ data: string;
1829
+ driverParam: string;
1830
+ notNull: true;
1831
+ hasDefault: false;
1832
+ isPrimaryKey: false;
1833
+ isAutoincrement: false;
1834
+ hasRuntimeDefault: false;
1835
+ enumValues: [string, ...string[]];
1836
+ baseColumn: never;
1837
+ identity: undefined;
1838
+ generated: undefined;
1839
+ }, {}, {
1840
+ length: number | undefined;
1841
+ }>;
1842
+ iban: drizzle_orm_sqlite_core.SQLiteColumn<{
1843
+ name: "iban";
1844
+ tableName: "account";
1845
+ dataType: "string";
1846
+ columnType: "SQLiteText";
1847
+ data: string;
1848
+ driverParam: string;
1849
+ notNull: true;
1850
+ hasDefault: false;
1851
+ isPrimaryKey: false;
1852
+ isAutoincrement: false;
1853
+ hasRuntimeDefault: false;
1854
+ enumValues: [string, ...string[]];
1855
+ baseColumn: never;
1856
+ identity: undefined;
1857
+ generated: undefined;
1858
+ }, {}, {
1859
+ length: number | undefined;
1860
+ }>;
1861
+ bankCode: drizzle_orm_sqlite_core.SQLiteColumn<{
1862
+ name: "bank_code";
1863
+ tableName: "account";
1864
+ dataType: "string";
1865
+ columnType: "SQLiteText";
1866
+ data: string;
1867
+ driverParam: string;
1868
+ notNull: true;
1869
+ hasDefault: false;
1870
+ isPrimaryKey: false;
1871
+ isAutoincrement: false;
1872
+ hasRuntimeDefault: false;
1873
+ enumValues: [string, ...string[]];
1874
+ baseColumn: never;
1875
+ identity: undefined;
1876
+ generated: undefined;
1877
+ }, {}, {
1878
+ length: number | undefined;
1879
+ }>;
1813
1880
  connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
1814
1881
  name: "connector_key";
1815
1882
  tableName: "account";
@@ -1939,63 +2006,6 @@ declare const updateAccountInputSchema: z.ZodObject<{
1939
2006
  }, {}, {
1940
2007
  length: number | undefined;
1941
2008
  }>;
1942
- number: drizzle_orm_sqlite_core.SQLiteColumn<{
1943
- name: "number";
1944
- tableName: "account";
1945
- dataType: "string";
1946
- columnType: "SQLiteText";
1947
- data: string;
1948
- driverParam: string;
1949
- notNull: false;
1950
- hasDefault: false;
1951
- isPrimaryKey: false;
1952
- isAutoincrement: false;
1953
- hasRuntimeDefault: false;
1954
- enumValues: [string, ...string[]];
1955
- baseColumn: never;
1956
- identity: undefined;
1957
- generated: undefined;
1958
- }, {}, {
1959
- length: number | undefined;
1960
- }>;
1961
- bankCode: drizzle_orm_sqlite_core.SQLiteColumn<{
1962
- name: "bank_code";
1963
- tableName: "account";
1964
- dataType: "string";
1965
- columnType: "SQLiteText";
1966
- data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
1967
- driverParam: string;
1968
- notNull: false;
1969
- hasDefault: false;
1970
- isPrimaryKey: false;
1971
- isAutoincrement: false;
1972
- hasRuntimeDefault: false;
1973
- enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
1974
- baseColumn: never;
1975
- identity: undefined;
1976
- generated: undefined;
1977
- }, {}, {
1978
- length: number | undefined;
1979
- }>;
1980
- iban: drizzle_orm_sqlite_core.SQLiteColumn<{
1981
- name: "iban";
1982
- tableName: "account";
1983
- dataType: "string";
1984
- columnType: "SQLiteText";
1985
- data: string;
1986
- driverParam: string;
1987
- notNull: false;
1988
- hasDefault: false;
1989
- isPrimaryKey: false;
1990
- isAutoincrement: false;
1991
- hasRuntimeDefault: false;
1992
- enumValues: [string, ...string[]];
1993
- baseColumn: never;
1994
- identity: undefined;
1995
- generated: undefined;
1996
- }, {}, {
1997
- length: number | undefined;
1998
- }>;
1999
2009
  address: drizzle_orm_sqlite_core.SQLiteColumn<{
2000
2010
  name: "address";
2001
2011
  tableName: "account";
@@ -2280,6 +2290,9 @@ declare class BankServiceBase extends BankServiceBase_base {
2280
2290
  constructor(ctx: ExecutionContext, env: BankEnv, config: ConfigEnvironmentBank);
2281
2291
  _getAccounts(): Promise<{
2282
2292
  expiresAt: Date | undefined;
2293
+ number: string;
2294
+ iban: string;
2295
+ bankCode: string;
2283
2296
  connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
2284
2297
  status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
2285
2298
  bankRefId: string;
@@ -2287,9 +2300,6 @@ declare class BankServiceBase extends BankServiceBase_base {
2287
2300
  syncIntervalS: number;
2288
2301
  lastSyncedAt: Date | null;
2289
2302
  holderName: string;
2290
- number: string | null;
2291
- bankCode: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500" | null;
2292
- iban: string | null;
2293
2303
  address: string | null;
2294
2304
  swiftBic: string | null;
2295
2305
  bicCor: string | null;
@@ -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,14 +2334,14 @@ declare class BankServiceBase extends BankServiceBase_base {
2323
2334
  addPaymentsToBatch({ paymentsToBatch, }: {
2324
2335
  paymentsToBatch: SendPaymentInput[];
2325
2336
  }): Promise<IRPCResponse<{
2326
- status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | null;
2327
2337
  id: string;
2328
2338
  createdAt: Date | null;
2329
2339
  updatedAt: Date | null;
2330
2340
  deletedAt: Date | null;
2331
- accountId: string | null;
2341
+ status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | null;
2332
2342
  batchPaymentInitiatedAt: Date | null;
2333
2343
  authorizationUrls: string | string[] | null;
2344
+ accountId: string | null;
2334
2345
  payments: PaymentInsertType[];
2335
2346
  metadata: object | null;
2336
2347
  }[] | undefined>>;
@@ -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.DC2gbqhD.mjs';
7
- import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.C54o3LW_.mjs';
6
+ import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.DpCeuDbj.mjs';
7
+ import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.CKFLzN49.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
- country: z.ZodOptional<z.ZodEnum<{
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
- country: z.ZodOptional<z.ZodEnum<{
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
- country: z.ZodOptional<z.ZodEnum<{
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
- country: z.ZodOptional<z.ZodEnum<{
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";
@@ -1808,8 +1808,75 @@ 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", {
1823
+ number: drizzle_orm_sqlite_core.SQLiteColumn<{
1824
+ name: "number";
1825
+ tableName: "account";
1826
+ dataType: "string";
1827
+ columnType: "SQLiteText";
1828
+ data: string;
1829
+ driverParam: string;
1830
+ notNull: true;
1831
+ hasDefault: false;
1832
+ isPrimaryKey: false;
1833
+ isAutoincrement: false;
1834
+ hasRuntimeDefault: false;
1835
+ enumValues: [string, ...string[]];
1836
+ baseColumn: never;
1837
+ identity: undefined;
1838
+ generated: undefined;
1839
+ }, {}, {
1840
+ length: number | undefined;
1841
+ }>;
1842
+ iban: drizzle_orm_sqlite_core.SQLiteColumn<{
1843
+ name: "iban";
1844
+ tableName: "account";
1845
+ dataType: "string";
1846
+ columnType: "SQLiteText";
1847
+ data: string;
1848
+ driverParam: string;
1849
+ notNull: true;
1850
+ hasDefault: false;
1851
+ isPrimaryKey: false;
1852
+ isAutoincrement: false;
1853
+ hasRuntimeDefault: false;
1854
+ enumValues: [string, ...string[]];
1855
+ baseColumn: never;
1856
+ identity: undefined;
1857
+ generated: undefined;
1858
+ }, {}, {
1859
+ length: number | undefined;
1860
+ }>;
1861
+ bankCode: drizzle_orm_sqlite_core.SQLiteColumn<{
1862
+ name: "bank_code";
1863
+ tableName: "account";
1864
+ dataType: "string";
1865
+ columnType: "SQLiteText";
1866
+ data: string;
1867
+ driverParam: string;
1868
+ notNull: true;
1869
+ hasDefault: false;
1870
+ isPrimaryKey: false;
1871
+ isAutoincrement: false;
1872
+ hasRuntimeDefault: false;
1873
+ enumValues: [string, ...string[]];
1874
+ baseColumn: never;
1875
+ identity: undefined;
1876
+ generated: undefined;
1877
+ }, {}, {
1878
+ length: number | undefined;
1879
+ }>;
1813
1880
  connectorKey: drizzle_orm_sqlite_core.SQLiteColumn<{
1814
1881
  name: "connector_key";
1815
1882
  tableName: "account";
@@ -1939,63 +2006,6 @@ declare const updateAccountInputSchema: z.ZodObject<{
1939
2006
  }, {}, {
1940
2007
  length: number | undefined;
1941
2008
  }>;
1942
- number: drizzle_orm_sqlite_core.SQLiteColumn<{
1943
- name: "number";
1944
- tableName: "account";
1945
- dataType: "string";
1946
- columnType: "SQLiteText";
1947
- data: string;
1948
- driverParam: string;
1949
- notNull: false;
1950
- hasDefault: false;
1951
- isPrimaryKey: false;
1952
- isAutoincrement: false;
1953
- hasRuntimeDefault: false;
1954
- enumValues: [string, ...string[]];
1955
- baseColumn: never;
1956
- identity: undefined;
1957
- generated: undefined;
1958
- }, {}, {
1959
- length: number | undefined;
1960
- }>;
1961
- bankCode: drizzle_orm_sqlite_core.SQLiteColumn<{
1962
- name: "bank_code";
1963
- tableName: "account";
1964
- dataType: "string";
1965
- columnType: "SQLiteText";
1966
- data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
1967
- driverParam: string;
1968
- notNull: false;
1969
- hasDefault: false;
1970
- isPrimaryKey: false;
1971
- isAutoincrement: false;
1972
- hasRuntimeDefault: false;
1973
- enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
1974
- baseColumn: never;
1975
- identity: undefined;
1976
- generated: undefined;
1977
- }, {}, {
1978
- length: number | undefined;
1979
- }>;
1980
- iban: drizzle_orm_sqlite_core.SQLiteColumn<{
1981
- name: "iban";
1982
- tableName: "account";
1983
- dataType: "string";
1984
- columnType: "SQLiteText";
1985
- data: string;
1986
- driverParam: string;
1987
- notNull: false;
1988
- hasDefault: false;
1989
- isPrimaryKey: false;
1990
- isAutoincrement: false;
1991
- hasRuntimeDefault: false;
1992
- enumValues: [string, ...string[]];
1993
- baseColumn: never;
1994
- identity: undefined;
1995
- generated: undefined;
1996
- }, {}, {
1997
- length: number | undefined;
1998
- }>;
1999
2009
  address: drizzle_orm_sqlite_core.SQLiteColumn<{
2000
2010
  name: "address";
2001
2011
  tableName: "account";
@@ -2280,6 +2290,9 @@ declare class BankServiceBase extends BankServiceBase_base {
2280
2290
  constructor(ctx: ExecutionContext, env: BankEnv, config: ConfigEnvironmentBank);
2281
2291
  _getAccounts(): Promise<{
2282
2292
  expiresAt: Date | undefined;
2293
+ number: string;
2294
+ iban: string;
2295
+ bankCode: string;
2283
2296
  connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA";
2284
2297
  status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
2285
2298
  bankRefId: string;
@@ -2287,9 +2300,6 @@ declare class BankServiceBase extends BankServiceBase_base {
2287
2300
  syncIntervalS: number;
2288
2301
  lastSyncedAt: Date | null;
2289
2302
  holderName: string;
2290
- number: string | null;
2291
- bankCode: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500" | null;
2292
- iban: string | null;
2293
2303
  address: string | null;
2294
2304
  swiftBic: string | null;
2295
2305
  bicCor: string | null;
@@ -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,14 +2334,14 @@ declare class BankServiceBase extends BankServiceBase_base {
2323
2334
  addPaymentsToBatch({ paymentsToBatch, }: {
2324
2335
  paymentsToBatch: SendPaymentInput[];
2325
2336
  }): Promise<IRPCResponse<{
2326
- status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | null;
2327
2337
  id: string;
2328
2338
  createdAt: Date | null;
2329
2339
  updatedAt: Date | null;
2330
2340
  deletedAt: Date | null;
2331
- accountId: string | null;
2341
+ status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | null;
2332
2342
  batchPaymentInitiatedAt: Date | null;
2333
2343
  authorizationUrls: string | string[] | null;
2344
+ accountId: string | null;
2334
2345
  payments: PaymentInsertType[];
2335
2346
  metadata: object | null;
2336
2347
  }[] | undefined>>;