@tesouro/embedded-components-react 0.11.176 → 0.11.180
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/bill-pay-widget/bill-detail/data-access/dist/index.js +24 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index10.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index11.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index12.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index14.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index15.js +13 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index16.js +34 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index17.js +23 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +26 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +12 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +34 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index20.js +48 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +36 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index23.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index24.js +31 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index25.js +26 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index26.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +90 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +30 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index5.js +8 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index6.js +60 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index7.js +6 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index8.js +12 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index9.js +20 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index10.js +17 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index11.js +42 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index12.js +89 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index13.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +15 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index15.js +103 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index16.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index17.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index18.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +11 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index20.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +22 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +14 -137
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index23.js +139 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index24.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +15 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +39 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +96 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +4 -57
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index30.js +56 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +114 -197
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +194 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +75 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +69 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +108 -459
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +450 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +117 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +8 -85
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +73 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +71 -246
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +251 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +38 -237
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +244 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +21 -529
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +530 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +4 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +41 -242
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +245 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +3 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +4 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index9.js +6 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index3.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/approvalDecisionQueries.js +22 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/queryKeys.js +32 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +42 -42
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +237 -215
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +151 -135
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import "./index18.js";
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import "./index25.js";
|
|
23
|
-
|
|
1
|
+
import { useApprovalProcessStepsQuery as e, usePayableApprovalProcessesQuery as t } from "./index2.js";
|
|
2
|
+
import { useApprovePayableApprovalRequestMutation as n, usePayableApprovalRequestsQuery as r, useRejectPayableApprovalRequestMutation as i } from "./index3.js";
|
|
3
|
+
import { usePayableHistoryQuery as a } from "./index4.js";
|
|
4
|
+
import { useAllPayableLineItemsQuery as o, useReplacePayableLineItemsMutation as s } from "./index6.js";
|
|
5
|
+
import { useAttachPayableFileMutation as c } from "./index7.js";
|
|
6
|
+
import { useCancelPayableMutation as l } from "./index8.js";
|
|
7
|
+
import { useCancelScheduledPaymentMutation as u } from "./index9.js";
|
|
8
|
+
import { useCreatePayableMutation as d } from "./index10.js";
|
|
9
|
+
import { useDeletePayableFileMutation as f } from "./index11.js";
|
|
10
|
+
import { useDeletePayableMutation as p } from "./index12.js";
|
|
11
|
+
import { useForceApprovePayableMutation as m } from "./index13.js";
|
|
12
|
+
import { useForceRejectPayableMutation as h } from "./index14.js";
|
|
13
|
+
import { useReopenPayableMutation as g } from "./index15.js";
|
|
14
|
+
import { useSubmitPayableForApprovalMutation as _ } from "./index16.js";
|
|
15
|
+
import { useUpdatePayableMutation as v } from "./index17.js";
|
|
16
|
+
import { useValidatePayableMutation as y } from "./index18.js";
|
|
17
|
+
import "./index19.js";
|
|
18
|
+
import { usePayablePaymentRecordsQuery as b } from "./index20.js";
|
|
19
|
+
import { usePayableSuggestionsQuery as x } from "./index21.js";
|
|
20
|
+
import { policyAssignmentDeadline as S, policyAssignmentFirstSeenAt as C } from "./index22.js";
|
|
21
|
+
import { usePayableQuery as w } from "./index24.js";
|
|
22
|
+
import { usePayablesByIdsQueries as T } from "./index25.js";
|
|
23
|
+
import "./index26.js";
|
|
24
|
+
export { S as policyAssignmentDeadline, C as policyAssignmentFirstSeenAt, o as useAllPayableLineItemsQuery, e as useApprovalProcessStepsQuery, n as useApprovePayableApprovalRequestMutation, c as useAttachPayableFileMutation, l as useCancelPayableMutation, u as useCancelScheduledPaymentMutation, d as useCreatePayableMutation, f as useDeletePayableFileMutation, p as useDeletePayableMutation, m as useForceApprovePayableMutation, h as useForceRejectPayableMutation, t as usePayableApprovalProcessesQuery, r as usePayableApprovalRequestsQuery, a as usePayableHistoryQuery, b as usePayablePaymentRecordsQuery, w as usePayableQuery, x as usePayableSuggestionsQuery, T as usePayablesByIdsQueries, i as useRejectPayableApprovalRequestMutation, g as useReopenPayableMutation, s as useReplacePayableLineItemsMutation, _ as useSubmitPayableForApprovalMutation, v as useUpdatePayableMutation, y as useValidatePayableMutation };
|
|
@@ -2,32 +2,30 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { postPayables as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
|
|
10
10
|
import "../../../data-access/dist/invalidation.js";
|
|
11
|
-
import {
|
|
11
|
+
import { dataOrThrowWithStatus as i } from "./index5.js";
|
|
12
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
12
13
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index10.js
|
|
13
|
-
function
|
|
14
|
-
let { client:
|
|
15
|
-
return
|
|
16
|
-
mutationFn: async ({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
onSuccess: async (e, t) => {
|
|
14
|
+
function o() {
|
|
15
|
+
let { client: o, organizationId: s } = t();
|
|
16
|
+
return a({
|
|
17
|
+
mutationFn: async ({ body: t }) => i(e({
|
|
18
|
+
client: o,
|
|
19
|
+
headers: n(s),
|
|
20
|
+
body: t,
|
|
21
|
+
throwOnError: !1
|
|
22
|
+
})),
|
|
23
|
+
onSuccess: async () => {
|
|
25
24
|
await r({
|
|
26
|
-
client:
|
|
27
|
-
organizationId:
|
|
28
|
-
payableId: t.path.payable_id
|
|
25
|
+
client: o,
|
|
26
|
+
organizationId: s
|
|
29
27
|
});
|
|
30
28
|
}
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
|
-
export {
|
|
31
|
+
export { o as useCreatePayableMutation };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { deletePayablesIdFile as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
|
|
10
10
|
import "../../../data-access/dist/invalidation.js";
|
|
11
11
|
import { useMutation as i } from "@tanstack/react-query";
|
|
12
12
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index11.js
|
|
@@ -30,4 +30,4 @@ function a() {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
export { a as
|
|
33
|
+
export { a as useDeletePayableFileMutation };
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { deletePayablesId as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { invalidateDeletedPayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js";
|
|
10
10
|
import "../../../data-access/dist/invalidation.js";
|
|
11
11
|
import { useMutation as i } from "@tanstack/react-query";
|
|
12
12
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index12.js
|
|
@@ -14,22 +14,20 @@ function a() {
|
|
|
14
14
|
let { client: a, organizationId: o } = t();
|
|
15
15
|
return i({
|
|
16
16
|
mutationFn: async ({ path: t }) => {
|
|
17
|
-
|
|
17
|
+
await e({
|
|
18
18
|
client: a,
|
|
19
19
|
headers: n(o),
|
|
20
20
|
path: t,
|
|
21
21
|
throwOnError: !0
|
|
22
22
|
});
|
|
23
|
-
return r;
|
|
24
23
|
},
|
|
25
24
|
onSuccess: async (e, t) => {
|
|
26
25
|
await r({
|
|
27
26
|
client: a,
|
|
28
27
|
organizationId: o,
|
|
29
|
-
payableId: t.path.payable_id
|
|
30
|
-
includeApprovalRequests: !0
|
|
28
|
+
payableId: t.path.payable_id
|
|
31
29
|
});
|
|
32
30
|
}
|
|
33
31
|
});
|
|
34
32
|
}
|
|
35
|
-
export { a as
|
|
33
|
+
export { a as useDeletePayableMutation };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { postPayablesIdApprovePaymentOperation as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
@@ -32,4 +32,4 @@ function a() {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
|
-
export { a as
|
|
35
|
+
export { a as useForceApprovePayableMutation };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { postPayablesIdReject as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
@@ -26,9 +26,10 @@ function a() {
|
|
|
26
26
|
await r({
|
|
27
27
|
client: a,
|
|
28
28
|
organizationId: o,
|
|
29
|
-
payableId: t.path.payable_id
|
|
29
|
+
payableId: t.path.payable_id,
|
|
30
|
+
includeApprovalRequests: !0
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
|
-
export { a as
|
|
35
|
+
export { a as useForceRejectPayableMutation };
|
|
@@ -2,47 +2,33 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { postPayablesIdReopen as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
|
|
10
|
-
import { beginApprovalRequestWatch as i } from "../../../data-access/dist/lib/invalidatePayableQueries/approvalRequestWatch.js";
|
|
11
|
-
import { reconcileSubmittedForApprovalQueries as a } from "../../../data-access/dist/lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js";
|
|
12
10
|
import "../../../data-access/dist/invalidation.js";
|
|
13
|
-
import { useMutation as
|
|
11
|
+
import { useMutation as i } from "@tanstack/react-query";
|
|
14
12
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index15.js
|
|
15
|
-
function
|
|
16
|
-
let { client:
|
|
17
|
-
return
|
|
18
|
-
onMutate: async ({ path: e }) => i({
|
|
19
|
-
client: s,
|
|
20
|
-
organizationId: c,
|
|
21
|
-
payableId: e.payable_id
|
|
22
|
-
}, { requireRoundMarker: !0 }),
|
|
13
|
+
function a() {
|
|
14
|
+
let { client: a, organizationId: o } = t();
|
|
15
|
+
return i({
|
|
23
16
|
mutationFn: async ({ path: t }) => {
|
|
24
17
|
let { data: r } = await e({
|
|
25
|
-
client:
|
|
26
|
-
headers: n(
|
|
18
|
+
client: a,
|
|
19
|
+
headers: n(o),
|
|
27
20
|
path: t,
|
|
28
21
|
throwOnError: !0
|
|
29
22
|
});
|
|
30
23
|
return r;
|
|
31
24
|
},
|
|
32
|
-
onSuccess: async (e, t
|
|
33
|
-
let i = t.path.payable_id, o = e?.status === "approve_in_progress";
|
|
25
|
+
onSuccess: async (e, t) => {
|
|
34
26
|
await r({
|
|
35
|
-
client:
|
|
36
|
-
organizationId:
|
|
37
|
-
payableId:
|
|
38
|
-
|
|
39
|
-
}), o && n && a({
|
|
40
|
-
client: s,
|
|
41
|
-
organizationId: c,
|
|
42
|
-
payableId: i,
|
|
43
|
-
watch: n
|
|
44
|
-
}).catch(() => {});
|
|
27
|
+
client: a,
|
|
28
|
+
organizationId: o,
|
|
29
|
+
payableId: t.path.payable_id
|
|
30
|
+
});
|
|
45
31
|
}
|
|
46
32
|
});
|
|
47
33
|
}
|
|
48
|
-
export {
|
|
34
|
+
export { a as useReopenPayableMutation };
|
|
@@ -2,32 +2,47 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { postPayablesIdSubmitForApproval as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
|
|
10
|
+
import { beginApprovalRequestWatch as i } from "../../../data-access/dist/lib/invalidatePayableQueries/approvalRequestWatch.js";
|
|
11
|
+
import { reconcileSubmittedForApprovalQueries as a } from "../../../data-access/dist/lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js";
|
|
10
12
|
import "../../../data-access/dist/invalidation.js";
|
|
11
|
-
import {
|
|
12
|
-
import { useMutation as a } from "@tanstack/react-query";
|
|
13
|
+
import { useMutation as o } from "@tanstack/react-query";
|
|
13
14
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index16.js
|
|
14
|
-
function
|
|
15
|
-
let { client:
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
client:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
payableId: t.path.payable_id
|
|
15
|
+
function s() {
|
|
16
|
+
let { client: s, organizationId: c } = t();
|
|
17
|
+
return o({
|
|
18
|
+
onMutate: async ({ path: e }) => i({
|
|
19
|
+
client: s,
|
|
20
|
+
organizationId: c,
|
|
21
|
+
payableId: e.payable_id
|
|
22
|
+
}, { requireRoundMarker: !0 }),
|
|
23
|
+
mutationFn: async ({ path: t }) => {
|
|
24
|
+
let { data: r } = await e({
|
|
25
|
+
client: s,
|
|
26
|
+
headers: n(c),
|
|
27
|
+
path: t,
|
|
28
|
+
throwOnError: !0
|
|
29
29
|
});
|
|
30
|
+
return r;
|
|
31
|
+
},
|
|
32
|
+
onSuccess: async (e, t, n) => {
|
|
33
|
+
let i = t.path.payable_id, o = e?.status === "approve_in_progress";
|
|
34
|
+
await r({
|
|
35
|
+
client: s,
|
|
36
|
+
organizationId: c,
|
|
37
|
+
payableId: i,
|
|
38
|
+
includeApprovalRequests: !0
|
|
39
|
+
}), o && n && a({
|
|
40
|
+
client: s,
|
|
41
|
+
organizationId: c,
|
|
42
|
+
payableId: i,
|
|
43
|
+
watch: n
|
|
44
|
+
}).catch(() => {});
|
|
30
45
|
}
|
|
31
46
|
});
|
|
32
47
|
}
|
|
33
|
-
export {
|
|
48
|
+
export { s as useSubmitPayableForApprovalMutation };
|
|
@@ -2,25 +2,32 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
5
|
+
import { patchPayablesId as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
|
|
10
|
+
import "../../../data-access/dist/invalidation.js";
|
|
11
|
+
import { dataOrThrowWithStatus as i } from "./index5.js";
|
|
12
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
10
13
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index17.js
|
|
11
|
-
function
|
|
12
|
-
let { client:
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
client:
|
|
16
|
-
headers: n(
|
|
14
|
+
function o() {
|
|
15
|
+
let { client: o, organizationId: s } = t();
|
|
16
|
+
return a({
|
|
17
|
+
mutationFn: async ({ path: t, body: r }) => i(e({
|
|
18
|
+
client: o,
|
|
19
|
+
headers: n(s),
|
|
17
20
|
path: t,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
body: r,
|
|
22
|
+
throwOnError: !1
|
|
23
|
+
})),
|
|
24
|
+
onSuccess: async (e, t) => {
|
|
25
|
+
await r({
|
|
26
|
+
client: o,
|
|
27
|
+
organizationId: s,
|
|
28
|
+
payableId: t.path.payable_id
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
});
|
|
25
32
|
}
|
|
26
|
-
export {
|
|
33
|
+
export { o as useUpdatePayableMutation };
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { postPayablesIdValidate as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
+
import { useMutation as r } from "@tanstack/react-query";
|
|
10
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js
|
|
11
|
+
function i() {
|
|
12
|
+
let { client: i, organizationId: a } = t();
|
|
13
|
+
return r({ mutationFn: async ({ path: t }) => {
|
|
14
|
+
let { data: r } = await e({
|
|
15
|
+
client: i,
|
|
16
|
+
headers: n(a),
|
|
17
|
+
path: t,
|
|
18
|
+
throwOnError: !0
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
id: r.id,
|
|
22
|
+
validation_errors: r.validation_errors ?? []
|
|
23
|
+
};
|
|
24
|
+
} });
|
|
25
|
+
}
|
|
26
|
+
export { i as useValidatePayableMutation };
|
|
@@ -1,57 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import "
|
|
12
|
-
import
|
|
13
|
-
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
14
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js
|
|
15
|
-
var u = 100;
|
|
16
|
-
function d(d, { enabled: f } = {}) {
|
|
17
|
-
let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationStatus: _ } = r(), v = i(m), y = !!(m && h && d) && f !== !1, b = {
|
|
18
|
-
limit: u,
|
|
19
|
-
object_id__in: d ? [d] : [],
|
|
20
|
-
order: "desc",
|
|
21
|
-
sort: "paid_at"
|
|
22
|
-
}, x = t({
|
|
23
|
-
client: p,
|
|
24
|
-
headers: v,
|
|
25
|
-
query: b
|
|
26
|
-
}), S = l({
|
|
27
|
-
...n(x.queryKey, {
|
|
28
|
-
authEpoch: g,
|
|
29
|
-
organizationStatus: _
|
|
30
|
-
}, { suffix: ["all"] }),
|
|
31
|
-
enabled: y,
|
|
32
|
-
staleTime: 3e4,
|
|
33
|
-
initialPageParam: void 0,
|
|
34
|
-
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
35
|
-
let { data: r } = await e({
|
|
36
|
-
client: p,
|
|
37
|
-
headers: v,
|
|
38
|
-
query: {
|
|
39
|
-
...b,
|
|
40
|
-
...n ? { pagination_token: n } : {}
|
|
41
|
-
},
|
|
42
|
-
signal: t,
|
|
43
|
-
throwOnError: !0
|
|
44
|
-
});
|
|
45
|
-
return r;
|
|
46
|
-
},
|
|
47
|
-
getNextPageParam: a
|
|
48
|
-
});
|
|
49
|
-
s(S, y);
|
|
50
|
-
let C = c(() => S.data?.pages.flatMap((e) => e.data ?? []) ?? [], [S.data]);
|
|
51
|
-
return {
|
|
52
|
-
...S,
|
|
53
|
-
paymentRecords: C,
|
|
54
|
-
isResolving: y && o(S)
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export { d as usePayablePaymentRecordsQuery };
|
|
1
|
+
import "./index7.js";
|
|
2
|
+
import "./index8.js";
|
|
3
|
+
import "./index9.js";
|
|
4
|
+
import "./index10.js";
|
|
5
|
+
import "./index11.js";
|
|
6
|
+
import "./index12.js";
|
|
7
|
+
import "./index13.js";
|
|
8
|
+
import "./index14.js";
|
|
9
|
+
import "./index15.js";
|
|
10
|
+
import "./index16.js";
|
|
11
|
+
import "./index17.js";
|
|
12
|
+
import "./index18.js";
|
|
@@ -2,101 +2,50 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { organizationHeaders as a } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
5
|
+
import { getApprovalPoliciesIdProcessesIdStepsOptions as e, getApprovalPoliciesIdProcessesOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.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";
|
|
10
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
11
|
-
import {
|
|
12
|
-
import { invalidateApprovalDecisionQueries as c, reconcileApprovalDecisionQueries as l } from "../../../data-access/dist/lib/invalidatePayableQueries/approvalDecisionQueries.js";
|
|
13
|
-
import { beginApprovalRequestWatch as u } from "../../../data-access/dist/lib/invalidatePayableQueries/approvalRequestWatch.js";
|
|
14
|
-
import { APPROVAL_REQUEST_POLL_TIMEOUT_MS as d } from "../../../data-access/dist/lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js";
|
|
15
|
-
import "../../../data-access/dist/invalidation.js";
|
|
10
|
+
import { PAYABLE_OBJECT_TYPE as a } from "../../../data-access/dist/lib/queryKeys.js";
|
|
16
11
|
import "../../../data-access/dist/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import { useMutation as p, useQuery as m } from "@tanstack/react-query";
|
|
12
|
+
import { useQuery as o } from "@tanstack/react-query";
|
|
19
13
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
function s(e, s, { enabled: c } = {}) {
|
|
15
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = r(), m = !!(u && d && e && s) && c !== !1, h = t({
|
|
16
|
+
client: l,
|
|
17
|
+
headers: i(u),
|
|
18
|
+
path: { approval_policy_id: e ?? "" },
|
|
25
19
|
query: {
|
|
26
|
-
object_id:
|
|
27
|
-
object_type:
|
|
28
|
-
order: o
|
|
20
|
+
object_id: s ?? "",
|
|
21
|
+
object_type: a
|
|
29
22
|
}
|
|
30
23
|
});
|
|
31
|
-
return
|
|
32
|
-
...
|
|
33
|
-
authEpoch:
|
|
34
|
-
organizationStatus:
|
|
24
|
+
return o({
|
|
25
|
+
...n(h, {
|
|
26
|
+
authEpoch: f,
|
|
27
|
+
organizationStatus: p
|
|
35
28
|
}),
|
|
36
|
-
enabled:
|
|
37
|
-
|
|
29
|
+
enabled: m,
|
|
30
|
+
retry: !1
|
|
38
31
|
});
|
|
39
32
|
}
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
client:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
client: e,
|
|
48
|
-
organizationId: t,
|
|
49
|
-
payableId: n
|
|
50
|
-
}), n && i && l({
|
|
51
|
-
client: e,
|
|
52
|
-
organizationId: t,
|
|
53
|
-
payableId: n,
|
|
54
|
-
watch: i
|
|
55
|
-
}).catch(() => {});
|
|
56
|
-
}
|
|
57
|
-
function y() {
|
|
58
|
-
let { client: t, organizationId: n } = i();
|
|
59
|
-
return p({
|
|
60
|
-
mutationFn: async ({ path: r }) => {
|
|
61
|
-
let { data: i } = await e({
|
|
62
|
-
client: t,
|
|
63
|
-
headers: a(n),
|
|
64
|
-
path: r,
|
|
65
|
-
throwOnError: !0
|
|
66
|
-
});
|
|
67
|
-
return i;
|
|
68
|
-
},
|
|
69
|
-
onSuccess: async (e) => {
|
|
70
|
-
await v({
|
|
71
|
-
client: t,
|
|
72
|
-
organizationId: n,
|
|
73
|
-
payableId: e?.object_id,
|
|
74
|
-
requestStatus: e?.status
|
|
75
|
-
});
|
|
33
|
+
function c(t, a, { enabled: s } = {}) {
|
|
34
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = r(), p = !!(l && u && t && a) && s !== !1, m = e({
|
|
35
|
+
client: c,
|
|
36
|
+
headers: i(l),
|
|
37
|
+
path: {
|
|
38
|
+
approval_policy_id: t ?? "",
|
|
39
|
+
process_id: a ?? ""
|
|
76
40
|
}
|
|
77
41
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
headers: a(n),
|
|
86
|
-
path: r,
|
|
87
|
-
body: i?.reject_reason ? i : void 0,
|
|
88
|
-
throwOnError: !0
|
|
89
|
-
});
|
|
90
|
-
return o;
|
|
91
|
-
},
|
|
92
|
-
onSuccess: async (t) => {
|
|
93
|
-
await v({
|
|
94
|
-
client: e,
|
|
95
|
-
organizationId: n,
|
|
96
|
-
payableId: t?.object_id,
|
|
97
|
-
requestStatus: t?.status
|
|
98
|
-
});
|
|
99
|
-
}
|
|
42
|
+
return o({
|
|
43
|
+
...n(m, {
|
|
44
|
+
authEpoch: d,
|
|
45
|
+
organizationStatus: f
|
|
46
|
+
}),
|
|
47
|
+
enabled: p,
|
|
48
|
+
retry: !1
|
|
100
49
|
});
|
|
101
50
|
}
|
|
102
|
-
export {
|
|
51
|
+
export { c as useApprovalProcessStepsQuery, s as usePayableApprovalProcessesQuery };
|