@develit-services/bank 0.8.19 → 1.0.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/README.md +33 -0
- package/dist/database/schema.cjs +10 -10
- package/dist/database/schema.d.cts +2 -1
- package/dist/database/schema.d.mts +2 -1
- package/dist/database/schema.d.ts +2 -1
- package/dist/database/schema.mjs +2 -2
- package/dist/export/worker.cjs +170 -175
- package/dist/export/worker.d.cts +2089 -945
- package/dist/export/worker.d.mts +2089 -945
- package/dist/export/worker.d.ts +2089 -945
- package/dist/export/worker.mjs +54 -59
- package/dist/export/workflows.cjs +33 -47
- package/dist/export/workflows.mjs +8 -22
- package/dist/export/wrangler.d.cts +2 -1
- package/dist/export/wrangler.d.mts +2 -1
- package/dist/export/wrangler.d.ts +2 -1
- package/dist/shared/{bank.B6dkPRYF.mjs → bank.B4EjD9Ok.mjs} +47 -9
- package/dist/shared/{bank.xB9eTN77.mjs → bank.B9-zZrEf.mjs} +2 -5
- package/dist/shared/{bank.C75Z9vML.cjs → bank.BXGLMl7o.cjs} +47 -9
- package/dist/shared/{bank.Cev1E9sk.cjs → bank.BbltNpz3.cjs} +14 -18
- package/dist/shared/{bank.DMjtitKo.d.cts → bank.CVJosema.d.cts} +1 -0
- package/dist/shared/{bank.DMjtitKo.d.mts → bank.CVJosema.d.mts} +1 -0
- package/dist/shared/{bank.DMjtitKo.d.ts → bank.CVJosema.d.ts} +1 -0
- package/dist/shared/{bank.CXBeULUL.mjs → bank.CiB2ECAF.mjs} +60 -7
- package/dist/shared/{bank.DzxhtOpm.d.mts → bank.DAfpDA5W.d.mts} +890 -17
- package/dist/shared/{bank.D8BIM2O3.d.cts → bank.DB0MCjZ8.d.cts} +1800 -1635
- package/dist/shared/{bank.D8BIM2O3.d.mts → bank.DB0MCjZ8.d.mts} +1800 -1635
- package/dist/shared/{bank.D8BIM2O3.d.ts → bank.DB0MCjZ8.d.ts} +1800 -1635
- package/dist/shared/{bank.UJe0t85A.d.cts → bank.DaEiUdrR.d.ts} +890 -17
- package/dist/shared/{bank.BsIiXsFH.cjs → bank.NF8bZBy0.cjs} +0 -9
- package/dist/shared/{bank.BBXoZ5QU.cjs → bank.Qg6TA8fX.cjs} +65 -5
- package/dist/shared/{bank.vz1uqEYa.mjs → bank.XqSw509X.mjs} +1 -8
- package/dist/shared/{bank.C695fceV.d.ts → bank.n1wkvbjN.d.cts} +890 -17
- package/dist/types.cjs +32 -29
- package/dist/types.d.cts +13 -8
- package/dist/types.d.mts +13 -8
- package/dist/types.d.ts +13 -8
- package/dist/types.mjs +4 -4
- package/package.json +1 -1
- package/dist/shared/bank.CR0UlyRi.mjs +0 -15
- package/dist/shared/bank.CVi6R7fr.cjs +0 -17
package/dist/types.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const mock_connector = require('./shared/bank.
|
|
4
|
-
const
|
|
5
|
-
const batchLifecycle = require('./shared/bank.
|
|
3
|
+
const mock_connector = require('./shared/bank.BXGLMl7o.cjs');
|
|
4
|
+
const database_schema = require('./shared/bank.Qg6TA8fX.cjs');
|
|
5
|
+
const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const generalCodes = require('@develit-io/general-codes');
|
|
7
7
|
require('@develit-io/backend-sdk');
|
|
8
8
|
require('date-fns');
|
|
9
9
|
require('drizzle-orm');
|
|
10
10
|
require('jose');
|
|
11
11
|
require('node:crypto');
|
|
12
|
-
require('drizzle-orm/relations');
|
|
13
12
|
require('drizzle-orm/sqlite-core');
|
|
13
|
+
require('drizzle-orm/relations');
|
|
14
14
|
require('drizzle-zod');
|
|
15
15
|
|
|
16
16
|
|
|
@@ -34,36 +34,39 @@ exports.toIncomingPayment = mock_connector.toIncomingPayment;
|
|
|
34
34
|
exports.toPaymentRequestInsert = mock_connector.toPaymentRequestInsert;
|
|
35
35
|
exports.toPreparedPayment = mock_connector.toPreparedPayment;
|
|
36
36
|
exports.useFinbricksFetch = mock_connector.useFinbricksFetch;
|
|
37
|
-
exports.ACCOUNT_STATUSES =
|
|
38
|
-
exports.BATCH_MODES =
|
|
39
|
-
exports.BATCH_STATUES =
|
|
40
|
-
exports.BATCH_STATUSES =
|
|
41
|
-
exports.CHARGE_BEARERS =
|
|
42
|
-
exports.CONNECTOR_KEYS =
|
|
43
|
-
exports.COUNTRY_CODES =
|
|
44
|
-
exports.CREDENTIALS_TYPES =
|
|
45
|
-
exports.INSTRUCTION_PRIORITIES =
|
|
46
|
-
exports.PAYMENT_DIRECTIONS =
|
|
47
|
-
exports.PAYMENT_REQUEST_STATUSES =
|
|
48
|
-
exports.PAYMENT_STATUSES =
|
|
49
|
-
exports.PAYMENT_TYPES =
|
|
50
|
-
exports.TOKEN_TYPES =
|
|
51
|
-
exports.accountCredentialsInsertSchema =
|
|
52
|
-
exports.accountCredentialsSelectSchema =
|
|
53
|
-
exports.accountCredentialsUpdateSchema =
|
|
54
|
-
exports.accountInsertSchema =
|
|
55
|
-
exports.accountSelectSchema =
|
|
56
|
-
exports.accountUpdateSchema =
|
|
57
|
-
exports.
|
|
58
|
-
exports.
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
37
|
+
exports.ACCOUNT_STATUSES = database_schema.ACCOUNT_STATUSES;
|
|
38
|
+
exports.BATCH_MODES = database_schema.BATCH_MODES;
|
|
39
|
+
exports.BATCH_STATUES = database_schema.BATCH_STATUSES;
|
|
40
|
+
exports.BATCH_STATUSES = database_schema.BATCH_STATUSES;
|
|
41
|
+
exports.CHARGE_BEARERS = database_schema.CHARGE_BEARERS;
|
|
42
|
+
exports.CONNECTOR_KEYS = database_schema.CONNECTOR_KEYS;
|
|
43
|
+
exports.COUNTRY_CODES = database_schema.COUNTRY_CODES;
|
|
44
|
+
exports.CREDENTIALS_TYPES = database_schema.CREDENTIALS_TYPES;
|
|
45
|
+
exports.INSTRUCTION_PRIORITIES = database_schema.INSTRUCTION_PRIORITIES;
|
|
46
|
+
exports.PAYMENT_DIRECTIONS = database_schema.PAYMENT_DIRECTIONS;
|
|
47
|
+
exports.PAYMENT_REQUEST_STATUSES = database_schema.PAYMENT_REQUEST_STATUSES;
|
|
48
|
+
exports.PAYMENT_STATUSES = database_schema.PAYMENT_STATUSES;
|
|
49
|
+
exports.PAYMENT_TYPES = database_schema.PAYMENT_TYPES;
|
|
50
|
+
exports.TOKEN_TYPES = database_schema.TOKEN_TYPES;
|
|
51
|
+
exports.accountCredentialsInsertSchema = database_schema.accountCredentialsInsertSchema;
|
|
52
|
+
exports.accountCredentialsSelectSchema = database_schema.accountCredentialsSelectSchema;
|
|
53
|
+
exports.accountCredentialsUpdateSchema = database_schema.accountCredentialsUpdateSchema;
|
|
54
|
+
exports.accountInsertSchema = database_schema.accountInsertSchema;
|
|
55
|
+
exports.accountSelectSchema = database_schema.accountSelectSchema;
|
|
56
|
+
exports.accountUpdateSchema = database_schema.accountUpdateSchema;
|
|
57
|
+
exports.hasPaymentAccountAssigned = database_schema.hasPaymentAccountAssigned;
|
|
58
|
+
exports.isPaymentCompleted = database_schema.isPaymentCompleted;
|
|
59
|
+
exports.isPendingStatus = database_schema.isPendingStatus;
|
|
60
|
+
exports.isProcessedStatus = database_schema.isProcessedStatus;
|
|
61
|
+
exports.isTerminalStatus = database_schema.isTerminalStatus;
|
|
62
|
+
exports.ottInsertSchema = database_schema.ottInsertSchema;
|
|
63
|
+
exports.ottSelectSchema = database_schema.ottSelectSchema;
|
|
64
|
+
exports.ottUpdateSchema = database_schema.ottUpdateSchema;
|
|
61
65
|
exports.isBatchAuthorized = batchLifecycle.isBatchAuthorized;
|
|
62
66
|
exports.isBatchCompleted = batchLifecycle.isBatchCompleted;
|
|
63
67
|
exports.isBatchFailed = batchLifecycle.isBatchFailed;
|
|
64
68
|
exports.isBatchInitiated = batchLifecycle.isBatchInitiated;
|
|
65
69
|
exports.isBatchProcessing = batchLifecycle.isBatchProcessing;
|
|
66
70
|
exports.isBatchReadyToSign = batchLifecycle.isBatchReadyToSign;
|
|
67
|
-
exports.isPaymentCompleted = batchLifecycle.isPaymentCompleted;
|
|
68
71
|
exports.BANK_CODES = generalCodes.BANK_CODES;
|
|
69
72
|
exports.CURRENCY_CODES = generalCodes.CURRENCY_CODES;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, f as ConnectedAccount, c as PaymentType, g as CredentialsResolver, h as AccountCredentialsInsertType, i as AccountInsertType, j as BatchedPayment, k as InitiatedBatch, l as IncomingPayment, m as InitiatedPayment, A as AccountSelectType, n as ParsedBankPayment, o as PaymentRequestStatus, p as AuthorizationCallbackResult, q as BatchMetadata, r as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment, w as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { x as ACCOUNT_STATUSES, y as AccountCredentialsPatchType, z as AccountCredentialsSelectType, D as AccountCredentialsUpdateType, E as AccountPatchType, F as AccountStatus, G as AccountUpdateType, J as AuthorizedBatch, K as BATCH_MODES, M as BATCH_STATUES, M as BATCH_STATUSES, N as BankAccountWithLastSync, O as BankCode, Q as BatchInsertType, R as BatchLifecycle, S as BatchMode, T as BatchPayment, B as BatchSelectType, U as BatchStatus, V as CHARGE_BEARERS, W as CONNECTOR_KEYS, X as COUNTRY_CODES, Y as CREDENTIALS_TYPES, Z as ChargeBearer, _ as CompletedBatch, C as ConfigEnvironmentBank, $ as CountryCode, a0 as CredentialsType, d as CurrencyCode, a1 as INSTRUCTION_PRIORITIES, a2 as InstructionPriority, L as LastSyncMetadata, a3 as PAYMENT_DIRECTIONS, a4 as PAYMENT_REQUEST_STATUSES, a5 as PAYMENT_STATUSES, a6 as PAYMENT_TYPES, a7 as PaymentDirection, a8 as PaymentFailedInsertType, a9 as PaymentInsertType, aa as PaymentLifecycle, ab as PaymentPreparedInsertType, ac as PaymentStatus, ad as ProcessingBatch, ae as ReadyToSignBatch, af as ResolvedCredentials, ag as TOKEN_TYPES, ah as TokenType, ai as accountCredentialsInsertSchema, aj as accountCredentialsSelectSchema, ak as accountCredentialsUpdateSchema, al as accountInsertSchema, am as accountSelectSchema, an as accountUpdateSchema, ao as hasPaymentAccountAssigned, ap as isBatchAuthorized, aq as isBatchCompleted, ar as isBatchFailed, as as isBatchInitiated, at as isBatchProcessing, au as isBatchReadyToSign, av as isPaymentCompleted } from './shared/bank.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.
|
|
5
|
-
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, f as ConnectedAccount, c as PaymentType, g as CredentialsResolver, h as AccountCredentialsInsertType, i as AccountInsertType, j as BatchedPayment, k as InitiatedBatch, l as IncomingPayment, m as InitiatedPayment, A as AccountSelectType, n as ParsedBankPayment, o as PaymentRequestStatus, p as AuthorizationCallbackResult, q as BatchMetadata, r as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment, w as PaymentRequestInsertType } from './shared/bank.DB0MCjZ8.cjs';
|
|
2
|
+
export { x as ACCOUNT_STATUSES, y as AccountCredentialsPatchType, z as AccountCredentialsSelectType, D as AccountCredentialsUpdateType, E as AccountPatchType, F as AccountStatus, G as AccountUpdateType, J as AuthorizedBatch, K as BATCH_MODES, M as BATCH_STATUES, M as BATCH_STATUSES, N as BankAccountWithLastSync, O as BankCode, Q as BatchInsertType, R as BatchLifecycle, S as BatchMode, T as BatchPayment, B as BatchSelectType, U as BatchStatus, V as CHARGE_BEARERS, W as CONNECTOR_KEYS, X as COUNTRY_CODES, Y as CREDENTIALS_TYPES, Z as ChargeBearer, _ as CompletedBatch, C as ConfigEnvironmentBank, $ as CountryCode, a0 as CredentialsType, d as CurrencyCode, a1 as INSTRUCTION_PRIORITIES, a2 as InstructionPriority, L as LastSyncMetadata, a3 as PAYMENT_DIRECTIONS, a4 as PAYMENT_REQUEST_STATUSES, a5 as PAYMENT_STATUSES, a6 as PAYMENT_TYPES, a7 as PaymentDirection, a8 as PaymentFailedInsertType, a9 as PaymentInsertType, aa as PaymentLifecycle, ab as PaymentPreparedInsertType, ac as PaymentStatus, ad as ProcessingBatch, ae as ReadyToSignBatch, af as ResolvedCredentials, ag as TOKEN_TYPES, ah as TokenType, ai as accountCredentialsInsertSchema, aj as accountCredentialsSelectSchema, ak as accountCredentialsUpdateSchema, al as accountInsertSchema, am as accountSelectSchema, an as accountUpdateSchema, ao as hasPaymentAccountAssigned, ap as isBatchAuthorized, aq as isBatchCompleted, ar as isBatchFailed, as as isBatchInitiated, at as isBatchProcessing, au as isBatchReadyToSign, av as isPaymentCompleted, aw as isPendingStatus, ax as isProcessedStatus, ay as isTerminalStatus } from './shared/bank.DB0MCjZ8.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.n1wkvbjN.cjs';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.n1wkvbjN.cjs';
|
|
5
|
+
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CVJosema.cjs';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
|
8
8
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
11
11
|
import 'drizzle-orm';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
type FinbricksProvider = 'KB' | 'ERSTE' | 'CSOB' | 'MOCK_COBS' | 'CREDITAS' | 'FIO' | 'MONETA' | 'AIRBANK' | 'CSAS';
|
|
14
15
|
declare const FINBRICKS_TRANSACTION_STATUSES: readonly ["OPENED", "AUTHORIZED", "COMPLETED", "BOOKED", "SETTLED", "REJECTED", "CLOSED"];
|
|
@@ -145,7 +146,8 @@ type FinbricksForeignPaymentBody = {
|
|
|
145
146
|
};
|
|
146
147
|
creditorName: string;
|
|
147
148
|
postalAddress?: {
|
|
148
|
-
|
|
149
|
+
streetName?: string;
|
|
150
|
+
buildingNumber?: string;
|
|
149
151
|
town?: string;
|
|
150
152
|
country?: string;
|
|
151
153
|
};
|
|
@@ -155,7 +157,8 @@ type FinbricksForeignPaymentBody = {
|
|
|
155
157
|
bic?: string;
|
|
156
158
|
name?: string;
|
|
157
159
|
postalAddress?: {
|
|
158
|
-
|
|
160
|
+
streetName?: string;
|
|
161
|
+
buildingNumber?: string;
|
|
159
162
|
town?: string;
|
|
160
163
|
country?: string;
|
|
161
164
|
};
|
|
@@ -301,6 +304,7 @@ declare class CsobConnector extends FinbricksConnector {
|
|
|
301
304
|
interface DbuConnectorConfig {
|
|
302
305
|
BASE_URL: string;
|
|
303
306
|
USERNAME: string;
|
|
307
|
+
APPLICATION_CODE: string;
|
|
304
308
|
KV: KVNamespace;
|
|
305
309
|
API: Fetcher;
|
|
306
310
|
REDIRECT_URI: string;
|
|
@@ -314,11 +318,12 @@ declare class DbuConnector extends IBankConnector {
|
|
|
314
318
|
readonly api: Fetcher;
|
|
315
319
|
private readonly baseUrl;
|
|
316
320
|
private readonly username;
|
|
321
|
+
private readonly applicationCode;
|
|
317
322
|
private readonly sessionId;
|
|
318
323
|
private readonly redirectUri;
|
|
319
324
|
private readonly txAuthUri;
|
|
320
325
|
private readonly allowedPostEndpoints;
|
|
321
|
-
constructor({ BASE_URL, USERNAME, KV, API, REDIRECT_URI, TX_AUTH_URI, connectedAccounts, }: DbuConnectorConfig);
|
|
326
|
+
constructor({ BASE_URL, USERNAME, APPLICATION_CODE, KV, API, REDIRECT_URI, TX_AUTH_URI, connectedAccounts, }: DbuConnectorConfig);
|
|
322
327
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
323
328
|
private makeRequest;
|
|
324
329
|
private mapDbuCurrencyCode;
|
package/dist/types.d.mts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, f as ConnectedAccount, c as PaymentType, g as CredentialsResolver, h as AccountCredentialsInsertType, i as AccountInsertType, j as BatchedPayment, k as InitiatedBatch, l as IncomingPayment, m as InitiatedPayment, A as AccountSelectType, n as ParsedBankPayment, o as PaymentRequestStatus, p as AuthorizationCallbackResult, q as BatchMetadata, r as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment, w as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { x as ACCOUNT_STATUSES, y as AccountCredentialsPatchType, z as AccountCredentialsSelectType, D as AccountCredentialsUpdateType, E as AccountPatchType, F as AccountStatus, G as AccountUpdateType, J as AuthorizedBatch, K as BATCH_MODES, M as BATCH_STATUES, M as BATCH_STATUSES, N as BankAccountWithLastSync, O as BankCode, Q as BatchInsertType, R as BatchLifecycle, S as BatchMode, T as BatchPayment, B as BatchSelectType, U as BatchStatus, V as CHARGE_BEARERS, W as CONNECTOR_KEYS, X as COUNTRY_CODES, Y as CREDENTIALS_TYPES, Z as ChargeBearer, _ as CompletedBatch, C as ConfigEnvironmentBank, $ as CountryCode, a0 as CredentialsType, d as CurrencyCode, a1 as INSTRUCTION_PRIORITIES, a2 as InstructionPriority, L as LastSyncMetadata, a3 as PAYMENT_DIRECTIONS, a4 as PAYMENT_REQUEST_STATUSES, a5 as PAYMENT_STATUSES, a6 as PAYMENT_TYPES, a7 as PaymentDirection, a8 as PaymentFailedInsertType, a9 as PaymentInsertType, aa as PaymentLifecycle, ab as PaymentPreparedInsertType, ac as PaymentStatus, ad as ProcessingBatch, ae as ReadyToSignBatch, af as ResolvedCredentials, ag as TOKEN_TYPES, ah as TokenType, ai as accountCredentialsInsertSchema, aj as accountCredentialsSelectSchema, ak as accountCredentialsUpdateSchema, al as accountInsertSchema, am as accountSelectSchema, an as accountUpdateSchema, ao as hasPaymentAccountAssigned, ap as isBatchAuthorized, aq as isBatchCompleted, ar as isBatchFailed, as as isBatchInitiated, at as isBatchProcessing, au as isBatchReadyToSign, av as isPaymentCompleted } from './shared/bank.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.
|
|
5
|
-
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, f as ConnectedAccount, c as PaymentType, g as CredentialsResolver, h as AccountCredentialsInsertType, i as AccountInsertType, j as BatchedPayment, k as InitiatedBatch, l as IncomingPayment, m as InitiatedPayment, A as AccountSelectType, n as ParsedBankPayment, o as PaymentRequestStatus, p as AuthorizationCallbackResult, q as BatchMetadata, r as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment, w as PaymentRequestInsertType } from './shared/bank.DB0MCjZ8.mjs';
|
|
2
|
+
export { x as ACCOUNT_STATUSES, y as AccountCredentialsPatchType, z as AccountCredentialsSelectType, D as AccountCredentialsUpdateType, E as AccountPatchType, F as AccountStatus, G as AccountUpdateType, J as AuthorizedBatch, K as BATCH_MODES, M as BATCH_STATUES, M as BATCH_STATUSES, N as BankAccountWithLastSync, O as BankCode, Q as BatchInsertType, R as BatchLifecycle, S as BatchMode, T as BatchPayment, B as BatchSelectType, U as BatchStatus, V as CHARGE_BEARERS, W as CONNECTOR_KEYS, X as COUNTRY_CODES, Y as CREDENTIALS_TYPES, Z as ChargeBearer, _ as CompletedBatch, C as ConfigEnvironmentBank, $ as CountryCode, a0 as CredentialsType, d as CurrencyCode, a1 as INSTRUCTION_PRIORITIES, a2 as InstructionPriority, L as LastSyncMetadata, a3 as PAYMENT_DIRECTIONS, a4 as PAYMENT_REQUEST_STATUSES, a5 as PAYMENT_STATUSES, a6 as PAYMENT_TYPES, a7 as PaymentDirection, a8 as PaymentFailedInsertType, a9 as PaymentInsertType, aa as PaymentLifecycle, ab as PaymentPreparedInsertType, ac as PaymentStatus, ad as ProcessingBatch, ae as ReadyToSignBatch, af as ResolvedCredentials, ag as TOKEN_TYPES, ah as TokenType, ai as accountCredentialsInsertSchema, aj as accountCredentialsSelectSchema, ak as accountCredentialsUpdateSchema, al as accountInsertSchema, am as accountSelectSchema, an as accountUpdateSchema, ao as hasPaymentAccountAssigned, ap as isBatchAuthorized, aq as isBatchCompleted, ar as isBatchFailed, as as isBatchInitiated, at as isBatchProcessing, au as isBatchReadyToSign, av as isPaymentCompleted, aw as isPendingStatus, ax as isProcessedStatus, ay as isTerminalStatus } from './shared/bank.DB0MCjZ8.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DAfpDA5W.mjs';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.DAfpDA5W.mjs';
|
|
5
|
+
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CVJosema.mjs';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
|
8
8
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
11
11
|
import 'drizzle-orm';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
type FinbricksProvider = 'KB' | 'ERSTE' | 'CSOB' | 'MOCK_COBS' | 'CREDITAS' | 'FIO' | 'MONETA' | 'AIRBANK' | 'CSAS';
|
|
14
15
|
declare const FINBRICKS_TRANSACTION_STATUSES: readonly ["OPENED", "AUTHORIZED", "COMPLETED", "BOOKED", "SETTLED", "REJECTED", "CLOSED"];
|
|
@@ -145,7 +146,8 @@ type FinbricksForeignPaymentBody = {
|
|
|
145
146
|
};
|
|
146
147
|
creditorName: string;
|
|
147
148
|
postalAddress?: {
|
|
148
|
-
|
|
149
|
+
streetName?: string;
|
|
150
|
+
buildingNumber?: string;
|
|
149
151
|
town?: string;
|
|
150
152
|
country?: string;
|
|
151
153
|
};
|
|
@@ -155,7 +157,8 @@ type FinbricksForeignPaymentBody = {
|
|
|
155
157
|
bic?: string;
|
|
156
158
|
name?: string;
|
|
157
159
|
postalAddress?: {
|
|
158
|
-
|
|
160
|
+
streetName?: string;
|
|
161
|
+
buildingNumber?: string;
|
|
159
162
|
town?: string;
|
|
160
163
|
country?: string;
|
|
161
164
|
};
|
|
@@ -301,6 +304,7 @@ declare class CsobConnector extends FinbricksConnector {
|
|
|
301
304
|
interface DbuConnectorConfig {
|
|
302
305
|
BASE_URL: string;
|
|
303
306
|
USERNAME: string;
|
|
307
|
+
APPLICATION_CODE: string;
|
|
304
308
|
KV: KVNamespace;
|
|
305
309
|
API: Fetcher;
|
|
306
310
|
REDIRECT_URI: string;
|
|
@@ -314,11 +318,12 @@ declare class DbuConnector extends IBankConnector {
|
|
|
314
318
|
readonly api: Fetcher;
|
|
315
319
|
private readonly baseUrl;
|
|
316
320
|
private readonly username;
|
|
321
|
+
private readonly applicationCode;
|
|
317
322
|
private readonly sessionId;
|
|
318
323
|
private readonly redirectUri;
|
|
319
324
|
private readonly txAuthUri;
|
|
320
325
|
private readonly allowedPostEndpoints;
|
|
321
|
-
constructor({ BASE_URL, USERNAME, KV, API, REDIRECT_URI, TX_AUTH_URI, connectedAccounts, }: DbuConnectorConfig);
|
|
326
|
+
constructor({ BASE_URL, USERNAME, APPLICATION_CODE, KV, API, REDIRECT_URI, TX_AUTH_URI, connectedAccounts, }: DbuConnectorConfig);
|
|
322
327
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
323
328
|
private makeRequest;
|
|
324
329
|
private mapDbuCurrencyCode;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, f as ConnectedAccount, c as PaymentType, g as CredentialsResolver, h as AccountCredentialsInsertType, i as AccountInsertType, j as BatchedPayment, k as InitiatedBatch, l as IncomingPayment, m as InitiatedPayment, A as AccountSelectType, n as ParsedBankPayment, o as PaymentRequestStatus, p as AuthorizationCallbackResult, q as BatchMetadata, r as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment, w as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { x as ACCOUNT_STATUSES, y as AccountCredentialsPatchType, z as AccountCredentialsSelectType, D as AccountCredentialsUpdateType, E as AccountPatchType, F as AccountStatus, G as AccountUpdateType, J as AuthorizedBatch, K as BATCH_MODES, M as BATCH_STATUES, M as BATCH_STATUSES, N as BankAccountWithLastSync, O as BankCode, Q as BatchInsertType, R as BatchLifecycle, S as BatchMode, T as BatchPayment, B as BatchSelectType, U as BatchStatus, V as CHARGE_BEARERS, W as CONNECTOR_KEYS, X as COUNTRY_CODES, Y as CREDENTIALS_TYPES, Z as ChargeBearer, _ as CompletedBatch, C as ConfigEnvironmentBank, $ as CountryCode, a0 as CredentialsType, d as CurrencyCode, a1 as INSTRUCTION_PRIORITIES, a2 as InstructionPriority, L as LastSyncMetadata, a3 as PAYMENT_DIRECTIONS, a4 as PAYMENT_REQUEST_STATUSES, a5 as PAYMENT_STATUSES, a6 as PAYMENT_TYPES, a7 as PaymentDirection, a8 as PaymentFailedInsertType, a9 as PaymentInsertType, aa as PaymentLifecycle, ab as PaymentPreparedInsertType, ac as PaymentStatus, ad as ProcessingBatch, ae as ReadyToSignBatch, af as ResolvedCredentials, ag as TOKEN_TYPES, ah as TokenType, ai as accountCredentialsInsertSchema, aj as accountCredentialsSelectSchema, ak as accountCredentialsUpdateSchema, al as accountInsertSchema, am as accountSelectSchema, an as accountUpdateSchema, ao as hasPaymentAccountAssigned, ap as isBatchAuthorized, aq as isBatchCompleted, ar as isBatchFailed, as as isBatchInitiated, at as isBatchProcessing, au as isBatchReadyToSign, av as isPaymentCompleted } from './shared/bank.
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.
|
|
5
|
-
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, f as ConnectedAccount, c as PaymentType, g as CredentialsResolver, h as AccountCredentialsInsertType, i as AccountInsertType, j as BatchedPayment, k as InitiatedBatch, l as IncomingPayment, m as InitiatedPayment, A as AccountSelectType, n as ParsedBankPayment, o as PaymentRequestStatus, p as AuthorizationCallbackResult, q as BatchMetadata, r as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment, w as PaymentRequestInsertType } from './shared/bank.DB0MCjZ8.js';
|
|
2
|
+
export { x as ACCOUNT_STATUSES, y as AccountCredentialsPatchType, z as AccountCredentialsSelectType, D as AccountCredentialsUpdateType, E as AccountPatchType, F as AccountStatus, G as AccountUpdateType, J as AuthorizedBatch, K as BATCH_MODES, M as BATCH_STATUES, M as BATCH_STATUSES, N as BankAccountWithLastSync, O as BankCode, Q as BatchInsertType, R as BatchLifecycle, S as BatchMode, T as BatchPayment, B as BatchSelectType, U as BatchStatus, V as CHARGE_BEARERS, W as CONNECTOR_KEYS, X as COUNTRY_CODES, Y as CREDENTIALS_TYPES, Z as ChargeBearer, _ as CompletedBatch, C as ConfigEnvironmentBank, $ as CountryCode, a0 as CredentialsType, d as CurrencyCode, a1 as INSTRUCTION_PRIORITIES, a2 as InstructionPriority, L as LastSyncMetadata, a3 as PAYMENT_DIRECTIONS, a4 as PAYMENT_REQUEST_STATUSES, a5 as PAYMENT_STATUSES, a6 as PAYMENT_TYPES, a7 as PaymentDirection, a8 as PaymentFailedInsertType, a9 as PaymentInsertType, aa as PaymentLifecycle, ab as PaymentPreparedInsertType, ac as PaymentStatus, ad as ProcessingBatch, ae as ReadyToSignBatch, af as ResolvedCredentials, ag as TOKEN_TYPES, ah as TokenType, ai as accountCredentialsInsertSchema, aj as accountCredentialsSelectSchema, ak as accountCredentialsUpdateSchema, al as accountInsertSchema, am as accountSelectSchema, an as accountUpdateSchema, ao as hasPaymentAccountAssigned, ap as isBatchAuthorized, aq as isBatchCompleted, ar as isBatchFailed, as as isBatchInitiated, at as isBatchProcessing, au as isBatchReadyToSign, av as isPaymentCompleted, aw as isPendingStatus, ax as isProcessedStatus, ay as isTerminalStatus } from './shared/bank.DB0MCjZ8.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DaEiUdrR.js';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.DaEiUdrR.js';
|
|
5
|
+
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CVJosema.js';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
|
8
8
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
11
11
|
import 'drizzle-orm';
|
|
12
|
+
import 'zod/v4/core';
|
|
12
13
|
|
|
13
14
|
type FinbricksProvider = 'KB' | 'ERSTE' | 'CSOB' | 'MOCK_COBS' | 'CREDITAS' | 'FIO' | 'MONETA' | 'AIRBANK' | 'CSAS';
|
|
14
15
|
declare const FINBRICKS_TRANSACTION_STATUSES: readonly ["OPENED", "AUTHORIZED", "COMPLETED", "BOOKED", "SETTLED", "REJECTED", "CLOSED"];
|
|
@@ -145,7 +146,8 @@ type FinbricksForeignPaymentBody = {
|
|
|
145
146
|
};
|
|
146
147
|
creditorName: string;
|
|
147
148
|
postalAddress?: {
|
|
148
|
-
|
|
149
|
+
streetName?: string;
|
|
150
|
+
buildingNumber?: string;
|
|
149
151
|
town?: string;
|
|
150
152
|
country?: string;
|
|
151
153
|
};
|
|
@@ -155,7 +157,8 @@ type FinbricksForeignPaymentBody = {
|
|
|
155
157
|
bic?: string;
|
|
156
158
|
name?: string;
|
|
157
159
|
postalAddress?: {
|
|
158
|
-
|
|
160
|
+
streetName?: string;
|
|
161
|
+
buildingNumber?: string;
|
|
159
162
|
town?: string;
|
|
160
163
|
country?: string;
|
|
161
164
|
};
|
|
@@ -301,6 +304,7 @@ declare class CsobConnector extends FinbricksConnector {
|
|
|
301
304
|
interface DbuConnectorConfig {
|
|
302
305
|
BASE_URL: string;
|
|
303
306
|
USERNAME: string;
|
|
307
|
+
APPLICATION_CODE: string;
|
|
304
308
|
KV: KVNamespace;
|
|
305
309
|
API: Fetcher;
|
|
306
310
|
REDIRECT_URI: string;
|
|
@@ -314,11 +318,12 @@ declare class DbuConnector extends IBankConnector {
|
|
|
314
318
|
readonly api: Fetcher;
|
|
315
319
|
private readonly baseUrl;
|
|
316
320
|
private readonly username;
|
|
321
|
+
private readonly applicationCode;
|
|
317
322
|
private readonly sessionId;
|
|
318
323
|
private readonly redirectUri;
|
|
319
324
|
private readonly txAuthUri;
|
|
320
325
|
private readonly allowedPostEndpoints;
|
|
321
|
-
constructor({ BASE_URL, USERNAME, KV, API, REDIRECT_URI, TX_AUTH_URI, connectedAccounts, }: DbuConnectorConfig);
|
|
326
|
+
constructor({ BASE_URL, USERNAME, APPLICATION_CODE, KV, API, REDIRECT_URI, TX_AUTH_URI, connectedAccounts, }: DbuConnectorConfig);
|
|
322
327
|
supportsBatch(_paymentType: PaymentType): boolean;
|
|
323
328
|
private makeRequest;
|
|
324
329
|
private mapDbuCurrencyCode;
|
package/dist/types.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, s as signFinbricksJws, t as toBatchedPayment, e as toBatchedPaymentFromPaymentRequest, f as toCompletedPayment, g as toIncomingPayment, h as toPaymentRequestInsert, i as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.
|
|
2
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES, f as PAYMENT_STATUSES, g as PAYMENT_TYPES, T as TOKEN_TYPES, h as accountCredentialsInsertSchema, i as accountCredentialsSelectSchema, j as accountCredentialsUpdateSchema, k as accountInsertSchema, l as accountSelectSchema, m as accountUpdateSchema, o as ottInsertSchema,
|
|
3
|
-
export {
|
|
1
|
+
export { C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as assignAccount, s as signFinbricksJws, t as toBatchedPayment, e as toBatchedPaymentFromPaymentRequest, f as toCompletedPayment, g as toIncomingPayment, h as toPaymentRequestInsert, i as toPreparedPayment, u as useFinbricksFetch } from './shared/bank.B4EjD9Ok.mjs';
|
|
2
|
+
export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES, f as PAYMENT_STATUSES, g as PAYMENT_TYPES, T as TOKEN_TYPES, h as accountCredentialsInsertSchema, i as accountCredentialsSelectSchema, j as accountCredentialsUpdateSchema, k as accountInsertSchema, l as accountSelectSchema, m as accountUpdateSchema, n as hasPaymentAccountAssigned, o as isPaymentCompleted, p as isPendingStatus, q as isProcessedStatus, r as isTerminalStatus, s as ottInsertSchema, t as ottSelectSchema, u as ottUpdateSchema } from './shared/bank.CiB2ECAF.mjs';
|
|
3
|
+
export { i as isBatchAuthorized, a as isBatchCompleted, b as isBatchFailed, c as isBatchInitiated, d as isBatchProcessing, e as isBatchReadyToSign } from './shared/bank.XqSw509X.mjs';
|
|
4
4
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
5
5
|
import '@develit-io/backend-sdk';
|
|
6
6
|
import 'date-fns';
|
|
7
7
|
import 'drizzle-orm';
|
|
8
8
|
import 'jose';
|
|
9
9
|
import 'node:crypto';
|
|
10
|
-
import 'drizzle-orm/relations';
|
|
11
10
|
import 'drizzle-orm/sqlite-core';
|
|
11
|
+
import 'drizzle-orm/relations';
|
|
12
12
|
import 'drizzle-zod';
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { q as account, r as accountCredentials, s as batch, t as ott, u as payment, v as paymentRelations, w as paymentRequest, x as paymentRequestRelations } from './bank.CXBeULUL.mjs';
|
|
2
|
-
|
|
3
|
-
const schema = {
|
|
4
|
-
__proto__: null,
|
|
5
|
-
account: account,
|
|
6
|
-
accountCredentials: accountCredentials,
|
|
7
|
-
batch: batch,
|
|
8
|
-
ott: ott,
|
|
9
|
-
payment: payment,
|
|
10
|
-
paymentRelations: paymentRelations,
|
|
11
|
-
paymentRequest: paymentRequest,
|
|
12
|
-
paymentRequestRelations: paymentRequestRelations
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { schema as s };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const paymentRequest_schema = require('./bank.BBXoZ5QU.cjs');
|
|
4
|
-
|
|
5
|
-
const schema = {
|
|
6
|
-
__proto__: null,
|
|
7
|
-
account: paymentRequest_schema.account,
|
|
8
|
-
accountCredentials: paymentRequest_schema.accountCredentials,
|
|
9
|
-
batch: paymentRequest_schema.batch,
|
|
10
|
-
ott: paymentRequest_schema.ott,
|
|
11
|
-
payment: paymentRequest_schema.payment,
|
|
12
|
-
paymentRelations: paymentRequest_schema.paymentRelations,
|
|
13
|
-
paymentRequest: paymentRequest_schema.paymentRequest,
|
|
14
|
-
paymentRequestRelations: paymentRequest_schema.paymentRequestRelations
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
exports.schema = schema;
|