@tesouro/embedded-components-react 0.11.100 → 0.11.101

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.
Files changed (25) hide show
  1. package/dist/experimental/QuickViewWidget.d.ts +62 -2
  2. package/dist/experimental/index.d.ts +62 -2
  3. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/accounts/ui/dist/index2.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index2.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index.js +1 -0
  6. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +98 -0
  7. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/index.js +3 -0
  8. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +80 -0
  9. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/labels.js +27 -0
  10. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +17 -0
  11. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/testIds.js +7 -0
  12. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +29 -0
  13. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/analytics/events.js +4 -0
  14. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index.js +3 -0
  15. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index2.js +8 -0
  16. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +31 -0
  17. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js +57 -44
  18. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js +6 -3
  19. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index2.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
  21. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +22 -18
  22. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +97 -97
  23. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +166 -154
  24. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  25. package/package.json +1 -1
@@ -8,65 +8,78 @@ import { InvoicesQuickViewWidget as t } from "../../../../invoices/feature/dist/
8
8
  import "../../../../invoices/feature/dist/index.js";
9
9
  import { BillsQuickViewWidget as n } from "../../../../bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js";
10
10
  import "../../../../bills/feature/dist/index.js";
11
- import { useEffect as r } from "react";
12
- import { jsx as i } from "react/jsx-runtime";
11
+ import { CardsQuickViewWidget as r } from "../../../../cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js";
12
+ import "../../../../cards/feature/dist/index.js";
13
+ import { useEffect as i } from "react";
14
+ import { jsx as a } from "react/jsx-runtime";
13
15
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js
14
- var a = {
16
+ var o = {
15
17
  Accounts: "accounts",
16
18
  Invoices: "invoices",
17
- Bills: "bills"
18
- }, o = {
19
+ Bills: "bills",
20
+ Cards: "cards"
21
+ }, s = {
19
22
  accounts: ["onViewAccountsClick"],
20
23
  invoices: ["onViewInvoicesClick", "onCreateInvoiceClick"],
21
- bills: ["onViewBillsClick", "onAddBillClick"]
22
- }, s = [
24
+ bills: ["onViewBillsClick", "onAddBillClick"],
25
+ cards: ["onViewCardsClick"]
26
+ }, c = [
23
27
  "onViewAccountsClick",
24
28
  "onViewInvoicesClick",
25
29
  "onCreateInvoiceClick",
26
30
  "onViewBillsClick",
27
- "onAddBillClick"
31
+ "onAddBillClick",
32
+ "onViewCardsClick"
28
33
  ];
29
- function c(e) {
30
- return Object.values(a).includes(e);
34
+ function l(e) {
35
+ return Object.values(o).includes(e);
31
36
  }
32
- function l(e, t) {
33
- let n = c(e) ? o[e] : [], i = s.filter((e) => t[e] !== void 0 && !n.includes(e)).join(", ");
34
- r(() => {
35
- c(e) ? i && console.warn(`[tesouro-embedded] QuickViewWidget: ${i} ${i.includes(",") ? "do" : "does"} not apply to type="${e}" and will never be called. type="${e}" uses: ${o[e].join(", ")}.`) : console.warn(`[tesouro-embedded] QuickViewWidget: unknown type "${String(e)}". Expected one of: ${Object.values(a).join(", ")}. Rendering nothing.`);
36
- }, [e, i]);
37
+ function u(e, t) {
38
+ let n = l(e) ? s[e] : [], r = c.filter((e) => t[e] !== void 0 && !n.includes(e)).join(", ");
39
+ i(() => {
40
+ l(e) ? r && console.warn(`[tesouro-embedded] QuickViewWidget: ${r} ${r.includes(",") ? "do" : "does"} not apply to type="${e}" and will never be called. type="${e}" uses: ${s[e].join(", ")}.`) : console.warn(`[tesouro-embedded] QuickViewWidget: unknown type "${String(e)}". Expected one of: ${Object.values(o).join(", ")}. Rendering nothing.`);
41
+ }, [e, r]);
37
42
  }
38
- function u({ type: r, labels: o, onViewAccountsClick: s, onViewInvoicesClick: c, onCreateInvoiceClick: u, onViewBillsClick: d, onAddBillClick: f, className: p, style: m, ...h }) {
39
- switch (l(r, {
40
- onViewAccountsClick: s,
41
- onViewInvoicesClick: c,
42
- onCreateInvoiceClick: u,
43
- onViewBillsClick: d,
44
- onAddBillClick: f
45
- }), r) {
46
- case a.Accounts: return /* @__PURE__ */ i(e, {
47
- ...h,
48
- labels: o?.accounts,
49
- onViewAccountsClick: s,
50
- className: p,
51
- style: m
43
+ function d({ type: i, labels: s, onViewAccountsClick: c, onViewInvoicesClick: l, onCreateInvoiceClick: d, onViewBillsClick: f, onAddBillClick: p, onViewCardsClick: m, className: h, style: g, ..._ }) {
44
+ switch (u(i, {
45
+ onViewAccountsClick: c,
46
+ onViewInvoicesClick: l,
47
+ onCreateInvoiceClick: d,
48
+ onViewBillsClick: f,
49
+ onAddBillClick: p,
50
+ onViewCardsClick: m
51
+ }), i) {
52
+ case o.Accounts: return /* @__PURE__ */ a(e, {
53
+ ..._,
54
+ labels: s?.accounts,
55
+ onViewAccountsClick: c,
56
+ className: h,
57
+ style: g
52
58
  });
53
- case a.Invoices: return /* @__PURE__ */ i(t, {
54
- ...h,
55
- labels: o?.invoices,
56
- onViewInvoicesClick: c,
57
- onCreateInvoiceClick: u,
58
- className: p,
59
- style: m
59
+ case o.Invoices: return /* @__PURE__ */ a(t, {
60
+ ..._,
61
+ labels: s?.invoices,
62
+ onViewInvoicesClick: l,
63
+ onCreateInvoiceClick: d,
64
+ className: h,
65
+ style: g
60
66
  });
61
- case a.Bills: return /* @__PURE__ */ i(n, {
62
- ...h,
63
- labels: o?.bills,
64
- onViewBillsClick: d,
65
- onAddBillClick: f,
66
- className: p,
67
- style: m
67
+ case o.Bills: return /* @__PURE__ */ a(n, {
68
+ ..._,
69
+ labels: s?.bills,
70
+ onViewBillsClick: f,
71
+ onAddBillClick: p,
72
+ className: h,
73
+ style: g
74
+ });
75
+ case o.Cards: return /* @__PURE__ */ a(r, {
76
+ ..._,
77
+ labels: s?.cards,
78
+ onViewCardsClick: m,
79
+ className: h,
80
+ style: g
68
81
  });
69
82
  default: return null;
70
83
  }
71
84
  }
72
- export { o as QUICK_VIEW_CLICK_HANDLERS, a as QuickViewType, u as QuickViewWidget };
85
+ export { s as QUICK_VIEW_CLICK_HANDLERS, o as QuickViewType, d as QuickViewWidget };
@@ -4,10 +4,13 @@ import { INVOICES_QUICK_VIEW_WIDGET_LABELS_EN as t } from "../../../../invoices/
4
4
  import "../../../../invoices/feature/dist/index.js";
5
5
  import { BILLS_QUICK_VIEW_WIDGET_LABELS_EN as n } from "../../../../bills/feature/dist/lib/BillsQuickViewWidget/labels.js";
6
6
  import "../../../../bills/feature/dist/index.js";
7
+ import { CARDS_QUICK_VIEW_WIDGET_LABELS_EN as r } from "../../../../cards/feature/dist/lib/CardsQuickViewWidget/labels.js";
8
+ import "../../../../cards/feature/dist/index.js";
7
9
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js
8
- var r = {
10
+ var i = {
9
11
  accounts: e,
10
12
  invoices: t,
11
- bills: n
13
+ bills: n,
14
+ cards: r
12
15
  };
13
- export { r as QUICK_VIEW_WIDGET_LABELS_EN };
16
+ export { i as QUICK_VIEW_WIDGET_LABELS_EN };
@@ -3,6 +3,6 @@ var e = {
3
3
  title: "Open invoices",
4
4
  loadingLabel: "Loading invoices",
5
5
  loadErrorTitle: "Couldn't load invoices",
6
- loadErrorRetry: "Retry"
6
+ loadErrorRetry: "Try again"
7
7
  };
8
8
  export { e as INVOICES_QUICK_VIEW_TILE_LABELS_EN };
@@ -1,48 +1,48 @@
1
1
  import "./lib/finopsApiVersion.js";
2
2
  import "./lib/rest/client.gen.js";
3
- import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getReceivablesIdHistory as I, getUsers as L, listDepartments as R, listLocations as z, listRoles as B, manageBankAccountAccess as V, manageDebitCardAccess as H, patchCounterpartsId as U, patchCounterpartsIdAddressesId as W, patchCounterpartsIdBankAccountsId as G, patchEntitiesIdSettings as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchRecurrencesId as Z, patchTransactionsId as Q, postApprovalRequestsIdApprove as $, postApprovalRequestsIdReject as ee, postBankDetails as te, postCounterparts as ne, postCounterpartsIdAddresses as re, postCounterpartsIdBankAccounts as ie, postFiles as ae, postMeasureUnits as oe, postOverdueReminders as se, postPayables as ce, postPayablesIdApprovePaymentOperation as le, postPayablesIdAttachFile as ue, postPayablesIdCancel as de, postPayablesIdDuplicatesIdConfirm as fe, postPayablesIdDuplicatesIdDismiss as pe, postPayablesIdMarkAsPaid as me, postPayablesIdReject as he, postPayablesIdReopen as ge, postPayablesIdSchedulePayment as _e, postPayablesIdSubmitForApproval as ve, postPayablesIdValidate as ye, postPayablesUploadFromFile as be, postPaymentIntentsIdCancel as xe, postPaymentRecords as Se, postPaymentReminders as Ce, postProducts as we, postReceivables as Te, postReceivablesIdAccept as Ee, postReceivablesIdCancel as De, postReceivablesIdClone as Oe, postReceivablesIdDecline as ke, postReceivablesIdIssue as Ae, postReceivablesIdMarkAsPaid as je, postReceivablesIdMarkAsUncollectible as Me, postReceivablesIdSend as Ne, postRecurrences as Pe, postRecurrencesIdCancel as Fe, postRecurrencesIdPause as Ie, postRecurrencesIdResume as Le, postTransactionsIdApprove as Re, postTransactionsIdReject as ze, postTransactionsIdReopen as Be, postTransactionsIdSubmit as Ve, putEntitiesIdLogo as He, putPayablesIdLineItems as Ue, updateDepartment as We, updateLocation as Ge, updateUser as Ke } from "./lib/rest/sdk.gen.js";
4
- import { activateCreditCardMutation as qe, activateDebitCardMutation as Je, connectExternalBankAccountMutation as Ye, createAchMoneyMovementMutation as Xe, createApplicationMutation as Ze, createBankAccountMutation as Qe, createBookTransferMutation as $e, createCheckDepositMutation as et, createDebitCardMutation as tt, createVelocityControlMutation as nt, deleteApprovalPoliciesIdMutation as rt, deleteBankAccountApplicationMutation as it, deleteLedgerAccountsIdMutation as at, deleteReceiptsIdMutation as ot, disableUserMutation as st, getAnalyticsPayablesOptions as ct, getAnalyticsPayablesQueryKey as lt, getAnalyticsReceiptsOptions as ut, getAnalyticsReceiptsQueryKey as dt, getAnalyticsReceivablesOptions as ft, getAnalyticsReceivablesQueryKey as pt, getAnalyticsTransactionsOptions as mt, getAnalyticsTransactionsQueryKey as ht, getApprovalPoliciesOptions as gt, getApprovalPoliciesQueryKey as _t, getApprovalRequestsOptions as vt, getApprovalRequestsQueryKey as yt, getBankAccountAccessQueryKey as bt, getBankAccountApplicationOptions as xt, getBankAccountOptions as St, getBankAccountQueryKey as Ct, getBankAccountStatementsOptions as wt, getBankAccountTransactionsOptions as Tt, getBankAccountTransactionsQueryKey as Et, getBankAccountsQueryKey as Dt, getBankDetailsIdOptions as Ot, getBankDetailsOptions as kt, getBankDetailsQueryKey as At, getCounterpartsIdAddressesOptions as jt, getCounterpartsIdAddressesQueryKey as Mt, getCounterpartsIdBankAccountsOptions as Nt, getCounterpartsIdBankAccountsQueryKey as Pt, getCounterpartsIdOptions as Ft, getCounterpartsIdQueryKey as It, getCounterpartsOptions as Lt, getCounterpartsQueryKey as Rt, getCreditCardByIdOptions as zt, getCreditCardByIdQueryKey as Bt, getCreditCardsOptions as Vt, getCreditCardsQueryKey as Ht, getDebitCardByIdOptions as Ut, getDebitCardByIdQueryKey as Wt, getDebitCardCredentialsOptions as Gt, getDebitCardsOptions as Kt, getDebitCardsQueryKey as qt, getDepartmentOptions as Jt, getDepartmentQueryKey as Yt, getDepositableBankAccountsOptions as Xt, getDocumentsIdNextNumbersOptions as Zt, getDocumentsIdNextNumbersQueryKey as Qt, getEntitiesIdPaymentMethodsOptions as $t, getEntitiesIdSettingsOptions as en, getEntitiesIdSettingsQueryKey as tn, getEntityUsersOptions as nn, getExternalBankAccountAccessQueryKey as rn, getExternalBankAccountOptions as an, getExternalBankAccountsOptions as on, getExternalBankAccountsQueryKey as sn, getFilesQueryKey as cn, getLedgerAccountsQueryKey as ln, getLocationOptions as un, getLocationQueryKey as dn, getMeOptions as fn, getMeasureUnitsOptions as pn, getMeasureUnitsQueryKey as mn, getOrganizationOptions as hn, getOrganizationTransfersOptions as gn, getOrganizationTransfersQueryKey as _n, getOverdueRemindersOptions as vn, getOverdueRemindersQueryKey as yn, getPayablesIdHistoryOptions as bn, getPayablesIdHistoryQueryKey as xn, getPayablesIdLineItemsOptions as Sn, getPayablesIdLineItemsQueryKey as Cn, getPayablesIdOptions as wn, getPayablesIdQueryKey as Tn, getPayablesIdSuggestionsOptions as En, getPayablesOptions as Dn, getPayablesQueryKey as On, getPaymentRecordsOptions as kn, getPaymentRecordsQueryKey as An, getPaymentRemindersOptions as jn, getPaymentRemindersQueryKey as Mn, getProductsIdOptions as Nn, getProductsIdQueryKey as Pn, getProductsOptions as Fn, getProductsQueryKey as In, getReceiptsIdQueryKey as Ln, getReceiptsOptions as Rn, getReceiptsQueryKey as zn, getReceivablesIdHistoryQueryKey as Bn, getReceivablesIdMailsQueryKey as Vn, getReceivablesIdOptions as Hn, getReceivablesIdPdfLinkOptions as Un, getReceivablesIdPdfLinkQueryKey as Wn, getReceivablesIdQueryKey as Gn, getReceivablesOptions as Kn, getReceivablesQueryKey as qn, getReceivablesRequiredFieldsOptions as Jn, getRecurrencesIdOptions as Yn, getRecurrencesIdQueryKey as Xn, getRecurrencesQueryKey as Zn, getTransactionsIdExpenseHistoryOptions as Qn, getTransactionsIdExpenseHistoryQueryKey as $n, getTransactionsIdOptions as er, getTransactionsIdQueryKey as tr, getTransactionsOptions as nr, getTransactionsQueryKey as rr, getTransactionsValidationsOptions as ir, getTransactionsValidationsQueryKey as ar, getUsersOptions as or, getUsersQueryKey as sr, getVelocityControlsQueryKey as cr, grantBankAccountAccessMutation as lr, grantExternalBankAccountAccessMutation as ur, linkExternalBankAccountMutation as dr, listDepartmentsOptions as fr, listDepartmentsQueryKey as pr, listLocationsOptions as mr, listLocationsQueryKey as hr, listRolesQueryKey as gr, manageDebitCardAccessMutation as _r, patchApprovalPoliciesIdMutation as vr, patchLedgerAccountsIdMutation as yr, patchReceiptsIdMutation as br, postApprovalPoliciesMutation as xr, postLedgerAccountsMutation as Sr, postReceiptsUploadFromFileMutation as Cr, putTransactionsValidationsMutation as wr, setDebitCardLockStatusMutation as Tr, submitApplicationMutation as Er, unlinkExternalBankAccountMutation as Dr, updateApplicationMutation as Or, updateBankAccountMutation as kr, updateDebitCardMutation as Ar, updateExternalBankAccountMutation as jr, validateExternalBankAccountMutation as Mr, verifyDebitCardMutation as Nr } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { widgetTokenCacheId as Pr } from "./lib/widgetTokenCacheId.js";
6
- import { OrganizationStatus as Fr, isOrganizationOnItsWay as Ir } from "./lib/organizationStatus.js";
7
- import { withAuthEpoch as Lr, withAuthEpochInfinite as Rr } from "./lib/withAuthEpoch.js";
8
- import { applicationStatusInvalidationKey as zr, applicationStatusQueryOptions as Br } from "./lib/applicationStatusQueryOptions.js";
9
- import { createClientSecretInstaller as Vr } from "./lib/scopedClientSecret.js";
10
- import { cancelAllClients as Hr, invalidateAllClients as Ur, registerQueryClient as Wr, removeInactiveFromAllClients as Gr, resetAllClients as Kr, setAllClientsQueriesData as qr, unregisterQueryClient as Jr } from "./lib/clientRegistry.js";
11
- import { cloneEmbeddedClient as Yr, createEmbeddedClient as Xr } from "./lib/createEmbeddedClient.js";
3
+ import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDebitCardTransactions as w, getDepartment as T, getDepositableBankAccounts as E, getExternalBankAccountAccess as D, getLocation as O, getPayables as k, getPayablesId as A, getPayablesIdHistory as j, getPayablesIdLineItems as M, getPaymentRecords as N, getProducts as P, getReceipts as F, getReceivables as I, getReceivablesIdHistory as L, getUsers as R, listDepartments as z, listLocations as B, listRoles as V, manageBankAccountAccess as H, manageDebitCardAccess as U, patchCounterpartsId as W, patchCounterpartsIdAddressesId as G, patchCounterpartsIdBankAccountsId as K, patchEntitiesIdSettings as q, patchMeasureUnitsId as J, patchPayablesId as Y, patchProductsId as X, patchReceivablesId as Z, patchRecurrencesId as Q, patchTransactionsId as $, postApprovalRequestsIdApprove as ee, postApprovalRequestsIdReject as te, postBankDetails as ne, postCounterparts as re, postCounterpartsIdAddresses as ie, postCounterpartsIdBankAccounts as ae, postFiles as oe, postMeasureUnits as se, postOverdueReminders as ce, postPayables as le, postPayablesIdApprovePaymentOperation as ue, postPayablesIdAttachFile as de, postPayablesIdCancel as fe, postPayablesIdDuplicatesIdConfirm as pe, postPayablesIdDuplicatesIdDismiss as me, postPayablesIdMarkAsPaid as he, postPayablesIdReject as ge, postPayablesIdReopen as _e, postPayablesIdSchedulePayment as ve, postPayablesIdSubmitForApproval as ye, postPayablesIdValidate as be, postPayablesUploadFromFile as xe, postPaymentIntentsIdCancel as Se, postPaymentRecords as Ce, postPaymentReminders as we, postProducts as Te, postReceivables as Ee, postReceivablesIdAccept as De, postReceivablesIdCancel as Oe, postReceivablesIdClone as ke, postReceivablesIdDecline as Ae, postReceivablesIdIssue as je, postReceivablesIdMarkAsPaid as Me, postReceivablesIdMarkAsUncollectible as Ne, postReceivablesIdSend as Pe, postRecurrences as Fe, postRecurrencesIdCancel as Ie, postRecurrencesIdPause as Le, postRecurrencesIdResume as Re, postTransactionsIdApprove as ze, postTransactionsIdReject as Be, postTransactionsIdReopen as Ve, postTransactionsIdSubmit as He, putEntitiesIdLogo as Ue, putPayablesIdLineItems as We, updateDepartment as Ge, updateLocation as Ke, updateUser as qe } from "./lib/rest/sdk.gen.js";
4
+ import { activateCreditCardMutation as Je, activateDebitCardMutation as Ye, connectExternalBankAccountMutation as Xe, createAchMoneyMovementMutation as Ze, createApplicationMutation as Qe, createBankAccountMutation as $e, createBookTransferMutation as et, createCheckDepositMutation as tt, createDebitCardMutation as nt, createVelocityControlMutation as rt, deleteApprovalPoliciesIdMutation as it, deleteBankAccountApplicationMutation as at, deleteLedgerAccountsIdMutation as ot, deleteReceiptsIdMutation as st, disableUserMutation as ct, getAnalyticsPayablesOptions as lt, getAnalyticsPayablesQueryKey as ut, getAnalyticsReceiptsOptions as dt, getAnalyticsReceiptsQueryKey as ft, getAnalyticsReceivablesOptions as pt, getAnalyticsReceivablesQueryKey as mt, getAnalyticsTransactionsOptions as ht, getAnalyticsTransactionsQueryKey as gt, getApprovalPoliciesOptions as _t, getApprovalPoliciesQueryKey as vt, getApprovalRequestsOptions as yt, getApprovalRequestsQueryKey as bt, getBankAccountAccessQueryKey as xt, getBankAccountApplicationOptions as St, getBankAccountOptions as Ct, getBankAccountQueryKey as wt, getBankAccountStatementsOptions as Tt, getBankAccountTransactionsOptions as Et, getBankAccountTransactionsQueryKey as Dt, getBankAccountsQueryKey as Ot, getBankDetailsIdOptions as kt, getBankDetailsOptions as At, getBankDetailsQueryKey as jt, getCounterpartsIdAddressesOptions as Mt, getCounterpartsIdAddressesQueryKey as Nt, getCounterpartsIdBankAccountsOptions as Pt, getCounterpartsIdBankAccountsQueryKey as Ft, getCounterpartsIdOptions as It, getCounterpartsIdQueryKey as Lt, getCounterpartsOptions as Rt, getCounterpartsQueryKey as zt, getCreditCardByIdOptions as Bt, getCreditCardByIdQueryKey as Vt, getCreditCardsOptions as Ht, getCreditCardsQueryKey as Ut, getDebitCardByIdOptions as Wt, getDebitCardByIdQueryKey as Gt, getDebitCardCredentialsOptions as Kt, getDebitCardTransactionsQueryKey as qt, getDebitCardsOptions as Jt, getDebitCardsQueryKey as Yt, getDepartmentOptions as Xt, getDepartmentQueryKey as Zt, getDepositableBankAccountsOptions as Qt, getDocumentsIdNextNumbersOptions as $t, getDocumentsIdNextNumbersQueryKey as en, getEntitiesIdPaymentMethodsOptions as tn, getEntitiesIdSettingsOptions as nn, getEntitiesIdSettingsQueryKey as rn, getEntityUsersOptions as an, getExternalBankAccountAccessQueryKey as on, getExternalBankAccountOptions as sn, getExternalBankAccountsOptions as cn, getExternalBankAccountsQueryKey as ln, getFilesQueryKey as un, getLedgerAccountsQueryKey as dn, getLocationOptions as fn, getLocationQueryKey as pn, getMeOptions as mn, getMeasureUnitsOptions as hn, getMeasureUnitsQueryKey as gn, getOrganizationOptions as _n, getOrganizationTransfersOptions as vn, getOrganizationTransfersQueryKey as yn, getOverdueRemindersOptions as bn, getOverdueRemindersQueryKey as xn, getPayablesIdHistoryOptions as Sn, getPayablesIdHistoryQueryKey as Cn, getPayablesIdLineItemsOptions as wn, getPayablesIdLineItemsQueryKey as Tn, getPayablesIdOptions as En, getPayablesIdQueryKey as Dn, getPayablesIdSuggestionsOptions as On, getPayablesOptions as kn, getPayablesQueryKey as An, getPaymentRecordsOptions as jn, getPaymentRecordsQueryKey as Mn, getPaymentRemindersOptions as Nn, getPaymentRemindersQueryKey as Pn, getProductsIdOptions as Fn, getProductsIdQueryKey as In, getProductsOptions as Ln, getProductsQueryKey as Rn, getReceiptsIdQueryKey as zn, getReceiptsOptions as Bn, getReceiptsQueryKey as Vn, getReceivablesIdHistoryQueryKey as Hn, getReceivablesIdMailsQueryKey as Un, getReceivablesIdOptions as Wn, getReceivablesIdPdfLinkOptions as Gn, getReceivablesIdPdfLinkQueryKey as Kn, getReceivablesIdQueryKey as qn, getReceivablesOptions as Jn, getReceivablesQueryKey as Yn, getReceivablesRequiredFieldsOptions as Xn, getRecurrencesIdOptions as Zn, getRecurrencesIdQueryKey as Qn, getRecurrencesQueryKey as $n, getTransactionsIdExpenseHistoryOptions as er, getTransactionsIdExpenseHistoryQueryKey as tr, getTransactionsIdOptions as nr, getTransactionsIdQueryKey as rr, getTransactionsOptions as ir, getTransactionsQueryKey as ar, getTransactionsValidationsOptions as or, getTransactionsValidationsQueryKey as sr, getUsersOptions as cr, getUsersQueryKey as lr, getVelocityControlsQueryKey as ur, grantBankAccountAccessMutation as dr, grantExternalBankAccountAccessMutation as fr, linkExternalBankAccountMutation as pr, listDepartmentsOptions as mr, listDepartmentsQueryKey as hr, listLocationsOptions as gr, listLocationsQueryKey as _r, listRolesQueryKey as vr, manageDebitCardAccessMutation as yr, patchApprovalPoliciesIdMutation as br, patchLedgerAccountsIdMutation as xr, patchReceiptsIdMutation as Sr, postApprovalPoliciesMutation as Cr, postLedgerAccountsMutation as wr, postReceiptsUploadFromFileMutation as Tr, putTransactionsValidationsMutation as Er, setDebitCardLockStatusMutation as Dr, submitApplicationMutation as Or, unlinkExternalBankAccountMutation as kr, updateApplicationMutation as Ar, updateBankAccountMutation as jr, updateDebitCardMutation as Mr, updateExternalBankAccountMutation as Nr, validateExternalBankAccountMutation as Pr, verifyDebitCardMutation as Fr } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { widgetTokenCacheId as Ir } from "./lib/widgetTokenCacheId.js";
6
+ import { OrganizationStatus as Lr, isOrganizationOnItsWay as Rr } from "./lib/organizationStatus.js";
7
+ import { withAuthEpoch as zr, withAuthEpochInfinite as Br } from "./lib/withAuthEpoch.js";
8
+ import { applicationStatusInvalidationKey as Vr, applicationStatusQueryOptions as Hr } from "./lib/applicationStatusQueryOptions.js";
9
+ import { createClientSecretInstaller as Ur } from "./lib/scopedClientSecret.js";
10
+ import { cancelAllClients as Wr, invalidateAllClients as Gr, registerQueryClient as Kr, removeInactiveFromAllClients as qr, resetAllClients as Jr, setAllClientsQueriesData as Yr, unregisterQueryClient as Xr } from "./lib/clientRegistry.js";
11
+ import { cloneEmbeddedClient as Zr, createEmbeddedClient as Qr } from "./lib/createEmbeddedClient.js";
12
12
  import "./lib/widgetGatewayHosts.js";
13
- import { attachTransportInterceptors as Zr } from "./lib/transportInterceptors.js";
14
- import { EmbedApiProvider as Qr, useEmbedApi as $r } from "./lib/EmbedApiContext.js";
15
- import { optionalOrganizationHeaders as ei, organizationHeaders as ti } from "./lib/organizationHeaders.js";
16
- import { fetchWidgetInit as ni } from "./lib/fetchWidgetInit.js";
17
- import { hasAnyScope as ri } from "./lib/hasAnyScope.js";
18
- import { myEntityInvalidationKey as ii } from "./lib/queryKeys.js";
19
- import { useCurrentUserQuery as ai } from "./lib/useCurrentUserQuery.js";
20
- import { useMyEntityQuery as oi } from "./lib/useMyEntityQuery.js";
21
- import { useMailboxAddress as si } from "./lib/useMailboxAddress.js";
13
+ import { attachTransportInterceptors as $r } from "./lib/transportInterceptors.js";
14
+ import { EmbedApiProvider as ei, useEmbedApi as ti } from "./lib/EmbedApiContext.js";
15
+ import { optionalOrganizationHeaders as ni, organizationHeaders as ri } from "./lib/organizationHeaders.js";
16
+ import { fetchWidgetInit as ii } from "./lib/fetchWidgetInit.js";
17
+ import { hasAnyScope as ai } from "./lib/hasAnyScope.js";
18
+ import { myEntityInvalidationKey as oi } from "./lib/queryKeys.js";
19
+ import { useCurrentUserQuery as si } from "./lib/useCurrentUserQuery.js";
20
+ import { useMyEntityQuery as ci } from "./lib/useMyEntityQuery.js";
21
+ import { useMailboxAddress as li } from "./lib/useMailboxAddress.js";
22
22
  import "./lib/apiErrorStatus.js";
23
- import { isApiConflictError as ci } from "./lib/isApiConflictError.js";
24
- import { isApiForbiddenError as li } from "./lib/isApiForbiddenError.js";
25
- import { isApiNotFoundError as ui } from "./lib/isApiNotFoundError.js";
26
- import { isApiUnprocessableError as di } from "./lib/isApiUnprocessableError.js";
23
+ import { isApiConflictError as ui } from "./lib/isApiConflictError.js";
24
+ import { isApiForbiddenError as di } from "./lib/isApiForbiddenError.js";
25
+ import { isApiNotFoundError as fi } from "./lib/isApiNotFoundError.js";
26
+ import { isApiUnprocessableError as pi } from "./lib/isApiUnprocessableError.js";
27
27
  import "./lib/isUserDataNotFoundError.js";
28
- import { useGetUserDataQuery as fi } from "./lib/useGetUserDataQuery.js";
29
- import { useUpsertUserDataMutation as pi } from "./lib/useUpsertUserDataMutation.js";
30
- import { Scope as mi, isScope as hi } from "./lib/scopes.js";
31
- import { getAllPagesNextPageParam as gi, getAllPagesNextPaginationTokenParam as _i, isAllPagesResolving as vi, useAutoFetchNextPage as yi } from "./lib/allPages.js";
32
- import { useAllBankAccountsQuery as bi } from "./lib/bank-account/useAllBankAccountsQuery.js";
33
- import { useAllDebitCardsQuery as xi } from "./lib/debit-card/useAllDebitCardsQuery.js";
34
- import { useAllExternalBankAccountsQuery as Si } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
35
- import { useAllMerchantCategoryGroupsQuery as Ci } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
36
- import { useAllLedgerAccountsQuery as wi, useLedgerAccountsQuery as Ti } from "./lib/reference-data/useLedgerAccountsQuery.js";
37
- import { usePaymentTermsQuery as Ei } from "./lib/reference-data/usePaymentTermsQuery.js";
38
- import { useOrganizationQuery as Di } from "./lib/organization/useOrganizationQuery.js";
39
- import { useAllOrganizationRolesQuery as Oi } from "./lib/role/useAllOrganizationRolesQuery.js";
40
- import { useRolePermissionsQueries as ki } from "./lib/role/useRolePermissionsQueries.js";
41
- import { useAllOrganizationUsersQuery as Ai } from "./lib/user/useAllOrganizationUsersQuery.js";
42
- import { personDisclosure as ji } from "./lib/disclosures/personDisclosure.js";
43
- import { useAcceptWidgetDisclosures as Mi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
44
- import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery.js";
45
- import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
46
- import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
47
- import { useOrganizationApplicationStatus as Ii } from "./lib/useOrganizationApplicationStatus.js";
48
- export { Qr as EmbedApiProvider, Pi as OnboardingSuppressionReason, Fr as OrganizationStatus, mi as Scope, qe as activateCreditCardMutation, Je as activateDebitCardMutation, zr as applicationStatusInvalidationKey, Br as applicationStatusQueryOptions, Zr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Hr as cancelAllClients, Yr as cloneEmbeddedClient, Ye as connectExternalBankAccountMutation, Xe as createAchMoneyMovementMutation, Ze as createApplicationMutation, Qe as createBankAccountMutation, $e as createBookTransferMutation, et as createCheckDepositMutation, Vr as createClientSecretInstaller, tt as createDebitCardMutation, r as createDepartment, Xr as createEmbeddedClient, i as createLocation, a as createUser, nt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, rt as deleteApprovalPoliciesIdMutation, it as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, at as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, ot as deleteReceiptsIdMutation, g as deleteReceivablesId, st as disableUserMutation, _ as downloadBankAccountTransactions, ni as fetchWidgetInit, gi as getAllPagesNextPageParam, _i as getAllPagesNextPaginationTokenParam, ct as getAnalyticsPayablesOptions, lt as getAnalyticsPayablesQueryKey, ut as getAnalyticsReceiptsOptions, dt as getAnalyticsReceiptsQueryKey, ft as getAnalyticsReceivablesOptions, pt as getAnalyticsReceivablesQueryKey, mt as getAnalyticsTransactionsOptions, ht as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, gt as getApprovalPoliciesOptions, _t as getApprovalPoliciesQueryKey, b as getApprovalRequests, vt as getApprovalRequestsOptions, yt as getApprovalRequestsQueryKey, x as getBankAccountAccess, bt as getBankAccountAccessQueryKey, xt as getBankAccountApplicationOptions, St as getBankAccountOptions, Ct as getBankAccountQueryKey, S as getBankAccountStatement, wt as getBankAccountStatementsOptions, Tt as getBankAccountTransactionsOptions, Et as getBankAccountTransactionsQueryKey, Dt as getBankAccountsQueryKey, Ot as getBankDetailsIdOptions, kt as getBankDetailsOptions, At as getBankDetailsQueryKey, C as getCounterparts, jt as getCounterpartsIdAddressesOptions, Mt as getCounterpartsIdAddressesQueryKey, Nt as getCounterpartsIdBankAccountsOptions, Pt as getCounterpartsIdBankAccountsQueryKey, Ft as getCounterpartsIdOptions, It as getCounterpartsIdQueryKey, Lt as getCounterpartsOptions, Rt as getCounterpartsQueryKey, zt as getCreditCardByIdOptions, Bt as getCreditCardByIdQueryKey, Vt as getCreditCardsOptions, Ht as getCreditCardsQueryKey, Ut as getDebitCardByIdOptions, Wt as getDebitCardByIdQueryKey, Gt as getDebitCardCredentialsOptions, Kt as getDebitCardsOptions, qt as getDebitCardsQueryKey, w as getDepartment, Jt as getDepartmentOptions, Yt as getDepartmentQueryKey, T as getDepositableBankAccounts, Xt as getDepositableBankAccountsOptions, Zt as getDocumentsIdNextNumbersOptions, Qt as getDocumentsIdNextNumbersQueryKey, $t as getEntitiesIdPaymentMethodsOptions, en as getEntitiesIdSettingsOptions, tn as getEntitiesIdSettingsQueryKey, nn as getEntityUsersOptions, E as getExternalBankAccountAccess, rn as getExternalBankAccountAccessQueryKey, an as getExternalBankAccountOptions, on as getExternalBankAccountsOptions, sn as getExternalBankAccountsQueryKey, cn as getFilesQueryKey, ln as getLedgerAccountsQueryKey, D as getLocation, un as getLocationOptions, dn as getLocationQueryKey, fn as getMeOptions, pn as getMeasureUnitsOptions, mn as getMeasureUnitsQueryKey, hn as getOrganizationOptions, gn as getOrganizationTransfersOptions, _n as getOrganizationTransfersQueryKey, vn as getOverdueRemindersOptions, yn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, bn as getPayablesIdHistoryOptions, xn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, Sn as getPayablesIdLineItemsOptions, Cn as getPayablesIdLineItemsQueryKey, wn as getPayablesIdOptions, Tn as getPayablesIdQueryKey, En as getPayablesIdSuggestionsOptions, Dn as getPayablesOptions, On as getPayablesQueryKey, M as getPaymentRecords, kn as getPaymentRecordsOptions, An as getPaymentRecordsQueryKey, jn as getPaymentRemindersOptions, Mn as getPaymentRemindersQueryKey, N as getProducts, Nn as getProductsIdOptions, Pn as getProductsIdQueryKey, Fn as getProductsOptions, In as getProductsQueryKey, P as getReceipts, Ln as getReceiptsIdQueryKey, Rn as getReceiptsOptions, zn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Bn as getReceivablesIdHistoryQueryKey, Vn as getReceivablesIdMailsQueryKey, Hn as getReceivablesIdOptions, Un as getReceivablesIdPdfLinkOptions, Wn as getReceivablesIdPdfLinkQueryKey, Gn as getReceivablesIdQueryKey, Kn as getReceivablesOptions, qn as getReceivablesQueryKey, Jn as getReceivablesRequiredFieldsOptions, Yn as getRecurrencesIdOptions, Xn as getRecurrencesIdQueryKey, Zn as getRecurrencesQueryKey, Qn as getTransactionsIdExpenseHistoryOptions, $n as getTransactionsIdExpenseHistoryQueryKey, er as getTransactionsIdOptions, tr as getTransactionsIdQueryKey, nr as getTransactionsOptions, rr as getTransactionsQueryKey, ir as getTransactionsValidationsOptions, ar as getTransactionsValidationsQueryKey, L as getUsers, or as getUsersOptions, sr as getUsersQueryKey, cr as getVelocityControlsQueryKey, lr as grantBankAccountAccessMutation, ur as grantExternalBankAccountAccessMutation, ri as hasAnyScope, Ur as invalidateAllClients, vi as isAllPagesResolving, ci as isApiConflictError, li as isApiForbiddenError, ui as isApiNotFoundError, di as isApiUnprocessableError, Ir as isOrganizationOnItsWay, hi as isScope, dr as linkExternalBankAccountMutation, R as listDepartments, fr as listDepartmentsOptions, pr as listDepartmentsQueryKey, z as listLocations, mr as listLocationsOptions, hr as listLocationsQueryKey, B as listRoles, gr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, _r as manageDebitCardAccessMutation, ii as myEntityInvalidationKey, ei as optionalOrganizationHeaders, ti as organizationHeaders, vr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, yr as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, br as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, ji as personDisclosure, xr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postFiles, Sr as postLedgerAccountsMutation, oe as postMeasureUnits, se as postOverdueReminders, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postPaymentRecords, Ce as postPaymentReminders, we as postProducts, Cr as postReceiptsUploadFromFileMutation, Te as postReceivables, Ee as postReceivablesIdAccept, De as postReceivablesIdCancel, Oe as postReceivablesIdClone, ke as postReceivablesIdDecline, Ae as postReceivablesIdIssue, je as postReceivablesIdMarkAsPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postRecurrencesIdCancel, Ie as postRecurrencesIdPause, Le as postRecurrencesIdResume, Re as postTransactionsIdApprove, ze as postTransactionsIdReject, Be as postTransactionsIdReopen, Ve as postTransactionsIdSubmit, He as putEntitiesIdLogo, Ue as putPayablesIdLineItems, wr as putTransactionsValidationsMutation, Wr as registerQueryClient, Gr as removeInactiveFromAllClients, Kr as resetAllClients, qr as setAllClientsQueriesData, Tr as setDebitCardLockStatusMutation, Er as submitApplicationMutation, Dr as unlinkExternalBankAccountMutation, Jr as unregisterQueryClient, Or as updateApplicationMutation, kr as updateBankAccountMutation, Ar as updateDebitCardMutation, We as updateDepartment, jr as updateExternalBankAccountMutation, Ge as updateLocation, Ke as updateUser, Mi as useAcceptWidgetDisclosures, bi as useAllBankAccountsQuery, xi as useAllDebitCardsQuery, Si as useAllExternalBankAccountsQuery, wi as useAllLedgerAccountsQuery, Ci as useAllMerchantCategoryGroupsQuery, Oi as useAllOrganizationRolesQuery, Ai as useAllOrganizationUsersQuery, yi as useAutoFetchNextPage, ai as useCurrentUserQuery, Ni as useDisclosuresQuery, $r as useEmbedApi, fi as useGetUserDataQuery, Ti as useLedgerAccountsQuery, si as useMailboxAddress, oi as useMyEntityQuery, Ii as useOrganizationApplicationStatus, Fi as useOrganizationOnboardingSuppression, Di as useOrganizationQuery, Ei as usePaymentTermsQuery, ki as useRolePermissionsQueries, pi as useUpsertUserDataMutation, Mr as validateExternalBankAccountMutation, Nr as verifyDebitCardMutation, Pr as widgetTokenCacheId, Lr as withAuthEpoch, Rr as withAuthEpochInfinite };
28
+ import { useGetUserDataQuery as mi } from "./lib/useGetUserDataQuery.js";
29
+ import { useUpsertUserDataMutation as hi } from "./lib/useUpsertUserDataMutation.js";
30
+ import { Scope as gi, isScope as _i } from "./lib/scopes.js";
31
+ import { getAllPagesNextPageParam as vi, getAllPagesNextPaginationTokenParam as yi, isAllPagesResolving as bi, useAutoFetchNextPage as xi } from "./lib/allPages.js";
32
+ import { useAllBankAccountsQuery as Si } from "./lib/bank-account/useAllBankAccountsQuery.js";
33
+ import { useAllDebitCardsQuery as Ci } from "./lib/debit-card/useAllDebitCardsQuery.js";
34
+ import { useAllExternalBankAccountsQuery as wi } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
35
+ import { useAllMerchantCategoryGroupsQuery as Ti } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
36
+ import { useAllLedgerAccountsQuery as Ei, useLedgerAccountsQuery as Di } from "./lib/reference-data/useLedgerAccountsQuery.js";
37
+ import { usePaymentTermsQuery as Oi } from "./lib/reference-data/usePaymentTermsQuery.js";
38
+ import { useOrganizationQuery as ki } from "./lib/organization/useOrganizationQuery.js";
39
+ import { useAllOrganizationRolesQuery as Ai } from "./lib/role/useAllOrganizationRolesQuery.js";
40
+ import { useRolePermissionsQueries as ji } from "./lib/role/useRolePermissionsQueries.js";
41
+ import { useAllOrganizationUsersQuery as Mi } from "./lib/user/useAllOrganizationUsersQuery.js";
42
+ import { personDisclosure as Ni } from "./lib/disclosures/personDisclosure.js";
43
+ import { useAcceptWidgetDisclosures as Pi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
44
+ import { useDisclosuresQuery as Fi } from "./lib/disclosures/useDisclosuresQuery.js";
45
+ import { OnboardingSuppressionReason as Ii } from "./lib/onboardingSuppressionReason.js";
46
+ import { useOrganizationOnboardingSuppression as Li } from "./lib/useOrganizationOnboardingSuppression.js";
47
+ import { useOrganizationApplicationStatus as Ri } from "./lib/useOrganizationApplicationStatus.js";
48
+ export { ei as EmbedApiProvider, Ii as OnboardingSuppressionReason, Lr as OrganizationStatus, gi as Scope, Je as activateCreditCardMutation, Ye as activateDebitCardMutation, Vr as applicationStatusInvalidationKey, Hr as applicationStatusQueryOptions, $r as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Wr as cancelAllClients, Zr as cloneEmbeddedClient, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Ur as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, Qr as createEmbeddedClient, i as createLocation, a as createUser, rt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, it as deleteApprovalPoliciesIdMutation, at as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, ot as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, st as deleteReceiptsIdMutation, g as deleteReceivablesId, ct as disableUserMutation, _ as downloadBankAccountTransactions, ii as fetchWidgetInit, vi as getAllPagesNextPageParam, yi as getAllPagesNextPaginationTokenParam, lt as getAnalyticsPayablesOptions, ut as getAnalyticsPayablesQueryKey, dt as getAnalyticsReceiptsOptions, ft as getAnalyticsReceiptsQueryKey, pt as getAnalyticsReceivablesOptions, mt as getAnalyticsReceivablesQueryKey, ht as getAnalyticsTransactionsOptions, gt as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, _t as getApprovalPoliciesOptions, vt as getApprovalPoliciesQueryKey, b as getApprovalRequests, yt as getApprovalRequestsOptions, bt as getApprovalRequestsQueryKey, x as getBankAccountAccess, xt as getBankAccountAccessQueryKey, St as getBankAccountApplicationOptions, Ct as getBankAccountOptions, wt as getBankAccountQueryKey, S as getBankAccountStatement, Tt as getBankAccountStatementsOptions, Et as getBankAccountTransactionsOptions, Dt as getBankAccountTransactionsQueryKey, Ot as getBankAccountsQueryKey, kt as getBankDetailsIdOptions, At as getBankDetailsOptions, jt as getBankDetailsQueryKey, C as getCounterparts, Mt as getCounterpartsIdAddressesOptions, Nt as getCounterpartsIdAddressesQueryKey, Pt as getCounterpartsIdBankAccountsOptions, Ft as getCounterpartsIdBankAccountsQueryKey, It as getCounterpartsIdOptions, Lt as getCounterpartsIdQueryKey, Rt as getCounterpartsOptions, zt as getCounterpartsQueryKey, Bt as getCreditCardByIdOptions, Vt as getCreditCardByIdQueryKey, Ht as getCreditCardsOptions, Ut as getCreditCardsQueryKey, Wt as getDebitCardByIdOptions, Gt as getDebitCardByIdQueryKey, Kt as getDebitCardCredentialsOptions, w as getDebitCardTransactions, qt as getDebitCardTransactionsQueryKey, Jt as getDebitCardsOptions, Yt as getDebitCardsQueryKey, T as getDepartment, Xt as getDepartmentOptions, Zt as getDepartmentQueryKey, E as getDepositableBankAccounts, Qt as getDepositableBankAccountsOptions, $t as getDocumentsIdNextNumbersOptions, en as getDocumentsIdNextNumbersQueryKey, tn as getEntitiesIdPaymentMethodsOptions, nn as getEntitiesIdSettingsOptions, rn as getEntitiesIdSettingsQueryKey, an as getEntityUsersOptions, D as getExternalBankAccountAccess, on as getExternalBankAccountAccessQueryKey, sn as getExternalBankAccountOptions, cn as getExternalBankAccountsOptions, ln as getExternalBankAccountsQueryKey, un as getFilesQueryKey, dn as getLedgerAccountsQueryKey, O as getLocation, fn as getLocationOptions, pn as getLocationQueryKey, mn as getMeOptions, hn as getMeasureUnitsOptions, gn as getMeasureUnitsQueryKey, _n as getOrganizationOptions, vn as getOrganizationTransfersOptions, yn as getOrganizationTransfersQueryKey, bn as getOverdueRemindersOptions, xn as getOverdueRemindersQueryKey, k as getPayables, A as getPayablesId, j as getPayablesIdHistory, Sn as getPayablesIdHistoryOptions, Cn as getPayablesIdHistoryQueryKey, M as getPayablesIdLineItems, wn as getPayablesIdLineItemsOptions, Tn as getPayablesIdLineItemsQueryKey, En as getPayablesIdOptions, Dn as getPayablesIdQueryKey, On as getPayablesIdSuggestionsOptions, kn as getPayablesOptions, An as getPayablesQueryKey, N as getPaymentRecords, jn as getPaymentRecordsOptions, Mn as getPaymentRecordsQueryKey, Nn as getPaymentRemindersOptions, Pn as getPaymentRemindersQueryKey, P as getProducts, Fn as getProductsIdOptions, In as getProductsIdQueryKey, Ln as getProductsOptions, Rn as getProductsQueryKey, F as getReceipts, zn as getReceiptsIdQueryKey, Bn as getReceiptsOptions, Vn as getReceiptsQueryKey, I as getReceivables, L as getReceivablesIdHistory, Hn as getReceivablesIdHistoryQueryKey, Un as getReceivablesIdMailsQueryKey, Wn as getReceivablesIdOptions, Gn as getReceivablesIdPdfLinkOptions, Kn as getReceivablesIdPdfLinkQueryKey, qn as getReceivablesIdQueryKey, Jn as getReceivablesOptions, Yn as getReceivablesQueryKey, Xn as getReceivablesRequiredFieldsOptions, Zn as getRecurrencesIdOptions, Qn as getRecurrencesIdQueryKey, $n as getRecurrencesQueryKey, er as getTransactionsIdExpenseHistoryOptions, tr as getTransactionsIdExpenseHistoryQueryKey, nr as getTransactionsIdOptions, rr as getTransactionsIdQueryKey, ir as getTransactionsOptions, ar as getTransactionsQueryKey, or as getTransactionsValidationsOptions, sr as getTransactionsValidationsQueryKey, R as getUsers, cr as getUsersOptions, lr as getUsersQueryKey, ur as getVelocityControlsQueryKey, dr as grantBankAccountAccessMutation, fr as grantExternalBankAccountAccessMutation, ai as hasAnyScope, Gr as invalidateAllClients, bi as isAllPagesResolving, ui as isApiConflictError, di as isApiForbiddenError, fi as isApiNotFoundError, pi as isApiUnprocessableError, Rr as isOrganizationOnItsWay, _i as isScope, pr as linkExternalBankAccountMutation, z as listDepartments, mr as listDepartmentsOptions, hr as listDepartmentsQueryKey, B as listLocations, gr as listLocationsOptions, _r as listLocationsQueryKey, V as listRoles, vr as listRolesQueryKey, H as manageBankAccountAccess, U as manageDebitCardAccess, yr as manageDebitCardAccessMutation, oi as myEntityInvalidationKey, ni as optionalOrganizationHeaders, ri as organizationHeaders, br as patchApprovalPoliciesIdMutation, W as patchCounterpartsId, G as patchCounterpartsIdAddressesId, K as patchCounterpartsIdBankAccountsId, q as patchEntitiesIdSettings, xr as patchLedgerAccountsIdMutation, J as patchMeasureUnitsId, Y as patchPayablesId, X as patchProductsId, Sr as patchReceiptsIdMutation, Z as patchReceivablesId, Q as patchRecurrencesId, $ as patchTransactionsId, Ni as personDisclosure, Cr as postApprovalPoliciesMutation, ee as postApprovalRequestsIdApprove, te as postApprovalRequestsIdReject, ne as postBankDetails, re as postCounterparts, ie as postCounterpartsIdAddresses, ae as postCounterpartsIdBankAccounts, oe as postFiles, wr as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentRecords, we as postPaymentReminders, Te as postProducts, Tr as postReceiptsUploadFromFileMutation, Ee as postReceivables, De as postReceivablesIdAccept, Oe as postReceivablesIdCancel, ke as postReceivablesIdClone, Ae as postReceivablesIdDecline, je as postReceivablesIdIssue, Me as postReceivablesIdMarkAsPaid, Ne as postReceivablesIdMarkAsUncollectible, Pe as postReceivablesIdSend, Fe as postRecurrences, Ie as postRecurrencesIdCancel, Le as postRecurrencesIdPause, Re as postRecurrencesIdResume, ze as postTransactionsIdApprove, Be as postTransactionsIdReject, Ve as postTransactionsIdReopen, He as postTransactionsIdSubmit, Ue as putEntitiesIdLogo, We as putPayablesIdLineItems, Er as putTransactionsValidationsMutation, Kr as registerQueryClient, qr as removeInactiveFromAllClients, Jr as resetAllClients, Yr as setAllClientsQueriesData, Dr as setDebitCardLockStatusMutation, Or as submitApplicationMutation, kr as unlinkExternalBankAccountMutation, Xr as unregisterQueryClient, Ar as updateApplicationMutation, jr as updateBankAccountMutation, Mr as updateDebitCardMutation, Ge as updateDepartment, Nr as updateExternalBankAccountMutation, Ke as updateLocation, qe as updateUser, Pi as useAcceptWidgetDisclosures, Si as useAllBankAccountsQuery, Ci as useAllDebitCardsQuery, wi as useAllExternalBankAccountsQuery, Ei as useAllLedgerAccountsQuery, Ti as useAllMerchantCategoryGroupsQuery, Ai as useAllOrganizationRolesQuery, Mi as useAllOrganizationUsersQuery, xi as useAutoFetchNextPage, si as useCurrentUserQuery, Fi as useDisclosuresQuery, ti as useEmbedApi, mi as useGetUserDataQuery, Di as useLedgerAccountsQuery, li as useMailboxAddress, ci as useMyEntityQuery, Ri as useOrganizationApplicationStatus, Li as useOrganizationOnboardingSuppression, ki as useOrganizationQuery, Oi as usePaymentTermsQuery, ji as useRolePermissionsQueries, hi as useUpsertUserDataMutation, Pr as validateExternalBankAccountMutation, Fr as verifyDebitCardMutation, Ir as widgetTokenCacheId, zr as withAuthEpoch, Br as withAuthEpochInfinite };
@@ -12,22 +12,26 @@ import { useMemo as s } from "react";
12
12
  import { useInfiniteQuery as c } from "@tanstack/react-query";
13
13
  // ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js
14
14
  var l = 100;
15
- function u({ enabled: u } = {}) {
16
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationStatus: h } = r(), g = i(f), _ = !!(f && p) && (u === !0 || u === void 0), v = t({
17
- client: d,
18
- headers: g,
15
+ function u({ enabled: u, staleTime: d, refetchOnWindowFocus: f, retry: p, retryDelay: m } = {}) {
16
+ let { client: h, organizationId: g, widgetToken: _, authEpoch: v, organizationStatus: y } = r(), b = i(g), x = !!(g && _) && (u === !0 || u === void 0), S = t({
17
+ client: h,
18
+ headers: b,
19
19
  query: { limit: l }
20
- }), y = c({
21
- ...n(v.queryKey, {
22
- authEpoch: m,
23
- organizationStatus: h
20
+ }), C = c({
21
+ ...n(S.queryKey, {
22
+ authEpoch: v,
23
+ organizationStatus: y
24
24
  }, { suffix: ["all"] }),
25
- enabled: _,
25
+ enabled: x,
26
+ ...d === void 0 ? {} : { staleTime: d },
27
+ ...f === void 0 ? {} : { refetchOnWindowFocus: f },
28
+ ...p === void 0 ? {} : { retry: p },
29
+ ...m === void 0 ? {} : { retryDelay: m },
26
30
  initialPageParam: void 0,
27
31
  queryFn: async ({ signal: t, pageParam: n }) => {
28
32
  let { data: r } = await e({
29
- client: d,
30
- headers: g,
33
+ client: h,
34
+ headers: b,
31
35
  query: {
32
36
  limit: l,
33
37
  ...n ? { paginationToken: n } : {}
@@ -39,17 +43,17 @@ function u({ enabled: u } = {}) {
39
43
  },
40
44
  getNextPageParam: a
41
45
  });
42
- o(y, _);
43
- let b = s(() => {
44
- if (y.data) return {
45
- data: y.data.pages.flatMap((e) => e.data ?? []),
46
+ o(C, x);
47
+ let w = s(() => {
48
+ if (C.data) return {
49
+ data: C.data.pages.flatMap((e) => e.data ?? []),
46
50
  nextPaginationToken: null,
47
51
  prevPaginationToken: null
48
52
  };
49
- }, [y.data]);
53
+ }, [C.data]);
50
54
  return {
51
- ...y,
52
- data: b
55
+ ...C,
56
+ data: w
53
57
  };
54
58
  }
55
59
  export { u as useAllDebitCardsQuery };