@tesouro/embedded-components-react 0.5.225 → 0.5.227

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 (142) hide show
  1. package/README.md +21 -21
  2. package/dist/index.d.ts +23 -2
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +23 -2
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
  31. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
  32. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
  35. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
  48. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
  49. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
  51. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  86. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  87. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  88. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  101. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  102. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  103. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
  107. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
  108. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  109. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +210 -199
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  129. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  131. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  132. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  141. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  142. package/package.json +1 -1
@@ -1,46 +1,47 @@
1
1
  import "./lib/finopsApiVersion.js";
2
2
  import "./lib/rest/client.gen.js";
3
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, getUsers as I, listDepartments as L, listLocations as R, listRoles as z, manageBankAccountAccess as B, manageDebitCardAccess as V, patchCounterpartsId as H, patchCounterpartsIdAddressesId as U, patchCounterpartsIdBankAccountsId as W, patchEntitiesIdSettings as G, patchMeasureUnitsId as K, patchPayablesId as q, patchProductsId as J, patchReceivablesId as Y, patchRecurrencesId as X, patchTransactionsId as Z, postApprovalRequestsIdApprove as Q, postApprovalRequestsIdReject as $, postBankDetails as ee, postCounterparts as te, postCounterpartsIdAddresses as ne, postCounterpartsIdBankAccounts as re, postCounterpartsIdBankAccountsIdMakeDefault 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, postPaymentReminders as Se, postProducts as Ce, postReceivables as we, postReceivablesIdAccept as Te, postReceivablesIdCancel as Ee, postReceivablesIdClone as De, postReceivablesIdDecline as Oe, postReceivablesIdIssue as ke, postReceivablesIdMarkAsPaid as Ae, postReceivablesIdMarkAsPartiallyPaid as je, postReceivablesIdMarkAsUncollectible as Me, postReceivablesIdSend as Ne, postRecurrences as Pe, postTransactionsIdApprove as Fe, postTransactionsIdReject as Ie, postTransactionsIdReopen as Le, postTransactionsIdSubmit as Re, putEntitiesIdLogo as ze, putPayablesIdLineItems as Be, updateDepartment as Ve, updateLocation as He, updateUser as Ue } from "./lib/rest/sdk.gen.js";
4
- import { activateCreditCardMutation as We, activateDebitCardMutation as Ge, connectExternalBankAccountMutation as Ke, createAchMoneyMovementMutation as qe, createApplicationMutation as Je, createBankAccountMutation as Ye, createBookTransferMutation as Xe, createCheckDepositMutation as Ze, createDebitCardMutation as Qe, createVelocityControlMutation as $e, deleteApprovalPoliciesIdMutation as et, deleteBankAccountApplicationMutation as tt, deleteLedgerAccountsIdMutation as nt, deleteReceiptsIdMutation as rt, disableUserMutation as it, getAnalyticsPayablesOptions as at, getAnalyticsPayablesQueryKey as ot, getAnalyticsReceiptsOptions as st, getAnalyticsReceiptsQueryKey as ct, getAnalyticsReceivablesOptions as lt, getAnalyticsReceivablesQueryKey as ut, getAnalyticsTransactionsOptions as dt, getAnalyticsTransactionsQueryKey as ft, getApprovalPoliciesOptions as pt, getApprovalPoliciesQueryKey as mt, getApprovalRequestsOptions as ht, getApprovalRequestsQueryKey as gt, getBankAccountAccessQueryKey as _t, getBankAccountApplicationOptions as vt, getBankAccountOptions as yt, getBankAccountQueryKey as bt, getBankAccountStatementsOptions as xt, getBankAccountTransactionsOptions as St, getBankAccountTransactionsQueryKey as Ct, getBankAccountTransfersOptions as wt, getBankAccountTransfersQueryKey as Tt, getBankAccountsQueryKey as Et, getBankDetailsOptions as Dt, getBankDetailsQueryKey as Ot, getCounterpartsIdAddressesOptions as kt, getCounterpartsIdAddressesQueryKey as At, getCounterpartsIdBankAccountsOptions as jt, getCounterpartsIdBankAccountsQueryKey as Mt, getCounterpartsIdOptions as Nt, getCounterpartsIdQueryKey as Pt, getCounterpartsOptions as Ft, getCounterpartsQueryKey as It, getCreditCardByIdOptions as Lt, getCreditCardByIdQueryKey as Rt, getCreditCardsOptions as zt, getCreditCardsQueryKey as Bt, getDebitCardByIdOptions as Vt, getDebitCardByIdQueryKey as Ht, getDebitCardCredentialsOptions as Ut, getDebitCardsOptions as Wt, getDebitCardsQueryKey as Gt, getDepartmentOptions as Kt, getDepartmentQueryKey as qt, getDepositableBankAccountsOptions as Jt, getDocumentsIdNextNumbersOptions as Yt, getDocumentsIdNextNumbersQueryKey as Xt, getEntitiesIdSettingsOptions as Zt, getEntitiesIdSettingsQueryKey as Qt, getEntityUsersMyEntityOptions as $t, getEntityUsersOptions as en, getExternalBankAccountAccessQueryKey as tn, getExternalBankAccountsOptions as nn, getExternalBankAccountsQueryKey as rn, getFilesQueryKey as an, getLedgerAccountsQueryKey as on, getLocationOptions as sn, getLocationQueryKey as cn, getMeasureUnitsOptions as ln, getMeasureUnitsQueryKey as un, getOrganizationOptions as dn, getOverdueRemindersOptions as fn, getOverdueRemindersQueryKey as pn, getPayablesIdHistoryOptions as mn, getPayablesIdHistoryQueryKey as hn, getPayablesIdLineItemsOptions as gn, getPayablesIdLineItemsQueryKey as _n, getPayablesIdOptions as vn, getPayablesIdQueryKey as yn, getPayablesIdSuggestionsOptions as bn, getPayablesOptions as xn, getPayablesQueryKey as Sn, getPaymentRecordsOptions as Cn, getPaymentRecordsQueryKey as wn, getPaymentRemindersOptions as Tn, getPaymentRemindersQueryKey as En, getProductsIdOptions as Dn, getProductsIdQueryKey as On, getProductsOptions as kn, getProductsQueryKey as An, getReceiptsIdQueryKey as jn, getReceiptsOptions as Mn, getReceiptsQueryKey as Nn, getReceivablesIdHistoryOptions as Pn, getReceivablesIdHistoryQueryKey as Fn, getReceivablesIdMailsOptions as In, getReceivablesIdMailsQueryKey as Ln, getReceivablesIdOptions as Rn, getReceivablesIdPdfLinkOptions as zn, getReceivablesIdPdfLinkQueryKey as Bn, getReceivablesIdQueryKey as Vn, getReceivablesOptions as Hn, getReceivablesQueryKey as Un, getRecurrencesIdOptions as Wn, getRecurrencesIdQueryKey as Gn, getRecurrencesQueryKey as Kn, getTransactionsIdExpenseHistoryOptions as qn, getTransactionsIdExpenseHistoryQueryKey as Jn, getTransactionsIdOptions as Yn, getTransactionsIdQueryKey as Xn, getTransactionsOptions as Zn, getTransactionsQueryKey as Qn, getTransactionsValidationsOptions as $n, getTransactionsValidationsQueryKey as er, getUsersOptions as tr, getUsersQueryKey as nr, getVelocityControlsQueryKey as rr, grantBankAccountAccessMutation as ir, grantExternalBankAccountAccessMutation as ar, linkExternalBankAccountMutation as or, listDepartmentsOptions as sr, listDepartmentsQueryKey as cr, listLocationsOptions as lr, listLocationsQueryKey as ur, listRolesQueryKey as dr, manageDebitCardAccessMutation as fr, patchApprovalPoliciesIdMutation as pr, patchLedgerAccountsIdMutation as mr, patchReceiptsIdMutation as hr, postApprovalPoliciesMutation as gr, postLedgerAccountsMutation as _r, postReceiptsUploadFromFileMutation as vr, putTransactionsValidationsMutation as yr, setDebitCardLockStatusMutation as br, submitApplicationMutation as xr, unlinkExternalBankAccountMutation as Sr, updateApplicationMutation as Cr, updateBankAccountMutation as wr, updateDebitCardMutation as Tr, updateExternalBankAccountMutation as Er, validateExternalBankAccountMutation as Dr, verifyDebitCardMutation as Or } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { authEpochPlaceholder as kr, withAuthEpoch as Ar } from "./lib/withAuthEpoch.js";
6
- import { applicationStatusInvalidationKey as jr, applicationStatusQueryOptions as Mr } from "./lib/applicationStatusQueryOptions.js";
7
- import { createClientSecretInstaller as Nr } from "./lib/scopedClientSecret.js";
8
- import { cancelAllClients as Pr, invalidateAllClients as Fr, registerQueryClient as Ir, removeInactiveFromAllClients as Lr, setAllClientsQueriesData as Rr, unregisterQueryClient as zr } from "./lib/clientRegistry.js";
9
- import { cloneEmbeddedClient as Br, createEmbeddedClient as Vr } from "./lib/createEmbeddedClient.js";
4
+ import { activateCreditCardMutation as We, activateDebitCardMutation as Ge, connectExternalBankAccountMutation as Ke, createAchMoneyMovementMutation as qe, createApplicationMutation as Je, createBankAccountMutation as Ye, createBookTransferMutation as Xe, createCheckDepositMutation as Ze, createDebitCardMutation as Qe, createVelocityControlMutation as $e, deleteApprovalPoliciesIdMutation as et, deleteBankAccountApplicationMutation as tt, deleteLedgerAccountsIdMutation as nt, deleteReceiptsIdMutation as rt, disableUserMutation as it, getAnalyticsPayablesOptions as at, getAnalyticsPayablesQueryKey as ot, getAnalyticsReceiptsOptions as st, getAnalyticsReceiptsQueryKey as ct, getAnalyticsReceivablesOptions as lt, getAnalyticsReceivablesQueryKey as ut, getAnalyticsTransactionsOptions as dt, getAnalyticsTransactionsQueryKey as ft, getApprovalPoliciesOptions as pt, getApprovalPoliciesQueryKey as mt, getApprovalRequestsOptions as ht, getApprovalRequestsQueryKey as gt, getBankAccountAccessQueryKey as _t, getBankAccountApplicationOptions as vt, getBankAccountOptions as yt, getBankAccountQueryKey as bt, getBankAccountStatementsOptions as xt, getBankAccountTransactionsOptions as St, getBankAccountTransactionsQueryKey as Ct, getBankAccountTransfersOptions as wt, getBankAccountTransfersQueryKey as Tt, getBankAccountsQueryKey as Et, getBankDetailsOptions as Dt, getBankDetailsQueryKey as Ot, getCounterpartsIdAddressesOptions as kt, getCounterpartsIdAddressesQueryKey as At, getCounterpartsIdBankAccountsOptions as jt, getCounterpartsIdBankAccountsQueryKey as Mt, getCounterpartsIdOptions as Nt, getCounterpartsIdQueryKey as Pt, getCounterpartsOptions as Ft, getCounterpartsQueryKey as It, getCreditCardByIdOptions as Lt, getCreditCardByIdQueryKey as Rt, getCreditCardsOptions as zt, getCreditCardsQueryKey as Bt, getDebitCardByIdOptions as Vt, getDebitCardByIdQueryKey as Ht, getDebitCardCredentialsOptions as Ut, getDebitCardsOptions as Wt, getDebitCardsQueryKey as Gt, getDepartmentOptions as Kt, getDepartmentQueryKey as qt, getDepositableBankAccountsOptions as Jt, getDocumentsIdNextNumbersOptions as Yt, getDocumentsIdNextNumbersQueryKey as Xt, getEntitiesIdSettingsOptions as Zt, getEntitiesIdSettingsQueryKey as Qt, getEntityUsersMyEntityOptions as $t, getEntityUsersOptions as en, getExternalBankAccountAccessQueryKey as tn, getExternalBankAccountsOptions as nn, getExternalBankAccountsQueryKey as rn, getFilesQueryKey as an, getLedgerAccountsQueryKey as on, getLocationOptions as sn, getLocationQueryKey as cn, getMeasureUnitsOptions as ln, getMeasureUnitsQueryKey as un, getOrganizationOptions as dn, getOverdueRemindersOptions as fn, getOverdueRemindersQueryKey as pn, getPayablesIdHistoryOptions as mn, getPayablesIdHistoryQueryKey as hn, getPayablesIdLineItemsOptions as gn, getPayablesIdLineItemsQueryKey as _n, getPayablesIdOptions as vn, getPayablesIdQueryKey as yn, getPayablesIdSuggestionsOptions as bn, getPayablesOptions as xn, getPayablesQueryKey as Sn, getPaymentRecordsOptions as Cn, getPaymentRecordsQueryKey as wn, getPaymentRemindersOptions as Tn, getPaymentRemindersQueryKey as En, getProductsIdOptions as Dn, getProductsIdQueryKey as On, getProductsOptions as kn, getProductsQueryKey as An, getReceiptsIdQueryKey as jn, getReceiptsOptions as Mn, getReceiptsQueryKey as Nn, getReceivablesIdHistoryOptions as Pn, getReceivablesIdHistoryQueryKey as Fn, getReceivablesIdMailsOptions as In, getReceivablesIdMailsQueryKey as Ln, getReceivablesIdOptions as Rn, getReceivablesIdPdfLinkOptions as zn, getReceivablesIdPdfLinkQueryKey as Bn, getReceivablesIdQueryKey as Vn, getReceivablesOptions as Hn, getReceivablesQueryKey as Un, getReceivablesRequiredFieldsOptions as Wn, getRecurrencesIdOptions as Gn, getRecurrencesIdQueryKey as Kn, getRecurrencesQueryKey as qn, getTransactionsIdExpenseHistoryOptions as Jn, getTransactionsIdExpenseHistoryQueryKey as Yn, getTransactionsIdOptions as Xn, getTransactionsIdQueryKey as Zn, getTransactionsOptions as Qn, getTransactionsQueryKey as $n, getTransactionsValidationsOptions as er, getTransactionsValidationsQueryKey as tr, getUsersOptions as nr, getUsersQueryKey as rr, getVelocityControlsQueryKey as ir, grantBankAccountAccessMutation as ar, grantExternalBankAccountAccessMutation as or, linkExternalBankAccountMutation as sr, listDepartmentsOptions as cr, listDepartmentsQueryKey as lr, listLocationsOptions as ur, listLocationsQueryKey as dr, listRolesQueryKey as fr, manageDebitCardAccessMutation as pr, patchApprovalPoliciesIdMutation as mr, patchLedgerAccountsIdMutation as hr, patchReceiptsIdMutation as gr, postApprovalPoliciesMutation as _r, postLedgerAccountsMutation as vr, postReceiptsUploadFromFileMutation as yr, putTransactionsValidationsMutation as br, setDebitCardLockStatusMutation as xr, submitApplicationMutation as Sr, unlinkExternalBankAccountMutation as Cr, updateApplicationMutation as wr, updateBankAccountMutation as Tr, updateDebitCardMutation as Er, updateExternalBankAccountMutation as Dr, validateExternalBankAccountMutation as Or, verifyDebitCardMutation as kr } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { OrganizationStatus as Ar, isOrganizationOnItsWay as jr } from "./lib/organizationStatus.js";
6
+ import { withAuthEpoch as Mr, withAuthEpochInfinite as Nr } from "./lib/withAuthEpoch.js";
7
+ import { applicationStatusInvalidationKey as Pr, applicationStatusQueryOptions as Fr } from "./lib/applicationStatusQueryOptions.js";
8
+ import { createClientSecretInstaller as Ir } from "./lib/scopedClientSecret.js";
9
+ import { cancelAllClients as Lr, invalidateAllClients as Rr, registerQueryClient as zr, removeInactiveFromAllClients as Br, setAllClientsQueriesData as Vr, unregisterQueryClient as Hr } from "./lib/clientRegistry.js";
10
+ import { cloneEmbeddedClient as Ur, createEmbeddedClient as Wr } from "./lib/createEmbeddedClient.js";
10
11
  import "./lib/widgetGatewayHosts.js";
