@tesouro/embedded-components-react 0.5.257 → 0.5.259
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/fixtures/index.d.ts +1 -1
- package/dist/index.css +109 -9
- package/dist/index.d.ts +41 -10
- package/dist/lib/ReceivablesWidget.d.ts +41 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +42 -94
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +91 -76
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +67 -173
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +28 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +128 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +66 -28
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +24 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +173 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +274 -267
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +99 -95
- 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/paymentTerms.js +28 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +49 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/unsavedChanges.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +4 -4
- 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/useReceivableBankAccount.js +77 -72
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +363 -295
- 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/useReceivablePreview.js +36 -21
- 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/ui/dist/index.js +12 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +21 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +68 -64
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +383 -379
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +8 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +258 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +95 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +23 -231
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +237 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +3 -249
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +234 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +87 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +49 -349
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +359 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +247 -214
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +175 -147
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/index.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +109 -89
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +0 -4
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js
CHANGED
|
@@ -1,38 +1,32 @@
|
|
|
1
|
-
|
|
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";
|
|
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 { invalidateReceivable as a } from "./index6.js";
|
|
12
|
-
import { useMutation as o } from "@tanstack/react-query";
|
|
3
|
+
import { receivableHistoryInvalidationKey as n, receivableInvalidationKey as r, receivablePdfInvalidationKey as i, receivablesAnalyticsInvalidationKey as a, receivablesInvalidationKey as o } from "./index2.js";
|
|
13
4
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js
|
|
14
|
-
function s() {
|
|
15
|
-
let
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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)] : []]);
|
|
36
30
|
}
|
|
37
31
|
//#endregion
|
|
38
|
-
export { s as
|
|
32
|
+
export { s as invalidateReceivable };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js
CHANGED
|
@@ -2,181 +2,37 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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";
|
|
8
9
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
10
|
+
import { receivableMailsInvalidationKey as i } from "./index2.js";
|
|
11
|
+
import { invalidateReceivable as a } from "./index7.js";
|
|
12
|
+
import { useMutation as o } from "@tanstack/react-query";
|
|
11
13
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js
|
|
12
|
-
function
|
|
13
|
-
let { client:
|
|
14
|
-
return
|
|
15
|
-
mutationFn: async ({ body:
|
|
16
|
-
let { data: i } = await
|
|
17
|
-
client:
|
|
18
|
-
headers:
|
|
19
|
-
|
|
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,
|
|
20
23
|
throwOnError: !0
|
|
21
24
|
});
|
|
22
25
|
return i;
|
|
23
26
|
},
|
|
24
|
-
onSuccess: async () => {
|
|
25
|
-
|
|
26
|
-
client:
|
|
27
|
-
organizationId:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
function p() {
|
|
33
|
-
let { client: e, organizationId: n } = c();
|
|
34
|
-
return d({
|
|
35
|
-
mutationFn: async ({ path: r, body: i }) => {
|
|
36
|
-
let { data: a } = await t({
|
|
37
|
-
client: e,
|
|
38
|
-
headers: l(n),
|
|
39
|
-
path: r,
|
|
40
|
-
body: i,
|
|
41
|
-
throwOnError: !0
|
|
42
|
-
});
|
|
43
|
-
return a;
|
|
44
|
-
},
|
|
45
|
-
onSuccess: async (t, r) => {
|
|
46
|
-
await u({
|
|
47
|
-
client: e,
|
|
48
|
-
organizationId: n,
|
|
49
|
-
receivableId: r.path.receivable_id,
|
|
50
|
-
resetPdf: !0
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function m() {
|
|
56
|
-
let { client: t, organizationId: n } = c();
|
|
57
|
-
return d({
|
|
58
|
-
mutationFn: async ({ path: r }) => {
|
|
59
|
-
await e({
|
|
60
|
-
client: t,
|
|
61
|
-
headers: l(n),
|
|
62
|
-
path: r,
|
|
63
|
-
throwOnError: !0
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
onSuccess: async (e, r) => {
|
|
67
|
-
await u({
|
|
68
|
-
client: t,
|
|
69
|
-
organizationId: n,
|
|
70
|
-
receivableId: r.path.receivable_id
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function h() {
|
|
76
|
-
let { client: e, organizationId: t } = c();
|
|
77
|
-
return d({
|
|
78
|
-
mutationFn: async ({ path: n }) => {
|
|
79
|
-
let { data: r } = await s({
|
|
80
|
-
client: e,
|
|
81
|
-
headers: l(t),
|
|
82
|
-
path: n,
|
|
83
|
-
throwOnError: !0
|
|
84
|
-
});
|
|
85
|
-
return r;
|
|
86
|
-
},
|
|
87
|
-
onSuccess: async (n, r) => {
|
|
88
|
-
await u({
|
|
89
|
-
client: e,
|
|
90
|
-
organizationId: t,
|
|
91
|
-
receivableId: r.path.receivable_id,
|
|
92
|
-
resetPdf: !0
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function g() {
|
|
98
|
-
let { client: e, organizationId: t } = c();
|
|
99
|
-
return d({
|
|
100
|
-
mutationFn: async ({ path: n }) => {
|
|
101
|
-
await i({
|
|
102
|
-
client: e,
|
|
103
|
-
headers: l(t),
|
|
104
|
-
path: n,
|
|
105
|
-
throwOnError: !0
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
|
-
onSuccess: async (n, r) => {
|
|
109
|
-
await u({
|
|
110
|
-
client: e,
|
|
111
|
-
organizationId: t,
|
|
112
|
-
receivableId: r.path.receivable_id
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
function _() {
|
|
118
|
-
let { client: e, organizationId: t } = c();
|
|
119
|
-
return d({
|
|
120
|
-
mutationFn: async ({ path: n }) => {
|
|
121
|
-
let { data: r } = await a({
|
|
122
|
-
client: e,
|
|
123
|
-
headers: l(t),
|
|
124
|
-
path: n,
|
|
125
|
-
throwOnError: !0
|
|
126
|
-
});
|
|
127
|
-
return r;
|
|
128
|
-
},
|
|
129
|
-
onSuccess: async () => {
|
|
130
|
-
await u({
|
|
131
|
-
client: e,
|
|
132
|
-
organizationId: t
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
function v() {
|
|
138
|
-
let { client: e, organizationId: t } = c();
|
|
139
|
-
return d({
|
|
140
|
-
mutationFn: async ({ path: n, body: i }) => {
|
|
141
|
-
let { data: a } = await r({
|
|
142
|
-
client: e,
|
|
143
|
-
headers: l(t),
|
|
144
|
-
path: n,
|
|
145
|
-
body: i,
|
|
146
|
-
throwOnError: !0
|
|
147
|
-
});
|
|
148
|
-
return a;
|
|
149
|
-
},
|
|
150
|
-
onSuccess: async (n, r) => {
|
|
151
|
-
await u({
|
|
152
|
-
client: e,
|
|
153
|
-
organizationId: t,
|
|
154
|
-
receivableId: r.path.receivable_id
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
function y() {
|
|
160
|
-
let { client: e, organizationId: t } = c();
|
|
161
|
-
return d({
|
|
162
|
-
mutationFn: async ({ path: n, body: r }) => {
|
|
163
|
-
let { data: i } = await o({
|
|
164
|
-
client: e,
|
|
165
|
-
headers: l(t),
|
|
166
|
-
path: n,
|
|
167
|
-
body: r,
|
|
168
|
-
throwOnError: !0
|
|
169
|
-
});
|
|
170
|
-
return i;
|
|
171
|
-
},
|
|
172
|
-
onSuccess: async (n, r) => {
|
|
173
|
-
await u({
|
|
174
|
-
client: e,
|
|
175
|
-
organizationId: t,
|
|
176
|
-
receivableId: r.path.receivable_id
|
|
177
|
-
});
|
|
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)]);
|
|
178
34
|
}
|
|
179
35
|
});
|
|
180
36
|
}
|
|
181
37
|
//#endregion
|
|
182
|
-
export {
|
|
38
|
+
export { s as useSendReceivableEmailMutation };
|
package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js
CHANGED
|
@@ -2,52 +2,181 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
-
import { organizationHeaders as i } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
|
+
import { deleteReceivablesId as e, patchReceivablesId as t, postReceivables as n, postReceivablesIdAccept as r, postReceivablesIdCancel as i, postReceivablesIdClone as a, postReceivablesIdDecline as o, postReceivablesIdIssue as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as c } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as l } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
8
|
import "../../../shared/data-access/dist/index.js";
|
|
11
|
-
import {
|
|
9
|
+
import { invalidateReceivable as u } from "./index7.js";
|
|
10
|
+
import { useMutation as d } from "@tanstack/react-query";
|
|
12
11
|
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
12
|
+
function f() {
|
|
13
|
+
let { client: e, organizationId: t } = c();
|
|
14
|
+
return d({
|
|
15
|
+
mutationFn: async ({ body: r }) => {
|
|
16
|
+
let { data: i } = await n({
|
|
17
|
+
client: e,
|
|
18
|
+
headers: l(t),
|
|
19
|
+
body: r,
|
|
20
|
+
throwOnError: !0
|
|
21
|
+
});
|
|
22
|
+
return i;
|
|
23
|
+
},
|
|
24
|
+
onSuccess: async () => {
|
|
25
|
+
await u({
|
|
26
|
+
client: e,
|
|
27
|
+
organizationId: t
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function p() {
|
|
33
|
+
let { client: e, organizationId: n } = c();
|
|
34
|
+
return d({
|
|
35
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
36
|
+
let { data: a } = await t({
|
|
37
|
+
client: e,
|
|
38
|
+
headers: l(n),
|
|
39
|
+
path: r,
|
|
40
|
+
body: i,
|
|
41
|
+
throwOnError: !0
|
|
42
|
+
});
|
|
43
|
+
return a;
|
|
44
|
+
},
|
|
45
|
+
onSuccess: async (t, r) => {
|
|
46
|
+
await u({
|
|
47
|
+
client: e,
|
|
48
|
+
organizationId: n,
|
|
49
|
+
receivableId: r.path.receivable_id,
|
|
50
|
+
resetPdf: !0
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
function m() {
|
|
56
|
+
let { client: t, organizationId: n } = c();
|
|
57
|
+
return d({
|
|
58
|
+
mutationFn: async ({ path: r }) => {
|
|
59
|
+
await e({
|
|
60
|
+
client: t,
|
|
61
|
+
headers: l(n),
|
|
62
|
+
path: r,
|
|
63
|
+
throwOnError: !0
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
onSuccess: async (e, r) => {
|
|
67
|
+
await u({
|
|
68
|
+
client: t,
|
|
69
|
+
organizationId: n,
|
|
70
|
+
receivableId: r.path.receivable_id
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
function h() {
|
|
76
|
+
let { client: e, organizationId: t } = c();
|
|
77
|
+
return d({
|
|
78
|
+
mutationFn: async ({ path: n }) => {
|
|
79
|
+
let { data: r } = await s({
|
|
80
|
+
client: e,
|
|
81
|
+
headers: l(t),
|
|
82
|
+
path: n,
|
|
83
|
+
throwOnError: !0
|
|
84
|
+
});
|
|
85
|
+
return r;
|
|
86
|
+
},
|
|
87
|
+
onSuccess: async (n, r) => {
|
|
88
|
+
await u({
|
|
89
|
+
client: e,
|
|
90
|
+
organizationId: t,
|
|
91
|
+
receivableId: r.path.receivable_id,
|
|
92
|
+
resetPdf: !0
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function g() {
|
|
98
|
+
let { client: e, organizationId: t } = c();
|
|
99
|
+
return d({
|
|
100
|
+
mutationFn: async ({ path: n }) => {
|
|
101
|
+
await i({
|
|
102
|
+
client: e,
|
|
103
|
+
headers: l(t),
|
|
104
|
+
path: n,
|
|
105
|
+
throwOnError: !0
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
onSuccess: async (n, r) => {
|
|
109
|
+
await u({
|
|
110
|
+
client: e,
|
|
111
|
+
organizationId: t,
|
|
112
|
+
receivableId: r.path.receivable_id
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function _() {
|
|
118
|
+
let { client: e, organizationId: t } = c();
|
|
119
|
+
return d({
|
|
120
|
+
mutationFn: async ({ path: n }) => {
|
|
121
|
+
let { data: r } = await a({
|
|
122
|
+
client: e,
|
|
123
|
+
headers: l(t),
|
|
124
|
+
path: n,
|
|
125
|
+
throwOnError: !0
|
|
126
|
+
});
|
|
127
|
+
return r;
|
|
128
|
+
},
|
|
129
|
+
onSuccess: async () => {
|
|
130
|
+
await u({
|
|
131
|
+
client: e,
|
|
132
|
+
organizationId: t
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function v() {
|
|
138
|
+
let { client: e, organizationId: t } = c();
|
|
139
|
+
return d({
|
|
140
|
+
mutationFn: async ({ path: n, body: i }) => {
|
|
141
|
+
let { data: a } = await r({
|
|
142
|
+
client: e,
|
|
143
|
+
headers: l(t),
|
|
144
|
+
path: n,
|
|
145
|
+
body: i,
|
|
146
|
+
throwOnError: !0
|
|
147
|
+
});
|
|
148
|
+
return a;
|
|
149
|
+
},
|
|
150
|
+
onSuccess: async (n, r) => {
|
|
151
|
+
await u({
|
|
152
|
+
client: e,
|
|
153
|
+
organizationId: t,
|
|
154
|
+
receivableId: r.path.receivable_id
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
function y() {
|
|
160
|
+
let { client: e, organizationId: t } = c();
|
|
161
|
+
return d({
|
|
162
|
+
mutationFn: async ({ path: n, body: r }) => {
|
|
163
|
+
let { data: i } = await o({
|
|
164
|
+
client: e,
|
|
165
|
+
headers: l(t),
|
|
166
|
+
path: n,
|
|
167
|
+
body: r,
|
|
168
|
+
throwOnError: !0
|
|
169
|
+
});
|
|
170
|
+
return i;
|
|
171
|
+
},
|
|
172
|
+
onSuccess: async (n, r) => {
|
|
173
|
+
await u({
|
|
174
|
+
client: e,
|
|
175
|
+
organizationId: t,
|
|
176
|
+
receivableId: r.path.receivable_id
|
|
177
|
+
});
|
|
178
|
+
}
|
|
50
179
|
});
|
|
51
180
|
}
|
|
52
181
|
//#endregion
|
|
53
|
-
export {
|
|
182
|
+
export { v as useAcceptReceivableMutation, g as useCancelReceivableMutation, _ as useCloneReceivableMutation, f as useCreateReceivableMutation, y as useDeclineReceivableMutation, m as useDeleteReceivableMutation, h as useIssueReceivableMutation, p as useUpdateReceivableMutation };
|