@tesouro/embedded-components-react 0.5.176 → 0.5.178

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 (20) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +47 -46
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +36 -35
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +31 -30
  4. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +17 -20
  5. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +28 -30
  6. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +20 -23
  7. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +31 -33
  8. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +29 -31
  9. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +36 -38
  10. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +29 -31
  11. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +36 -38
  12. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -46
  13. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +33 -33
  14. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +27 -29
  15. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -27
  16. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +38 -37
  17. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -30
  18. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -32
  19. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  20. package/package.json +1 -1
@@ -2,41 +2,41 @@ 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, deleteMeasureUnitsId as d, deletePayablesId as f, deletePayablesIdFile as p, deleteProductsId as m, deleteReceivablesId as h, downloadBankAccountTransactions as g, getApplicationStatus as _, getApprovalPolicies as v, getApprovalRequests as y, getBankAccountAccess as b, getBankAccountStatement as x, getCounterparts as S, getDepartment as C, getDepositableBankAccounts as w, getExternalBankAccountAccess as T, getLocation as E, getPayables as D, getPayablesId as O, getPayablesIdHistory as k, getPayablesIdLineItems as A, getPaymentRecords as j, getReceivables as M, getUsers as N, listDepartments as P, listLocations as F, listRoles as I, manageBankAccountAccess as L, patchCounterpartsId as R, patchCounterpartsIdAddressesId as z, patchCounterpartsIdBankAccountsId as B, patchEntitiesIdSettings as V, patchMeasureUnitsId as H, patchPayablesId as U, patchProductsId as W, patchReceivablesId as G, postApprovalRequestsIdApprove as K, postApprovalRequestsIdReject as q, postCounterparts as J, postCounterpartsIdAddresses as Y, postCounterpartsIdBankAccounts as X, postCounterpartsIdBankAccountsIdMakeDefault as Z, postMeasureUnits as Q, postPayables as $, postPayablesIdApprovePaymentOperation as ee, postPayablesIdAttachFile as te, postPayablesIdCancel as ne, postPayablesIdDuplicatesIdConfirm as re, postPayablesIdDuplicatesIdDismiss as ie, postPayablesIdMarkAsPaid as ae, postPayablesIdReject as oe, postPayablesIdReopen as se, postPayablesIdSchedulePayment as ce, postPayablesIdSubmitForApproval as le, postPayablesIdValidate as ue, postPayablesUploadFromFile as de, postPaymentIntentsIdCancel as fe, postProducts as pe, postReceivables as me, postReceivablesIdAccept as he, postReceivablesIdCancel as ge, postReceivablesIdClone as _e, postReceivablesIdDecline as ve, postReceivablesIdIssue as ye, postReceivablesIdMarkAsPaid as be, postReceivablesIdMarkAsPartiallyPaid as xe, postReceivablesIdMarkAsUncollectible as Se, postReceivablesIdSend as Ce, putEntitiesIdLogo as we, putPayablesIdLineItems as Te, updateDepartment as Ee, updateLocation as De, updateUser as Oe } from "./lib/rest/sdk.gen.js";
4
4
  import { activateCreditCardMutation as ke, activateDebitCardMutation as Ae, connectExternalBankAccountMutation as je, createAchMoneyMovementMutation as Me, createApplicationMutation as Ne, createBankAccountMutation as Pe, createBookTransferMutation as Fe, createCheckDepositMutation as Ie, createDebitCardMutation as Le, createVelocityControlMutation as Re, deleteApprovalPoliciesIdMutation as ze, deleteLedgerAccountsIdMutation as Be, deleteReceiptsIdMutation as Ve, disableUserMutation as He, getAnalyticsPayablesOptions as Ue, getAnalyticsPayablesQueryKey as We, getAnalyticsReceivablesOptions as Ge, getApprovalPoliciesOptions as Ke, getApprovalPoliciesQueryKey as qe, getApprovalRequestsOptions as Je, getApprovalRequestsQueryKey as Ye, getBankAccountAccessQueryKey as Xe, getBankAccountApplicationOptions as Ze, getBankAccountOptions as Qe, getBankAccountQueryKey as $e, getBankAccountStatementsOptions as et, getBankAccountTransactionsOptions as tt, getBankAccountTransactionsQueryKey as nt, getBankAccountTransfersOptions as rt, getBankAccountTransfersQueryKey as it, getBankAccountsQueryKey as at, getCounterpartsIdAddressesOptions as ot, getCounterpartsIdAddressesQueryKey as st, getCounterpartsIdBankAccountsOptions as ct, getCounterpartsIdBankAccountsQueryKey as lt, getCounterpartsIdOptions as ut, getCounterpartsIdQueryKey as dt, getCounterpartsOptions as ft, getCounterpartsQueryKey as pt, getCreditCardByIdOptions as mt, getCreditCardByIdQueryKey as ht, getCreditCardsOptions as gt, getCreditCardsQueryKey as _t, getDebitCardByIdOptions as vt, getDebitCardByIdQueryKey as yt, getDebitCardCredentialsOptions as bt, getDebitCardsOptions as xt, getDebitCardsQueryKey as St, getDepartmentOptions as Ct, getDepartmentQueryKey as wt, getDepositableBankAccountsOptions as Tt, getDocumentsIdNextNumbersOptions as Et, getDocumentsIdNextNumbersQueryKey as Dt, getEntitiesIdSettingsOptions as Ot, getEntitiesIdSettingsQueryKey as kt, getEntityUsersMyEntityOptions as At, getEntityUsersMyEntityQueryKey as jt, getExternalBankAccountAccessQueryKey as Mt, getExternalBankAccountsOptions as Nt, getExternalBankAccountsQueryKey as Pt, getLedgerAccountsQueryKey as Ft, getLocationOptions as It, getLocationQueryKey as Lt, getMeasureUnitsOptions as Rt, getMeasureUnitsQueryKey as zt, getOrganizationOptions as Bt, getPayablesIdHistoryOptions as Vt, getPayablesIdHistoryQueryKey as Ht, getPayablesIdLineItemsOptions as Ut, getPayablesIdLineItemsQueryKey as Wt, getPayablesIdOptions as Gt, getPayablesIdQueryKey as Kt, getPayablesIdSuggestionsOptions as qt, getPayablesOptions as Jt, getPayablesQueryKey as Yt, getPaymentRecordsOptions as Xt, getPaymentRecordsQueryKey as Zt, getProductsIdOptions as Qt, getProductsIdQueryKey as $t, getProductsOptions as en, getProductsQueryKey as tn, getReceiptsIdQueryKey as nn, getReceiptsOptions as rn, getReceiptsQueryKey as an, getReceivablesIdHistoryOptions as on, getReceivablesIdHistoryQueryKey as sn, getReceivablesIdMailsOptions as cn, getReceivablesIdMailsQueryKey as ln, getReceivablesIdOptions as un, getReceivablesIdPdfLinkOptions as dn, getReceivablesIdPdfLinkQueryKey as fn, getReceivablesIdQueryKey as pn, getReceivablesOptions as mn, getReceivablesQueryKey as hn, getTransactionsIdQueryKey as gn, getTransactionsOptions as _n, getTransactionsQueryKey as vn, getTransactionsValidationsOptions as yn, getTransactionsValidationsQueryKey as bn, getUsersOptions as xn, getUsersQueryKey as Sn, getVelocityControlsQueryKey as Cn, grantBankAccountAccessMutation as wn, grantExternalBankAccountAccessMutation as Tn, linkExternalBankAccountMutation as En, listDepartmentsOptions as Dn, listDepartmentsQueryKey as On, listLocationsOptions as kn, listLocationsQueryKey as An, listRolesQueryKey as jn, manageDebitCardAccessMutation as Mn, patchApprovalPoliciesIdMutation as Nn, patchLedgerAccountsIdMutation as Pn, patchReceiptsIdMutation as Fn, postApprovalPoliciesMutation as In, postLedgerAccountsMutation as Ln, putTransactionsValidationsMutation as Rn, setDebitCardLockStatusMutation as zn, submitApplicationMutation as Bn, unlinkExternalBankAccountMutation as Vn, updateApplicationMutation as Hn, updateBankAccountMutation as Un, updateDebitCardMutation as Wn, updateExternalBankAccountMutation as Gn, validateExternalBankAccountMutation as Kn, verifyDebitCardMutation as qn } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { withAuthEpoch as Jn } from "./lib/withAuthEpoch.js";