11
- import { attachTransportInterceptors as Hr } from "./lib/transportInterceptors.js";
12
- import { EmbedApiProvider as Ur, useEmbedApi as Wr } from "./lib/EmbedApiContext.js";
13
- import { optionalOrganizationHeaders as Gr, organizationHeaders as Kr } from "./lib/organizationHeaders.js";
14
- import { fetchWidgetInit as qr } from "./lib/fetchWidgetInit.js";
15
- import { hasAnyScope as Jr } from "./lib/hasAnyScope.js";
16
- import { myEntityInvalidationKey as Yr } from "./lib/queryKeys.js";
17
- import { useCurrentUserQuery as Xr } from "./lib/useCurrentUserQuery.js";
18
- import { useMyEntityQuery as Zr } from "./lib/useMyEntityQuery.js";
19
- import { useMailboxAddress as Qr } from "./lib/useMailboxAddress.js";
12
+ import { attachTransportInterceptors as Gr } from "./lib/transportInterceptors.js";
13
+ import { EmbedApiProvider as Kr, useEmbedApi as qr } from "./lib/EmbedApiContext.js";
14
+ import { optionalOrganizationHeaders as Jr, organizationHeaders as Yr } from "./lib/organizationHeaders.js";
15
+ import { fetchWidgetInit as Xr } from "./lib/fetchWidgetInit.js";
16
+ import { hasAnyScope as Zr } from "./lib/hasAnyScope.js";
17
+ import { myEntityInvalidationKey as Qr } from "./lib/queryKeys.js";
18
+ import { useCurrentUserQuery as $r } from "./lib/useCurrentUserQuery.js";
19
+ import { useMyEntityQuery as ei } from "./lib/useMyEntityQuery.js";
20
+ import { useMailboxAddress as ti } from "./lib/useMailboxAddress.js";
20
21
  import "./lib/apiErrorStatus.js";
