@tesouro/embedded-components-react 0.3.48 → 0.3.50
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/index.css +8 -2
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +39 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +26 -311
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +325 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +13 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index14.js +20 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +75 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +80 -68
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +86 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +77 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +18 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +50 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +22 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +82 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +7 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +15 -159
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +23 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +66 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +2 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +5 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +3 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +31 -63
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +23 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +37 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +161 -61
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +29 -130
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +1 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +47 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +4 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +12 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +63 -72
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +26 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index3.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +62 -93
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +133 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +20 -163
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +4 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +39 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +5 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +70 -211
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +47 -103
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +92 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +34 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +59 -62
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +163 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +67 -181
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +20 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +203 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +214 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +98 -312
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +16 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +49 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +29 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +183 -156
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index5.js +9 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +102 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +18 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +343 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +30 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +79 -88
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +179 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +2 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +38 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +6 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +92 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +123 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +7 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +8 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +45 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +21 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +27 -208
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +86 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +47 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +244 -106
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +201 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +44 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +28 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +6 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +119 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +24 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +5 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +10 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +105 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +15 -123
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +125 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +7 -167
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +11 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +108 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index95.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index96.js +8 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index97.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index98.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +144 -130
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +87 -71
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2313,6 +2313,9 @@
|
|
|
2313
2313
|
.ttw\:border-b-\[\#EAECF0\] {
|
|
2314
2314
|
border-bottom-color: #EAECF0;
|
|
2315
2315
|
}
|
|
2316
|
+
.ttw\:border-b-transparent {
|
|
2317
|
+
border-bottom-color: transparent;
|
|
2318
|
+
}
|
|
2316
2319
|
.ttw\:\!bg-gray-800 {
|
|
2317
2320
|
background-color: var(--ttw-color-gray-800) !important;
|
|
2318
2321
|
}
|
|
@@ -4521,6 +4524,9 @@
|
|
|
4521
4524
|
.ttw\:hover\:no-underline:hover {
|
|
4522
4525
|
text-decoration-line: none;
|
|
4523
4526
|
}
|
|
4527
|
+
.ttw\:hover\:no-underline\!:hover {
|
|
4528
|
+
text-decoration-line: none !important;
|
|
4529
|
+
}
|
|
4524
4530
|
.ttw\:hover\:underline:hover {
|
|
4525
4531
|
text-decoration-line: underline;
|
|
4526
4532
|
}
|
|
@@ -5575,8 +5581,8 @@
|
|
|
5575
5581
|
.ttw\:sm\:max-w-180 {
|
|
5576
5582
|
max-width: calc(var(--ttw-spacing) * 180);
|
|
5577
5583
|
}
|
|
5578
|
-
.ttw\:sm\:max-w-
|
|
5579
|
-
max-width: calc(var(--ttw-spacing) *
|
|
5584
|
+
.ttw\:sm\:max-w-240 {
|
|
5585
|
+
max-width: calc(var(--ttw-spacing) * 240);
|
|
5580
5586
|
}
|
|
5581
5587
|
.ttw\:sm\:max-w-\[423px\] {
|
|
5582
5588
|
max-width: 423px;
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { RefreshingRootWidgetProvider as _ } from "./libs/tesouro-embedded-compo
|
|
|
14
14
|
import { useDisclosuresAcceptanceSurface as v, useOwnWidgetConfig as y, useRefetchWidget as b, useWidgetConfig as x, useWidgetError as S, useWidgetLoading as C } from "./libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
15
15
|
import { BankAccountsWidget as w } from "./libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js";
|
|
16
16
|
import { CounterpartsWidget as T } from "./libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js";
|
|
17
|
-
import { BillPayWidget as E } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
17
|
+
import { BillPayWidget as E } from "./libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js";
|
|
18
18
|
import { CardDetailsWidget as D } from "./libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js";
|
|
19
19
|
import { CardFormatValue as O } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index3.js";
|
|
20
20
|
import { CREATE_CARD_FEATURE_LABELS_EN as k, resolveCreateCardFeatureLabels as A } from "./libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index5.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/
|
|
1
|
+
import { BillPayWidget as e } from "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js";
|
|
2
2
|
import "../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js";
|
|
3
3
|
export { e as BillPayWidget };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js
CHANGED
|
@@ -2,13 +2,14 @@ import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiC
|
|
|
2
2
|
import "../../../shared/data-access/dist/index.js";
|
|
3
3
|
import { isLiveScheduledPaymentRecord as t } from "./index3.js";
|
|
4
4
|
import "./index4.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
5
|
+
import { DuplicateVerdict as n, hasSuspectedPayableDuplicate as r, suspectedPayableDuplicates as i, useApplyDuplicateVerdictsMutation as a } from "./index6.js";
|
|
6
|
+
import { useApprovePayableApprovalRequestMutation as o, usePayableApprovalRequestsQuery as s, useRejectPayableApprovalRequestMutation as c } from "./index7.js";
|
|
7
|
+
import { usePayableHistoryQuery as l } from "./index8.js";
|
|
8
|
+
import { useAllPayableLineItemsQuery as u, useReplacePayableLineItemsMutation as d } from "./index9.js";
|
|
9
|
+
import { usePayablePaymentRecordsQuery as f } from "./index10.js";
|
|
10
|
+
import { useSchedulePaymentMutation as p } from "./index11.js";
|
|
11
|
+
import { useAttachPayableFileMutation as m, useCancelPayableMutation as h, useCancelScheduledPaymentMutation as g, useCreatePayableMutation as _, useDeletePayableFileMutation as v, useDeletePayableMutation as y, useForceApprovePayableMutation as b, useForceRejectPayableMutation as x, useMarkPayableAsPaidMutation as S, useReopenPayableMutation as C, useSubmitPayableForApprovalMutation as w, useUpdatePayableMutation as T, useUploadPayableFromFileMutation as E, useValidatePayableMutation as D } from "./index12.js";
|
|
12
|
+
import { usePayableOcrQueries as O } from "./index14.js";
|
|
13
|
+
import { useAllSuspectedDuplicatePayablesQuery as k, usePayableQuery as A, usePayablesQuery as j, usePayablesTotalCountQuery as M } from "./index15.js";
|
|
14
|
+
import { usePayableSuggestionsQuery as N } from "./index16.js";
|
|
15
|
+
export { n as DuplicateVerdict, r as hasSuspectedPayableDuplicate, t as isLiveScheduledPaymentRecord, i as suspectedPayableDuplicates, u as useAllPayableLineItemsQuery, k as useAllSuspectedDuplicatePayablesQuery, a as useApplyDuplicateVerdictsMutation, o as useApprovePayableApprovalRequestMutation, m as useAttachPayableFileMutation, h as useCancelPayableMutation, g as useCancelScheduledPaymentMutation, _ as useCreatePayableMutation, v as useDeletePayableFileMutation, y as useDeletePayableMutation, e as useEmbedApi, b as useForceApprovePayableMutation, x as useForceRejectPayableMutation, S as useMarkPayableAsPaidMutation, s as usePayableApprovalRequestsQuery, l as usePayableHistoryQuery, O as usePayableOcrQueries, f as usePayablePaymentRecordsQuery, A as usePayableQuery, N as usePayableSuggestionsQuery, j as usePayablesQuery, M as usePayablesTotalCountQuery, c as useRejectPayableApprovalRequestMutation, C as useReopenPayableMutation, d as useReplacePayableLineItemsMutation, p as useSchedulePaymentMutation, w as useSubmitPayableForApprovalMutation, T as useUpdatePayableMutation, E as useUploadPayableFromFileMutation, D as useValidatePayableMutation };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.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/index10.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 };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js
CHANGED
|
@@ -4,327 +4,42 @@
|
|
|
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 { postPayablesIdSchedulePayment as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
|
-
import {
|
|
10
|
-
import { useMutation as
|
|
9
|
+
import { invalidatePayableQueries as r, reconcileScheduledPaymentQueries as i } from "./index5.js";
|
|
10
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js
|
|
12
|
-
function
|
|
13
|
-
let { client:
|
|
14
|
-
return
|
|
15
|
-
mutationFn: async ({
|
|
16
|
-
let { data:
|
|
17
|
-
client:
|
|
18
|
-
headers: t(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
onSuccess: async () => {
|
|
25
|
-
await v({
|
|
26
|
-
client: n,
|
|
27
|
-
organizationId: r
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function C() {
|
|
33
|
-
let { client: n, organizationId: r } = e();
|
|
34
|
-
return x({
|
|
35
|
-
mutationFn: async ({ path: e, body: a }) => {
|
|
36
|
-
let { data: o } = await i({
|
|
37
|
-
client: n,
|
|
38
|
-
headers: t(r),
|
|
39
|
-
path: e,
|
|
40
|
-
body: a,
|
|
41
|
-
throwOnError: !0
|
|
42
|
-
});
|
|
43
|
-
return o;
|
|
44
|
-
},
|
|
45
|
-
onSuccess: async (e, t) => {
|
|
46
|
-
await v({
|
|
47
|
-
client: n,
|
|
48
|
-
organizationId: r,
|
|
49
|
-
payableId: t.path.payable_id
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function w() {
|
|
55
|
-
let { client: r, organizationId: i } = e();
|
|
56
|
-
return x({
|
|
57
|
-
mutationFn: async ({ path: e }) => {
|
|
58
|
-
await n({
|
|
59
|
-
client: r,
|
|
60
|
-
headers: t(i),
|
|
61
|
-
path: e,
|
|
62
|
-
throwOnError: !0
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
onSuccess: async (e, t) => {
|
|
66
|
-
await _({
|
|
67
|
-
client: r,
|
|
68
|
-
organizationId: i,
|
|
69
|
-
payableId: t.path.payable_id
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
function T() {
|
|
75
|
-
let { client: n, organizationId: r } = e();
|
|
76
|
-
return x({
|
|
77
|
-
mutationFn: async ({ file: e }) => {
|
|
78
|
-
let { data: a } = await m({
|
|
79
|
-
client: n,
|
|
80
|
-
headers: t(r),
|
|
81
|
-
body: { file: e },
|
|
82
|
-
throwOnError: !0
|
|
83
|
-
});
|
|
84
|
-
if (a?.id && a.currency !== "USD") try {
|
|
85
|
-
return await i({
|
|
86
|
-
client: n,
|
|
87
|
-
headers: t(r),
|
|
88
|
-
path: { payable_id: a.id },
|
|
89
|
-
body: { currency: "USD" },
|
|
90
|
-
throwOnError: !0
|
|
91
|
-
}), {
|
|
92
|
-
...a,
|
|
93
|
-
currency: "USD"
|
|
94
|
-
};
|
|
95
|
-
} catch {}
|
|
96
|
-
return a;
|
|
97
|
-
},
|
|
98
|
-
onSuccess: async () => {
|
|
99
|
-
await v({
|
|
100
|
-
client: n,
|
|
101
|
-
organizationId: r
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
function E() {
|
|
107
|
-
let { client: n, organizationId: r } = e();
|
|
108
|
-
return x({
|
|
109
|
-
mutationFn: async ({ path: e, file: i }) => {
|
|
110
|
-
let { data: a } = await s({
|
|
111
|
-
client: n,
|
|
112
|
-
headers: t(r),
|
|
113
|
-
path: e,
|
|
114
|
-
body: { file: i },
|
|
12
|
+
function o() {
|
|
13
|
+
let { client: o, organizationId: s } = e();
|
|
14
|
+
return a({
|
|
15
|
+
mutationFn: async ({ payableId: e, paymentDate: r, sourceBankAccountId: i }) => {
|
|
16
|
+
let { data: a } = await n({
|
|
17
|
+
client: o,
|
|
18
|
+
headers: t(s),
|
|
19
|
+
path: { payable_id: e },
|
|
20
|
+
body: {
|
|
21
|
+
payment_date: r,
|
|
22
|
+
source_bank_account_id: i
|
|
23
|
+
},
|
|
115
24
|
throwOnError: !0
|
|
116
25
|
});
|
|
117
26
|
return a;
|
|
118
27
|
},
|
|
119
28
|
onSuccess: async (e, t) => {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
return x({
|
|
131
|
-
mutationFn: async ({ path: e }) => {
|
|
132
|
-
await r({
|
|
133
|
-
client: n,
|
|
134
|
-
headers: t(i),
|
|
135
|
-
path: e,
|
|
136
|
-
throwOnError: !0
|
|
137
|
-
});
|
|
138
|
-
},
|
|
139
|
-
onSuccess: async (e, t) => {
|
|
140
|
-
await v({
|
|
141
|
-
client: n,
|
|
142
|
-
organizationId: i,
|
|
143
|
-
payableId: t.path.payable_id
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
function O() {
|
|
149
|
-
let { client: n, organizationId: r } = e();
|
|
150
|
-
return x({ mutationFn: async ({ path: e }) => {
|
|
151
|
-
let { data: i } = await p({
|
|
152
|
-
client: n,
|
|
153
|
-
headers: t(r),
|
|
154
|
-
path: e,
|
|
155
|
-
throwOnError: !0
|
|
156
|
-
});
|
|
157
|
-
return {
|
|
158
|
-
id: i.id,
|
|
159
|
-
validation_errors: i.validation_errors ?? []
|
|
160
|
-
};
|
|
161
|
-
} });
|
|
162
|
-
}
|
|
163
|
-
function k() {
|
|
164
|
-
let { client: n, organizationId: r } = e();
|
|
165
|
-
return x({
|
|
166
|
-
onMutate: async ({ path: e }) => g({
|
|
167
|
-
client: n,
|
|
168
|
-
organizationId: r,
|
|
169
|
-
payableId: e.payable_id
|
|
170
|
-
}, { requireRoundMarker: !0 }),
|
|
171
|
-
mutationFn: async ({ path: e }) => {
|
|
172
|
-
let { data: i } = await f({
|
|
173
|
-
client: n,
|
|
174
|
-
headers: t(r),
|
|
175
|
-
path: e,
|
|
176
|
-
throwOnError: !0
|
|
177
|
-
});
|
|
178
|
-
return i;
|
|
179
|
-
},
|
|
180
|
-
onSuccess: async (e, t, i) => {
|
|
181
|
-
let a = t.path.payable_id, o = e?.status === "approve_in_progress";
|
|
182
|
-
await v({
|
|
183
|
-
client: n,
|
|
184
|
-
organizationId: r,
|
|
185
|
-
payableId: a,
|
|
186
|
-
includeApprovalRequests: !0
|
|
187
|
-
}), !(!o || !i) && b({
|
|
188
|
-
client: n,
|
|
189
|
-
organizationId: r,
|
|
190
|
-
payableId: a,
|
|
191
|
-
watch: i
|
|
192
|
-
}).catch(() => {});
|
|
193
|
-
}
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
function A() {
|
|
197
|
-
let { client: n, organizationId: r } = e();
|
|
198
|
-
return x({
|
|
199
|
-
mutationFn: async ({ path: e }) => {
|
|
200
|
-
let { data: i } = await o({
|
|
201
|
-
client: n,
|
|
202
|
-
headers: t(r),
|
|
203
|
-
path: e,
|
|
204
|
-
throwOnError: !0
|
|
205
|
-
});
|
|
206
|
-
return i;
|
|
207
|
-
},
|
|
208
|
-
onSuccess: async (e, t) => {
|
|
209
|
-
await v({
|
|
210
|
-
client: n,
|
|
211
|
-
organizationId: r,
|
|
212
|
-
payableId: t.path.payable_id,
|
|
213
|
-
includeApprovalRequests: !0
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
function j() {
|
|
219
|
-
let { client: n, organizationId: r } = e();
|
|
220
|
-
return x({
|
|
221
|
-
mutationFn: async ({ path: e }) => {
|
|
222
|
-
let { data: i } = await u({
|
|
223
|
-
client: n,
|
|
224
|
-
headers: t(r),
|
|
225
|
-
path: e,
|
|
226
|
-
throwOnError: !0
|
|
227
|
-
});
|
|
228
|
-
return i;
|
|
229
|
-
},
|
|
230
|
-
onSuccess: async (e, t) => {
|
|
231
|
-
await v({
|
|
232
|
-
client: n,
|
|
233
|
-
organizationId: r,
|
|
234
|
-
payableId: t.path.payable_id,
|
|
235
|
-
includeApprovalRequests: !0
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
function M() {
|
|
241
|
-
let { client: n, organizationId: r } = e();
|
|
242
|
-
return x({
|
|
243
|
-
mutationFn: async ({ path: e }) => {
|
|
244
|
-
let { data: i } = await c({
|
|
245
|
-
client: n,
|
|
246
|
-
headers: t(r),
|
|
247
|
-
path: e,
|
|
248
|
-
throwOnError: !0
|
|
249
|
-
});
|
|
250
|
-
return i;
|
|
251
|
-
},
|
|
252
|
-
onSuccess: async (e, t) => {
|
|
253
|
-
await v({
|
|
254
|
-
client: n,
|
|
255
|
-
organizationId: r,
|
|
256
|
-
payableId: t.path.payable_id
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
});
|
|
260
|
-
}
|
|
261
|
-
function N() {
|
|
262
|
-
let { client: n, organizationId: r } = e();
|
|
263
|
-
return x({
|
|
264
|
-
mutationFn: async ({ path: e }) => {
|
|
265
|
-
let { data: i } = await h({
|
|
266
|
-
client: n,
|
|
267
|
-
headers: t(r),
|
|
268
|
-
path: e,
|
|
269
|
-
throwOnError: !0
|
|
270
|
-
});
|
|
271
|
-
return i;
|
|
272
|
-
},
|
|
273
|
-
onSuccess: async (e, t) => {
|
|
274
|
-
await v({
|
|
275
|
-
client: n,
|
|
276
|
-
organizationId: r,
|
|
277
|
-
payableId: t.payableId
|
|
278
|
-
}), y({
|
|
279
|
-
client: n,
|
|
280
|
-
organizationId: r,
|
|
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,
|
|
281
39
|
payableId: t.payableId
|
|
282
40
|
}).catch(() => {});
|
|
283
41
|
}
|
|
284
42
|
});
|
|
285
43
|
}
|
|
286
|
-
function P() {
|
|
287
|
-
let { client: n, organizationId: r } = e();
|
|
288
|
-
return x({
|
|
289
|
-
mutationFn: async ({ path: e }) => {
|
|
290
|
-
let { data: i } = await d({
|
|
291
|
-
client: n,
|
|
292
|
-
headers: t(r),
|
|
293
|
-
path: e,
|
|
294
|
-
throwOnError: !0
|
|
295
|
-
});
|
|
296
|
-
return i;
|
|
297
|
-
},
|
|
298
|
-
onSuccess: async (e, t) => {
|
|
299
|
-
await v({
|
|
300
|
-
client: n,
|
|
301
|
-
organizationId: r,
|
|
302
|
-
payableId: t.path.payable_id
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
function F() {
|
|
308
|
-
let { client: n, organizationId: r } = e();
|
|
309
|
-
return x({
|
|
310
|
-
mutationFn: async ({ path: e, body: i }) => {
|
|
311
|
-
let { data: a } = await l({
|
|
312
|
-
client: n,
|
|
313
|
-
headers: t(r),
|
|
314
|
-
path: e,
|
|
315
|
-
body: i,
|
|
316
|
-
throwOnError: !0
|
|
317
|
-
});
|
|
318
|
-
return a;
|
|
319
|
-
},
|
|
320
|
-
onSuccess: async (e, t) => {
|
|
321
|
-
await v({
|
|
322
|
-
client: n,
|
|
323
|
-
organizationId: r,
|
|
324
|
-
payableId: t.path.payable_id
|
|
325
|
-
});
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
44
|
//#endregion
|
|
330
|
-
export {
|
|
45
|
+
export { o as useSchedulePaymentMutation };
|