6
- import { applicationStatusInvalidationKey as Yn, applicationStatusQueryOptions as Xn } from "./lib/applicationStatusQueryOptions.js";
7
- import { createClientSecretInstaller as Zn } from "./lib/scopedClientSecret.js";
8
- import { cancelAllClients as Qn, invalidateAllClients as $n, registerQueryClient as er, removeInactiveFromAllClients as tr, setAllClientsQueriesData as nr, unregisterQueryClient as rr } from "./lib/clientRegistry.js";
9
- import { cloneEmbeddedClient as ir, createEmbeddedClient as ar } from "./lib/createEmbeddedClient.js";
5
+ import { authEpochPlaceholder as Jn, withAuthEpoch as Yn } from "./lib/withAuthEpoch.js";
6
+ import { applicationStatusInvalidationKey as Xn, applicationStatusQueryOptions as Zn } from "./lib/applicationStatusQueryOptions.js";
7
+ import { createClientSecretInstaller as Qn } from "./lib/scopedClientSecret.js";
8
+ import { cancelAllClients as $n, invalidateAllClients as er, registerQueryClient as tr, removeInactiveFromAllClients as nr, setAllClientsQueriesData as rr, unregisterQueryClient as ir } from "./lib/clientRegistry.js";
9
+ import { cloneEmbeddedClient as ar, createEmbeddedClient as or } from "./lib/createEmbeddedClient.js";
10
10
  import "./lib/widgetGatewayHosts.js";
11
- import { attachTransportInterceptors as or } from "./lib/transportInterceptors.js";
12
- import { EmbedApiProvider as sr, useEmbedApi as cr } from "./lib/EmbedApiContext.js";
13
- import { optionalOrganizationHeaders as lr, organizationHeaders as ur } from "./lib/organizationHeaders.js";
14
- import { fetchWidgetInit as dr } from "./lib/fetchWidgetInit.js";
15
- import { hasAnyScope as fr } from "./lib/hasAnyScope.js";
11
+ import { attachTransportInterceptors as sr } from "./lib/transportInterceptors.js";
12
+ import { EmbedApiProvider as cr, useEmbedApi as lr } from "./lib/EmbedApiContext.js";
13
+ import { optionalOrganizationHeaders as ur, organizationHeaders as dr } from "./lib/organizationHeaders.js";
14
+ import { fetchWidgetInit as fr } from "./lib/fetchWidgetInit.js";
15
+ import { hasAnyScope as pr } from "./lib/hasAnyScope.js";
16
16
  import "./lib/queryKeys.js";
17
- import { useCurrentUserQuery as pr } from "./lib/useCurrentUserQuery.js";
18
- import { useMailboxAddress as mr } from "./lib/useMailboxAddress.js";
17
+ import { useCurrentUserQuery as mr } from "./lib/useCurrentUserQuery.js";
18
+ import { useMailboxAddress as hr } from "./lib/useMailboxAddress.js";
19
19
  import "./lib/apiErrorStatus.js";
20
- import { isApiConflictError as hr } from "./lib/isApiConflictError.js";
21
- import { isApiForbiddenError as gr } from "./lib/isApiForbiddenError.js";
22
- import { isApiNotFoundError as _r } from "./lib/isApiNotFoundError.js";
23
- import { isApiUnprocessableError as vr } from "./lib/isApiUnprocessableError.js";
20
+ import { isApiConflictError as gr } from "./lib/isApiConflictError.js";
21
+ import { isApiForbiddenError as _r } from "./lib/isApiForbiddenError.js";
22
+ import { isApiNotFoundError as vr } from "./lib/isApiNotFoundError.js";
23
+ import { isApiUnprocessableError as yr } from "./lib/isApiUnprocessableError.js";
24
24
  import "./lib/isUserDataNotFoundError.js";
