@tesouro/embedded-components-react 0.5.115 → 0.5.117
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 +3 -0
- 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-account-onboarding-widget/ui/dist/index17.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +20 -23
- 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/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/index8.js
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { postApprovalRequestsIdApprove as e, postApprovalRequestsIdReject as t } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getApprovalRequestsOptions as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as r } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
10
|
import "../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { NEWEST_REQUEST_FIRST as o, PAYABLE_OBJECT_TYPE as s } from "./index5.js";
|
|
12
12
|
import { beginApprovalRequestWatch as c, invalidateApprovalDecisionQueries as l, reconcileApprovalDecisionQueries as u } from "./index6.js";
|
|
13
13
|
import { useMutation as d, useQuery as f } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js
|
|
15
|
-
function p(
|
|
16
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
15
|
+
function p(e, { enabled: t } = {}) {
|
|
16
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = i(), p = !!(l && u && e) && t !== !1, m = n({
|
|
17
17
|
client: c,
|
|
18
|
-
headers:
|
|
18
|
+
headers: a(l),
|
|
19
19
|
query: {
|
|
20
|
-
object_id:
|
|
20
|
+
object_id: e ?? "",
|
|
21
21
|
object_type: s,
|
|
22
22
|
order: o
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
return f({
|
|
26
|
-
...
|
|
26
|
+
...r(m, d),
|
|
27
27
|
enabled: p
|
|
28
28
|
});
|
|
29
29
|
}
|
|
@@ -45,21 +45,21 @@ async function m({ client: e, organizationId: t, payableId: n, requestStatus: r
|
|
|
45
45
|
}).catch(() => {});
|
|
46
46
|
}
|
|
47
47
|
function h() {
|
|
48
|
-
let { client:
|
|
48
|
+
let { client: t, organizationId: n } = i();
|
|
49
49
|
return d({
|
|
50
|
-
mutationFn: async ({ path:
|
|
51
|
-
let { data:
|
|
52
|
-
client:
|
|
53
|
-
headers:
|
|
54
|
-
path:
|
|
50
|
+
mutationFn: async ({ path: r }) => {
|
|
51
|
+
let { data: i } = await e({
|
|
52
|
+
client: t,
|
|
53
|
+
headers: a(n),
|
|
54
|
+
path: r,
|
|
55
55
|
throwOnError: !0
|
|
56
56
|
});
|
|
57
|
-
return
|
|
57
|
+
return i;
|
|
58
58
|
},
|
|
59
59
|
onSuccess: async (e) => {
|
|
60
60
|
await m({
|
|
61
|
-
client:
|
|
62
|
-
organizationId:
|
|
61
|
+
client: t,
|
|
62
|
+
organizationId: n,
|
|
63
63
|
payableId: e?.object_id,
|
|
64
64
|
requestStatus: e?.status
|
|
65
65
|
});
|
|
@@ -67,24 +67,24 @@ function h() {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
function g() {
|
|
70
|
-
let { client:
|
|
70
|
+
let { client: e, organizationId: n } = i();
|
|
71
71
|
return d({
|
|
72
|
-
mutationFn: async ({ path:
|
|
73
|
-
let { data: o } = await
|
|
74
|
-
client:
|
|
75
|
-
headers:
|
|
76
|
-
path:
|
|
77
|
-
body:
|
|
72
|
+
mutationFn: async ({ path: r, body: i }) => {
|
|
73
|
+
let { data: o } = await t({
|
|
74
|
+
client: e,
|
|
75
|
+
headers: a(n),
|
|
76
|
+
path: r,
|
|
77
|
+
body: i?.reject_reason ? i : void 0,
|
|
78
78
|
throwOnError: !0
|
|
79
79
|
});
|
|
80
80
|
return o;
|
|
81
81
|
},
|
|
82
|
-
onSuccess: async (
|
|
82
|
+
onSuccess: async (t) => {
|
|
83
83
|
await m({
|
|
84
|
-
client:
|
|
85
|
-
organizationId:
|
|
86
|
-
payableId:
|
|
87
|
-
requestStatus:
|
|
84
|
+
client: e,
|
|
85
|
+
organizationId: n,
|
|
86
|
+
payableId: t?.object_id,
|
|
87
|
+
requestStatus: t?.status
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
});
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getPayablesIdHistoryOptions 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
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js
|
|
12
12
|
var a = 100;
|
|
13
13
|
function o(o, { enabled: s } = {}) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = !!(l && u && o) && s !== !1, p = e({
|
|
15
15
|
client: c,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(l),
|
|
17
17
|
path: { payable_id: o ?? "" },
|
|
18
18
|
query: {
|
|
19
19
|
sort: "timestamp",
|
|
@@ -22,7 +22,7 @@ function o(o, { enabled: s } = {}) {
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
return i({
|
|
25
|
-
...
|
|
25
|
+
...t(p, d),
|
|
26
26
|
enabled: f
|
|
27
27
|
});
|
|
28
28
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { getPayablesIdOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch 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
10
|
import { isApiNotFoundError as a } from "../../../shared/data-access/dist/lib/isApiNotFoundError.js";
|
|
11
11
|
import "../../../shared/data-access/dist/index.js";
|
|
12
12
|
import "../../../shared/ui/dist/index.js";
|
|
@@ -22,7 +22,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
|
|
|
22
22
|
let v = {
|
|
23
23
|
...l,
|
|
24
24
|
..._
|
|
25
|
-
}, y = _?.tooManyFilesError ?? l.tooManyFilesError, b = _?.remainingCapacityError ?? l.remainingCapacityError, { client: x, organizationId: S, authEpoch: C } =
|
|
25
|
+
}, y = _?.tooManyFilesError ?? l.tooManyFilesError, b = _?.remainingCapacityError ?? l.remainingCapacityError, { client: x, organizationId: S, authEpoch: C } = r(), w = h(), T = f(() => c(S), [S]), E = o(), [D, O] = p(!1), { data: k = [] } = m({
|
|
26
26
|
queryKey: T,
|
|
27
27
|
queryFn: () => w.getQueryData(T) ?? [],
|
|
28
28
|
staleTime: Infinity,
|
|
@@ -74,23 +74,23 @@ function g({ onOpenBill: g, labels: _ } = {}) {
|
|
|
74
74
|
N,
|
|
75
75
|
A
|
|
76
76
|
]);
|
|
77
|
-
let P = k.filter((e) => e.status === "uploading"), F = k.filter((e) => e.status === "ready"), I = k.filter((e) => e.status === "duplicate"), L = k.filter((e) => e.status === "failed"), R = (
|
|
78
|
-
id:
|
|
79
|
-
fileName:
|
|
80
|
-
status:
|
|
81
|
-
onOpen: (
|
|
82
|
-
let o =
|
|
77
|
+
let P = k.filter((e) => e.status === "uploading"), F = k.filter((e) => e.status === "ready"), I = k.filter((e) => e.status === "duplicate"), L = k.filter((e) => e.status === "failed"), R = (r) => ({
|
|
78
|
+
id: r.localId,
|
|
79
|
+
fileName: r.fileName,
|
|
80
|
+
status: r.status,
|
|
81
|
+
onOpen: (r.status === "ready" || r.status === "duplicate") && r.payableId && g ? () => {
|
|
82
|
+
let o = r.payableId;
|
|
83
83
|
w.fetchQuery({
|
|
84
|
-
...
|
|
84
|
+
...n(t({
|
|
85
85
|
client: x,
|
|
86
|
-
headers:
|
|
86
|
+
headers: i(S),
|
|
87
87
|
path: { payable_id: o }
|
|
88
88
|
}), C),
|
|
89
89
|
retry: !1
|
|
90
90
|
}).catch((e) => {
|
|
91
91
|
if (a(e)) return "deleted";
|
|
92
|
-
}).then((
|
|
93
|
-
|
|
92
|
+
}).then((t) => {
|
|
93
|
+
t === "deleted" ? e.error(v.billDeletedError) : g(o), j(r.localId);
|
|
94
94
|
});
|
|
95
95
|
} : void 0
|
|
96
96
|
}), z = P.length ? [{
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { updateDebitCardMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.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
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { resyncCardViews as r, resyncOnConflict as i } from "./index3.js";
|
|
10
10
|
import { useMutation as a } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js
|
|
12
12
|
function o() {
|
|
13
|
-
let { client: o, organizationId: s } =
|
|
13
|
+
let { client: o, organizationId: s } = t();
|
|
14
14
|
return a({
|
|
15
|
-
...
|
|
15
|
+
...e({
|
|
16
16
|
client: o,
|
|
17
|
-
headers:
|
|
17
|
+
headers: n(s)
|
|
18
18
|
}),
|
|
19
19
|
onSuccess: r({
|
|
20
20
|
client: o,
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { verifyDebitCardMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.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
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { resyncOnConflict as r } from "./index3.js";
|
|
10
10
|
import { useMutation as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js
|
|
12
12
|
function a() {
|
|
13
|
-
let { client: a, organizationId: o } =
|
|
13
|
+
let { client: a, organizationId: o } = t();
|
|
14
14
|
return i({
|
|
15
|
-
...
|
|
15
|
+
...e({
|
|
16
16
|
client: a,
|
|
17
|
-
headers:
|
|
17
|
+
headers: n(o)
|
|
18
18
|
}),
|
|
19
19
|
onError: r({
|
|
20
20
|
client: a,
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getCreditCardByIdQueryKey as e, getCreditCardsQueryKey as t, getDebitCardByIdQueryKey as n, getDebitCardsQueryKey as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as i } 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/card-details-widget/data-access/dist/index2.js
|
|
5
|
-
var a = ({ client:
|
|
6
|
-
client: n,
|
|
7
|
-
headers: e(r),
|
|
8
|
-
path: { cardId: i }
|
|
9
|
-
}), o = ({ client: t, organizationId: n, cardId: i }) => r({
|
|
5
|
+
var a = ({ client: t, organizationId: n, cardId: r }) => e({
|
|
10
6
|
client: t,
|
|
11
|
-
headers:
|
|
12
|
-
path: {
|
|
13
|
-
}),
|
|
14
|
-
client:
|
|
15
|
-
headers:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
headers: i(n),
|
|
8
|
+
path: { cardId: r }
|
|
9
|
+
}), o = ({ client: e, organizationId: t, cardId: r }) => n({
|
|
10
|
+
client: e,
|
|
11
|
+
headers: i(t),
|
|
12
|
+
path: { id: r }
|
|
13
|
+
}), s = ({ client: e, organizationId: n }) => t({
|
|
14
|
+
client: e,
|
|
15
|
+
headers: i(n)
|
|
16
|
+
}), c = ({ client: e, organizationId: t }) => r({
|
|
17
|
+
client: e,
|
|
18
|
+
headers: i(t)
|
|
19
19
|
});
|
|
20
20
|
//#endregion
|
|
21
21
|
export { a as creditCardDetailsInvalidationKey, s as creditCardsListInvalidationKey, o as debitCardDetailsInvalidationKey, c as debitCardsListInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js
CHANGED
|
@@ -2,46 +2,46 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { activateCreditCardMutation as e, activateDebitCardMutation as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { resyncCardViews as i, resyncOnConflict as a } from "./index3.js";
|
|
10
10
|
import { useMutation as o } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js
|
|
12
12
|
function s() {
|
|
13
|
-
let { client:
|
|
13
|
+
let { client: t, organizationId: s } = n();
|
|
14
14
|
return o({
|
|
15
|
-
...
|
|
16
|
-
client:
|
|
17
|
-
headers:
|
|
15
|
+
...e({
|
|
16
|
+
client: t,
|
|
17
|
+
headers: r(s)
|
|
18
18
|
}),
|
|
19
19
|
onSuccess: i({
|
|
20
|
-
client:
|
|
20
|
+
client: t,
|
|
21
21
|
organizationId: s,
|
|
22
22
|
program: "credit"
|
|
23
23
|
}),
|
|
24
24
|
onError: a({
|
|
25
|
-
client:
|
|
25
|
+
client: t,
|
|
26
26
|
organizationId: s,
|
|
27
27
|
program: "credit"
|
|
28
28
|
})
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
function c() {
|
|
32
|
-
let { client:
|
|
32
|
+
let { client: e, organizationId: s } = n();
|
|
33
33
|
return o({
|
|
34
|
-
...
|
|
35
|
-
client:
|
|
36
|
-
headers:
|
|
34
|
+
...t({
|
|
35
|
+
client: e,
|
|
36
|
+
headers: r(s)
|
|
37
37
|
}),
|
|
38
38
|
onSuccess: i({
|
|
39
|
-
client:
|
|
39
|
+
client: e,
|
|
40
40
|
organizationId: s,
|
|
41
41
|
program: "debit"
|
|
42
42
|
}),
|
|
43
43
|
onError: a({
|
|
44
|
-
client:
|
|
44
|
+
client: e,
|
|
45
45
|
organizationId: s,
|
|
46
46
|
program: "debit"
|
|
47
47
|
})
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getCreditCardByIdOptions 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
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { withNotFoundOutcome as i } from "./index5.js";
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = e({
|
|
15
15
|
client: c,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(l),
|
|
17
17
|
path: { cardId: o ?? "" }
|
|
18
18
|
}), p = a({
|
|
19
|
-
...
|
|
19
|
+
...t(f, d),
|
|
20
20
|
enabled: !!(o && l && u) && s !== !1
|
|
21
21
|
});
|
|
22
22
|
return i(p);
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getDebitCardCredentialsOptions 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
9
|
import { isApiForbiddenError as i } from "../../../shared/data-access/dist/lib/isApiForbiddenError.js";
|
|
10
10
|
import "../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = !!(o && l && u) && s, p = f ? o ?? "" : "", m = e({
|
|
15
15
|
client: c,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(l),
|
|
17
17
|
path: { id: p }
|
|
18
18
|
}), h = a({
|
|
19
|
-
...
|
|
19
|
+
...t(m, d),
|
|
20
20
|
enabled: f,
|
|
21
21
|
staleTime: 0,
|
|
22
22
|
gcTime: 0,
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getDebitCardByIdOptions 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
9
|
import "../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { withNotFoundOutcome as i } from "./index5.js";
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } =
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d } = n(), f = e({
|
|
15
15
|
client: c,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(l),
|
|
17
17
|
path: { id: o ?? "" }
|
|
18
18
|
}), p = a({
|
|
19
|
-
...
|
|
19
|
+
...t(f, d),
|
|
20
20
|
enabled: !!(o && l && u) && s !== !1
|
|
21
21
|
});
|
|
22
22
|
return i(p);
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { setDebitCardLockStatusMutation as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.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
8
|
import "../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { resyncCardViews as r, resyncOnConflict as i } from "./index3.js";
|
|
10
10
|
import { useMutation as a } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js
|
|
12
12
|
function o() {
|
|
13
|
-
let { client: o, organizationId: s } =
|
|
13
|
+
let { client: o, organizationId: s } = t();
|
|
14
14
|
return a({
|
|
15
|
-
...
|
|
15
|
+
...e({
|
|
16
16
|
client: o,
|
|
17
|
-
headers:
|
|
17
|
+
headers: n(s)
|
|
18
18
|
}),
|
|
19
19
|
onSuccess: r({
|
|
20
20
|
client: o,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getDebitCardsQueryKey as e, getVelocityControlsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as n } 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/cards-widget/create-card/data-access/dist/index3.js
|
|
5
|
-
function r({ client:
|
|
6
|
-
return
|
|
7
|
-
client:
|
|
8
|
-
headers:
|
|
5
|
+
function r({ client: t, organizationId: r }) {
|
|
6
|
+
return e({
|
|
7
|
+
client: t,
|
|
8
|
+
headers: n(r)
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
function i({ client:
|
|
12
|
-
return
|
|
13
|
-
client:
|
|
14
|
-
headers:
|
|
11
|
+
function i({ client: e, organizationId: r }) {
|
|
12
|
+
return t({
|
|
13
|
+
client: e,
|
|
14
|
+
headers: n(r)
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
//#endregion
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { createDebitCardMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.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
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { debitCardsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n(), c = r(s), l = e({
|
|
15
15
|
client: o,
|
|
16
16
|
headers: c
|
|
17
17
|
});
|
|
18
18
|
return a({
|
|
19
19
|
...l,
|
|
20
|
-
onSuccess: async (...
|
|
21
|
-
await
|
|
20
|
+
onSuccess: async (...e) => {
|
|
21
|
+
await t(i({
|
|
22
22
|
client: o,
|
|
23
23
|
organizationId: s
|
|
24
|
-
})), await l.onSuccess?.(...
|
|
24
|
+
})), await l.onSuccess?.(...e);
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { createVelocityControlMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.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
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { velocityControlsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n(), c = r(s), l = e({
|
|
15
15
|
client: o,
|
|
16
16
|
headers: c
|
|
17
17
|
});
|
|
18
18
|
return a({
|
|
19
19
|
...l,
|
|
20
|
-
onSuccess: async (...
|
|
21
|
-
await
|
|
20
|
+
onSuccess: async (...e) => {
|
|
21
|
+
await t(i({
|
|
22
22
|
client: o,
|
|
23
23
|
organizationId: s
|
|
24
|
-
})), await l.onSuccess?.(...
|
|
24
|
+
})), await l.onSuccess?.(...e);
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { manageDebitCardAccessMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.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
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { debitCardsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n(), c = r(s), l = e({
|
|
15
15
|
client: o,
|
|
16
16
|
headers: c
|
|
17
17
|
});
|
|
18
18
|
return a({
|
|
19
19
|
...l,
|
|
20
|
-
onSuccess: async (...
|
|
21
|
-
await
|
|
20
|
+
onSuccess: async (...e) => {
|
|
21
|
+
await t(i({
|
|
22
22
|
client: o,
|
|
23
23
|
organizationId: s
|
|
24
|
-
})), await l.onSuccess?.(...
|
|
24
|
+
})), await l.onSuccess?.(...e);
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
}
|