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