@develit-services/bank 4.1.0 → 4.2.1
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.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/export/worker.cjs +217 -17
- package/dist/export/worker.d.cts +3 -2
- package/dist/export/worker.d.mts +3 -2
- package/dist/export/worker.d.ts +3 -2
- package/dist/export/worker.mjs +217 -17
- package/dist/export/workflows.cjs +102 -87
- package/dist/export/workflows.mjs +102 -87
- 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.C0JeMUxQ.d.cts → bank.BCqBwSKC.d.cts} +22 -3
- package/dist/shared/{bank.C0JeMUxQ.d.mts → bank.BCqBwSKC.d.mts} +22 -3
- package/dist/shared/{bank.C0JeMUxQ.d.ts → bank.BCqBwSKC.d.ts} +22 -3
- package/dist/shared/{bank.BScD3GXI.mjs → bank.BELDXSDV.mjs} +1 -1
- package/dist/shared/{bank.BxZARqNE.mjs → bank.BOMobxtA.mjs} +45 -18
- package/dist/shared/{bank.DflRiCrT.d.ts → bank.BmX_IG66.d.ts} +1 -1
- package/dist/shared/{bank.CjPpPiJF.d.mts → bank.BnCJmT6k.d.mts} +1 -1
- package/dist/shared/{bank.DNFep60v.cjs → bank.CioJeFzf.cjs} +1 -1
- package/dist/shared/{bank.xrNekjj9.cjs → bank.DiJmJkDt.cjs} +44 -16
- package/dist/shared/{bank.BydmpvCs.d.ts → bank.Dq24vYU7.d.cts} +1 -0
- package/dist/shared/{bank.BydmpvCs.d.cts → bank.Dq24vYU7.d.mts} +1 -0
- package/dist/shared/{bank.BydmpvCs.d.mts → bank.Dq24vYU7.d.ts} +1 -0
- package/dist/shared/{bank.CwB3cDIG.d.cts → bank.mHFTrKBv.d.cts} +1 -1
- package/dist/types.cjs +2 -1
- package/dist/types.d.cts +5 -5
- package/dist/types.d.mts +5 -5
- package/dist/types.d.ts +5 -5
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
|
@@ -47,6 +47,20 @@ async function signFinbricksJws({
|
|
|
47
47
|
return `${header}..${signature}`;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
const SENSITIVE_FIELDS = /* @__PURE__ */ new Set(["clientId"]);
|
|
51
|
+
const REDACTED = "[REDACTED]";
|
|
52
|
+
function redactFinbricksPayload(value) {
|
|
53
|
+
if (Array.isArray(value)) return value.map(redactFinbricksPayload);
|
|
54
|
+
if (value && typeof value === "object") {
|
|
55
|
+
const out = {};
|
|
56
|
+
for (const [key, v] of Object.entries(value)) {
|
|
57
|
+
out[key] = SENSITIVE_FIELDS.has(key) ? REDACTED : redactFinbricksPayload(v);
|
|
58
|
+
}
|
|
59
|
+
return out;
|
|
60
|
+
}
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
|
|
50
64
|
const useFinbricksFetch = async (config, init) => {
|
|
51
65
|
const {
|
|
52
66
|
baseUrl,
|
|
@@ -93,7 +107,7 @@ const useFinbricksFetch = async (config, init) => {
|
|
|
93
107
|
{
|
|
94
108
|
method,
|
|
95
109
|
url: url.toString(),
|
|
96
|
-
body: body
|
|
110
|
+
body: body ? redactFinbricksPayload(body) : null
|
|
97
111
|
},
|
|
98
112
|
null,
|
|
99
113
|
2
|
|
@@ -106,14 +120,20 @@ const useFinbricksFetch = async (config, init) => {
|
|
|
106
120
|
});
|
|
107
121
|
if (!res.ok) {
|
|
108
122
|
const text = await res.text().catch(() => "unknown error");
|
|
123
|
+
let redactedBody = text;
|
|
124
|
+
try {
|
|
125
|
+
redactedBody = redactFinbricksPayload(JSON.parse(text));
|
|
126
|
+
} catch {
|
|
127
|
+
}
|
|
109
128
|
console.error("[Finbricks] error response", {
|
|
110
129
|
status: res.status,
|
|
111
130
|
statusText: res.statusText,
|
|
112
131
|
url: url.toString(),
|
|
113
|
-
body:
|
|
132
|
+
body: redactedBody
|
|
114
133
|
});
|
|
134
|
+
const errorMessage = typeof redactedBody === "string" ? redactedBody : JSON.stringify(redactedBody);
|
|
115
135
|
throw new Error(
|
|
116
|
-
`Finbricks API error: ${res.status} ${res.statusText} \u2013 ${
|
|
136
|
+
`Finbricks API error: ${res.status} ${res.statusText} \u2013 ${errorMessage}`
|
|
117
137
|
);
|
|
118
138
|
}
|
|
119
139
|
const json = await res.json();
|
|
@@ -123,7 +143,7 @@ const useFinbricksFetch = async (config, init) => {
|
|
|
123
143
|
{
|
|
124
144
|
status: res.status,
|
|
125
145
|
url: url.toString(),
|
|
126
|
-
body: json
|
|
146
|
+
body: redactFinbricksPayload(json)
|
|
127
147
|
},
|
|
128
148
|
null,
|
|
129
149
|
2
|
|
@@ -164,17 +184,24 @@ const FINBRICKS_ENDPOINTS = {
|
|
|
164
184
|
BANK_INFO: "/status/bankInfo"
|
|
165
185
|
};
|
|
166
186
|
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
|
|
187
|
+
const BASE_TERMINAL_STATUSES = /* @__PURE__ */ new Set(["SETTLED", "REJECTED", "CLOSED"]);
|
|
188
|
+
const CONNECTOR_TERMINAL_STATUSES = {
|
|
189
|
+
DBU: /* @__PURE__ */ new Set(["COMPLETED", "BOOKED"])
|
|
190
|
+
// Finbricks: uses BASE only (polls until SETTLED)
|
|
191
|
+
// ERSTE: uses BASE only
|
|
192
|
+
};
|
|
172
193
|
const PENDING_STATUSES = /* @__PURE__ */ new Set([
|
|
173
194
|
"OPENED",
|
|
174
195
|
"AUTHORIZED"
|
|
175
196
|
]);
|
|
176
|
-
function isTerminalStatus(status) {
|
|
177
|
-
|
|
197
|
+
function isTerminalStatus(status, connectorKey) {
|
|
198
|
+
if (BASE_TERMINAL_STATUSES.has(status)) {
|
|
199
|
+
return true;
|
|
200
|
+
}
|
|
201
|
+
if (connectorKey && CONNECTOR_TERMINAL_STATUSES[connectorKey]) {
|
|
202
|
+
return CONNECTOR_TERMINAL_STATUSES[connectorKey].has(status);
|
|
203
|
+
}
|
|
204
|
+
return false;
|
|
178
205
|
}
|
|
179
206
|
function isPendingStatus(status) {
|
|
180
207
|
return PENDING_STATUSES.has(status);
|
|
@@ -1612,10 +1639,10 @@ class DbuConnector extends IBankConnector {
|
|
|
1612
1639
|
case "15":
|
|
1613
1640
|
// RQT_STATUS_REJECTED
|
|
1614
1641
|
case "33":
|
|
1615
|
-
// RQT_STATUS_HD_CANCELLED
|
|
1616
|
-
case "39":
|
|
1617
1642
|
return "REJECTED";
|
|
1618
1643
|
// AUTHORIZED - All other processing states
|
|
1644
|
+
// Note: RQT_STATUS_CNC_CLEARING (39) is NOT terminal per corebanking team (2026-05-12)
|
|
1645
|
+
// It's a request for cancellation from clearing, not a final state - falls through to default
|
|
1619
1646
|
default:
|
|
1620
1647
|
return "AUTHORIZED";
|
|
1621
1648
|
}
|
|
@@ -1646,13 +1673,13 @@ class DbuConnector extends IBankConnector {
|
|
|
1646
1673
|
case "14":
|
|
1647
1674
|
// RQT_STATUS_EXPIRED
|
|
1648
1675
|
case "33":
|
|
1649
|
-
// RQT_STATUS_HD_CANCELLED
|
|
1650
|
-
case "39":
|
|
1651
1676
|
return "CANCELLED";
|
|
1652
1677
|
// REJECTED - Explicitly rejected by bank
|
|
1653
1678
|
case "15":
|
|
1654
1679
|
return "REJECTED";
|
|
1655
1680
|
// PENDING - All other processing states
|
|
1681
|
+
// Note: RQT_STATUS_CNC_CLEARING (39) is NOT terminal per corebanking team (2026-05-12)
|
|
1682
|
+
// It's a request for cancellation from clearing, not a final state - falls through to default
|
|
1656
1683
|
default:
|
|
1657
1684
|
return "PENDING";
|
|
1658
1685
|
}
|
|
@@ -1984,7 +2011,7 @@ class DbuConnector extends IBankConnector {
|
|
|
1984
2011
|
}
|
|
1985
2012
|
}
|
|
1986
2013
|
|
|
1987
|
-
const TERMINAL_STATUSES =
|
|
2014
|
+
const TERMINAL_STATUSES = Array.from(BASE_TERMINAL_STATUSES);
|
|
1988
2015
|
const getNonTerminalPaymentRequestsQuery = (db) => db.select().from(tables.paymentRequest).where(
|
|
1989
2016
|
drizzleOrm.and(
|
|
1990
2017
|
drizzleOrm.not(drizzleOrm.inArray(tables.paymentRequest.status, TERMINAL_STATUSES)),
|
|
@@ -2427,6 +2454,7 @@ const ottInsertSchema = zod$1.createInsertSchema(database_schema.ott);
|
|
|
2427
2454
|
const ottUpdateSchema = zod$1.createUpdateSchema(database_schema.ott);
|
|
2428
2455
|
const ottSelectSchema = zod$1.createSelectSchema(database_schema.ott);
|
|
2429
2456
|
|
|
2457
|
+
exports.BASE_TERMINAL_STATUSES = BASE_TERMINAL_STATUSES;
|
|
2430
2458
|
exports.CsobConnector = CsobConnector;
|
|
2431
2459
|
exports.DbuConnector = DbuConnector;
|
|
2432
2460
|
exports.ErsteConnector = ErsteConnector;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode,
|
|
1
|
+
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.BCqBwSKC.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const ott_zod = require('./shared/bank.
|
|
3
|
+
const ott_zod = require('./shared/bank.DiJmJkDt.cjs');
|
|
4
4
|
const database_schema = require('./shared/bank.9Yw4KHyl.cjs');
|
|
5
5
|
const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const generalCodes = require('@develit-io/general-codes');
|
|
@@ -15,6 +15,7 @@ require('drizzle-orm/sqlite-core');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
exports.BASE_TERMINAL_STATUSES = ott_zod.BASE_TERMINAL_STATUSES;
|
|
18
19
|
exports.CsobConnector = ott_zod.CsobConnector;
|
|
19
20
|
exports.DbuConnector = ott_zod.DbuConnector;
|
|
20
21
|
exports.ErsteConnector = ott_zod.ErsteConnector;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as
|
|
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.
|
|
1
|
+
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.BCqBwSKC.cjs';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.BCqBwSKC.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.mHFTrKBv.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.mHFTrKBv.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.
|
|
6
|
+
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.cjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
8
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as
|
|
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.
|
|
1
|
+
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.BCqBwSKC.mjs';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.BCqBwSKC.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BnCJmT6k.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.BnCJmT6k.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.
|
|
6
|
+
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.mjs';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
8
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as
|
|
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.
|
|
1
|
+
import { I as IBankConnector, c as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.BCqBwSKC.js';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, b as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.BCqBwSKC.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BmX_IG66.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.BmX_IG66.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.
|
|
6
|
+
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.js';
|
|
7
7
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
8
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
9
|
import * as drizzle_orm from 'drizzle-orm';
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.
|
|
1
|
+
export { B as BASE_TERMINAL_STATUSES, 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 accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.BOMobxtA.mjs';
|
|
2
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 } from './shared/bank.BzDNLxB_.mjs';
|
|
3
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';
|