@tesouro/embedded-components-react 0.5.116 → 0.5.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/index.css +13 -6
- package/dist/index.d.ts +31 -4
- package/dist/index.js +5 -4
- package/dist/lib/MarketingWidget.d.ts +31 -4
- package/dist/lib/MarketingWidget.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +27 -23
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +8 -17
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js +10 -80
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +16 -72
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js +45 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js +109 -0
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +88 -0
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js
CHANGED
|
@@ -2,192 +2,192 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { deletePayablesId as e, deletePayablesIdFile as t, patchPayablesId as n, postPayables as r, postPayablesIdApprovePaymentOperation as i, postPayablesIdAttachFile as a, postPayablesIdCancel as o, postPayablesIdMarkAsPaid as s, postPayablesIdReject as c, postPayablesIdReopen as l, postPayablesIdSubmitForApproval as u, postPayablesIdValidate as d, postPayablesUploadFromFile as f, postPaymentIntentsIdCancel as p } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as m } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as h } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { beginApprovalRequestWatch as g, invalidateDeletedPayableQueries as _, invalidatePayableQueries as v, reconcileCancelledPaymentQueries as y, reconcileSubmittedForApprovalQueries as b, reconcileUploadedPayableOcr as x } from "./index6.js";
|
|
10
10
|
import { useMutation as S } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js
|
|
12
12
|
function C() {
|
|
13
|
-
let { client:
|
|
13
|
+
let { client: e, organizationId: t } = m();
|
|
14
14
|
return S({
|
|
15
|
-
mutationFn: async ({ body:
|
|
16
|
-
let { data: i } = await
|
|
17
|
-
client:
|
|
18
|
-
headers: t
|
|
19
|
-
body:
|
|
15
|
+
mutationFn: async ({ body: n }) => {
|
|
16
|
+
let { data: i } = await r({
|
|
17
|
+
client: e,
|
|
18
|
+
headers: h(t),
|
|
19
|
+
body: n,
|
|
20
20
|
throwOnError: !0
|
|
21
21
|
});
|
|
22
22
|
return i;
|
|
23
23
|
},
|
|
24
24
|
onSuccess: async () => {
|
|
25
25
|
await v({
|
|
26
|
-
client:
|
|
27
|
-
organizationId:
|
|
26
|
+
client: e,
|
|
27
|
+
organizationId: t
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
function w() {
|
|
33
|
-
let { client:
|
|
33
|
+
let { client: e, organizationId: t } = m();
|
|
34
34
|
return S({
|
|
35
|
-
mutationFn: async ({ path:
|
|
36
|
-
let { data:
|
|
37
|
-
client:
|
|
38
|
-
headers: t
|
|
39
|
-
path:
|
|
40
|
-
body:
|
|
35
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
36
|
+
let { data: a } = await n({
|
|
37
|
+
client: e,
|
|
38
|
+
headers: h(t),
|
|
39
|
+
path: r,
|
|
40
|
+
body: i,
|
|
41
41
|
throwOnError: !0
|
|
42
42
|
});
|
|
43
|
-
return
|
|
43
|
+
return a;
|
|
44
44
|
},
|
|
45
|
-
onSuccess: async (
|
|
45
|
+
onSuccess: async (n, r) => {
|
|
46
46
|
await v({
|
|
47
|
-
client:
|
|
48
|
-
organizationId:
|
|
49
|
-
payableId:
|
|
47
|
+
client: e,
|
|
48
|
+
organizationId: t,
|
|
49
|
+
payableId: r.path.payable_id
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
function T() {
|
|
55
|
-
let { client:
|
|
55
|
+
let { client: t, organizationId: n } = m();
|
|
56
56
|
return S({
|
|
57
|
-
mutationFn: async ({ path:
|
|
58
|
-
await
|
|
59
|
-
client:
|
|
60
|
-
headers:
|
|
61
|
-
path:
|
|
57
|
+
mutationFn: async ({ path: r }) => {
|
|
58
|
+
await e({
|
|
59
|
+
client: t,
|
|
60
|
+
headers: h(n),
|
|
61
|
+
path: r,
|
|
62
62
|
throwOnError: !0
|
|
63
63
|
});
|
|
64
64
|
},
|
|
65
|
-
onSuccess: async (e,
|
|
65
|
+
onSuccess: async (e, r) => {
|
|
66
66
|
await _({
|
|
67
|
-
client:
|
|
68
|
-
organizationId:
|
|
69
|
-
payableId:
|
|
67
|
+
client: t,
|
|
68
|
+
organizationId: n,
|
|
69
|
+
payableId: r.path.payable_id
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
function E() {
|
|
75
|
-
let { client:
|
|
75
|
+
let { client: e, organizationId: t } = m();
|
|
76
76
|
return S({
|
|
77
|
-
mutationFn: async ({ file:
|
|
78
|
-
let { data:
|
|
79
|
-
client:
|
|
80
|
-
headers: t
|
|
81
|
-
body: { file:
|
|
77
|
+
mutationFn: async ({ file: r }) => {
|
|
78
|
+
let { data: i } = await f({
|
|
79
|
+
client: e,
|
|
80
|
+
headers: h(t),
|
|
81
|
+
body: { file: r },
|
|
82
82
|
throwOnError: !0
|
|
83
83
|
});
|
|
84
|
-
if (
|
|
85
|
-
return await
|
|
86
|
-
client:
|
|
87
|
-
headers: t
|
|
88
|
-
path: { payable_id:
|
|
84
|
+
if (i?.id && i.currency !== "USD") try {
|
|
85
|
+
return await n({
|
|
86
|
+
client: e,
|
|
87
|
+
headers: h(t),
|
|
88
|
+
path: { payable_id: i.id },
|
|
89
89
|
body: { currency: "USD" },
|
|
90
90
|
throwOnError: !0
|
|
91
91
|
}), {
|
|
92
|
-
...
|
|
92
|
+
...i,
|
|
93
93
|
currency: "USD"
|
|
94
94
|
};
|
|
95
95
|
} catch {}
|
|
96
|
-
return
|
|
96
|
+
return i;
|
|
97
97
|
},
|
|
98
|
-
onSuccess: async (
|
|
99
|
-
|
|
100
|
-
client:
|
|
101
|
-
organizationId:
|
|
102
|
-
payableId:
|
|
98
|
+
onSuccess: async (n) => {
|
|
99
|
+
n?.id && x({
|
|
100
|
+
client: e,
|
|
101
|
+
organizationId: t,
|
|
102
|
+
payableId: n.id
|
|
103
103
|
}).catch(() => {});
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
function D() {
|
|
108
|
-
let { client:
|
|
108
|
+
let { client: e, organizationId: t } = m();
|
|
109
109
|
return S({
|
|
110
|
-
mutationFn: async ({ path:
|
|
111
|
-
let { data:
|
|
112
|
-
client:
|
|
113
|
-
headers: t
|
|
114
|
-
path:
|
|
115
|
-
body: { file:
|
|
110
|
+
mutationFn: async ({ path: n, file: r }) => {
|
|
111
|
+
let { data: i } = await a({
|
|
112
|
+
client: e,
|
|
113
|
+
headers: h(t),
|
|
114
|
+
path: n,
|
|
115
|
+
body: { file: r },
|
|
116
116
|
throwOnError: !0
|
|
117
117
|
});
|
|
118
|
-
return
|
|
118
|
+
return i;
|
|
119
119
|
},
|
|
120
|
-
onSuccess: async (
|
|
120
|
+
onSuccess: async (n, r) => {
|
|
121
121
|
await v({
|
|
122
|
-
client:
|
|
123
|
-
organizationId:
|
|
124
|
-
payableId:
|
|
122
|
+
client: e,
|
|
123
|
+
organizationId: t,
|
|
124
|
+
payableId: r.path.payable_id
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
function O() {
|
|
130
|
-
let { client:
|
|
130
|
+
let { client: e, organizationId: n } = m();
|
|
131
131
|
return S({
|
|
132
|
-
mutationFn: async ({ path:
|
|
133
|
-
await
|
|
134
|
-
client:
|
|
135
|
-
headers:
|
|
136
|
-
path:
|
|
132
|
+
mutationFn: async ({ path: r }) => {
|
|
133
|
+
await t({
|
|
134
|
+
client: e,
|
|
135
|
+
headers: h(n),
|
|
136
|
+
path: r,
|
|
137
137
|
throwOnError: !0
|
|
138
138
|
});
|
|
139
139
|
},
|
|
140
|
-
onSuccess: async (
|
|
140
|
+
onSuccess: async (t, r) => {
|
|
141
141
|
await v({
|
|
142
|
-
client:
|
|
143
|
-
organizationId:
|
|
144
|
-
payableId:
|
|
142
|
+
client: e,
|
|
143
|
+
organizationId: n,
|
|
144
|
+
payableId: r.path.payable_id
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function k() {
|
|
150
|
-
let { client:
|
|
151
|
-
return S({ mutationFn: async ({ path:
|
|
152
|
-
let { data:
|
|
153
|
-
client:
|
|
154
|
-
headers: t
|
|
155
|
-
path:
|
|
150
|
+
let { client: e, organizationId: t } = m();
|
|
151
|
+
return S({ mutationFn: async ({ path: n }) => {
|
|
152
|
+
let { data: r } = await d({
|
|
153
|
+
client: e,
|
|
154
|
+
headers: h(t),
|
|
155
|
+
path: n,
|
|
156
156
|
throwOnError: !0
|
|
157
157
|
});
|
|
158
158
|
return {
|
|
159
|
-
id:
|
|
160
|
-
validation_errors:
|
|
159
|
+
id: r.id,
|
|
160
|
+
validation_errors: r.validation_errors ?? []
|
|
161
161
|
};
|
|
162
162
|
} });
|
|
163
163
|
}
|
|
164
164
|
function A() {
|
|
165
|
-
let { client:
|
|
165
|
+
let { client: e, organizationId: t } = m();
|
|
166
166
|
return S({
|
|
167
|
-
onMutate: async ({ path:
|
|
168
|
-
client:
|
|
169
|
-
organizationId:
|
|
170
|
-
payableId:
|
|
167
|
+
onMutate: async ({ path: n }) => g({
|
|
168
|
+
client: e,
|
|
169
|
+
organizationId: t,
|
|
170
|
+
payableId: n.payable_id
|
|
171
171
|
}, { requireRoundMarker: !0 }),
|
|
172
|
-
mutationFn: async ({ path:
|
|
173
|
-
let { data:
|
|
174
|
-
client:
|
|
175
|
-
headers: t
|
|
176
|
-
path:
|
|
172
|
+
mutationFn: async ({ path: n }) => {
|
|
173
|
+
let { data: r } = await u({
|
|
174
|
+
client: e,
|
|
175
|
+
headers: h(t),
|
|
176
|
+
path: n,
|
|
177
177
|
throwOnError: !0
|
|
178
178
|
});
|
|
179
|
-
return
|
|
179
|
+
return r;
|
|
180
180
|
},
|
|
181
|
-
onSuccess: async (
|
|
182
|
-
let a =
|
|
181
|
+
onSuccess: async (n, r, i) => {
|
|
182
|
+
let a = r.path.payable_id, o = n?.status === "approve_in_progress";
|
|
183
183
|
await v({
|
|
184
|
-
client:
|
|
185
|
-
organizationId:
|
|
184
|
+
client: e,
|
|
185
|
+
organizationId: t,
|
|
186
186
|
payableId: a,
|
|
187
187
|
includeApprovalRequests: !0
|
|
188
188
|
}), !(!o || !i) && b({
|
|
189
|
-
client:
|
|
190
|
-
organizationId:
|
|
189
|
+
client: e,
|
|
190
|
+
organizationId: t,
|
|
191
191
|
payableId: a,
|
|
192
192
|
watch: i
|
|
193
193
|
}).catch(() => {});
|
|
@@ -195,134 +195,134 @@ function A() {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
function j() {
|
|
198
|
-
let { client:
|
|
198
|
+
let { client: e, organizationId: t } = m();
|
|
199
199
|
return S({
|
|
200
|
-
mutationFn: async ({ path:
|
|
201
|
-
let { data:
|
|
202
|
-
client:
|
|
203
|
-
headers: t
|
|
204
|
-
path:
|
|
200
|
+
mutationFn: async ({ path: n }) => {
|
|
201
|
+
let { data: r } = await i({
|
|
202
|
+
client: e,
|
|
203
|
+
headers: h(t),
|
|
204
|
+
path: n,
|
|
205
205
|
throwOnError: !0
|
|
206
206
|
});
|
|
207
|
-
return
|
|
207
|
+
return r;
|
|
208
208
|
},
|
|
209
|
-
onSuccess: async (
|
|
209
|
+
onSuccess: async (n, r) => {
|
|
210
210
|
await v({
|
|
211
|
-
client:
|
|
212
|
-
organizationId:
|
|
213
|
-
payableId:
|
|
211
|
+
client: e,
|
|
212
|
+
organizationId: t,
|
|
213
|
+
payableId: r.path.payable_id,
|
|
214
214
|
includeApprovalRequests: !0
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
function M() {
|
|
220
|
-
let { client:
|
|
220
|
+
let { client: e, organizationId: t } = m();
|
|
221
221
|
return S({
|
|
222
|
-
mutationFn: async ({ path:
|
|
223
|
-
let { data:
|
|
224
|
-
client:
|
|
225
|
-
headers: t
|
|
226
|
-
path:
|
|
222
|
+
mutationFn: async ({ path: n }) => {
|
|
223
|
+
let { data: r } = await c({
|
|
224
|
+
client: e,
|
|
225
|
+
headers: h(t),
|
|
226
|
+
path: n,
|
|
227
227
|
throwOnError: !0
|
|
228
228
|
});
|
|
229
|
-
return
|
|
229
|
+
return r;
|
|
230
230
|
},
|
|
231
|
-
onSuccess: async (
|
|
231
|
+
onSuccess: async (n, r) => {
|
|
232
232
|
await v({
|
|
233
|
-
client:
|
|
234
|
-
organizationId:
|
|
235
|
-
payableId:
|
|
233
|
+
client: e,
|
|
234
|
+
organizationId: t,
|
|
235
|
+
payableId: r.path.payable_id,
|
|
236
236
|
includeApprovalRequests: !0
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
241
|
function N() {
|
|
242
|
-
let { client:
|
|
242
|
+
let { client: e, organizationId: t } = m();
|
|
243
243
|
return S({
|
|
244
|
-
mutationFn: async ({ path:
|
|
245
|
-
let { data:
|
|
246
|
-
client:
|
|
247
|
-
headers: t
|
|
248
|
-
path:
|
|
244
|
+
mutationFn: async ({ path: n }) => {
|
|
245
|
+
let { data: r } = await o({
|
|
246
|
+
client: e,
|
|
247
|
+
headers: h(t),
|
|
248
|
+
path: n,
|
|
249
249
|
throwOnError: !0
|
|
250
250
|
});
|
|
251
|
-
return
|
|
251
|
+
return r;
|
|
252
252
|
},
|
|
253
|
-
onSuccess: async (
|
|
253
|
+
onSuccess: async (n, r) => {
|
|
254
254
|
await v({
|
|
255
|
-
client:
|
|
256
|
-
organizationId:
|
|
257
|
-
payableId:
|
|
255
|
+
client: e,
|
|
256
|
+
organizationId: t,
|
|
257
|
+
payableId: r.path.payable_id
|
|
258
258
|
});
|
|
259
259
|
}
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
function P() {
|
|
263
|
-
let { client:
|
|
263
|
+
let { client: e, organizationId: t } = m();
|
|
264
264
|
return S({
|
|
265
|
-
mutationFn: async ({ path:
|
|
266
|
-
let { data:
|
|
267
|
-
client:
|
|
268
|
-
headers: t
|
|
269
|
-
path:
|
|
265
|
+
mutationFn: async ({ path: n }) => {
|
|
266
|
+
let { data: r } = await p({
|
|
267
|
+
client: e,
|
|
268
|
+
headers: h(t),
|
|
269
|
+
path: n,
|
|
270
270
|
throwOnError: !0
|
|
271
271
|
});
|
|
272
|
-
return
|
|
272
|
+
return r;
|
|
273
273
|
},
|
|
274
|
-
onSuccess: async (
|
|
274
|
+
onSuccess: async (n, r) => {
|
|
275
275
|
await v({
|
|
276
|
-
client:
|
|
277
|
-
organizationId:
|
|
278
|
-
payableId:
|
|
276
|
+
client: e,
|
|
277
|
+
organizationId: t,
|
|
278
|
+
payableId: r.payableId
|
|
279
279
|
}), y({
|
|
280
|
-
client:
|
|
281
|
-
organizationId:
|
|
282
|
-
payableId:
|
|
280
|
+
client: e,
|
|
281
|
+
organizationId: t,
|
|
282
|
+
payableId: r.payableId
|
|
283
283
|
}).catch(() => {});
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
286
|
}
|
|
287
287
|
function F() {
|
|
288
|
-
let { client:
|
|
288
|
+
let { client: e, organizationId: t } = m();
|
|
289
289
|
return S({
|
|
290
|
-
mutationFn: async ({ path:
|
|
291
|
-
let { data:
|
|
292
|
-
client:
|
|
293
|
-
headers: t
|
|
294
|
-
path:
|
|
290
|
+
mutationFn: async ({ path: n }) => {
|
|
291
|
+
let { data: r } = await l({
|
|
292
|
+
client: e,
|
|
293
|
+
headers: h(t),
|
|
294
|
+
path: n,
|
|
295
295
|
throwOnError: !0
|
|
296
296
|
});
|
|
297
|
-
return
|
|
297
|
+
return r;
|
|
298
298
|
},
|
|
299
|
-
onSuccess: async (
|
|
299
|
+
onSuccess: async (n, r) => {
|
|
300
300
|
await v({
|
|
301
|
-
client:
|
|
302
|
-
organizationId:
|
|
303
|
-
payableId:
|
|
301
|
+
client: e,
|
|
302
|
+
organizationId: t,
|
|
303
|
+
payableId: r.path.payable_id
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
307
|
}
|
|
308
308
|
function I() {
|
|
309
|
-
let { client:
|
|
309
|
+
let { client: e, organizationId: t } = m();
|
|
310
310
|
return S({
|
|
311
|
-
mutationFn: async ({ path:
|
|
312
|
-
let { data:
|
|
313
|
-
client:
|
|
314
|
-
headers: t
|
|
315
|
-
path:
|
|
316
|
-
body:
|
|
311
|
+
mutationFn: async ({ path: n, body: r }) => {
|
|
312
|
+
let { data: i } = await s({
|
|
313
|
+
client: e,
|
|
314
|
+
headers: h(t),
|
|
315
|
+
path: n,
|
|
316
|
+
body: r,
|
|
317
317
|
throwOnError: !0
|
|
318
318
|
});
|
|
319
|
-
return
|
|
319
|
+
return i;
|
|
320
320
|
},
|
|
321
|
-
onSuccess: async (
|
|
321
|
+
onSuccess: async (n, r) => {
|
|
322
322
|
await v({
|
|
323
|
-
client:
|
|
324
|
-
organizationId:
|
|
325
|
-
payableId:
|
|
323
|
+
client: e,
|
|
324
|
+
organizationId: t,
|
|
325
|
+
payableId: r.path.payable_id
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
});
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js
CHANGED
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { withAuthEpoch as e } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
7
|
import "../../../shared/data-access/dist/index.js";
|
|
8
8
|
import { payableOcrQueryOptions as n } from "./index4.js";
|
|
9
9
|
import { suspectedPayableDuplicates as r } from "./index7.js";
|
|
10
10
|
import { useQueries as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js
|
|
12
12
|
function a({ payableIds: a, enabled: o }) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } =
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = t(), d = !!(c && l) && (o === !0 || o === void 0);
|
|
14
14
|
return i({
|
|
15
|
-
queries: a.map((
|
|
16
|
-
...
|
|
15
|
+
queries: a.map((t) => ({
|
|
16
|
+
...e(n({
|
|
17
17
|
client: s,
|
|
18
18
|
organizationId: c,
|
|
19
|
-
payableId:
|
|
19
|
+
payableId: t
|
|
20
20
|
}), u),
|
|
21
|
-
enabled: d && !!
|
|
21
|
+
enabled: d && !!t
|
|
22
22
|
})),
|
|
23
23
|
combine: (e) => e.map((e, t) => ({
|
|
24
24
|
payableId: a[t],
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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";
|
|
3
3
|
import "../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js
|
|
5
5
|
var n = 1e3;
|
|
6
6
|
function r({ client: r, organizationId: i, payableId: a }) {
|
|
7
7
|
return {
|
|
8
|
-
...
|
|
8
|
+
...e({
|
|
9
9
|
client: r,
|
|
10
|
-
headers:
|
|
10
|
+
headers: t(i),
|
|
11
11
|
path: { payable_id: a }
|
|
12
12
|
}),
|
|
13
13
|
refetchInterval: (e) => {
|