@develit-services/bank 1.1.1 → 1.1.3
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 +13 -11
- package/dist/export/worker.d.cts +10 -10
- package/dist/export/worker.d.mts +10 -10
- package/dist/export/worker.d.ts +10 -10
- package/dist/export/worker.mjs +13 -11
- package/dist/shared/{bank.DAfpDA5W.d.mts → bank.32jmK0Fz.d.mts} +1 -1
- package/dist/shared/{bank.DaEiUdrR.d.ts → bank.4PAO2JEh.d.ts} +1 -1
- package/dist/shared/{bank.DB0MCjZ8.d.cts → bank.CfNPHwCT.d.cts} +4 -4
- package/dist/shared/{bank.DB0MCjZ8.d.mts → bank.CfNPHwCT.d.mts} +4 -4
- package/dist/shared/{bank.DB0MCjZ8.d.ts → bank.CfNPHwCT.d.ts} +4 -4
- package/dist/shared/{bank.n1wkvbjN.d.cts → bank.DIK8_f9k.d.cts} +1 -1
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { az as account, aA as accountCredentials, aB as batch, aC as ott, aD as payment, aE as paymentRelations, aF as paymentRequest, aG as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { az as account, aA as accountCredentials, aB as batch, aC as ott, aD as payment, aE as paymentRelations, aF as paymentRequest, aG as paymentRequestRelations } from '../shared/bank.CfNPHwCT.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 { az as account, aA as accountCredentials, aB as batch, aC as ott, aD as payment, aE as paymentRelations, aF as paymentRequest, aG as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { az as account, aA as accountCredentials, aB as batch, aC as ott, aD as payment, aE as paymentRelations, aF as paymentRequest, aG as paymentRequestRelations } from '../shared/bank.CfNPHwCT.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 { az as account, aA as accountCredentials, aB as batch, aC as ott, aD as payment, aE as paymentRelations, aF as paymentRequest, aG as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { az as account, aA as accountCredentials, aB as batch, aC as ott, aD as payment, aE as paymentRelations, aF as paymentRequest, aG as paymentRequestRelations } from '../shared/bank.CfNPHwCT.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -1096,7 +1096,10 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
1096
1096
|
...upsertAccounts,
|
|
1097
1097
|
...createAccountCredentials
|
|
1098
1098
|
]);
|
|
1099
|
-
const
|
|
1099
|
+
const newAccountIbans = accounts.map((a) => a.iban);
|
|
1100
|
+
const { accounts: fetchedAccounts } = await this._getAccounts({
|
|
1101
|
+
filterIbans: newAccountIbans
|
|
1102
|
+
});
|
|
1100
1103
|
if (!fetchedAccounts)
|
|
1101
1104
|
throw backendSdk.createInternalError(null, {
|
|
1102
1105
|
message: "Account not found",
|
|
@@ -1104,10 +1107,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
1104
1107
|
status: 404
|
|
1105
1108
|
});
|
|
1106
1109
|
if (startSync) {
|
|
1107
|
-
const
|
|
1108
|
-
const accountsToSync = fetchedAccounts.filter(
|
|
1109
|
-
(a) => newAccountIbans.has(a.iban)
|
|
1110
|
-
);
|
|
1110
|
+
const accountsToSync = fetchedAccounts;
|
|
1111
1111
|
for (const account of accountsToSync) {
|
|
1112
1112
|
const { error } = await this.syncAccount({
|
|
1113
1113
|
accountId: account.id
|
|
@@ -1207,10 +1207,10 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
1207
1207
|
data.currency,
|
|
1208
1208
|
data.creditor
|
|
1209
1209
|
);
|
|
1210
|
-
const { accounts } = await this._getAccounts(
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1210
|
+
const { accounts } = await this._getAccounts({
|
|
1211
|
+
filterIbans: [incomingPayment.debtorIban]
|
|
1212
|
+
});
|
|
1213
|
+
const account = accounts[0];
|
|
1214
1214
|
if (!account) {
|
|
1215
1215
|
throw backendSdk.createInternalError(null, {
|
|
1216
1216
|
message: `No account found for IBAN ${incomingPayment.debtorIban}`,
|
|
@@ -1345,8 +1345,10 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
1345
1345
|
p.creditor
|
|
1346
1346
|
);
|
|
1347
1347
|
}
|
|
1348
|
-
const { accounts } = await this._getAccounts(
|
|
1349
|
-
|
|
1348
|
+
const { accounts } = await this._getAccounts({
|
|
1349
|
+
filterIbans: [debtorIban]
|
|
1350
|
+
});
|
|
1351
|
+
const account = accounts[0];
|
|
1350
1352
|
if (!account) {
|
|
1351
1353
|
throw backendSdk.createInternalError(null, {
|
|
1352
1354
|
message: `No account found for IBAN ${debtorIban}`,
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, L as LastSyncMetadata, I as IBankConnector, c as PaymentType, d as CurrencyCode, H as HandleAuthorizationCallbackInput, e as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, L as LastSyncMetadata, I as IBankConnector, c as PaymentType, d as CurrencyCode, H as HandleAuthorizationCallbackInput, e as HandleAuthorizationCallbackOutput } from '../shared/bank.CfNPHwCT.cjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.DIK8_f9k.cjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
+
PENDING: "PENDING";
|
|
2951
2952
|
PROCESSING: "PROCESSING";
|
|
2952
2953
|
BOOKED: "BOOKED";
|
|
2953
|
-
REJECTED: "REJECTED";
|
|
2954
|
-
PENDING: "PENDING";
|
|
2955
2954
|
CANCELLED: "CANCELLED";
|
|
2955
|
+
REJECTED: "REJECTED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
+
PENDING: "PENDING";
|
|
2960
2961
|
PROCESSING: "PROCESSING";
|
|
2961
2962
|
BOOKED: "BOOKED";
|
|
2962
|
-
REJECTED: "REJECTED";
|
|
2963
|
-
PENDING: "PENDING";
|
|
2964
2963
|
CANCELLED: "CANCELLED";
|
|
2964
|
+
REJECTED: "REJECTED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3747,19 +3747,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3747
3747
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3748
3748
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3749
3749
|
AUTHORIZED: "AUTHORIZED";
|
|
3750
|
+
BOOKED: "BOOKED";
|
|
3751
|
+
REJECTED: "REJECTED";
|
|
3750
3752
|
COMPLETED: "COMPLETED";
|
|
3751
3753
|
OPENED: "OPENED";
|
|
3752
|
-
BOOKED: "BOOKED";
|
|
3753
3754
|
SETTLED: "SETTLED";
|
|
3754
|
-
REJECTED: "REJECTED";
|
|
3755
3755
|
CLOSED: "CLOSED";
|
|
3756
3756
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3757
3757
|
AUTHORIZED: "AUTHORIZED";
|
|
3758
|
+
BOOKED: "BOOKED";
|
|
3759
|
+
REJECTED: "REJECTED";
|
|
3758
3760
|
COMPLETED: "COMPLETED";
|
|
3759
3761
|
OPENED: "OPENED";
|
|
3760
|
-
BOOKED: "BOOKED";
|
|
3761
3762
|
SETTLED: "SETTLED";
|
|
3762
|
-
REJECTED: "REJECTED";
|
|
3763
3763
|
CLOSED: "CLOSED";
|
|
3764
3764
|
}>>]>>;
|
|
3765
3765
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, L as LastSyncMetadata, I as IBankConnector, c as PaymentType, d as CurrencyCode, H as HandleAuthorizationCallbackInput, e as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, L as LastSyncMetadata, I as IBankConnector, c as PaymentType, d as CurrencyCode, H as HandleAuthorizationCallbackInput, e as HandleAuthorizationCallbackOutput } from '../shared/bank.CfNPHwCT.mjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.32jmK0Fz.mjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
+
PENDING: "PENDING";
|
|
2951
2952
|
PROCESSING: "PROCESSING";
|
|
2952
2953
|
BOOKED: "BOOKED";
|
|
2953
|
-
REJECTED: "REJECTED";
|
|
2954
|
-
PENDING: "PENDING";
|
|
2955
2954
|
CANCELLED: "CANCELLED";
|
|
2955
|
+
REJECTED: "REJECTED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
+
PENDING: "PENDING";
|
|
2960
2961
|
PROCESSING: "PROCESSING";
|
|
2961
2962
|
BOOKED: "BOOKED";
|
|
2962
|
-
REJECTED: "REJECTED";
|
|
2963
|
-
PENDING: "PENDING";
|
|
2964
2963
|
CANCELLED: "CANCELLED";
|
|
2964
|
+
REJECTED: "REJECTED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3747,19 +3747,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3747
3747
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3748
3748
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3749
3749
|
AUTHORIZED: "AUTHORIZED";
|
|
3750
|
+
BOOKED: "BOOKED";
|
|
3751
|
+
REJECTED: "REJECTED";
|
|
3750
3752
|
COMPLETED: "COMPLETED";
|
|
3751
3753
|
OPENED: "OPENED";
|
|
3752
|
-
BOOKED: "BOOKED";
|
|
3753
3754
|
SETTLED: "SETTLED";
|
|
3754
|
-
REJECTED: "REJECTED";
|
|
3755
3755
|
CLOSED: "CLOSED";
|
|
3756
3756
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3757
3757
|
AUTHORIZED: "AUTHORIZED";
|
|
3758
|
+
BOOKED: "BOOKED";
|
|
3759
|
+
REJECTED: "REJECTED";
|
|
3758
3760
|
COMPLETED: "COMPLETED";
|
|
3759
3761
|
OPENED: "OPENED";
|
|
3760
|
-
BOOKED: "BOOKED";
|
|
3761
3762
|
SETTLED: "SETTLED";
|
|
3762
|
-
REJECTED: "REJECTED";
|
|
3763
3763
|
CLOSED: "CLOSED";
|
|
3764
3764
|
}>>]>>;
|
|
3765
3765
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, L as LastSyncMetadata, I as IBankConnector, c as PaymentType, d as CurrencyCode, H as HandleAuthorizationCallbackInput, e as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, L as LastSyncMetadata, I as IBankConnector, c as PaymentType, d as CurrencyCode, H as HandleAuthorizationCallbackInput, e as HandleAuthorizationCallbackOutput } from '../shared/bank.CfNPHwCT.js';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.4PAO2JEh.js';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
+
PENDING: "PENDING";
|
|
2951
2952
|
PROCESSING: "PROCESSING";
|
|
2952
2953
|
BOOKED: "BOOKED";
|
|
2953
|
-
REJECTED: "REJECTED";
|
|
2954
|
-
PENDING: "PENDING";
|
|
2955
2954
|
CANCELLED: "CANCELLED";
|
|
2955
|
+
REJECTED: "REJECTED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
+
PENDING: "PENDING";
|
|
2960
2961
|
PROCESSING: "PROCESSING";
|
|
2961
2962
|
BOOKED: "BOOKED";
|
|
2962
|
-
REJECTED: "REJECTED";
|
|
2963
|
-
PENDING: "PENDING";
|
|
2964
2963
|
CANCELLED: "CANCELLED";
|
|
2964
|
+
REJECTED: "REJECTED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3747,19 +3747,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3747
3747
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3748
3748
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3749
3749
|
AUTHORIZED: "AUTHORIZED";
|
|
3750
|
+
BOOKED: "BOOKED";
|
|
3751
|
+
REJECTED: "REJECTED";
|
|
3750
3752
|
COMPLETED: "COMPLETED";
|
|
3751
3753
|
OPENED: "OPENED";
|
|
3752
|
-
BOOKED: "BOOKED";
|
|
3753
3754
|
SETTLED: "SETTLED";
|
|
3754
|
-
REJECTED: "REJECTED";
|
|
3755
3755
|
CLOSED: "CLOSED";
|
|
3756
3756
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3757
3757
|
AUTHORIZED: "AUTHORIZED";
|
|
3758
|
+
BOOKED: "BOOKED";
|
|
3759
|
+
REJECTED: "REJECTED";
|
|
3758
3760
|
COMPLETED: "COMPLETED";
|
|
3759
3761
|
OPENED: "OPENED";
|
|
3760
|
-
BOOKED: "BOOKED";
|
|
3761
3762
|
SETTLED: "SETTLED";
|
|
3762
|
-
REJECTED: "REJECTED";
|
|
3763
3763
|
CLOSED: "CLOSED";
|
|
3764
3764
|
}>>]>>;
|
|
3765
3765
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1094,7 +1094,10 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
1094
1094
|
...upsertAccounts,
|
|
1095
1095
|
...createAccountCredentials
|
|
1096
1096
|
]);
|
|
1097
|
-
const
|
|
1097
|
+
const newAccountIbans = accounts.map((a) => a.iban);
|
|
1098
|
+
const { accounts: fetchedAccounts } = await this._getAccounts({
|
|
1099
|
+
filterIbans: newAccountIbans
|
|
1100
|
+
});
|
|
1098
1101
|
if (!fetchedAccounts)
|
|
1099
1102
|
throw createInternalError(null, {
|
|
1100
1103
|
message: "Account not found",
|
|
@@ -1102,10 +1105,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
1102
1105
|
status: 404
|
|
1103
1106
|
});
|
|
1104
1107
|
if (startSync) {
|
|
1105
|
-
const
|
|
1106
|
-
const accountsToSync = fetchedAccounts.filter(
|
|
1107
|
-
(a) => newAccountIbans.has(a.iban)
|
|
1108
|
-
);
|
|
1108
|
+
const accountsToSync = fetchedAccounts;
|
|
1109
1109
|
for (const account of accountsToSync) {
|
|
1110
1110
|
const { error } = await this.syncAccount({
|
|
1111
1111
|
accountId: account.id
|
|
@@ -1205,10 +1205,10 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
1205
1205
|
data.currency,
|
|
1206
1206
|
data.creditor
|
|
1207
1207
|
);
|
|
1208
|
-
const { accounts } = await this._getAccounts(
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1208
|
+
const { accounts } = await this._getAccounts({
|
|
1209
|
+
filterIbans: [incomingPayment.debtorIban]
|
|
1210
|
+
});
|
|
1211
|
+
const account = accounts[0];
|
|
1212
1212
|
if (!account) {
|
|
1213
1213
|
throw createInternalError(null, {
|
|
1214
1214
|
message: `No account found for IBAN ${incomingPayment.debtorIban}`,
|
|
@@ -1343,8 +1343,10 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
1343
1343
|
p.creditor
|
|
1344
1344
|
);
|
|
1345
1345
|
}
|
|
1346
|
-
const { accounts } = await this._getAccounts(
|
|
1347
|
-
|
|
1346
|
+
const { accounts } = await this._getAccounts({
|
|
1347
|
+
filterIbans: [debtorIban]
|
|
1348
|
+
});
|
|
1349
|
+
const account = accounts[0];
|
|
1348
1350
|
if (!account) {
|
|
1349
1351
|
throw createInternalError(null, {
|
|
1350
1352
|
message: `No account found for IBAN ${debtorIban}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.CfNPHwCT.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.CfNPHwCT.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -3260,7 +3260,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3260
3260
|
tableName: "payment";
|
|
3261
3261
|
dataType: "string";
|
|
3262
3262
|
columnType: "SQLiteText";
|
|
3263
|
-
data: "
|
|
3263
|
+
data: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3264
3264
|
driverParam: string;
|
|
3265
3265
|
notNull: true;
|
|
3266
3266
|
hasDefault: false;
|
|
@@ -3273,7 +3273,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3273
3273
|
generated: undefined;
|
|
3274
3274
|
}, {}, {
|
|
3275
3275
|
length: number | undefined;
|
|
3276
|
-
$type: "
|
|
3276
|
+
$type: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3277
3277
|
}>;
|
|
3278
3278
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3279
3279
|
name: "status_reason";
|
|
@@ -3854,7 +3854,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3854
3854
|
tableName: "payment_request";
|
|
3855
3855
|
dataType: "string";
|
|
3856
3856
|
columnType: "SQLiteText";
|
|
3857
|
-
data: "AUTHORIZED" | "
|
|
3857
|
+
data: "AUTHORIZED" | "BOOKED" | "REJECTED" | "COMPLETED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
3858
3858
|
driverParam: string;
|
|
3859
3859
|
notNull: true;
|
|
3860
3860
|
hasDefault: false;
|
|
@@ -3867,7 +3867,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3867
3867
|
generated: undefined;
|
|
3868
3868
|
}, {}, {
|
|
3869
3869
|
length: number | undefined;
|
|
3870
|
-
$type: "AUTHORIZED" | "
|
|
3870
|
+
$type: "AUTHORIZED" | "BOOKED" | "REJECTED" | "COMPLETED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
3871
3871
|
}>;
|
|
3872
3872
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3873
3873
|
name: "status_reason";
|
|
@@ -3260,7 +3260,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3260
3260
|
tableName: "payment";
|
|
3261
3261
|
dataType: "string";
|
|
3262
3262
|
columnType: "SQLiteText";
|
|
3263
|
-
data: "
|
|
3263
|
+
data: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3264
3264
|
driverParam: string;
|
|
3265
3265
|
notNull: true;
|
|
3266
3266
|
hasDefault: false;
|
|
@@ -3273,7 +3273,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3273
3273
|
generated: undefined;
|
|
3274
3274
|
}, {}, {
|
|
3275
3275
|
length: number | undefined;
|
|
3276
|
-
$type: "
|
|
3276
|
+
$type: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3277
3277
|
}>;
|
|
3278
3278
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3279
3279
|
name: "status_reason";
|
|
@@ -3854,7 +3854,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3854
3854
|
tableName: "payment_request";
|
|
3855
3855
|
dataType: "string";
|
|
3856
3856
|
columnType: "SQLiteText";
|
|
3857
|
-
data: "AUTHORIZED" | "
|
|
3857
|
+
data: "AUTHORIZED" | "BOOKED" | "REJECTED" | "COMPLETED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
3858
3858
|
driverParam: string;
|
|
3859
3859
|
notNull: true;
|
|
3860
3860
|
hasDefault: false;
|
|
@@ -3867,7 +3867,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3867
3867
|
generated: undefined;
|
|
3868
3868
|
}, {}, {
|
|
3869
3869
|
length: number | undefined;
|
|
3870
|
-
$type: "AUTHORIZED" | "
|
|
3870
|
+
$type: "AUTHORIZED" | "BOOKED" | "REJECTED" | "COMPLETED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
3871
3871
|
}>;
|
|
3872
3872
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3873
3873
|
name: "status_reason";
|
|
@@ -3260,7 +3260,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3260
3260
|
tableName: "payment";
|
|
3261
3261
|
dataType: "string";
|
|
3262
3262
|
columnType: "SQLiteText";
|
|
3263
|
-
data: "
|
|
3263
|
+
data: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3264
3264
|
driverParam: string;
|
|
3265
3265
|
notNull: true;
|
|
3266
3266
|
hasDefault: false;
|
|
@@ -3273,7 +3273,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3273
3273
|
generated: undefined;
|
|
3274
3274
|
}, {}, {
|
|
3275
3275
|
length: number | undefined;
|
|
3276
|
-
$type: "
|
|
3276
|
+
$type: "PENDING" | "PROCESSING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3277
3277
|
}>;
|
|
3278
3278
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3279
3279
|
name: "status_reason";
|
|
@@ -3854,7 +3854,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3854
3854
|
tableName: "payment_request";
|
|
3855
3855
|
dataType: "string";
|
|
3856
3856
|
columnType: "SQLiteText";
|
|
3857
|
-
data: "AUTHORIZED" | "
|
|
3857
|
+
data: "AUTHORIZED" | "BOOKED" | "REJECTED" | "COMPLETED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
3858
3858
|
driverParam: string;
|
|
3859
3859
|
notNull: true;
|
|
3860
3860
|
hasDefault: false;
|
|
@@ -3867,7 +3867,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3867
3867
|
generated: undefined;
|
|
3868
3868
|
}, {}, {
|
|
3869
3869
|
length: number | undefined;
|
|
3870
|
-
$type: "AUTHORIZED" | "
|
|
3870
|
+
$type: "AUTHORIZED" | "BOOKED" | "REJECTED" | "COMPLETED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
3871
3871
|
}>;
|
|
3872
3872
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3873
3873
|
name: "status_reason";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { d as CurrencyCode, O as BankCode, $ as CountryCode, P as PaymentRequestSelectType } from './bank.CfNPHwCT.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, aw as isPendingStatus, ax as isProcessedStatus, ay as isTerminalStatus } 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.
|
|
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.CfNPHwCT.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.CfNPHwCT.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DIK8_f9k.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.DIK8_f9k.cjs';
|
|
5
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';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, aw as isPendingStatus, ax as isProcessedStatus, ay as isTerminalStatus } 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.
|
|
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.CfNPHwCT.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.CfNPHwCT.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.32jmK0Fz.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.32jmK0Fz.mjs';
|
|
5
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';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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, aw as isPendingStatus, ax as isProcessedStatus, ay as isTerminalStatus } 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.
|
|
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.CfNPHwCT.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.CfNPHwCT.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.4PAO2JEh.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.4PAO2JEh.js';
|
|
5
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';
|