@develit-services/bank 0.7.6 → 0.7.8
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 +4 -4
- package/dist/export/worker.d.cts +11 -7
- package/dist/export/worker.d.mts +11 -7
- package/dist/export/worker.d.ts +11 -7
- package/dist/export/worker.mjs +4 -4
- package/dist/export/workflows.cjs +4 -4
- package/dist/export/workflows.mjs +4 -4
- package/dist/shared/{bank.7tVPcX9l.cjs → bank.AEdMloQz.cjs} +2 -2
- package/dist/shared/{bank.FXsG6L3j.mjs → bank.BVRO97AQ.mjs} +2 -2
- package/dist/shared/{bank.CTLxLhFX.cjs → bank.Bz8-M6O4.cjs} +1 -1
- package/dist/shared/{bank.C5nVngk9.mjs → bank.CCQB8FnG.mjs} +23 -4
- package/dist/shared/{bank.BVIkpji3.d.cts → bank.COC0tqmL.d.cts} +2 -0
- package/dist/shared/{bank.BVIkpji3.d.mts → bank.COC0tqmL.d.mts} +2 -0
- package/dist/shared/{bank.BVIkpji3.d.ts → bank.COC0tqmL.d.ts} +2 -0
- package/dist/shared/{bank.DF8G4iKu.cjs → bank.DgGri2Wr.cjs} +2 -1
- package/dist/shared/{bank.Co1V8lgi.mjs → bank.I0pR4Me2.mjs} +1 -1
- package/dist/shared/{bank.DixDj12f.mjs → bank.PB07ttj3.mjs} +2 -1
- package/dist/shared/{bank.pHEoRWpm.d.cts → bank.Vm9IO_UH.d.cts} +28 -28
- package/dist/shared/{bank.pHEoRWpm.d.mts → bank.Vm9IO_UH.d.mts} +28 -28
- package/dist/shared/{bank.pHEoRWpm.d.ts → bank.Vm9IO_UH.d.ts} +28 -28
- package/dist/shared/{bank.CDLlfzki.cjs → bank.kYaMR0UG.cjs} +23 -3
- package/dist/types.cjs +3 -2
- package/dist/types.d.cts +9 -4
- package/dist/types.d.mts +9 -4
- package/dist/types.d.ts +9 -4
- package/dist/types.mjs +2 -2
- package/package.json +2 -2
package/dist/database/schema.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ao as account, ap as accountCredentials, aq as batch, ar as ott, as as payment, at as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { ao as account, ap as accountCredentials, aq as batch, ar as ott, as as payment, at as paymentRelations } from '../shared/bank.Vm9IO_UH.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ao as account, ap as accountCredentials, aq as batch, ar as ott, as as payment, at as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { ao as account, ap as accountCredentials, aq as batch, ar as ott, as as payment, at as paymentRelations } from '../shared/bank.Vm9IO_UH.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ao as account, ap as accountCredentials, aq as batch, ar as ott, as as payment, at as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { ao as account, ap as accountCredentials, aq as batch, ar as ott, as as payment, at as paymentRelations } from '../shared/bank.Vm9IO_UH.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { n as account, p as accountCredentials, q as batch, r as ott, s as payment, t as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { n as account, p as accountCredentials, q as batch, r as ott, s as payment, t as paymentRelations } from '../shared/bank.PB07ttj3.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm/relations';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const drizzle = require('../shared/bank.
|
|
4
|
+
const drizzle = require('../shared/bank.AEdMloQz.cjs');
|
|
5
5
|
const cloudflare_workers = require('cloudflare:workers');
|
|
6
6
|
const d1 = require('drizzle-orm/d1');
|
|
7
7
|
const zod = require('zod');
|
|
8
|
-
const payment_schema = require('../shared/bank.
|
|
8
|
+
const payment_schema = require('../shared/bank.DgGri2Wr.cjs');
|
|
9
9
|
const generalCodes = require('@develit-io/general-codes');
|
|
10
10
|
require('date-fns');
|
|
11
11
|
require('jose');
|
|
12
12
|
const drizzleOrm = require('drizzle-orm');
|
|
13
13
|
require('node:crypto');
|
|
14
|
-
const mock_connector = require('../shared/bank.
|
|
15
|
-
require('../shared/bank.
|
|
14
|
+
const mock_connector = require('../shared/bank.kYaMR0UG.cjs');
|
|
15
|
+
require('../shared/bank.Bz8-M6O4.cjs');
|
|
16
16
|
require('drizzle-orm/relations');
|
|
17
17
|
require('drizzle-orm/sqlite-core');
|
|
18
18
|
require('drizzle-zod');
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.Vm9IO_UH.cjs';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
|
-
import { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.
|
|
4
|
+
import { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.COC0tqmL.cjs';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -22,6 +22,7 @@ declare const getAuthUriInputSchema: z.ZodObject<{
|
|
|
22
22
|
DBU: "DBU";
|
|
23
23
|
CSAS: "CSAS";
|
|
24
24
|
AIRBANK: "AIRBANK";
|
|
25
|
+
KB: "KB";
|
|
25
26
|
}>;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
type GetAuthUriInput = z.infer<typeof getAuthUriInputSchema>;
|
|
@@ -417,6 +418,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
417
418
|
UA: "UA";
|
|
418
419
|
AE: "AE";
|
|
419
420
|
GB: "GB";
|
|
421
|
+
US: "US";
|
|
420
422
|
UZ: "UZ";
|
|
421
423
|
VU: "VU";
|
|
422
424
|
VE: "VE";
|
|
@@ -746,6 +748,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
746
748
|
UA: "UA";
|
|
747
749
|
AE: "AE";
|
|
748
750
|
GB: "GB";
|
|
751
|
+
US: "US";
|
|
749
752
|
UZ: "UZ";
|
|
750
753
|
VU: "VU";
|
|
751
754
|
VE: "VE";
|
|
@@ -773,6 +776,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
773
776
|
DBU: "DBU";
|
|
774
777
|
CSAS: "CSAS";
|
|
775
778
|
AIRBANK: "AIRBANK";
|
|
779
|
+
KB: "KB";
|
|
776
780
|
}>;
|
|
777
781
|
}, z.core.$strip>;
|
|
778
782
|
interface SimulateDepositInput extends z.infer<typeof simulateDepositInputSchema> {
|
|
@@ -1269,20 +1273,20 @@ declare const updateAccountInputSchema: z.ZodObject<{
|
|
|
1269
1273
|
tableName: "account";
|
|
1270
1274
|
dataType: "string";
|
|
1271
1275
|
columnType: "SQLiteText";
|
|
1272
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1276
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1273
1277
|
driverParam: string;
|
|
1274
1278
|
notNull: true;
|
|
1275
1279
|
hasDefault: false;
|
|
1276
1280
|
isPrimaryKey: false;
|
|
1277
1281
|
isAutoincrement: false;
|
|
1278
1282
|
hasRuntimeDefault: false;
|
|
1279
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
1283
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
1280
1284
|
baseColumn: never;
|
|
1281
1285
|
identity: undefined;
|
|
1282
1286
|
generated: undefined;
|
|
1283
1287
|
}, {}, {
|
|
1284
1288
|
length: number | undefined;
|
|
1285
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1289
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1286
1290
|
}>;
|
|
1287
1291
|
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1288
1292
|
name: "status";
|
|
@@ -1767,7 +1771,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1767
1771
|
name: string | null;
|
|
1768
1772
|
iban: string;
|
|
1769
1773
|
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";
|
|
1770
|
-
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1774
|
+
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1771
1775
|
status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
|
|
1772
1776
|
bankRefId: string;
|
|
1773
1777
|
batchSizeLimit: number;
|
|
@@ -1799,7 +1803,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1799
1803
|
name: string | null;
|
|
1800
1804
|
iban: string;
|
|
1801
1805
|
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";
|
|
1802
|
-
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1806
|
+
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1803
1807
|
status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
|
|
1804
1808
|
bankRefId: string;
|
|
1805
1809
|
batchSizeLimit: number;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.Vm9IO_UH.mjs';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
|
-
import { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.
|
|
4
|
+
import { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.COC0tqmL.mjs';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -22,6 +22,7 @@ declare const getAuthUriInputSchema: z.ZodObject<{
|
|
|
22
22
|
DBU: "DBU";
|
|
23
23
|
CSAS: "CSAS";
|
|
24
24
|
AIRBANK: "AIRBANK";
|
|
25
|
+
KB: "KB";
|
|
25
26
|
}>;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
type GetAuthUriInput = z.infer<typeof getAuthUriInputSchema>;
|
|
@@ -417,6 +418,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
417
418
|
UA: "UA";
|
|
418
419
|
AE: "AE";
|
|
419
420
|
GB: "GB";
|
|
421
|
+
US: "US";
|
|
420
422
|
UZ: "UZ";
|
|
421
423
|
VU: "VU";
|
|
422
424
|
VE: "VE";
|
|
@@ -746,6 +748,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
746
748
|
UA: "UA";
|
|
747
749
|
AE: "AE";
|
|
748
750
|
GB: "GB";
|
|
751
|
+
US: "US";
|
|
749
752
|
UZ: "UZ";
|
|
750
753
|
VU: "VU";
|
|
751
754
|
VE: "VE";
|
|
@@ -773,6 +776,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
773
776
|
DBU: "DBU";
|
|
774
777
|
CSAS: "CSAS";
|
|
775
778
|
AIRBANK: "AIRBANK";
|
|
779
|
+
KB: "KB";
|
|
776
780
|
}>;
|
|
777
781
|
}, z.core.$strip>;
|
|
778
782
|
interface SimulateDepositInput extends z.infer<typeof simulateDepositInputSchema> {
|
|
@@ -1269,20 +1273,20 @@ declare const updateAccountInputSchema: z.ZodObject<{
|
|
|
1269
1273
|
tableName: "account";
|
|
1270
1274
|
dataType: "string";
|
|
1271
1275
|
columnType: "SQLiteText";
|
|
1272
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1276
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1273
1277
|
driverParam: string;
|
|
1274
1278
|
notNull: true;
|
|
1275
1279
|
hasDefault: false;
|
|
1276
1280
|
isPrimaryKey: false;
|
|
1277
1281
|
isAutoincrement: false;
|
|
1278
1282
|
hasRuntimeDefault: false;
|
|
1279
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
1283
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
1280
1284
|
baseColumn: never;
|
|
1281
1285
|
identity: undefined;
|
|
1282
1286
|
generated: undefined;
|
|
1283
1287
|
}, {}, {
|
|
1284
1288
|
length: number | undefined;
|
|
1285
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1289
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1286
1290
|
}>;
|
|
1287
1291
|
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1288
1292
|
name: "status";
|
|
@@ -1767,7 +1771,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1767
1771
|
name: string | null;
|
|
1768
1772
|
iban: string;
|
|
1769
1773
|
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";
|
|
1770
|
-
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1774
|
+
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1771
1775
|
status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
|
|
1772
1776
|
bankRefId: string;
|
|
1773
1777
|
batchSizeLimit: number;
|
|
@@ -1799,7 +1803,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1799
1803
|
name: string | null;
|
|
1800
1804
|
iban: string;
|
|
1801
1805
|
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";
|
|
1802
|
-
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1806
|
+
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1803
1807
|
status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
|
|
1804
1808
|
bankRefId: string;
|
|
1805
1809
|
batchSizeLimit: number;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.Vm9IO_UH.js';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
|
-
import { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.
|
|
4
|
+
import { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.COC0tqmL.js';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -22,6 +22,7 @@ declare const getAuthUriInputSchema: z.ZodObject<{
|
|
|
22
22
|
DBU: "DBU";
|
|
23
23
|
CSAS: "CSAS";
|
|
24
24
|
AIRBANK: "AIRBANK";
|
|
25
|
+
KB: "KB";
|
|
25
26
|
}>;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
type GetAuthUriInput = z.infer<typeof getAuthUriInputSchema>;
|
|
@@ -417,6 +418,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
417
418
|
UA: "UA";
|
|
418
419
|
AE: "AE";
|
|
419
420
|
GB: "GB";
|
|
421
|
+
US: "US";
|
|
420
422
|
UZ: "UZ";
|
|
421
423
|
VU: "VU";
|
|
422
424
|
VE: "VE";
|
|
@@ -746,6 +748,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
746
748
|
UA: "UA";
|
|
747
749
|
AE: "AE";
|
|
748
750
|
GB: "GB";
|
|
751
|
+
US: "US";
|
|
749
752
|
UZ: "UZ";
|
|
750
753
|
VU: "VU";
|
|
751
754
|
VE: "VE";
|
|
@@ -773,6 +776,7 @@ declare const simulateDepositInputSchema: z.ZodObject<{
|
|
|
773
776
|
DBU: "DBU";
|
|
774
777
|
CSAS: "CSAS";
|
|
775
778
|
AIRBANK: "AIRBANK";
|
|
779
|
+
KB: "KB";
|
|
776
780
|
}>;
|
|
777
781
|
}, z.core.$strip>;
|
|
778
782
|
interface SimulateDepositInput extends z.infer<typeof simulateDepositInputSchema> {
|
|
@@ -1269,20 +1273,20 @@ declare const updateAccountInputSchema: z.ZodObject<{
|
|
|
1269
1273
|
tableName: "account";
|
|
1270
1274
|
dataType: "string";
|
|
1271
1275
|
columnType: "SQLiteText";
|
|
1272
|
-
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1276
|
+
data: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1273
1277
|
driverParam: string;
|
|
1274
1278
|
notNull: true;
|
|
1275
1279
|
hasDefault: false;
|
|
1276
1280
|
isPrimaryKey: false;
|
|
1277
1281
|
isAutoincrement: false;
|
|
1278
1282
|
hasRuntimeDefault: false;
|
|
1279
|
-
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK"];
|
|
1283
|
+
enumValues: ["ERSTE", "FINBRICKS", "MOCK", "CREDITAS", "MOCK_COBS", "FIO", "MONETA", "DBU", "CSAS", "AIRBANK", "KB"];
|
|
1280
1284
|
baseColumn: never;
|
|
1281
1285
|
identity: undefined;
|
|
1282
1286
|
generated: undefined;
|
|
1283
1287
|
}, {}, {
|
|
1284
1288
|
length: number | undefined;
|
|
1285
|
-
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1289
|
+
$type: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1286
1290
|
}>;
|
|
1287
1291
|
status: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1288
1292
|
name: "status";
|
|
@@ -1767,7 +1771,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1767
1771
|
name: string | null;
|
|
1768
1772
|
iban: string;
|
|
1769
1773
|
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";
|
|
1770
|
-
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1774
|
+
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1771
1775
|
status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
|
|
1772
1776
|
bankRefId: string;
|
|
1773
1777
|
batchSizeLimit: number;
|
|
@@ -1799,7 +1803,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
1799
1803
|
name: string | null;
|
|
1800
1804
|
iban: string;
|
|
1801
1805
|
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";
|
|
1802
|
-
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK";
|
|
1806
|
+
connectorKey: "ERSTE" | "FINBRICKS" | "MOCK" | "CREDITAS" | "MOCK_COBS" | "FIO" | "MONETA" | "DBU" | "CSAS" | "AIRBANK" | "KB";
|
|
1803
1807
|
status: "AUTHORIZED" | "DISABLED" | "EXPIRED";
|
|
1804
1808
|
bankRefId: string;
|
|
1805
1809
|
batchSizeLimit: number;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { uuidv4, first, buildMultiFilterConditions as buildMultiFilterConditions$1, bankAccountMetadataSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
|
-
import { t as tables, e as encrypt, i as importAesKey, b as getCredentialsByAccountId, u as upsertBatchCommand, g as getBatchByIdQuery, d as createPaymentCommand, a as getAccountByIdQuery } from '../shared/bank.
|
|
2
|
+
import { t as tables, e as encrypt, i as importAesKey, b as getCredentialsByAccountId, u as upsertBatchCommand, g as getBatchByIdQuery, d as createPaymentCommand, a as getAccountByIdQuery } from '../shared/bank.BVRO97AQ.mjs';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { drizzle } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import { I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, e as PAYMENT_TYPES, a as CONNECTOR_KEYS, B as BATCH_STATUSES, d as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, i as accountInsertSchema } from '../shared/bank.
|
|
6
|
+
import { I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, e as PAYMENT_TYPES, a as CONNECTOR_KEYS, B as BATCH_STATUSES, d as PAYMENT_STATUSES, P as PAYMENT_DIRECTIONS, i as accountInsertSchema } from '../shared/bank.PB07ttj3.mjs';
|
|
7
7
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
8
8
|
import 'date-fns';
|
|
9
9
|
import 'jose';
|
|
10
10
|
import { eq, sql, and, inArray, asc, desc, gte, lte } from 'drizzle-orm';
|
|
11
11
|
import 'node:crypto';
|
|
12
|
-
import { i as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment } from '../shared/bank.
|
|
13
|
-
import '../shared/bank.
|
|
12
|
+
import { i as initiateConnector, g as toIncomingPayment, d as assignAccount, t as toBatchedPayment } from '../shared/bank.CCQB8FnG.mjs';
|
|
13
|
+
import '../shared/bank.I0pR4Me2.mjs';
|
|
14
14
|
import 'drizzle-orm/relations';
|
|
15
15
|
import 'drizzle-orm/sqlite-core';
|
|
16
16
|
import 'drizzle-zod';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const drizzle = require('../shared/bank.
|
|
4
|
+
const drizzle = require('../shared/bank.AEdMloQz.cjs');
|
|
5
5
|
const batchLifecycle = require('../shared/bank.Bg3Pdwm4.cjs');
|
|
6
|
-
const mock_connector = require('../shared/bank.
|
|
6
|
+
const mock_connector = require('../shared/bank.kYaMR0UG.cjs');
|
|
7
7
|
const drizzleOrm = require('drizzle-orm');
|
|
8
8
|
const cloudflare_workers = require('cloudflare:workers');
|
|
9
9
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
10
10
|
const d1 = require('drizzle-orm/d1');
|
|
11
|
-
require('../shared/bank.
|
|
12
|
-
require('../shared/bank.
|
|
11
|
+
require('../shared/bank.Bz8-M6O4.cjs');
|
|
12
|
+
require('../shared/bank.DgGri2Wr.cjs');
|
|
13
13
|
require('drizzle-orm/relations');
|
|
14
14
|
require('drizzle-orm/sqlite-core');
|
|
15
15
|
require('date-fns');
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { first, uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
|
|
2
|
-
import { t as tables, g as getBatchByIdQuery, c as checksum, u as upsertBatchCommand, a as getAccountByIdQuery, i as importAesKey, b as getCredentialsByAccountId, d as createPaymentCommand } from '../shared/bank.
|
|
2
|
+
import { t as tables, g as getBatchByIdQuery, c as checksum, u as upsertBatchCommand, a as getAccountByIdQuery, i as importAesKey, b as getCredentialsByAccountId, d as createPaymentCommand } from '../shared/bank.BVRO97AQ.mjs';
|
|
3
3
|
import { f as isBatchSigned, a as isBatchFailed, c as isBatchOpen, g as isPaymentCompleted } from '../shared/bank.CbAwwIhZ.mjs';
|
|
4
|
-
import { h as toPreparedPayment, i as initiateConnector, f as toCompletedPayment } from '../shared/bank.
|
|
4
|
+
import { h as toPreparedPayment, i as initiateConnector, f as toCompletedPayment } from '../shared/bank.CCQB8FnG.mjs';
|
|
5
5
|
import { eq } from 'drizzle-orm';
|
|
6
6
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
7
7
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
8
8
|
import { drizzle } from 'drizzle-orm/d1';
|
|
9
|
-
import '../shared/bank.
|
|
10
|
-
import '../shared/bank.
|
|
9
|
+
import '../shared/bank.I0pR4Me2.mjs';
|
|
10
|
+
import '../shared/bank.PB07ttj3.mjs';
|
|
11
11
|
import 'drizzle-orm/relations';
|
|
12
12
|
import 'drizzle-orm/sqlite-core';
|
|
13
13
|
import 'date-fns';
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const drizzleOrm = require('drizzle-orm');
|
|
5
|
-
const database_schema = require('./bank.
|
|
5
|
+
const database_schema = require('./bank.Bz8-M6O4.cjs');
|
|
6
6
|
require('date-fns');
|
|
7
7
|
require('@develit-io/general-codes');
|
|
8
8
|
require('jose');
|
|
9
|
-
require('./bank.
|
|
9
|
+
require('./bank.DgGri2Wr.cjs');
|
|
10
10
|
const node_crypto = require('node:crypto');
|
|
11
11
|
|
|
12
12
|
const createPaymentCommand = (db, { payment }) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { uuidv4 } from '@develit-io/backend-sdk';
|
|
2
2
|
import { eq } from 'drizzle-orm';
|
|
3
|
-
import { s as schema } from './bank.
|
|
3
|
+
import { s as schema } from './bank.I0pR4Me2.mjs';
|
|
4
4
|
import 'date-fns';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
import 'jose';
|
|
7
|
-
import './bank.
|
|
7
|
+
import './bank.PB07ttj3.mjs';
|
|
8
8
|
import { createHash } from 'node:crypto';
|
|
9
9
|
|
|
10
10
|
const createPaymentCommand = (db, { payment }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { uuidv4, useResult, createInternalError } from '@develit-io/backend-sdk';
|
|
2
2
|
import { format, parseISO } from 'date-fns';
|
|
3
3
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
|
-
import './bank.
|
|
4
|
+
import './bank.PB07ttj3.mjs';
|
|
5
5
|
import 'drizzle-orm';
|
|
6
6
|
import { importPKCS8, SignJWT } from 'jose';
|
|
7
7
|
import 'node:crypto';
|
|
@@ -848,8 +848,8 @@ class AirBankConnector extends FinbricksConnector {
|
|
|
848
848
|
constructor(config) {
|
|
849
849
|
super("AIRBANK", config);
|
|
850
850
|
}
|
|
851
|
-
supportsBatch(
|
|
852
|
-
return
|
|
851
|
+
supportsBatch() {
|
|
852
|
+
return false;
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
|
|
@@ -887,6 +887,15 @@ class FioConnector extends FinbricksConnector {
|
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
+
class KBConnector extends FinbricksConnector {
|
|
891
|
+
constructor(config) {
|
|
892
|
+
super("KB", config);
|
|
893
|
+
}
|
|
894
|
+
supportsBatch(paymentType) {
|
|
895
|
+
return paymentType === "DOMESTIC";
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
|
|
890
899
|
class MonetaConnector extends FinbricksConnector {
|
|
891
900
|
constructor(config) {
|
|
892
901
|
super("MONETA", config);
|
|
@@ -991,6 +1000,16 @@ const initiateConnector = async ({
|
|
|
991
1000
|
REDIRECT_URI: env.REDIRECT_URI,
|
|
992
1001
|
connectedAccounts
|
|
993
1002
|
});
|
|
1003
|
+
case "KB":
|
|
1004
|
+
return new KBConnector({
|
|
1005
|
+
BASE_URI: env.FINBRICKS_BASE_URI,
|
|
1006
|
+
MERCHANT_ID: env.FINBRICKS_MERCHANT_ID,
|
|
1007
|
+
PRIVATE_KEY_PEM: (await env.SECRETS_STORE.get({
|
|
1008
|
+
secretName: "BANK_SERVICE_FINBRICKS_PRIVATE_KEY_PEM"
|
|
1009
|
+
})).data?.secretValue || "",
|
|
1010
|
+
REDIRECT_URI: env.REDIRECT_URI,
|
|
1011
|
+
connectedAccounts
|
|
1012
|
+
});
|
|
994
1013
|
case "DBU":
|
|
995
1014
|
return new DbuConnector({
|
|
996
1015
|
BASE_URL: env.DBUCS_BASE_URI,
|
|
@@ -1907,4 +1926,4 @@ class MockConnector extends IBankConnector {
|
|
|
1907
1926
|
}
|
|
1908
1927
|
}
|
|
1909
1928
|
|
|
1910
|
-
export { DbuConnector as D, ErsteConnector as E, FINBRICKS_ENDPOINTS as F, IBankConnector as I, MockCobsConnector as M, FinbricksClient as a, FinbricksConnector as b, MockConnector as c, assignAccount as d, batchTransform as e, toCompletedPayment as f, toIncomingPayment as g, toPreparedPayment as h, initiateConnector as i, signFinbricksJws as s, toBatchedPayment as t, useFinbricksFetch as u };
|
|
1929
|
+
export { DbuConnector as D, ErsteConnector as E, FINBRICKS_ENDPOINTS as F, IBankConnector as I, KBConnector as K, MockCobsConnector as M, FinbricksClient as a, FinbricksConnector as b, MockConnector as c, assignAccount as d, batchTransform as e, toCompletedPayment as f, toIncomingPayment as g, toPreparedPayment as h, initiateConnector as i, signFinbricksJws as s, toBatchedPayment as t, useFinbricksFetch as u };
|
|
@@ -393,6 +393,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
393
393
|
UA: "UA";
|
|
394
394
|
AE: "AE";
|
|
395
395
|
GB: "GB";
|
|
396
|
+
US: "US";
|
|
396
397
|
UZ: "UZ";
|
|
397
398
|
VU: "VU";
|
|
398
399
|
VE: "VE";
|
|
@@ -722,6 +723,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
722
723
|
UA: "UA";
|
|
723
724
|
AE: "AE";
|
|
724
725
|
GB: "GB";
|
|
726
|
+
US: "US";
|
|
725
727
|
UZ: "UZ";
|
|
726
728
|
VU: "VU";
|
|
727
729
|
VE: "VE";
|
|
@@ -393,6 +393,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
393
393
|
UA: "UA";
|
|
394
394
|
AE: "AE";
|
|
395
395
|
GB: "GB";
|
|
396
|
+
US: "US";
|
|
396
397
|
UZ: "UZ";
|
|
397
398
|
VU: "VU";
|
|
398
399
|
VE: "VE";
|
|
@@ -722,6 +723,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
722
723
|
UA: "UA";
|
|
723
724
|
AE: "AE";
|
|
724
725
|
GB: "GB";
|
|
726
|
+
US: "US";
|
|
725
727
|
UZ: "UZ";
|
|
726
728
|
VU: "VU";
|
|
727
729
|
VE: "VE";
|
|
@@ -393,6 +393,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
393
393
|
UA: "UA";
|
|
394
394
|
AE: "AE";
|
|
395
395
|
GB: "GB";
|
|
396
|
+
US: "US";
|
|
396
397
|
UZ: "UZ";
|
|
397
398
|
VU: "VU";
|
|
398
399
|
VE: "VE";
|
|
@@ -722,6 +723,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
|
|
|
722
723
|
UA: "UA";
|
|
723
724
|
AE: "AE";
|
|
724
725
|
GB: "GB";
|
|
726
|
+
US: "US";
|
|
725
727
|
UZ: "UZ";
|
|
726
728
|
VU: "VU";
|
|
727
729
|
VE: "VE";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as account, p as accountCredentials, q as batch, r as ott, s as payment, t as paymentRelations } from './bank.
|
|
1
|
+
import { n as account, p as accountCredentials, q as batch, r as ott, s as payment, t as paymentRelations } from './bank.PB07ttj3.mjs';
|
|
2
2
|
|
|
3
3
|
const schema = {
|
|
4
4
|
__proto__: null,
|