@tesouro/embedded-components-react 0.11.87 → 0.11.88

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.
Files changed (35) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index.js +19 -19
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index10.js +3 -3
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index11.js +5 -7
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index12.js +2 -2
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index13.js +4 -3
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index14.js +13 -27
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index15.js +30 -17
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index16.js +23 -16
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index17.js +26 -12
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +12 -57
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +48 -29
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index20.js +35 -16
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +13 -37
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +31 -14
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index23.js +26 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index24.js +2 -0
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +8 -76
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index5.js +60 -19
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index6.js +6 -5
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index7.js +12 -17
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index8.js +20 -14
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index9.js +16 -18
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index19.js +5 -5
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index21.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +1 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +126 -108
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  35. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
1
  import { useApprovePayableApprovalRequestMutation as e, usePayableApprovalRequestsQuery as t, useRejectPayableApprovalRequestMutation as n } from "./index2.js";
2
2
  import { usePayableHistoryQuery as r } from "./index3.js";
3
- import { useAllPayableLineItemsQuery as i, useReplacePayableLineItemsMutation as a } from "./index4.js";
4
- import { useAttachPayableFileMutation as o } from "./index5.js";
5
- import { useCancelPayableMutation as s } from "./index6.js";
6
- import { useCancelScheduledPaymentMutation as c } from "./index7.js";
7
- import { useCreatePayableMutation as l } from "./index8.js";
8
- import { useDeletePayableFileMutation as u } from "./index9.js";
9
- import { useDeletePayableMutation as d } from "./index10.js";
10
- import { useForceApprovePayableMutation as f } from "./index11.js";
11
- import { useForceRejectPayableMutation as p } from "./index12.js";
12
- import { useReopenPayableMutation as m } from "./index13.js";
13
- import { useSubmitPayableForApprovalMutation as h } from "./index14.js";
14
- import { useUpdatePayableMutation as g } from "./index15.js";
15
- import { useValidatePayableMutation as _ } from "./index16.js";
16
- import "./index17.js";
17
- import { usePayablePaymentRecordsQuery as v } from "./index18.js";
18
- import { usePayableSuggestionsQuery as y } from "./index19.js";
19
- import { usePayableQuery as b } from "./index21.js";
20
- import { usePayablesByIdsQueries as x } from "./index22.js";
21
- import "./index23.js";
3
+ import { useAllPayableLineItemsQuery as i, useReplacePayableLineItemsMutation as a } from "./index5.js";
4
+ import { useAttachPayableFileMutation as o } from "./index6.js";
5
+ import { useCancelPayableMutation as s } from "./index7.js";
6
+ import { useCancelScheduledPaymentMutation as c } from "./index8.js";
7
+ import { useCreatePayableMutation as l } from "./index9.js";
8
+ import { useDeletePayableFileMutation as u } from "./index10.js";
9
+ import { useDeletePayableMutation as d } from "./index11.js";
10
+ import { useForceApprovePayableMutation as f } from "./index12.js";
11
+ import { useForceRejectPayableMutation as p } from "./index13.js";
12
+ import { useReopenPayableMutation as m } from "./index14.js";
13
+ import { useSubmitPayableForApprovalMutation as h } from "./index15.js";
14
+ import { useUpdatePayableMutation as g } from "./index16.js";
15
+ import { useValidatePayableMutation as _ } from "./index17.js";
16
+ import "./index18.js";
17
+ import { usePayablePaymentRecordsQuery as v } from "./index19.js";
18
+ import { usePayableSuggestionsQuery as y } from "./index20.js";
19
+ import { usePayableQuery as b } from "./index22.js";
20
+ import { usePayablesByIdsQueries as x } from "./index23.js";
21
+ import "./index24.js";
22
22
  export { i as useAllPayableLineItemsQuery, e as useApprovePayableApprovalRequestMutation, o as useAttachPayableFileMutation, s as useCancelPayableMutation, c as useCancelScheduledPaymentMutation, l as useCreatePayableMutation, u as useDeletePayableFileMutation, d as useDeletePayableMutation, f as useForceApprovePayableMutation, p as useForceRejectPayableMutation, t as usePayableApprovalRequestsQuery, r as usePayableHistoryQuery, v as usePayablePaymentRecordsQuery, b as usePayableQuery, y as usePayableSuggestionsQuery, x as usePayablesByIdsQueries, n as useRejectPayableApprovalRequestMutation, m as useReopenPayableMutation, a as useReplacePayableLineItemsMutation, h as useSubmitPayableForApprovalMutation, g as useUpdatePayableMutation, _ as useValidatePayableMutation };
@@ -2,11 +2,11 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { deletePayablesId as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 { invalidateDeletedPayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidateDeletedPayableQueries.js";
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/index10.js
@@ -30,4 +30,4 @@ function a() {
30
30
  }
31
31
  });
