@tesouro/embedded-components-react 0.5.206 → 0.5.210
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 +1 -1
- package/dist/index.d.ts +40 -0
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +40 -0
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +84 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +31 -25
- 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/index10.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +151 -187
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +145 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +42 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +58 -96
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +96 -47
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +103 -318
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +47 -70
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +350 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +68 -263
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +285 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +234 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +80 -331
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +344 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index.js +7 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +11 -10
- 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/invoice-settings/data-access/dist/index4.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +36 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +16 -21
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +23 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +11 -11
- 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/queryKeys.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +220 -198
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +124 -84
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +0 -34
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { useMyEntityQuery as e } from "../../../../shared/data-access/dist/lib/useMyEntityQuery.js";
|
|
6
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
7
|
+
import { EmbeddedToaster as t } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
6
8
|
import "../../../../shared/ui/dist/index.js";
|
|
7
|
-
import { useAnalyticsTrack as
|
|
8
|
-
import { WidgetProvider as
|
|
9
|
-
import { useWidgetConfig as
|
|
9
|
+
import { useAnalyticsTrack as n } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
10
|
+
import { WidgetProvider as r } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
11
|
+
import { useWidgetConfig as i } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
12
|
import "../../../../shared/feature/dist/index.js";
|
|
11
|
-
import { InvoiceSettingsAnalyticsEvent as
|
|
12
|
-
import { getInvoiceSettingsPermissions as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { useNextDocumentNumbersQuery as l } from "../../data-access/dist/index4.js";
|
|
13
|
+
import { InvoiceSettingsAnalyticsEvent as a, WIDGET_NAME as o } from "./index9.js";
|
|
14
|
+
import { getInvoiceSettingsPermissions as s } from "./index2.js";
|
|
15
|
+
import { useEntitySettingsQuery as c } from "../../data-access/dist/index2.js";
|
|
16
|
+
import { useNextDocumentNumbersQuery as l } from "../../data-access/dist/index3.js";
|
|
16
17
|
import "../../data-access/dist/index.js";
|
|
17
18
|
import { useInvoiceSettingsForm as u } from "./index7.js";
|
|
18
19
|
import { InvoiceSettingsPanel as d } from "../../ui/dist/index3.js";
|
|
@@ -65,12 +66,12 @@ function w({ entityId: e, entitySettings: t, nextNumbers: n, logo: r, confirmLea
|
|
|
65
66
|
labels: c
|
|
66
67
|
})] });
|
|
67
68
|
}
|
|
68
|
-
function T({ handleRef:
|
|
69
|
-
let T =
|
|
70
|
-
v(
|
|
71
|
-
T(
|
|
69
|
+
function T({ handleRef: r, panelLabels: o, logoLabels: u, dropzoneLabels: f, messageLabels: p, ...m }) {
|
|
70
|
+
let T = n(), E = b(null);
|
|
71
|
+
v(r, () => ({ confirmLeave: () => E.current?.() ?? Promise.resolve(!0) }), []), _(() => {
|
|
72
|
+
T(a.Mounted);
|
|
72
73
|
}, [T]);
|
|
73
|
-
let { initResponse: D } =
|
|
74
|
+
let { initResponse: D } = i(), { canEdit: O } = y(() => s(D?.scopes), [D?.scopes]), { data: k, isLoading: A, isError: j, refetch: M } = e(), N = k?.id, P = O ? N : void 0, { data: F, isLoading: I, isError: L, refetch: R } = c(P), { data: z, isLoading: B, isError: V, refetch: H } = l(P), U = g({
|
|
74
75
|
entityId: N ?? "",
|
|
75
76
|
labels: p
|
|
76
77
|
}), W = y(() => ({
|
|
@@ -79,7 +80,7 @@ function T({ handleRef: n, panelLabels: a, logoLabels: u, dropzoneLabels: f, mes
|
|
|
79
80
|
}), [U.fileTypesHint, f]);
|
|
80
81
|
if (!O) return null;
|
|
81
82
|
let G = N || A ? /* @__PURE__ */ C(x, { children: [
|
|
82
|
-
/* @__PURE__ */ S(
|
|
83
|
+
/* @__PURE__ */ S(t, {}),
|
|
83
84
|
/* @__PURE__ */ S(h, {
|
|
84
85
|
logoUrl: U.uploadedLogoUrl ?? k?.logo?.url,
|
|
85
86
|
isLoading: A,
|
|
@@ -107,26 +108,26 @@ function T({ handleRef: n, panelLabels: a, logoLabels: u, dropzoneLabels: f, mes
|
|
|
107
108
|
M(), R(), H();
|
|
108
109
|
},
|
|
109
110
|
onSubmit: () => void 0,
|
|
110
|
-
labels:
|
|
111
|
+
labels: o
|
|
111
112
|
}) : /* @__PURE__ */ S(w, {
|
|
112
113
|
entityId: N ?? "",
|
|
113
114
|
entitySettings: F,
|
|
114
115
|
nextNumbers: z,
|
|
115
116
|
logo: G,
|
|
116
117
|
confirmLeaveRef: E,
|
|
117
|
-
panelLabels:
|
|
118
|
+
panelLabels: o,
|
|
118
119
|
messageLabels: p,
|
|
119
120
|
...m
|
|
120
121
|
}, N);
|
|
121
122
|
}
|
|
122
|
-
function E({ baseUrl: e, widgetToken: t, organizationId:
|
|
123
|
-
return /* @__PURE__ */ S(
|
|
124
|
-
widgetName:
|
|
123
|
+
function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, errorFallback: p, onError: m, ref: h, ...g }) {
|
|
124
|
+
return /* @__PURE__ */ S(r, {
|
|
125
|
+
widgetName: o,
|
|
125
126
|
baseUrl: e,
|
|
126
127
|
widgetToken: t,
|
|
127
|
-
organizationId:
|
|
128
|
+
organizationId: n,
|
|
128
129
|
configClient: i,
|
|
129
|
-
gatewayRouting:
|
|
130
|
+
gatewayRouting: a,
|
|
130
131
|
linkComponent: s,
|
|
131
132
|
implementation: c,
|
|
132
133
|
uiFramework: l,
|
|
@@ -8,7 +8,7 @@ import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
|
|
|
8
8
|
import { buildDocumentRendering as n, getBankDisplayValue as r } from "./index3.js";
|
|
9
9
|
import { formatInvoiceNumberPreview as i, padStartingNumber as a } from "./index4.js";
|
|
10
10
|
import { getInvoiceSettingsFormSchema as o } from "./index6.js";
|
|
11
|
-
import { useUpdateEntitySettingsMutation as s } from "../../data-access/dist/
|
|
11
|
+
import { useUpdateEntitySettingsMutation as s } from "../../data-access/dist/index5.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
13
|
import { useCallback as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../../shared/ui/dist/index.js";
|
|
7
7
|
import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
|
|
8
|
-
import { useUploadEntityLogoMutation as n } from "../../data-access/dist/
|
|
9
|
-
import { useDeleteEntityLogoMutation as r } from "../../data-access/dist/
|
|
8
|
+
import { useUploadEntityLogoMutation as n } from "../../data-access/dist/index6.js";
|
|
9
|
+
import { useDeleteEntityLogoMutation as r } from "../../data-access/dist/index7.js";
|
|
10
10
|
import "../../data-access/dist/index.js";
|
|
11
11
|
import { LogoUploadStatus as i } from "../../ui/dist/index15.js";
|
|
12
12
|
import "../../ui/dist/index.js";
|
|
@@ -6,17 +6,17 @@ import { ConfirmDeleteDialog as i } from "../../ui/dist/index14.js";
|
|
|
6
6
|
import "../../ui/dist/index.js";
|
|
7
7
|
import { COUNTERPART_MESSAGE_LABELS_EN as a } from "./lib/labels.js";
|
|
8
8
|
import { buildAnalyticsMap as o, buildCounterpartRows as s, counterpartFormBankAccountToCreatePayload as c, counterpartFormBankAccountToUpdatePayload as l, formatCounterpartDate as u, formatMoney as d, getAchInstructions as f, getCounterpartEmail as p, getCounterpartName as m, getPayableAchInstructions as h, hasSelectedText as g, isAchCompatibleBankAccount as _, resolveCounterpartBankAccountWrite as v, validateAchFormValues as y } from "./lib/helpers.js";
|
|
9
|
-
import {
|
|
10
|
-
import { useCreateCounterpartBankAccountMutation as
|
|
11
|
-
import { useCounterpartAddressesForRowsQuery as
|
|
9
|
+
import { useCounterpartQuery as b, useCounterpartsByIdsQuery as x, useCounterpartsQuery as S } from "../../data-access/dist/index3.js";
|
|
10
|
+
import { useCreateCounterpartBankAccountMutation as C, useUpdateCounterpartBankAccountMutation as w } from "../../data-access/dist/index5.js";
|
|
11
|
+
import { useCounterpartAddressesForRowsQuery as T, useCounterpartAddressesQuery as E } from "../../data-access/dist/index7.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
|
-
import { useAddressForm as
|
|
14
|
-
import { useCounterpartDetails as
|
|
15
|
-
import { usePayableAchInstructions as
|
|
16
|
-
import { useCounterpartForm as
|
|
13
|
+
import { useAddressForm as D } from "./lib/useAddressForm.js";
|
|
14
|
+
import { useCounterpartDetails as O } from "./lib/useCounterpartDetails.js";
|
|
15
|
+
import { usePayableAchInstructions as k } from "./lib/usePayableAchInstructions.js";
|
|
16
|
+
import { useCounterpartForm as A } from "./lib/useCounterpartForm.js";
|
|
17
17
|
import "./lib/useCounterpartSelector.js";
|
|
18
|
-
import { CounterpartSelector as
|
|
19
|
-
import { useDeleteController as
|
|
18
|
+
import { CounterpartSelector as j } from "./lib/CounterpartSelector.js";
|
|
19
|
+
import { useDeleteController as M } from "./lib/useDeleteController.js";
|
|
20
20
|
import "./lib/useSubEntityForm.js";
|
|
21
|
-
import { useBankAccountForm as
|
|
22
|
-
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet,
|
|
21
|
+
import { useBankAccountForm as N } from "./lib/subEntityForms.js";
|
|
22
|
+
export { r as BankAccountFormSheet, a as COUNTERPART_MESSAGE_LABELS_EN, i as ConfirmDeleteDialog, e as CounterpartFormFields, t as CounterpartFormSheet, j as CounterpartSelector, o as buildAnalyticsMap, s as buildCounterpartRows, c as counterpartFormBankAccountToCreatePayload, l as counterpartFormBankAccountToUpdatePayload, u as formatCounterpartDate, d as formatMoney, f as getAchInstructions, p as getCounterpartEmail, m as getCounterpartName, h as getPayableAchInstructions, g as hasSelectedText, _ as isAchCompatibleBankAccount, v as resolveCounterpartBankAccountWrite, D as useAddressForm, N as useBankAccountForm, T as useCounterpartAddressesForRowsQuery, E as useCounterpartAddressesQuery, O as useCounterpartDetails, A as useCounterpartForm, b as useCounterpartQuery, x as useCounterpartsByIdsQuery, S as useCounterpartsQuery, C as useCreateCounterpartBankAccountMutation, M as useDeleteController, n as useFocusFirstInvalidField, k as usePayableAchInstructions, w as useUpdateCounterpartBankAccountMutation, y as validateAchFormValues };
|
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
2
|
import "./lib/rest/client.gen.js";
|
|
3
|
-
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, 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, patchTransactionsId as X, postApprovalRequestsIdApprove as Z, postApprovalRequestsIdReject as Q, postBankDetails as $, postCounterparts as ee, postCounterpartsIdAddresses as te, postCounterpartsIdBankAccounts as ne, postCounterpartsIdBankAccountsIdMakeDefault as re, postFiles as ie, postMeasureUnits as ae,
|
|
4
|
-
import { activateCreditCardMutation as
|
|
5
|
-
import { authEpochPlaceholder as
|
|
6
|
-
import { applicationStatusInvalidationKey as
|
|
7
|
-
import { createClientSecretInstaller as
|
|
8
|
-
import { cancelAllClients as
|
|
9
|
-
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, 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, patchTransactionsId as X, postApprovalRequestsIdApprove as Z, postApprovalRequestsIdReject as Q, postBankDetails as $, postCounterparts as ee, postCounterpartsIdAddresses as te, postCounterpartsIdBankAccounts as ne, postCounterpartsIdBankAccountsIdMakeDefault as re, postFiles as ie, postMeasureUnits as ae, postOverdueReminders as oe, postPayables as se, postPayablesIdApprovePaymentOperation as ce, postPayablesIdAttachFile as le, postPayablesIdCancel as ue, postPayablesIdDuplicatesIdConfirm as de, postPayablesIdDuplicatesIdDismiss as fe, postPayablesIdMarkAsPaid as pe, postPayablesIdReject as me, postPayablesIdReopen as he, postPayablesIdSchedulePayment as ge, postPayablesIdSubmitForApproval as _e, postPayablesIdValidate as ve, postPayablesUploadFromFile as ye, postPaymentIntentsIdCancel as be, postPaymentReminders as xe, postProducts as Se, postReceivables as Ce, postReceivablesIdAccept as we, postReceivablesIdCancel as Te, postReceivablesIdClone as Ee, postReceivablesIdDecline as De, postReceivablesIdIssue as Oe, postReceivablesIdMarkAsPaid as ke, postReceivablesIdMarkAsPartiallyPaid as Ae, postReceivablesIdMarkAsUncollectible as je, postReceivablesIdSend as Me, postTransactionsIdApprove as Ne, postTransactionsIdReject as Pe, postTransactionsIdReopen as Fe, postTransactionsIdSubmit as Ie, putEntitiesIdLogo as Le, putPayablesIdLineItems as Re, updateDepartment as ze, updateLocation as Be, updateUser as Ve } from "./lib/rest/sdk.gen.js";
|
|
4
|
+
import { activateCreditCardMutation as He, activateDebitCardMutation as Ue, connectExternalBankAccountMutation as We, createAchMoneyMovementMutation as Ge, createApplicationMutation as Ke, createBankAccountMutation as qe, createBookTransferMutation as Je, createCheckDepositMutation as Ye, createDebitCardMutation as Xe, createVelocityControlMutation as Ze, deleteApprovalPoliciesIdMutation as Qe, deleteBankAccountApplicationMutation as $e, deleteLedgerAccountsIdMutation as et, deleteReceiptsIdMutation as tt, disableUserMutation as nt, getAnalyticsPayablesOptions as rt, getAnalyticsPayablesQueryKey as it, getAnalyticsReceiptsOptions as at, getAnalyticsReceiptsQueryKey as ot, getAnalyticsReceivablesOptions as st, getAnalyticsReceivablesQueryKey as ct, getAnalyticsTransactionsOptions as lt, getAnalyticsTransactionsQueryKey as ut, getApprovalPoliciesOptions as dt, getApprovalPoliciesQueryKey as ft, getApprovalRequestsOptions as pt, getApprovalRequestsQueryKey as mt, getBankAccountAccessQueryKey as ht, getBankAccountApplicationOptions as gt, getBankAccountOptions as _t, getBankAccountQueryKey as vt, getBankAccountStatementsOptions as yt, getBankAccountTransactionsOptions as bt, getBankAccountTransactionsQueryKey as xt, getBankAccountTransfersOptions as St, getBankAccountTransfersQueryKey as Ct, getBankAccountsQueryKey as wt, getBankDetailsOptions as Tt, getBankDetailsQueryKey as Et, getCounterpartsIdAddressesOptions as Dt, getCounterpartsIdAddressesQueryKey as Ot, getCounterpartsIdBankAccountsOptions as kt, getCounterpartsIdBankAccountsQueryKey as At, getCounterpartsIdOptions as jt, getCounterpartsIdQueryKey as Mt, getCounterpartsOptions as Nt, getCounterpartsQueryKey as Pt, getCreditCardByIdOptions as Ft, getCreditCardByIdQueryKey as It, getCreditCardsOptions as Lt, getCreditCardsQueryKey as Rt, getDebitCardByIdOptions as zt, getDebitCardByIdQueryKey as Bt, getDebitCardCredentialsOptions as Vt, getDebitCardsOptions as Ht, getDebitCardsQueryKey as Ut, getDepartmentOptions as Wt, getDepartmentQueryKey as Gt, getDepositableBankAccountsOptions as Kt, getDocumentsIdNextNumbersOptions as qt, getDocumentsIdNextNumbersQueryKey as Jt, getEntitiesIdSettingsOptions as Yt, getEntitiesIdSettingsQueryKey as Xt, getEntityUsersMyEntityOptions as Zt, getEntityUsersOptions as Qt, getExternalBankAccountAccessQueryKey as $t, getExternalBankAccountsOptions as en, getExternalBankAccountsQueryKey as tn, getFilesQueryKey as nn, getLedgerAccountsQueryKey as rn, getLocationOptions as an, getLocationQueryKey as on, getMeasureUnitsOptions as sn, getMeasureUnitsQueryKey as cn, getOrganizationOptions as ln, getOverdueRemindersOptions as un, getOverdueRemindersQueryKey as dn, getPayablesIdHistoryOptions as fn, getPayablesIdHistoryQueryKey as pn, getPayablesIdLineItemsOptions as mn, getPayablesIdLineItemsQueryKey as hn, getPayablesIdOptions as gn, getPayablesIdQueryKey as _n, getPayablesIdSuggestionsOptions as vn, getPayablesOptions as yn, getPayablesQueryKey as bn, getPaymentRecordsOptions as xn, getPaymentRecordsQueryKey as Sn, getPaymentRemindersOptions as Cn, getPaymentRemindersQueryKey as wn, getProductsIdOptions as Tn, getProductsIdQueryKey as En, getProductsOptions as Dn, getProductsQueryKey as On, getReceiptsIdQueryKey as kn, getReceiptsOptions as An, getReceiptsQueryKey as jn, getReceivablesIdHistoryOptions as Mn, getReceivablesIdHistoryQueryKey as Nn, getReceivablesIdMailsOptions as Pn, getReceivablesIdMailsQueryKey as Fn, getReceivablesIdOptions as In, getReceivablesIdPdfLinkOptions as Ln, getReceivablesIdPdfLinkQueryKey as Rn, getReceivablesIdQueryKey as zn, getReceivablesOptions as Bn, getReceivablesQueryKey as Vn, getTransactionsIdExpenseHistoryOptions as Hn, getTransactionsIdExpenseHistoryQueryKey as Un, getTransactionsIdOptions as Wn, getTransactionsIdQueryKey as Gn, getTransactionsOptions as Kn, getTransactionsQueryKey as qn, getTransactionsValidationsOptions as Jn, getTransactionsValidationsQueryKey as Yn, getUsersOptions as Xn, getUsersQueryKey as Zn, getVelocityControlsQueryKey as Qn, grantBankAccountAccessMutation as $n, grantExternalBankAccountAccessMutation as er, linkExternalBankAccountMutation as tr, listDepartmentsOptions as nr, listDepartmentsQueryKey as rr, listLocationsOptions as ir, listLocationsQueryKey as ar, listRolesQueryKey as or, manageDebitCardAccessMutation as sr, patchApprovalPoliciesIdMutation as cr, patchLedgerAccountsIdMutation as lr, patchReceiptsIdMutation as ur, postApprovalPoliciesMutation as dr, postLedgerAccountsMutation as fr, postReceiptsUploadFromFileMutation as pr, putTransactionsValidationsMutation as mr, setDebitCardLockStatusMutation as hr, submitApplicationMutation as gr, unlinkExternalBankAccountMutation as _r, updateApplicationMutation as vr, updateBankAccountMutation as yr, updateDebitCardMutation as br, updateExternalBankAccountMutation as xr, validateExternalBankAccountMutation as Sr, verifyDebitCardMutation as Cr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { authEpochPlaceholder as wr, withAuthEpoch as Tr } from "./lib/withAuthEpoch.js";
|
|
6
|
+
import { applicationStatusInvalidationKey as Er, applicationStatusQueryOptions as Dr } from "./lib/applicationStatusQueryOptions.js";
|
|
7
|
+
import { createClientSecretInstaller as Or } from "./lib/scopedClientSecret.js";
|
|
8
|
+
import { cancelAllClients as kr, invalidateAllClients as Ar, registerQueryClient as jr, removeInactiveFromAllClients as Mr, setAllClientsQueriesData as Nr, unregisterQueryClient as Pr } from "./lib/clientRegistry.js";
|
|
9
|
+
import { cloneEmbeddedClient as Fr, createEmbeddedClient as Ir } from "./lib/createEmbeddedClient.js";
|
|
10
10
|
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 "./lib/queryKeys.js";
|
|
17
|
-
import { useCurrentUserQuery as
|
|
18
|
-
import {
|
|
11
|
+
import { attachTransportInterceptors as Lr } from "./lib/transportInterceptors.js";
|
|
12
|
+
import { EmbedApiProvider as Rr, useEmbedApi as zr } from "./lib/EmbedApiContext.js";
|
|
13
|
+
import { optionalOrganizationHeaders as Br, organizationHeaders as Vr } from "./lib/organizationHeaders.js";
|
|
14
|
+
import { fetchWidgetInit as Hr } from "./lib/fetchWidgetInit.js";
|
|
15
|
+
import { hasAnyScope as Ur } from "./lib/hasAnyScope.js";
|
|
16
|
+
import { myEntityInvalidationKey as Wr } from "./lib/queryKeys.js";
|
|
17
|
+
import { useCurrentUserQuery as Gr } from "./lib/useCurrentUserQuery.js";
|
|
18
|
+
import { useMyEntityQuery as Kr } from "./lib/useMyEntityQuery.js";
|
|
19
|
+
import { useMailboxAddress as qr } from "./lib/useMailboxAddress.js";
|
|
19
20
|
import "./lib/apiErrorStatus.js";
|
|
20
|
-
import { isApiConflictError as
|
|
21
|
-
import { isApiForbiddenError as
|
|
22
|
-
import { isApiNotFoundError as
|
|
23
|
-
import { isApiUnprocessableError as
|
|
21
|
+
import { isApiConflictError as Jr } from "./lib/isApiConflictError.js";
|
|
22
|
+
import { isApiForbiddenError as Yr } from "./lib/isApiForbiddenError.js";
|
|
23
|
+
import { isApiNotFoundError as Xr } from "./lib/isApiNotFoundError.js";
|
|
24
|
+
import { isApiUnprocessableError as Zr } from "./lib/isApiUnprocessableError.js";
|
|
24
25
|
import "./lib/isUserDataNotFoundError.js";
|
|
25
|
-
import { useGetUserDataQuery as
|
|
26
|
-
import { useUpsertUserDataMutation as
|
|
26
|
+
import { useGetUserDataQuery as Qr } from "./lib/useGetUserDataQuery.js";
|
|
27
|
+
import { useUpsertUserDataMutation as $r } from "./lib/useUpsertUserDataMutation.js";
|
|
27
28
|
import "./lib/rest/zod.gen.js";
|
|
28
|
-
import { Scope as
|
|
29
|
-
import { getAllPagesNextPageParam as
|
|
30
|
-
import { useAllBankAccountsQuery as
|
|
31
|
-
import { useAllDebitCardsQuery as
|
|
32
|
-
import { useAllExternalBankAccountsQuery as
|
|
33
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
34
|
-
import { useAllLedgerAccountsQuery as
|
|
35
|
-
import { usePaymentTermsQuery as
|
|
36
|
-
import { useAllOrganizationRolesQuery as
|
|
37
|
-
import { useRolePermissionsQueries as
|
|
38
|
-
import { useAllOrganizationUsersQuery as
|
|
39
|
-
import { personDisclosure as
|
|
40
|
-
import { useAcceptWidgetDisclosures as
|
|
41
|
-
import { useDisclosuresQuery as
|
|
42
|
-
import { OnboardingSuppressionReason as
|
|
43
|
-
import { useOrganizationOnboardingSuppression as
|
|
44
|
-
import { useOrganizationApplicationStatus as
|
|
45
|
-
export {
|
|
29
|
+
import { Scope as ei, isScope as ti } from "./lib/scopes.js";
|
|
30
|
+
import { getAllPagesNextPageParam as ni, getAllPagesNextPaginationTokenParam as ri, isAllPagesResolving as ii, useAutoFetchNextPage as ai } from "./lib/allPages.js";
|
|
31
|
+
import { useAllBankAccountsQuery as oi } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
32
|
+
import { useAllDebitCardsQuery as si } from "./lib/debit-card/useAllDebitCardsQuery.js";
|
|
33
|
+
import { useAllExternalBankAccountsQuery as ci } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
34
|
+
import { useAllMerchantCategoryGroupsQuery as li } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
35
|
+
import { useAllLedgerAccountsQuery as ui, useLedgerAccountsQuery as di } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
36
|
+
import { usePaymentTermsQuery as fi } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
37
|
+
import { useAllOrganizationRolesQuery as pi } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
38
|
+
import { useRolePermissionsQueries as mi } from "./lib/role/useRolePermissionsQueries.js";
|
|
39
|
+
import { useAllOrganizationUsersQuery as hi } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
40
|
+
import { personDisclosure as gi } from "./lib/disclosures/personDisclosure.js";
|
|
41
|
+
import { useAcceptWidgetDisclosures as _i } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
42
|
+
import { useDisclosuresQuery as vi } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
43
|
+
import { OnboardingSuppressionReason as yi } from "./lib/onboardingSuppressionReason.js";
|
|
44
|
+
import { useOrganizationOnboardingSuppression as bi } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
45
|
+
import { useOrganizationApplicationStatus as xi } from "./lib/useOrganizationApplicationStatus.js";
|
|
46
|
+
export { Rr as EmbedApiProvider, yi as OnboardingSuppressionReason, ei as Scope, He as activateCreditCardMutation, Ue as activateDebitCardMutation, Er as applicationStatusInvalidationKey, Dr as applicationStatusQueryOptions, Lr as attachTransportInterceptors, wr as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, kr as cancelAllClients, Fr as cloneEmbeddedClient, We as connectExternalBankAccountMutation, Ge as createAchMoneyMovementMutation, Ke as createApplicationMutation, qe as createBankAccountMutation, Je as createBookTransferMutation, Ye as createCheckDepositMutation, Or as createClientSecretInstaller, Xe as createDebitCardMutation, r as createDepartment, Ir as createEmbeddedClient, i as createLocation, a as createUser, Ze as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Qe as deleteApprovalPoliciesIdMutation, $e as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, et as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, tt as deleteReceiptsIdMutation, g as deleteReceivablesId, nt as disableUserMutation, _ as downloadBankAccountTransactions, Hr as fetchWidgetInit, ni as getAllPagesNextPageParam, ri as getAllPagesNextPaginationTokenParam, rt as getAnalyticsPayablesOptions, it as getAnalyticsPayablesQueryKey, at as getAnalyticsReceiptsOptions, ot as getAnalyticsReceiptsQueryKey, st as getAnalyticsReceivablesOptions, ct as getAnalyticsReceivablesQueryKey, lt as getAnalyticsTransactionsOptions, ut as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, dt as getApprovalPoliciesOptions, ft as getApprovalPoliciesQueryKey, b as getApprovalRequests, pt as getApprovalRequestsOptions, mt as getApprovalRequestsQueryKey, x as getBankAccountAccess, ht as getBankAccountAccessQueryKey, gt as getBankAccountApplicationOptions, _t as getBankAccountOptions, vt as getBankAccountQueryKey, S as getBankAccountStatement, yt as getBankAccountStatementsOptions, bt as getBankAccountTransactionsOptions, xt as getBankAccountTransactionsQueryKey, St as getBankAccountTransfersOptions, Ct as getBankAccountTransfersQueryKey, wt as getBankAccountsQueryKey, Tt as getBankDetailsOptions, Et as getBankDetailsQueryKey, C as getCounterparts, Dt as getCounterpartsIdAddressesOptions, Ot as getCounterpartsIdAddressesQueryKey, kt as getCounterpartsIdBankAccountsOptions, At as getCounterpartsIdBankAccountsQueryKey, jt as getCounterpartsIdOptions, Mt as getCounterpartsIdQueryKey, Nt as getCounterpartsOptions, Pt as getCounterpartsQueryKey, Ft as getCreditCardByIdOptions, It as getCreditCardByIdQueryKey, Lt as getCreditCardsOptions, Rt as getCreditCardsQueryKey, zt as getDebitCardByIdOptions, Bt as getDebitCardByIdQueryKey, Vt as getDebitCardCredentialsOptions, Ht as getDebitCardsOptions, Ut as getDebitCardsQueryKey, w as getDepartment, Wt as getDepartmentOptions, Gt as getDepartmentQueryKey, T as getDepositableBankAccounts, Kt as getDepositableBankAccountsOptions, qt as getDocumentsIdNextNumbersOptions, Jt as getDocumentsIdNextNumbersQueryKey, Yt as getEntitiesIdSettingsOptions, Xt as getEntitiesIdSettingsQueryKey, Zt as getEntityUsersMyEntityOptions, Qt as getEntityUsersOptions, E as getExternalBankAccountAccess, $t as getExternalBankAccountAccessQueryKey, en as getExternalBankAccountsOptions, tn as getExternalBankAccountsQueryKey, nn as getFilesQueryKey, rn as getLedgerAccountsQueryKey, D as getLocation, an as getLocationOptions, on as getLocationQueryKey, sn as getMeasureUnitsOptions, cn as getMeasureUnitsQueryKey, ln as getOrganizationOptions, un as getOverdueRemindersOptions, dn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, fn as getPayablesIdHistoryOptions, pn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, mn as getPayablesIdLineItemsOptions, hn as getPayablesIdLineItemsQueryKey, gn as getPayablesIdOptions, _n as getPayablesIdQueryKey, vn as getPayablesIdSuggestionsOptions, yn as getPayablesOptions, bn as getPayablesQueryKey, M as getPaymentRecords, xn as getPaymentRecordsOptions, Sn as getPaymentRecordsQueryKey, Cn as getPaymentRemindersOptions, wn as getPaymentRemindersQueryKey, N as getProducts, Tn as getProductsIdOptions, En as getProductsIdQueryKey, Dn as getProductsOptions, On as getProductsQueryKey, P as getReceipts, kn as getReceiptsIdQueryKey, An as getReceiptsOptions, jn as getReceiptsQueryKey, F as getReceivables, Mn as getReceivablesIdHistoryOptions, Nn as getReceivablesIdHistoryQueryKey, Pn as getReceivablesIdMailsOptions, Fn as getReceivablesIdMailsQueryKey, In as getReceivablesIdOptions, Ln as getReceivablesIdPdfLinkOptions, Rn as getReceivablesIdPdfLinkQueryKey, zn as getReceivablesIdQueryKey, Bn as getReceivablesOptions, Vn as getReceivablesQueryKey, Hn as getTransactionsIdExpenseHistoryOptions, Un as getTransactionsIdExpenseHistoryQueryKey, Wn as getTransactionsIdOptions, Gn as getTransactionsIdQueryKey, Kn as getTransactionsOptions, qn as getTransactionsQueryKey, Jn as getTransactionsValidationsOptions, Yn as getTransactionsValidationsQueryKey, I as getUsers, Xn as getUsersOptions, Zn as getUsersQueryKey, Qn as getVelocityControlsQueryKey, $n as grantBankAccountAccessMutation, er as grantExternalBankAccountAccessMutation, Ur as hasAnyScope, Ar as invalidateAllClients, ii as isAllPagesResolving, Jr as isApiConflictError, Yr as isApiForbiddenError, Xr as isApiNotFoundError, Zr as isApiUnprocessableError, ti as isScope, tr as linkExternalBankAccountMutation, L as listDepartments, nr as listDepartmentsOptions, rr as listDepartmentsQueryKey, R as listLocations, ir as listLocationsOptions, ar as listLocationsQueryKey, z as listRoles, or as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, sr as manageDebitCardAccessMutation, Wr as myEntityInvalidationKey, Br as optionalOrganizationHeaders, Vr as organizationHeaders, cr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, lr as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, ur as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchTransactionsId, gi as personDisclosure, dr as postApprovalPoliciesMutation, Z as postApprovalRequestsIdApprove, Q as postApprovalRequestsIdReject, $ as postBankDetails, ee as postCounterparts, te as postCounterpartsIdAddresses, ne as postCounterpartsIdBankAccounts, re as postCounterpartsIdBankAccountsIdMakeDefault, ie as postFiles, fr as postLedgerAccountsMutation, ae as postMeasureUnits, oe as postOverdueReminders, se as postPayables, ce as postPayablesIdApprovePaymentOperation, le as postPayablesIdAttachFile, ue as postPayablesIdCancel, de as postPayablesIdDuplicatesIdConfirm, fe as postPayablesIdDuplicatesIdDismiss, pe as postPayablesIdMarkAsPaid, me as postPayablesIdReject, he as postPayablesIdReopen, ge as postPayablesIdSchedulePayment, _e as postPayablesIdSubmitForApproval, ve as postPayablesIdValidate, ye as postPayablesUploadFromFile, be as postPaymentIntentsIdCancel, xe as postPaymentReminders, Se as postProducts, pr as postReceiptsUploadFromFileMutation, Ce as postReceivables, we as postReceivablesIdAccept, Te as postReceivablesIdCancel, Ee as postReceivablesIdClone, De as postReceivablesIdDecline, Oe as postReceivablesIdIssue, ke as postReceivablesIdMarkAsPaid, Ae as postReceivablesIdMarkAsPartiallyPaid, je as postReceivablesIdMarkAsUncollectible, Me as postReceivablesIdSend, Ne as postTransactionsIdApprove, Pe as postTransactionsIdReject, Fe as postTransactionsIdReopen, Ie as postTransactionsIdSubmit, Le as putEntitiesIdLogo, Re as putPayablesIdLineItems, mr as putTransactionsValidationsMutation, jr as registerQueryClient, Mr as removeInactiveFromAllClients, Nr as setAllClientsQueriesData, hr as setDebitCardLockStatusMutation, gr as submitApplicationMutation, _r as unlinkExternalBankAccountMutation, Pr as unregisterQueryClient, vr as updateApplicationMutation, yr as updateBankAccountMutation, br as updateDebitCardMutation, ze as updateDepartment, xr as updateExternalBankAccountMutation, Be as updateLocation, Ve as updateUser, _i as useAcceptWidgetDisclosures, oi as useAllBankAccountsQuery, si as useAllDebitCardsQuery, ci as useAllExternalBankAccountsQuery, ui as useAllLedgerAccountsQuery, li as useAllMerchantCategoryGroupsQuery, pi as useAllOrganizationRolesQuery, hi as useAllOrganizationUsersQuery, ai as useAutoFetchNextPage, Gr as useCurrentUserQuery, vi as useDisclosuresQuery, zr as useEmbedApi, Qr as useGetUserDataQuery, di as useLedgerAccountsQuery, qr as useMailboxAddress, Kr as useMyEntityQuery, xi as useOrganizationApplicationStatus, bi as useOrganizationOnboardingSuppression, fi as usePaymentTermsQuery, mi as useRolePermissionsQueries, $r as useUpsertUserDataMutation, Sr as validateExternalBankAccountMutation, Cr as verifyDebitCardMutation, Tr as withAuthEpoch };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/queryKeys.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getEntityUsersMyEntityQueryKey as e, getUserDataQueryKey as t } from "./rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as n } from "./organizationHeaders.js";
|
|
2
3
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/queryKeys.js
|
|
3
|
-
var
|
|
4
|
-
client:
|
|
4
|
+
var r = ({ client: e, key: n }) => t({
|
|
5
|
+
client: e,
|
|
5
6
|
path: { key: n }
|
|
7
|
+
}), i = ({ client: t, organizationId: r }) => e({
|
|
8
|
+
client: t,
|
|
9
|
+
headers: n(r)
|
|
6
10
|
});
|
|
7
11
|
//#endregion
|
|
8
|
-
export {
|
|
12
|
+
export { i as myEntityInvalidationKey, r as userDataInvalidationKey };
|