25
- import { useGetUserDataQuery as yr } from "./lib/useGetUserDataQuery.js";
26
- import { useUpsertUserDataMutation as br } from "./lib/useUpsertUserDataMutation.js";
25
+ import { useGetUserDataQuery as br } from "./lib/useGetUserDataQuery.js";
26
+ import { useUpsertUserDataMutation as xr } from "./lib/useUpsertUserDataMutation.js";
27
27
  import "./lib/rest/zod.gen.js";
28
- import { Scope as xr, isScope as Sr } from "./lib/scopes.js";
29
- import { getAllPagesNextPageParam as Cr, getAllPagesNextPaginationTokenParam as wr, isAllPagesResolving as Tr, useAutoFetchNextPage as Er } from "./lib/allPages.js";
30
- import { useAllBankAccountsQuery as Dr } from "./lib/bank-account/useAllBankAccountsQuery.js";
31
- import { useAllExternalBankAccountsQuery as Or } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
32
- import { useAllMerchantCategoryGroupsQuery as kr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
33
- import { useAllLedgerAccountsQuery as Ar, useLedgerAccountsQuery as jr } from "./lib/reference-data/useLedgerAccountsQuery.js";
34
- import { usePaymentTermsQuery as Mr } from "./lib/reference-data/usePaymentTermsQuery.js";
35
- import { useAllOrganizationRolesQuery as Nr } from "./lib/role/useAllOrganizationRolesQuery.js";
36
- import { useRolePermissionsQueries as Pr } from "./lib/role/useRolePermissionsQueries.js";
37
- import { useAllOrganizationUsersQuery as Fr } from "./lib/user/useAllOrganizationUsersQuery.js";
38
- import { useAcceptWidgetDisclosures as Ir } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
39
- import { useDisclosuresQuery as Lr } from "./lib/disclosures/useDisclosuresQuery.js";
40
- import { OnboardingSuppressionReason as Rr } from "./lib/onboardingSuppressionReason.js";
41
- import { useOrganizationOnboardingSuppression as zr } from "./lib/useOrganizationOnboardingSuppression.js";
42
- export { sr as EmbedApiProvider, Rr as OnboardingSuppressionReason, xr as Scope, ke as activateCreditCardMutation, Ae as activateDebitCardMutation, Yn as applicationStatusInvalidationKey, Xn as applicationStatusQueryOptions, or as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Qn as cancelAllClients, ir as cloneEmbeddedClient, je as connectExternalBankAccountMutation, Me as createAchMoneyMovementMutation, Ne as createApplicationMutation, Pe as createBankAccountMutation, Fe as createBookTransferMutation, Ie as createCheckDepositMutation, Zn as createClientSecretInstaller, Le as createDebitCardMutation, r as createDepartment, ar as createEmbeddedClient, i as createLocation, a as createUser, Re as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, ze as deleteApprovalPoliciesIdMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, Be as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ve as deleteReceiptsIdMutation, h as deleteReceivablesId, He as disableUserMutation, g as downloadBankAccountTransactions, dr as fetchWidgetInit, Cr as getAllPagesNextPageParam, wr as getAllPagesNextPaginationTokenParam, Ue as getAnalyticsPayablesOptions, We as getAnalyticsPayablesQueryKey, Ge as getAnalyticsReceivablesOptions, _ as getApplicationStatus, v as getApprovalPolicies, Ke as getApprovalPoliciesOptions, qe as getApprovalPoliciesQueryKey, y as getApprovalRequests, Je as getApprovalRequestsOptions, Ye as getApprovalRequestsQueryKey, b as getBankAccountAccess, Xe as getBankAccountAccessQueryKey, Ze as getBankAccountApplicationOptions, Qe as getBankAccountOptions, $e as getBankAccountQueryKey, x as getBankAccountStatement, et as getBankAccountStatementsOptions, tt as getBankAccountTransactionsOptions, nt as getBankAccountTransactionsQueryKey, rt as getBankAccountTransfersOptions, it as getBankAccountTransfersQueryKey, at as getBankAccountsQueryKey, S as getCounterparts, ot as getCounterpartsIdAddressesOptions, st as getCounterpartsIdAddressesQueryKey, ct as getCounterpartsIdBankAccountsOptions, lt as getCounterpartsIdBankAccountsQueryKey, ut as getCounterpartsIdOptions, dt as getCounterpartsIdQueryKey, ft as getCounterpartsOptions, pt as getCounterpartsQueryKey, mt as getCreditCardByIdOptions, ht as getCreditCardByIdQueryKey, gt as getCreditCardsOptions, _t as getCreditCardsQueryKey, vt as getDebitCardByIdOptions, yt as getDebitCardByIdQueryKey, bt as getDebitCardCredentialsOptions, xt as getDebitCardsOptions, St as getDebitCardsQueryKey, C as getDepartment, Ct as getDepartmentOptions, wt as getDepartmentQueryKey, w as getDepositableBankAccounts, Tt as getDepositableBankAccountsOptions, Et as getDocumentsIdNextNumbersOptions, Dt as getDocumentsIdNextNumbersQueryKey, Ot as getEntitiesIdSettingsOptions, kt as getEntitiesIdSettingsQueryKey, At as getEntityUsersMyEntityOptions, jt as getEntityUsersMyEntityQueryKey, T as getExternalBankAccountAccess, Mt as getExternalBankAccountAccessQueryKey, Nt as getExternalBankAccountsOptions, Pt as getExternalBankAccountsQueryKey, Ft as getLedgerAccountsQueryKey, E as getLocation, It as getLocationOptions, Lt as getLocationQueryKey, Rt as getMeasureUnitsOptions, zt as getMeasureUnitsQueryKey, Bt as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Vt as getPayablesIdHistoryOptions, Ht as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Ut as getPayablesIdLineItemsOptions, Wt as getPayablesIdLineItemsQueryKey, Gt as getPayablesIdOptions, Kt as getPayablesIdQueryKey, qt as getPayablesIdSuggestionsOptions, Jt as getPayablesOptions, Yt as getPayablesQueryKey, j as getPaymentRecords, Xt as getPaymentRecordsOptions, Zt as getPaymentRecordsQueryKey, Qt as getProductsIdOptions, $t as getProductsIdQueryKey, en as getProductsOptions, tn as getProductsQueryKey, nn as getReceiptsIdQueryKey, rn as getReceiptsOptions, an as getReceiptsQueryKey, M as getReceivables, on as getReceivablesIdHistoryOptions, sn as getReceivablesIdHistoryQueryKey, cn as getReceivablesIdMailsOptions, ln as getReceivablesIdMailsQueryKey, un as getReceivablesIdOptions, dn as getReceivablesIdPdfLinkOptions, fn as getReceivablesIdPdfLinkQueryKey, pn as getReceivablesIdQueryKey, mn as getReceivablesOptions, hn as getReceivablesQueryKey, gn as getTransactionsIdQueryKey, _n as getTransactionsOptions, vn as getTransactionsQueryKey, yn as getTransactionsValidationsOptions, bn as getTransactionsValidationsQueryKey, N as getUsers, xn as getUsersOptions, Sn as getUsersQueryKey, Cn as getVelocityControlsQueryKey, wn as grantBankAccountAccessMutation, Tn as grantExternalBankAccountAccessMutation, fr as hasAnyScope, $n as invalidateAllClients, Tr as isAllPagesResolving, hr as isApiConflictError, gr as isApiForbiddenError, _r as isApiNotFoundError, vr as isApiUnprocessableError, Sr as isScope, En as linkExternalBankAccountMutation, P as listDepartments, Dn as listDepartmentsOptions, On as listDepartmentsQueryKey, F as listLocations, kn as listLocationsOptions, An as listLocationsQueryKey, I as listRoles, jn as listRolesQueryKey, L as manageBankAccountAccess, Mn as manageDebitCardAccessMutation, lr as optionalOrganizationHeaders, ur as organizationHeaders, Nn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, Pn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, Fn as patchReceiptsIdMutation, G as patchReceivablesId, In as postApprovalPoliciesMutation, K as postApprovalRequestsIdApprove, q as postApprovalRequestsIdReject, J as postCounterparts, Y as postCounterpartsIdAddresses, X as postCounterpartsIdBankAccounts, Z as postCounterpartsIdBankAccountsIdMakeDefault, Ln as postLedgerAccountsMutation, Q as postMeasureUnits, $ as postPayables, ee as postPayablesIdApprovePaymentOperation, te as postPayablesIdAttachFile, ne as postPayablesIdCancel, re as postPayablesIdDuplicatesIdConfirm, ie as postPayablesIdDuplicatesIdDismiss, ae as postPayablesIdMarkAsPaid, oe as postPayablesIdReject, se as postPayablesIdReopen, ce as postPayablesIdSchedulePayment, le as postPayablesIdSubmitForApproval, ue as postPayablesIdValidate, de as postPayablesUploadFromFile, fe as postPaymentIntentsIdCancel, pe as postProducts, me as postReceivables, he as postReceivablesIdAccept, ge as postReceivablesIdCancel, _e as postReceivablesIdClone, ve as postReceivablesIdDecline, ye as postReceivablesIdIssue, be as postReceivablesIdMarkAsPaid, xe as postReceivablesIdMarkAsPartiallyPaid, Se as postReceivablesIdMarkAsUncollectible, Ce as postReceivablesIdSend, we as putEntitiesIdLogo, Te as putPayablesIdLineItems, Rn as putTransactionsValidationsMutation, er as registerQueryClient, tr as removeInactiveFromAllClients, nr as setAllClientsQueriesData, zn as setDebitCardLockStatusMutation, Bn as submitApplicationMutation, Vn as unlinkExternalBankAccountMutation, rr as unregisterQueryClient, Hn as updateApplicationMutation, Un as updateBankAccountMutation, Wn as updateDebitCardMutation, Ee as updateDepartment, Gn as updateExternalBankAccountMutation, De as updateLocation, Oe as updateUser, Ir as useAcceptWidgetDisclosures, Dr as useAllBankAccountsQuery, Or as useAllExternalBankAccountsQuery, Ar as useAllLedgerAccountsQuery, kr as useAllMerchantCategoryGroupsQuery, Nr as useAllOrganizationRolesQuery, Fr as useAllOrganizationUsersQuery, Er as useAutoFetchNextPage, pr as useCurrentUserQuery, Lr as useDisclosuresQuery, cr as useEmbedApi, yr as useGetUserDataQuery, jr as useLedgerAccountsQuery, mr as useMailboxAddress, zr as useOrganizationOnboardingSuppression, Mr as usePaymentTermsQuery, Pr as useRolePermissionsQueries, br as useUpsertUserDataMutation, Kn as validateExternalBankAccountMutation, qn as verifyDebitCardMutation, Jn as withAuthEpoch };
28
+ import { Scope as Sr, isScope as Cr } from "./lib/scopes.js";
29
+ import { getAllPagesNextPageParam as wr, getAllPagesNextPaginationTokenParam as Tr, isAllPagesResolving as Er, useAutoFetchNextPage as Dr } from "./lib/allPages.js";
30
+ import { useAllBankAccountsQuery as Or } from "./lib/bank-account/useAllBankAccountsQuery.js";
31
+ import { useAllExternalBankAccountsQuery as kr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
32
+ import { useAllMerchantCategoryGroupsQuery as Ar } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
33
+ import { useAllLedgerAccountsQuery as jr, useLedgerAccountsQuery as Mr } from "./lib/reference-data/useLedgerAccountsQuery.js";
34
+ import { usePaymentTermsQuery as Nr } from "./lib/reference-data/usePaymentTermsQuery.js";
35
+ import { useAllOrganizationRolesQuery as Pr } from "./lib/role/useAllOrganizationRolesQuery.js";
36
+ import { useRolePermissionsQueries as Fr } from "./lib/role/useRolePermissionsQueries.js";
37
+ import { useAllOrganizationUsersQuery as Ir } from "./lib/user/useAllOrganizationUsersQuery.js";
38
+ import { useAcceptWidgetDisclosures as Lr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
39
+ import { useDisclosuresQuery as Rr } from "./lib/disclosures/useDisclosuresQuery.js";
40
+ import { OnboardingSuppressionReason as zr } from "./lib/onboardingSuppressionReason.js";
41
+ import { useOrganizationOnboardingSuppression as Br } from "./lib/useOrganizationOnboardingSuppression.js";
42
+ export { cr as EmbedApiProvider, zr as OnboardingSuppressionReason, Sr as Scope, ke as activateCreditCardMutation, Ae as activateDebitCardMutation, Xn as applicationStatusInvalidationKey, Zn as applicationStatusQueryOptions, sr as attachTransportInterceptors, Jn as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, $n as cancelAllClients, ar as cloneEmbeddedClient, je as connectExternalBankAccountMutation, Me as createAchMoneyMovementMutation, Ne as createApplicationMutation, Pe as createBankAccountMutation, Fe as createBookTransferMutation, Ie as createCheckDepositMutation, Qn as createClientSecretInstaller, Le as createDebitCardMutation, r as createDepartment, or as createEmbeddedClient, i as createLocation, a as createUser, Re as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, ze as deleteApprovalPoliciesIdMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, Be as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ve as deleteReceiptsIdMutation, h as deleteReceivablesId, He as disableUserMutation, g as downloadBankAccountTransactions, fr as fetchWidgetInit, wr as getAllPagesNextPageParam, Tr as getAllPagesNextPaginationTokenParam, Ue as getAnalyticsPayablesOptions, We as getAnalyticsPayablesQueryKey, Ge as getAnalyticsReceivablesOptions, _ as getApplicationStatus, v as getApprovalPolicies, Ke as getApprovalPoliciesOptions, qe as getApprovalPoliciesQueryKey, y as getApprovalRequests, Je as getApprovalRequestsOptions, Ye as getApprovalRequestsQueryKey, b as getBankAccountAccess, Xe as getBankAccountAccessQueryKey, Ze as getBankAccountApplicationOptions, Qe as getBankAccountOptions, $e as getBankAccountQueryKey, x as getBankAccountStatement, et as getBankAccountStatementsOptions, tt as getBankAccountTransactionsOptions, nt as getBankAccountTransactionsQueryKey, rt as getBankAccountTransfersOptions, it as getBankAccountTransfersQueryKey, at as getBankAccountsQueryKey, S as getCounterparts, ot as getCounterpartsIdAddressesOptions, st as getCounterpartsIdAddressesQueryKey, ct as getCounterpartsIdBankAccountsOptions, lt as getCounterpartsIdBankAccountsQueryKey, ut as getCounterpartsIdOptions, dt as getCounterpartsIdQueryKey, ft as getCounterpartsOptions, pt as getCounterpartsQueryKey, mt as getCreditCardByIdOptions, ht as getCreditCardByIdQueryKey, gt as getCreditCardsOptions, _t as getCreditCardsQueryKey, vt as getDebitCardByIdOptions, yt as getDebitCardByIdQueryKey, bt as getDebitCardCredentialsOptions, xt as getDebitCardsOptions, St as getDebitCardsQueryKey, C as getDepartment, Ct as getDepartmentOptions, wt as getDepartmentQueryKey, w as getDepositableBankAccounts, Tt as getDepositableBankAccountsOptions, Et as getDocumentsIdNextNumbersOptions, Dt as getDocumentsIdNextNumbersQueryKey, Ot as getEntitiesIdSettingsOptions, kt as getEntitiesIdSettingsQueryKey, At as getEntityUsersMyEntityOptions, jt as getEntityUsersMyEntityQueryKey, T as getExternalBankAccountAccess, Mt as getExternalBankAccountAccessQueryKey, Nt as getExternalBankAccountsOptions, Pt as getExternalBankAccountsQueryKey, Ft as getLedgerAccountsQueryKey, E as getLocation, It as getLocationOptions, Lt as getLocationQueryKey, Rt as getMeasureUnitsOptions, zt as getMeasureUnitsQueryKey, Bt as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Vt as getPayablesIdHistoryOptions, Ht as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Ut as getPayablesIdLineItemsOptions, Wt as getPayablesIdLineItemsQueryKey, Gt as getPayablesIdOptions, Kt as getPayablesIdQueryKey, qt as getPayablesIdSuggestionsOptions, Jt as getPayablesOptions, Yt as getPayablesQueryKey, j as getPaymentRecords, Xt as getPaymentRecordsOptions, Zt as getPaymentRecordsQueryKey, Qt as getProductsIdOptions, $t as getProductsIdQueryKey, en as getProductsOptions, tn as getProductsQueryKey, nn as getReceiptsIdQueryKey, rn as getReceiptsOptions, an as getReceiptsQueryKey, M as getReceivables, on as getReceivablesIdHistoryOptions, sn as getReceivablesIdHistoryQueryKey, cn as getReceivablesIdMailsOptions, ln as getReceivablesIdMailsQueryKey, un as getReceivablesIdOptions, dn as getReceivablesIdPdfLinkOptions, fn as getReceivablesIdPdfLinkQueryKey, pn as getReceivablesIdQueryKey, mn as getReceivablesOptions, hn as getReceivablesQueryKey, gn as getTransactionsIdQueryKey, _n as getTransactionsOptions, vn as getTransactionsQueryKey, yn as getTransactionsValidationsOptions, bn as getTransactionsValidationsQueryKey, N as getUsers, xn as getUsersOptions, Sn as getUsersQueryKey, Cn as getVelocityControlsQueryKey, wn as grantBankAccountAccessMutation, Tn as grantExternalBankAccountAccessMutation, pr as hasAnyScope, er as invalidateAllClients, Er as isAllPagesResolving, gr as isApiConflictError, _r as isApiForbiddenError, vr as isApiNotFoundError, yr as isApiUnprocessableError, Cr as isScope, En as linkExternalBankAccountMutation, P as listDepartments, Dn as listDepartmentsOptions, On as listDepartmentsQueryKey, F as listLocations, kn as listLocationsOptions, An as listLocationsQueryKey, I as listRoles, jn as listRolesQueryKey, L as manageBankAccountAccess, Mn as manageDebitCardAccessMutation, ur as optionalOrganizationHeaders, dr as organizationHeaders, Nn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, Pn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, Fn as patchReceiptsIdMutation, G as patchReceivablesId, In as postApprovalPoliciesMutation, K as postApprovalRequestsIdApprove, q as postApprovalRequestsIdReject, J as postCounterparts, Y as postCounterpartsIdAddresses, X as postCounterpartsIdBankAccounts, Z as postCounterpartsIdBankAccountsIdMakeDefault, Ln as postLedgerAccountsMutation, Q as postMeasureUnits, $ as postPayables, ee as postPayablesIdApprovePaymentOperation, te as postPayablesIdAttachFile, ne as postPayablesIdCancel, re as postPayablesIdDuplicatesIdConfirm, ie as postPayablesIdDuplicatesIdDismiss, ae as postPayablesIdMarkAsPaid, oe as postPayablesIdReject, se as postPayablesIdReopen, ce as postPayablesIdSchedulePayment, le as postPayablesIdSubmitForApproval, ue as postPayablesIdValidate, de as postPayablesUploadFromFile, fe as postPaymentIntentsIdCancel, pe as postProducts, me as postReceivables, he as postReceivablesIdAccept, ge as postReceivablesIdCancel, _e as postReceivablesIdClone, ve as postReceivablesIdDecline, ye as postReceivablesIdIssue, be as postReceivablesIdMarkAsPaid, xe as postReceivablesIdMarkAsPartiallyPaid, Se as postReceivablesIdMarkAsUncollectible, Ce as postReceivablesIdSend, we as putEntitiesIdLogo, Te as putPayablesIdLineItems, Rn as putTransactionsValidationsMutation, tr as registerQueryClient, nr as removeInactiveFromAllClients, rr as setAllClientsQueriesData, zn as setDebitCardLockStatusMutation, Bn as submitApplicationMutation, Vn as unlinkExternalBankAccountMutation, ir as unregisterQueryClient, Hn as updateApplicationMutation, Un as updateBankAccountMutation, Wn as updateDebitCardMutation, Ee as updateDepartment, Gn as updateExternalBankAccountMutation, De as updateLocation, Oe as updateUser, Lr as useAcceptWidgetDisclosures, Or as useAllBankAccountsQuery, kr as useAllExternalBankAccountsQuery, jr as useAllLedgerAccountsQuery, Ar as useAllMerchantCategoryGroupsQuery, Pr as useAllOrganizationRolesQuery, Ir as useAllOrganizationUsersQuery, Dr as useAutoFetchNextPage, mr as useCurrentUserQuery, Rr as useDisclosuresQuery, lr as useEmbedApi, br as useGetUserDataQuery, Mr as useLedgerAccountsQuery, hr as useMailboxAddress, Br as useOrganizationOnboardingSuppression, Nr as usePaymentTermsQuery, Fr as useRolePermissionsQueries, xr as useUpsertUserDataMutation, Kn as validateExternalBankAccountMutation, qn as verifyDebitCardMutation, Yn as withAuthEpoch };
@@ -4,31 +4,29 @@
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 { useEmbedApi as n } from "../EmbedApiContext.js";
8
- import { getAllPagesNextPageParam as r, useAutoFetchNextPage as i } from "../allPages.js";
9
- import { useMemo as a } from "react";
10
- import { useInfiniteQuery as o } from "@tanstack/react-query";
7
+ import { authEpochPlaceholder as n } from "../withAuthEpoch.js";
8
+ import { useEmbedApi as r } from "../EmbedApiContext.js";
9
+ import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../allPages.js";
10
+ import { useMemo as o } from "react";
11
+ import { useInfiniteQuery as s } from "@tanstack/react-query";
11
12
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js
12
- var s = 100;
13
- function c({ enabled: c } = {}) {
14
- let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = n(), p = { "x-organization-id": u ?? "" }, m = !!(u && d) && (c === !0 || c === void 0), h = t({
15
- client: l,
16
- headers: p,
17
- query: { limit: s }
18
- }), g = o({
19
- queryKey: [
20
- ...h.queryKey,
21
- "all",
22
- { authEpoch: f }
23
- ],
24
- enabled: m,
13
+ var c = 100;
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({
16
+ client: u,
17
+ headers: h,
18
+ query: { limit: c }
19
+ }).queryKey, "all"], v = s({
20
+ queryKey: [..._, { authEpoch: p }],
21
+ placeholderData: n(_, m),
22
+ enabled: g,
25
23
  initialPageParam: void 0,
26
24
  queryFn: async ({ signal: t, pageParam: n }) => {
27
25
  let { data: r } = await e({
28
- client: l,
29
- headers: p,
26
+ client: u,
27
+ headers: h,
30
28
  query: {
31
- limit: s,
29
+ limit: c,
32
30
  ...n ? { pagination_token: n } : {}
33
31
  },
34
32
  signal: t,
@@ -36,20 +34,20 @@ function c({ enabled: c } = {}) {
36
34
  });
37
35
  return r;
38
36
  },
39
- getNextPageParam: r
37
+ getNextPageParam: i
40
38
  });
41
- i(g, m);
42
- let _ = a(() => {
43
- if (g.data) return {
44
- data: g.data.pages.flatMap((e) => e.data ?? []),
39
+ a(v, g);
40
+ let y = o(() => {
41
+ if (v.data) return {
42
+ data: v.data.pages.flatMap((e) => e.data ?? []),
45
43
  nextPaginationToken: null,
46
44
  prevPaginationToken: null
47
45
  };
48
- }, [g.data]);
46
+ }, [v.data]);
49
47
  return {
50
- ...g,
51
- data: _
48
+ ...v,
49
+ data: y
52
50
  };
53
51
  }
54
52
  //#endregion
55
- export { c as useAllExternalBankAccountsQuery };
53
+ export { l as useAllExternalBankAccountsQuery };
@@ -4,29 +4,30 @@
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 { withAuthEpoch 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";
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";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js
14
- function u({ enabled: u } = {}) {
15
- 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
- client: d,
17
- headers: g,
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: _,
18
18
  query: { active: !0 }
19
- }), y = l({
20
- queryKey: [...n(v, {
21
- authEpoch: m,
22
- organizationPending: h
19
+ }), b = u({
20
+ queryKey: [...r(y, {
21
+ authEpoch: h,
22
+ organizationPending: g
23
23
  }).queryKey, "all"],
24
- enabled: _,
24
+ placeholderData: n(y.queryKey, g),
25
+ enabled: v,
25
26
  initialPageParam: void 0,
26
27
  queryFn: async ({ signal: t, pageParam: n }) => {
27
28
  let { data: r } = await e({
28
- client: d,
29
- headers: g,
29
+ client: f,
30
+ headers: _,
30
31
  query: {
31
32
  active: !0,
32
33
  ...n ? { pagination_token: n } : {}
@@ -36,21 +37,21 @@ function u({ enabled: u } = {}) {
36
37
  });
37
38
  return r;
38
39
  },
39
- getNextPageParam: a
40
+ getNextPageParam: o
40
41
  });
41
- s(y, _);
42
- let b = c(() => {
43
- if (y.data) return {
44
- data: y.data.pages.flatMap((e) => e.data ?? []),
42
+ c(b, v);
43
+ let x = l(() => {
44
+ if (b.data) return {
45
+ data: b.data.pages.flatMap((e) => e.data ?? []),
45
46
  nextPaginationToken: null,
46
47
  prevPaginationToken: null
47
48
  };
48
- }, [y.data]);
49
+ }, [b.data]);
49
50
  return {
50
- ...y,
51
- data: b,
52
- isResolving: o(y)
51
+ ...b,
52
+ data: x,
53
+ isResolving: s(b)
53
54
  };
54
55
  }
55
56
  //#endregion
56
- export { u as useAllMerchantCategoryGroupsQuery };
57
+ export { d as useAllMerchantCategoryGroupsQuery };
@@ -4,46 +4,47 @@
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 { withAuthEpoch as n } from "../withAuthEpoch.js";
8
- import { useEmbedApi as r } from "../EmbedApiContext.js";
9
- import { organizationHeaders as i } from "../organizationHeaders.js";
10
- import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
11
- import { useMemo as c } from "react";
12
- import { useInfiniteQuery as l, useQuery as u } from "@tanstack/react-query";
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 { getAllPagesNextPaginationTokenParam as o, isAllPagesResolving as s, useAutoFetchNextPage as c } from "../allPages.js";
11
+ import { useMemo as l } from "react";
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
- var d = 250;
15
- function f({ enabled: e, ...a } = {}) {
16
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationPending: d } = r(), f = !!(s && c) && (e === !0 || e === void 0), p = t({
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({
17
17
  client: o,
18
- headers: i(s),
19
- query: a
18
+ headers: a(s),
19
+ query: n
20
20
  });
21
- return u({
22
- ...n(p, {
21
+ return d({
22
+ ...r(p, {
23
23
  authEpoch: l,
24
- organizationPending: d
24
+ organizationPending: u
25
25
  }),
26
26
  enabled: f
27
27
  });
28
28
  }
29
- function p({ enabled: u } = {}) {
30
- let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationPending: g } = r(), _ = i(p), v = !!(p && m) && (u === !0 || u === void 0), y = t({
31
- client: f,
32
- headers: _,
33
- query: { limit: d }
34
- }), b = l({
35
- queryKey: [...n(y, {
36
- authEpoch: h,
37
- organizationPending: g
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,
33
+ query: { limit: f }
34
+ }), x = u({
35
+ queryKey: [...r(b, {
36
+ authEpoch: g,
37
+ organizationPending: _
38
38
  }).queryKey, "all"],
39
- enabled: v,
39
+ placeholderData: n(b.queryKey, _),
40
+ enabled: y,
40
41
  initialPageParam: void 0,
41
42
  queryFn: async ({ signal: t, pageParam: n }) => {
42
43
  let { data: r } = await e({
43
- client: f,
44
- headers: _,
44
+ client: p,
45
+ headers: v,
45
46
  query: {
46
- limit: d,
47
+ limit: f,
47
48
  ...n ? { pagination_token: n } : {}
48
49
  },
49
50
  signal: t,
@@ -51,21 +52,21 @@ function p({ enabled: u } = {}) {
51
52
  });
52
53
  return r;
53
54
  },
54
- getNextPageParam: a
55
+ getNextPageParam: o
55
56
  });
56
- s(b, v);
57
- let x = c(() => {
58
- if (b.data) return {
59
- data: b.data.pages.flatMap((e) => e.data ?? []),
57
+ c(x, y);
58
+ let S = l(() => {
59
+ if (x.data) return {
60
+ data: x.data.pages.flatMap((e) => e.data ?? []),
60
61
  next_pagination_token: void 0,
61
62
  prev_pagination_token: void 0
62
63
  };
63
- }, [b.data]);
64
+ }, [x.data]);
64
65
  return {
65
- ...b,
66
- data: x,
67
- isResolving: o(b)
66
+ ...x,
67
+ data: S,
68
+ isResolving: s(x)
68
69
  };
69
70
  }
70
71
  //#endregion
71
- export { p as useAllLedgerAccountsQuery, f as useLedgerAccountsQuery };
72
+ export { m as useAllLedgerAccountsQuery, p as useLedgerAccountsQuery };
@@ -4,32 +4,33 @@
4
4
  "use client";
5
5
  import { listRoles as e } from "../rest/sdk.gen.js";
6
6
  import { listRolesOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch 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";
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";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js
14
- var u = 100;
15
- function d({ enabled: d } = {}) {
16
- let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationPending: g } = r(), _ = i(p), v = !!(p && m) && (d === !0 || d === void 0), y = t({
17
- client: f,
18
- headers: _,
19
- query: { limit: u }
20
- }), b = l({
21
- queryKey: [...n(y, {
22
- authEpoch: h,
23
- organizationPending: g
14
+ var d = 100;
15
+ function f({ enabled: f } = {}) {
16
+ let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationPending: _ } = i(), v = a(m), y = !!(m && h) && (f === !0 || f === void 0), b = t({
17
+ client: p,
18
+ headers: v,
19
+ query: { limit: d }
20
+ }), x = u({
21
+ queryKey: [...r(b, {
22
+ authEpoch: g,
23
+ organizationPending: _
24
24
  }).queryKey, "all"],
25
- enabled: v,
25
+ placeholderData: n(b.queryKey, _),
26
+ enabled: y,
26
27
  initialPageParam: void 0,
27
28
  queryFn: async ({ signal: t, pageParam: n }) => {
28
29
  let { data: r } = await e({
29
- client: f,
30
- headers: _,
30
+ client: p,
31
+ headers: v,
31
32
  query: {
32
- limit: u,
33
+ limit: d,
33
34
  ...n ? { paginationToken: n } : {}
34
35
  },
35
36
  signal: t,
@@ -37,21 +38,21 @@ function d({ enabled: d } = {}) {
37
38
  });
38
39
  return r;
39
40
  },
40
- getNextPageParam: a
41
+ getNextPageParam: o
41
42
  });
42
- s(b, v);
43
- let x = c(() => {
44
- if (b.data) return {
45
- data: b.data.pages.flatMap((e) => e.data ?? []),
43
+ c(x, y);
44
+ let S = l(() => {
45
+ if (x.data) return {
46
+ data: x.data.pages.flatMap((e) => e.data ?? []),
46
47
  nextPaginationToken: null,
47
48
  prevPaginationToken: null
48
49
  };
49
- }, [b.data]);
50
+ }, [x.data]);
50
51
  return {
51
- ...b,
52
- data: x,
53
- isResolving: o(b)
52
+ ...x,
53
+ data: S,
54
+ isResolving: s(x)
54
55
  };
55
56
  }
56
57
  //#endregion
57
- export { d as useAllOrganizationRolesQuery };
58
+ export { f as useAllOrganizationRolesQuery };
@@ -4,38 +4,39 @@
4
4
  "use client";
5
5
  import { getUsers as e } from "../rest/sdk.gen.js";
6
6
  import { getUsersOptions as t } from "../rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch 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";
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";
13
13
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js
14
- var u = 100;
15
- function d({ enabled: d, permissions: f } = {}) {
16
- let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationPending: _ } = r(), v = i(m), y = !!(m && h) && (d === !0 || d === void 0), b = f?.length ? { Permissions: f } : {}, x = t({
17
- client: p,
18
- headers: v,
14
+ var d = 100;
15
+ function f({ enabled: f, permissions: p } = {}) {
16
+ let { client: m, organizationId: h, widgetToken: g, authEpoch: _, organizationPending: v } = i(), y = a(h), b = !!(h && g) && (f === !0 || f === void 0), x = p?.length ? { Permissions: p } : {}, S = t({
17
+ client: m,
18
+ headers: y,
19
19
  query: {
20
20
  Status: "ACTIVE",
21
- Limit: u,
22
- ...b
21
+ Limit: d,
22
+ ...x
23
23
  }
24
- }), S = l({
25
- queryKey: [...n(x, {
26
- authEpoch: g,
27
- organizationPending: _
24
+ }), C = u({
25
+ queryKey: [...r(S, {
26
+ authEpoch: _,
27
+ organizationPending: v
28
28
  }).queryKey, "all"],
29
- enabled: y,
29
+ placeholderData: n(S.queryKey, v),
30
+ enabled: b,
30
31
  initialPageParam: void 0,
31
32
  queryFn: async ({ signal: t, pageParam: n }) => {
32
33
  let { data: r } = await e({
33
- client: p,
34
- headers: v,
34
+ client: m,
35
+ headers: y,
35
36
  query: {
36
37
  Status: "ACTIVE",
37
- Limit: u,
38
- ...b,
38
+ Limit: d,
39
+ ...x,
39
40
  ...n ? { PaginationToken: n } : {}
40
41
  },
41
42
  signal: t,
@@ -43,21 +44,21 @@ function d({ enabled: d, permissions: f } = {}) {
43
44
  });
44
45
  return r;
45
46
  },
46
- getNextPageParam: a
47
+ getNextPageParam: o
47
48
  });
48
- s(S, y);
49
- let C = c(() => {
50
- if (S.data) return {
51
- data: S.data.pages.flatMap((e) => e.data ?? []),
49
+ c(C, b);
50
+ let w = l(() => {
51
+ if (C.data) return {
52
+ data: C.data.pages.flatMap((e) => e.data ?? []),
52
53
  nextPaginationToken: null,
53
54
  prevPaginationToken: null
54
55
  };
55
- }, [S.data]);
56
+ }, [C.data]);
56
57
  return {
57
- ...S,
58
- data: C,
59
- isResolving: o(S)
58
+ ...C,
59
+ data: w,
60
+ isResolving: s(C)
60
61
  };
61
62
  }
62
63
  //#endregion
63
- export { d as useAllOrganizationUsersQuery };
64
+ export { f as useAllOrganizationUsersQuery };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.176", n = "930dbd2a37d259ddf20680365bf48c60ba80ae85", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.178", n = "5d793c5758f8d060bb7ae4de4028d84f676cffc4", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.176",
3
+ "version": "0.5.178",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {