@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.
- package/README.md +21 -21
- package/dist/index.d.ts +23 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +23 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +210 -199
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
- 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/product-catalog/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
- 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,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
|
12
|
-
import { EmbedApiProvider as
|
|
13
|
-
import { optionalOrganizationHeaders as
|
|
14
|
-
import { fetchWidgetInit as
|
|
15
|
-
import { hasAnyScope as
|
|
16
|
-
import { myEntityInvalidationKey as
|
|
17
|
-
import { useCurrentUserQuery as
|
|
18
|
-
import { useMyEntityQuery as
|
|
19
|
-
import { useMailboxAddress as
|
|
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
|
|
22
|
-
import { isApiForbiddenError as
|
|
23
|
-
import { isApiNotFoundError as
|
|
24
|
-
import { isApiUnprocessableError as
|
|
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
|
|
27
|
-
import { useUpsertUserDataMutation as
|
|
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
|
|
30
|
-
import { getAllPagesNextPageParam as
|
|
31
|
-
import { useAllBankAccountsQuery as
|
|
32
|
-
import { useAllDebitCardsQuery as
|
|
33
|
-
import { useAllExternalBankAccountsQuery as
|
|
34
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
35
|
-
import { useAllLedgerAccountsQuery as
|
|
36
|
-
import { usePaymentTermsQuery as
|
|
37
|
-
import { useAllOrganizationRolesQuery as
|
|
38
|
-
import { useRolePermissionsQueries as
|
|
39
|
-
import { useAllOrganizationUsersQuery as
|
|
40
|
-
import { personDisclosure as
|
|
41
|
-
import { useAcceptWidgetDisclosures as
|
|
42
|
-
import { useDisclosuresQuery as
|
|
43
|
-
import { OnboardingSuppressionReason as
|
|
44
|
-
import { useOrganizationOnboardingSuppression as
|
|
45
|
-
import { useOrganizationApplicationStatus as
|
|
46
|
-
export {
|
|
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 };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js
CHANGED
|
@@ -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 {
|
|
7
|
-
import {
|
|
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
|
|
10
|
+
var o = n({
|
|
10
11
|
client: e,
|
|
11
12
|
authEpoch: 0,
|
|
12
|
-
|
|
13
|
+
organizationStatus: t.None
|
|
13
14
|
});
|
|
14
|
-
function
|
|
15
|
-
let u =
|
|
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:
|
|
18
|
+
organizationId: r,
|
|
18
19
|
widgetToken: n,
|
|
19
20
|
installClientSecret: s,
|
|
20
21
|
authEpoch: c,
|
|
21
|
-
|
|
22
|
+
organizationStatus: l
|
|
22
23
|
}), [
|
|
23
24
|
t,
|
|
24
|
-
|
|
25
|
+
r,
|
|
25
26
|
n,
|
|
26
27
|
s,
|
|
27
28
|
c,
|
|
28
29
|
l
|
|
29
30
|
]);
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ a(o.Provider, {
|
|
31
32
|
value: u,
|
|
32
33
|
children: e
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
36
|
+
function c() {
|
|
37
|
+
return r(o);
|
|
37
38
|
}
|
|
38
39
|
//#endregion
|
|
39
|
-
export {
|
|
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 {
|
|
3
|
-
import {
|
|
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
|
|
6
|
-
function
|
|
6
|
+
var i = 1e4;
|
|
7
|
+
function a({ client: t }) {
|
|
7
8
|
return e({ client: t }).queryKey;
|
|
8
9
|
}
|
|
9
|
-
function
|
|
10
|
-
let { queryFn:
|
|
11
|
-
authEpoch:
|
|
12
|
-
|
|
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
|
-
|
|
17
|
-
{ authEpoch:
|
|
18
|
-
{ widgetTokenId:
|
|
17
|
+
l[0],
|
|
18
|
+
{ authEpoch: s },
|
|
19
|
+
{ widgetTokenId: r(o) }
|
|
19
20
|
],
|
|
20
|
-
queryFn:
|
|
21
|
-
placeholderData:
|
|
21
|
+
queryFn: c,
|
|
22
|
+
placeholderData: u,
|
|
22
23
|
retry: 2,
|
|
23
24
|
retryDelay: 300,
|
|
24
|
-
staleTime:
|
|
25
|
+
staleTime: i
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
//#endregion
|
|
28
|
-
export {
|
|
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 {
|
|
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,
|
|
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
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
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 {
|
|
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,
|
|
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
|
-
})
|
|
21
|
-
|
|
22
|
-
|
|
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,
|
|
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
|
-
|
|
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 {
|
|
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,
|
|
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
|
-
})
|
|
20
|
-
|
|
21
|
-
|
|
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 {
|
|
8
|
-
import { useEmbedApi as
|
|
9
|
-
import { organizationHeaders as
|
|
10
|
-
import { getAllPagesNextPageParam as
|
|
11
|
-
import { useMemo as
|
|
12
|
-
import { useInfiniteQuery as
|
|
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
|
|
15
|
-
let { client:
|
|
16
|
-
client:
|
|
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
|
-
}),
|
|
20
|
-
|
|
21
|
-
authEpoch:
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
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:
|
|
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:
|
|
39
|
+
getNextPageParam: a
|
|
41
40
|
});
|
|
42
|
-
|
|
43
|
-
let
|
|
44
|
-
if (
|
|
45
|
-
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
|
-
}, [
|
|
48
|
+
}, [y.data]);
|
|
50
49
|
return {
|
|
51
|
-
...
|
|
52
|
-
data:
|
|
53
|
-
isResolving:
|
|
50
|
+
...y,
|
|
51
|
+
data: b,
|
|
52
|
+
isResolving: o(y)
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
55
|
//#endregion
|
|
57
|
-
export {
|
|
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 {
|
|
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, ...
|
|
16
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l,
|
|
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:
|
|
19
|
+
query: r
|
|
20
20
|
});
|
|
21
21
|
return d({
|
|
22
|
-
...
|
|
22
|
+
...n(p, {
|
|
23
23
|
authEpoch: l,
|
|
24
|
-
|
|
24
|
+
organizationStatus: u
|
|
25
25
|
}),
|
|
26
26
|
enabled: f
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
function m({ enabled:
|
|
30
|
-
let { client:
|
|
31
|
-
client:
|
|
32
|
-
headers:
|
|
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
|
-
}),
|
|
35
|
-
|
|
36
|
-
authEpoch:
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
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:
|
|
45
|
-
headers:
|
|
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(
|
|
58
|
-
let
|
|
59
|
-
if (
|
|
60
|
-
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
|
-
}, [
|
|
63
|
+
}, [b.data]);
|
|
65
64
|
return {
|
|
66
|
-
...
|
|
67
|
-
data:
|
|
68
|
-
isResolving: s(
|
|
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,
|
|
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
|
-
|
|
19
|
+
organizationStatus: u
|
|
20
20
|
}),
|
|
21
21
|
enabled: d
|
|
22
22
|
});
|