@develit-services/bank 6.2.0 → 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.
@@ -1,4 +1,4 @@
1
- import { uuidv4, createInternalError, bicSchema, useResult, structuredAddressSchema } from '@develit-io/backend-sdk';
1
+ import { uuidv4, createInternalError, bicSchema, useResult, isInternalError, structuredAddressSchema } from '@develit-io/backend-sdk';
2
2
  import { format, parseISO } from 'date-fns';
3
3
  import { s as schema, h as account, i as accountCredentials, o as ott } from './bank.BT7HayCV.mjs';
4
4
  import { defineRelations, and, not, inArray, isNull } from 'drizzle-orm';
@@ -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) {
@@ -1520,6 +1529,19 @@ class CsobConnector extends FinbricksConnector {
1520
1529
  }
1521
1530
  }
1522
1531
 
1532
+ function extractErrorDetails(err) {
1533
+ if (err instanceof Error) return { message: err.message };
1534
+ if (typeof err === "object" && err !== null && "message" in err) {
1535
+ const obj = err;
1536
+ return {
1537
+ message: String(obj.message),
1538
+ status: typeof obj.status === "number" ? obj.status : void 0,
1539
+ code: typeof obj.code === "string" ? obj.code : void 0
1540
+ };
1541
+ }
1542
+ return { message: JSON.stringify(err) };
1543
+ }
1544
+
1523
1545
  const dbuAccountConfigSchema = z.object({
1524
1546
  with4EyeApproval: z.enum(["Y", "N"]).default("Y"),
1525
1547
  realizeImmediate: z.enum(["Y", "N"]).default("Y"),
@@ -1529,6 +1551,42 @@ const dbuAccountConfigSchema = z.object({
1529
1551
  partialRealization: z.enum(["Y", "N"]).default("N"),
1530
1552
  forceRealization: z.enum(["Y", "N"]).default("N")
1531
1553
  });
1554
+ const LOG_PREVIEW_BYTES = 500;
1555
+ function previewForLog(value) {
1556
+ const json = JSON.stringify(value);
1557
+ if (json === void 0 || json.length <= LOG_PREVIEW_BYTES) return value;
1558
+ return {
1559
+ preview: json.slice(0, LOG_PREVIEW_BYTES),
1560
+ truncated: true,
1561
+ fullLength: json.length
1562
+ };
1563
+ }
1564
+ const FETCH_RETRY_ATTEMPTS = 3;
1565
+ const FETCH_RETRY_BASE_DELAY_MS = 250;
1566
+ async function fetchWithRetry(fetcher, url, init, requestId) {
1567
+ for (let attempt = 1; attempt <= FETCH_RETRY_ATTEMPTS; attempt++) {
1568
+ try {
1569
+ return await fetcher.fetch(url, init);
1570
+ } catch (error) {
1571
+ const isLastAttempt = attempt === FETCH_RETRY_ATTEMPTS;
1572
+ console.warn(
1573
+ JSON.stringify({
1574
+ event: "[DBU] fetch failed",
1575
+ requestId,
1576
+ attempt,
1577
+ maxAttempts: FETCH_RETRY_ATTEMPTS,
1578
+ willRetry: !isLastAttempt,
1579
+ error: extractErrorDetails(error).message
1580
+ })
1581
+ );
1582
+ if (isLastAttempt) throw error;
1583
+ await new Promise(
1584
+ (resolve) => setTimeout(resolve, FETCH_RETRY_BASE_DELAY_MS * attempt)
1585
+ );
1586
+ }
1587
+ }
1588
+ throw new Error("fetchWithRetry: exhausted attempts without a result");
1589
+ }
1532
1590
  class DbuConnector extends IBankConnector {
1533
1591
  constructor({
1534
1592
  BASE_URL,
@@ -1598,20 +1656,21 @@ class DbuConnector extends IBankConnector {
1598
1656
  fetchOptions.body = JSON.stringify(body);
1599
1657
  }
1600
1658
  console.log(
1601
- "[DBU] request",
1602
- JSON.stringify(
1603
- {
1604
- method,
1605
- url: url.toString(),
1606
- requestId,
1607
- headers: defaultHeaders,
1608
- body: body ?? null
1609
- },
1610
- null,
1611
- 2
1612
- )
1659
+ JSON.stringify({
1660
+ event: "[DBU] request",
1661
+ method,
1662
+ url: url.toString(),
1663
+ requestId,
1664
+ headers: defaultHeaders,
1665
+ body: previewForLog(body ?? null)
1666
+ })
1667
+ );
1668
+ response = await fetchWithRetry(
1669
+ this.api,
1670
+ url.toString(),
1671
+ fetchOptions,
1672
+ requestId
1613
1673
  );
1614
- response = await this.api.fetch(url.toString(), fetchOptions);
1615
1674
  const responseText = await response.text().catch(() => "unable to read response");
1616
1675
  if (!response.ok) {
1617
1676
  let parsedBody = responseText;
@@ -1646,21 +1705,18 @@ class DbuConnector extends IBankConnector {
1646
1705
  parseError: parseError instanceof Error ? parseError.message : String(parseError)
1647
1706
  });
1648
1707
  throw createInternalError(parseError, {
1649
- message: "Failed to parse DBU response as JSON"
1708
+ message: `Failed to parse DBU response as JSON: ${parseError instanceof Error ? parseError.message : String(parseError)} (preview: ${responseText.substring(0, 500)})`
1650
1709
  });
1651
1710
  }
1652
1711
  console.log(
1653
- "[DBU] response",
1654
- JSON.stringify(
1655
- {
1656
- status: response.status,
1657
- url: url.toString(),
1658
- requestId,
1659
- body: data
1660
- },
1661
- null,
1662
- 2
1663
- )
1712
+ JSON.stringify({
1713
+ event: "[DBU] response",
1714
+ status: response.status,
1715
+ url: url.toString(),
1716
+ requestId,
1717
+ bytes: responseText.length,
1718
+ body: previewForLog(data)
1719
+ })
1664
1720
  );
1665
1721
  return data;
1666
1722
  } catch (error) {
@@ -1677,7 +1733,10 @@ class DbuConnector extends IBankConnector {
1677
1733
  stack: error instanceof Error ? error.stack : void 0
1678
1734
  }
1679
1735
  });
1680
- throw error;
1736
+ if (isInternalError(error)) throw error;
1737
+ throw createInternalError(error, {
1738
+ message: `DBU ${method} ${endpoint} (requestId=${requestId}) failed: ${extractErrorDetails(error).message}`
1739
+ });
1681
1740
  }
1682
1741
  }