21
- import { isApiConflictError as $r } from "./lib/isApiConflictError.js";
22
- import { isApiForbiddenError as ei } from "./lib/isApiForbiddenError.js";
23
- import { isApiNotFoundError as ti } from "./lib/isApiNotFoundError.js";
24
- import { isApiUnprocessableError as ni } from "./lib/isApiUnprocessableError.js";
22
+ import { isApiConflictError as ni } from "./lib/isApiConflictError.js";
23
+ import { isApiForbiddenError as ri } from "./lib/isApiForbiddenError.js";
24
+ import { isApiNotFoundError as ii } from "./lib/isApiNotFoundError.js";
25
+ import { isApiUnprocessableError as ai } from "./lib/isApiUnprocessableError.js";
25
26
  import "./lib/isUserDataNotFoundError.js";
26
- import { useGetUserDataQuery as ri } from "./lib/useGetUserDataQuery.js";
27
- import { useUpsertUserDataMutation as ii } from "./lib/useUpsertUserDataMutation.js";
27
+ import { useGetUserDataQuery as oi } from "./lib/useGetUserDataQuery.js";
28
+ import { useUpsertUserDataMutation as si } from "./lib/useUpsertUserDataMutation.js";
28
29
  import "./lib/rest/zod.gen.js";
29
- import { Scope as ai, isScope as oi } from "./lib/scopes.js";
30
- import { getAllPagesNextPageParam as si, getAllPagesNextPaginationTokenParam as ci, isAllPagesResolving as li, useAutoFetchNextPage as ui } from "./lib/allPages.js";
31
- import { useAllBankAccountsQuery as di } from "./lib/bank-account/useAllBankAccountsQuery.js";
32
- import { useAllDebitCardsQuery as fi } from "./lib/debit-card/useAllDebitCardsQuery.js";
33
- import { useAllExternalBankAccountsQuery as pi } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
34
- import { useAllMerchantCategoryGroupsQuery as mi } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
35
- import { useAllLedgerAccountsQuery as hi, useLedgerAccountsQuery as gi } from "./lib/reference-data/useLedgerAccountsQuery.js";
36
- import { usePaymentTermsQuery as _i } from "./lib/reference-data/usePaymentTermsQuery.js";
37
- import { useAllOrganizationRolesQuery as vi } from "./lib/role/useAllOrganizationRolesQuery.js";
38
- import { useRolePermissionsQueries as yi } from "./lib/role/useRolePermissionsQueries.js";
39
- import { useAllOrganizationUsersQuery as bi } from "./lib/user/useAllOrganizationUsersQuery.js";
40
- import { personDisclosure as xi } from "./lib/disclosures/personDisclosure.js";
41
- import { useAcceptWidgetDisclosures as Si } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
42
- import { useDisclosuresQuery as Ci } from "./lib/disclosures/useDisclosuresQuery.js";
43
- import { OnboardingSuppressionReason as wi } from "./lib/onboardingSuppressionReason.js";
44
- import { useOrganizationOnboardingSuppression as Ti } from "./lib/useOrganizationOnboardingSuppression.js";
45
- import { useOrganizationApplicationStatus as Ei } from "./lib/useOrganizationApplicationStatus.js";
46
- export { Ur as EmbedApiProvider, wi as OnboardingSuppressionReason, ai as Scope, We as activateCreditCardMutation, Ge as activateDebitCardMutation, jr as applicationStatusInvalidationKey, Mr as applicationStatusQueryOptions, Hr as attachTransportInterceptors, kr as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Pr as cancelAllClients, Br as cloneEmbeddedClient, Ke as connectExternalBankAccountMutation, qe as createAchMoneyMovementMutation, Je as createApplicationMutation, Ye as createBankAccountMutation, Xe as createBookTransferMutation, Ze as createCheckDepositMutation, Nr as createClientSecretInstaller, Qe as createDebitCardMutation, r as createDepartment, Vr as createEmbeddedClient, i as createLocation, a as createUser, $e as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, et as deleteApprovalPoliciesIdMutation, tt as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, nt as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, rt as deleteReceiptsIdMutation, g as deleteReceivablesId, it as disableUserMutation, _ as downloadBankAccountTransactions, qr as fetchWidgetInit, si as getAllPagesNextPageParam, ci as getAllPagesNextPaginationTokenParam, at as getAnalyticsPayablesOptions, ot as getAnalyticsPayablesQueryKey, st as getAnalyticsReceiptsOptions, ct as getAnalyticsReceiptsQueryKey, lt as getAnalyticsReceivablesOptions, ut as getAnalyticsReceivablesQueryKey, dt as getAnalyticsTransactionsOptions, ft as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, pt as getApprovalPoliciesOptions, mt as getApprovalPoliciesQueryKey, b as getApprovalRequests, ht as getApprovalRequestsOptions, gt as getApprovalRequestsQueryKey, x as getBankAccountAccess, _t as getBankAccountAccessQueryKey, vt as getBankAccountApplicationOptions, yt as getBankAccountOptions, bt as getBankAccountQueryKey, S as getBankAccountStatement, xt as getBankAccountStatementsOptions, St as getBankAccountTransactionsOptions, Ct as getBankAccountTransactionsQueryKey, wt as getBankAccountTransfersOptions, Tt as getBankAccountTransfersQueryKey, Et as getBankAccountsQueryKey, Dt as getBankDetailsOptions, Ot as getBankDetailsQueryKey, C as getCounterparts, kt as getCounterpartsIdAddressesOptions, At as getCounterpartsIdAddressesQueryKey, jt as getCounterpartsIdBankAccountsOptions, Mt as getCounterpartsIdBankAccountsQueryKey, Nt as getCounterpartsIdOptions, Pt as getCounterpartsIdQueryKey, Ft as getCounterpartsOptions, It as getCounterpartsQueryKey, Lt as getCreditCardByIdOptions, Rt as getCreditCardByIdQueryKey, zt as getCreditCardsOptions, Bt as getCreditCardsQueryKey, Vt as getDebitCardByIdOptions, Ht as getDebitCardByIdQueryKey, Ut as getDebitCardCredentialsOptions, Wt as getDebitCardsOptions, Gt as getDebitCardsQueryKey, w as getDepartment, Kt as getDepartmentOptions, qt as getDepartmentQueryKey, T as getDepositableBankAccounts, Jt as getDepositableBankAccountsOptions, Yt as getDocumentsIdNextNumbersOptions, Xt as getDocumentsIdNextNumbersQueryKey, Zt as getEntitiesIdSettingsOptions, Qt as getEntitiesIdSettingsQueryKey, $t as getEntityUsersMyEntityOptions, en as getEntityUsersOptions, E as getExternalBankAccountAccess, tn as getExternalBankAccountAccessQueryKey, nn as getExternalBankAccountsOptions, rn as getExternalBankAccountsQueryKey, an as getFilesQueryKey, on as getLedgerAccountsQueryKey, D as getLocation, sn as getLocationOptions, cn as getLocationQueryKey, ln as getMeasureUnitsOptions, un as getMeasureUnitsQueryKey, dn as getOrganizationOptions, fn as getOverdueRemindersOptions, pn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, mn as getPayablesIdHistoryOptions, hn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, gn as getPayablesIdLineItemsOptions, _n as getPayablesIdLineItemsQueryKey, vn as getPayablesIdOptions, yn as getPayablesIdQueryKey, bn as getPayablesIdSuggestionsOptions, xn as getPayablesOptions, Sn as getPayablesQueryKey, M as getPaymentRecords, Cn as getPaymentRecordsOptions, wn as getPaymentRecordsQueryKey, Tn as getPaymentRemindersOptions, En as getPaymentRemindersQueryKey, N as getProducts, Dn as getProductsIdOptions, On as getProductsIdQueryKey, kn as getProductsOptions, An as getProductsQueryKey, P as getReceipts, jn as getReceiptsIdQueryKey, Mn as getReceiptsOptions, Nn as getReceiptsQueryKey, F as getReceivables, Pn as getReceivablesIdHistoryOptions, Fn as getReceivablesIdHistoryQueryKey, In as getReceivablesIdMailsOptions, Ln as getReceivablesIdMailsQueryKey, Rn as getReceivablesIdOptions, zn as getReceivablesIdPdfLinkOptions, Bn as getReceivablesIdPdfLinkQueryKey, Vn as getReceivablesIdQueryKey, Hn as getReceivablesOptions, Un as getReceivablesQueryKey, Wn as getRecurrencesIdOptions, Gn as getRecurrencesIdQueryKey, Kn as getRecurrencesQueryKey, qn as getTransactionsIdExpenseHistoryOptions, Jn as getTransactionsIdExpenseHistoryQueryKey, Yn as getTransactionsIdOptions, Xn as getTransactionsIdQueryKey, Zn as getTransactionsOptions, Qn as getTransactionsQueryKey, $n as getTransactionsValidationsOptions, er as getTransactionsValidationsQueryKey, I as getUsers, tr as getUsersOptions, nr as getUsersQueryKey, rr as getVelocityControlsQueryKey, ir as grantBankAccountAccessMutation, ar as grantExternalBankAccountAccessMutation, Jr as hasAnyScope, Fr as invalidateAllClients, li as isAllPagesResolving, $r as isApiConflictError, ei as isApiForbiddenError, ti as isApiNotFoundError, ni as isApiUnprocessableError, oi as isScope, or as linkExternalBankAccountMutation, L as listDepartments, sr as listDepartmentsOptions, cr as listDepartmentsQueryKey, R as listLocations, lr as listLocationsOptions, ur as listLocationsQueryKey, z as listRoles, dr as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, fr as manageDebitCardAccessMutation, Yr as myEntityInvalidationKey, Gr as optionalOrganizationHeaders, Kr as organizationHeaders, pr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, mr as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, hr as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchRecurrencesId, Z as patchTransactionsId, xi as personDisclosure, gr as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postBankDetails, te as postCounterparts, ne as postCounterpartsIdAddresses, re as postCounterpartsIdBankAccounts, ie as postCounterpartsIdBankAccountsIdMakeDefault, ae as postFiles, _r 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 postPaymentReminders, Ce as postProducts, vr as postReceiptsUploadFromFileMutation, we as postReceivables, Te as postReceivablesIdAccept, Ee as postReceivablesIdCancel, De as postReceivablesIdClone, Oe as postReceivablesIdDecline, ke as postReceivablesIdIssue, Ae as postReceivablesIdMarkAsPaid, je as postReceivablesIdMarkAsPartiallyPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postTransactionsIdApprove, Ie as postTransactionsIdReject, Le as postTransactionsIdReopen, Re as postTransactionsIdSubmit, ze as putEntitiesIdLogo, Be as putPayablesIdLineItems, yr as putTransactionsValidationsMutation, Ir as registerQueryClient, Lr as removeInactiveFromAllClients, Rr as setAllClientsQueriesData, br as setDebitCardLockStatusMutation, xr as submitApplicationMutation, Sr as unlinkExternalBankAccountMutation, zr as unregisterQueryClient, Cr as updateApplicationMutation, wr as updateBankAccountMutation, Tr as updateDebitCardMutation, Ve as updateDepartment, Er as updateExternalBankAccountMutation, He as updateLocation, Ue as updateUser, Si as useAcceptWidgetDisclosures, di as useAllBankAccountsQuery, fi as useAllDebitCardsQuery, pi as useAllExternalBankAccountsQuery, hi as useAllLedgerAccountsQuery, mi as useAllMerchantCategoryGroupsQuery, vi as useAllOrganizationRolesQuery, bi as useAllOrganizationUsersQuery, ui as useAutoFetchNextPage, Xr as useCurrentUserQuery, Ci as useDisclosuresQuery, Wr as useEmbedApi, ri as useGetUserDataQuery, gi as useLedgerAccountsQuery, Qr as useMailboxAddress, Zr as useMyEntityQuery, Ei as useOrganizationApplicationStatus, Ti as useOrganizationOnboardingSuppression, _i as usePaymentTermsQuery, yi as useRolePermissionsQueries, ii as useUpsertUserDataMutation, Dr as validateExternalBankAccountMutation, Or as verifyDebitCardMutation, Ar as withAuthEpoch };
30
+ import { Scope as ci, isScope as li } from "./lib/scopes.js";
31
+ import { getAllPagesNextPageParam as ui, getAllPagesNextPaginationTokenParam as di, isAllPagesResolving as fi, useAutoFetchNextPage as pi } from "./lib/allPages.js";
32
+ import { useAllBankAccountsQuery as mi } from "./lib/bank-account/useAllBankAccountsQuery.js";
33
+ import { useAllDebitCardsQuery as hi } from "./lib/debit-card/useAllDebitCardsQuery.js";
34
+ import { useAllExternalBankAccountsQuery as gi } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
35
+ import { useAllMerchantCategoryGroupsQuery as _i } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
36
+ import { useAllLedgerAccountsQuery as vi, useLedgerAccountsQuery as yi } from "./lib/reference-data/useLedgerAccountsQuery.js";
37
+ import { usePaymentTermsQuery as bi } from "./lib/reference-data/usePaymentTermsQuery.js";
38
+ import { useAllOrganizationRolesQuery as xi } from "./lib/role/useAllOrganizationRolesQuery.js";
39
+ import { useRolePermissionsQueries as Si } from "./lib/role/useRolePermissionsQueries.js";
40
+ import { useAllOrganizationUsersQuery as Ci } from "./lib/user/useAllOrganizationUsersQuery.js";
41
+ import { personDisclosure as wi } from "./lib/disclosures/personDisclosure.js";
42
+ import { useAcceptWidgetDisclosures as Ti } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
43
+ import { useDisclosuresQuery as Ei } from "./lib/disclosures/useDisclosuresQuery.js";
44
+ import { OnboardingSuppressionReason as Di } from "./lib/onboardingSuppressionReason.js";
45
+ import { useOrganizationOnboardingSuppression as Oi } from "./lib/useOrganizationOnboardingSuppression.js";
46
+ import { useOrganizationApplicationStatus as ki } from "./lib/useOrganizationApplicationStatus.js";
47
+ export { Kr as EmbedApiProvider, Di as OnboardingSuppressionReason, Ar as OrganizationStatus, ci as Scope, We as activateCreditCardMutation, Ge as activateDebitCardMutation, Pr as applicationStatusInvalidationKey, Fr as applicationStatusQueryOptions, Gr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Lr as cancelAllClients, Ur as cloneEmbeddedClient, Ke as connectExternalBankAccountMutation, qe as createAchMoneyMovementMutation, Je as createApplicationMutation, Ye as createBankAccountMutation, Xe as createBookTransferMutation, Ze as createCheckDepositMutation, Ir as createClientSecretInstaller, Qe as createDebitCardMutation, r as createDepartment, Wr as createEmbeddedClient, i as createLocation, a as createUser, $e as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, et as deleteApprovalPoliciesIdMutation, tt as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, nt as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, rt as deleteReceiptsIdMutation, g as deleteReceivablesId, it as disableUserMutation, _ as downloadBankAccountTransactions, Xr as fetchWidgetInit, ui as getAllPagesNextPageParam, di as getAllPagesNextPaginationTokenParam, at as getAnalyticsPayablesOptions, ot as getAnalyticsPayablesQueryKey, st as getAnalyticsReceiptsOptions, ct as getAnalyticsReceiptsQueryKey, lt as getAnalyticsReceivablesOptions, ut as getAnalyticsReceivablesQueryKey, dt as getAnalyticsTransactionsOptions, ft as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, pt as getApprovalPoliciesOptions, mt as getApprovalPoliciesQueryKey, b as getApprovalRequests, ht as getApprovalRequestsOptions, gt as getApprovalRequestsQueryKey, x as getBankAccountAccess, _t as getBankAccountAccessQueryKey, vt as getBankAccountApplicationOptions, yt as getBankAccountOptions, bt as getBankAccountQueryKey, S as getBankAccountStatement, xt as getBankAccountStatementsOptions, St as getBankAccountTransactionsOptions, Ct as getBankAccountTransactionsQueryKey, wt as getBankAccountTransfersOptions, Tt as getBankAccountTransfersQueryKey, Et as getBankAccountsQueryKey, Dt as getBankDetailsOptions, Ot as getBankDetailsQueryKey, C as getCounterparts, kt as getCounterpartsIdAddressesOptions, At as getCounterpartsIdAddressesQueryKey, jt as getCounterpartsIdBankAccountsOptions, Mt as getCounterpartsIdBankAccountsQueryKey, Nt as getCounterpartsIdOptions, Pt as getCounterpartsIdQueryKey, Ft as getCounterpartsOptions, It as getCounterpartsQueryKey, Lt as getCreditCardByIdOptions, Rt as getCreditCardByIdQueryKey, zt as getCreditCardsOptions, Bt as getCreditCardsQueryKey, Vt as getDebitCardByIdOptions, Ht as getDebitCardByIdQueryKey, Ut as getDebitCardCredentialsOptions, Wt as getDebitCardsOptions, Gt as getDebitCardsQueryKey, w as getDepartment, Kt as getDepartmentOptions, qt as getDepartmentQueryKey, T as getDepositableBankAccounts, Jt as getDepositableBankAccountsOptions, Yt as getDocumentsIdNextNumbersOptions, Xt as getDocumentsIdNextNumbersQueryKey, Zt as getEntitiesIdSettingsOptions, Qt as getEntitiesIdSettingsQueryKey, $t as getEntityUsersMyEntityOptions, en as getEntityUsersOptions, E as getExternalBankAccountAccess, tn as getExternalBankAccountAccessQueryKey, nn as getExternalBankAccountsOptions, rn as getExternalBankAccountsQueryKey, an as getFilesQueryKey, on as getLedgerAccountsQueryKey, D as getLocation, sn as getLocationOptions, cn as getLocationQueryKey, ln as getMeasureUnitsOptions, un as getMeasureUnitsQueryKey, dn as getOrganizationOptions, fn as getOverdueRemindersOptions, pn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, mn as getPayablesIdHistoryOptions, hn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, gn as getPayablesIdLineItemsOptions, _n as getPayablesIdLineItemsQueryKey, vn as getPayablesIdOptions, yn as getPayablesIdQueryKey, bn as getPayablesIdSuggestionsOptions, xn as getPayablesOptions, Sn as getPayablesQueryKey, M as getPaymentRecords, Cn as getPaymentRecordsOptions, wn as getPaymentRecordsQueryKey, Tn as getPaymentRemindersOptions, En as getPaymentRemindersQueryKey, N as getProducts, Dn as getProductsIdOptions, On as getProductsIdQueryKey, kn as getProductsOptions, An as getProductsQueryKey, P as getReceipts, jn as getReceiptsIdQueryKey, Mn as getReceiptsOptions, Nn as getReceiptsQueryKey, F as getReceivables, Pn as getReceivablesIdHistoryOptions, Fn as getReceivablesIdHistoryQueryKey, In as getReceivablesIdMailsOptions, Ln as getReceivablesIdMailsQueryKey, Rn as getReceivablesIdOptions, zn as getReceivablesIdPdfLinkOptions, Bn as getReceivablesIdPdfLinkQueryKey, Vn as getReceivablesIdQueryKey, Hn as getReceivablesOptions, Un as getReceivablesQueryKey, Wn as getReceivablesRequiredFieldsOptions, Gn as getRecurrencesIdOptions, Kn as getRecurrencesIdQueryKey, qn as getRecurrencesQueryKey, Jn as getTransactionsIdExpenseHistoryOptions, Yn as getTransactionsIdExpenseHistoryQueryKey, Xn as getTransactionsIdOptions, Zn as getTransactionsIdQueryKey, Qn as getTransactionsOptions, $n as getTransactionsQueryKey, er as getTransactionsValidationsOptions, tr as getTransactionsValidationsQueryKey, I as getUsers, nr as getUsersOptions, rr as getUsersQueryKey, ir as getVelocityControlsQueryKey, ar as grantBankAccountAccessMutation, or as grantExternalBankAccountAccessMutation, Zr as hasAnyScope, Rr as invalidateAllClients, fi as isAllPagesResolving, ni as isApiConflictError, ri as isApiForbiddenError, ii as isApiNotFoundError, ai as isApiUnprocessableError, jr as isOrganizationOnItsWay, li as isScope, sr as linkExternalBankAccountMutation, L as listDepartments, cr as listDepartmentsOptions, lr as listDepartmentsQueryKey, R as listLocations, ur as listLocationsOptions, dr as listLocationsQueryKey, z as listRoles, fr as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, pr as manageDebitCardAccessMutation, Qr as myEntityInvalidationKey, Jr as optionalOrganizationHeaders, Yr as organizationHeaders, mr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, hr as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, gr as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchRecurrencesId, Z as patchTransactionsId, wi as personDisclosure, _r as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postBankDetails, te as postCounterparts, ne as postCounterpartsIdAddresses, re as postCounterpartsIdBankAccounts, ie as postCounterpartsIdBankAccountsIdMakeDefault, ae as postFiles, vr 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 postPaymentReminders, Ce as postProducts, yr as postReceiptsUploadFromFileMutation, we as postReceivables, Te as postReceivablesIdAccept, Ee as postReceivablesIdCancel, De as postReceivablesIdClone, Oe as postReceivablesIdDecline, ke as postReceivablesIdIssue, Ae as postReceivablesIdMarkAsPaid, je as postReceivablesIdMarkAsPartiallyPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postTransactionsIdApprove, Ie as postTransactionsIdReject, Le as postTransactionsIdReopen, Re as postTransactionsIdSubmit, ze as putEntitiesIdLogo, Be as putPayablesIdLineItems, br as putTransactionsValidationsMutation, zr as registerQueryClient, Br as removeInactiveFromAllClients, Vr as setAllClientsQueriesData, xr as setDebitCardLockStatusMutation, Sr as submitApplicationMutation, Cr as unlinkExternalBankAccountMutation, Hr as unregisterQueryClient, wr as updateApplicationMutation, Tr as updateBankAccountMutation, Er as updateDebitCardMutation, Ve as updateDepartment, Dr as updateExternalBankAccountMutation, He as updateLocation, Ue as updateUser, Ti as useAcceptWidgetDisclosures, mi as useAllBankAccountsQuery, hi as useAllDebitCardsQuery, gi as useAllExternalBankAccountsQuery, vi as useAllLedgerAccountsQuery, _i as useAllMerchantCategoryGroupsQuery, xi as useAllOrganizationRolesQuery, Ci as useAllOrganizationUsersQuery, pi as useAutoFetchNextPage, $r as useCurrentUserQuery, Ei as useDisclosuresQuery, qr as useEmbedApi, oi as useGetUserDataQuery, yi as useLedgerAccountsQuery, ti as useMailboxAddress, ei as useMyEntityQuery, ki as useOrganizationApplicationStatus, Oi as useOrganizationOnboardingSuppression, bi as usePaymentTermsQuery, Si as useRolePermissionsQueries, si as useUpsertUserDataMutation, Or as validateExternalBankAccountMutation, kr as verifyDebitCardMutation, Mr as withAuthEpoch, Nr as withAuthEpochInfinite };
@@ -3,37 +3,38 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { client as e } from "./rest/client.gen.js";
6
- import { createContext as t, useContext as n, useMemo as r } from "react";
7
- import { jsx as i } from "react/jsx-runtime";
6
+ import { OrganizationStatus as t } from "./organizationStatus.js";
7
+ import { createContext as n, useContext as r, useMemo as i } from "react";
8
+ import { jsx as a } from "react/jsx-runtime";
8
9
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js
9
- var a = t({
10
+ var o = n({
10
11
  client: e,
11
12
  authEpoch: 0,
12
- organizationPending: !1
13
+ organizationStatus: t.None
13
14
  });
14
- function o({ children: e, client: t, widgetToken: n, organizationId: o, installClientSecret: s, authEpoch: c, organizationPending: l }) {
15
- let u = r(() => ({
15
+ function s({ children: e, client: t, widgetToken: n, organizationId: r, installClientSecret: s, authEpoch: c, organizationStatus: l }) {
16
+ let u = i(() => ({
16
17
  client: t,
17
- organizationId: o,
18
+ organizationId: r,
18
19
  widgetToken: n,
19
20
  installClientSecret: s,
20
21
  authEpoch: c,
21
- organizationPending: l
22
+ organizationStatus: l
22
23
  }), [
23
24
  t,
24
- o,
25
+ r,
25
26
  n,
26
27
  s,
27
28
  c,
28
29
  l
29
30
  ]);
30
- return /* @__PURE__ */ i(a.Provider, {
31
+ return /* @__PURE__ */ a(o.Provider, {
31
32
  value: u,
32
33
  children: e
33
34
  });
34
35
  }
35
- function s() {
36
- return n(a);
36
+ function c() {
37
+ return r(o);
37
38
  }
38
39
  //#endregion
39
- export { o as EmbedApiProvider, s as useEmbedApi };
40
+ export { s as EmbedApiProvider, c as useEmbedApi };
@@ -12,7 +12,7 @@ function t(e) {
12
12
  }
13
13
  var n = t((e) => e.nextPaginationToken), r = t((e) => e.next_pagination_token);
14
14
  function i(e) {
15
- return !e.isError && (e.isLoading || e.isFetchingNextPage || !!e.hasNextPage);
15
+ return !e.isError && (e.isLoading || e.isPlaceholderData || e.isFetchingNextPage || !!e.hasNextPage);
16
16
  }
17
17
  function a(t, n) {
18
18
  e(() => {
@@ -1,28 +1,29 @@
1
1
  import { getApplicationStatusOptions as e } from "./rest/@tanstack/react-query.gen.js";
2
- import { withAuthEpoch as t } from "./withAuthEpoch.js";
3
- import { widgetTokenCacheId as n } from "./widgetTokenCacheId.js";
2
+ import { OrganizationStatus as t } from "./organizationStatus.js";
3
+ import { withAuthEpoch as n } from "./withAuthEpoch.js";
4
+ import { widgetTokenCacheId as r } from "./widgetTokenCacheId.js";
4
5
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js
5
- var r = 1e4;
6
- function i({ client: t }) {
6
+ var i = 1e4;
7
+ function a({ client: t }) {
7
8
  return e({ client: t }).queryKey;
8
9
  }
9
- function a({ client: i, widgetToken: a, authEpoch: o }) {
10
- let { queryFn: s, queryKey: c } = e({ client: i }), { placeholderData: l } = t({ queryKey: c }, {
11
- authEpoch: o,
12
- organizationPending: !1
10
+ function o({ client: a, widgetToken: o, authEpoch: s }) {
11
+ let { queryFn: c, queryKey: l } = e({ client: a }), { placeholderData: u } = n({ queryKey: l }, {
12
+ authEpoch: s,
13
+ organizationStatus: t.Known
13
14
  });
14
15
  return {
15
16
  queryKey: [
16
- c[0],
17
- { authEpoch: o },
18
- { widgetTokenId: n(a) }
17
+ l[0],
18
+ { authEpoch: s },
19
+ { widgetTokenId: r(o) }
19
20
  ],
20
- queryFn: s,
21
- placeholderData: l,
21
+ queryFn: c,
22
+ placeholderData: u,
22
23
  retry: 2,
23
24
  retryDelay: 300,
24
- staleTime: r
25
+ staleTime: i
25
26
  };
26
27
  }
27
28
  //#endregion
28
- export { i as applicationStatusInvalidationKey, a as applicationStatusQueryOptions };
29
+ export { a as applicationStatusInvalidationKey, o as applicationStatusQueryOptions };
@@ -4,7 +4,7 @@
4
4
  "use client";
5
5
  import { getBankAccounts as e } from "../rest/sdk.gen.js";
6
6
  import { getBankAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../organizationHeaders.js";
10
10
  import { getAllPagesNextPageParam as a, useAutoFetchNextPage as o } from "../allPages.js";
@@ -13,13 +13,15 @@ import { useInfiniteQuery as c } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js
14
14
  var l = 100;
15
15
  function u({ enabled: u } = {}) {
16
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationPending: h } = r(), g = i(f), _ = !!(f && p) && (u === !0 || u === void 0), v = [...t({
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
17
  client: d,
18
18
  headers: g,
19
19
  query: { limit: l }
20
- }).queryKey, "all"], y = c({
21
- queryKey: [...v, { authEpoch: m }],
22
- placeholderData: n(v, h),
20
+ }), y = c({
21
+ ...n(v.queryKey, {
22
+ authEpoch: m,
23
+ organizationStatus: h
24
+ }, { suffix: ["all"] }),
23
25
  enabled: _,
24
26
  initialPageParam: void 0,
25
27
  queryFn: async ({ signal: t, pageParam: n }) => {
@@ -4,7 +4,7 @@
4
4
  "use client";
5
5
  import { getDebitCards as e } from "../rest/sdk.gen.js";
6
6
  import { getDebitCardsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../organizationHeaders.js";
10
10
  import { getAllPagesNextPageParam as a, useAutoFetchNextPage as o } from "../allPages.js";
@@ -13,13 +13,15 @@ import { useInfiniteQuery as c } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js
14
14
  var l = 100;
15
15
  function u({ enabled: u } = {}) {
16
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationPending: h } = r(), g = i(f), _ = !!(f && p) && (u === !0 || u === void 0), v = [...t({
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
17
  client: d,
18
18
  headers: g,
19
19
  query: { limit: l }
20
- }).queryKey, "all"], y = c({
21
- queryKey: [...v, { authEpoch: m }],
22
- placeholderData: n(v, h),
20
+ }), y = c({
21
+ ...n(v.queryKey, {
22
+ authEpoch: m,
23
+ organizationStatus: h
24
+ }, { suffix: ["all"] }),
23
25
  enabled: _,
24
26
  initialPageParam: void 0,
25
27
  queryFn: async ({ signal: t, pageParam: n }) => {
@@ -13,7 +13,7 @@ function i(e) {
13
13
  return (t >>> 0).toString(16);
14
14
  }
15
15
  function a({ invitationToken: a, userId: o, enabled: s } = {}) {
16
- let { client: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = a && o ? {
16
+ let { client: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = a && o ? {
17
17
  invitationToken: a,
18
18
  userId: o
19
19
  } : void 0, p = async ({ signal: t }) => {
@@ -35,7 +35,7 @@ function a({ invitationToken: a, userId: o, enabled: s } = {}) {
35
35
  queryFn: p
36
36
  }, {
37
37
  authEpoch: u,
38
- organizationPending: d
38
+ organizationStatus: d
39
39
  });
40
40
  return r({
41
41
  queryKey: h,
@@ -4,7 +4,7 @@
4
4
  "use client";
5
5
  import { getExternalBankAccounts as e } from "../rest/sdk.gen.js";
6
6
  import { getExternalBankAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../EmbedApiContext.js";
9
9
  import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../allPages.js";
10
10
  import { useMemo as o } from "react";
@@ -12,13 +12,15 @@ import { useInfiniteQuery as s } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js
13
13
  var c = 100;
14
14
  function l({ enabled: l } = {}) {
15
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p, organizationPending: m } = r(), h = { "x-organization-id": d ?? "" }, g = !!(d && f) && (l === !0 || l === void 0), _ = [...t({
15
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p, organizationStatus: m } = r(), h = { "x-organization-id": d ?? "" }, g = !!(d && f) && (l === !0 || l === void 0), _ = t({
16
16
  client: u,
17
17
  headers: h,
18
18
  query: { limit: c }
19
- }).queryKey, "all"], v = s({
20
- queryKey: [..._, { authEpoch: p }],
21
- placeholderData: n(_, m),
19
+ }), v = s({
20
+ ...n(_.queryKey, {
21
+ authEpoch: p,
22
+ organizationStatus: m
23
+ }, { suffix: ["all"] }),
22
24
  enabled: g,
23
25
  initialPageParam: void 0,
24
26
  queryFn: async ({ signal: t, pageParam: n }) => {
@@ -4,30 +4,29 @@
4
4
  "use client";
5
5
  import { getMerchantCategoryGroups as e } from "../rest/sdk.gen.js";
6
6
  import { getMerchantCategoryGroupsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n, withAuthEpoch as r } from "../withAuthEpoch.js";
8
- import { useEmbedApi as i } from "../EmbedApiContext.js";
9
- import { organizationHeaders as a } from "../organizationHeaders.js";
10
- import { getAllPagesNextPageParam as o, isAllPagesResolving as s, useAutoFetchNextPage as c } from "../allPages.js";
11
- import { useMemo as l } from "react";
12
- import { useInfiniteQuery as u } from "@tanstack/react-query";
7
+ import { withAuthEpochInfinite as n } from "../withAuthEpoch.js";
8
+ import { useEmbedApi as r } from "../EmbedApiContext.js";
9
+ import { organizationHeaders as i } from "../organizationHeaders.js";
10
+ import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
+ import { useMemo as c } from "react";
12
+ import { useInfiniteQuery as l } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js
14
- function d({ enabled: d } = {}) {
15
- let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationPending: g } = i(), _ = a(p), v = !!(p && m) && (d === !0 || d === void 0), y = t({
16
- client: f,
17
- headers: _,
14
+ function u({ enabled: u } = {}) {
15
+ let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationStatus: h } = r(), g = i(f), _ = !!(f && p) && (u === !0 || u === void 0), v = t({
16
+ client: d,
17
+ headers: g,
18
18
  query: { active: !0 }
19
- }), b = u({
20
- queryKey: [...r(y, {
21
- authEpoch: h,
22
- organizationPending: g
23
- }).queryKey, "all"],
24
- placeholderData: n(y.queryKey, g),
25
- enabled: v,
19
+ }), y = l({
20
+ ...n(v.queryKey, {
21
+ authEpoch: m,
22
+ organizationStatus: h
23
+ }, { suffix: ["all"] }),
24
+ enabled: _,
26
25
  initialPageParam: void 0,
27
26
  queryFn: async ({ signal: t, pageParam: n }) => {
28
27
  let { data: r } = await e({
29
- client: f,
30
- headers: _,
28
+ client: d,
29
+ headers: g,
31
30
  query: {
32
31
  active: !0,
33
32
  ...n ? { pagination_token: n } : {}
@@ -37,21 +36,21 @@ function d({ enabled: d } = {}) {
37
36
  });
38
37
  return r;
39
38
  },
40
- getNextPageParam: o
39
+ getNextPageParam: a
41
40
  });
42
- c(b, v);
43
- let x = l(() => {
44
- if (b.data) return {
45
- data: b.data.pages.flatMap((e) => e.data ?? []),
41
+ s(y, _);
42
+ let b = c(() => {
43
+ if (y.data) return {
44
+ data: y.data.pages.flatMap((e) => e.data ?? []),
46
45
  nextPaginationToken: null,
47
46
  prevPaginationToken: null
48
47
  };
49
- }, [b.data]);
48
+ }, [y.data]);
50
49
  return {
51
- ...b,
52
- data: x,
53
- isResolving: s(b)
50
+ ...y,
51
+ data: b,
52
+ isResolving: o(y)
54
53
  };
55
54
  }
56
55
  //#endregion
57
- export { d as useAllMerchantCategoryGroupsQuery };
56
+ export { u as useAllMerchantCategoryGroupsQuery };
@@ -0,0 +1,10 @@
1
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js
2
+ var e = {
3
+ Known: "known",
4
+ Rotating: "rotating",
5
+ Pending: "pending",
6
+ None: "none",
7
+ Failed: "failed"
8
+ }, t = (t) => t === e.Rotating || t === e.Pending;
9
+ //#endregion
10
+ export { e as OrganizationStatus, t as isOrganizationOnItsWay };
@@ -4,7 +4,7 @@
4
4
  "use client";
5
5
  import { getLedgerAccounts as e } from "../rest/sdk.gen.js";
6
6
  import { getLedgerAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n, withAuthEpoch as r } from "../withAuthEpoch.js";
7
+ import { withAuthEpoch as n, withAuthEpochInfinite as r } from "../withAuthEpoch.js";
8
8
  import { useEmbedApi as i } from "../EmbedApiContext.js";
9
9
  import { organizationHeaders as a } from "../organizationHeaders.js";
10
10
  import { getAllPagesNextPaginationTokenParam as o, isAllPagesResolving as s, useAutoFetchNextPage as c } from "../allPages.js";
@@ -12,37 +12,36 @@ import { useMemo as l } from "react";
12
12
  import { useInfiniteQuery as u, useQuery as d } from "@tanstack/react-query";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js
14
14
  var f = 250;
15
- function p({ enabled: e, ...n } = {}) {
16
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationPending: u } = i(), f = !!(s && c) && (e === !0 || e === void 0), p = t({
15
+ function p({ enabled: e, ...r } = {}) {
16
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = i(), f = !!(s && c) && (e === !0 || e === void 0), p = t({
17
17
  client: o,
18
18
  headers: a(s),
19
- query: n
19
+ query: r
20
20
  });
21
21
  return d({
22
- ...r(p, {
22
+ ...n(p, {
23
23
  authEpoch: l,
24
- organizationPending: u
24
+ organizationStatus: u
25
25
  }),
26
26
  enabled: f
27
27
  });
28
28
  }
29
- function m({ enabled: d } = {}) {
30
- let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationPending: _ } = i(), v = a(m), y = !!(m && h) && (d === !0 || d === void 0), b = t({
31
- client: p,
32
- headers: v,
29
+ function m({ enabled: n } = {}) {
30
+ let { client: d, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = i(), _ = a(p), v = !!(p && m) && (n === !0 || n === void 0), y = t({
31
+ client: d,
32
+ headers: _,
33
33
  query: { limit: f }
34
- }), x = u({
35
- queryKey: [...r(b, {
36
- authEpoch: g,
37
- organizationPending: _
38
- }).queryKey, "all"],
39
- placeholderData: n(b.queryKey, _),
40
- enabled: y,
34
+ }), b = u({
35
+ ...r(y.queryKey, {
36
+ authEpoch: h,
37
+ organizationStatus: g
38
+ }, { suffix: ["all"] }),
39
+ enabled: v,
41
40
  initialPageParam: void 0,
42
41
  queryFn: async ({ signal: t, pageParam: n }) => {
43
42
  let { data: r } = await e({
44
- client: p,
45
- headers: v,
43
+ client: d,
44
+ headers: _,
46
45
  query: {
47
46
  limit: f,
48
47
  ...n ? { pagination_token: n } : {}
@@ -54,18 +53,18 @@ function m({ enabled: d } = {}) {
54
53
  },
55
54
  getNextPageParam: o
56
55
  });
57
- c(x, y);
58
- let S = l(() => {
59
- if (x.data) return {
60
- data: x.data.pages.flatMap((e) => e.data ?? []),
56
+ c(b, v);
57
+ let x = l(() => {
58
+ if (b.data) return {
59
+ data: b.data.pages.flatMap((e) => e.data ?? []),
61
60
  next_pagination_token: void 0,
62
61
  prev_pagination_token: void 0
63
62
  };
64
- }, [x.data]);
63
+ }, [b.data]);
65
64
  return {
66
- ...x,
67
- data: S,
68
- isResolving: s(x)
65
+ ...b,
66
+ data: x,
67
+ isResolving: s(b)
69
68
  };
70
69
  }
71
70
  //#endregion
@@ -9,14 +9,14 @@ import { organizationHeaders as r } from "../organizationHeaders.js";
9
9
  import { useQuery as i } from "@tanstack/react-query";
10
10
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js
11
11
  function a({ enabled: a } = {}) {
12
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationPending: u } = n(), d = !!(s && c) && (a === !0 || a === void 0), f = e({
12
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c) && (a === !0 || a === void 0), f = e({
13
13
  client: o,
14
14
  headers: r(s)
15
15
  });
16
16
  return i({
17
17
  ...t(f, {
18
18
  authEpoch: l,
19
- organizationPending: u
19
+ organizationStatus: u
20
20
  }),
21
21
  enabled: d
22
22
  });