32
32
  }
33
- export { a as useDeletePayableMutation };
33
+ export { a as useDeletePayableFileMutation };
@@ -2,11 +2,11 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPayablesIdApprovePaymentOperation as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 { invalidatePayableQueries as r } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
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/index11.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
- let { data: r } = await e({
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 useForceApprovePayableMutation };
33
+ export { a as useDeletePayableMutation };
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPayablesIdReject as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 useForceRejectPayableMutation };
35
+ export { a as useForceApprovePayableMutation };
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPayablesIdReopen as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 useReopenPayableMutation };
35
+ export { a as useForceRejectPayableMutation };
@@ -2,47 +2,33 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPayablesIdSubmitForApproval as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 o } from "@tanstack/react-query";
11
+ import { useMutation as i } from "@tanstack/react-query";
14
12
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index14.js
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 }),
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: s,
26
- headers: n(c),
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, n) => {
33
- let i = t.path.payable_id, o = e?.status === "approve_in_progress";
25
+ onSuccess: async (e, t) => {
34
26
  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(() => {});
27
+ client: a,
28
+ organizationId: o,
29
+ payableId: t.path.payable_id
30
+ });
45
31
  }
46
32
  });
47
33
  }
48
- export { s as useSubmitPayableForApprovalMutation };
34
+ export { a as useReopenPayableMutation };
@@ -2,34 +2,47 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { patchPayablesId as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 { useMutation as i } from "@tanstack/react-query";
13
+ import { useMutation as o } from "@tanstack/react-query";
12
14
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index15.js
13
- function a() {
14
- let { client: a, organizationId: o } = t();
15
- return i({
16
- mutationFn: async ({ path: t, body: r }) => {
17
- let { data: i } = await e({
18
- client: a,
19
- headers: n(o),
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),
20
27
  path: t,
21
- body: r,
22
28
  throwOnError: !0
23
29
  });
24
- return i;
30
+ return r;
25
31
  },
26
- onSuccess: async (e, t) => {
32
+ onSuccess: async (e, t, n) => {
33
+ let i = t.path.payable_id, o = e?.status === "approve_in_progress";
27
34
  await r({
28
- client: a,
29
- organizationId: o,
30
- payableId: t.path.payable_id
31
- });
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(() => {});
32
45
  }
33
46
  });
34
47
  }
35
- export { a as useUpdatePayableMutation };
48
+ export { s as useSubmitPayableForApprovalMutation };
@@ -2,25 +2,32 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPayablesIdValidate as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 { useMutation as r } from "@tanstack/react-query";
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 "./index4.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/index16.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),
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
- throwOnError: !0
19
- });
20
- return {
21
- id: r.id,
22
- validation_errors: r.validation_errors ?? []
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 { i as useValidatePayableMutation };
33
+ export { o as useUpdatePayableMutation };
@@ -1,12 +1,26 @@
1
- import "./index5.js";
2
- import "./index6.js";
3
- import "./index7.js";
4
- import "./index8.js";
5
- import "./index9.js";
6
- import "./index10.js";
7
- import "./index11.js";
8
- import "./index12.js";
9
- import "./index13.js";
10
- import "./index14.js";
11
- import "./index15.js";
12
- import "./index16.js";
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/index17.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
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { getPaymentRecords as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { getPaymentRecordsOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
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";
10
- import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
11
- import "../../../../shared/data-access/dist/index.js";
12
- import { useMemo as c } from "react";
13
- import { useInfiniteQuery as l } from "@tanstack/react-query";
14
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.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 "./index6.js";
2
+ import "./index7.js";
3
+ import "./index8.js";
4
+ import "./index9.js";
5
+ import "./index10.js";
6
+ import "./index11.js";
7
+ import "./index12.js";
8
+ import "./index13.js";
9
+ import "./index14.js";
10
+ import "./index15.js";
11
+ import "./index16.js";
12
+ import "./index17.js";
@@ -2,37 +2,56 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { getPayablesIdSuggestionsOptions 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";
9
- import { isApiNotFoundError as i } from "../../../../shared/data-access/dist/lib/isApiNotFoundError.js";
5
+ import { getPaymentRecords as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getPaymentRecordsOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
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";
10
+ import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
10
11
  import "../../../../shared/data-access/dist/index.js";
11
- import { useQuery as a } from "@tanstack/react-query";
12
+ import { useMemo as c } from "react";
13
+ import { useInfiniteQuery as l } from "@tanstack/react-query";
12
14
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js
13
- function o(o, { enabled: s = !0 } = {}) {
14
- let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = !!(l && u && o) && s, m = e({
15
- client: c,
16
- headers: r(l),
17
- path: { payable_id: o ?? "" }
18
- }), { queryKey: h, queryFn: g } = t(m, {
19
- authEpoch: d,
20
- organizationStatus: f
21
- });
22
- return a({
23
- queryKey: h,
24
- enabled: p,
25
- retry: !1,
26
- queryFn: async (e) => {
27
- try {
28
- if (typeof g != "function") throw Error("getPayablesIdSuggestionsOptions has no queryFn");
29
- return await g(e);
30
- } catch (e) {
31
- if (i(e)) return null;
32
- throw e;
33
- }
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;
34
46
  },
35
- select: (e) => e ?? void 0
47
+ getNextPageParam: a
36
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
+ };
37
56
  }
38
- export { o as usePayableSuggestionsQuery };
57
+ export { d as usePayablePaymentRecordsQuery };
@@ -1,19 +1,38 @@
1
- import { getPayablesIdOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { getPayablesIdSuggestionsOptions 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";
9
+ import { isApiNotFoundError as i } from "../../../../shared/data-access/dist/lib/isApiNotFoundError.js";
3
10
  import "../../../../shared/data-access/dist/index.js";
11
+ import { useQuery as a } from "@tanstack/react-query";
4
12
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index20.js
5
- var n = 1e3;
6
- function r({ client: r, organizationId: i, payableId: a }) {
7
- return {
8
- ...e({
9
- client: r,
10
- headers: t(i),
11
- path: { payable_id: a }
12
- }),
13
- refetchInterval: (e) => {
14
- let t = e.state.data;
15
- return !t || t.approval_policy_id || t.status !== "approve_in_progress" || !t.updated_at ? !1 : Date.now() - new Date(t.updated_at).getTime() < 1e4 && n;
16
- }
17
- };
13
+ function o(o, { enabled: s = !0 } = {}) {
14
+ let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = !!(l && u && o) && s, m = e({
15
+ client: c,
16
+ headers: r(l),
17
+ path: { payable_id: o ?? "" }
18
+ }), { queryKey: h, queryFn: g } = t(m, {
19
+ authEpoch: d,
20
+ organizationStatus: f
21
+ });
22
+ return a({
23
+ queryKey: h,
24
+ enabled: p,
25
+ retry: !1,
26
+ queryFn: async (e) => {
27
+ try {
28
+ if (typeof g != "function") throw Error("getPayablesIdSuggestionsOptions has no queryFn");
29
+ return await g(e);
30
+ } catch (e) {
31
+ if (i(e)) return null;
32
+ throw e;
33
+ }
34
+ },
35
+ select: (e) => e ?? void 0
36
+ });
18
37
  }
19
- export { r as payablePolicyAssignmentQueryOptions };
38
+ export { o as usePayableSuggestionsQuery };
@@ -1,43 +1,19 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
1
  import { getPayablesIdOptions 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";
2
+ import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
3
  import "../../../../shared/data-access/dist/index.js";
10
- import { payableOcrQueryOptions as i } from "../../../data-access/dist/lib/payableOcrQueryOptions.js";
11
- import "../../../data-access/dist/invalidation.js";
12
- import { payablePolicyAssignmentQueryOptions as a } from "./index20.js";
13
- import { useQuery as o } from "@tanstack/react-query";
14
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js
15
- function s(s, { enabled: c = !0, pollWhileOcrProcessing: l = !1, pollWhilePolicyAssignmentUnsettled: u = !1 } = {}) {
16
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationStatus: h } = n(), g = !!(f && p && s) && c, _ = l ? i({
17
- client: d,
18
- organizationId: f,
19
- payableId: s ?? ""
20
- }) : void 0, v = u ? a({
21
- client: d,
22
- organizationId: f,
23
- payableId: s ?? ""
24
- }) : void 0, y = _ ?? v ?? e({
25
- client: d,
26
- headers: r(f),
27
- path: { payable_id: s ?? "" }
28
- }), b = _ && v ? {
29
- ...y,
5
+ var n = 1e3;
6
+ function r({ client: r, organizationId: i, payableId: a }) {
7
+ return {
8
+ ...e({
9
+ client: r,
10
+ headers: t(i),
11
+ path: { payable_id: a }
12
+ }),
30
13
  refetchInterval: (e) => {
31
- let t = [_.refetchInterval(e), v.refetchInterval(e)].filter((e) => e !== !1);
32
- return t.length ? Math.min(...t) : !1;
14
+ let t = e.state.data;
15
+ return !t || t.approval_policy_id || t.status !== "approve_in_progress" || !t.updated_at ? !1 : Date.now() - new Date(t.updated_at).getTime() < 1e4 && n;
33
16
  }
34
- } : y;
35
- return o({
36
- ...t(b, {
37
- authEpoch: m,
38
- organizationStatus: h
39
- }),
40
- enabled: g
41
- });
17
+ };
42
18
  }
43
- export { s as usePayableQuery };
19
+ export { r as payablePolicyAssignmentQueryOptions };