@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
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getTransactionsValidationsOptions as e, putTransactionsValidationsMutation as t } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as n } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { invalidateAllClients as r } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
8
|
+
import { useEmbedApi as i } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { transactionsValidationsInvalidationKey as a } from "./index2.js";
|
|
11
11
|
import { useMutation as o, useQuery as s } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js
|
|
13
13
|
function c() {
|
|
14
|
-
let { client:
|
|
15
|
-
client:
|
|
14
|
+
let { client: t, organizationId: r, widgetToken: a, authEpoch: o } = i(), c = !!(r && a), l = e({
|
|
15
|
+
client: t,
|
|
16
16
|
headers: { "x-organization-id": r ?? "" }
|
|
17
17
|
});
|
|
18
18
|
return s({
|
|
19
|
-
...
|
|
19
|
+
...n(l, o),
|
|
20
20
|
enabled: c
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function l() {
|
|
24
|
-
let { client:
|
|
24
|
+
let { client: e, organizationId: n } = i();
|
|
25
25
|
return o({
|
|
26
|
-
...
|
|
27
|
-
client:
|
|
28
|
-
headers: { "x-organization-id":
|
|
26
|
+
...t({
|
|
27
|
+
client: e,
|
|
28
|
+
headers: { "x-organization-id": n ?? "" }
|
|
29
29
|
}),
|
|
30
30
|
onSuccess: async () => {
|
|
31
|
-
await
|
|
32
|
-
client:
|
|
33
|
-
organizationId:
|
|
31
|
+
await r(a({
|
|
32
|
+
client: e,
|
|
33
|
+
organizationId: n
|
|
34
34
|
}));
|
|
35
35
|
}
|
|
36
36
|
});
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.5.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.5.117", n = "5390a93d391c418ae9627a07ab60f598ac5faa78", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { postMeasureUnits as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { measureUnitsInvalidationKey as i } from "./index4.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n();
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({ body:
|
|
17
|
-
let { data:
|
|
16
|
+
mutationFn: async ({ body: t }) => {
|
|
17
|
+
let { data: n } = await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
body:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
body: t,
|
|
21
21
|
throwOnError: !0
|
|
22
22
|
});
|
|
23
|
-
return
|
|
23
|
+
return n;
|
|
24
24
|
},
|
|
25
25
|
onSuccess: async () => {
|
|
26
|
-
await
|
|
26
|
+
await t(i({
|
|
27
27
|
client: o,
|
|
28
28
|
organizationId: s
|
|
29
29
|
}));
|
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { patchMeasureUnitsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { measureUnitsInvalidationKey as i } from "./index4.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n();
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({ path:
|
|
17
|
-
let { data: i } = await
|
|
16
|
+
mutationFn: async ({ path: t, body: n }) => {
|
|
17
|
+
let { data: i } = await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
path:
|
|
21
|
-
body:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
path: t,
|
|
21
|
+
body: n,
|
|
22
22
|
throwOnError: !0
|
|
23
23
|
});
|
|
24
24
|
return i;
|
|
25
25
|
},
|
|
26
26
|
onSuccess: async () => {
|
|
27
|
-
await
|
|
27
|
+
await t(i({
|
|
28
28
|
client: o,
|
|
29
29
|
organizationId: s
|
|
30
30
|
}));
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { deleteMeasureUnitsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { measureUnitsInvalidationKey as i, productsInvalidationKey as a } from "./index4.js";
|
|
11
11
|
import { useMutation as o } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js
|
|
13
13
|
function s() {
|
|
14
|
-
let { client: s, organizationId: c } =
|
|
14
|
+
let { client: s, organizationId: c } = n();
|
|
15
15
|
return o({
|
|
16
|
-
mutationFn: async ({ path:
|
|
17
|
-
await
|
|
16
|
+
mutationFn: async ({ path: t }) => {
|
|
17
|
+
await e({
|
|
18
18
|
client: s,
|
|
19
|
-
headers:
|
|
20
|
-
path:
|
|
19
|
+
headers: r(c),
|
|
20
|
+
path: t,
|
|
21
21
|
throwOnError: !0
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
24
|
onSuccess: async () => {
|
|
25
|
-
await Promise.all([
|
|
25
|
+
await Promise.all([t(i({
|
|
26
26
|
client: s,
|
|
27
27
|
organizationId: c
|
|
28
|
-
})),
|
|
28
|
+
})), t(a({
|
|
29
29
|
client: s,
|
|
30
30
|
organizationId: c
|
|
31
31
|
}))]);
|
|
@@ -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 { getProductsOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js
|
|
12
12
|
function a({ enabled: a, ...o } = {}) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } =
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = !!(c && l) && (a === !0 || a === void 0), f = e({
|
|
14
14
|
query: o,
|
|
15
15
|
client: s,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(c)
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(f, u),
|
|
20
20
|
enabled: d
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -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 { getProductsIdOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js
|
|
12
12
|
function a(a) {
|
|
13
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
13
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c && a), d = e({
|
|
14
14
|
client: o,
|
|
15
|
-
headers:
|
|
15
|
+
headers: r(s),
|
|
16
16
|
path: { product_id: a ?? "" }
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(d, l),
|
|
20
20
|
enabled: u
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getMeasureUnitsQueryKey as e, getProductsIdQueryKey as t, getProductsQueryKey as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js
|
|
5
|
-
var i = ({ client:
|
|
6
|
-
client:
|
|
7
|
-
headers:
|
|
8
|
-
}), a = ({ client:
|
|
9
|
-
client:
|
|
10
|
-
headers:
|
|
5
|
+
var i = ({ client: e, organizationId: t }) => n({
|
|
6
|
+
client: e,
|
|
7
|
+
headers: r(t)
|
|
8
|
+
}), a = ({ client: e, organizationId: n, productId: i }) => t({
|
|
9
|
+
client: e,
|
|
10
|
+
headers: r(n),
|
|
11
11
|
path: { product_id: i }
|
|
12
|
-
}), o = ({ client:
|
|
13
|
-
client:
|
|
14
|
-
headers:
|
|
12
|
+
}), o = ({ client: t, organizationId: n }) => e({
|
|
13
|
+
client: t,
|
|
14
|
+
headers: r(n)
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { o as measureUnitsInvalidationKey, a as productInvalidationKey, i as productsInvalidationKey };
|
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { postProducts as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { productsInvalidationKey as i } from "./index4.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n();
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({ body:
|
|
17
|
-
let { data:
|
|
16
|
+
mutationFn: async ({ body: t }) => {
|
|
17
|
+
let { data: n } = await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
body:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
body: t,
|
|
21
21
|
throwOnError: !0
|
|
22
22
|
});
|
|
23
|
-
return
|
|
23
|
+
return n;
|
|
24
24
|
},
|
|
25
25
|
onSuccess: async () => {
|
|
26
|
-
await
|
|
26
|
+
await t(i({
|
|
27
27
|
client: o,
|
|
28
28
|
organizationId: s
|
|
29
29
|
}));
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { patchProductsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { productInvalidationKey as i, productsInvalidationKey as a } from "./index4.js";
|
|
11
11
|
import { useMutation as o } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js
|
|
13
13
|
function s() {
|
|
14
|
-
let { client: s, organizationId: c } =
|
|
14
|
+
let { client: s, organizationId: c } = n();
|
|
15
15
|
return o({
|
|
16
|
-
mutationFn: async ({ path:
|
|
17
|
-
let { data: i } = await
|
|
16
|
+
mutationFn: async ({ path: t, body: n }) => {
|
|
17
|
+
let { data: i } = await e({
|
|
18
18
|
client: s,
|
|
19
|
-
headers:
|
|
20
|
-
path:
|
|
21
|
-
body:
|
|
19
|
+
headers: r(c),
|
|
20
|
+
path: t,
|
|
21
|
+
body: n,
|
|
22
22
|
throwOnError: !0
|
|
23
23
|
});
|
|
24
24
|
return i;
|
|
25
25
|
},
|
|
26
|
-
onSuccess: async (
|
|
27
|
-
await Promise.all([
|
|
26
|
+
onSuccess: async (e, n) => {
|
|
27
|
+
await Promise.all([t(a({
|
|
28
28
|
client: s,
|
|
29
29
|
organizationId: c
|
|
30
|
-
})),
|
|
30
|
+
})), t(i({
|
|
31
31
|
client: s,
|
|
32
32
|
organizationId: c,
|
|
33
33
|
productId: n.path.product_id
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { deleteProductsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { productsInvalidationKey as i } from "./index4.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n();
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({ path:
|
|
17
|
-
await
|
|
16
|
+
mutationFn: async ({ path: t }) => {
|
|
17
|
+
await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
path:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
path: t,
|
|
21
21
|
throwOnError: !0
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
24
|
onSuccess: async () => {
|
|
25
|
-
await
|
|
25
|
+
await t(i({
|
|
26
26
|
client: o,
|
|
27
27
|
organizationId: s
|
|
28
28
|
}));
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getMeasureUnitsOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js
|
|
12
12
|
function a() {
|
|
13
|
-
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } =
|
|
13
|
+
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = n(), l = !!(o && s), u = e({
|
|
14
14
|
client: a,
|
|
15
|
-
headers:
|
|
15
|
+
headers: r(o)
|
|
16
16
|
});
|
|
17
17
|
return i({
|
|
18
|
-
...
|
|
18
|
+
...t(u, c),
|
|
19
19
|
enabled: l
|
|
20
20
|
});
|
|
21
21
|
}
|
|
@@ -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 { getProductsOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js
|
|
12
12
|
function a(a) {
|
|
13
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
13
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c && a), d = e({
|
|
14
14
|
query: { measure_unit_id: a ?? "" },
|
|
15
15
|
client: o,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(s)
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(d, l),
|
|
20
20
|
enabled: u
|
|
21
21
|
});
|
|
22
22
|
}
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getBankAccountQueryKey as e, getBankAccountTransfersQueryKey as t, getBankAccountsQueryKey as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as r } 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/transfers-widget/data-access/dist/index3.js
|
|
5
|
-
var i = ({ client:
|
|
6
|
-
client:
|
|
7
|
-
headers:
|
|
8
|
-
}), a = ({ client:
|
|
9
|
-
client:
|
|
10
|
-
headers:
|
|
5
|
+
var i = ({ client: e, organizationId: t }) => n({
|
|
6
|
+
client: e,
|
|
7
|
+
headers: r(t)
|
|
8
|
+
}), a = ({ client: e, organizationId: n, bankAccountId: i }) => t({
|
|
9
|
+
client: e,
|
|
10
|
+
headers: r(n),
|
|
11
11
|
path: { id: i }
|
|
12
|
-
}), o = ({ client:
|
|
13
|
-
client:
|
|
14
|
-
headers:
|
|
12
|
+
}), o = ({ client: t, organizationId: n, bankAccountId: i }) => e({
|
|
13
|
+
client: t,
|
|
14
|
+
headers: r(n),
|
|
15
15
|
path: { id: i }
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getBankAccountTransfersOptions 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 { isPaginatedAccountsQueryInFlight as i } from "./index2.js";
|
|
11
11
|
import { useTransferBankAccountsQuery as a } from "./index4.js";
|
|
@@ -14,11 +14,11 @@ import { useQueries as s } from "@tanstack/react-query";
|
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js
|
|
15
15
|
var c = 25;
|
|
16
16
|
function l({ enabled: l, transfersPerAccount: u = c } = {}) {
|
|
17
|
-
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } =
|
|
18
|
-
...
|
|
17
|
+
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = n(), h = r(f), g = !!(f && p) && (l === !0 || l === void 0), _ = a({ enabled: g }), v = o(() => [..._.data?.data?.map((e) => e.id).filter(Boolean) ?? []].sort(), [_.data?.data]), y = s({ queries: v.map((n) => ({
|
|
18
|
+
...t(e({
|
|
19
19
|
client: d,
|
|
20
20
|
headers: h,
|
|
21
|
-
path: { id:
|
|
21
|
+
path: { id: n },
|
|
22
22
|
query: { limit: u }
|
|
23
23
|
}), m),
|
|
24
24
|
enabled: g
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js
CHANGED
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { createBookTransferMutation 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 { bankAccountInvalidationKeyForAccount as i, bankAccountTransfersInvalidationKeyForAccount as a, bankAccountsInvalidationKey as o } from "./index3.js";
|
|
11
11
|
import { useMutation as s } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js
|
|
13
13
|
function c() {
|
|
14
|
-
let { client: c, organizationId: l } =
|
|
14
|
+
let { client: c, organizationId: l } = n(), u = r(l);
|
|
15
15
|
return s({
|
|
16
|
-
...
|
|
16
|
+
...e({
|
|
17
17
|
client: c,
|
|
18
18
|
headers: u
|
|
19
19
|
}),
|
|
20
|
-
onSuccess: async (
|
|
20
|
+
onSuccess: async (e, n) => {
|
|
21
21
|
let r = n.body.fromBankAccountId, s = n.body.toBankAccountId, u = [.../* @__PURE__ */ new Set([r, s])];
|
|
22
|
-
await Promise.all([
|
|
22
|
+
await Promise.all([t(o({
|
|
23
23
|
client: c,
|
|
24
24
|
organizationId: l
|
|
25
|
-
})), ...u.flatMap((
|
|
25
|
+
})), ...u.flatMap((e) => [t(a({
|
|
26
26
|
client: c,
|
|
27
27
|
organizationId: l,
|
|
28
|
-
bankAccountId:
|
|
29
|
-
})),
|
|
28
|
+
bankAccountId: e
|
|
29
|
+
})), t(i({
|
|
30
30
|
client: c,
|
|
31
31
|
organizationId: l,
|
|
32
|
-
bankAccountId:
|
|
32
|
+
bankAccountId: e
|
|
33
33
|
}))])]);
|
|
34
34
|
}
|
|
35
35
|
});
|
package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js
CHANGED
|
@@ -2,39 +2,39 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { createAchMoneyMovementMutation 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 { bankAccountInvalidationKeyForAccount as i, bankAccountTransfersInvalidationKeyForAccount as a, bankAccountsInvalidationKey as o } from "./index3.js";
|
|
11
11
|
import { useMutation as s } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js
|
|
13
13
|
function c() {
|
|
14
|
-
let { client: c, organizationId: l } =
|
|
14
|
+
let { client: c, organizationId: l } = n(), u = r(l);
|
|
15
15
|
return s({
|
|
16
|
-
...
|
|
16
|
+
...e({
|
|
17
17
|
client: c,
|
|
18
18
|
headers: u
|
|
19
19
|
}),
|
|
20
|
-
onSuccess: async (
|
|
20
|
+
onSuccess: async (e, n) => {
|
|
21
21
|
let r = n.body.fromBankAccountId, s = n.body.toBankAccountId, u = n.body.type === "EXTERNAL_TO_INTERNAL" ? s : r;
|
|
22
22
|
await Promise.all([
|
|
23
|
-
|
|
23
|
+
t(o({
|
|
24
24
|
client: c,
|
|
25
25
|
organizationId: l
|
|
26
26
|
})),
|
|
27
|
-
|
|
27
|
+
t(a({
|
|
28
28
|
client: c,
|
|
29
29
|
organizationId: l,
|
|
30
30
|
bankAccountId: r
|
|
31
31
|
})),
|
|
32
|
-
|
|
32
|
+
t(a({
|
|
33
33
|
client: c,
|
|
34
34
|
organizationId: l,
|
|
35
35
|
bankAccountId: s
|
|
36
36
|
})),
|
|
37
|
-
|
|
37
|
+
t(i({
|
|
38
38
|
client: c,
|
|
39
39
|
organizationId: l,
|
|
40
40
|
bankAccountId: u
|