@tesouro/embedded-components-react 0.5.273 → 0.5.274
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 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +173 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +42 -94
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +91 -76
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +67 -173
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +16 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +66 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +24 -168
- 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/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +47 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +125 -122
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +50 -47
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +83 -71
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -11,56 +11,59 @@ import { useCreateProductMutation as i } from "../../../../../shared/product-cat
|
|
|
11
11
|
import { useMeasureUnits as a } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
|
|
12
12
|
import "../../../../../shared/product-catalog/feature/dist/index.js";
|
|
13
13
|
import { getInlineItemPriceLabel as o, getIssueAttachments as s, getIssueSubject as c, getProductsStepTitle as l, inlineItemToProductRequest as u } from "./actionsModal.js";
|
|
14
|
-
import {
|
|
15
|
-
import { useReceivableQuery as f } from "../../../../data-access/dist/index12.js";
|
|
14
|
+
import { useReceivableQuery as d } from "../../../../data-access/dist/index13.js";
|
|
16
15
|
import "../../../../data-access/dist/index.js";
|
|
16
|
+
import { useSendReceivableWithPaymentLink as f } from "./useSendReceivableWithPaymentLink.js";
|
|
17
17
|
import { useCallback as p, useMemo as m, useState as h } from "react";
|
|
18
18
|
//#region ../../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 =
|
|
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 = d(_?.receivableId, { enabled: j }), N = r(j ? _?.counterpartId : void 0), { unitNamesById: P } = a({ enabled: !!_?.inlineItems.length }), { send: F, isPending: I } = f({
|
|
21
|
+
messages: g,
|
|
22
|
+
documentType: j ? _?.documentType : void 0
|
|
23
|
+
}), L = i(), 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 ?? c(V?.document_id, z, g), U = p((e) => {
|
|
21
24
|
v(e), b(e.showEmailStep ? "issue" : "products"), S(void 0), w(void 0), E(""), O(new Set(e.inlineItems.map((e) => e.key)));
|
|
22
|
-
}, []),
|
|
23
|
-
S(e), _?.inlineItems.length ? b("products") :
|
|
24
|
-
}, [
|
|
25
|
-
y === "issue" ?
|
|
25
|
+
}, []), W = p(() => v(void 0), []), G = p((e) => {
|
|
26
|
+
S(e), _?.inlineItems.length ? b("products") : W();
|
|
27
|
+
}, [W, _]), K = p(() => {
|
|
28
|
+
y === "issue" ? G("issued") : W();
|
|
26
29
|
}, [
|
|
27
|
-
U,
|
|
28
30
|
W,
|
|
31
|
+
G,
|
|
29
32
|
y
|
|
30
|
-
]),
|
|
33
|
+
]), q = p(async () => {
|
|
31
34
|
if (_) try {
|
|
32
|
-
await F
|
|
35
|
+
await F({
|
|
33
36
|
path: { receivable_id: _.receivableId },
|
|
34
37
|
body: {
|
|
35
|
-
subject_text:
|
|
38
|
+
subject_text: H,
|
|
36
39
|
body_text: T,
|
|
37
|
-
recipients:
|
|
40
|
+
recipients: B ? { to: [B] } : void 0
|
|
38
41
|
}
|
|
39
|
-
}), e.success(g.actionsSendSucceeded),
|
|
42
|
+
}), e.success(g.actionsSendSucceeded), G("sent");
|
|
40
43
|
} catch {
|
|
41
44
|
e.error(g.actionsSendFailed);
|
|
42
45
|
}
|
|
43
46
|
}, [
|
|
44
|
-
|
|
47
|
+
B,
|
|
45
48
|
T,
|
|
46
49
|
g,
|
|
47
|
-
|
|
48
|
-
|
|
50
|
+
G,
|
|
51
|
+
H,
|
|
49
52
|
F,
|
|
50
53
|
_
|
|
51
|
-
]),
|
|
54
|
+
]), J = _?.inlineItems ?? [], Y = D.size > 0, X = p((e) => {
|
|
52
55
|
O(new Set(e ? (_?.inlineItems ?? []).map((e) => e.key) : []));
|
|
53
|
-
}, [_]),
|
|
56
|
+
}, [_]), Z = p(() => X(!Y), [X, Y]), Q = p((e) => {
|
|
54
57
|
O((t) => {
|
|
55
58
|
let n = new Set(t);
|
|
56
59
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
57
60
|
});
|
|
58
|
-
}, []),
|
|
61
|
+
}, []), $ = p(async () => {
|
|
59
62
|
let t = (_?.inlineItems ?? []).filter((e) => D.has(e.key));
|
|
60
63
|
if (t.length) {
|
|
61
64
|
A(!0);
|
|
62
65
|
try {
|
|
63
|
-
await Promise.all(t.map((e) =>
|
|
66
|
+
await Promise.all(t.map((e) => L.mutateAsync({ body: u(e) }))), e.success(g.actionsProductsSaved), W();
|
|
64
67
|
} catch {
|
|
65
68
|
e.error(g.actionsProductsSaveFailed);
|
|
66
69
|
} finally {
|
|
@@ -68,65 +71,65 @@ function g({ messages: g }) {
|
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
}, [
|
|
71
|
-
|
|
72
|
-
|
|
74
|
+
W,
|
|
75
|
+
L,
|
|
73
76
|
g,
|
|
74
77
|
D,
|
|
75
78
|
_
|
|
76
|
-
]),
|
|
79
|
+
]), ee = m(() => {
|
|
77
80
|
if (_) return y === "issue" ? {
|
|
78
81
|
step: "issue",
|
|
79
|
-
title: g.actionsIssueTitle.replace("{name}",
|
|
80
|
-
recipient:
|
|
81
|
-
subject:
|
|
82
|
+
title: g.actionsIssueTitle.replace("{name}", z),
|
|
83
|
+
recipient: B ? `${z} <${B}>` : z,
|
|
84
|
+
subject: H,
|
|
82
85
|
message: T,
|
|
83
|
-
attachments: s(
|
|
84
|
-
sendDisabled:
|
|
85
|
-
inProgress:
|
|
86
|
+
attachments: s(V),
|
|
87
|
+
sendDisabled: I || !H.trim() || !T.trim(),
|
|
88
|
+
inProgress: I
|
|
86
89
|
} : {
|
|
87
90
|
step: "products",
|
|
88
91
|
title: l(_.action, x, g),
|
|
89
|
-
items:
|
|
92
|
+
items: J.map((e) => ({
|
|
90
93
|
key: e.key,
|
|
91
94
|
name: e.name,
|
|
92
95
|
priceLabel: o(e, P),
|
|
93
96
|
selected: D.has(e.key)
|
|
94
97
|
})),
|
|
95
|
-
allSelected:
|
|
96
|
-
toggleAllLabel:
|
|
97
|
-
saveDisabled: !
|
|
98
|
+
allSelected: J.length > 0 && D.size === J.length,
|
|
99
|
+
toggleAllLabel: Y ? g.actionsDeselectAll : g.actionsSelectAll,
|
|
100
|
+
saveDisabled: !Y || k,
|
|
98
101
|
inProgress: k
|
|
99
102
|
};
|
|
100
103
|
}, [
|
|
104
|
+
B,
|
|
101
105
|
z,
|
|
102
|
-
R,
|
|
103
106
|
k,
|
|
104
107
|
x,
|
|
105
|
-
|
|
108
|
+
J,
|
|
106
109
|
T,
|
|
107
110
|
g,
|
|
108
|
-
B,
|
|
109
111
|
V,
|
|
112
|
+
H,
|
|
110
113
|
D,
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
I,
|
|
115
|
+
Y,
|
|
113
116
|
y,
|
|
114
117
|
_,
|
|
115
118
|
P
|
|
116
119
|
]);
|
|
117
120
|
return {
|
|
118
121
|
isOpen: !!_,
|
|
119
|
-
view:
|
|
120
|
-
open:
|
|
121
|
-
close:
|
|
122
|
-
skip:
|
|
122
|
+
view: ee,
|
|
123
|
+
open: U,
|
|
124
|
+
close: W,
|
|
125
|
+
skip: K,
|
|
123
126
|
changeSubject: w,
|
|
124
127
|
changeMessage: E,
|
|
125
|
-
send:
|
|
126
|
-
toggleItem:
|
|
127
|
-
toggleAll:
|
|
128
|
-
setAllSelected:
|
|
129
|
-
saveItems:
|
|
128
|
+
send: q,
|
|
129
|
+
toggleItem: Q,
|
|
130
|
+
toggleAll: Z,
|
|
131
|
+
setAllSelected: X,
|
|
132
|
+
saveItems: $
|
|
130
133
|
};
|
|
131
134
|
}
|
|
132
135
|
//#endregion
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { toFileArray as e, validateAttachmentFile as t } from "./attachments.js";
|
|
6
|
-
import { useDeleteReceivableAttachmentMutation as n, useUploadReceivableAttachmentMutation as r } from "../../../../data-access/dist/
|
|
6
|
+
import { useDeleteReceivableAttachmentMutation as n, useUploadReceivableAttachmentMutation as r } from "../../../../data-access/dist/index7.js";
|
|
7
7
|
import "../../../../data-access/dist/index.js";
|
|
8
8
|
import { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
|
|
9
9
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js
|
|
@@ -13,9 +13,9 @@ import { RECEIVABLE_DETAILS_SECTION as a } from "../../../../ui/dist/index25.js"
|
|
|
13
13
|
import "../../../../ui/dist/index.js";
|
|
14
14
|
import { useAllReceivableHistoryQuery as ee } from "../../../../data-access/dist/index3.js";
|
|
15
15
|
import { usePaymentAccountsQuery as o } from "../../../../data-access/dist/index5.js";
|
|
16
|
-
import { useReceivablePaymentRecordsQuery as s } from "../../../../data-access/dist/
|
|
17
|
-
import { useReceivablePdfLinkQuery as te, useReceivableQuery as ne, useReceivablesByIdQueries as re } from "../../../../data-access/dist/
|
|
18
|
-
import { useOverdueRemindersQuery as ie, usePaymentRemindersQuery as c, useRecurrenceQuery as l } from "../../../../data-access/dist/
|
|
16
|
+
import { useReceivablePaymentRecordsQuery as s } from "../../../../data-access/dist/index11.js";
|
|
17
|
+
import { useReceivablePdfLinkQuery as te, useReceivableQuery as ne, useReceivablesByIdQueries as re } from "../../../../data-access/dist/index13.js";
|
|
18
|
+
import { useOverdueRemindersQuery as ie, usePaymentRemindersQuery as c, useRecurrenceQuery as l } from "../../../../data-access/dist/index14.js";
|
|
19
19
|
import "../../../../data-access/dist/index.js";
|
|
20
20
|
import { canRecordPayments as u } from "./paymentRecord.js";
|
|
21
21
|
import { buildReceivableAuditHistoryLabels as ae } from "./auditHistory/labels.js";
|
|
@@ -24,8 +24,8 @@ import { convertDiscountInput as we, decorateDiscountInput as Te, discountInputT
|
|
|
24
24
|
import { buildFormTotalsView as Oe, calculateFormTotals as ke, validateDiscount as Ae, validateInvoiceTotals as je } from "./totals.js";
|
|
25
25
|
import { createEmptyReceivableFormValues as Me, hasReceivableFormErrors as Ne, receivableFormValuesToCreatePayload as Pe, receivableFormValuesToLineItemChanges as Fe, receivableFormValuesToUpdatePayload as Ie, receivableToFormValues as Le, resolveCounterpartAddresses as Re, submittedLineItemRows as ze, validateReceivableForm as Be } from "./helpers.js";
|
|
26
26
|
import { getIssueReminderBlocker as Ve, shouldShowRemindersInitially as He } from "./reminders.js";
|
|
27
|
-
import { useCreateReceivableMutation as Ue, useIssueReceivableMutation as We, useUpdateReceivableMutation as Ge } from "../../../../data-access/dist/
|
|
28
|
-
import { useCreateRecurrenceMutation as Ke, useRecurrenceQuery as qe, useUpdateRecurrenceMutation as Je } from "../../../../data-access/dist/
|
|
27
|
+
import { useCreateReceivableMutation as Ue, useIssueReceivableMutation as We, useUpdateReceivableMutation as Ge } from "../../../../data-access/dist/index10.js";
|
|
28
|
+
import { useCreateRecurrenceMutation as Ke, useRecurrenceQuery as qe, useUpdateRecurrenceMutation as Je } from "../../../../data-access/dist/index14.js";
|
|
29
29
|
import "../../../../data-access/dist/index.js";
|
|
30
30
|
import { useReceivableIssuePreflight as Ye } from "./useReceivableIssuePreflight.js";
|
|
31
31
|
import { UNSUBMITTED_PAYLOAD_VARIANTS as Xe, apiValidationErrorsToFormErrors as Ze, getApiErrorMessage as Qe, parseApiValidationErrors as $e } from "./apiValidationErrors.js";
|
|
@@ -6,7 +6,7 @@ import { useMyEntityQuery as e } from "../../../../../shared/data-access/dist/li
|
|
|
6
6
|
import "../../../../../shared/data-access/dist/index.js";
|
|
7
7
|
import { useCounterpartQuery as t } from "../../../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
8
8
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
9
|
-
import { useReceivableRequiredFieldsQuery as n } from "../../../../data-access/dist/
|
|
9
|
+
import { useReceivableRequiredFieldsQuery as n } from "../../../../data-access/dist/index13.js";
|
|
10
10
|
import "../../../../data-access/dist/index.js";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js
|
|
12
12
|
function r({ counterpartId: r, billingAddressId: i, billingCountry: a }) {
|
|
@@ -11,7 +11,7 @@ import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/Wid
|
|
|
11
11
|
import "../../../../../shared/feature/dist/index.js";
|
|
12
12
|
import { getCurrencySymbol as i } from "./lineItems.js";
|
|
13
13
|
import { formatMoney as a } from "./helpers.js";
|
|
14
|
-
import { useCreateReceivablePaymentRecordMutation as o } from "../../../../data-access/dist/
|
|
14
|
+
import { useCreateReceivablePaymentRecordMutation as o } from "../../../../data-access/dist/index12.js";
|
|
15
15
|
import "../../../../data-access/dist/index.js";
|
|
16
16
|
import { amountDueInputValue as s, buildPaymentRecordPayload as c, buildPaymentReviewView as l, defaultPaymentRecordValues as u, hasPaymentRecordErrors as d, validatePaymentRecordValues as f } from "./paymentRecord.js";
|
|
17
17
|
import { useCallback as p, useState as m } from "react";
|
|
@@ -9,7 +9,7 @@ import "../../../../../shared/ui/dist/index.js";
|
|
|
9
9
|
import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import "../../../../../shared/feature/dist/index.js";
|
|
11
11
|
import { areOverdueTermsValid as i, buildOverdueReminderPayload as a, buildPaymentReminderPayload as o, buildRemindersView as s, canCreateReminders as c, getImpliedDueDate as l, isBeforeDueDaysValid as u, sanitizeReminderDays as d } from "./reminders.js";
|
|
12
|
-
import { useCreateOverdueReminderMutation as f, useCreatePaymentReminderMutation as p, useOverdueRemindersQuery as m, usePaymentRemindersQuery as h } from "../../../../data-access/dist/
|
|
12
|
+
import { useCreateOverdueReminderMutation as f, useCreatePaymentReminderMutation as p, useOverdueRemindersQuery as m, usePaymentRemindersQuery as h } from "../../../../data-access/dist/index14.js";
|
|
13
13
|
import "../../../../data-access/dist/index.js";
|
|
14
14
|
import { useCallback as g, useMemo as _, useState as v } from "react";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useReceivablesAnalyticsQuery as e } from "../../../../data-access/dist/
|
|
5
|
+
import { useReceivablesAnalyticsQuery as e } from "../../../../data-access/dist/index15.js";
|
|
6
6
|
import "../../../../data-access/dist/index.js";
|
|
7
7
|
import { buildReceivableStatusCardsView as t } from "./statusCards.js";
|
|
8
8
|
import { useMemo as n } from "react";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { buildReceivableRows as e } from "./helpers.js";
|
|
6
|
-
import { useReceivablesQuery as t } from "../../../../data-access/dist/
|
|
6
|
+
import { useReceivablesQuery as t } from "../../../../data-access/dist/index13.js";
|
|
7
7
|
import "../../../../data-access/dist/index.js";
|
|
8
8
|
import { useInvoicesFilter as n } from "./useInvoicesFilter.js";
|
|
9
9
|
import { useReceivableCustomerNames as r } from "./useReceivableCustomerNames.js";
|
|
@@ -44,6 +44,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
|
|
|
44
44
|
r.openDetails && (N(e), F(!0)), r.actionsModal && W({
|
|
45
45
|
action: n.mode,
|
|
46
46
|
receivableId: e,
|
|
47
|
+
documentType: t,
|
|
47
48
|
counterpartId: n.counterpartId,
|
|
48
49
|
inlineItems: n.inlineItems,
|
|
49
50
|
showEmailStep: r.actionsModal.showEmailStep
|
|
@@ -71,6 +72,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
|
|
|
71
72
|
(i || n.inlineItems.length !== 0) && W({
|
|
72
73
|
action: r || n.mode === "recurrence" ? n.mode : "update",
|
|
73
74
|
receivableId: e,
|
|
75
|
+
documentType: t,
|
|
74
76
|
counterpartId: n.counterpartId,
|
|
75
77
|
inlineItems: n.inlineItems,
|
|
76
78
|
showEmailStep: i
|
|
@@ -106,6 +108,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
|
|
|
106
108
|
onIssuedForSend: (e, t) => W({
|
|
107
109
|
action: "issue",
|
|
108
110
|
receivableId: e,
|
|
111
|
+
documentType: "invoice",
|
|
109
112
|
counterpartId: t,
|
|
110
113
|
inlineItems: [],
|
|
111
114
|
showEmailStep: !0
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { hasAnyScope as t } from "../../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { useMyEntityQuery as n } from "../../../../../shared/data-access/dist/lib/useMyEntityQuery.js";
|
|
8
|
+
import { Scope as r } from "../../../../../shared/data-access/dist/lib/scopes.js";
|
|
9
|
+
import "../../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import "../../../../../shared/ui/dist/index.js";
|
|
11
|
+
import { useWidgetConfig as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
|
+
import "../../../../../shared/feature/dist/index.js";
|
|
13
|
+
import { useEntityPaymentMethodsQuery as a } from "../../../../data-access/dist/index4.js";
|
|
14
|
+
import { useCreatePaymentLinkMutation as o } from "../../../../data-access/dist/index6.js";
|
|
15
|
+
import { useSendReceivableEmailMutation as s } from "../../../../data-access/dist/index9.js";
|
|
16
|
+
import "../../../../data-access/dist/index.js";
|
|
17
|
+
import { getReceivePaymentMethods as c } from "./preview.js";
|
|
18
|
+
import { useCallback as l } from "react";
|
|
19
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js
|
|
20
|
+
function u({ messages: u, documentType: d }) {
|
|
21
|
+
let { initResponse: f } = i(), p = d === "invoice" && t(f?.scopes, [r.PaymentLinkWrite]), m = n({ enabled: p }), h = m.data?.id, g = a({
|
|
22
|
+
entityId: h,
|
|
23
|
+
enabled: p
|
|
24
|
+
}), _ = o(), v = s(), y = g.data?.data, b = m.error ?? g.error, x = _.mutateAsync, S = v.mutateAsync, C = u.actionsSendWithoutPaymentLink;
|
|
25
|
+
return {
|
|
26
|
+
send: l(async (t) => {
|
|
27
|
+
if (!p) return S(t);
|
|
28
|
+
if (b || !h || !y) throw b ?? /* @__PURE__ */ Error();
|
|
29
|
+
let n = c(y);
|
|
30
|
+
return n.length === 0 ? e.error(C) : await x({ body: {
|
|
31
|
+
recipient: {
|
|
32
|
+
id: h,
|
|
33
|
+
type: "entity"
|
|
34
|
+
},
|
|
35
|
+
payment_methods: n.map((e) => e.type),
|
|
36
|
+
object: {
|
|
37
|
+
id: t.path.receivable_id,
|
|
38
|
+
type: "receivable"
|
|
39
|
+
}
|
|
40
|
+
} }), S(t);
|
|
41
|
+
}, [
|
|
42
|
+
p,
|
|
43
|
+
x,
|
|
44
|
+
h,
|
|
45
|
+
b,
|
|
46
|
+
y,
|
|
47
|
+
S,
|
|
48
|
+
C
|
|
49
|
+
]),
|
|
50
|
+
isPending: p && (m.isFetching || g.isFetching) || _.isPending || v.isPending
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { u as useSendReceivableWithPaymentLink };
|
|
@@ -1,47 +1,47 @@
|
|
|
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, postCounterpartsIdBankAccountsIdMakeDefault as ae, postFiles as oe, postMeasureUnits as se, postOverdueReminders as ce, postPayables as le, postPayablesIdApprovePaymentOperation as ue, postPayablesIdAttachFile as de, postPayablesIdCancel as fe, postPayablesIdDuplicatesIdConfirm as pe, postPayablesIdDuplicatesIdDismiss as me, postPayablesIdMarkAsPaid as he, postPayablesIdReject as ge, postPayablesIdReopen as _e, postPayablesIdSchedulePayment as ve, postPayablesIdSubmitForApproval as ye, postPayablesIdValidate as be, postPayablesUploadFromFile as xe, postPaymentIntentsIdCancel as Se,
|
|
4
|
-
import { activateCreditCardMutation as
|
|
5
|
-
import { OrganizationStatus as
|
|
6
|
-
import { withAuthEpoch as
|
|
7
|
-
import { applicationStatusInvalidationKey as
|
|
8
|
-
import { createClientSecretInstaller as
|
|
9
|
-
import { cancelAllClients as
|
|
10
|
-
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, postCounterpartsIdBankAccountsIdMakeDefault as ae, postFiles as oe, postMeasureUnits as se, postOverdueReminders as ce, postPayables as le, postPayablesIdApprovePaymentOperation as ue, postPayablesIdAttachFile as de, postPayablesIdCancel as fe, postPayablesIdDuplicatesIdConfirm as pe, postPayablesIdDuplicatesIdDismiss as me, postPayablesIdMarkAsPaid as he, postPayablesIdReject as ge, postPayablesIdReopen as _e, postPayablesIdSchedulePayment as ve, postPayablesIdSubmitForApproval as ye, postPayablesIdValidate as be, postPayablesUploadFromFile as xe, postPaymentIntentsIdCancel as Se, postPaymentLinks as Ce, postPaymentRecords as we, postPaymentReminders as Te, postProducts as Ee, postReceivables as De, postReceivablesIdAccept as Oe, postReceivablesIdCancel as ke, postReceivablesIdClone as Ae, postReceivablesIdDecline as je, postReceivablesIdIssue as Me, postReceivablesIdMarkAsPaid as Ne, postReceivablesIdMarkAsUncollectible as Pe, postReceivablesIdSend as Fe, postRecurrences as Ie, postRecurrencesIdCancel as Le, postRecurrencesIdPause as Re, postRecurrencesIdResume as ze, postTransactionsIdApprove as Be, postTransactionsIdReject as Ve, postTransactionsIdReopen as He, postTransactionsIdSubmit as Ue, putEntitiesIdLogo as We, putPayablesIdLineItems as Ge, updateDepartment as Ke, updateLocation as qe, updateUser as Je } from "./lib/rest/sdk.gen.js";
|
|
4
|
+
import { activateCreditCardMutation as Ye, activateDebitCardMutation as Xe, connectExternalBankAccountMutation as Ze, createAchMoneyMovementMutation as Qe, createApplicationMutation as $e, createBankAccountMutation as et, createBookTransferMutation as tt, createCheckDepositMutation as nt, createDebitCardMutation as rt, createVelocityControlMutation as it, deleteApprovalPoliciesIdMutation as at, deleteBankAccountApplicationMutation as ot, deleteLedgerAccountsIdMutation as st, deleteReceiptsIdMutation as ct, disableUserMutation as lt, getAnalyticsPayablesOptions as ut, getAnalyticsPayablesQueryKey as dt, getAnalyticsReceiptsOptions as ft, getAnalyticsReceiptsQueryKey as pt, getAnalyticsReceivablesOptions as mt, getAnalyticsReceivablesQueryKey as ht, getAnalyticsTransactionsOptions as gt, getAnalyticsTransactionsQueryKey as _t, getApprovalPoliciesOptions as vt, getApprovalPoliciesQueryKey as yt, getApprovalRequestsOptions as bt, getApprovalRequestsQueryKey as xt, getBankAccountAccessQueryKey as St, getBankAccountApplicationOptions as Ct, getBankAccountOptions as wt, getBankAccountQueryKey as Tt, getBankAccountStatementsOptions as Et, getBankAccountTransactionsOptions as Dt, getBankAccountTransactionsQueryKey as Ot, getBankAccountTransfersOptions as kt, getBankAccountTransfersQueryKey as At, getBankAccountsQueryKey as jt, getBankDetailsIdOptions as Mt, getBankDetailsOptions as Nt, getBankDetailsQueryKey as Pt, getCounterpartsIdAddressesOptions as Ft, getCounterpartsIdAddressesQueryKey as It, getCounterpartsIdBankAccountsOptions as Lt, getCounterpartsIdBankAccountsQueryKey as Rt, getCounterpartsIdOptions as zt, getCounterpartsIdQueryKey as Bt, getCounterpartsOptions as Vt, getCounterpartsQueryKey as Ht, getCreditCardByIdOptions as Ut, getCreditCardByIdQueryKey as Wt, getCreditCardsOptions as Gt, getCreditCardsQueryKey as Kt, getDebitCardByIdOptions as qt, getDebitCardByIdQueryKey as Jt, getDebitCardCredentialsOptions as Yt, getDebitCardsOptions as Xt, getDebitCardsQueryKey as Zt, getDepartmentOptions as Qt, getDepartmentQueryKey as $t, getDepositableBankAccountsOptions as en, getDocumentsIdNextNumbersOptions as tn, getDocumentsIdNextNumbersQueryKey as nn, getEntitiesIdPaymentMethodsOptions as rn, getEntitiesIdSettingsOptions as an, getEntitiesIdSettingsQueryKey as on, getEntityUsersOptions as sn, getExternalBankAccountAccessQueryKey as cn, getExternalBankAccountOptions as ln, getExternalBankAccountsOptions as un, getExternalBankAccountsQueryKey as dn, getFilesQueryKey as fn, getLedgerAccountsQueryKey as pn, getLocationOptions as mn, getLocationQueryKey as hn, getMeOptions as gn, getMeasureUnitsOptions as _n, getMeasureUnitsQueryKey as vn, getOrganizationOptions as yn, getOverdueRemindersOptions as bn, getOverdueRemindersQueryKey as xn, getPayablesIdHistoryOptions as Sn, getPayablesIdHistoryQueryKey as Cn, getPayablesIdLineItemsOptions as wn, getPayablesIdLineItemsQueryKey as Tn, getPayablesIdOptions as En, getPayablesIdQueryKey as Dn, getPayablesIdSuggestionsOptions as On, getPayablesOptions as kn, getPayablesQueryKey as An, getPaymentRecordsOptions as jn, getPaymentRecordsQueryKey as Mn, getPaymentRemindersOptions as Nn, getPaymentRemindersQueryKey as Pn, getProductsIdOptions as Fn, getProductsIdQueryKey as In, getProductsOptions as Ln, getProductsQueryKey as Rn, getReceiptsIdQueryKey as zn, getReceiptsOptions as Bn, getReceiptsQueryKey as Vn, getReceivablesIdHistoryQueryKey as Hn, getReceivablesIdMailsQueryKey as Un, getReceivablesIdOptions as Wn, getReceivablesIdPdfLinkOptions as Gn, getReceivablesIdPdfLinkQueryKey as Kn, getReceivablesIdQueryKey as qn, getReceivablesOptions as Jn, getReceivablesQueryKey as Yn, getReceivablesRequiredFieldsOptions as Xn, getRecurrencesIdOptions as Zn, getRecurrencesIdQueryKey as Qn, getRecurrencesQueryKey as $n, getTransactionsIdExpenseHistoryOptions as er, getTransactionsIdExpenseHistoryQueryKey as tr, getTransactionsIdOptions as nr, getTransactionsIdQueryKey as rr, getTransactionsOptions as ir, getTransactionsQueryKey as ar, getTransactionsValidationsOptions as or, getTransactionsValidationsQueryKey as sr, getUsersOptions as cr, getUsersQueryKey as lr, getVelocityControlsQueryKey as ur, grantBankAccountAccessMutation as dr, grantExternalBankAccountAccessMutation as fr, linkExternalBankAccountMutation as pr, listDepartmentsOptions as mr, listDepartmentsQueryKey as hr, listLocationsOptions as gr, listLocationsQueryKey as _r, listRolesQueryKey as vr, manageDebitCardAccessMutation as yr, patchApprovalPoliciesIdMutation as br, patchLedgerAccountsIdMutation as xr, patchReceiptsIdMutation as Sr, postApprovalPoliciesMutation as Cr, postLedgerAccountsMutation as wr, postReceiptsUploadFromFileMutation as Tr, putTransactionsValidationsMutation as Er, setDebitCardLockStatusMutation as Dr, submitApplicationMutation as Or, unlinkExternalBankAccountMutation as kr, updateApplicationMutation as Ar, updateBankAccountMutation as jr, updateDebitCardMutation as Mr, updateExternalBankAccountMutation as Nr, validateExternalBankAccountMutation as Pr, verifyDebitCardMutation as Fr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { OrganizationStatus as Ir, isOrganizationOnItsWay as Lr } from "./lib/organizationStatus.js";
|
|
6
|
+
import { withAuthEpoch as Rr, withAuthEpochInfinite as zr } from "./lib/withAuthEpoch.js";
|
|
7
|
+
import { applicationStatusInvalidationKey as Br, applicationStatusQueryOptions as Vr } from "./lib/applicationStatusQueryOptions.js";
|
|
8
|
+
import { createClientSecretInstaller as Hr } from "./lib/scopedClientSecret.js";
|
|
9
|
+
import { cancelAllClients as Ur, invalidateAllClients as Wr, registerQueryClient as Gr, removeInactiveFromAllClients as Kr, resetAllClients as qr, setAllClientsQueriesData as Jr, unregisterQueryClient as Yr } from "./lib/clientRegistry.js";
|
|
10
|
+
import { cloneEmbeddedClient as Xr, createEmbeddedClient as Zr } from "./lib/createEmbeddedClient.js";
|
|
11
11
|
import "./lib/widgetGatewayHosts.js";
|
|
12
|
-
import { attachTransportInterceptors as
|
|
13
|
-
import { EmbedApiProvider as
|
|
14
|
-
import { optionalOrganizationHeaders as
|
|
15
|
-
import { fetchWidgetInit as
|
|
16
|
-
import { hasAnyScope as
|
|
17
|
-
import { myEntityInvalidationKey as
|
|
18
|
-
import { useCurrentUserQuery as
|
|
19
|
-
import { useMyEntityQuery as
|
|
20
|
-
import { useMailboxAddress as
|
|
12
|
+
import { attachTransportInterceptors as Qr } from "./lib/transportInterceptors.js";
|
|
13
|
+
import { EmbedApiProvider as $r, useEmbedApi as ei } from "./lib/EmbedApiContext.js";
|
|
14
|
+
import { optionalOrganizationHeaders as ti, organizationHeaders as ni } from "./lib/organizationHeaders.js";
|
|
15
|
+
import { fetchWidgetInit as ri } from "./lib/fetchWidgetInit.js";
|
|
16
|
+
import { hasAnyScope as ii } from "./lib/hasAnyScope.js";
|
|
17
|
+
import { myEntityInvalidationKey as ai } from "./lib/queryKeys.js";
|
|
18
|
+
import { useCurrentUserQuery as oi } from "./lib/useCurrentUserQuery.js";
|
|
19
|
+
import { useMyEntityQuery as si } from "./lib/useMyEntityQuery.js";
|
|
20
|
+
import { useMailboxAddress as ci } from "./lib/useMailboxAddress.js";
|
|
21
21
|
import "./lib/apiErrorStatus.js";
|
|
22
|
-
import { isApiConflictError as
|
|
23
|
-
import { isApiForbiddenError as
|
|
24
|
-
import { isApiNotFoundError as
|
|
25
|
-
import { isApiUnprocessableError as
|
|
22
|
+
import { isApiConflictError as li } from "./lib/isApiConflictError.js";
|
|
23
|
+
import { isApiForbiddenError as ui } from "./lib/isApiForbiddenError.js";
|
|
24
|
+
import { isApiNotFoundError as di } from "./lib/isApiNotFoundError.js";
|
|
25
|
+
import { isApiUnprocessableError as fi } from "./lib/isApiUnprocessableError.js";
|
|
26
26
|
import "./lib/isUserDataNotFoundError.js";
|
|
27
|
-
import { useGetUserDataQuery as
|
|
28
|
-
import { useUpsertUserDataMutation as
|
|
27
|
+
import { useGetUserDataQuery as pi } from "./lib/useGetUserDataQuery.js";
|
|
28
|
+
import { useUpsertUserDataMutation as mi } from "./lib/useUpsertUserDataMutation.js";
|
|
29
29
|
import "./lib/rest/zod.gen.js";
|
|
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 { useAllOrganizationRolesQuery as
|
|
39
|
-
import { useRolePermissionsQueries as
|
|
40
|
-
import { useAllOrganizationUsersQuery as
|
|
41
|
-
import { personDisclosure as
|
|
42
|
-
import { useAcceptWidgetDisclosures as
|
|
43
|
-
import { useDisclosuresQuery as
|
|
44
|
-
import { OnboardingSuppressionReason as
|
|
45
|
-
import { useOrganizationOnboardingSuppression as
|
|
46
|
-
import { useOrganizationApplicationStatus as
|
|
47
|
-
export {
|
|
30
|
+
import { Scope as hi, isScope as gi } from "./lib/scopes.js";
|
|
31
|
+
import { getAllPagesNextPageParam as _i, getAllPagesNextPaginationTokenParam as vi, isAllPagesResolving as yi, useAutoFetchNextPage as bi } from "./lib/allPages.js";
|
|
32
|
+
import { useAllBankAccountsQuery as xi } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
33
|
+
import { useAllDebitCardsQuery as Si } from "./lib/debit-card/useAllDebitCardsQuery.js";
|
|
34
|
+
import { useAllExternalBankAccountsQuery as Ci } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
35
|
+
import { useAllMerchantCategoryGroupsQuery as wi } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
36
|
+
import { useAllLedgerAccountsQuery as Ti, useLedgerAccountsQuery as Ei } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
37
|
+
import { usePaymentTermsQuery as Di } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
38
|
+
import { useAllOrganizationRolesQuery as Oi } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
39
|
+
import { useRolePermissionsQueries as ki } from "./lib/role/useRolePermissionsQueries.js";
|
|
40
|
+
import { useAllOrganizationUsersQuery as Ai } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
41
|
+
import { personDisclosure as ji } from "./lib/disclosures/personDisclosure.js";
|
|
42
|
+
import { useAcceptWidgetDisclosures as Mi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
43
|
+
import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
44
|
+
import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
|
|
45
|
+
import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
46
|
+
import { useOrganizationApplicationStatus as Ii } from "./lib/useOrganizationApplicationStatus.js";
|
|
47
|
+
export { $r as EmbedApiProvider, Pi as OnboardingSuppressionReason, Ir as OrganizationStatus, hi as Scope, Ye as activateCreditCardMutation, Xe as activateDebitCardMutation, Br as applicationStatusInvalidationKey, Vr as applicationStatusQueryOptions, Qr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Ur as cancelAllClients, Xr as cloneEmbeddedClient, Ze as connectExternalBankAccountMutation, Qe as createAchMoneyMovementMutation, $e as createApplicationMutation, et as createBankAccountMutation, tt as createBookTransferMutation, nt as createCheckDepositMutation, Hr as createClientSecretInstaller, rt as createDebitCardMutation, r as createDepartment, Zr as createEmbeddedClient, i as createLocation, a as createUser, it as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, at as deleteApprovalPoliciesIdMutation, ot as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, st as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, ct as deleteReceiptsIdMutation, g as deleteReceivablesId, lt as disableUserMutation, _ as downloadBankAccountTransactions, ri as fetchWidgetInit, _i as getAllPagesNextPageParam, vi as getAllPagesNextPaginationTokenParam, ut as getAnalyticsPayablesOptions, dt as getAnalyticsPayablesQueryKey, ft as getAnalyticsReceiptsOptions, pt as getAnalyticsReceiptsQueryKey, mt as getAnalyticsReceivablesOptions, ht as getAnalyticsReceivablesQueryKey, gt as getAnalyticsTransactionsOptions, _t as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, vt as getApprovalPoliciesOptions, yt as getApprovalPoliciesQueryKey, b as getApprovalRequests, bt as getApprovalRequestsOptions, xt as getApprovalRequestsQueryKey, x as getBankAccountAccess, St as getBankAccountAccessQueryKey, Ct as getBankAccountApplicationOptions, wt as getBankAccountOptions, Tt as getBankAccountQueryKey, S as getBankAccountStatement, Et as getBankAccountStatementsOptions, Dt as getBankAccountTransactionsOptions, Ot as getBankAccountTransactionsQueryKey, kt as getBankAccountTransfersOptions, At as getBankAccountTransfersQueryKey, jt as getBankAccountsQueryKey, Mt as getBankDetailsIdOptions, Nt as getBankDetailsOptions, Pt as getBankDetailsQueryKey, C as getCounterparts, Ft as getCounterpartsIdAddressesOptions, It as getCounterpartsIdAddressesQueryKey, Lt as getCounterpartsIdBankAccountsOptions, Rt as getCounterpartsIdBankAccountsQueryKey, zt as getCounterpartsIdOptions, Bt as getCounterpartsIdQueryKey, Vt as getCounterpartsOptions, Ht as getCounterpartsQueryKey, Ut as getCreditCardByIdOptions, Wt as getCreditCardByIdQueryKey, Gt as getCreditCardsOptions, Kt as getCreditCardsQueryKey, qt as getDebitCardByIdOptions, Jt as getDebitCardByIdQueryKey, Yt as getDebitCardCredentialsOptions, Xt as getDebitCardsOptions, Zt as getDebitCardsQueryKey, w as getDepartment, Qt as getDepartmentOptions, $t as getDepartmentQueryKey, T as getDepositableBankAccounts, en as getDepositableBankAccountsOptions, tn as getDocumentsIdNextNumbersOptions, nn as getDocumentsIdNextNumbersQueryKey, rn as getEntitiesIdPaymentMethodsOptions, an as getEntitiesIdSettingsOptions, on as getEntitiesIdSettingsQueryKey, sn as getEntityUsersOptions, E as getExternalBankAccountAccess, cn as getExternalBankAccountAccessQueryKey, ln as getExternalBankAccountOptions, un as getExternalBankAccountsOptions, dn as getExternalBankAccountsQueryKey, fn as getFilesQueryKey, pn as getLedgerAccountsQueryKey, D as getLocation, mn as getLocationOptions, hn as getLocationQueryKey, gn as getMeOptions, _n as getMeasureUnitsOptions, vn as getMeasureUnitsQueryKey, yn as getOrganizationOptions, bn as getOverdueRemindersOptions, xn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, Sn as getPayablesIdHistoryOptions, Cn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, wn as getPayablesIdLineItemsOptions, Tn as getPayablesIdLineItemsQueryKey, En as getPayablesIdOptions, Dn as getPayablesIdQueryKey, On as getPayablesIdSuggestionsOptions, kn as getPayablesOptions, An as getPayablesQueryKey, M as getPaymentRecords, jn as getPaymentRecordsOptions, Mn as getPaymentRecordsQueryKey, Nn as getPaymentRemindersOptions, Pn as getPaymentRemindersQueryKey, N as getProducts, Fn as getProductsIdOptions, In as getProductsIdQueryKey, Ln as getProductsOptions, Rn as getProductsQueryKey, P as getReceipts, zn as getReceiptsIdQueryKey, Bn as getReceiptsOptions, Vn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Hn as getReceivablesIdHistoryQueryKey, Un as getReceivablesIdMailsQueryKey, Wn as getReceivablesIdOptions, Gn as getReceivablesIdPdfLinkOptions, Kn as getReceivablesIdPdfLinkQueryKey, qn as getReceivablesIdQueryKey, Jn as getReceivablesOptions, Yn as getReceivablesQueryKey, Xn as getReceivablesRequiredFieldsOptions, Zn as getRecurrencesIdOptions, Qn as getRecurrencesIdQueryKey, $n as getRecurrencesQueryKey, er as getTransactionsIdExpenseHistoryOptions, tr as getTransactionsIdExpenseHistoryQueryKey, nr as getTransactionsIdOptions, rr as getTransactionsIdQueryKey, ir as getTransactionsOptions, ar as getTransactionsQueryKey, or as getTransactionsValidationsOptions, sr as getTransactionsValidationsQueryKey, L as getUsers, cr as getUsersOptions, lr as getUsersQueryKey, ur as getVelocityControlsQueryKey, dr as grantBankAccountAccessMutation, fr as grantExternalBankAccountAccessMutation, ii as hasAnyScope, Wr as invalidateAllClients, yi as isAllPagesResolving, li as isApiConflictError, ui as isApiForbiddenError, di as isApiNotFoundError, fi as isApiUnprocessableError, Lr as isOrganizationOnItsWay, gi as isScope, pr as linkExternalBankAccountMutation, R as listDepartments, mr as listDepartmentsOptions, hr as listDepartmentsQueryKey, z as listLocations, gr as listLocationsOptions, _r as listLocationsQueryKey, B as listRoles, vr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, yr as manageDebitCardAccessMutation, ai as myEntityInvalidationKey, ti as optionalOrganizationHeaders, ni as organizationHeaders, br as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, xr as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, Sr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, ji as personDisclosure, Cr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postCounterpartsIdBankAccountsIdMakeDefault, oe as postFiles, wr as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentLinks, we as postPaymentRecords, Te as postPaymentReminders, Ee as postProducts, Tr as postReceiptsUploadFromFileMutation, De as postReceivables, Oe as postReceivablesIdAccept, ke as postReceivablesIdCancel, Ae as postReceivablesIdClone, je as postReceivablesIdDecline, Me as postReceivablesIdIssue, Ne as postReceivablesIdMarkAsPaid, Pe as postReceivablesIdMarkAsUncollectible, Fe as postReceivablesIdSend, Ie as postRecurrences, Le as postRecurrencesIdCancel, Re as postRecurrencesIdPause, ze as postRecurrencesIdResume, Be as postTransactionsIdApprove, Ve as postTransactionsIdReject, He as postTransactionsIdReopen, Ue as postTransactionsIdSubmit, We as putEntitiesIdLogo, Ge as putPayablesIdLineItems, Er as putTransactionsValidationsMutation, Gr as registerQueryClient, Kr as removeInactiveFromAllClients, qr as resetAllClients, Jr as setAllClientsQueriesData, Dr as setDebitCardLockStatusMutation, Or as submitApplicationMutation, kr as unlinkExternalBankAccountMutation, Yr as unregisterQueryClient, Ar as updateApplicationMutation, jr as updateBankAccountMutation, Mr as updateDebitCardMutation, Ke as updateDepartment, Nr as updateExternalBankAccountMutation, qe as updateLocation, Je as updateUser, Mi as useAcceptWidgetDisclosures, xi as useAllBankAccountsQuery, Si as useAllDebitCardsQuery, Ci as useAllExternalBankAccountsQuery, Ti as useAllLedgerAccountsQuery, wi as useAllMerchantCategoryGroupsQuery, Oi as useAllOrganizationRolesQuery, Ai as useAllOrganizationUsersQuery, bi as useAutoFetchNextPage, oi as useCurrentUserQuery, Ni as useDisclosuresQuery, ei as useEmbedApi, pi as useGetUserDataQuery, Ei as useLedgerAccountsQuery, ci as useMailboxAddress, si as useMyEntityQuery, Ii as useOrganizationApplicationStatus, Fi as useOrganizationOnboardingSuppression, Di as usePaymentTermsQuery, ki as useRolePermissionsQueries, mi as useUpsertUserDataMutation, Pr as validateExternalBankAccountMutation, Fr as verifyDebitCardMutation, Rr as withAuthEpoch, zr as withAuthEpochInfinite };
|