@develit-services/bank 6.2.1 → 6.2.2

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.
@@ -1401,6 +1401,7 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1401
1401
  city: z.ZodOptional<z.ZodString>;
1402
1402
  postalCode: z.ZodOptional<z.ZodString>;
1403
1403
  countryCode: z.ZodOptional<z.ZodEnum<{
1404
+ IM: "IM";
1404
1405
  AF: "AF";
1405
1406
  AL: "AL";
1406
1407
  DZ: "DZ";
@@ -1490,7 +1491,6 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
1490
1491
  IR: "IR";
1491
1492
  IQ: "IQ";
1492
1493
  IE: "IE";
1493
- IM: "IM";
1494
1494
  IL: "IL";
1495
1495
  IT: "IT";
1496
1496
  CI: "CI";
@@ -2122,6 +2122,7 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2122
2122
  city: z.ZodOptional<z.ZodString>;
2123
2123
  postalCode: z.ZodOptional<z.ZodString>;
2124
2124
  countryCode: z.ZodOptional<z.ZodEnum<{
2125
+ IM: "IM";
2125
2126
  AF: "AF";
2126
2127
  AL: "AL";
2127
2128
  DZ: "DZ";
@@ -2211,7 +2212,6 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
2211
2212
  IR: "IR";
2212
2213
  IQ: "IQ";
2213
2214
  IE: "IE";
2214
- IM: "IM";
2215
2215
  IL: "IL";
2216
2216
  IT: "IT";
2217
2217
  CI: "CI";
@@ -2843,6 +2843,7 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2843
2843
  city: z.ZodOptional<z.ZodString>;
2844
2844
  postalCode: z.ZodOptional<z.ZodString>;
2845
2845
  countryCode: z.ZodOptional<z.ZodEnum<{
2846
+ IM: "IM";
2846
2847
  AF: "AF";
2847
2848
  AL: "AL";
2848
2849
  DZ: "DZ";
@@ -2932,7 +2933,6 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
2932
2933
  IR: "IR";
2933
2934
  IQ: "IQ";
2934
2935
  IE: "IE";
2935
- IM: "IM";
2936
2936
  IL: "IL";
2937
2937
  IT: "IT";
2938
2938
  CI: "CI";
@@ -3280,7 +3280,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3280
3280
  name: string;
3281
3281
  tableName: "batch";
3282
3282
  dataType: "string enum";
3283
- data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
3283
+ data: "AUTHORIZED" | "COMPLETED" | "PROCESSING" | "READY_TO_SIGN" | "FAILED";
3284
3284
  driverParam: string;
3285
3285
  notNull: false;
3286
3286
  hasDefault: false;
@@ -3656,7 +3656,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
3656
3656
  name: string;
3657
3657
  tableName: "payment";
3658
3658
  dataType: "string enum";
3659
- data: "PROCESSING" | "PENDING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
3659
+ data: "BOOKED" | "REJECTED" | "PROCESSING" | "PENDING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
3660
3660
  driverParam: string;
3661
3661
  notNull: true;
3662
3662
  hasDefault: false;
@@ -4160,7 +4160,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
4160
4160
  name: string;
4161
4161
  tableName: "payment_request";
4162
4162
  dataType: "string enum";
4163
- data: "AUTHORIZED" | "COMPLETED" | "BOOKED" | "REJECTED" | "OPENED" | "SETTLED" | "CLOSED";
4163
+ data: "OPENED" | "AUTHORIZED" | "COMPLETED" | "BOOKED" | "SETTLED" | "REJECTED" | "CLOSED";
4164
4164
  driverParam: string;
4165
4165
  notNull: true;
4166
4166
  hasDefault: false;
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.B5yr_YIB.mjs';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.DIx4G38W.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -364,6 +364,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
364
364
  city: z.ZodOptional<z.ZodString>;
365
365
  postalCode: z.ZodOptional<z.ZodString>;
366
366
  countryCode: z.ZodOptional<z.ZodEnum<{
367
+ IM: "IM";
367
368
  AF: "AF";
368
369
  AL: "AL";
369
370
  DZ: "DZ";
@@ -453,7 +454,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
453
454
  IR: "IR";
454
455
  IQ: "IQ";
455
456
  IE: "IE";
456
- IM: "IM";
457
457
  IL: "IL";
458
458
  IT: "IT";
459
459
  CI: "CI";
@@ -636,6 +636,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
636
636
  AVAX: "AVAX";
637
637
  }>>;
638
638
  countryCode: z.ZodOptional<z.ZodEnum<{
639
+ IM: "IM";
639
640
  AF: "AF";
640
641
  AL: "AL";
641
642
  DZ: "DZ";
@@ -725,7 +726,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
725
726
  IR: "IR";
726
727
  IQ: "IQ";
727
728
  IE: "IE";
728
- IM: "IM";
729
729
  IL: "IL";
730
730
  IT: "IT";
731
731
  CI: "CI";
@@ -929,6 +929,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
929
929
  city: z.ZodOptional<z.ZodString>;
930
930
  postalCode: z.ZodOptional<z.ZodString>;
931
931
  countryCode: z.ZodOptional<z.ZodEnum<{
932
+ IM: "IM";
932
933
  AF: "AF";
933
934
  AL: "AL";
934
935
  DZ: "DZ";
@@ -1018,7 +1019,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1018
1019
  IR: "IR";
1019
1020
  IQ: "IQ";
1020
1021
  IE: "IE";
1021
- IM: "IM";
1022
1022
  IL: "IL";
1023
1023
  IT: "IT";
1024
1024
  CI: "CI";
@@ -1201,6 +1201,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1201
1201
  AVAX: "AVAX";
1202
1202
  }>>;
1203
1203
  countryCode: z.ZodOptional<z.ZodEnum<{
1204
+ IM: "IM";
1204
1205
  AF: "AF";
1205
1206
  AL: "AL";
1206
1207
  DZ: "DZ";
@@ -1290,7 +1291,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1290
1291
  IR: "IR";
1291
1292
  IQ: "IQ";
1292
1293
  IE: "IE";
1293
- IM: "IM";
1294
1294
  IL: "IL";
1295
1295
  IT: "IT";
1296
1296
  CI: "CI";
@@ -1582,6 +1582,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1582
1582
  city: z.ZodOptional<z.ZodString>;
1583
1583
  postalCode: z.ZodOptional<z.ZodString>;
1584
1584
  countryCode: z.ZodOptional<z.ZodEnum<{
1585
+ IM: "IM";
1585
1586
  AF: "AF";
1586
1587
  AL: "AL";
1587
1588
  DZ: "DZ";
@@ -1671,7 +1672,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1671
1672
  IR: "IR";
1672
1673
  IQ: "IQ";
1673
1674
  IE: "IE";
1674
- IM: "IM";
1675
1675
  IL: "IL";
1676
1676
  IT: "IT";
1677
1677
  CI: "CI";
@@ -1854,6 +1854,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1854
1854
  AVAX: "AVAX";
1855
1855
  }>>;
1856
1856
  countryCode: z.ZodOptional<z.ZodEnum<{
1857
+ IM: "IM";
1857
1858
  AF: "AF";
1858
1859
  AL: "AL";
1859
1860
  DZ: "DZ";
@@ -1943,7 +1944,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1943
1944
  IR: "IR";
1944
1945
  IQ: "IQ";
1945
1946
  IE: "IE";
1946
- IM: "IM";
1947
1947
  IL: "IL";
1948
1948
  IT: "IT";
1949
1949
  CI: "CI";
@@ -2147,6 +2147,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2147
2147
  city: z.ZodOptional<z.ZodString>;
2148
2148
  postalCode: z.ZodOptional<z.ZodString>;
2149
2149
  countryCode: z.ZodOptional<z.ZodEnum<{
2150
+ IM: "IM";
2150
2151
  AF: "AF";
2151
2152
  AL: "AL";
2152
2153
  DZ: "DZ";
@@ -2236,7 +2237,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2236
2237
  IR: "IR";
2237
2238
  IQ: "IQ";
2238
2239
  IE: "IE";
2239
- IM: "IM";
2240
2240
  IL: "IL";
2241
2241
  IT: "IT";
2242
2242
  CI: "CI";
@@ -2419,6 +2419,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2419
2419
  AVAX: "AVAX";
2420
2420
  }>>;
2421
2421
  countryCode: z.ZodOptional<z.ZodEnum<{
2422
+ IM: "IM";
2422
2423
  AF: "AF";
2423
2424
  AL: "AL";
2424
2425
  DZ: "DZ";
@@ -2508,7 +2509,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2508
2509
  IR: "IR";
2509
2510
  IQ: "IQ";
2510
2511
  IE: "IE";
2511
- IM: "IM";
2512
2512
  IL: "IL";
2513
2513
  IT: "IT";
2514
2514
  CI: "CI";
@@ -1481,6 +1481,15 @@ class FinbricksConnector extends IBankConnector {
1481
1481
  describeFinbricksFailure("fetch payment status", error)
1482
1482
  );
1483
1483
  }
1484
+ if (response.resultCode === "OPENED") {
1485
+ console.log("[Finbricks] Payment still OPENED", {
1486
+ provider: this.PROVIDER,
1487
+ merchantTransactionId: paymentId,
1488
+ finalBankStatus: response.finalBankStatus,
1489
+ instructionPriority: response.instructionPriority,
1490
+ transactionRecoveryUrl: response.transactionRecoveryUrl
1491
+ });
1492
+ }
1484
1493
  return mapFinbricksTransactionStatus(response.resultCode);
1485
1494
  }
1486
1495
  parseAuthorizationCallback(callbackUrl) {
@@ -1483,6 +1483,15 @@ class FinbricksConnector extends IBankConnector {
1483
1483
  describeFinbricksFailure("fetch payment status", error)
1484
1484
  );
1485
1485
  }
1486
+ if (response.resultCode === "OPENED") {
1487
+ console.log("[Finbricks] Payment still OPENED", {
1488
+ provider: this.PROVIDER,
1489
+ merchantTransactionId: paymentId,
1490
+ finalBankStatus: response.finalBankStatus,
1491
+ instructionPriority: response.instructionPriority,
1492
+ transactionRecoveryUrl: response.transactionRecoveryUrl
1493
+ });
1494
+ }
1486
1495
  return mapFinbricksTransactionStatus(response.resultCode);
1487
1496
  }
1488
1497
  parseAuthorizationCallback(callbackUrl) {
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.B5yr_YIB.js';
1
+ import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.DIx4G38W.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
@@ -364,6 +364,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
364
364
  city: z.ZodOptional<z.ZodString>;
365
365
  postalCode: z.ZodOptional<z.ZodString>;
366
366
  countryCode: z.ZodOptional<z.ZodEnum<{
367
+ IM: "IM";
367
368
  AF: "AF";
368
369
  AL: "AL";
369
370
  DZ: "DZ";
@@ -453,7 +454,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
453
454
  IR: "IR";
454
455
  IQ: "IQ";
455
456
  IE: "IE";
456
- IM: "IM";
457
457
  IL: "IL";
458
458
  IT: "IT";
459
459
  CI: "CI";
@@ -636,6 +636,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
636
636
  AVAX: "AVAX";
637
637
  }>>;
638
638
  countryCode: z.ZodOptional<z.ZodEnum<{
639
+ IM: "IM";
639
640
  AF: "AF";
640
641
  AL: "AL";
641
642
  DZ: "DZ";
@@ -725,7 +726,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
725
726
  IR: "IR";
726
727
  IQ: "IQ";
727
728
  IE: "IE";
728
- IM: "IM";
729
729
  IL: "IL";
730
730
  IT: "IT";
731
731
  CI: "CI";
@@ -929,6 +929,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
929
929
  city: z.ZodOptional<z.ZodString>;
930
930
  postalCode: z.ZodOptional<z.ZodString>;
931
931
  countryCode: z.ZodOptional<z.ZodEnum<{
932
+ IM: "IM";
932
933
  AF: "AF";
933
934
  AL: "AL";
934
935
  DZ: "DZ";
@@ -1018,7 +1019,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1018
1019
  IR: "IR";
1019
1020
  IQ: "IQ";
1020
1021
  IE: "IE";
1021
- IM: "IM";
1022
1022
  IL: "IL";
1023
1023
  IT: "IT";
1024
1024
  CI: "CI";
@@ -1201,6 +1201,7 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1201
1201
  AVAX: "AVAX";
1202
1202
  }>>;
1203
1203
  countryCode: z.ZodOptional<z.ZodEnum<{
1204
+ IM: "IM";
1204
1205
  AF: "AF";
1205
1206
  AL: "AL";
1206
1207
  DZ: "DZ";
@@ -1290,7 +1291,6 @@ declare const sendPaymentInputSchema: z.ZodObject<{
1290
1291
  IR: "IR";
1291
1292
  IQ: "IQ";
1292
1293
  IE: "IE";
1293
- IM: "IM";
1294
1294
  IL: "IL";
1295
1295
  IT: "IT";
1296
1296
  CI: "CI";
@@ -1582,6 +1582,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1582
1582
  city: z.ZodOptional<z.ZodString>;
1583
1583
  postalCode: z.ZodOptional<z.ZodString>;
1584
1584
  countryCode: z.ZodOptional<z.ZodEnum<{
1585
+ IM: "IM";
1585
1586
  AF: "AF";
1586
1587
  AL: "AL";
1587
1588
  DZ: "DZ";
@@ -1671,7 +1672,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1671
1672
  IR: "IR";
1672
1673
  IQ: "IQ";
1673
1674
  IE: "IE";
1674
- IM: "IM";
1675
1675
  IL: "IL";
1676
1676
  IT: "IT";
1677
1677
  CI: "CI";
@@ -1854,6 +1854,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1854
1854
  AVAX: "AVAX";
1855
1855
  }>>;
1856
1856
  countryCode: z.ZodOptional<z.ZodEnum<{
1857
+ IM: "IM";
1857
1858
  AF: "AF";
1858
1859
  AL: "AL";
1859
1860
  DZ: "DZ";
@@ -1943,7 +1944,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
1943
1944
  IR: "IR";
1944
1945
  IQ: "IQ";
1945
1946
  IE: "IE";
1946
- IM: "IM";
1947
1947
  IL: "IL";
1948
1948
  IT: "IT";
1949
1949
  CI: "CI";
@@ -2147,6 +2147,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2147
2147
  city: z.ZodOptional<z.ZodString>;
2148
2148
  postalCode: z.ZodOptional<z.ZodString>;
2149
2149
  countryCode: z.ZodOptional<z.ZodEnum<{
2150
+ IM: "IM";
2150
2151
  AF: "AF";
2151
2152
  AL: "AL";
2152
2153
  DZ: "DZ";
@@ -2236,7 +2237,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2236
2237
  IR: "IR";
2237
2238
  IQ: "IQ";
2238
2239
  IE: "IE";
2239
- IM: "IM";
2240
2240
  IL: "IL";
2241
2241
  IT: "IT";
2242
2242
  CI: "CI";
@@ -2419,6 +2419,7 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2419
2419
  AVAX: "AVAX";
2420
2420
  }>>;
2421
2421
  countryCode: z.ZodOptional<z.ZodEnum<{
2422
+ IM: "IM";
2422
2423
  AF: "AF";
2423
2424
  AL: "AL";
2424
2425
  DZ: "DZ";
@@ -2508,7 +2509,6 @@ declare const sendPaymentSyncInputSchema: z.ZodObject<{
2508
2509
  IR: "IR";
2509
2510
  IQ: "IQ";
2510
2511
  IE: "IE";
2511
- IM: "IM";
2512
2512
  IL: "IL";
2513
2513
  IT: "IT";
2514
2514
  CI: "CI";
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const paymentDirection = require('./shared/bank.CeQZODQ2.cjs');
3
+ const paymentDirection = require('./shared/bank.Z1R7hzNr.cjs');
4
4
  const database_schema = require('./shared/bank.Ca3jzmIb.cjs');
5
5
  const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
6
6
  const generalCodes = require('@develit-io/general-codes');
package/dist/types.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BankAccountMetadata, BaseEvent } from '@develit-io/backend-sdk';
2
- import { I as IBankConnector, b 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.B5yr_YIB.cjs';
3
- 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, c 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.B5yr_YIB.cjs';
4
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BE4BJCuX.cjs';
5
- 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.BE4BJCuX.cjs';
2
+ import { I as IBankConnector, b 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.DIx4G38W.cjs';
3
+ 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, c 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.DIx4G38W.cjs';
4
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.Cyzcnl1W.cjs';
5
+ 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.Cyzcnl1W.cjs';
6
6
  import { z } from 'zod';
7
7
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
8
8
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
package/dist/types.d.mts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BankAccountMetadata, BaseEvent } from '@develit-io/backend-sdk';
2
- import { I as IBankConnector, b 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.B5yr_YIB.mjs';
3
- 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, c 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.B5yr_YIB.mjs';
4
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DtfSqAaY.mjs';
5
- 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.DtfSqAaY.mjs';
2
+ import { I as IBankConnector, b 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.DIx4G38W.mjs';
3
+ 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, c 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.DIx4G38W.mjs';
4
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DZJ7E0st.mjs';
5
+ 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.DZJ7E0st.mjs';
6
6
  import { z } from 'zod';
7
7
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
8
8
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
package/dist/types.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { BankAccountMetadata, BaseEvent } from '@develit-io/backend-sdk';
2
- import { I as IBankConnector, b 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.B5yr_YIB.js';
3
- 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, c 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.B5yr_YIB.js';
4
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.B720-BP-.js';
5
- 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.B720-BP-.js';
2
+ import { I as IBankConnector, b 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.DIx4G38W.js';
3
+ 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, c 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.DIx4G38W.js';
4
+ import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.a661MsjV.js';
5
+ 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.a661MsjV.js';
6
6
  import { z } from 'zod';
7
7
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
8
8
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
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.CGuCPc4G.mjs';
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.N9K_wiwt.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.BT7HayCV.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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {