@tesouro/embedded-components-react 0.3.33 → 0.3.35
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/data-access/dist/index.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +26 -300
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +314 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +13 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +20 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +39 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index3.js +5 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +28 -102
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +115 -65
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +60 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +18 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +50 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +39 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +19 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -1
- 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 +6 -10
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js
CHANGED
|
@@ -4,27 +4,71 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
6
|
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { postApprovalRequestsIdApprove as n, postApprovalRequestsIdReject as r } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getApprovalRequestsOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
10
|
import "../../../shared/data-access/dist/index.js";
|
|
10
|
-
import {
|
|
11
|
+
import { invalidateApprovalDecisionQueries as o } from "./index5.js";
|
|
12
|
+
import { useMutation as s, useQuery as c } from "@tanstack/react-query";
|
|
11
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
let { client:
|
|
15
|
-
client:
|
|
16
|
-
headers: t(
|
|
17
|
-
path: { payable_id: o ?? "" },
|
|
14
|
+
var l = "payable", u = "desc";
|
|
15
|
+
function d(n, { enabled: r } = {}) {
|
|
16
|
+
let { client: o, organizationId: s, widgetToken: d, authEpoch: f } = e(), p = !!(s && d && n) && r !== !1, m = i({
|
|
17
|
+
client: o,
|
|
18
|
+
headers: t(s),
|
|
18
19
|
query: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
object_id: n ?? "",
|
|
21
|
+
object_type: l,
|
|
22
|
+
order: u
|
|
22
23
|
}
|
|
23
24
|
});
|
|
24
|
-
return
|
|
25
|
-
...
|
|
26
|
-
enabled:
|
|
25
|
+
return c({
|
|
26
|
+
...a(m, f),
|
|
27
|
+
enabled: p
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function f() {
|
|
31
|
+
let { client: r, organizationId: i } = e();
|
|
32
|
+
return s({
|
|
33
|
+
mutationFn: async ({ path: e }) => {
|
|
34
|
+
let { data: a } = await n({
|
|
35
|
+
client: r,
|
|
36
|
+
headers: t(i),
|
|
37
|
+
path: e,
|
|
38
|
+
throwOnError: !0
|
|
39
|
+
});
|
|
40
|
+
return a;
|
|
41
|
+
},
|
|
42
|
+
onSuccess: async (e) => {
|
|
43
|
+
await o({
|
|
44
|
+
client: r,
|
|
45
|
+
organizationId: i,
|
|
46
|
+
payableId: e?.object_id
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function p() {
|
|
52
|
+
let { client: n, organizationId: i } = e();
|
|
53
|
+
return s({
|
|
54
|
+
mutationFn: async ({ path: e, body: a }) => {
|
|
55
|
+
let { data: o } = await r({
|
|
56
|
+
client: n,
|
|
57
|
+
headers: t(i),
|
|
58
|
+
path: e,
|
|
59
|
+
body: a?.reject_reason ? a : void 0,
|
|
60
|
+
throwOnError: !0
|
|
61
|
+
});
|
|
62
|
+
return o;
|
|
63
|
+
},
|
|
64
|
+
onSuccess: async (e) => {
|
|
65
|
+
await o({
|
|
66
|
+
client: n,
|
|
67
|
+
organizationId: i,
|
|
68
|
+
payableId: e?.object_id
|
|
69
|
+
});
|
|
70
|
+
}
|
|
27
71
|
});
|
|
28
72
|
}
|
|
29
73
|
//#endregion
|
|
30
|
-
export {
|
|
74
|
+
export { f as useApprovePayableApprovalRequestMutation, d as usePayableApprovalRequestsQuery, p as useRejectPayableApprovalRequestMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js
CHANGED
|
@@ -4,72 +4,27 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
6
|
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
10
|
-
import { getAllPagesNextPaginationTokenParam as o, isAllPagesResolving as s, useAutoFetchNextPage as c } from "../../../shared/data-access/dist/lib/allPages.js";
|
|
7
|
+
import { getPayablesIdHistoryOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
11
9
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import { useMemo as u } from "react";
|
|
14
|
-
import { useInfiniteQuery as d, useMutation as f } from "@tanstack/react-query";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
15
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
let { client:
|
|
19
|
-
client:
|
|
20
|
-
headers:
|
|
21
|
-
path: { payable_id:
|
|
22
|
-
query: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
initialPageParam: void 0,
|
|
27
|
-
queryFn: async ({ signal: e, pageParam: t }) => {
|
|
28
|
-
let { data: i } = await n({
|
|
29
|
-
client: f,
|
|
30
|
-
headers: _,
|
|
31
|
-
path: { payable_id: r ?? "" },
|
|
32
|
-
query: {
|
|
33
|
-
limit: p,
|
|
34
|
-
...t ? { pagination_token: t } : {}
|
|
35
|
-
},
|
|
36
|
-
signal: e,
|
|
37
|
-
throwOnError: !0
|
|
38
|
-
});
|
|
39
|
-
return i;
|
|
40
|
-
},
|
|
41
|
-
getNextPageParam: o
|
|
42
|
-
});
|
|
43
|
-
c(b, v);
|
|
44
|
-
let x = u(() => b.data?.pages.flatMap((e) => e.data ?? []) ?? [], [b.data]);
|
|
45
|
-
return {
|
|
46
|
-
...b,
|
|
47
|
-
lineItems: x,
|
|
48
|
-
isResolving: s(b)
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
function h() {
|
|
52
|
-
let { client: n, organizationId: i } = e();
|
|
53
|
-
return f({
|
|
54
|
-
mutationFn: async ({ path: e, body: a }) => {
|
|
55
|
-
let { data: o } = await r({
|
|
56
|
-
client: n,
|
|
57
|
-
headers: t(i),
|
|
58
|
-
path: e,
|
|
59
|
-
body: a,
|
|
60
|
-
throwOnError: !0
|
|
61
|
-
});
|
|
62
|
-
return o;
|
|
63
|
-
},
|
|
64
|
-
onSuccess: async (e, t) => {
|
|
65
|
-
await l({
|
|
66
|
-
client: n,
|
|
67
|
-
organizationId: i,
|
|
68
|
-
payableId: t.path.payable_id,
|
|
69
|
-
includeLineItems: !0
|
|
70
|
-
});
|
|
12
|
+
var a = 100;
|
|
13
|
+
function o(o, { enabled: s } = {}) {
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && o) && s !== !1, p = n({
|
|
15
|
+
client: c,
|
|
16
|
+
headers: t(l),
|
|
17
|
+
path: { payable_id: o ?? "" },
|
|
18
|
+
query: {
|
|
19
|
+
sort: "timestamp",
|
|
20
|
+
order: "asc",
|
|
21
|
+
limit: a
|
|
71
22
|
}
|
|
72
23
|
});
|
|
24
|
+
return i({
|
|
25
|
+
...r(p, d),
|
|
26
|
+
enabled: f
|
|
27
|
+
});
|
|
73
28
|
}
|
|
74
29
|
//#endregion
|
|
75
|
-
export {
|
|
30
|
+
export { o as usePayableHistoryQuery };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js
CHANGED
|
@@ -4,51 +4,72 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
6
|
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { withAuthEpoch as
|
|
10
|
-
import { getAllPagesNextPaginationTokenParam as
|
|
7
|
+
import { getPayablesIdLineItems as n, putPayablesIdLineItems as r } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getPayablesIdLineItemsOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
10
|
+
import { getAllPagesNextPaginationTokenParam as o, isAllPagesResolving as s, useAutoFetchNextPage as c } from "../../../shared/data-access/dist/lib/allPages.js";
|
|
11
11
|
import "../../../shared/data-access/dist/index.js";
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { invalidatePayableQueries as l } from "./index5.js";
|
|
13
|
+
import { useMemo as u } from "react";
|
|
14
|
+
import { useInfiniteQuery as d, useMutation as f } from "@tanstack/react-query";
|
|
14
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
let { client:
|
|
18
|
-
|
|
19
|
-
object_id__in: d ? [d] : [],
|
|
20
|
-
order: "desc",
|
|
21
|
-
sort: "paid_at"
|
|
22
|
-
}, b = r({
|
|
23
|
-
client: p,
|
|
16
|
+
var p = 100;
|
|
17
|
+
function m(r, { enabled: l } = {}) {
|
|
18
|
+
let { client: f, organizationId: m, widgetToken: h, authEpoch: g } = e(), _ = t(m), v = !!(m && h && r) && l !== !1, y = i({
|
|
19
|
+
client: f,
|
|
24
20
|
headers: _,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
path: { payable_id: r ?? "" },
|
|
22
|
+
query: { limit: p }
|
|
23
|
+
}), b = d({
|
|
24
|
+
queryKey: [...a(y, g).queryKey, "all"],
|
|
28
25
|
enabled: v,
|
|
29
26
|
initialPageParam: void 0,
|
|
30
27
|
queryFn: async ({ signal: e, pageParam: t }) => {
|
|
31
|
-
let { data:
|
|
32
|
-
client:
|
|
28
|
+
let { data: i } = await n({
|
|
29
|
+
client: f,
|
|
33
30
|
headers: _,
|
|
31
|
+
path: { payable_id: r ?? "" },
|
|
34
32
|
query: {
|
|
35
|
-
|
|
33
|
+
limit: p,
|
|
36
34
|
...t ? { pagination_token: t } : {}
|
|
37
35
|
},
|
|
38
36
|
signal: e,
|
|
39
37
|
throwOnError: !0
|
|
40
38
|
});
|
|
41
|
-
return
|
|
39
|
+
return i;
|
|
42
40
|
},
|
|
43
|
-
getNextPageParam:
|
|
41
|
+
getNextPageParam: o
|
|
44
42
|
});
|
|
45
|
-
|
|
46
|
-
let
|
|
43
|
+
c(b, v);
|
|
44
|
+
let x = u(() => b.data?.pages.flatMap((e) => e.data ?? []) ?? [], [b.data]);
|
|
47
45
|
return {
|
|
48
|
-
...
|
|
49
|
-
|
|
50
|
-
isResolving:
|
|
46
|
+
...b,
|
|
47
|
+
lineItems: x,
|
|
48
|
+
isResolving: s(b)
|
|
51
49
|
};
|
|
52
50
|
}
|
|
51
|
+
function h() {
|
|
52
|
+
let { client: n, organizationId: i } = e();
|
|
53
|
+
return f({
|
|
54
|
+
mutationFn: async ({ path: e, body: a }) => {
|
|
55
|
+
let { data: o } = await r({
|
|
56
|
+
client: n,
|
|
57
|
+
headers: t(i),
|
|
58
|
+
path: e,
|
|
59
|
+
body: a,
|
|
60
|
+
throwOnError: !0
|
|
61
|
+
});
|
|
62
|
+
return o;
|
|
63
|
+
},
|
|
64
|
+
onSuccess: async (e, t) => {
|
|
65
|
+
await l({
|
|
66
|
+
client: n,
|
|
67
|
+
organizationId: i,
|
|
68
|
+
payableId: t.path.payable_id,
|
|
69
|
+
includeLineItems: !0
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
53
74
|
//#endregion
|
|
54
|
-
export {
|
|
75
|
+
export { m as useAllPayableLineItemsQuery, h as useReplacePayableLineItemsMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js
CHANGED
|
@@ -4,42 +4,51 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
6
|
import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
-
import {
|
|
7
|
+
import { getPaymentRecords as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getPaymentRecordsOptions as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as i } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
10
|
+
import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../shared/data-access/dist/lib/allPages.js";
|
|
8
11
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
12
|
+
import { useMemo as c } from "react";
|
|
13
|
+
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
11
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
var u = 100;
|
|
16
|
+
function d(d, { enabled: f } = {}) {
|
|
17
|
+
let { client: p, organizationId: m, widgetToken: h, authEpoch: g } = e(), _ = t(m), v = !!(m && h && d) && f !== !1, y = {
|
|
18
|
+
limit: u,
|
|
19
|
+
object_id__in: d ? [d] : [],
|
|
20
|
+
order: "desc",
|
|
21
|
+
sort: "paid_at"
|
|
22
|
+
}, b = r({
|
|
23
|
+
client: p,
|
|
24
|
+
headers: _,
|
|
25
|
+
query: y
|
|
26
|
+
}), x = l({
|
|
27
|
+
queryKey: [...i(b, g).queryKey, "all"],
|
|
28
|
+
enabled: v,
|
|
29
|
+
initialPageParam: void 0,
|
|
30
|
+
queryFn: async ({ signal: e, pageParam: t }) => {
|
|
31
|
+
let { data: r } = await n({
|
|
32
|
+
client: p,
|
|
33
|
+
headers: _,
|
|
34
|
+
query: {
|
|
35
|
+
...y,
|
|
36
|
+
...t ? { pagination_token: t } : {}
|
|
23
37
|
},
|
|
38
|
+
signal: e,
|
|
24
39
|
throwOnError: !0
|
|
25
40
|
});
|
|
26
|
-
return
|
|
41
|
+
return r;
|
|
27
42
|
},
|
|
28
|
-
|
|
29
|
-
try {
|
|
30
|
-
await r({
|
|
31
|
-
client: o,
|
|
32
|
-
organizationId: s,
|
|
33
|
-
payableId: t.payableId
|
|
34
|
-
});
|
|
35
|
-
} catch {}
|
|
36
|
-
i({
|
|
37
|
-
client: o,
|
|
38
|
-
organizationId: s,
|
|
39
|
-
payableId: t.payableId
|
|
40
|
-
}).catch(() => {});
|
|
41
|
-
}
|
|
43
|
+
getNextPageParam: a
|
|
42
44
|
});
|
|
45
|
+
s(x, v);
|
|
46
|
+
let S = c(() => x.data?.pages.flatMap((e) => e.data ?? []) ?? [], [x.data]);
|
|
47
|
+
return {
|
|
48
|
+
...x,
|
|
49
|
+
paymentRecords: S,
|
|
50
|
+
isResolving: v && o(x)
|
|
51
|
+
};
|
|
43
52
|
}
|
|
44
53
|
//#endregion
|
|
45
|
-
export {
|
|
54
|
+
export { d as usePayablePaymentRecordsQuery };
|
|
@@ -15,7 +15,7 @@ import { dateToCalendarKey as o, getDefaultPaymentDate as s, isPastEasternDate a
|
|
|
15
15
|
import { maskAccountNumber as u } from "./index9.js";
|
|
16
16
|
import { deriveSourceAccountFunds as d, mapSourceAccountOptions as f } from "./index10.js";
|
|
17
17
|
import { mergePayBillFlowLabels as p } from "./index11.js";
|
|
18
|
-
import { useSchedulePaymentMutation as m } from "../../data-access/dist/
|
|
18
|
+
import { useSchedulePaymentMutation as m } from "../../data-access/dist/index10.js";
|
|
19
19
|
import "../../data-access/dist/index.js";
|
|
20
20
|
import { useMemo as h, useState as g } from "react";
|
|
21
21
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { usePayableHistoryQuery as e } from "../../data-access/dist/
|
|
5
|
+
import { usePayableHistoryQuery as e } from "../../data-access/dist/index7.js";
|
|
6
6
|
import "../../data-access/dist/index.js";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js
|
|
8
8
|
var t = "submitted_for_approval";
|
|
@@ -9,7 +9,7 @@ import { useAllOrganizationUsersQuery as r } from "../../../shared/data-access/d
|
|
|
9
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useWidgetConfig as i } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
11
|
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { usePayableApprovalRequestsQuery as a } from "../../data-access/dist/
|
|
12
|
+
import { usePayableApprovalRequestsQuery as a } from "../../data-access/dist/index6.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
14
|
import { useGetApprovalPoliciesQuery as o } from "../../../shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js";
|
|
15
15
|
import "../../../shared/approval-policy/data-access/dist/index.js";
|
|
@@ -8,7 +8,7 @@ import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import "../../../shared/feature/dist/index.js";
|
|
11
|
-
import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/
|
|
11
|
+
import { usePayableApprovalRequestsQuery as i } from "../../data-access/dist/index6.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
13
|
import { currentApprovalRound as a } from "./index16.js";
|
|
14
14
|
import { usePayableApprovalRoundStart as o } from "./index18.js";
|
|
@@ -3,8 +3,8 @@ import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
import { BanIcon as n, CalendarXIcon as r, RotateCcwIcon as i, ThumbsDownIcon as a, ThumbsUpIcon as o } from "lucide-react";
|
|
5
5
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js
|
|
6
|
-
function s({ status: s, scopes: c, canDecideApprovalRequest: l, hasScheduledPayment: u,
|
|
7
|
-
let g = e(c, [t.PayablePayOrg]), _ = e(c, [t.BankAccountReadOrg]), v = e(c, [t.PaymentRailAch]), y = e(c, [t.PayableWriteOrg]), b =
|
|
6
|
+
function s({ status: s, scopes: c, canDecideApprovalRequest: l, hasScheduledPayment: u, scheduledPaymentIntentId: d, isPolicyApprover: f, hasWaitingRequest: p, arePendingApproversUnknown: m, labels: h }) {
|
|
7
|
+
let g = e(c, [t.PayablePayOrg]), _ = e(c, [t.BankAccountReadOrg]), v = e(c, [t.PaymentRailAch]), y = e(c, [t.PayableWriteOrg]), b = g, x = e(c, [t.PayableApproveOrg]), S = [];
|
|
8
8
|
s === "approve_in_progress" && l && (S.push({
|
|
9
9
|
id: "approve",
|
|
10
10
|
label: h.approve,
|
|
@@ -6,15 +6,15 @@ import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.
|
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
7
|
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
8
8
|
import "../../../shared/feature/dist/index.js";
|
|
9
|
-
import { useApprovePayableApprovalRequestMutation as n, useRejectPayableApprovalRequestMutation as r } from "../../data-access/dist/
|
|
10
|
-
import { useCancelPayableMutation as i,
|
|
9
|
+
import { useApprovePayableApprovalRequestMutation as n, useRejectPayableApprovalRequestMutation as r } from "../../data-access/dist/index6.js";
|
|
10
|
+
import { useCancelPayableMutation as i, useCancelScheduledPaymentMutation as a, useForceApprovePayableMutation as o, useForceRejectPayableMutation as s, useReopenPayableMutation as c } from "../../data-access/dist/index11.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { getBillDetailActions as l } from "./index21.js";
|
|
13
13
|
import { useState as u } from "react";
|
|
14
14
|
import { HandIcon as d } from "lucide-react";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js
|
|
16
|
-
function f({ payableId: d, status: f, currentApprovalRequestId: m, isPolicyApprover: _, hasWaitingRequest: v, arePendingApproversUnknown: y, hasScheduledPayment: b,
|
|
17
|
-
let { initResponse: O } = t(), k = r(), A = n(), j = i(), M = a(), N = c(), P = o(), F = s(), I = w || k.isPending || A.isPending || j.isPending || M.isPending || N.isPending || P.isPending || F.isPending, [L, R] = u(), z = L && (L.id !== "cancelScheduledPayment" || L.
|
|
16
|
+
function f({ payableId: d, status: f, currentApprovalRequestId: m, isPolicyApprover: _, hasWaitingRequest: v, arePendingApproversUnknown: y, hasScheduledPayment: b, scheduledPaymentIntentId: x, isScheduledPaymentUnknown: S, labels: C, isMarkAsPaidPending: w, pendingApprovers: T, onPayBillSelect: E, onMarkAsPaidSelect: D }) {
|
|
17
|
+
let { initResponse: O } = t(), k = r(), A = n(), j = i(), M = a(), N = c(), P = o(), F = s(), I = w || k.isPending || A.isPending || j.isPending || M.isPending || N.isPending || P.isPending || F.isPending, [L, R] = u(), z = L && (L.id !== "cancelScheduledPayment" || L.scheduledPaymentIntentId === x) ? L : void 0, B = d && f ? l({
|
|
18
18
|
status: f,
|
|
19
19
|
scopes: O?.scopes,
|
|
20
20
|
canDecideApprovalRequest: !!m,
|
|
@@ -22,7 +22,7 @@ function f({ payableId: d, status: f, currentApprovalRequestId: m, isPolicyAppro
|
|
|
22
22
|
hasWaitingRequest: v,
|
|
23
23
|
arePendingApproversUnknown: y,
|
|
24
24
|
hasScheduledPayment: b || S,
|
|
25
|
-
|
|
25
|
+
scheduledPaymentIntentId: x,
|
|
26
26
|
labels: C
|
|
27
27
|
}) : [], V = (t) => ({
|
|
28
28
|
onError: () => e.error(C.actionError),
|
|
@@ -46,9 +46,9 @@ function f({ payableId: d, status: f, currentApprovalRequestId: m, isPolicyAppro
|
|
|
46
46
|
cancelScheduledPayment: {
|
|
47
47
|
isPending: M.isPending,
|
|
48
48
|
run: () => {
|
|
49
|
-
let e = z?.
|
|
49
|
+
let e = z?.scheduledPaymentIntentId;
|
|
50
50
|
!d || !e || M.mutate({
|
|
51
|
-
path: {
|
|
51
|
+
path: { payment_intent_id: e },
|
|
52
52
|
payableId: d
|
|
53
53
|
}, V("cancelScheduledPayment"));
|
|
54
54
|
}
|
|
@@ -82,7 +82,7 @@ function f({ payableId: d, status: f, currentApprovalRequestId: m, isPolicyAppro
|
|
|
82
82
|
if (h(e.id)) {
|
|
83
83
|
R({
|
|
84
84
|
id: e.id,
|
|
85
|
-
|
|
85
|
+
scheduledPaymentIntentId: x
|
|
86
86
|
});
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
@@ -8,17 +8,18 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
8
8
|
import { formatCalendarDate as n } from "../../../shared/util/dist/lib/formatCalendarDate.js";
|
|
9
9
|
import { useWidgetConfig as r } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
10
10
|
import "../../../shared/feature/dist/index.js";
|
|
11
|
-
import {
|
|
11
|
+
import { isLiveScheduledPaymentRecord as i } from "../../data-access/dist/index3.js";
|
|
12
|
+
import { usePayablePaymentRecordsQuery as a } from "../../data-access/dist/index9.js";
|
|
12
13
|
import "../../data-access/dist/index.js";
|
|
13
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js
|
|
14
|
-
function
|
|
15
|
-
let { initResponse:
|
|
15
|
+
function o({ payableId: o, scheduledPaymentDate: s, enabled: c = !0 }) {
|
|
16
|
+
let { initResponse: l } = r(), u = e(l?.scopes, [t.PaymentRecordReadOrg]), d = a(c ? o : void 0, { enabled: c && u }), f = d.paymentRecords.find(i), p = !!f || !!s, m = f?.planned_payment_date ?? (p ? s : void 0);
|
|
16
17
|
return {
|
|
17
|
-
hasScheduledPayment:
|
|
18
|
-
isResolving:
|
|
19
|
-
scheduledDateLabel:
|
|
20
|
-
|
|
18
|
+
hasScheduledPayment: p,
|
|
19
|
+
isResolving: d.isResolving,
|
|
20
|
+
scheduledDateLabel: m ? n(m) : void 0,
|
|
21
|
+
scheduledPaymentIntentId: f?.payment_intent_id ?? void 0
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
//#endregion
|
|
24
|
-
export {
|
|
25
|
+
export { o as useScheduledPayment };
|
|
@@ -9,7 +9,7 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
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 { useDeletePayableMutation as i } from "../../data-access/dist/
|
|
12
|
+
import { useDeletePayableMutation as i } from "../../data-access/dist/index11.js";
|
|
13
13
|
import "../../data-access/dist/index.js";
|
|
14
14
|
import { useState as a } from "react";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { SourceDocumentPanel as e } from "../../ui/dist/index93.js";
|
|
6
6
|
import "../../ui/dist/index.js";
|
|
7
|
-
import { useAttachPayableFileMutation as t } from "../../data-access/dist/
|
|
7
|
+
import { useAttachPayableFileMutation as t } from "../../data-access/dist/index11.js";
|
|
8
8
|
import "../../data-access/dist/index.js";
|
|
9
9
|
import { createSourceDocumentPreview as n } from "./index30.js";
|
|
10
10
|
import { SOURCE_DOCUMENT_CONTAINER_LABELS_EN as r } from "./index31.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { maskAccountNumber as e } from "./index9.js";
|
|
6
|
-
import { usePayableSuggestionsQuery as t } from "../../data-access/dist/
|
|
6
|
+
import { usePayableSuggestionsQuery as t } from "../../data-access/dist/index15.js";
|
|
7
7
|
import "../../data-access/dist/index.js";
|
|
8
8
|
import { VENDOR_SECTION_PROPS_LABELS_EN as n } from "./index31.js";
|
|
9
9
|
import { buildVendorPrefill as r } from "./index33.js";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import "../../../shared/ui/dist/index.js";
|
|
7
|
-
import { useUpdatePayableMutation as t } from "../../data-access/dist/
|
|
7
|
+
import { useUpdatePayableMutation as t } from "../../data-access/dist/index11.js";
|
|
8
8
|
import "../../data-access/dist/index.js";
|
|
9
9
|
import { counterpartFormBankAccountToCreatePayload as n, counterpartFormBankAccountToUpdatePayload as r, getAchInstructions as i, resolveCounterpartBankAccountWrite as a, validateAchFormValues as o } from "../../../shared/counterpart-management/feature/dist/lib/helpers.js";
|
|
10
10
|
import { useCounterpartBankAccountsQuery as s, useCreateCounterpartBankAccountMutation as c, useUpdateCounterpartBankAccountMutation as l } from "../../../shared/counterpart-management/data-access/dist/index5.js";
|
|
@@ -8,7 +8,7 @@ import { formatCalendarDate as t } from "../../../shared/util/dist/lib/formatCal
|
|
|
8
8
|
import { formatMoneyExact as n } from "../../../shared/util/dist/lib/formatMoneyExact.js";
|
|
9
9
|
import { extractApiErrorMessage as r } from "../../../shared/util/dist/lib/apiErrors.js";
|
|
10
10
|
import { dateToCalendarKey as i, getDefaultPaymentDate as a, isTodayInEastern as o } from "./index3.js";
|
|
11
|
-
import { useMarkPayableAsPaidMutation as s } from "../../data-access/dist/
|
|
11
|
+
import { useMarkPayableAsPaidMutation as s } from "../../data-access/dist/index11.js";
|
|
12
12
|
import "../../data-access/dist/index.js";
|
|
13
13
|
import { mergeMarkAsPaidFlowLabels as c } from "./index2.js";
|
|
14
14
|
import { useEffect as l, useState as u } from "react";
|