@tesouro/embedded-components-react 0.5.252 → 0.5.255
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 +95 -79
- package/dist/lib/ReceivablesWidget.d.ts +25 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +214 -209
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +162 -145
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +32 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillPayWidgetNative.js +48 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/BillsTab.js +32 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidgetNative/labels.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +38 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +12 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +11 -39
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +9 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +78 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +16 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +54 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +2 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +89 -88
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +55 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentRecord.js +71 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +123 -164
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +40 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +91 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +83 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +15 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +206 -89
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +38 -38
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +8 -7
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index27.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +0 -2
|
@@ -2,93 +2,98 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { useWidgetConfig as e } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
6
|
+
import "../../../../../shared/feature/dist/index.js";
|
|
7
|
+
import { buildReceivableRows as t, statusFilterOptions as n, typeForTab as r } from "./helpers.js";
|
|
8
|
+
import { useReceivablesQuery as i } from "../../../../data-access/dist/index11.js";
|
|
7
9
|
import "../../../../data-access/dist/index.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { canRecordPayments as a } from "./paymentRecord.js";
|
|
11
|
+
import { useInvoicesFilter as o } from "./useInvoicesFilter.js";
|
|
12
|
+
import { useReceivableCustomerNames as s } from "./useReceivableCustomerNames.js";
|
|
13
|
+
import { useReceivableStatusCards as c } from "./useReceivableStatusCards.js";
|
|
14
|
+
import { useCallback as l, useEffect as u, useMemo as d, useState as f } from "react";
|
|
12
15
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js
|
|
13
|
-
var
|
|
14
|
-
function
|
|
15
|
-
let [
|
|
16
|
-
initialCounterpartId:
|
|
17
|
-
search:
|
|
18
|
-
onSearchChange:
|
|
19
|
-
onFiltersChange:
|
|
20
|
-
statusLabels:
|
|
21
|
-
labels:
|
|
22
|
-
}),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [
|
|
16
|
+
var p = [];
|
|
17
|
+
function m({ activeTab: m, initialCounterpartId: g, messages: _, statusLabels: v, filterLabels: y, enabled: b = !0, visible: x = b }) {
|
|
18
|
+
let [S, C] = f([]), [w, T] = f(10), [E, D] = f(), [O, k] = f(""), [A, j] = f(""), [M, N] = f("all"), P = m === "invoices", F = l(() => D(void 0), []), I = o({
|
|
19
|
+
initialCounterpartId: g,
|
|
20
|
+
search: O,
|
|
21
|
+
onSearchChange: k,
|
|
22
|
+
onFiltersChange: F,
|
|
23
|
+
statusLabels: v,
|
|
24
|
+
labels: y
|
|
25
|
+
}), L = I.reset;
|
|
26
|
+
u(() => {
|
|
27
|
+
D(void 0), N("all"), k(""), j(""), L();
|
|
28
|
+
}, [m, L]), u(() => {
|
|
26
29
|
let e = setTimeout(() => {
|
|
27
|
-
|
|
30
|
+
j(O), D(void 0);
|
|
28
31
|
}, 300);
|
|
29
32
|
return () => clearTimeout(e);
|
|
30
|
-
}, [
|
|
31
|
-
let
|
|
32
|
-
enabled:
|
|
33
|
-
type:
|
|
34
|
-
limit:
|
|
35
|
-
pagination_token:
|
|
36
|
-
search_text:
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
sort:
|
|
40
|
-
order:
|
|
33
|
+
}, [O]);
|
|
34
|
+
let R = S[0]?.id, z = R ? h[R] : void 0, B = S[0] ? S[0].desc ? "desc" : "asc" : void 0, V = i({
|
|
35
|
+
enabled: b,
|
|
36
|
+
type: r(m),
|
|
37
|
+
limit: w,
|
|
38
|
+
pagination_token: E,
|
|
39
|
+
search_text: A || void 0,
|
|
40
|
+
...P ? I.query : { status: M === "all" ? void 0 : M },
|
|
41
|
+
...z ? {
|
|
42
|
+
sort: z,
|
|
43
|
+
order: B
|
|
41
44
|
} : {}
|
|
42
|
-
}),
|
|
43
|
-
enabled:
|
|
44
|
-
visible:
|
|
45
|
-
statusFilter:
|
|
46
|
-
messages:
|
|
47
|
-
statusLabels:
|
|
48
|
-
}),
|
|
49
|
-
receivables:
|
|
50
|
-
messages:
|
|
51
|
-
|
|
45
|
+
}), H = c({
|
|
46
|
+
enabled: b && P,
|
|
47
|
+
visible: x && P,
|
|
48
|
+
statusFilter: I.cardStatus,
|
|
49
|
+
messages: _,
|
|
50
|
+
statusLabels: v
|
|
51
|
+
}), U = V.data?.data ?? p, W = d(() => new Map(U.map((e) => [e.id, e])), [U]), G = l((e) => W.get(e), [W]), { initResponse: K } = e(), q = a(K?.scopes), J = s(U), Y = d(() => t({
|
|
52
|
+
receivables: U,
|
|
53
|
+
messages: _,
|
|
54
|
+
canRecordPayment: q,
|
|
55
|
+
customerNames: J
|
|
52
56
|
}), [
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
q,
|
|
58
|
+
J,
|
|
59
|
+
_,
|
|
60
|
+
U
|
|
61
|
+
]), X = P ? I.isFiltering : !!A || M !== "all", Z = l((e) => {
|
|
62
|
+
let t = typeof e == "function" ? e(S) : e;
|
|
63
|
+
C(t), D(void 0);
|
|
64
|
+
}, [S]), Q = l((e) => {
|
|
65
|
+
T(e), D(void 0);
|
|
66
|
+
}, []), $ = l((e) => {
|
|
67
|
+
N(e), D(void 0);
|
|
68
|
+
}, []), ee = l(() => D(V.data?.next_pagination_token ?? void 0), [V.data?.next_pagination_token]), te = l(() => D(V.data?.prev_pagination_token ?? void 0), [V.data?.prev_pagination_token]), ne = l(() => {
|
|
69
|
+
V.refetch();
|
|
70
|
+
}, [V]);
|
|
66
71
|
return {
|
|
67
|
-
rows:
|
|
68
|
-
isLoading:
|
|
69
|
-
isError:
|
|
70
|
-
sorting:
|
|
71
|
-
onSortingChange:
|
|
72
|
-
pageSize:
|
|
73
|
-
onPageSizeChange:
|
|
74
|
-
hasNextPage: !!
|
|
75
|
-
hasPrevPage: !!
|
|
76
|
-
onNextPage:
|
|
77
|
-
onPrevPage:
|
|
78
|
-
searchValue:
|
|
79
|
-
onSearchChange:
|
|
80
|
-
statusFilter:
|
|
81
|
-
statusOptions:
|
|
82
|
-
onStatusFilterChange:
|
|
83
|
-
statusCards:
|
|
84
|
-
onStatusCardSelect:
|
|
85
|
-
invoicesFilterBar:
|
|
86
|
-
isFiltering:
|
|
87
|
-
onRetry:
|
|
88
|
-
getReceivableById:
|
|
72
|
+
rows: Y,
|
|
73
|
+
isLoading: V.isLoading,
|
|
74
|
+
isError: V.isError,
|
|
75
|
+
sorting: S,
|
|
76
|
+
onSortingChange: Z,
|
|
77
|
+
pageSize: w,
|
|
78
|
+
onPageSizeChange: Q,
|
|
79
|
+
hasNextPage: !!V.data?.next_pagination_token,
|
|
80
|
+
hasPrevPage: !!V.data?.prev_pagination_token,
|
|
81
|
+
onNextPage: ee,
|
|
82
|
+
onPrevPage: te,
|
|
83
|
+
searchValue: O,
|
|
84
|
+
onSearchChange: k,
|
|
85
|
+
statusFilter: M,
|
|
86
|
+
statusOptions: n(M),
|
|
87
|
+
onStatusFilterChange: $,
|
|
88
|
+
statusCards: H,
|
|
89
|
+
onStatusCardSelect: I.selectStatusCard,
|
|
90
|
+
invoicesFilterBar: P ? I.filterBar : void 0,
|
|
91
|
+
isFiltering: X,
|
|
92
|
+
onRetry: ne,
|
|
93
|
+
getReceivableById: G
|
|
89
94
|
};
|
|
90
95
|
}
|
|
91
|
-
var
|
|
96
|
+
var h = {
|
|
92
97
|
documentLabel: "document_id",
|
|
93
98
|
status: "status",
|
|
94
99
|
issueDateLabel: "issue_date",
|
|
@@ -96,4 +101,4 @@ var p = {
|
|
|
96
101
|
totalLabel: "total_amount"
|
|
97
102
|
};
|
|
98
103
|
//#endregion
|
|
99
|
-
export {
|
|
104
|
+
export { m as useReceivablesTable };
|
|
@@ -109,7 +109,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: _e, defaultTab: f,
|
|
|
109
109
|
onCompleteBeforeIssue: (e) => {
|
|
110
110
|
q.openEdit(e, { highlightForIssue: !0 }), z(!1);
|
|
111
111
|
}
|
|
112
|
-
}), X = C && !w.canWrite, Z = q.open || q.counterpartView !== "none" || !!Y.actionTarget || Y.sendOpen || Y.
|
|
112
|
+
}), X = C && !w.canWrite, Z = q.open || q.counterpartView !== "none" || !!Y.actionTarget || Y.sendOpen || Y.payment.isOpen || U.isOpen || B, je = q.close, Q = q.counterpartForm.close, { closeAction: Me, closeSend: Ne } = Y, Pe = Y.payment.close, $ = U.close;
|
|
113
113
|
s(() => {
|
|
114
114
|
X && Z && (je(), Q(), Me(), Ne(), Pe(), $(), H());
|
|
115
115
|
}, [
|
|
@@ -202,11 +202,15 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: _e, defaultTab: f,
|
|
|
202
202
|
...Y,
|
|
203
203
|
actionDialog: E ? Y.actionDialog : void 0,
|
|
204
204
|
sendOpen: E && Y.sendOpen,
|
|
205
|
-
paymentOpen: E && Y.paymentOpen,
|
|
206
205
|
openAction: d(O, Y.openAction),
|
|
207
206
|
confirmAction: d(O, Y.confirmAction),
|
|
208
207
|
submitSend: d(O, Y.submitSend),
|
|
209
|
-
|
|
208
|
+
payment: {
|
|
209
|
+
...Y.payment,
|
|
210
|
+
isOpen: E && Y.payment.isOpen,
|
|
211
|
+
save: d(O, Y.payment.save),
|
|
212
|
+
confirm: d(O, Y.payment.confirm)
|
|
213
|
+
}
|
|
210
214
|
},
|
|
211
215
|
actionsModal: {
|
|
212
216
|
...U,
|
|
@@ -219,15 +219,22 @@ var r = {
|
|
|
219
219
|
sendButton: "Send"
|
|
220
220
|
}, l = {
|
|
221
221
|
title: "Record payment",
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
222
|
+
amountLabel: "Amount",
|
|
223
|
+
amountPlaceholder: "0",
|
|
224
|
+
fullAmountDuePrefix: "Enter full amount due of",
|
|
225
|
+
dateLabel: "Date",
|
|
226
|
+
datePlaceholder: "Pick a date",
|
|
227
|
+
timeLabel: "Time",
|
|
228
|
+
timeZoneSuffix: "UTC",
|
|
229
229
|
cancelButton: "Cancel",
|
|
230
|
-
|
|
230
|
+
saveButton: "Save",
|
|
231
|
+
reviewTitle: "Manual payment record",
|
|
232
|
+
receivedLabel: "Received",
|
|
233
|
+
referenceLabel: "Reference",
|
|
234
|
+
createdByLabel: "Created by",
|
|
235
|
+
reviewWarning: "Please, check the details of your payment record. You won't be able to change or delete it after.",
|
|
236
|
+
editRecordButton: "Edit record",
|
|
237
|
+
confirmButton: "Confirm"
|
|
231
238
|
}, u = {
|
|
232
239
|
cancelButton: "Cancel",
|
|
233
240
|
confirmButton: "Confirm",
|
|
@@ -1,106 +1,223 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { RECEIVABLE_PAYMENT_DIALOG_LABELS_EN as
|
|
3
|
-
import { jsx as
|
|
1
|
+
import { Alert as e, AlertDescription as t, Button as n, DatePicker as r, Dialog as i, DialogContent as a, DialogFooter as o, DialogHeader as s, DialogTitle as c, FieldRequirement as l, InputGroup as u, InputGroupAddon as d, InputGroupInput as f, Label as p, Skeleton as m } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_PAYMENT_DIALOG_LABELS_EN as h } from "./index13.js";
|
|
3
|
+
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
4
|
+
import { NotebookPen as y } from "lucide-react";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
var b = {
|
|
7
|
+
amount: "receivable-payment-amount",
|
|
8
|
+
date: "receivable-payment-date",
|
|
9
|
+
time: "receivable-payment-time"
|
|
10
|
+
};
|
|
11
|
+
function x({ id: e, message: t }) {
|
|
12
|
+
return t ? /* @__PURE__ */ _("p", {
|
|
13
|
+
id: e,
|
|
7
14
|
className: "ttw:text-sm ttw:text-destructive",
|
|
8
|
-
children:
|
|
15
|
+
children: t
|
|
9
16
|
}) : null;
|
|
10
17
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
18
|
+
function S({ label: e, children: t }) {
|
|
19
|
+
return /* @__PURE__ */ v("div", {
|
|
20
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4 ttw:px-4 ttw:py-3",
|
|
21
|
+
children: [/* @__PURE__ */ _("dt", {
|
|
22
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
23
|
+
children: e
|
|
24
|
+
}), /* @__PURE__ */ _("dd", {
|
|
25
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-right ttw:break-all",
|
|
26
|
+
children: t
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function C({ open: C, onOpenChange: w, step: T, values: E, errors: D, currencySymbol: O, amountDueLabel: k, review: A, inProgress: j, onChange: M, onFillAmountDue: N, onSave: P, onEdit: F, onConfirm: I, onCancel: L, labels: R }) {
|
|
31
|
+
let z = {
|
|
32
|
+
...h,
|
|
33
|
+
...R
|
|
15
34
|
};
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
open:
|
|
18
|
-
onOpenChange:
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ _(i, {
|
|
36
|
+
open: C,
|
|
37
|
+
onOpenChange: w,
|
|
38
|
+
children: /* @__PURE__ */ _(a, {
|
|
39
|
+
"aria-describedby": void 0,
|
|
40
|
+
children: T === "review" && A ? /* @__PURE__ */ v(g, { children: [
|
|
41
|
+
/* @__PURE__ */ v(s, {
|
|
42
|
+
className: "ttw:items-center ttw:text-center",
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ _("div", {
|
|
45
|
+
className: "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
|
|
46
|
+
children: /* @__PURE__ */ _(y, { className: "ttw:size-5 ttw:text-muted-foreground" })
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ _(c, {
|
|
49
|
+
className: "ttw:text-base ttw:font-normal",
|
|
50
|
+
children: z.reviewTitle
|
|
51
|
+
}),
|
|
52
|
+
/* @__PURE__ */ _("p", {
|
|
53
|
+
className: "ttw:text-2xl ttw:font-semibold",
|
|
54
|
+
children: A.amountLabel
|
|
55
|
+
}),
|
|
56
|
+
/* @__PURE__ */ _("p", {
|
|
57
|
+
className: "ttw:text-sm",
|
|
58
|
+
children: A.fromLabel
|
|
59
|
+
})
|
|
60
|
+
]
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ v("dl", {
|
|
63
|
+
className: "ttw:divide-y ttw:divide-border ttw:rounded-lg ttw:border ttw:border-border",
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ _(S, {
|
|
66
|
+
label: z.receivedLabel,
|
|
67
|
+
children: A.receivedLabel
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ _(S, {
|
|
70
|
+
label: z.referenceLabel,
|
|
71
|
+
children: A.referenceLabel
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ _(S, {
|
|
74
|
+
label: z.createdByLabel,
|
|
75
|
+
children: A.isCreatedByLoading ? /* @__PURE__ */ _(m, { className: "ttw:h-4 ttw:w-24" }) : A.createdByLabel
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ _(e, {
|
|
80
|
+
className: "ttw:border-amber-200 ttw:bg-amber-50 ttw:text-amber-800",
|
|
81
|
+
children: /* @__PURE__ */ _(t, {
|
|
82
|
+
className: "ttw:text-amber-800",
|
|
83
|
+
children: z.reviewWarning
|
|
84
|
+
})
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ v(o, {
|
|
87
|
+
className: "ttw:sm:justify-between",
|
|
88
|
+
children: [/* @__PURE__ */ _(n, {
|
|
89
|
+
variant: "ghost",
|
|
90
|
+
onClick: L,
|
|
91
|
+
children: z.cancelButton
|
|
92
|
+
}), /* @__PURE__ */ v("div", {
|
|
93
|
+
className: "ttw:flex ttw:gap-2",
|
|
94
|
+
children: [/* @__PURE__ */ _(n, {
|
|
95
|
+
variant: "outline",
|
|
96
|
+
disabled: j,
|
|
97
|
+
onClick: F,
|
|
98
|
+
children: z.editRecordButton
|
|
99
|
+
}), /* @__PURE__ */ _(n, {
|
|
100
|
+
disabled: j,
|
|
101
|
+
onClick: I,
|
|
102
|
+
children: z.confirmButton
|
|
103
|
+
})]
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
] }) : /* @__PURE__ */ v("form", {
|
|
22
107
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
108
|
+
noValidate: !0,
|
|
109
|
+
onSubmit: (e) => {
|
|
110
|
+
e.preventDefault(), P();
|
|
111
|
+
},
|
|
23
112
|
children: [
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
children: y.form
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ m("div", {
|
|
29
|
-
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
30
|
-
children: [/* @__PURE__ */ p(c, { children: T.modeLabel }), /* @__PURE__ */ m(l, {
|
|
31
|
-
className: "ttw:flex ttw:flex-row ttw:gap-6",
|
|
32
|
-
value: v.mode,
|
|
33
|
-
onValueChange: (e) => x({ mode: e }),
|
|
34
|
-
children: [/* @__PURE__ */ m("div", {
|
|
35
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
36
|
-
children: [/* @__PURE__ */ p(u, {
|
|
37
|
-
value: "full",
|
|
38
|
-
id: "receivable-payment-full"
|
|
39
|
-
}), /* @__PURE__ */ p(c, {
|
|
40
|
-
htmlFor: "receivable-payment-full",
|
|
41
|
-
children: T.fullPayment
|
|
42
|
-
})]
|
|
43
|
-
}), /* @__PURE__ */ m("div", {
|
|
44
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
45
|
-
children: [/* @__PURE__ */ p(u, {
|
|
46
|
-
value: "partial",
|
|
47
|
-
id: "receivable-payment-partial"
|
|
48
|
-
}), /* @__PURE__ */ p(c, {
|
|
49
|
-
htmlFor: "receivable-payment-partial",
|
|
50
|
-
children: T.partialPayment
|
|
51
|
-
})]
|
|
52
|
-
})]
|
|
53
|
-
})]
|
|
54
|
-
}),
|
|
55
|
-
v.mode === "partial" && /* @__PURE__ */ m("div", {
|
|
113
|
+
/* @__PURE__ */ _(s, { children: /* @__PURE__ */ _(c, { children: z.title }) }),
|
|
114
|
+
/* @__PURE__ */ v("div", {
|
|
56
115
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
57
116
|
children: [
|
|
58
|
-
/* @__PURE__ */ p
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
onChange: (e) => x({ amountPaid: e.target.value })
|
|
117
|
+
/* @__PURE__ */ _(p, {
|
|
118
|
+
htmlFor: b.amount,
|
|
119
|
+
requirement: l.Required,
|
|
120
|
+
children: z.amountLabel
|
|
63
121
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
122
|
+
/* @__PURE__ */ v(u, { children: [/* @__PURE__ */ _(f, {
|
|
123
|
+
id: b.amount,
|
|
124
|
+
type: "number",
|
|
125
|
+
required: !0,
|
|
126
|
+
placeholder: z.amountPlaceholder,
|
|
127
|
+
"data-has-end-addon": !0,
|
|
128
|
+
"aria-invalid": !!D?.amount || void 0,
|
|
129
|
+
"aria-describedby": D?.amount ? `${b.amount}-error` : void 0,
|
|
130
|
+
value: E.amount,
|
|
131
|
+
onChange: (e) => M({ amount: e.target.value })
|
|
132
|
+
}), /* @__PURE__ */ _(d, {
|
|
133
|
+
align: "inline-end",
|
|
134
|
+
children: O
|
|
135
|
+
})] }),
|
|
136
|
+
/* @__PURE__ */ _(x, {
|
|
137
|
+
id: `${b.amount}-error`,
|
|
138
|
+
message: D?.amount
|
|
75
139
|
}),
|
|
76
|
-
/* @__PURE__ */ p
|
|
140
|
+
/* @__PURE__ */ v("p", {
|
|
141
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
142
|
+
children: [
|
|
143
|
+
z.fullAmountDuePrefix,
|
|
144
|
+
" ",
|
|
145
|
+
/* @__PURE__ */ _(n, {
|
|
146
|
+
type: "button",
|
|
147
|
+
variant: "link",
|
|
148
|
+
className: "ttw:h-auto ttw:p-0 ttw:underline",
|
|
149
|
+
onClick: N,
|
|
150
|
+
children: k
|
|
151
|
+
})
|
|
152
|
+
]
|
|
153
|
+
})
|
|
77
154
|
]
|
|
78
155
|
}),
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
className: "ttw:
|
|
81
|
-
children: [
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
156
|
+
/* @__PURE__ */ v("div", {
|
|
157
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
158
|
+
children: [/* @__PURE__ */ v("div", {
|
|
159
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
160
|
+
children: [
|
|
161
|
+
/* @__PURE__ */ _(p, {
|
|
162
|
+
htmlFor: b.date,
|
|
163
|
+
requirement: l.Required,
|
|
164
|
+
children: z.dateLabel
|
|
165
|
+
}),
|
|
166
|
+
/* @__PURE__ */ _(r, {
|
|
167
|
+
id: b.date,
|
|
168
|
+
value: E.paymentDate,
|
|
169
|
+
onChange: (e) => M({ paymentDate: e }),
|
|
170
|
+
placeholder: z.datePlaceholder,
|
|
171
|
+
"aria-invalid": !!D?.paymentDate || void 0,
|
|
172
|
+
"aria-describedby": D?.paymentDate ? `${b.date}-error` : void 0
|
|
173
|
+
}),
|
|
174
|
+
/* @__PURE__ */ _(x, {
|
|
175
|
+
id: `${b.date}-error`,
|
|
176
|
+
message: D?.paymentDate
|
|
177
|
+
})
|
|
178
|
+
]
|
|
179
|
+
}), /* @__PURE__ */ v("div", {
|
|
180
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
181
|
+
children: [
|
|
182
|
+
/* @__PURE__ */ _(p, {
|
|
183
|
+
htmlFor: b.time,
|
|
184
|
+
requirement: l.Required,
|
|
185
|
+
children: z.timeLabel
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ v(u, { children: [/* @__PURE__ */ _(f, {
|
|
188
|
+
id: b.time,
|
|
189
|
+
type: "time",
|
|
190
|
+
required: !0,
|
|
191
|
+
"data-has-end-addon": !0,
|
|
192
|
+
"aria-invalid": !!D?.paymentTime || void 0,
|
|
193
|
+
"aria-describedby": D?.paymentTime ? `${b.time}-error` : void 0,
|
|
194
|
+
value: E.paymentTime,
|
|
195
|
+
onChange: (e) => M({ paymentTime: e.target.value })
|
|
196
|
+
}), /* @__PURE__ */ _(d, {
|
|
197
|
+
align: "inline-end",
|
|
198
|
+
children: z.timeZoneSuffix
|
|
199
|
+
})] }),
|
|
200
|
+
/* @__PURE__ */ _(x, {
|
|
201
|
+
id: `${b.time}-error`,
|
|
202
|
+
message: D?.paymentTime
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
})]
|
|
206
|
+
}),
|
|
207
|
+
/* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(n, {
|
|
208
|
+
type: "button",
|
|
209
|
+
variant: "ghost",
|
|
210
|
+
onClick: L,
|
|
211
|
+
children: z.cancelButton
|
|
212
|
+
}), /* @__PURE__ */ _(n, {
|
|
213
|
+
type: "submit",
|
|
214
|
+
loading: j,
|
|
215
|
+
children: z.saveButton
|
|
216
|
+
})] })
|
|
91
217
|
]
|
|
92
|
-
})
|
|
93
|
-
|
|
94
|
-
variant: "ghost",
|
|
95
|
-
onClick: C,
|
|
96
|
-
children: T.cancelButton
|
|
97
|
-
}), /* @__PURE__ */ p(e, {
|
|
98
|
-
loading: b,
|
|
99
|
-
onClick: S,
|
|
100
|
-
children: T.submitButton
|
|
101
|
-
})] })
|
|
102
|
-
] })
|
|
218
|
+
})
|
|
219
|
+
})
|
|
103
220
|
});
|
|
104
221
|
}
|
|
105
222
|
//#endregion
|
|
106
|
-
export {
|
|
223
|
+
export { C as ReceivablePaymentDialog, C as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
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,
|
|
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, postPaymentRecords as Ce, postPaymentReminders as we, postProducts as Te, postReceivables as Ee, postReceivablesIdAccept as De, postReceivablesIdCancel as Oe, postReceivablesIdClone as ke, postReceivablesIdDecline as Ae, postReceivablesIdIssue as je, postReceivablesIdMarkAsPaid as Me, postReceivablesIdMarkAsUncollectible as Ne, postReceivablesIdSend as Pe, postRecurrences as Fe, postRecurrencesIdCancel as Ie, postRecurrencesIdPause as Le, postRecurrencesIdResume as Re, postTransactionsIdApprove as ze, postTransactionsIdReject as Be, postTransactionsIdReopen as Ve, postTransactionsIdSubmit as He, putEntitiesIdLogo as Ue, putPayablesIdLineItems as We, updateDepartment as Ge, updateLocation as Ke, updateUser as qe } from "./lib/rest/sdk.gen.js";
|
|
4
4
|
import { activateCreditCardMutation as Je, activateDebitCardMutation as Ye, connectExternalBankAccountMutation as Xe, createAchMoneyMovementMutation as Ze, createApplicationMutation as Qe, createBankAccountMutation as $e, createBookTransferMutation as et, createCheckDepositMutation as tt, createDebitCardMutation as nt, createVelocityControlMutation as rt, deleteApprovalPoliciesIdMutation as it, deleteBankAccountApplicationMutation as at, deleteLedgerAccountsIdMutation as ot, deleteReceiptsIdMutation as st, disableUserMutation as ct, getAnalyticsPayablesOptions as lt, getAnalyticsPayablesQueryKey as ut, getAnalyticsReceiptsOptions as dt, getAnalyticsReceiptsQueryKey as ft, getAnalyticsReceivablesOptions as pt, getAnalyticsReceivablesQueryKey as mt, getAnalyticsTransactionsOptions as ht, getAnalyticsTransactionsQueryKey as gt, getApprovalPoliciesOptions as _t, getApprovalPoliciesQueryKey as vt, getApprovalRequestsOptions as yt, getApprovalRequestsQueryKey as bt, getBankAccountAccessQueryKey as xt, getBankAccountApplicationOptions as St, getBankAccountOptions as Ct, getBankAccountQueryKey as wt, getBankAccountStatementsOptions as Tt, getBankAccountTransactionsOptions as Et, getBankAccountTransactionsQueryKey as Dt, getBankAccountTransfersOptions as Ot, getBankAccountTransfersQueryKey as kt, getBankAccountsQueryKey as At, getBankDetailsOptions as jt, getBankDetailsQueryKey as Mt, getCounterpartsIdAddressesOptions as Nt, getCounterpartsIdAddressesQueryKey as Pt, getCounterpartsIdBankAccountsOptions as Ft, getCounterpartsIdBankAccountsQueryKey as It, getCounterpartsIdOptions as Lt, getCounterpartsIdQueryKey as Rt, getCounterpartsOptions as zt, getCounterpartsQueryKey as Bt, getCreditCardByIdOptions as Vt, getCreditCardByIdQueryKey as Ht, getCreditCardsOptions as Ut, getCreditCardsQueryKey as Wt, getDebitCardByIdOptions as Gt, getDebitCardByIdQueryKey as Kt, getDebitCardCredentialsOptions as qt, getDebitCardsOptions as Jt, getDebitCardsQueryKey as Yt, getDepartmentOptions as Xt, getDepartmentQueryKey as Zt, getDepositableBankAccountsOptions as Qt, getDocumentsIdNextNumbersOptions as $t, getDocumentsIdNextNumbersQueryKey as en, getEntitiesIdSettingsOptions as tn, getEntitiesIdSettingsQueryKey as nn, getEntityUsersMyEntityOptions as rn, getEntityUsersOptions as an, getExternalBankAccountAccessQueryKey as on, getExternalBankAccountsOptions as sn, getExternalBankAccountsQueryKey as cn, getFilesQueryKey as ln, getLedgerAccountsQueryKey as un, getLocationOptions as dn, getLocationQueryKey as fn, getMeasureUnitsOptions as pn, getMeasureUnitsQueryKey as mn, getOrganizationOptions as hn, getOverdueRemindersOptions as gn, getOverdueRemindersQueryKey as _n, getPayablesIdHistoryOptions as vn, getPayablesIdHistoryQueryKey as yn, getPayablesIdLineItemsOptions as bn, getPayablesIdLineItemsQueryKey as xn, getPayablesIdOptions as Sn, getPayablesIdQueryKey as Cn, getPayablesIdSuggestionsOptions as wn, getPayablesOptions as Tn, getPayablesQueryKey as En, getPaymentRecordsOptions as Dn, getPaymentRecordsQueryKey as On, getPaymentRemindersOptions as kn, getPaymentRemindersQueryKey as An, getProductsIdOptions as jn, getProductsIdQueryKey as Mn, getProductsOptions as Nn, getProductsQueryKey as Pn, getReceiptsIdQueryKey as Fn, getReceiptsOptions as In, getReceiptsQueryKey as Ln, getReceivablesIdHistoryQueryKey as Rn, getReceivablesIdMailsQueryKey as zn, getReceivablesIdOptions as Bn, getReceivablesIdPdfLinkOptions as Vn, getReceivablesIdPdfLinkQueryKey as Hn, getReceivablesIdQueryKey as Un, getReceivablesOptions as Wn, getReceivablesQueryKey as Gn, getReceivablesRequiredFieldsOptions as Kn, getRecurrencesIdOptions as qn, getRecurrencesIdQueryKey as Jn, getRecurrencesQueryKey as Yn, getTransactionsIdExpenseHistoryOptions as Xn, getTransactionsIdExpenseHistoryQueryKey as Zn, getTransactionsIdOptions as Qn, getTransactionsIdQueryKey as $n, getTransactionsOptions as er, getTransactionsQueryKey as tr, getTransactionsValidationsOptions as nr, getTransactionsValidationsQueryKey as rr, getUsersOptions as ir, getUsersQueryKey as ar, getVelocityControlsQueryKey as or, grantBankAccountAccessMutation as sr, grantExternalBankAccountAccessMutation as cr, linkExternalBankAccountMutation as lr, listDepartmentsOptions as ur, listDepartmentsQueryKey as dr, listLocationsOptions as fr, listLocationsQueryKey as pr, listRolesQueryKey as mr, manageDebitCardAccessMutation as hr, patchApprovalPoliciesIdMutation as gr, patchLedgerAccountsIdMutation as _r, patchReceiptsIdMutation as vr, postApprovalPoliciesMutation as yr, postLedgerAccountsMutation as br, postReceiptsUploadFromFileMutation as xr, putTransactionsValidationsMutation as Sr, setDebitCardLockStatusMutation as Cr, submitApplicationMutation as wr, unlinkExternalBankAccountMutation as Tr, updateApplicationMutation as Er, updateBankAccountMutation as Dr, updateDebitCardMutation as Or, updateExternalBankAccountMutation as kr, validateExternalBankAccountMutation as Ar, verifyDebitCardMutation as jr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
5
|
import { OrganizationStatus as Mr, isOrganizationOnItsWay as Nr } from "./lib/organizationStatus.js";
|
|
6
6
|
import { withAuthEpoch as Pr, withAuthEpochInfinite as Fr } from "./lib/withAuthEpoch.js";
|
|
@@ -44,4 +44,4 @@ import { useDisclosuresQuery as ki } from "./lib/disclosures/useDisclosuresQuery
|
|
|
44
44
|
import { OnboardingSuppressionReason as Ai } from "./lib/onboardingSuppressionReason.js";
|
|
45
45
|
import { useOrganizationOnboardingSuppression as ji } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
46
46
|
import { useOrganizationApplicationStatus as Mi } from "./lib/useOrganizationApplicationStatus.js";
|
|
47
|
-
export { Yr as EmbedApiProvider, Ai as OnboardingSuppressionReason, Mr as OrganizationStatus, di as Scope, Je as activateCreditCardMutation, Ye as activateDebitCardMutation, Ir as applicationStatusInvalidationKey, Lr as applicationStatusQueryOptions, Jr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, zr as cancelAllClients, Kr as cloneEmbeddedClient, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Rr as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, qr as createEmbeddedClient, i as createLocation, a as createUser, rt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, it as deleteApprovalPoliciesIdMutation, at as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, ot as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, st as deleteReceiptsIdMutation, g as deleteReceivablesId, ct as disableUserMutation, _ as downloadBankAccountTransactions, $r as fetchWidgetInit, pi as getAllPagesNextPageParam, mi as getAllPagesNextPaginationTokenParam, lt as getAnalyticsPayablesOptions, ut as getAnalyticsPayablesQueryKey, dt as getAnalyticsReceiptsOptions, ft as getAnalyticsReceiptsQueryKey, pt as getAnalyticsReceivablesOptions, mt as getAnalyticsReceivablesQueryKey, ht as getAnalyticsTransactionsOptions, gt as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, _t as getApprovalPoliciesOptions, vt as getApprovalPoliciesQueryKey, b as getApprovalRequests, yt as getApprovalRequestsOptions, bt as getApprovalRequestsQueryKey, x as getBankAccountAccess, xt as getBankAccountAccessQueryKey, St as getBankAccountApplicationOptions, Ct as getBankAccountOptions, wt as getBankAccountQueryKey, S as getBankAccountStatement, Tt as getBankAccountStatementsOptions, Et as getBankAccountTransactionsOptions, Dt as getBankAccountTransactionsQueryKey, Ot as getBankAccountTransfersOptions, kt as getBankAccountTransfersQueryKey, At as getBankAccountsQueryKey, jt as getBankDetailsOptions, Mt as getBankDetailsQueryKey, C as getCounterparts, Nt as getCounterpartsIdAddressesOptions, Pt as getCounterpartsIdAddressesQueryKey, Ft as getCounterpartsIdBankAccountsOptions, It as getCounterpartsIdBankAccountsQueryKey, Lt as getCounterpartsIdOptions, Rt as getCounterpartsIdQueryKey, zt as getCounterpartsOptions, Bt as getCounterpartsQueryKey, Vt as getCreditCardByIdOptions, Ht as getCreditCardByIdQueryKey, Ut as getCreditCardsOptions, Wt as getCreditCardsQueryKey, Gt as getDebitCardByIdOptions, Kt as getDebitCardByIdQueryKey, qt as getDebitCardCredentialsOptions, Jt as getDebitCardsOptions, Yt as getDebitCardsQueryKey, w as getDepartment, Xt as getDepartmentOptions, Zt as getDepartmentQueryKey, T as getDepositableBankAccounts, Qt as getDepositableBankAccountsOptions, $t as getDocumentsIdNextNumbersOptions, en as getDocumentsIdNextNumbersQueryKey, tn as getEntitiesIdSettingsOptions, nn as getEntitiesIdSettingsQueryKey, rn as getEntityUsersMyEntityOptions, an as getEntityUsersOptions, E as getExternalBankAccountAccess, on as getExternalBankAccountAccessQueryKey, sn as getExternalBankAccountsOptions, cn as getExternalBankAccountsQueryKey, ln as getFilesQueryKey, un as getLedgerAccountsQueryKey, D as getLocation, dn as getLocationOptions, fn as getLocationQueryKey, pn as getMeasureUnitsOptions, mn as getMeasureUnitsQueryKey, hn as getOrganizationOptions, gn as getOverdueRemindersOptions, _n as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, vn as getPayablesIdHistoryOptions, yn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, bn as getPayablesIdLineItemsOptions, xn as getPayablesIdLineItemsQueryKey, Sn as getPayablesIdOptions, Cn as getPayablesIdQueryKey, wn as getPayablesIdSuggestionsOptions, Tn as getPayablesOptions, En as getPayablesQueryKey, M as getPaymentRecords, Dn as getPaymentRecordsOptions, On as getPaymentRecordsQueryKey, kn as getPaymentRemindersOptions, An as getPaymentRemindersQueryKey, N as getProducts, jn as getProductsIdOptions, Mn as getProductsIdQueryKey, Nn as getProductsOptions, Pn as getProductsQueryKey, P as getReceipts, Fn as getReceiptsIdQueryKey, In as getReceiptsOptions, Ln as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Rn as getReceivablesIdHistoryQueryKey, zn as getReceivablesIdMailsQueryKey, Bn as getReceivablesIdOptions, Vn as getReceivablesIdPdfLinkOptions, Hn as getReceivablesIdPdfLinkQueryKey, Un as getReceivablesIdQueryKey, Wn as getReceivablesOptions, Gn as getReceivablesQueryKey, Kn as getReceivablesRequiredFieldsOptions, qn as getRecurrencesIdOptions, Jn as getRecurrencesIdQueryKey, Yn as getRecurrencesQueryKey, Xn as getTransactionsIdExpenseHistoryOptions, Zn as getTransactionsIdExpenseHistoryQueryKey, Qn as getTransactionsIdOptions, $n as getTransactionsIdQueryKey, er as getTransactionsOptions, tr as getTransactionsQueryKey, nr as getTransactionsValidationsOptions, rr as getTransactionsValidationsQueryKey, L as getUsers, ir as getUsersOptions, ar as getUsersQueryKey, or as getVelocityControlsQueryKey, sr as grantBankAccountAccessMutation, cr as grantExternalBankAccountAccessMutation, ei as hasAnyScope, Br as invalidateAllClients, hi as isAllPagesResolving, ai as isApiConflictError, oi as isApiForbiddenError, si as isApiNotFoundError, ci as isApiUnprocessableError, Nr as isOrganizationOnItsWay, fi as isScope, lr as linkExternalBankAccountMutation, R as listDepartments, ur as listDepartmentsOptions, dr as listDepartmentsQueryKey, z as listLocations, fr as listLocationsOptions, pr as listLocationsQueryKey, B as listRoles, mr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, hr as manageDebitCardAccessMutation, ti as myEntityInvalidationKey, Zr as optionalOrganizationHeaders, Qr as organizationHeaders, gr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, _r as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, vr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, Di as personDisclosure, yr 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, br 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
|
|
47
|
+
export { Yr as EmbedApiProvider, Ai as OnboardingSuppressionReason, Mr as OrganizationStatus, di as Scope, Je as activateCreditCardMutation, Ye as activateDebitCardMutation, Ir as applicationStatusInvalidationKey, Lr as applicationStatusQueryOptions, Jr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, zr as cancelAllClients, Kr as cloneEmbeddedClient, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Rr as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, qr as createEmbeddedClient, i as createLocation, a as createUser, rt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, it as deleteApprovalPoliciesIdMutation, at as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, ot as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, st as deleteReceiptsIdMutation, g as deleteReceivablesId, ct as disableUserMutation, _ as downloadBankAccountTransactions, $r as fetchWidgetInit, pi as getAllPagesNextPageParam, mi as getAllPagesNextPaginationTokenParam, lt as getAnalyticsPayablesOptions, ut as getAnalyticsPayablesQueryKey, dt as getAnalyticsReceiptsOptions, ft as getAnalyticsReceiptsQueryKey, pt as getAnalyticsReceivablesOptions, mt as getAnalyticsReceivablesQueryKey, ht as getAnalyticsTransactionsOptions, gt as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, _t as getApprovalPoliciesOptions, vt as getApprovalPoliciesQueryKey, b as getApprovalRequests, yt as getApprovalRequestsOptions, bt as getApprovalRequestsQueryKey, x as getBankAccountAccess, xt as getBankAccountAccessQueryKey, St as getBankAccountApplicationOptions, Ct as getBankAccountOptions, wt as getBankAccountQueryKey, S as getBankAccountStatement, Tt as getBankAccountStatementsOptions, Et as getBankAccountTransactionsOptions, Dt as getBankAccountTransactionsQueryKey, Ot as getBankAccountTransfersOptions, kt as getBankAccountTransfersQueryKey, At as getBankAccountsQueryKey, jt as getBankDetailsOptions, Mt as getBankDetailsQueryKey, C as getCounterparts, Nt as getCounterpartsIdAddressesOptions, Pt as getCounterpartsIdAddressesQueryKey, Ft as getCounterpartsIdBankAccountsOptions, It as getCounterpartsIdBankAccountsQueryKey, Lt as getCounterpartsIdOptions, Rt as getCounterpartsIdQueryKey, zt as getCounterpartsOptions, Bt as getCounterpartsQueryKey, Vt as getCreditCardByIdOptions, Ht as getCreditCardByIdQueryKey, Ut as getCreditCardsOptions, Wt as getCreditCardsQueryKey, Gt as getDebitCardByIdOptions, Kt as getDebitCardByIdQueryKey, qt as getDebitCardCredentialsOptions, Jt as getDebitCardsOptions, Yt as getDebitCardsQueryKey, w as getDepartment, Xt as getDepartmentOptions, Zt as getDepartmentQueryKey, T as getDepositableBankAccounts, Qt as getDepositableBankAccountsOptions, $t as getDocumentsIdNextNumbersOptions, en as getDocumentsIdNextNumbersQueryKey, tn as getEntitiesIdSettingsOptions, nn as getEntitiesIdSettingsQueryKey, rn as getEntityUsersMyEntityOptions, an as getEntityUsersOptions, E as getExternalBankAccountAccess, on as getExternalBankAccountAccessQueryKey, sn as getExternalBankAccountsOptions, cn as getExternalBankAccountsQueryKey, ln as getFilesQueryKey, un as getLedgerAccountsQueryKey, D as getLocation, dn as getLocationOptions, fn as getLocationQueryKey, pn as getMeasureUnitsOptions, mn as getMeasureUnitsQueryKey, hn as getOrganizationOptions, gn as getOverdueRemindersOptions, _n as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, vn as getPayablesIdHistoryOptions, yn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, bn as getPayablesIdLineItemsOptions, xn as getPayablesIdLineItemsQueryKey, Sn as getPayablesIdOptions, Cn as getPayablesIdQueryKey, wn as getPayablesIdSuggestionsOptions, Tn as getPayablesOptions, En as getPayablesQueryKey, M as getPaymentRecords, Dn as getPaymentRecordsOptions, On as getPaymentRecordsQueryKey, kn as getPaymentRemindersOptions, An as getPaymentRemindersQueryKey, N as getProducts, jn as getProductsIdOptions, Mn as getProductsIdQueryKey, Nn as getProductsOptions, Pn as getProductsQueryKey, P as getReceipts, Fn as getReceiptsIdQueryKey, In as getReceiptsOptions, Ln as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Rn as getReceivablesIdHistoryQueryKey, zn as getReceivablesIdMailsQueryKey, Bn as getReceivablesIdOptions, Vn as getReceivablesIdPdfLinkOptions, Hn as getReceivablesIdPdfLinkQueryKey, Un as getReceivablesIdQueryKey, Wn as getReceivablesOptions, Gn as getReceivablesQueryKey, Kn as getReceivablesRequiredFieldsOptions, qn as getRecurrencesIdOptions, Jn as getRecurrencesIdQueryKey, Yn as getRecurrencesQueryKey, Xn as getTransactionsIdExpenseHistoryOptions, Zn as getTransactionsIdExpenseHistoryQueryKey, Qn as getTransactionsIdOptions, $n as getTransactionsIdQueryKey, er as getTransactionsOptions, tr as getTransactionsQueryKey, nr as getTransactionsValidationsOptions, rr as getTransactionsValidationsQueryKey, L as getUsers, ir as getUsersOptions, ar as getUsersQueryKey, or as getVelocityControlsQueryKey, sr as grantBankAccountAccessMutation, cr as grantExternalBankAccountAccessMutation, ei as hasAnyScope, Br as invalidateAllClients, hi as isAllPagesResolving, ai as isApiConflictError, oi as isApiForbiddenError, si as isApiNotFoundError, ci as isApiUnprocessableError, Nr as isOrganizationOnItsWay, fi as isScope, lr as linkExternalBankAccountMutation, R as listDepartments, ur as listDepartmentsOptions, dr as listDepartmentsQueryKey, z as listLocations, fr as listLocationsOptions, pr as listLocationsQueryKey, B as listRoles, mr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, hr as manageDebitCardAccessMutation, ti as myEntityInvalidationKey, Zr as optionalOrganizationHeaders, Qr as organizationHeaders, gr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, _r as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, vr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, Di as personDisclosure, yr 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, br as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentRecords, we as postPaymentReminders, Te as postProducts, xr as postReceiptsUploadFromFileMutation, Ee as postReceivables, De as postReceivablesIdAccept, Oe as postReceivablesIdCancel, ke as postReceivablesIdClone, Ae as postReceivablesIdDecline, je as postReceivablesIdIssue, Me as postReceivablesIdMarkAsPaid, Ne as postReceivablesIdMarkAsUncollectible, Pe as postReceivablesIdSend, Fe as postRecurrences, Ie as postRecurrencesIdCancel, Le as postRecurrencesIdPause, Re as postRecurrencesIdResume, ze as postTransactionsIdApprove, Be as postTransactionsIdReject, Ve as postTransactionsIdReopen, He as postTransactionsIdSubmit, Ue as putEntitiesIdLogo, We as putPayablesIdLineItems, Sr as putTransactionsValidationsMutation, Vr as registerQueryClient, Hr as removeInactiveFromAllClients, Ur as resetAllClients, Wr as setAllClientsQueriesData, Cr as setDebitCardLockStatusMutation, wr as submitApplicationMutation, Tr as unlinkExternalBankAccountMutation, Gr as unregisterQueryClient, Er as updateApplicationMutation, Dr as updateBankAccountMutation, Or as updateDebitCardMutation, Ge as updateDepartment, kr as updateExternalBankAccountMutation, Ke as updateLocation, qe as updateUser, Oi as useAcceptWidgetDisclosures, _i as useAllBankAccountsQuery, vi as useAllDebitCardsQuery, yi as useAllExternalBankAccountsQuery, xi as useAllLedgerAccountsQuery, bi as useAllMerchantCategoryGroupsQuery, wi as useAllOrganizationRolesQuery, Ei as useAllOrganizationUsersQuery, gi as useAutoFetchNextPage, ni as useCurrentUserQuery, ki as useDisclosuresQuery, Xr as useEmbedApi, li as useGetUserDataQuery, Si as useLedgerAccountsQuery, ii as useMailboxAddress, ri as useMyEntityQuery, Mi as useOrganizationApplicationStatus, ji as useOrganizationOnboardingSuppression, Ci as usePaymentTermsQuery, Ti as useRolePermissionsQueries, ui as useUpsertUserDataMutation, Ar as validateExternalBankAccountMutation, jr as verifyDebitCardMutation, Pr as withAuthEpoch, Fr as withAuthEpochInfinite };
|