@tesouro/embedded-components-react 0.11.43 → 0.11.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/lib/ReceivablesWidget.d.ts +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +1 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +10 -13
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +71 -83
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +0 -51
package/dist/index.d.ts
CHANGED
|
@@ -6322,6 +6322,7 @@ interface ReceivableMessageLabels {
|
|
|
6322
6322
|
actionsSubject: string;
|
|
6323
6323
|
actionsSendSucceeded: string;
|
|
6324
6324
|
actionsSendFailed: string;
|
|
6325
|
+
/** @deprecated Unused: the backend creates the payment link on issue, so the browser no longer decides. Kept so existing overrides still compile. */
|
|
6325
6326
|
actionsSendWithoutPaymentLink: string;
|
|
6326
6327
|
/** @deprecated Unused: sending no longer checks a payment-link scope. Kept so existing overrides still compile. */
|
|
6327
6328
|
actionsSendWithoutPaymentLinkScope: string;
|
|
@@ -1665,6 +1665,7 @@ interface ReceivableMessageLabels {
|
|
|
1665
1665
|
actionsSubject: string;
|
|
1666
1666
|
actionsSendSucceeded: string;
|
|
1667
1667
|
actionsSendFailed: string;
|
|
1668
|
+
/** @deprecated Unused: the backend creates the payment link on issue, so the browser no longer decides. Kept so existing overrides still compile. */
|
|
1668
1669
|
actionsSendWithoutPaymentLink: string;
|
|
1669
1670
|
/** @deprecated Unused: sending no longer checks a payment-link scope. Kept so existing overrides still compile. */
|
|
1670
1671
|
actionsSendWithoutPaymentLinkScope: string;
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js
CHANGED
|
@@ -5,13 +5,13 @@ import { useAllCustomersQuery as t } from "./index3.js";
|
|
|
5
5
|
import { useAllReceivableHistoryQuery as n } from "./index4.js";
|
|
6
6
|
import { useEntityPaymentMethodsQuery as r, useEntitySettingsQuery as i } from "./index5.js";
|
|
7
7
|
import { useCreateEntityBankAccountMutation as a, usePaymentAccountQuery as o, usePaymentAccountsQuery as s } from "./index6.js";
|
|
8
|
-
import
|
|
9
|
-
import { useDeleteReceivableAttachmentMutation as
|
|
10
|
-
import { useSendReceivableEmailMutation as
|
|
11
|
-
import { useAcceptReceivableMutation as
|
|
12
|
-
import { useReceivablePaymentRecordsQuery as
|
|
13
|
-
import { useCreateReceivablePaymentRecordMutation as
|
|
14
|
-
import { useReceivablePdfLinkQuery as
|
|
15
|
-
import { useCancelRecurrenceMutation as
|
|
16
|
-
import { useReceivablesAnalyticsQuery as
|
|
17
|
-
export {
|
|
8
|
+
import "./index7.js";
|
|
9
|
+
import { useDeleteReceivableAttachmentMutation as c, useUploadReceivableAttachmentMutation as l } from "./index8.js";
|
|
10
|
+
import { useSendReceivableEmailMutation as u } from "./index10.js";
|
|
11
|
+
import { useAcceptReceivableMutation as d, useCancelReceivableMutation as f, useCloneReceivableMutation as p, useCreateReceivableMutation as m, useDeclineReceivableMutation as h, useDeleteReceivableMutation as g, useIssueReceivableMutation as _, useUpdateReceivableMutation as v } from "./index11.js";
|
|
12
|
+
import { useReceivablePaymentRecordsQuery as y } from "./index12.js";
|
|
13
|
+
import { useCreateReceivablePaymentRecordMutation as b, useMarkReceivablePaidMutation as x, useMarkReceivableUncollectibleMutation as S } from "./index13.js";
|
|
14
|
+
import { useReceivablePdfLinkQuery as C, useReceivableQuery as w, useReceivableRequiredFieldsQuery as T, useReceivablesByIdQueries as E, useReceivablesQuery as D } from "./index15.js";
|
|
15
|
+
import { useCancelRecurrenceMutation as O, useCreateOverdueReminderMutation as k, useCreatePaymentReminderMutation as A, useCreateRecurrenceMutation as j, useOverdueRemindersQuery as M, usePauseRecurrenceMutation as N, usePaymentRemindersQuery as P, useRecurrenceQuery as F, useRecurrencesByIdQueries as I, useResumeRecurrenceMutation as L, useUpdateRecurrenceMutation as R } from "./index16.js";
|
|
16
|
+
import { useReceivablesAnalyticsQuery as z } from "./index17.js";
|
|
17
|
+
export { d as useAcceptReceivableMutation, t as useAllCustomersQuery, n as useAllReceivableHistoryQuery, f as useCancelReceivableMutation, O as useCancelRecurrenceMutation, p as useCloneReceivableMutation, a as useCreateEntityBankAccountMutation, k as useCreateOverdueReminderMutation, A as useCreatePaymentReminderMutation, m as useCreateReceivableMutation, b as useCreateReceivablePaymentRecordMutation, j as useCreateRecurrenceMutation, h as useDeclineReceivableMutation, c as useDeleteReceivableAttachmentMutation, g as useDeleteReceivableMutation, r as useEntityPaymentMethodsQuery, i as useEntitySettingsQuery, _ as useIssueReceivableMutation, x as useMarkReceivablePaidMutation, S as useMarkReceivableUncollectibleMutation, M as useOverdueRemindersQuery, N as usePauseRecurrenceMutation, o as usePaymentAccountQuery, s as usePaymentAccountsQuery, P as usePaymentRemindersQuery, e as usePaymentTermsQuery, y as useReceivablePaymentRecordsQuery, C as useReceivablePdfLinkQuery, w as useReceivableQuery, T as useReceivableRequiredFieldsQuery, z as useReceivablesAnalyticsQuery, E as useReceivablesByIdQueries, D as useReceivablesQuery, F as useRecurrenceQuery, I as useRecurrencesByIdQueries, L as useResumeRecurrenceMutation, u as useSendReceivableEmailMutation, v as useUpdateReceivableMutation, R as useUpdateRecurrenceMutation, l as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js
CHANGED
|
@@ -2,22 +2,5 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { postPaymentLinks as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
-
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
-
import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
5
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import
|
|
10
|
-
// ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js
|
|
11
|
-
function i() {
|
|
12
|
-
let { client: i, organizationId: a } = t();
|
|
13
|
-
return r({ mutationFn: async ({ body: t }) => {
|
|
14
|
-
let { data: r } = await e({
|
|
15
|
-
client: i,
|
|
16
|
-
headers: n(a),
|
|
17
|
-
body: t,
|
|
18
|
-
throwOnError: !0
|
|
19
|
-
});
|
|
20
|
-
return r;
|
|
21
|
-
} });
|
|
22
|
-
}
|
|
23
|
-
export { i as useCreatePaymentLinkMutation };
|
|
6
|
+
import "@tanstack/react-query";
|
|
@@ -2,8 +2,8 @@ import { isLineItemTaxable as e } from "./lineItems.js";
|
|
|
2
2
|
import { buildReceivableAttachmentDetailsView as t } from "./attachments.js";
|
|
3
3
|
import { allocateDiscount as n, resolveDiscountAmount as r } from "./totals.js";
|
|
4
4
|
import { buildReceivableNotesView as i, formatDate as a, formatMoney as o, getDaysOverdue as s } from "./helpers.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { getPaymentAccountLineLabel as c } from "./bankAccounts.js";
|
|
6
|
+
import { formatCountryName as l, formatDeduction as u } from "./preview.js";
|
|
7
7
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js
|
|
8
8
|
var d = {
|
|
9
9
|
draft: {
|
|
@@ -181,7 +181,7 @@ function ee(e) {
|
|
|
181
181
|
return [
|
|
182
182
|
e.line2 ? `${e.line1} ${e.line2}` : e.line1,
|
|
183
183
|
t,
|
|
184
|
-
e.country ?
|
|
184
|
+
e.country ? l(e.country) : void 0
|
|
185
185
|
].filter(Boolean).join(", ");
|
|
186
186
|
}
|
|
187
187
|
function te(e, t, n) {
|
|
@@ -262,7 +262,7 @@ function ne(t, i, a) {
|
|
|
262
262
|
}), s = r({
|
|
263
263
|
discount: t.discount,
|
|
264
264
|
subtotal: o.taxableItemsSubtotal + o.nonTaxableItemsSubtotal
|
|
265
|
-
}), { taxableSubtotal: c, nonTaxableSubtotal:
|
|
265
|
+
}), { taxableSubtotal: c, nonTaxableSubtotal: l } = n({
|
|
266
266
|
...o,
|
|
267
267
|
discountAmount: s
|
|
268
268
|
}), d = s > 0, f = o.taxableItemsSubtotal > 0, p = o.nonTaxableItemsSubtotal > 0, m = [{
|
|
@@ -271,10 +271,10 @@ function ne(t, i, a) {
|
|
|
271
271
|
}];
|
|
272
272
|
d && m.push({
|
|
273
273
|
label: a.previewDiscount,
|
|
274
|
-
value:
|
|
274
|
+
value: u(s, t.currency)
|
|
275
275
|
}), p && (f || d) && m.push({
|
|
276
276
|
label: a.previewNonTaxableSubtotal,
|
|
277
|
-
value: i(
|
|
277
|
+
value: i(l),
|
|
278
278
|
tone: "muted"
|
|
279
279
|
}), f && (p || d) && m.push({
|
|
280
280
|
label: a.previewTaxableSubtotal,
|
|
@@ -295,7 +295,7 @@ var re = {
|
|
|
295
295
|
primary: [],
|
|
296
296
|
overflow: []
|
|
297
297
|
};
|
|
298
|
-
function D({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder:
|
|
298
|
+
function D({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder: l, depositAccount: u, isAccountListIncomplete: m, recurrence: b, paymentRecords: S = [], isLoadingPaymentRecords: C = !1, iterationInvoices: T = /* @__PURE__ */ new Map(), auditHistory: D, statusLabels: O, messages: k, canRecordPayment: A, hasBeenSent: ie = !1, canWrite: j = !0, onOpenReceivable: M, onOpenCustomer: N, now: ae }) {
|
|
299
299
|
if (!e || e.type !== "invoice") return;
|
|
300
300
|
let P = e, F = (e) => o({
|
|
301
301
|
amount: e ?? 0,
|
|
@@ -322,13 +322,13 @@ function D({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder: c, d
|
|
|
322
322
|
label: k.detailsPaymentReminders,
|
|
323
323
|
value: h({
|
|
324
324
|
paymentReminder: r,
|
|
325
|
-
overdueReminder:
|
|
325
|
+
overdueReminder: l,
|
|
326
326
|
remindersConfigured: !!(P.payment_reminder_id || P.overdue_reminder_id),
|
|
327
327
|
messages: k
|
|
328
328
|
})
|
|
329
329
|
}, J = {
|
|
330
330
|
label: k.detailsDepositAccount,
|
|
331
|
-
value:
|
|
331
|
+
value: u ? c(u, k) : m && P.bank_account_id ? "-" : k.detailsNotProvided
|
|
332
332
|
}, Y = {
|
|
333
333
|
label: k.detailsPaymentTerms,
|
|
334
334
|
value: P.payment_terms?.name ?? k.detailsPending
|
|
@@ -7,20 +7,17 @@ import "../../../../../shared/ui/dist/index.js";
|
|
|
7
7
|
import { getCounterpartEmail as t, getCounterpartName as n } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
8
8
|
import { useCounterpartQuery as r } from "../../../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
9
9
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
10
|
-
import {
|
|
10
|
+
import { useSendReceivableEmailMutation as i } from "../../../../data-access/dist/index10.js";
|
|
11
|
+
import { useReceivableQuery as a } from "../../../../data-access/dist/index15.js";
|
|
11
12
|
import "../../../../data-access/dist/index.js";
|
|
12
|
-
import { useCreateProductMutation as
|
|
13
|
-
import { useMeasureUnits as
|
|
13
|
+
import { useCreateProductMutation as o } from "../../../../../shared/product-catalog/data-access/dist/index6.js";
|
|
14
|
+
import { useMeasureUnits as s } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
|
|
14
15
|
import "../../../../../shared/product-catalog/feature/dist/index.js";
|
|
15
|
-
import { getInlineItemPriceLabel as
|
|
16
|
-
import { useSendReceivableWithPaymentLink as f } from "./useSendReceivableWithPaymentLink.js";
|
|
16
|
+
import { getInlineItemPriceLabel as c, getIssueAttachments as l, getIssueSubject as u, getProductsStepTitle as d, inlineItemToProductRequest as f } from "./actionsModal.js";
|
|
17
17
|
import { useCallback as p, useMemo as m, useState as h } from "react";
|
|
18
18
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js
|
|
19
19
|
function g({ messages: g }) {
|
|
20
|
-
let [_, v] = h(), [y, b] = h("products"), [x, S] = h(), [C, w] = h(), [T, E] = h(""), [D, O] = h(() => /* @__PURE__ */ new Set()), [k, A] = h(!1), j = !!_ && y === "issue", M =
|
|
21
|
-
messages: g,
|
|
22
|
-
documentType: j ? _?.documentType : void 0
|
|
23
|
-
}), L = a(), R = N.data?.id === _?.counterpartId ? N.data : void 0, z = R ? n(R) : "", B = R ? t(R) : "", V = M.data?.id === _?.receivableId ? M.data : void 0, H = C ?? l(V?.document_id, z, g), U = p((e) => {
|
|
20
|
+
let [_, v] = h(), [y, b] = h("products"), [x, S] = h(), [C, w] = h(), [T, E] = h(""), [D, O] = h(() => /* @__PURE__ */ new Set()), [k, A] = h(!1), j = !!_ && y === "issue", M = a(_?.receivableId, { enabled: j }), N = r(j ? _?.counterpartId : void 0), { unitNamesById: P } = s({ enabled: !!_?.inlineItems.length }), { mutateAsync: F, isPending: I } = i(), L = o(), R = N.data?.id === _?.counterpartId ? N.data : void 0, z = R ? n(R) : "", B = R ? t(R) : "", V = M.data?.id === _?.receivableId ? M.data : void 0, H = C ?? u(V?.document_id, z, g), U = p((e) => {
|
|
24
21
|
v(e), b(e.showEmailStep ? "issue" : "products"), S(void 0), w(void 0), E(""), O(new Set(e.inlineItems.map((e) => e.key)));
|
|
25
22
|
}, []), W = p(() => v(void 0), []), G = p((e) => {
|
|
26
23
|
S(e), _?.inlineItems.length ? b("products") : W();
|
|
@@ -65,7 +62,7 @@ function g({ messages: g }) {
|
|
|
65
62
|
if (t.length) {
|
|
66
63
|
A(!0);
|
|
67
64
|
try {
|
|
68
|
-
await Promise.all(t.map((e) => L.mutateAsync({ body:
|
|
65
|
+
await Promise.all(t.map((e) => L.mutateAsync({ body: f(e) }))), e.success(g.actionsProductsSaved), W();
|
|
69
66
|
} catch {
|
|
70
67
|
e.error(g.actionsProductsSaveFailed);
|
|
71
68
|
} finally {
|
|
@@ -86,17 +83,17 @@ function g({ messages: g }) {
|
|
|
86
83
|
recipient: B ? `${z} <${B}>` : z,
|
|
87
84
|
subject: H,
|
|
88
85
|
message: T,
|
|
89
|
-
attachments:
|
|
86
|
+
attachments: l(V),
|
|
90
87
|
dismissLabel: _.isResend ? g.actionsResendDismiss : g.actionsIssueDismiss,
|
|
91
88
|
sendDisabled: I || !H.trim() || !T.trim(),
|
|
92
89
|
inProgress: I
|
|
93
90
|
} : {
|
|
94
91
|
step: "products",
|
|
95
|
-
title:
|
|
92
|
+
title: d(_.action, x, g),
|
|
96
93
|
items: J.map((e) => ({
|
|
97
94
|
key: e.key,
|
|
98
95
|
name: e.name,
|
|
99
|
-
priceLabel:
|
|
96
|
+
priceLabel: c(e, P),
|
|
100
97
|
selected: D.has(e.key)
|
|
101
98
|
})),
|
|
102
99
|
allSelected: J.length > 0 && D.size === J.length,
|
|
@@ -42,7 +42,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
42
42
|
r.openDetails && (A(e), M(!0)), r.actionsModal && U({
|
|
43
43
|
action: n.mode,
|
|
44
44
|
receivableId: e,
|
|
45
|
-
documentType: t,
|
|
46
45
|
counterpartId: n.counterpartId,
|
|
47
46
|
inlineItems: n.inlineItems,
|
|
48
47
|
showEmailStep: r.actionsModal.showEmailStep
|
|
@@ -71,7 +70,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
71
70
|
(i || n.inlineItems.length !== 0) && U({
|
|
72
71
|
action: r || n.mode === "recurrence" ? n.mode : "update",
|
|
73
72
|
receivableId: e,
|
|
74
|
-
documentType: t,
|
|
75
73
|
counterpartId: n.counterpartId,
|
|
76
74
|
inlineItems: n.inlineItems,
|
|
77
75
|
showEmailStep: i
|
|
@@ -108,7 +106,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
108
106
|
onIssuedForSend: (e, t) => U({
|
|
109
107
|
action: "issue",
|
|
110
108
|
receivableId: e,
|
|
111
|
-
documentType: "invoice",
|
|
112
109
|
counterpartId: t,
|
|
113
110
|
inlineItems: [],
|
|
114
111
|
showEmailStep: !0
|
|
@@ -116,7 +113,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
|
|
|
116
113
|
onResend: (e, t) => U({
|
|
117
114
|
action: "issue",
|
|
118
115
|
receivableId: e,
|
|
119
|
-
documentType: "invoice",
|
|
120
116
|
counterpartId: t,
|
|
121
117
|
inlineItems: [],
|
|
122
118
|
showEmailStep: !0,
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
2
|
import "./lib/rest/client.gen.js";
|
|
3
|
-
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, 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, getReceivablesIdHistory as I, getUsers as L, listDepartments as R, listLocations as z, listRoles as B, manageBankAccountAccess as V, manageDebitCardAccess as H, patchCounterpartsId as U, patchCounterpartsIdAddressesId as W, patchCounterpartsIdBankAccountsId as G, patchEntitiesIdSettings as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchRecurrencesId as Z, patchTransactionsId as Q, postApprovalRequestsIdApprove as $, postApprovalRequestsIdReject as ee, postBankDetails as te, postCounterparts as ne, postCounterpartsIdAddresses as re, postCounterpartsIdBankAccounts 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,
|
|
4
|
-
import { activateCreditCardMutation as
|
|
5
|
-
import { widgetTokenCacheId as
|
|
6
|
-
import { OrganizationStatus as
|
|
7
|
-
import { withAuthEpoch as
|
|
8
|
-
import { applicationStatusInvalidationKey as
|
|
9
|
-
import { createClientSecretInstaller as
|
|
10
|
-
import { cancelAllClients as
|
|
11
|
-
import { cloneEmbeddedClient as
|
|
3
|
+
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, 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, getReceivablesIdHistory as I, getUsers as L, listDepartments as R, listLocations as z, listRoles as B, manageBankAccountAccess as V, manageDebitCardAccess as H, patchCounterpartsId as U, patchCounterpartsIdAddressesId as W, patchCounterpartsIdBankAccountsId as G, patchEntitiesIdSettings as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchRecurrencesId as Z, patchTransactionsId as Q, postApprovalRequestsIdApprove as $, postApprovalRequestsIdReject as ee, postBankDetails as te, postCounterparts as ne, postCounterpartsIdAddresses as re, postCounterpartsIdBankAccounts 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, postPaymentRecords as Se, postPaymentReminders as Ce, postProducts as we, postReceivables as Te, postReceivablesIdAccept as Ee, postReceivablesIdCancel as De, postReceivablesIdClone as Oe, postReceivablesIdDecline as ke, postReceivablesIdIssue as Ae, postReceivablesIdMarkAsPaid as je, postReceivablesIdMarkAsUncollectible as Me, postReceivablesIdSend as Ne, postRecurrences as Pe, postRecurrencesIdCancel as Fe, postRecurrencesIdPause as Ie, postRecurrencesIdResume as Le, postTransactionsIdApprove as Re, postTransactionsIdReject as ze, postTransactionsIdReopen as Be, postTransactionsIdSubmit as Ve, putEntitiesIdLogo as He, putPayablesIdLineItems as Ue, updateDepartment as We, updateLocation as Ge, updateUser as Ke } from "./lib/rest/sdk.gen.js";
|
|
4
|
+
import { activateCreditCardMutation as qe, activateDebitCardMutation as Je, connectExternalBankAccountMutation as Ye, createAchMoneyMovementMutation as Xe, createApplicationMutation as Ze, createBankAccountMutation as Qe, createBookTransferMutation as $e, createCheckDepositMutation as et, createDebitCardMutation as tt, createVelocityControlMutation as nt, deleteApprovalPoliciesIdMutation as rt, deleteBankAccountApplicationMutation as it, deleteLedgerAccountsIdMutation as at, deleteReceiptsIdMutation as ot, disableUserMutation as st, getAnalyticsPayablesOptions as ct, getAnalyticsPayablesQueryKey as lt, getAnalyticsReceiptsOptions as ut, getAnalyticsReceiptsQueryKey as dt, getAnalyticsReceivablesOptions as ft, getAnalyticsReceivablesQueryKey as pt, getAnalyticsTransactionsOptions as mt, getAnalyticsTransactionsQueryKey as ht, getApprovalPoliciesOptions as gt, getApprovalPoliciesQueryKey as _t, getApprovalRequestsOptions as vt, getApprovalRequestsQueryKey as yt, getBankAccountAccessQueryKey as bt, getBankAccountApplicationOptions as xt, getBankAccountOptions as St, getBankAccountQueryKey as Ct, getBankAccountStatementsOptions as wt, getBankAccountTransactionsOptions as Tt, getBankAccountTransactionsQueryKey as Et, getBankAccountsQueryKey as Dt, getBankDetailsIdOptions as Ot, getBankDetailsOptions as kt, getBankDetailsQueryKey as At, getCounterpartsIdAddressesOptions as jt, getCounterpartsIdAddressesQueryKey as Mt, getCounterpartsIdBankAccountsOptions as Nt, getCounterpartsIdBankAccountsQueryKey as Pt, getCounterpartsIdOptions as Ft, getCounterpartsIdQueryKey as It, getCounterpartsOptions as Lt, getCounterpartsQueryKey as Rt, getCreditCardByIdOptions as zt, getCreditCardByIdQueryKey as Bt, getCreditCardsOptions as Vt, getCreditCardsQueryKey as Ht, getDebitCardByIdOptions as Ut, getDebitCardByIdQueryKey as Wt, getDebitCardCredentialsOptions as Gt, getDebitCardsOptions as Kt, getDebitCardsQueryKey as qt, getDepartmentOptions as Jt, getDepartmentQueryKey as Yt, getDepositableBankAccountsOptions as Xt, getDocumentsIdNextNumbersOptions as Zt, getDocumentsIdNextNumbersQueryKey as Qt, getEntitiesIdPaymentMethodsOptions as $t, getEntitiesIdSettingsOptions as en, getEntitiesIdSettingsQueryKey as tn, getEntityUsersOptions as nn, getExternalBankAccountAccessQueryKey as rn, getExternalBankAccountOptions as an, getExternalBankAccountsOptions as on, getExternalBankAccountsQueryKey as sn, getFilesQueryKey as cn, getLedgerAccountsQueryKey as ln, getLocationOptions as un, getLocationQueryKey as dn, getMeOptions as fn, getMeasureUnitsOptions as pn, getMeasureUnitsQueryKey as mn, getOrganizationOptions as hn, getOrganizationTransfersOptions as gn, getOrganizationTransfersQueryKey as _n, getOverdueRemindersOptions as vn, getOverdueRemindersQueryKey as yn, getPayablesIdHistoryOptions as bn, getPayablesIdHistoryQueryKey as xn, getPayablesIdLineItemsOptions as Sn, getPayablesIdLineItemsQueryKey as Cn, getPayablesIdOptions as wn, getPayablesIdQueryKey as Tn, getPayablesIdSuggestionsOptions as En, getPayablesOptions as Dn, getPayablesQueryKey as On, getPaymentRecordsOptions as kn, getPaymentRecordsQueryKey as An, getPaymentRemindersOptions as jn, getPaymentRemindersQueryKey as Mn, getProductsIdOptions as Nn, getProductsIdQueryKey as Pn, getProductsOptions as Fn, getProductsQueryKey as In, getReceiptsIdQueryKey as Ln, getReceiptsOptions as Rn, getReceiptsQueryKey as zn, getReceivablesIdHistoryQueryKey as Bn, getReceivablesIdMailsQueryKey as Vn, getReceivablesIdOptions as Hn, getReceivablesIdPdfLinkOptions as Un, getReceivablesIdPdfLinkQueryKey as Wn, getReceivablesIdQueryKey as Gn, getReceivablesOptions as Kn, getReceivablesQueryKey as qn, getReceivablesRequiredFieldsOptions as Jn, getRecurrencesIdOptions as Yn, getRecurrencesIdQueryKey as Xn, getRecurrencesQueryKey as Zn, getTransactionsIdExpenseHistoryOptions as Qn, getTransactionsIdExpenseHistoryQueryKey as $n, getTransactionsIdOptions as er, getTransactionsIdQueryKey as tr, getTransactionsOptions as nr, getTransactionsQueryKey as rr, getTransactionsValidationsOptions as ir, getTransactionsValidationsQueryKey as ar, getUsersOptions as or, getUsersQueryKey as sr, getVelocityControlsQueryKey as cr, grantBankAccountAccessMutation as lr, grantExternalBankAccountAccessMutation as ur, linkExternalBankAccountMutation as dr, listDepartmentsOptions as fr, listDepartmentsQueryKey as pr, listLocationsOptions as mr, listLocationsQueryKey as hr, listRolesQueryKey as gr, manageDebitCardAccessMutation as _r, patchApprovalPoliciesIdMutation as vr, patchLedgerAccountsIdMutation as yr, patchReceiptsIdMutation as br, postApprovalPoliciesMutation as xr, postLedgerAccountsMutation as Sr, postReceiptsUploadFromFileMutation as Cr, putTransactionsValidationsMutation as wr, setDebitCardLockStatusMutation as Tr, submitApplicationMutation as Er, unlinkExternalBankAccountMutation as Dr, updateApplicationMutation as Or, updateBankAccountMutation as kr, updateDebitCardMutation as Ar, updateExternalBankAccountMutation as jr, validateExternalBankAccountMutation as Mr, verifyDebitCardMutation as Nr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { widgetTokenCacheId as Pr } from "./lib/widgetTokenCacheId.js";
|
|
6
|
+
import { OrganizationStatus as Fr, isOrganizationOnItsWay as Ir } from "./lib/organizationStatus.js";
|
|
7
|
+
import { withAuthEpoch as Lr, withAuthEpochInfinite as Rr } from "./lib/withAuthEpoch.js";
|
|
8
|
+
import { applicationStatusInvalidationKey as zr, applicationStatusQueryOptions as Br } from "./lib/applicationStatusQueryOptions.js";
|
|
9
|
+
import { createClientSecretInstaller as Vr } from "./lib/scopedClientSecret.js";
|
|
10
|
+
import { cancelAllClients as Hr, invalidateAllClients as Ur, registerQueryClient as Wr, removeInactiveFromAllClients as Gr, resetAllClients as Kr, setAllClientsQueriesData as qr, unregisterQueryClient as Jr } from "./lib/clientRegistry.js";
|
|
11
|
+
import { cloneEmbeddedClient as Yr, createEmbeddedClient as Xr } from "./lib/createEmbeddedClient.js";
|
|
12
12
|
import "./lib/widgetGatewayHosts.js";
|
|
13
|
-
import { attachTransportInterceptors as
|
|
14
|
-
import { EmbedApiProvider as
|
|
15
|
-
import { optionalOrganizationHeaders as
|
|
16
|
-
import { fetchWidgetInit as
|
|
17
|
-
import { hasAnyScope as
|
|
18
|
-
import { myEntityInvalidationKey as
|
|
19
|
-
import { useCurrentUserQuery as
|
|
20
|
-
import { useMyEntityQuery as
|
|
21
|
-
import { useMailboxAddress as
|
|
13
|
+
import { attachTransportInterceptors as Zr } from "./lib/transportInterceptors.js";
|
|
14
|
+
import { EmbedApiProvider as Qr, useEmbedApi as $r } from "./lib/EmbedApiContext.js";
|
|
15
|
+
import { optionalOrganizationHeaders as ei, organizationHeaders as ti } from "./lib/organizationHeaders.js";
|
|
16
|
+
import { fetchWidgetInit as ni } from "./lib/fetchWidgetInit.js";
|
|
17
|
+
import { hasAnyScope as ri } from "./lib/hasAnyScope.js";
|
|
18
|
+
import { myEntityInvalidationKey as ii } from "./lib/queryKeys.js";
|
|
19
|
+
import { useCurrentUserQuery as ai } from "./lib/useCurrentUserQuery.js";
|
|
20
|
+
import { useMyEntityQuery as oi } from "./lib/useMyEntityQuery.js";
|
|
21
|
+
import { useMailboxAddress as si } from "./lib/useMailboxAddress.js";
|
|
22
22
|
import "./lib/apiErrorStatus.js";
|
|
23
|
-
import { isApiConflictError as
|
|
24
|
-
import { isApiForbiddenError as
|
|
25
|
-
import { isApiNotFoundError as
|
|
26
|
-
import { isApiUnprocessableError as
|
|
23
|
+
import { isApiConflictError as ci } from "./lib/isApiConflictError.js";
|
|
24
|
+
import { isApiForbiddenError as li } from "./lib/isApiForbiddenError.js";
|
|
25
|
+
import { isApiNotFoundError as ui } from "./lib/isApiNotFoundError.js";
|
|
26
|
+
import { isApiUnprocessableError as di } from "./lib/isApiUnprocessableError.js";
|
|
27
27
|
import "./lib/isUserDataNotFoundError.js";
|
|
28
|
-
import { useGetUserDataQuery as
|
|
29
|
-
import { useUpsertUserDataMutation as
|
|
30
|
-
import { Scope as
|
|
31
|
-
import { getAllPagesNextPageParam as
|
|
32
|
-
import { useAllBankAccountsQuery as
|
|
33
|
-
import { useAllDebitCardsQuery as
|
|
34
|
-
import { useAllExternalBankAccountsQuery as
|
|
35
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
36
|
-
import { useAllLedgerAccountsQuery as
|
|
37
|
-
import { usePaymentTermsQuery as
|
|
38
|
-
import { useOrganizationQuery as
|
|
39
|
-
import { useAllOrganizationRolesQuery as
|
|
40
|
-
import { useRolePermissionsQueries as
|
|
41
|
-
import { useAllOrganizationUsersQuery as
|
|
42
|
-
import { personDisclosure as
|
|
43
|
-
import { useAcceptWidgetDisclosures as
|
|
44
|
-
import { useDisclosuresQuery as
|
|
45
|
-
import { OnboardingSuppressionReason as
|
|
46
|
-
import { useOrganizationOnboardingSuppression as
|
|
47
|
-
import { useOrganizationApplicationStatus as
|
|
48
|
-
export {
|
|
28
|
+
import { useGetUserDataQuery as fi } from "./lib/useGetUserDataQuery.js";
|
|
29
|
+
import { useUpsertUserDataMutation as pi } from "./lib/useUpsertUserDataMutation.js";
|
|
30
|
+
import { Scope as mi, isScope as hi } from "./lib/scopes.js";
|
|
31
|
+
import { getAllPagesNextPageParam as gi, getAllPagesNextPaginationTokenParam as _i, isAllPagesResolving as vi, useAutoFetchNextPage as yi } from "./lib/allPages.js";
|
|
32
|
+
import { useAllBankAccountsQuery as bi } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
33
|
+
import { useAllDebitCardsQuery as xi } from "./lib/debit-card/useAllDebitCardsQuery.js";
|
|
34
|
+
import { useAllExternalBankAccountsQuery as Si } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
35
|
+
import { useAllMerchantCategoryGroupsQuery as Ci } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
36
|
+
import { useAllLedgerAccountsQuery as wi, useLedgerAccountsQuery as Ti } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
37
|
+
import { usePaymentTermsQuery as Ei } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
38
|
+
import { useOrganizationQuery as Di } from "./lib/organization/useOrganizationQuery.js";
|
|
39
|
+
import { useAllOrganizationRolesQuery as Oi } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
40
|
+
import { useRolePermissionsQueries as ki } from "./lib/role/useRolePermissionsQueries.js";
|
|
41
|
+
import { useAllOrganizationUsersQuery as Ai } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
42
|
+
import { personDisclosure as ji } from "./lib/disclosures/personDisclosure.js";
|
|
43
|
+
import { useAcceptWidgetDisclosures as Mi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
44
|
+
import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
45
|
+
import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
|
|
46
|
+
import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
47
|
+
import { useOrganizationApplicationStatus as Ii } from "./lib/useOrganizationApplicationStatus.js";
|
|
48
|
+
export { Qr as EmbedApiProvider, Pi as OnboardingSuppressionReason, Fr as OrganizationStatus, mi as Scope, qe as activateCreditCardMutation, Je as activateDebitCardMutation, zr as applicationStatusInvalidationKey, Br as applicationStatusQueryOptions, Zr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Hr as cancelAllClients, Yr as cloneEmbeddedClient, Ye as connectExternalBankAccountMutation, Xe as createAchMoneyMovementMutation, Ze as createApplicationMutation, Qe as createBankAccountMutation, $e as createBookTransferMutation, et as createCheckDepositMutation, Vr as createClientSecretInstaller, tt as createDebitCardMutation, r as createDepartment, Xr as createEmbeddedClient, i as createLocation, a as createUser, nt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, rt as deleteApprovalPoliciesIdMutation, it as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, at as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, ot as deleteReceiptsIdMutation, g as deleteReceivablesId, st as disableUserMutation, _ as downloadBankAccountTransactions, ni as fetchWidgetInit, gi as getAllPagesNextPageParam, _i as getAllPagesNextPaginationTokenParam, ct as getAnalyticsPayablesOptions, lt as getAnalyticsPayablesQueryKey, ut as getAnalyticsReceiptsOptions, dt as getAnalyticsReceiptsQueryKey, ft as getAnalyticsReceivablesOptions, pt as getAnalyticsReceivablesQueryKey, mt as getAnalyticsTransactionsOptions, ht as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, gt as getApprovalPoliciesOptions, _t as getApprovalPoliciesQueryKey, b as getApprovalRequests, vt as getApprovalRequestsOptions, yt as getApprovalRequestsQueryKey, x as getBankAccountAccess, bt as getBankAccountAccessQueryKey, xt as getBankAccountApplicationOptions, St as getBankAccountOptions, Ct as getBankAccountQueryKey, S as getBankAccountStatement, wt as getBankAccountStatementsOptions, Tt as getBankAccountTransactionsOptions, Et as getBankAccountTransactionsQueryKey, Dt as getBankAccountsQueryKey, Ot as getBankDetailsIdOptions, kt as getBankDetailsOptions, At as getBankDetailsQueryKey, C as getCounterparts, jt as getCounterpartsIdAddressesOptions, Mt as getCounterpartsIdAddressesQueryKey, Nt as getCounterpartsIdBankAccountsOptions, Pt as getCounterpartsIdBankAccountsQueryKey, Ft as getCounterpartsIdOptions, It as getCounterpartsIdQueryKey, Lt as getCounterpartsOptions, Rt as getCounterpartsQueryKey, zt as getCreditCardByIdOptions, Bt as getCreditCardByIdQueryKey, Vt as getCreditCardsOptions, Ht as getCreditCardsQueryKey, Ut as getDebitCardByIdOptions, Wt as getDebitCardByIdQueryKey, Gt as getDebitCardCredentialsOptions, Kt as getDebitCardsOptions, qt as getDebitCardsQueryKey, w as getDepartment, Jt as getDepartmentOptions, Yt as getDepartmentQueryKey, T as getDepositableBankAccounts, Xt as getDepositableBankAccountsOptions, Zt as getDocumentsIdNextNumbersOptions, Qt as getDocumentsIdNextNumbersQueryKey, $t as getEntitiesIdPaymentMethodsOptions, en as getEntitiesIdSettingsOptions, tn as getEntitiesIdSettingsQueryKey, nn as getEntityUsersOptions, E as getExternalBankAccountAccess, rn as getExternalBankAccountAccessQueryKey, an as getExternalBankAccountOptions, on as getExternalBankAccountsOptions, sn as getExternalBankAccountsQueryKey, cn as getFilesQueryKey, ln as getLedgerAccountsQueryKey, D as getLocation, un as getLocationOptions, dn as getLocationQueryKey, fn as getMeOptions, pn as getMeasureUnitsOptions, mn as getMeasureUnitsQueryKey, hn as getOrganizationOptions, gn as getOrganizationTransfersOptions, _n as getOrganizationTransfersQueryKey, vn as getOverdueRemindersOptions, yn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, bn as getPayablesIdHistoryOptions, xn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, Sn as getPayablesIdLineItemsOptions, Cn as getPayablesIdLineItemsQueryKey, wn as getPayablesIdOptions, Tn as getPayablesIdQueryKey, En as getPayablesIdSuggestionsOptions, Dn as getPayablesOptions, On as getPayablesQueryKey, M as getPaymentRecords, kn as getPaymentRecordsOptions, An as getPaymentRecordsQueryKey, jn as getPaymentRemindersOptions, Mn as getPaymentRemindersQueryKey, N as getProducts, Nn as getProductsIdOptions, Pn as getProductsIdQueryKey, Fn as getProductsOptions, In as getProductsQueryKey, P as getReceipts, Ln as getReceiptsIdQueryKey, Rn as getReceiptsOptions, zn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Bn as getReceivablesIdHistoryQueryKey, Vn as getReceivablesIdMailsQueryKey, Hn as getReceivablesIdOptions, Un as getReceivablesIdPdfLinkOptions, Wn as getReceivablesIdPdfLinkQueryKey, Gn as getReceivablesIdQueryKey, Kn as getReceivablesOptions, qn as getReceivablesQueryKey, Jn as getReceivablesRequiredFieldsOptions, Yn as getRecurrencesIdOptions, Xn as getRecurrencesIdQueryKey, Zn as getRecurrencesQueryKey, Qn as getTransactionsIdExpenseHistoryOptions, $n as getTransactionsIdExpenseHistoryQueryKey, er as getTransactionsIdOptions, tr as getTransactionsIdQueryKey, nr as getTransactionsOptions, rr as getTransactionsQueryKey, ir as getTransactionsValidationsOptions, ar as getTransactionsValidationsQueryKey, L as getUsers, or as getUsersOptions, sr as getUsersQueryKey, cr as getVelocityControlsQueryKey, lr as grantBankAccountAccessMutation, ur as grantExternalBankAccountAccessMutation, ri as hasAnyScope, Ur as invalidateAllClients, vi as isAllPagesResolving, ci as isApiConflictError, li as isApiForbiddenError, ui as isApiNotFoundError, di as isApiUnprocessableError, Ir as isOrganizationOnItsWay, hi as isScope, dr as linkExternalBankAccountMutation, R as listDepartments, fr as listDepartmentsOptions, pr as listDepartmentsQueryKey, z as listLocations, mr as listLocationsOptions, hr as listLocationsQueryKey, B as listRoles, gr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, _r as manageDebitCardAccessMutation, ii as myEntityInvalidationKey, ei as optionalOrganizationHeaders, ti as organizationHeaders, vr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, yr as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, br as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, ji as personDisclosure, xr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postFiles, Sr 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 postPaymentRecords, Ce as postPaymentReminders, we as postProducts, Cr as postReceiptsUploadFromFileMutation, Te as postReceivables, Ee as postReceivablesIdAccept, De as postReceivablesIdCancel, Oe as postReceivablesIdClone, ke as postReceivablesIdDecline, Ae as postReceivablesIdIssue, je as postReceivablesIdMarkAsPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postRecurrencesIdCancel, Ie as postRecurrencesIdPause, Le as postRecurrencesIdResume, Re as postTransactionsIdApprove, ze as postTransactionsIdReject, Be as postTransactionsIdReopen, Ve as postTransactionsIdSubmit, He as putEntitiesIdLogo, Ue as putPayablesIdLineItems, wr as putTransactionsValidationsMutation, Wr as registerQueryClient, Gr as removeInactiveFromAllClients, Kr as resetAllClients, qr as setAllClientsQueriesData, Tr as setDebitCardLockStatusMutation, Er as submitApplicationMutation, Dr as unlinkExternalBankAccountMutation, Jr as unregisterQueryClient, Or as updateApplicationMutation, kr as updateBankAccountMutation, Ar as updateDebitCardMutation, We as updateDepartment, jr as updateExternalBankAccountMutation, Ge as updateLocation, Ke as updateUser, Mi as useAcceptWidgetDisclosures, bi as useAllBankAccountsQuery, xi as useAllDebitCardsQuery, Si as useAllExternalBankAccountsQuery, wi as useAllLedgerAccountsQuery, Ci as useAllMerchantCategoryGroupsQuery, Oi as useAllOrganizationRolesQuery, Ai as useAllOrganizationUsersQuery, yi as useAutoFetchNextPage, ai as useCurrentUserQuery, Ni as useDisclosuresQuery, $r as useEmbedApi, fi as useGetUserDataQuery, Ti as useLedgerAccountsQuery, si as useMailboxAddress, oi as useMyEntityQuery, Ii as useOrganizationApplicationStatus, Fi as useOrganizationOnboardingSuppression, Di as useOrganizationQuery, Ei as usePaymentTermsQuery, ki as useRolePermissionsQueries, pi as useUpsertUserDataMutation, Mr as validateExternalBankAccountMutation, Nr as verifyDebitCardMutation, Pr as widgetTokenCacheId, Lr as withAuthEpoch, Rr as withAuthEpochInfinite };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js
CHANGED
|
@@ -1278,19 +1278,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1278
1278
|
}],
|
|
1279
1279
|
url: "/finops/v1/payment-intents/{payment_intent_id}/cancel",
|
|
1280
1280
|
...e
|
|
1281
|
-
}), ft = (e) => (e.client ?? t).
|
|
1282
|
-
security: [{
|
|
1283
|
-
key: "HTTPBearer",
|
|
1284
|
-
scheme: "bearer",
|
|
1285
|
-
type: "http"
|
|
1286
|
-
}],
|
|
1287
|
-
url: "/finops/v1/payment-links",
|
|
1288
|
-
...e,
|
|
1289
|
-
headers: {
|
|
1290
|
-
"Content-Type": "application/json",
|
|
1291
|
-
...e.headers
|
|
1292
|
-
}
|
|
1293
|
-
}), pt = (e) => (e.client ?? t).get({
|
|
1281
|
+
}), ft = (e) => (e.client ?? t).get({
|
|
1294
1282
|
security: [{
|
|
1295
1283
|
key: "HTTPBearer",
|
|
1296
1284
|
scheme: "bearer",
|
|
@@ -1298,7 +1286,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1298
1286
|
}],
|
|
1299
1287
|
url: "/finops/v1/payment-records",
|
|
1300
1288
|
...e
|
|
1301
|
-
}),
|
|
1289
|
+
}), pt = (e) => (e.client ?? t).post({
|
|
1302
1290
|
security: [{
|
|
1303
1291
|
key: "HTTPBearer",
|
|
1304
1292
|
scheme: "bearer",
|
|
@@ -1310,7 +1298,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1310
1298
|
"Content-Type": "application/json",
|
|
1311
1299
|
...e.headers
|
|
1312
1300
|
}
|
|
1313
|
-
}),
|
|
1301
|
+
}), mt = (e) => (e.client ?? t).get({
|
|
1314
1302
|
security: [{
|
|
1315
1303
|
key: "HTTPBearer",
|
|
1316
1304
|
scheme: "bearer",
|
|
@@ -1318,7 +1306,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1318
1306
|
}],
|
|
1319
1307
|
url: "/finops/v1/payment-reminders",
|
|
1320
1308
|
...e
|
|
1321
|
-
}),
|
|
1309
|
+
}), ht = (e) => (e.client ?? t).post({
|
|
1322
1310
|
security: [{
|
|
1323
1311
|
key: "HTTPBearer",
|
|
1324
1312
|
scheme: "bearer",
|
|
@@ -1330,7 +1318,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1330
1318
|
"Content-Type": "application/json",
|
|
1331
1319
|
...e.headers
|
|
1332
1320
|
}
|
|
1333
|
-
}),
|
|
1321
|
+
}), gt = (e) => (e.client ?? t).get({
|
|
1334
1322
|
security: [{
|
|
1335
1323
|
key: "HTTPBearer",
|
|
1336
1324
|
scheme: "bearer",
|
|
@@ -1338,7 +1326,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1338
1326
|
}],
|
|
1339
1327
|
url: "/finops/v1/payment-terms",
|
|
1340
1328
|
...e
|
|
1341
|
-
}),
|
|
1329
|
+
}), _t = (e) => (e.client ?? t).get({
|
|
1342
1330
|
security: [{
|
|
1343
1331
|
key: "HTTPBearer",
|
|
1344
1332
|
scheme: "bearer",
|
|
@@ -1346,7 +1334,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1346
1334
|
}],
|
|
1347
1335
|
url: "/finops/v1/products",
|
|
1348
1336
|
...e
|
|
1349
|
-
}),
|
|
1337
|
+
}), vt = (e) => (e.client ?? t).post({
|
|
1350
1338
|
security: [{
|
|
1351
1339
|
key: "HTTPBearer",
|
|
1352
1340
|
scheme: "bearer",
|
|
@@ -1358,7 +1346,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1358
1346
|
"Content-Type": "application/json",
|
|
1359
1347
|
...e.headers
|
|
1360
1348
|
}
|
|
1361
|
-
}),
|
|
1349
|
+
}), yt = (e) => (e.client ?? t).delete({
|
|
1362
1350
|
security: [{
|
|
1363
1351
|
key: "HTTPBearer",
|
|
1364
1352
|
scheme: "bearer",
|
|
@@ -1366,7 +1354,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1366
1354
|
}],
|
|
1367
1355
|
url: "/finops/v1/products/{product_id}",
|
|
1368
1356
|
...e
|
|
1369
|
-
}),
|
|
1357
|
+
}), bt = (e) => (e.client ?? t).get({
|
|
1370
1358
|
security: [{
|
|
1371
1359
|
key: "HTTPBearer",
|
|
1372
1360
|
scheme: "bearer",
|
|
@@ -1374,7 +1362,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1374
1362
|
}],
|
|
1375
1363
|
url: "/finops/v1/products/{product_id}",
|
|
1376
1364
|
...e
|
|
1377
|
-
}),
|
|
1365
|
+
}), xt = (e) => (e.client ?? t).patch({
|
|
1378
1366
|
security: [{
|
|
1379
1367
|
key: "HTTPBearer",
|
|
1380
1368
|
scheme: "bearer",
|
|
@@ -1386,7 +1374,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1386
1374
|
"Content-Type": "application/json",
|
|
1387
1375
|
...e.headers
|
|
1388
1376
|
}
|
|
1389
|
-
}),
|
|
1377
|
+
}), St = (e) => (e.client ?? t).get({
|
|
1390
1378
|
security: [{
|
|
1391
1379
|
key: "HTTPBearer",
|
|
1392
1380
|
scheme: "bearer",
|
|
@@ -1394,7 +1382,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1394
1382
|
}],
|
|
1395
1383
|
url: "/finops/v1/receipts",
|
|
1396
1384
|
...e
|
|
1397
|
-
}),
|
|
1385
|
+
}), Ct = (n) => (n.client ?? t).post({
|
|
1398
1386
|
...e,
|
|
1399
1387
|
security: [{
|
|
1400
1388
|
key: "HTTPBearer",
|
|
@@ -1407,7 +1395,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1407
1395
|
"Content-Type": null,
|
|
1408
1396
|
...n.headers
|
|
1409
1397
|
}
|
|
1410
|
-
}),
|
|
1398
|
+
}), wt = (e) => (e.client ?? t).delete({
|
|
1411
1399
|
security: [{
|
|
1412
1400
|
key: "HTTPBearer",
|
|
1413
1401
|
scheme: "bearer",
|
|
@@ -1415,7 +1403,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1415
1403
|
}],
|
|
1416
1404
|
url: "/finops/v1/receipts/{receipt_id}",
|
|
1417
1405
|
...e
|
|
1418
|
-
}),
|
|
1406
|
+
}), Tt = (e) => (e.client ?? t).patch({
|
|
1419
1407
|
security: [{
|
|
1420
1408
|
key: "HTTPBearer",
|
|
1421
1409
|
scheme: "bearer",
|
|
@@ -1427,7 +1415,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1427
1415
|
"Content-Type": "application/json",
|
|
1428
1416
|
...e.headers
|
|
1429
1417
|
}
|
|
1430
|
-
}),
|
|
1418
|
+
}), Et = (e) => (e.client ?? t).get({
|
|
1431
1419
|
security: [{
|
|
1432
1420
|
key: "HTTPBearer",
|
|
1433
1421
|
scheme: "bearer",
|
|
@@ -1435,7 +1423,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1435
1423
|
}],
|
|
1436
1424
|
url: "/finops/v1/receivables",
|
|
1437
1425
|
...e
|
|
1438
|
-
}),
|
|
1426
|
+
}), Dt = (e) => (e.client ?? t).post({
|
|
1439
1427
|
security: [{
|
|
1440
1428
|
key: "HTTPBearer",
|
|
1441
1429
|
scheme: "bearer",
|
|
@@ -1447,7 +1435,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1447
1435
|
"Content-Type": "application/json",
|
|
1448
1436
|
...e.headers
|
|
1449
1437
|
}
|
|
1450
|
-
}),
|
|
1438
|
+
}), Ot = (e) => (e.client ?? t).get({
|
|
1451
1439
|
security: [{
|
|
1452
1440
|
key: "HTTPBearer",
|
|
1453
1441
|
scheme: "bearer",
|
|
@@ -1455,7 +1443,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1455
1443
|
}],
|
|
1456
1444
|
url: "/finops/v1/receivables/required-fields",
|
|
1457
1445
|
...e
|
|
1458
|
-
}),
|
|
1446
|
+
}), kt = (e) => (e.client ?? t).delete({
|
|
1459
1447
|
security: [{
|
|
1460
1448
|
key: "HTTPBearer",
|
|
1461
1449
|
scheme: "bearer",
|
|
@@ -1463,7 +1451,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1463
1451
|
}],
|
|
1464
1452
|
url: "/finops/v1/receivables/{receivable_id}",
|
|
1465
1453
|
...e
|
|
1466
|
-
}),
|
|
1454
|
+
}), At = (e) => (e.client ?? t).get({
|
|
1467
1455
|
security: [{
|
|
1468
1456
|
key: "HTTPBearer",
|
|
1469
1457
|
scheme: "bearer",
|
|
@@ -1471,7 +1459,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1471
1459
|
}],
|
|
1472
1460
|
url: "/finops/v1/receivables/{receivable_id}",
|
|
1473
1461
|
...e
|
|
1474
|
-
}),
|
|
1462
|
+
}), jt = (e) => (e.client ?? t).patch({
|
|
1475
1463
|
security: [{
|
|
1476
1464
|
key: "HTTPBearer",
|
|
1477
1465
|
scheme: "bearer",
|
|
@@ -1483,7 +1471,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1483
1471
|
"Content-Type": "application/json",
|
|
1484
1472
|
...e.headers
|
|
1485
1473
|
}
|
|
1486
|
-
}),
|
|
1474
|
+
}), Mt = (e) => (e.client ?? t).post({
|
|
1487
1475
|
security: [{
|
|
1488
1476
|
key: "HTTPBearer",
|
|
1489
1477
|
scheme: "bearer",
|
|
@@ -1495,7 +1483,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1495
1483
|
"Content-Type": "application/json",
|
|
1496
1484
|
...e.headers
|
|
1497
1485
|
}
|
|
1498
|
-
}),
|
|
1486
|
+
}), Nt = (e) => (e.client ?? t).post({
|
|
1499
1487
|
security: [{
|
|
1500
1488
|
key: "HTTPBearer",
|
|
1501
1489
|
scheme: "bearer",
|
|
@@ -1503,7 +1491,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1503
1491
|
}],
|
|
1504
1492
|
url: "/finops/v1/receivables/{receivable_id}/cancel",
|
|
1505
1493
|
...e
|
|
1506
|
-
}),
|
|
1494
|
+
}), Pt = (e) => (e.client ?? t).post({
|
|
1507
1495
|
security: [{
|
|
1508
1496
|
key: "HTTPBearer",
|
|
1509
1497
|
scheme: "bearer",
|
|
@@ -1511,7 +1499,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1511
1499
|
}],
|
|
1512
1500
|
url: "/finops/v1/receivables/{receivable_id}/clone",
|
|
1513
1501
|
...e
|
|
1514
|
-
}),
|
|
1502
|
+
}), Ft = (e) => (e.client ?? t).post({
|
|
1515
1503
|
security: [{
|
|
1516
1504
|
key: "HTTPBearer",
|
|
1517
1505
|
scheme: "bearer",
|
|
@@ -1523,7 +1511,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1523
1511
|
"Content-Type": "application/json",
|
|
1524
1512
|
...e.headers
|
|
1525
1513
|
}
|
|
1526
|
-
}),
|
|
1514
|
+
}), It = (e) => (e.client ?? t).get({
|
|
1527
1515
|
security: [{
|
|
1528
1516
|
key: "HTTPBearer",
|
|
1529
1517
|
scheme: "bearer",
|
|
@@ -1531,7 +1519,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1531
1519
|
}],
|
|
1532
1520
|
url: "/finops/v1/receivables/{receivable_id}/history",
|
|
1533
1521
|
...e
|
|
1534
|
-
}),
|
|
1522
|
+
}), Lt = (e) => (e.client ?? t).post({
|
|
1535
1523
|
security: [{
|
|
1536
1524
|
key: "HTTPBearer",
|
|
1537
1525
|
scheme: "bearer",
|
|
@@ -1539,7 +1527,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1539
1527
|
}],
|
|
1540
1528
|
url: "/finops/v1/receivables/{receivable_id}/issue",
|
|
1541
1529
|
...e
|
|
1542
|
-
}),
|
|
1530
|
+
}), Rt = (e) => (e.client ?? t).post({
|
|
1543
1531
|
security: [{
|
|
1544
1532
|
key: "HTTPBearer",
|
|
1545
1533
|
scheme: "bearer",
|
|
@@ -1551,7 +1539,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1551
1539
|
"Content-Type": "application/json",
|
|
1552
1540
|
...e.headers
|
|
1553
1541
|
}
|
|
1554
|
-
}),
|
|
1542
|
+
}), zt = (e) => (e.client ?? t).post({
|
|
1555
1543
|
security: [{
|
|
1556
1544
|
key: "HTTPBearer",
|
|
1557
1545
|
scheme: "bearer",
|
|
@@ -1563,7 +1551,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1563
1551
|
"Content-Type": "application/json",
|
|
1564
1552
|
...e.headers
|
|
1565
1553
|
}
|
|
1566
|
-
}),
|
|
1554
|
+
}), Bt = (e) => (e.client ?? t).get({
|
|
1567
1555
|
security: [{
|
|
1568
1556
|
key: "HTTPBearer",
|
|
1569
1557
|
scheme: "bearer",
|
|
@@ -1571,7 +1559,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1571
1559
|
}],
|
|
1572
1560
|
url: "/finops/v1/receivables/{receivable_id}/pdf-link",
|
|
1573
1561
|
...e
|
|
1574
|
-
}),
|
|
1562
|
+
}), Vt = (e) => (e.client ?? t).post({
|
|
1575
1563
|
security: [{
|
|
1576
1564
|
key: "HTTPBearer",
|
|
1577
1565
|
scheme: "bearer",
|
|
@@ -1583,7 +1571,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1583
1571
|
"Content-Type": "application/json",
|
|
1584
1572
|
...e.headers
|
|
1585
1573
|
}
|
|
1586
|
-
}),
|
|
1574
|
+
}), Ht = (e) => (e.client ?? t).post({
|
|
1587
1575
|
security: [{
|
|
1588
1576
|
key: "HTTPBearer",
|
|
1589
1577
|
scheme: "bearer",
|
|
@@ -1595,7 +1583,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1595
1583
|
"Content-Type": "application/json",
|
|
1596
1584
|
...e.headers
|
|
1597
1585
|
}
|
|
1598
|
-
}),
|
|
1586
|
+
}), Ut = (e) => (e.client ?? t).get({
|
|
1599
1587
|
security: [{
|
|
1600
1588
|
key: "HTTPBearer",
|
|
1601
1589
|
scheme: "bearer",
|
|
@@ -1603,7 +1591,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1603
1591
|
}],
|
|
1604
1592
|
url: "/finops/v1/recurrences/{recurrence_id}",
|
|
1605
1593
|
...e
|
|
1606
|
-
}),
|
|
1594
|
+
}), Wt = (e) => (e.client ?? t).patch({
|
|
1607
1595
|
security: [{
|
|
1608
1596
|
key: "HTTPBearer",
|
|
1609
1597
|
scheme: "bearer",
|
|
@@ -1615,7 +1603,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1615
1603
|
"Content-Type": "application/json",
|
|
1616
1604
|
...e.headers
|
|
1617
1605
|
}
|
|
1618
|
-
}),
|
|
1606
|
+
}), Gt = (e) => (e.client ?? t).post({
|
|
1619
1607
|
security: [{
|
|
1620
1608
|
key: "HTTPBearer",
|
|
1621
1609
|
scheme: "bearer",
|
|
@@ -1623,7 +1611,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1623
1611
|
}],
|
|
1624
1612
|
url: "/finops/v1/recurrences/{recurrence_id}/cancel",
|
|
1625
1613
|
...e
|
|
1626
|
-
}),
|
|
1614
|
+
}), Kt = (e) => (e.client ?? t).post({
|
|
1627
1615
|
security: [{
|
|
1628
1616
|
key: "HTTPBearer",
|
|
1629
1617
|
scheme: "bearer",
|
|
@@ -1631,7 +1619,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1631
1619
|
}],
|
|
1632
1620
|
url: "/finops/v1/recurrences/{recurrence_id}/pause",
|
|
1633
1621
|
...e
|
|
1634
|
-
}),
|
|
1622
|
+
}), qt = (e) => (e.client ?? t).post({
|
|
1635
1623
|
security: [{
|
|
1636
1624
|
key: "HTTPBearer",
|
|
1637
1625
|
scheme: "bearer",
|
|
@@ -1639,7 +1627,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1639
1627
|
}],
|
|
1640
1628
|
url: "/finops/v1/recurrences/{recurrence_id}/resume",
|
|
1641
1629
|
...e
|
|
1642
|
-
}),
|
|
1630
|
+
}), Jt = (e) => (e.client ?? t).get({
|
|
1643
1631
|
security: [{
|
|
1644
1632
|
key: "HTTPBearer",
|
|
1645
1633
|
scheme: "bearer",
|
|
@@ -1647,7 +1635,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1647
1635
|
}],
|
|
1648
1636
|
url: "/finops/v1/transactions",
|
|
1649
1637
|
...e
|
|
1650
|
-
}),
|
|
1638
|
+
}), Yt = (e) => (e.client ?? t).get({
|
|
1651
1639
|
security: [{
|
|
1652
1640
|
key: "HTTPBearer",
|
|
1653
1641
|
scheme: "bearer",
|
|
@@ -1655,7 +1643,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1655
1643
|
}],
|
|
1656
1644
|
url: "/finops/v1/transactions/validations",
|
|
1657
1645
|
...e
|
|
1658
|
-
}),
|
|
1646
|
+
}), Xt = (e) => (e.client ?? t).put({
|
|
1659
1647
|
security: [{
|
|
1660
1648
|
key: "HTTPBearer",
|
|
1661
1649
|
scheme: "bearer",
|
|
@@ -1667,7 +1655,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1667
1655
|
"Content-Type": "application/json",
|
|
1668
1656
|
...e.headers
|
|
1669
1657
|
}
|
|
1670
|
-
}),
|
|
1658
|
+
}), Zt = (e) => (e.client ?? t).get({
|
|
1671
1659
|
security: [{
|
|
1672
1660
|
key: "HTTPBearer",
|
|
1673
1661
|
scheme: "bearer",
|
|
@@ -1675,7 +1663,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1675
1663
|
}],
|
|
1676
1664
|
url: "/finops/v1/transactions/{transaction_id}",
|
|
1677
1665
|
...e
|
|
1678
|
-
}),
|
|
1666
|
+
}), Qt = (e) => (e.client ?? t).patch({
|
|
1679
1667
|
security: [{
|
|
1680
1668
|
key: "HTTPBearer",
|
|
1681
1669
|
scheme: "bearer",
|
|
@@ -1687,7 +1675,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1687
1675
|
"Content-Type": "application/json",
|
|
1688
1676
|
...e.headers
|
|
1689
1677
|
}
|
|
1690
|
-
}),
|
|
1678
|
+
}), $t = (e) => (e.client ?? t).post({
|
|
1691
1679
|
security: [{
|
|
1692
1680
|
key: "HTTPBearer",
|
|
1693
1681
|
scheme: "bearer",
|
|
@@ -1695,7 +1683,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1695
1683
|
}],
|
|
1696
1684
|
url: "/finops/v1/transactions/{transaction_id}/approve",
|
|
1697
1685
|
...e
|
|
1698
|
-
}),
|
|
1686
|
+
}), en = (e) => (e.client ?? t).get({
|
|
1699
1687
|
security: [{
|
|
1700
1688
|
key: "HTTPBearer",
|
|
1701
1689
|
scheme: "bearer",
|
|
@@ -1703,7 +1691,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1703
1691
|
}],
|
|
1704
1692
|
url: "/finops/v1/transactions/{transaction_id}/expense-history",
|
|
1705
1693
|
...e
|
|
1706
|
-
}),
|
|
1694
|
+
}), tn = (e) => (e.client ?? t).post({
|
|
1707
1695
|
security: [{
|
|
1708
1696
|
key: "HTTPBearer",
|
|
1709
1697
|
scheme: "bearer",
|
|
@@ -1715,7 +1703,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1715
1703
|
"Content-Type": "application/json",
|
|
1716
1704
|
...e.headers
|
|
1717
1705
|
}
|
|
1718
|
-
}),
|
|
1706
|
+
}), nn = (e) => (e.client ?? t).post({
|
|
1719
1707
|
security: [{
|
|
1720
1708
|
key: "HTTPBearer",
|
|
1721
1709
|
scheme: "bearer",
|
|
@@ -1723,7 +1711,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1723
1711
|
}],
|
|
1724
1712
|
url: "/finops/v1/transactions/{transaction_id}/reopen",
|
|
1725
1713
|
...e
|
|
1726
|
-
}),
|
|
1714
|
+
}), rn = (e) => (e.client ?? t).post({
|
|
1727
1715
|
security: [{
|
|
1728
1716
|
key: "HTTPBearer",
|
|
1729
1717
|
scheme: "bearer",
|
|
@@ -1735,7 +1723,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1735
1723
|
"Content-Type": "application/json",
|
|
1736
1724
|
...e.headers
|
|
1737
1725
|
}
|
|
1738
|
-
}),
|
|
1726
|
+
}), an = (e) => (e?.client ?? t).get({
|
|
1739
1727
|
security: [{
|
|
1740
1728
|
key: "APPToken",
|
|
1741
1729
|
scheme: "bearer",
|
|
@@ -1747,7 +1735,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1747
1735
|
}],
|
|
1748
1736
|
url: "/identity/v1/departments",
|
|
1749
1737
|
...e
|
|
1750
|
-
}),
|
|
1738
|
+
}), on = (e) => (e.client ?? t).post({
|
|
1751
1739
|
security: [{
|
|
1752
1740
|
key: "APPToken",
|
|
1753
1741
|
scheme: "bearer",
|
|
@@ -1763,7 +1751,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1763
1751
|
"Content-Type": "application/json",
|
|
1764
1752
|
...e.headers
|
|
1765
1753
|
}
|
|
1766
|
-
}),
|
|
1754
|
+
}), sn = (e) => (e.client ?? t).delete({
|
|
1767
1755
|
security: [{
|
|
1768
1756
|
key: "APPToken",
|
|
1769
1757
|
scheme: "bearer",
|
|
@@ -1775,7 +1763,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1775
1763
|
}],
|
|
1776
1764
|
url: "/identity/v1/departments/{departmentId}",
|
|
1777
1765
|
...e
|
|
1778
|
-
}),
|
|
1766
|
+
}), cn = (e) => (e.client ?? t).get({
|
|
1779
1767
|
security: [{
|
|
1780
1768
|
key: "APPToken",
|
|
1781
1769
|
scheme: "bearer",
|
|
@@ -1787,7 +1775,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1787
1775
|
}],
|
|
1788
1776
|
url: "/identity/v1/departments/{departmentId}",
|
|
1789
1777
|
...e
|
|
1790
|
-
}),
|
|
1778
|
+
}), ln = (e) => (e.client ?? t).put({
|
|
1791
1779
|
security: [{
|
|
1792
1780
|
key: "APPToken",
|
|
1793
1781
|
scheme: "bearer",
|
|
@@ -1803,7 +1791,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1803
1791
|
"Content-Type": "application/json",
|
|
1804
1792
|
...e.headers
|
|
1805
1793
|
}
|
|
1806
|
-
}),
|
|
1794
|
+
}), un = (e) => (e.client ?? t).post({
|
|
1807
1795
|
security: [{
|
|
1808
1796
|
key: "APPToken",
|
|
1809
1797
|
scheme: "bearer",
|
|
@@ -1819,7 +1807,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1819
1807
|
"Content-Type": "application/json",
|
|
1820
1808
|
...e.headers
|
|
1821
1809
|
}
|
|
1822
|
-
}),
|
|
1810
|
+
}), dn = (e) => (e?.client ?? t).get({
|
|
1823
1811
|
security: [{
|
|
1824
1812
|
key: "HTTPBearer",
|
|
1825
1813
|
scheme: "bearer",
|
|
@@ -1827,7 +1815,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1827
1815
|
}],
|
|
1828
1816
|
url: "/identity/v1/disclosures",
|
|
1829
1817
|
...e
|
|
1830
|
-
}),
|
|
1818
|
+
}), fn = (e) => (e?.client ?? t).get({
|
|
1831
1819
|
security: [{
|
|
1832
1820
|
key: "APPToken",
|
|
1833
1821
|
scheme: "bearer",
|
|
@@ -1839,7 +1827,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1839
1827
|
}],
|
|
1840
1828
|
url: "/identity/v1/locations",
|
|
1841
1829
|
...e
|
|
1842
|
-
}),
|
|
1830
|
+
}), pn = (e) => (e.client ?? t).post({
|
|
1843
1831
|
security: [{
|
|
1844
1832
|
key: "APPToken",
|
|
1845
1833
|
scheme: "bearer",
|
|
@@ -1855,7 +1843,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1855
1843
|
"Content-Type": "application/json",
|
|
1856
1844
|
...e.headers
|
|
1857
1845
|
}
|
|
1858
|
-
}),
|
|
1846
|
+
}), mn = (e) => (e.client ?? t).delete({
|
|
1859
1847
|
security: [{
|
|
1860
1848
|
key: "APPToken",
|
|
1861
1849
|
scheme: "bearer",
|
|
@@ -1867,7 +1855,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1867
1855
|
}],
|
|
1868
1856
|
url: "/identity/v1/locations/{locationId}",
|
|
1869
1857
|
...e
|
|
1870
|
-
}),
|
|
1858
|
+
}), hn = (e) => (e.client ?? t).get({
|
|
1871
1859
|
security: [{
|
|
1872
1860
|
key: "APPToken",
|
|
1873
1861
|
scheme: "bearer",
|
|
@@ -1879,7 +1867,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1879
1867
|
}],
|
|
1880
1868
|
url: "/identity/v1/locations/{locationId}",
|
|
1881
1869
|
...e
|
|
1882
|
-
}),
|
|
1870
|
+
}), gn = (e) => (e.client ?? t).put({
|
|
1883
1871
|
security: [{
|
|
1884
1872
|
key: "APPToken",
|
|
1885
1873
|
scheme: "bearer",
|
|
@@ -1895,7 +1883,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1895
1883
|
"Content-Type": "application/json",
|
|
1896
1884
|
...e.headers
|
|
1897
1885
|
}
|
|
1898
|
-
}),
|
|
1886
|
+
}), _n = (e) => (e.client ?? t).post({
|
|
1899
1887
|
security: [{
|
|
1900
1888
|
key: "APPToken",
|
|
1901
1889
|
scheme: "bearer",
|
|
@@ -1911,7 +1899,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1911
1899
|
"Content-Type": "application/json",
|
|
1912
1900
|
...e.headers
|
|
1913
1901
|
}
|
|
1914
|
-
}),
|
|
1902
|
+
}), vn = (e) => (e.client ?? t).get({
|
|
1915
1903
|
security: [{
|
|
1916
1904
|
key: "APPToken",
|
|
1917
1905
|
scheme: "bearer",
|
|
@@ -1923,7 +1911,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1923
1911
|
}],
|
|
1924
1912
|
url: "/identity/v1/organizations/{organizationId}",
|
|
1925
1913
|
...e
|
|
1926
|
-
}),
|
|
1914
|
+
}), yn = (e) => (e?.client ?? t).get({
|
|
1927
1915
|
security: [{
|
|
1928
1916
|
key: "APPToken",
|
|
1929
1917
|
scheme: "bearer",
|
|
@@ -1935,7 +1923,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1935
1923
|
}],
|
|
1936
1924
|
url: "/identity/v1/roles",
|
|
1937
1925
|
...e
|
|
1938
|
-
}),
|
|
1926
|
+
}), bn = (e) => (e.client ?? t).post({
|
|
1939
1927
|
security: [{
|
|
1940
1928
|
key: "APPToken",
|
|
1941
1929
|
scheme: "bearer",
|
|
@@ -1951,7 +1939,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1951
1939
|
"Content-Type": "application/json",
|
|
1952
1940
|
...e.headers
|
|
1953
1941
|
}
|
|
1954
|
-
}),
|
|
1942
|
+
}), xn = (e) => (e.client ?? t).get({
|
|
1955
1943
|
security: [{
|
|
1956
1944
|
key: "APPToken",
|
|
1957
1945
|
scheme: "bearer",
|
|
@@ -1963,7 +1951,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1963
1951
|
}],
|
|
1964
1952
|
url: "/identity/v1/roles/{roleId}/permissions",
|
|
1965
1953
|
...e
|
|
1966
|
-
}),
|
|
1954
|
+
}), Sn = (e) => (e.client ?? t).get({
|
|
1967
1955
|
security: [{
|
|
1968
1956
|
key: "HTTPBearer",
|
|
1969
1957
|
scheme: "bearer",
|
|
@@ -1971,7 +1959,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1971
1959
|
}],
|
|
1972
1960
|
url: "/identity/v1/user-data/{key}",
|
|
1973
1961
|
...e
|
|
1974
|
-
}),
|
|
1962
|
+
}), Cn = (e) => (e.client ?? t).put({
|
|
1975
1963
|
security: [{
|
|
1976
1964
|
key: "HTTPBearer",
|
|
1977
1965
|
scheme: "bearer",
|
|
@@ -1983,7 +1971,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1983
1971
|
"Content-Type": "application/json",
|
|
1984
1972
|
...e.headers
|
|
1985
1973
|
}
|
|
1986
|
-
}),
|
|
1974
|
+
}), wn = (e) => (e?.client ?? t).get({
|
|
1987
1975
|
security: [{
|
|
1988
1976
|
key: "APPToken",
|
|
1989
1977
|
scheme: "bearer",
|
|
@@ -1995,7 +1983,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
1995
1983
|
}],
|
|
1996
1984
|
url: "/identity/v1/users",
|
|
1997
1985
|
...e
|
|
1998
|
-
}),
|
|
1986
|
+
}), Tn = (e) => (e.client ?? t).post({
|
|
1999
1987
|
security: [{
|
|
2000
1988
|
key: "APPToken",
|
|
2001
1989
|
scheme: "bearer",
|
|
@@ -2011,7 +1999,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2011
1999
|
"Content-Type": "application/json",
|
|
2012
2000
|
...e.headers
|
|
2013
2001
|
}
|
|
2014
|
-
}),
|
|
2002
|
+
}), En = (e) => (e?.client ?? t).get({
|
|
2015
2003
|
security: [{
|
|
2016
2004
|
key: "HTTPBearer",
|
|
2017
2005
|
scheme: "bearer",
|
|
@@ -2019,7 +2007,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2019
2007
|
}],
|
|
2020
2008
|
url: "/identity/v1/users/me",
|
|
2021
2009
|
...e
|
|
2022
|
-
}),
|
|
2010
|
+
}), Dn = (e) => (e.client ?? t).patch({
|
|
2023
2011
|
security: [{
|
|
2024
2012
|
key: "APPToken",
|
|
2025
2013
|
scheme: "bearer",
|
|
@@ -2035,7 +2023,7 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2035
2023
|
"Content-Type": "application/json",
|
|
2036
2024
|
...e.headers
|
|
2037
2025
|
}
|
|
2038
|
-
}),
|
|
2026
|
+
}), On = (e) => (e.client ?? t).post({
|
|
2039
2027
|
security: [{
|
|
2040
2028
|
key: "APPToken",
|
|
2041
2029
|
scheme: "bearer",
|
|
@@ -2048,4 +2036,4 @@ var n = (e) => (e.client ?? t).post({
|
|
|
2048
2036
|
url: "/identity/v1/users/{userId}/disable",
|
|
2049
2037
|
...e
|
|
2050
2038
|
});
|
|
2051
|
-
export { O as activateCreditCard, P as activateDebitCard,
|
|
2039
|
+
export { O as activateCreditCard, P as activateDebitCard, un as bulkUpdateDepartmentMembers, _n as bulkUpdateLocationMembers, bn as bulkUpdateRoleMembers, z as connectExternalBankAccount, q as createAchMoneyMovement, s as createApplication, p as createBankAccount, J as createBookTransfer, x as createCheckDeposit, A as createDebitCard, on as createDepartment, pn as createLocation, Tn as createUser, o as createVelocityControl, sn as deactivateDepartment, mn as deactivateLocation, te as deleteApprovalPoliciesId, c as deleteBankAccountApplication, de as deleteCounterpartsId, ye as deleteCounterpartsIdBankAccountsId, Se as deleteEntitiesIdLogo, je as deleteFilesId, Pe as deleteLedgerAccountsId, ze as deleteMeasureUnitsId, Ke as deletePayablesId, et as deletePayablesIdFile, yt as deleteProductsId, wt as deleteReceiptsId, kt as deleteReceivablesId, On as disableUser, T as downloadBankAccountTransactions, Y as getAnalyticsPayables, X as getAnalyticsReceipts, Z as getAnalyticsReceivables, Q as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, $ as getApprovalPolicies, re as getApprovalRequests, _ as getBankAccount, y as getBankAccountAccess, l as getBankAccountApplication, C as getBankAccountStatement, S as getBankAccountStatements, w as getBankAccountTransactions, f as getBankAccounts, oe as getBankDetails, ce as getBankDetailsId, le as getCounterparts, fe as getCounterpartsId, me as getCounterpartsIdAddresses, _e as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, cn as getDepartment, h as getDepositableBankAccounts, dn as getDisclosures, xe as getDocumentsIdNextNumbers, we as getEntitiesIdPaymentMethods, Te as getEntitiesIdSettings, De as getEntityUsers, Oe as getEntityUsersMe, ke as getEntityUsersMyEntity, V as getExternalBankAccount, U as getExternalBankAccountAccess, R as getExternalBankAccounts, Me as getLedgerAccounts, hn as getLocation, Ie as getMailboxes, En as getMe, Le as getMeasureUnits, a as getMerchantCategoryGroups, vn as getOrganization, g as getOrganizationTransfers, Ve as getOverdueReminders, Ue as getPayables, qe as getPayablesId, tt as getPayablesIdHistory, nt as getPayablesIdLineItems, lt as getPayablesIdSuggestions, ft as getPaymentRecords, mt as getPaymentReminders, gt as getPaymentTerms, _t as getProducts, bt as getProductsId, St as getReceipts, Et as getReceivables, At as getReceivablesId, It as getReceivablesIdHistory, Bt as getReceivablesIdPdfLink, Ot as getReceivablesRequiredFields, Ut as getRecurrencesId, Jt as getTransactions, Zt as getTransactionsId, en as getTransactionsIdExpenseHistory, Yt as getTransactionsValidations, Sn as getUserData, wn as getUsers, b as grantBankAccountAccess, W as grantExternalBankAccountAccess, G as linkExternalBankAccount, an as listDepartments, fn as listLocations, xn as listRolePermissions, yn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, ne as patchApprovalPoliciesId, pe as patchCounterpartsId, ge as patchCounterpartsIdAddressesId, be as patchCounterpartsIdBankAccountsId, Ee as patchEntitiesIdSettings, Fe as patchLedgerAccountsId, Be as patchMeasureUnitsId, Je as patchPayablesId, xt as patchProductsId, Tt as patchReceiptsId, jt as patchReceivablesId, Wt as patchRecurrencesId, Qt as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, ee as postApprovalPolicies, ie as postApprovalRequestsIdApprove, ae as postApprovalRequestsIdReject, se as postBankDetails, ue as postCounterparts, he as postCounterpartsIdAddresses, ve as postCounterpartsIdBankAccounts, Ae as postFiles, Ne as postLedgerAccounts, Re as postMeasureUnits, He as postOverdueReminders, We as postPayables, Ye as postPayablesIdApprovePaymentOperation, Xe as postPayablesIdAttachFile, Ze as postPayablesIdCancel, Qe as postPayablesIdDuplicatesIdConfirm, $e as postPayablesIdDuplicatesIdDismiss, it as postPayablesIdMarkAsPaid, at as postPayablesIdReject, ot as postPayablesIdReopen, st as postPayablesIdSchedulePayment, ct as postPayablesIdSubmitForApproval, ut as postPayablesIdValidate, Ge as postPayablesUploadFromFile, dt as postPaymentIntentsIdCancel, pt as postPaymentRecords, ht as postPaymentReminders, vt as postProducts, Ct as postReceiptsUploadFromFile, Dt as postReceivables, Mt as postReceivablesIdAccept, Nt as postReceivablesIdCancel, Pt as postReceivablesIdClone, Ft as postReceivablesIdDecline, Lt as postReceivablesIdIssue, Rt as postReceivablesIdMarkAsPaid, zt as postReceivablesIdMarkAsUncollectible, Vt as postReceivablesIdSend, Ht as postRecurrences, Gt as postRecurrencesIdCancel, Kt as postRecurrencesIdPause, qt as postRecurrencesIdResume, $t as postTransactionsIdApprove, tn as postTransactionsIdReject, nn as postTransactionsIdReopen, rn as postTransactionsIdSubmit, Ce as putEntitiesIdLogo, rt as putPayablesIdLineItems, Xt as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, v as updateBankAccount, N as updateDebitCard, ln as updateDepartment, H as updateExternalBankAccount, gn as updateLocation, Dn as updateUser, Cn as upsertUserData, K as validateExternalBankAccount, L as verifyDebitCard };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.46", n = "f80778f72f9dd7ae57644adae6db2e053b3c1ac9", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tesouro/embedded-components-react",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.46",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"tailwind-merge": "^3.7.0",
|
|
276
276
|
"tailwind-variants": "^3.3.1",
|
|
277
277
|
"type-fest": "^4.41.0",
|
|
278
|
-
"zod": "^4.6.
|
|
278
|
+
"zod": "^4.6.6"
|
|
279
279
|
},
|
|
280
280
|
"peerDependencies": {
|
|
281
281
|
"react": "^19.0.0",
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { toast as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { useMyEntityQuery as t } from "../../../../../shared/data-access/dist/lib/useMyEntityQuery.js";
|
|
7
|
-
import "../../../../../shared/data-access/dist/index.js";
|
|
8
|
-
import "../../../../../shared/ui/dist/index.js";
|
|
9
|
-
import { useEntityPaymentMethodsQuery as n } from "../../../../data-access/dist/index5.js";
|
|
10
|
-
import { useCreatePaymentLinkMutation as r } from "../../../../data-access/dist/index7.js";
|
|
11
|
-
import { useSendReceivableEmailMutation as i } from "../../../../data-access/dist/index10.js";
|
|
12
|
-
import "../../../../data-access/dist/index.js";
|
|
13
|
-
import { getReceivePaymentMethods as a } from "./preview.js";
|
|
14
|
-
import { useCallback as o, useEffect as s, useRef as c } from "react";
|
|
15
|
-
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js
|
|
16
|
-
function l({ messages: l, documentType: u }) {
|
|
17
|
-
let d = u === "invoice", f = t({ enabled: d }), p = f.data?.id, m = n({
|
|
18
|
-
entityId: p,
|
|
19
|
-
enabled: d
|
|
20
|
-
}), h = r(), g = i(), _ = f.error || m.error ? void 0 : m.data?.data, v = c(void 0);
|
|
21
|
-
s(() => {
|
|
22
|
-
u || (v.current = void 0);
|
|
23
|
-
}, [u]);
|
|
24
|
-
let y = h.mutateAsync, b = g.mutateAsync, x = l.actionsSendWithoutPaymentLink;
|
|
25
|
-
return {
|
|
26
|
-
send: o(async (t) => {
|
|
27
|
-
if (!d) return b(t);
|
|
28
|
-
let n = t.path.receivable_id, r = a(_);
|
|
29
|
-
return !p || r.length === 0 ? e.error(x) : v.current !== n && (await y({ body: {
|
|
30
|
-
recipient: {
|
|
31
|
-
id: p,
|
|
32
|
-
type: "entity"
|
|
33
|
-
},
|
|
34
|
-
payment_methods: r.map((e) => e.type),
|
|
35
|
-
object: {
|
|
36
|
-
id: n,
|
|
37
|
-
type: "receivable"
|
|
38
|
-
}
|
|
39
|
-
} }), v.current = n), b(t);
|
|
40
|
-
}, [
|
|
41
|
-
d,
|
|
42
|
-
y,
|
|
43
|
-
p,
|
|
44
|
-
_,
|
|
45
|
-
b,
|
|
46
|
-
x
|
|
47
|
-
]),
|
|
48
|
-
isPending: d && (f.isFetching || m.isFetching) || h.isPending || g.isPending
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
export { l as useSendReceivableWithPaymentLink };
|