@tesouro/embedded-components-react 0.11.276 → 0.11.278
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/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +169 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +46 -176
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +94 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +5 -103
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +91 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +189 -70
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +19 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +28 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +34 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +2 -2
- 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/useRecurringSeriesTable.js +2 -2
- 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 +2 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index17.js +0 -28
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js
CHANGED
|
@@ -2,210 +2,27 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useEmbedApi as p } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
10
|
-
import { organizationHeaders as m } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
|
+
import { getAnalyticsReceivablesOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
11
9
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { REFETCH_ON_RETURN as b } from "./index14.js";
|
|
15
|
-
import { useMutation as x, useQuery as S } from "@tanstack/react-query";
|
|
10
|
+
import { REFETCH_ON_RETURN as i } from "./index13.js";
|
|
11
|
+
import { useQuery as a } from "@tanstack/react-query";
|
|
16
12
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js
|
|
17
|
-
function
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
headers: m(n)
|
|
28
|
-
});
|
|
29
|
-
return S({
|
|
30
|
-
...d(o, {
|
|
31
|
-
authEpoch: r,
|
|
32
|
-
organizationStatus: i
|
|
33
|
-
}),
|
|
34
|
-
enabled: a && e
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
function T({ enabled: e = !0 } = {}) {
|
|
38
|
-
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = C(), o = s({
|
|
39
|
-
client: t,
|
|
40
|
-
headers: m(n)
|
|
41
|
-
});
|
|
42
|
-
return S({
|
|
43
|
-
...d(o, {
|
|
44
|
-
authEpoch: r,
|
|
45
|
-
organizationStatus: i
|
|
46
|
-
}),
|
|
47
|
-
enabled: a && e
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
function E({ enabled: e = !0 } = {}) {
|
|
51
|
-
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = C(), o = u({
|
|
52
|
-
client: t,
|
|
53
|
-
headers: m(n)
|
|
54
|
-
});
|
|
55
|
-
return S({
|
|
56
|
-
...d(o, {
|
|
57
|
-
authEpoch: r,
|
|
58
|
-
organizationStatus: i
|
|
59
|
-
}),
|
|
60
|
-
...b,
|
|
61
|
-
enabled: a && e
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function D() {
|
|
65
|
-
let { client: e, organizationId: t } = p();
|
|
66
|
-
return x({
|
|
67
|
-
mutationFn: async ({ body: r }) => {
|
|
68
|
-
let { data: i } = await n({
|
|
69
|
-
client: e,
|
|
70
|
-
headers: m(t),
|
|
71
|
-
body: r,
|
|
72
|
-
throwOnError: !0
|
|
73
|
-
});
|
|
74
|
-
return i;
|
|
75
|
-
},
|
|
76
|
-
onSuccess: async () => {
|
|
77
|
-
await f(g({
|
|
78
|
-
client: e,
|
|
79
|
-
organizationId: t
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function O() {
|
|
85
|
-
let { client: e, organizationId: n } = p();
|
|
86
|
-
return x({
|
|
87
|
-
mutationFn: async ({ body: r }) => {
|
|
88
|
-
let { data: i } = await t({
|
|
89
|
-
client: e,
|
|
90
|
-
headers: m(n),
|
|
91
|
-
body: r,
|
|
92
|
-
throwOnError: !0
|
|
93
|
-
});
|
|
94
|
-
return i;
|
|
95
|
-
},
|
|
96
|
-
onSuccess: async () => {
|
|
97
|
-
await f(h({
|
|
98
|
-
client: e,
|
|
99
|
-
organizationId: n
|
|
100
|
-
}));
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
async function k({ client: e, organizationId: t, recurrenceId: n, receivableId: r }) {
|
|
105
|
-
await Promise.all([
|
|
106
|
-
f(v({
|
|
107
|
-
client: e,
|
|
108
|
-
organizationId: t
|
|
109
|
-
})),
|
|
110
|
-
...n ? [f(_({
|
|
111
|
-
client: e,
|
|
112
|
-
organizationId: t,
|
|
113
|
-
recurrenceId: n
|
|
114
|
-
}))] : [],
|
|
115
|
-
y({
|
|
116
|
-
client: e,
|
|
117
|
-
organizationId: t,
|
|
118
|
-
receivableId: r
|
|
119
|
-
})
|
|
120
|
-
]);
|
|
121
|
-
}
|
|
122
|
-
function A(e) {
|
|
123
|
-
let { client: t, organizationId: n, authEpoch: r, organizationStatus: i, isEnabled: a } = C(), o = l({
|
|
124
|
-
client: t,
|
|
125
|
-
headers: m(n),
|
|
126
|
-
path: { recurrence_id: e ?? "" }
|
|
127
|
-
});
|
|
128
|
-
return S({
|
|
129
|
-
...d(o, {
|
|
130
|
-
authEpoch: r,
|
|
131
|
-
organizationStatus: i
|
|
13
|
+
function o({ enabled: o = !0, ...s }) {
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = !!(l && u) && o, m = e({
|
|
15
|
+
client: c,
|
|
16
|
+
headers: r(l),
|
|
17
|
+
query: s
|
|
18
|
+
});
|
|
19
|
+
return a({
|
|
20
|
+
...t(m, {
|
|
21
|
+
authEpoch: d,
|
|
22
|
+
organizationStatus: f
|
|
132
23
|
}),
|
|
133
|
-
...
|
|
134
|
-
enabled:
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function j() {
|
|
138
|
-
let { client: e, organizationId: t } = p();
|
|
139
|
-
return x({
|
|
140
|
-
mutationFn: async ({ body: n }) => {
|
|
141
|
-
let { data: i } = await r({
|
|
142
|
-
client: e,
|
|
143
|
-
headers: m(t),
|
|
144
|
-
body: n,
|
|
145
|
-
throwOnError: !0
|
|
146
|
-
});
|
|
147
|
-
return i;
|
|
148
|
-
},
|
|
149
|
-
onSuccess: async (n, r) => {
|
|
150
|
-
await k({
|
|
151
|
-
client: e,
|
|
152
|
-
organizationId: t,
|
|
153
|
-
receivableId: r.body.invoice_id
|
|
154
|
-
});
|
|
155
|
-
}
|
|
24
|
+
...i,
|
|
25
|
+
enabled: p
|
|
156
26
|
});
|
|
157
27
|
}
|
|
158
|
-
|
|
159
|
-
let { client: t, organizationId: n } = p();
|
|
160
|
-
return x({
|
|
161
|
-
mutationFn: async ({ path: r, body: i }) => {
|
|
162
|
-
let { data: a } = await e({
|
|
163
|
-
client: t,
|
|
164
|
-
headers: m(n),
|
|
165
|
-
path: r,
|
|
166
|
-
body: i,
|
|
167
|
-
throwOnError: !0
|
|
168
|
-
});
|
|
169
|
-
return a;
|
|
170
|
-
},
|
|
171
|
-
onSuccess: async (e, r) => {
|
|
172
|
-
await k({
|
|
173
|
-
client: t,
|
|
174
|
-
organizationId: n,
|
|
175
|
-
recurrenceId: r.path.recurrence_id
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
function N(e) {
|
|
181
|
-
let { client: t, organizationId: n } = p();
|
|
182
|
-
return x({
|
|
183
|
-
mutationFn: async ({ path: r }) => {
|
|
184
|
-
let { data: i } = await e({
|
|
185
|
-
client: t,
|
|
186
|
-
headers: m(n),
|
|
187
|
-
path: r,
|
|
188
|
-
throwOnError: !0
|
|
189
|
-
});
|
|
190
|
-
return i;
|
|
191
|
-
},
|
|
192
|
-
onSuccess: async (e, r) => {
|
|
193
|
-
await k({
|
|
194
|
-
client: t,
|
|
195
|
-
organizationId: n,
|
|
196
|
-
recurrenceId: r.path.recurrence_id,
|
|
197
|
-
receivableId: r.receivableId
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
function P() {
|
|
203
|
-
return N(i);
|
|
204
|
-
}
|
|
205
|
-
function F() {
|
|
206
|
-
return N(a);
|
|
207
|
-
}
|
|
208
|
-
function I() {
|
|
209
|
-
return N(o);
|
|
210
|
-
}
|
|
211
|
-
export { P as useCancelRecurrenceMutation, O as useCreateOverdueReminderMutation, D as useCreatePaymentReminderMutation, j as useCreateRecurrenceMutation, T as useOverdueRemindersQuery, F as usePauseRecurrenceMutation, w as usePaymentRemindersQuery, A as useRecurrenceQuery, E as useRecurrencesQuery, I as useResumeRecurrenceMutation, M as useUpdateRecurrenceMutation };
|
|
28
|
+
export { o as useReceivablesAnalyticsQuery };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js
CHANGED
|
@@ -2,5 +2,68 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
+
import { deleteFilesId as e, postFiles as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
9
|
import "../../../shared/data-access/dist/index.js";
|
|
6
|
-
import "
|
|
10
|
+
import { receivableAttachmentsInvalidationKey as a, receivableInvalidationKey as o } from "./index2.js";
|
|
11
|
+
import { useMutation as s } from "@tanstack/react-query";
|
|
12
|
+
// ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js
|
|
13
|
+
var c = "attachments";
|
|
14
|
+
async function l({ client: e, organizationId: t, receivableId: r }) {
|
|
15
|
+
let i = [a({
|
|
16
|
+
client: e,
|
|
17
|
+
organizationId: t
|
|
18
|
+
}), ...r ? [o({
|
|
19
|
+
client: e,
|
|
20
|
+
organizationId: t,
|
|
21
|
+
receivableId: r
|
|
22
|
+
})] : []];
|
|
23
|
+
await Promise.all(i.map((e) => n(e)));
|
|
24
|
+
}
|
|
25
|
+
function u() {
|
|
26
|
+
let { client: e, organizationId: n } = r();
|
|
27
|
+
return s({
|
|
28
|
+
mutationFn: async ({ file: r }) => {
|
|
29
|
+
let { data: a } = await t({
|
|
30
|
+
client: e,
|
|
31
|
+
headers: i(n),
|
|
32
|
+
body: {
|
|
33
|
+
file: r,
|
|
34
|
+
file_type: c
|
|
35
|
+
},
|
|
36
|
+
throwOnError: !0
|
|
37
|
+
});
|
|
38
|
+
return a;
|
|
39
|
+
},
|
|
40
|
+
onSuccess: async (t, r) => {
|
|
41
|
+
await l({
|
|
42
|
+
client: e,
|
|
43
|
+
organizationId: n,
|
|
44
|
+
receivableId: r.receivableId
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function d() {
|
|
50
|
+
let { client: t, organizationId: n } = r();
|
|
51
|
+
return s({
|
|
52
|
+
mutationFn: async ({ path: r }) => {
|
|
53
|
+
await e({
|
|
54
|
+
client: t,
|
|
55
|
+
headers: i(n),
|
|
56
|
+
path: r,
|
|
57
|
+
throwOnError: !0
|
|
58
|
+
});
|
|
59
|
+
},
|
|
60
|
+
onSuccess: async (e, r) => {
|
|
61
|
+
await l({
|
|
62
|
+
client: t,
|
|
63
|
+
organizationId: n,
|
|
64
|
+
receivableId: r.receivableId
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
export { d as useDeleteReceivableAttachmentMutation, u as useUploadReceivableAttachmentMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js
CHANGED
|
@@ -1,69 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { deleteFilesId as e, postFiles as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
-
import { invalidateAllClients as n } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
-
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
-
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
1
|
+
import { invalidateAllClients as e, resetAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
9
2
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import { useMutation as s } from "@tanstack/react-query";
|
|
3
|
+
import { receivableHistoryInvalidationKey as n, receivableInvalidationKey as r, receivablePdfInvalidationKey as i, receivablesAnalyticsInvalidationKey as a, receivablesInvalidationKey as o } from "./index2.js";
|
|
12
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
async function s({ client: s, organizationId: c, receivableId: l, resetPdf: u = !1 }) {
|
|
6
|
+
let d = [
|
|
7
|
+
o({
|
|
8
|
+
client: s,
|
|
9
|
+
organizationId: c
|
|
10
|
+
}),
|
|
11
|
+
a({
|
|
12
|
+
client: s,
|
|
13
|
+
organizationId: c
|
|
14
|
+
}),
|
|
15
|
+
...l ? [r({
|
|
16
|
+
client: s,
|
|
17
|
+
organizationId: c,
|
|
18
|
+
receivableId: l
|
|
19
|
+
}), n({
|
|
20
|
+
client: s,
|
|
21
|
+
organizationId: c,
|
|
22
|
+
receivableId: l
|
|
23
|
+
})] : []
|
|
24
|
+
], f = l ? i({
|
|
25
|
+
client: s,
|
|
26
|
+
organizationId: c,
|
|
27
|
+
receivableId: l
|
|
28
|
+
}) : void 0;
|
|
29
|
+
await Promise.all([...d.map((t) => e(t)), ...f ? [u ? t(f) : e(f)] : []]);
|
|
24
30
|
}
|
|
25
|
-
|
|
26
|
-
let { client: e, organizationId: n } = r();
|
|
27
|
-
return s({
|
|
28
|
-
mutationFn: async ({ file: r }) => {
|
|
29
|
-
let { data: a } = await t({
|
|
30
|
-
client: e,
|
|
31
|
-
headers: i(n),
|
|
32
|
-
body: {
|
|
33
|
-
file: r,
|
|
34
|
-
file_type: c
|
|
35
|
-
},
|
|
36
|
-
throwOnError: !0
|
|
37
|
-
});
|
|
38
|
-
return a;
|
|
39
|
-
},
|
|
40
|
-
onSuccess: async (t, r) => {
|
|
41
|
-
await l({
|
|
42
|
-
client: e,
|
|
43
|
-
organizationId: n,
|
|
44
|
-
receivableId: r.receivableId
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function d() {
|
|
50
|
-
let { client: t, organizationId: n } = r();
|
|
51
|
-
return s({
|
|
52
|
-
mutationFn: async ({ path: r }) => {
|
|
53
|
-
await e({
|
|
54
|
-
client: t,
|
|
55
|
-
headers: i(n),
|
|
56
|
-
path: r,
|
|
57
|
-
throwOnError: !0
|
|
58
|
-
});
|
|
59
|
-
},
|
|
60
|
-
onSuccess: async (e, r) => {
|
|
61
|
-
await l({
|
|
62
|
-
client: t,
|
|
63
|
-
organizationId: n,
|
|
64
|
-
receivableId: r.receivableId
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
export { d as useDeleteReceivableAttachmentMutation, u as useUploadReceivableAttachmentMutation };
|
|
31
|
+
export { s as invalidateReceivable };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js
CHANGED
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { postReceivablesIdSend as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
9
|
import "../../../shared/data-access/dist/index.js";
|
|
3
|
-
import {
|
|
10
|
+
import { receivableMailsInvalidationKey as i } from "./index2.js";
|
|
11
|
+
import { invalidateReceivable as a } from "./index8.js";
|
|
12
|
+
import { useMutation as o } from "@tanstack/react-query";
|
|
4
13
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js
|
|
5
|
-
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
receivableId: l
|
|
28
|
-
}) : void 0;
|
|
29
|
-
await Promise.all([...d.map((t) => e(t)), ...f ? [u ? t(f) : e(f)] : []]);
|
|
14
|
+
function s() {
|
|
15
|
+
let { client: s, organizationId: c } = n();
|
|
16
|
+
return o({
|
|
17
|
+
mutationFn: async ({ path: t, body: n }) => {
|
|
18
|
+
let { data: i } = await e({
|
|
19
|
+
client: s,
|
|
20
|
+
headers: r(c),
|
|
21
|
+
path: t,
|
|
22
|
+
body: n,
|
|
23
|
+
throwOnError: !0
|
|
24
|
+
});
|
|
25
|
+
return i;
|
|
26
|
+
},
|
|
27
|
+
onSuccess: async (e, n) => {
|
|
28
|
+
let r = {
|
|
29
|
+
client: s,
|
|
30
|
+
organizationId: c,
|
|
31
|
+
receivableId: n.path.receivable_id
|
|
32
|
+
};
|
|
33
|
+
await Promise.all([t(i(r)), a(r)]);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
30
36
|
}
|
|
31
|
-
export { s as
|
|
37
|
+
export { s as useSendReceivableEmailMutation };
|
|
@@ -9,9 +9,9 @@ import "../../../../../shared/ui/dist/index.js";
|
|
|
9
9
|
import { getCounterpartEmail as n } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
10
10
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
11
11
|
import { formatMoney as r, isReceivableReadyToIssue as i } from "./helpers.js";
|
|
12
|
-
import { useAcceptReceivableMutation as a, useCancelReceivableMutation as o, useCloneReceivableMutation as s, useDeclineReceivableMutation as c, useDeleteReceivableMutation as l, useIssueReceivableMutation as u } from "../../../../data-access/dist/
|
|
13
|
-
import { useMarkReceivablePaidMutation as d, useMarkReceivableUncollectibleMutation as f } from "../../../../data-access/dist/
|
|
14
|
-
import { useCancelRecurrenceMutation as ee, usePauseRecurrenceMutation as p, useResumeRecurrenceMutation as te } from "../../../../data-access/dist/
|
|
12
|
+
import { useAcceptReceivableMutation as a, useCancelReceivableMutation as o, useCloneReceivableMutation as s, useDeclineReceivableMutation as c, useDeleteReceivableMutation as l, useIssueReceivableMutation as u } from "../../../../data-access/dist/index10.js";
|
|
13
|
+
import { useMarkReceivablePaidMutation as d, useMarkReceivableUncollectibleMutation as f } from "../../../../data-access/dist/index12.js";
|
|
14
|
+
import { useCancelRecurrenceMutation as ee, usePauseRecurrenceMutation as p, useResumeRecurrenceMutation as te } from "../../../../data-access/dist/index15.js";
|
|
15
15
|
import "../../../../data-access/dist/index.js";
|
|
16
16
|
import { getIssueReminderBlocker as m, hasSelectedReminder as h } from "./reminders.js";
|
|
17
17
|
import { useReceivableIssuePreflight as ne } from "./useReceivableIssuePreflight.js";
|
|
@@ -7,8 +7,8 @@ import "../../../../../shared/ui/dist/index.js";
|
|
|
7
7
|
import { getCounterpartEmail as t, getCounterpartName as n } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
8
8
|
import { useCounterpartQuery as r } from "../../../../../shared/counterpart-management/data-access/dist/index3.js";
|
|
9
9
|
import "../../../../../shared/counterpart-management/feature/dist/index.js";
|
|
10
|
-
import { useSendReceivableEmailMutation as i } from "../../../../data-access/dist/
|
|
11
|
-
import { useReceivableQuery as a } from "../../../../data-access/dist/
|
|
10
|
+
import { useSendReceivableEmailMutation as i } from "../../../../data-access/dist/index9.js";
|
|
11
|
+
import { useReceivableQuery as a } from "../../../../data-access/dist/index14.js";
|
|
12
12
|
import "../../../../data-access/dist/index.js";
|
|
13
13
|
import { useCreateProductMutation as o } from "../../../../../shared/product-catalog/data-access/dist/index6.js";
|
|
14
14
|
import { useMeasureUnits as s } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
|
|
@@ -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
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js
|
|
@@ -14,9 +14,9 @@ import { RECEIVABLE_DETAILS_SECTION as n } from "../../../../ui/dist/index38.js"
|
|
|
14
14
|
import "../../../../ui/dist/index.js";
|
|
15
15
|
import { useAllReceivableHistoryQuery as r } from "../../../../data-access/dist/index4.js";
|
|
16
16
|
import { usePaymentAccountsQuery as i } from "../../../../data-access/dist/index6.js";
|
|
17
|
-
import { useReceivablePaymentRecordsQuery as a } from "../../../../data-access/dist/
|
|
18
|
-
import { useReceivablePdfLinkQuery as o, useReceivableQuery as re, useReceivablesByIdQueries as ie } from "../../../../data-access/dist/
|
|
19
|
-
import { useOverdueRemindersQuery as s, usePaymentRemindersQuery as ae, useRecurrenceQuery as c } from "../../../../data-access/dist/
|
|
17
|
+
import { useReceivablePaymentRecordsQuery as a } from "../../../../data-access/dist/index11.js";
|
|
18
|
+
import { useReceivablePdfLinkQuery as o, useReceivableQuery as re, useReceivablesByIdQueries as ie } from "../../../../data-access/dist/index14.js";
|
|
19
|
+
import { useOverdueRemindersQuery as s, usePaymentRemindersQuery as ae, useRecurrenceQuery as c } from "../../../../data-access/dist/index15.js";
|
|
20
20
|
import "../../../../data-access/dist/index.js";
|
|
21
21
|
import { canRecordPayments as l } from "./paymentRecord.js";
|
|
22
22
|
import { buildReceivableAuditHistoryLabels as u } from "./auditHistory/labels.js";
|
|
@@ -23,8 +23,8 @@ import { convertDiscountInput as Ce, decorateDiscountInput as we, discountInputT
|
|
|
23
23
|
import { buildFormTotalsView as De, calculateFormTotals as Oe, validateDiscount as ke, validateInvoiceTotals as Ae } from "./totals.js";
|
|
24
24
|
import { createEmptyReceivableFormValues as je, hasReceivableFormErrors as Me, receivableFormValuesToCreatePayload as Ne, receivableFormValuesToLineItemChanges as Pe, receivableFormValuesToUpdatePayload as Fe, receivableToFormValues as Ie, resolveCounterpartAddresses as Le, submittedLineItemRows as Re, validateReceivableForm as ze } from "./helpers.js";
|
|
25
25
|
import { INLINE_CUSTOMER_TYPE as Be, buildInlineCustomerPayload as Ve, seedCustomerFormValues as He } from "./customer.js";
|
|
26
|
-
import { useCreateReceivableMutation as Ue, useIssueReceivableMutation as We, useUpdateReceivableMutation as Ge } from "../../../../data-access/dist/
|
|
27
|
-
import { useCreateRecurrenceMutation as Ke, useRecurrenceQuery as qe, useUpdateRecurrenceMutation as Je } from "../../../../data-access/dist/
|
|
26
|
+
import { useCreateReceivableMutation as Ue, useIssueReceivableMutation as We, useUpdateReceivableMutation as Ge } from "../../../../data-access/dist/index10.js";
|
|
27
|
+
import { useCreateRecurrenceMutation as Ke, useRecurrenceQuery as qe, useUpdateRecurrenceMutation as Je } from "../../../../data-access/dist/index15.js";
|
|
28
28
|
import "../../../../data-access/dist/index.js";
|
|
29
29
|
import { useMeasureUnitsQuery as Ye } from "../../../../../shared/product-catalog/data-access/dist/index9.js";
|
|
30
30
|
import { useMeasureUnits as Xe } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.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/index14.js";
|
|
10
10
|
import "../../../../data-access/dist/index.js";
|
|
11
11
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js
|
|
12
12
|
function r({ counterpartId: r, billingAddressId: i, billingCountry: a, inlineCustomerType: o, checkRequiredFields: s = !0, isAddressesLoading: c = !1 }) {
|
|
@@ -12,7 +12,7 @@ import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/Wid
|
|
|
12
12
|
import "../../../../../shared/feature/dist/index.js";
|
|
13
13
|
import { getCurrencySymbol as i } from "./lineItems.js";
|
|
14
14
|
import { formatMoney as a } from "./helpers.js";
|
|
15
|
-
import { useCreateReceivablePaymentRecordMutation as o } from "../../../../data-access/dist/
|
|
15
|
+
import { useCreateReceivablePaymentRecordMutation as o } from "../../../../data-access/dist/index12.js";
|
|
16
16
|
import "../../../../data-access/dist/index.js";
|
|
17
17
|
import { amountDueInputValue as s, buildPaymentRecordPayload as c, buildPaymentReviewView as l, defaultPaymentRecordValues as u, hasPaymentRecordErrors as d, validatePaymentRecordValues as f } from "./paymentRecord.js";
|
|
18
18
|
import { useCallback as p, useState as m } from "react";
|
|
@@ -9,7 +9,7 @@ import { usePaymentTermsQuery as n } from "../../../../../shared/data-access/dis
|
|
|
9
9
|
import "../../../../../shared/ui/dist/index.js";
|
|
10
10
|
import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
11
|
import "../../../../../shared/feature/dist/index.js";
|
|
12
|
-
import { useCreateOverdueReminderMutation as i, useCreatePaymentReminderMutation as a, useOverdueRemindersQuery as o, usePaymentRemindersQuery as s } from "../../../../data-access/dist/
|
|
12
|
+
import { useCreateOverdueReminderMutation as i, useCreatePaymentReminderMutation as a, useOverdueRemindersQuery as o, usePaymentRemindersQuery as s } from "../../../../data-access/dist/index15.js";
|
|
13
13
|
import "../../../../data-access/dist/index.js";
|
|
14
14
|
import { areOverdueTermsValid as c, buildOverdueReminderPayload as l, buildPaymentReminderPayload as u, buildRemindersView as d, canCreateReminders as f, getImpliedDueDate as p, isBeforeDueDaysValid as m, sanitizeReminderDays as h } from "./reminders.js";
|
|
15
15
|
import { useCallback as g, useMemo as _, useState as v } from "react";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { buildReceivableStatusCardsView as e } from "./statusCards.js";
|
|
6
|
-
import { useReceivablesAnalyticsQuery as t } from "../../../../data-access/dist/
|
|
6
|
+
import { useReceivablesAnalyticsQuery as t } from "../../../../data-access/dist/index16.js";
|
|
7
7
|
import "../../../../data-access/dist/index.js";
|
|
8
8
|
import { useMemo as n } from "react";
|
|
9
9
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { buildReceivableRows as e } from "./helpers.js";
|
|
6
6
|
import { buildPaidWindow as t } from "./statusCards.js";
|
|
7
|
-
import { useReceivablesQuery as n } from "../../../../data-access/dist/
|
|
7
|
+
import { useReceivablesQuery as n } from "../../../../data-access/dist/index14.js";
|
|
8
8
|
import "../../../../data-access/dist/index.js";
|
|
9
9
|
import { useInvoicesFilter as r } from "./useInvoicesFilter.js";
|
|
10
10
|
import { useReceivableCustomerNames as i } from "./useReceivableCustomerNames.js";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { useFilterPanel as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import { useReceivablesQuery as t } from "../../../../data-access/dist/
|
|
7
|
-
import { useRecurrencesQuery as n } from "../../../../data-access/dist/
|
|
6
|
+
import { useReceivablesQuery as t } from "../../../../data-access/dist/index14.js";
|
|
7
|
+
import { useRecurrencesQuery as n } from "../../../../data-access/dist/index15.js";
|
|
8
8
|
import "../../../../data-access/dist/index.js";
|
|
9
9
|
import { InvoicesFilterChipKey as r, buildInvoicesFilterChips as i, clearInvoicesFilter as a, countActiveInvoiceFilters as o, emptyInvoicesFilterState as s } from "./invoicesFilter.js";
|
|
10
10
|
import { mergeInvoicesFilterLabels as c } from "./invoicesFilterLabels.js";
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.278", n = "876e326d8f946fa275dca5b8a14099213684123e", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -8710,6 +8710,7 @@ var q_ = z_("ttw:inline-flex ttw:cursor-pointer ttw:items-center ttw:justify-cen
|
|
|
8710
8710
|
outline: "ttw:border ttw:border-border ttw:bg-background ttw:shadow-xs ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:dark:bg-input/30 ttw:dark:border-input ttw:dark:hover:bg-input/50",
|
|
8711
8711
|
secondary: "ttw:bg-secondary ttw:text-secondary-foreground ttw:hover:bg-secondary/80",
|
|
8712
8712
|
ghost: "ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:dark:hover:bg-accent/50",
|
|
8713
|
+
utility: "ttw:font-normal ttw:text-muted-foreground ttw:hover:bg-accent ttw:hover:text-foreground ttw:dark:hover:bg-accent/50",
|
|
8713
8714
|
link: "ttw:text-primary ttw:underline-offset-4 ttw:hover:underline"
|
|
8714
8715
|
},
|
|
8715
8716
|
size: {
|
|
@@ -18016,7 +18017,7 @@ function mM({ activeCount: e, size: t = "sm", labels: n, className: r, ...i }) {
|
|
|
18016
18017
|
return /* @__PURE__ */ b("button", {
|
|
18017
18018
|
type: "button",
|
|
18018
18019
|
className: J(q_({
|
|
18019
|
-
variant: "
|
|
18020
|
+
variant: "utility",
|
|
18020
18021
|
size: t
|
|
18021
18022
|
}), r),
|
|
18022
18023
|
...i,
|