1683
1742
  mapDbuCurrencyCode(dbuCurrency) {
@@ -1990,14 +2049,14 @@ class DbuConnector extends IBankConnector {
1990
2049
  account,
1991
2050
  filter
1992
2051
  }) {
2052
+ let offset = 0;
2053
+ let pageNumber = 1;
1993
2054
  try {
1994
2055
  const dateFrom = format(filter.dateFrom, "yyyy-MM-dd");
1995
2056
  const dateTo = format(filter.dateTo || /* @__PURE__ */ new Date(), "yyyy-MM-dd");
1996
2057
  const allPayments = [];
1997
- let offset = 0;
1998
- const limit = 10;
2058
+ const limit = 50;
1999
2059
  let hasMoreData = true;
2000
- let pageNumber = 1;
2001
2060
  const baseRequestId = uuidv4().replace(/-/g, "");
2002
2061
  while (hasMoreData) {
2003
2062
  const response = await this.makeRequest(
@@ -2047,8 +2106,10 @@ class DbuConnector extends IBankConnector {
2047
2106
  }
2048
2107
  return allPayments;
2049
2108
  } catch (error) {
2109
+ const details = extractErrorDetails(error);
2050
2110
  throw createInternalError(error, {
2051
- message: "Failed to fetch payments from DBU API"
2111
+ message: `Failed to fetch payments from DBU API (page ${pageNumber}, offset ${offset}): ${details.message}`,
2112
+ code: details.code
2052
2113
  });
2053
2114
  }
2054
2115
  }
@@ -2615,4 +2676,4 @@ const getPaymentDirection = (payment, iban) => {
2615
2676
  return "OUTGOING";
2616
2677
  };
2617
2678
 
2618
- export { useFinbricksFetch as A, BASE_TERMINAL_STATUSES as B, CsobConnector as C, DbuConnector as D, ErsteConnector as E, FINBRICKS_ENDPOINTS as F, tables as G, relations as H, IBankConnector as I, buildEndToEndId as J, KBConnector as K, getNonTerminalPaymentRequestsQuery as L, MockCobsConnector as M, calculateCzechIban as N, FinbricksClient as a, FinbricksConnector as b, MockConnector as c, accountCredentialsInsertSchema as d, accountCredentialsSelectSchema as e, accountCredentialsUpdateSchema as f, accountInsertSchema as g, accountSelectSchema as h, accountUpdateSchema as i, assignAccount as j, dbuAccountConfigSchema as k, hasPaymentAccountAssigned as l, isPaymentCompleted as m, isPendingStatus as n, isProcessedStatus as o, isTerminalStatus as p, ottInsertSchema as q, ottSelectSchema as r, ottUpdateSchema as s, signFinbricksJws as t, toBatchedPayment as u, toBatchedPaymentFromPaymentRequest as v, toCompletedPayment as w, toIncomingPayment as x, toPaymentRequestInsert as y, toPreparedPayment as z };
2679
+ export { useFinbricksFetch as A, BASE_TERMINAL_STATUSES as B, CsobConnector as C, DbuConnector as D, ErsteConnector as E, FINBRICKS_ENDPOINTS as F, tables as G, relations as H, IBankConnector as I, extractErrorDetails as J, KBConnector as K, buildEndToEndId as L, MockCobsConnector as M, getNonTerminalPaymentRequestsQuery as N, calculateCzechIban as O, FinbricksClient as a, FinbricksConnector as b, MockConnector as c, accountCredentialsInsertSchema as d, accountCredentialsSelectSchema as e, accountCredentialsUpdateSchema as f, accountInsertSchema as g, accountSelectSchema as h, accountUpdateSchema as i, assignAccount as j, dbuAccountConfigSchema as k, hasPaymentAccountAssigned as l, isPaymentCompleted as m, isPendingStatus as n, isProcessedStatus as o, isTerminalStatus as p, ottInsertSchema as q, ottSelectSchema as r, ottUpdateSchema as s, signFinbricksJws as t, toBatchedPayment as u, toBatchedPaymentFromPaymentRequest as v, toCompletedPayment as w, toIncomingPayment as x, toPaymentRequestInsert as y, toPreparedPayment as z };
@@ -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) {
@@ -1522,6 +1531,19 @@ class CsobConnector extends FinbricksConnector {
1522
1531
  }
1523
1532
  }
1524
1533
 
1534
+ function extractErrorDetails(err) {
1535
+ if (err instanceof Error) return { message: err.message };
1536
+ if (typeof err === "object" && err !== null && "message" in err) {
1537
+ const obj = err;
1538
+ return {
1539
+ message: String(obj.message),
1540
+ status: typeof obj.status === "number" ? obj.status : void 0,
1541
+ code: typeof obj.code === "string" ? obj.code : void 0
1542
+ };
1543
+ }
1544
+ return { message: JSON.stringify(err) };
1545
+ }
1546
+
1525
1547
  const dbuAccountConfigSchema = zod.z.object({
1526
1548
  with4EyeApproval: zod.z.enum(["Y", "N"]).default("Y"),
1527
1549
  realizeImmediate: zod.z.enum(["Y", "N"]).default("Y"),
@@ -1531,6 +1553,42 @@ const dbuAccountConfigSchema = zod.z.object({
1531
1553
  partialRealization: zod.z.enum(["Y", "N"]).default("N"),
1532
1554
  forceRealization: zod.z.enum(["Y", "N"]).default("N")
1533
1555
  });
1556
+ const LOG_PREVIEW_BYTES = 500;
1557
+ function previewForLog(value) {
1558
+ const json = JSON.stringify(value);
1559
+ if (json === void 0 || json.length <= LOG_PREVIEW_BYTES) return value;
1560
+ return {
1561
+ preview: json.slice(0, LOG_PREVIEW_BYTES),
1562
+ truncated: true,
1563
+ fullLength: json.length
1564
+ };
1565
+ }
1566
+ const FETCH_RETRY_ATTEMPTS = 3;
1567
+ const FETCH_RETRY_BASE_DELAY_MS = 250;
1568
+ async function fetchWithRetry(fetcher, url, init, requestId) {
1569
+ for (let attempt = 1; attempt <= FETCH_RETRY_ATTEMPTS; attempt++) {
1570
+ try {
1571
+ return await fetcher.fetch(url, init);
1572
+ } catch (error) {
1573
+ const isLastAttempt = attempt === FETCH_RETRY_ATTEMPTS;
1574
+ console.warn(
1575
+ JSON.stringify({
1576
+ event: "[DBU] fetch failed",
1577
+ requestId,
1578
+ attempt,
1579
+ maxAttempts: FETCH_RETRY_ATTEMPTS,
1580
+ willRetry: !isLastAttempt,
1581
+ error: extractErrorDetails(error).message
1582
+ })
1583
+ );
1584
+ if (isLastAttempt) throw error;
1585
+ await new Promise(
1586
+ (resolve) => setTimeout(resolve, FETCH_RETRY_BASE_DELAY_MS * attempt)
1587
+ );
1588
+ }
1589
+ }
1590
+ throw new Error("fetchWithRetry: exhausted attempts without a result");
1591
+ }
1534
1592
  class DbuConnector extends IBankConnector {
1535
1593
  constructor({
1536
1594
  BASE_URL,
@@ -1600,20 +1658,21 @@ class DbuConnector extends IBankConnector {
1600
1658
  fetchOptions.body = JSON.stringify(body);
1601
1659
  }
1602
1660
  console.log(
1603
- "[DBU] request",
1604
- JSON.stringify(
1605
- {
1606
- method,
1607
- url: url.toString(),
1608
- requestId,
1609
- headers: defaultHeaders,
1610
- body: body ?? null
1611
- },
1612
- null,
1613
- 2
1614
- )
1661
+ JSON.stringify({
1662
+ event: "[DBU] request",
1663
+ method,
1664
+ url: url.toString(),
1665
+ requestId,
1666
+ headers: defaultHeaders,
1667
+ body: previewForLog(body ?? null)
1668
+ })
1669
+ );
1670
+ response = await fetchWithRetry(
1671
+ this.api,
1672
+ url.toString(),
1673
+ fetchOptions,
1674
+ requestId
1615
1675
  );
1616
- response = await this.api.fetch(url.toString(), fetchOptions);
1617
1676
  const responseText = await response.text().catch(() => "unable to read response");
1618
1677
  if (!response.ok) {
1619
1678
  let parsedBody = responseText;
@@ -1648,21 +1707,18 @@ class DbuConnector extends IBankConnector {
1648
1707
  parseError: parseError instanceof Error ? parseError.message : String(parseError)
1649
1708
  });
1650
1709
  throw backendSdk.createInternalError(parseError, {
1651
- message: "Failed to parse DBU response as JSON"
1710
+ message: `Failed to parse DBU response as JSON: ${parseError instanceof Error ? parseError.message : String(parseError)} (preview: ${responseText.substring(0, 500)})`
1652
1711
  });
1653
1712
  }
1654
1713
  console.log(
1655
- "[DBU] response",
1656
- JSON.stringify(
1657
- {
1658
- status: response.status,
1659
- url: url.toString(),
1660
- requestId,
1661
- body: data
1662
- },
1663
- null,
1664
- 2
1665
- )
1714
+ JSON.stringify({
1715
+ event: "[DBU] response",
1716
+ status: response.status,
1717
+ url: url.toString(),
1718
+ requestId,
1719
+ bytes: responseText.length,
1720
+ body: previewForLog(data)
1721
+ })
1666
1722
  );
1667
1723
  return data;
1668
1724
  } catch (error) {
@@ -1679,7 +1735,10 @@ class DbuConnector extends IBankConnector {
1679
1735
  stack: error instanceof Error ? error.stack : void 0
1680
1736
  }
1681
1737
  });
1682
- throw error;
1738
+ if (backendSdk.isInternalError(error)) throw error;
1739
+ throw backendSdk.createInternalError(error, {
1740
+ message: `DBU ${method} ${endpoint} (requestId=${requestId}) failed: ${extractErrorDetails(error).message}`
1741
+ });
1683
1742
  }
1684
1743
  }
1685
1744
  mapDbuCurrencyCode(dbuCurrency) {
@@ -1992,14 +2051,14 @@ class DbuConnector extends IBankConnector {
1992
2051
  account,
1993
2052
  filter
1994
2053
  }) {
2054
+ let offset = 0;
2055
+ let pageNumber = 1;
1995
2056
  try {
1996
2057
  const dateFrom = dateFns.format(filter.dateFrom, "yyyy-MM-dd");
1997
2058
  const dateTo = dateFns.format(filter.dateTo || /* @__PURE__ */ new Date(), "yyyy-MM-dd");
1998
2059
  const allPayments = [];
1999
- let offset = 0;
2000
- const limit = 10;
2060
+ const limit = 50;
2001
2061
  let hasMoreData = true;
2002
- let pageNumber = 1;
2003
2062
  const baseRequestId = backendSdk.uuidv4().replace(/-/g, "");
2004
2063
  while (hasMoreData) {
2005
2064
  const response = await this.makeRequest(
@@ -2049,8 +2108,10 @@ class DbuConnector extends IBankConnector {
2049
2108
  }
2050
2109
  return allPayments;
2051
2110
  } catch (error) {
2111
+ const details = extractErrorDetails(error);
2052
2112
  throw backendSdk.createInternalError(error, {
2053
- message: "Failed to fetch payments from DBU API"
2113
+ message: `Failed to fetch payments from DBU API (page ${pageNumber}, offset ${offset}): ${details.message}`,
2114
+ code: details.code
2054
2115
  });
2055
2116
  }
2056
2117
  }
@@ -2638,6 +2699,7 @@ exports.assignAccount = assignAccount;
2638
2699
  exports.buildEndToEndId = buildEndToEndId;
2639
2700
  exports.calculateCzechIban = calculateCzechIban;
2640
2701
  exports.dbuAccountConfigSchema = dbuAccountConfigSchema;
2702
+ exports.extractErrorDetails = extractErrorDetails;
2641
2703
  exports.getNonTerminalPaymentRequestsQuery = getNonTerminalPaymentRequestsQuery;
2642
2704
  exports.hasPaymentAccountAssigned = hasPaymentAccountAssigned;
2643
2705
  exports.isPaymentCompleted = isPaymentCompleted;
@@ -1,4 +1,4 @@
1
- import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.r1xIlFBl.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.BrZjHUNG.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.r1xIlFBl.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.r1xIlFBl.cjs';
4
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.CRQln83_.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.CRQln83_.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.r1xIlFBl.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.r1xIlFBl.mjs';
4
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BW_2lyPj.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.BW_2lyPj.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.r1xIlFBl.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.r1xIlFBl.js';
4
- import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.Cu_7g0PZ.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.Cu_7g0PZ.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.BTysRSoT.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.0",
3
+ "version": "6.2.2",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -54,7 +54,8 @@
54
54
  "dependencies": {
55
55
  "date-fns": "^4.1.0",
56
56
  "drizzle-kit": "1.0.0-rc.1",
57
- "jose": "^6.1.3"
57
+ "jose": "^6.1.3",
58
+ "superjson": "^2.2.6"
58
59
  },
59
60
  "peerDependencies": {
60
61
  "@develit-io/backend-sdk": "^12.2.1",