@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/remote-check-capture/data-access/dist/index3.js
CHANGED
|
@@ -2,50 +2,50 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { createCheckDepositMutation 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 { bankAccountTransactionsInvalidationKey as i, bankAccountsInvalidationKey as a, receivableHistoryInvalidationKey as o, receivableInvalidationKey as s, receivablesInvalidationKey as c } from "./index2.js";
|
|
11
11
|
import { useMutation as l } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js
|
|
13
13
|
function u() {
|
|
14
|
-
let { client: u, organizationId: d } =
|
|
14
|
+
let { client: u, organizationId: d } = n(), f = r(d), p = e({
|
|
15
15
|
client: u,
|
|
16
16
|
headers: f
|
|
17
17
|
});
|
|
18
18
|
return l({
|
|
19
19
|
...p,
|
|
20
|
-
onSuccess: async (...
|
|
21
|
-
let [, n] =
|
|
20
|
+
onSuccess: async (...e) => {
|
|
21
|
+
let [, n] = e;
|
|
22
22
|
await Promise.all([
|
|
23
|
-
|
|
23
|
+
t(a({
|
|
24
24
|
client: u,
|
|
25
25
|
organizationId: d
|
|
26
26
|
})),
|
|
27
|
-
|
|
27
|
+
t(i({
|
|
28
28
|
client: u,
|
|
29
29
|
organizationId: d,
|
|
30
30
|
bankAccountId: n.path.id
|
|
31
31
|
})),
|
|
32
32
|
...n.body.invoiceId ? [
|
|
33
|
-
|
|
33
|
+
t(c({
|
|
34
34
|
client: u,
|
|
35
35
|
organizationId: d
|
|
36
36
|
})),
|
|
37
|
-
|
|
37
|
+
t(s({
|
|
38
38
|
client: u,
|
|
39
39
|
organizationId: d,
|
|
40
40
|
receivableId: n.body.invoiceId
|
|
41
41
|
})),
|
|
42
|
-
|
|
42
|
+
t(o({
|
|
43
43
|
client: u,
|
|
44
44
|
organizationId: d,
|
|
45
45
|
receivableId: n.body.invoiceId
|
|
46
46
|
}))
|
|
47
47
|
] : []
|
|
48
|
-
]), await p.onSuccess?.(...
|
|
48
|
+
]), await p.onSuccess?.(...e);
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
}
|
package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getCounterparts as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getCounterpartsOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.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 { getAllPagesNextPaginationTokenParam as i, useAutoFetchNextPage as a } from "../../../shared/data-access/dist/lib/allPages.js";
|
|
10
10
|
import "../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { hashKey as o, useInfiniteQuery as s } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js
|
|
13
13
|
var c = 100;
|
|
14
14
|
function l({ enabled: l } = {}) {
|
|
15
|
-
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } =
|
|
15
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f) && (l === !0 || l === void 0), g = [...t({
|
|
16
16
|
client: u,
|
|
17
17
|
headers: m,
|
|
18
18
|
query: {
|
|
@@ -28,16 +28,16 @@ function l({ enabled: l } = {}) {
|
|
|
28
28
|
return o(n) === o(g) ? e : void 0;
|
|
29
29
|
},
|
|
30
30
|
initialPageParam: void 0,
|
|
31
|
-
queryFn: async ({ signal:
|
|
32
|
-
let { data: r } = await
|
|
31
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
32
|
+
let { data: r } = await e({
|
|
33
33
|
client: u,
|
|
34
34
|
headers: m,
|
|
35
35
|
query: {
|
|
36
36
|
limit: c,
|
|
37
37
|
is_customer: !0,
|
|
38
|
-
...
|
|
38
|
+
...n ? { pagination_token: n } : {}
|
|
39
39
|
},
|
|
40
|
-
signal:
|
|
40
|
+
signal: t,
|
|
41
41
|
throwOnError: !0
|
|
42
42
|
});
|
|
43
43
|
return r;
|
package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.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 { getDepositableBankAccounts as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getDepositableBankAccountsOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.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 { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../../../shared/data-access/dist/lib/allPages.js";
|
|
10
10
|
import "../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useMemo as o } from "react";
|
|
@@ -13,7 +13,7 @@ import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js
|
|
14
14
|
var c = 100;
|
|
15
15
|
function l({ enabled: l } = {}) {
|
|
16
|
-
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } =
|
|
16
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f) && (l === !0 || l === void 0), g = t({
|
|
17
17
|
client: u,
|
|
18
18
|
headers: m,
|
|
19
19
|
query: { limit: c }
|
|
@@ -25,15 +25,15 @@ function l({ enabled: l } = {}) {
|
|
|
25
25
|
],
|
|
26
26
|
enabled: h,
|
|
27
27
|
initialPageParam: void 0,
|
|
28
|
-
queryFn: async ({ signal:
|
|
29
|
-
let { data: r } = await
|
|
28
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
29
|
+
let { data: r } = await e({
|
|
30
30
|
client: u,
|
|
31
31
|
headers: m,
|
|
32
32
|
query: {
|
|
33
33
|
limit: c,
|
|
34
|
-
...
|
|
34
|
+
...n ? { pagination_token: n } : {}
|
|
35
35
|
},
|
|
36
|
-
signal:
|
|
36
|
+
signal: t,
|
|
37
37
|
throwOnError: !0
|
|
38
38
|
});
|
|
39
39
|
return r;
|
package/dist/libs/tesouro-embedded-components-react/remote-check-capture/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 { getReceivables as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getReceivablesOptions as t } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.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 { getAllPagesNextPaginationTokenParam as i, useAutoFetchNextPage as a } from "../../../shared/data-access/dist/lib/allPages.js";
|
|
10
10
|
import "../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { hashKey as o, useInfiniteQuery as s } from "@tanstack/react-query";
|
|
@@ -16,13 +16,13 @@ var c = 100, l = [
|
|
|
16
16
|
"overdue"
|
|
17
17
|
];
|
|
18
18
|
function u({ counterpartId: u, enabled: d } = {}) {
|
|
19
|
-
let { client: f, organizationId: p, widgetToken: m, authEpoch: h } =
|
|
19
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = n(), g = r(p), _ = !!(p && m && u) && (d === !0 || d === void 0), v = {
|
|
20
20
|
type: "invoice",
|
|
21
21
|
bank_account_type: "INTERNAL",
|
|
22
22
|
limit: c,
|
|
23
23
|
counterpart_id__in: u ? [u] : void 0,
|
|
24
24
|
status__in: [...l]
|
|
25
|
-
}, y = [...
|
|
25
|
+
}, y = [...t({
|
|
26
26
|
client: f,
|
|
27
27
|
headers: g,
|
|
28
28
|
query: v
|
|
@@ -35,15 +35,15 @@ function u({ counterpartId: u, enabled: d } = {}) {
|
|
|
35
35
|
return o(n) === o(y) ? e : void 0;
|
|
36
36
|
},
|
|
37
37
|
initialPageParam: void 0,
|
|
38
|
-
queryFn: async ({ signal:
|
|
39
|
-
let { data: r } = await
|
|
38
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
39
|
+
let { data: r } = await e({
|
|
40
40
|
client: f,
|
|
41
41
|
headers: g,
|
|
42
42
|
query: {
|
|
43
43
|
...v,
|
|
44
|
-
...
|
|
44
|
+
...n ? { pagination_token: n } : {}
|
|
45
45
|
},
|
|
46
|
-
signal:
|
|
46
|
+
signal: t,
|
|
47
47
|
throwOnError: !0
|
|
48
48
|
});
|
|
49
49
|
return r;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getLedgerAccountsQueryKey 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/settings-widget/chart-of-accounts/data-access/dist/index2.js
|
|
5
|
-
var n = ({ client: n, organizationId: r }) =>
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => e({
|
|
6
6
|
client: n,
|
|
7
|
-
headers:
|
|
7
|
+
headers: t(r)
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
export { n as ledgerAccountsInvalidationKey };
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { deleteLedgerAccountsIdMutation as e, patchLedgerAccountsIdMutation as t, postLedgerAccountsMutation as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as r } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as i } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as a } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { ledgerAccountsInvalidationKey as o } from "./index2.js";
|
|
11
11
|
import { useMutation as s } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js
|
|
13
13
|
function c() {
|
|
14
|
-
let { client:
|
|
15
|
-
...
|
|
16
|
-
client:
|
|
14
|
+
let { client: e, organizationId: t } = i(), c = a(t), l = s({
|
|
15
|
+
...n({
|
|
16
|
+
client: e,
|
|
17
17
|
headers: c
|
|
18
18
|
}),
|
|
19
19
|
onSuccess: async () => {
|
|
20
|
-
await
|
|
21
|
-
client:
|
|
22
|
-
organizationId:
|
|
20
|
+
await r(o({
|
|
21
|
+
client: e,
|
|
22
|
+
organizationId: t
|
|
23
23
|
}));
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -32,15 +32,15 @@ function c() {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function l() {
|
|
35
|
-
let { client:
|
|
36
|
-
...
|
|
37
|
-
client:
|
|
35
|
+
let { client: e, organizationId: n } = i(), c = a(n), l = s({
|
|
36
|
+
...t({
|
|
37
|
+
client: e,
|
|
38
38
|
headers: c
|
|
39
39
|
}),
|
|
40
40
|
onSuccess: async () => {
|
|
41
|
-
await
|
|
42
|
-
client:
|
|
43
|
-
organizationId:
|
|
41
|
+
await r(o({
|
|
42
|
+
client: e,
|
|
43
|
+
organizationId: n
|
|
44
44
|
}));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
@@ -54,15 +54,15 @@ function l() {
|
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function u() {
|
|
57
|
-
let { client:
|
|
58
|
-
...
|
|
59
|
-
client:
|
|
57
|
+
let { client: t, organizationId: n } = i(), c = a(n), l = s({
|
|
58
|
+
...e({
|
|
59
|
+
client: t,
|
|
60
60
|
headers: c
|
|
61
61
|
}),
|
|
62
62
|
onSuccess: async () => {
|
|
63
|
-
await
|
|
64
|
-
client:
|
|
65
|
-
organizationId:
|
|
63
|
+
await r(o({
|
|
64
|
+
client: t,
|
|
65
|
+
organizationId: n
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -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 { getEntityUsersMyEntityOptions 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/settings-widget/invoice-settings/data-access/dist/index2.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 { getEntitiesIdSettingsOptions 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/settings-widget/invoice-settings/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: { entity_id: a ?? "" }
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(d, l),
|
|
20
20
|
enabled: u
|
|
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 { getDocumentsIdNextNumbersOptions 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/settings-widget/invoice-settings/data-access/dist/index4.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: { entity_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 { getDocumentsIdNextNumbersQueryKey as e, getEntitiesIdSettingsQueryKey as t, getEntityUsersMyEntityQueryKey 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/settings-widget/invoice-settings/data-access/dist/index5.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, entityId: i }) => t({
|
|
9
|
+
client: e,
|
|
10
|
+
headers: r(n),
|
|
11
11
|
path: { entity_id: i }
|
|
12
|
-
}), o = ({ client:
|
|
13
|
-
client:
|
|
14
|
-
headers:
|
|
12
|
+
}), o = ({ client: t, organizationId: n, entityId: i }) => e({
|
|
13
|
+
client: t,
|
|
14
|
+
headers: r(n),
|
|
15
15
|
path: { entity_id: i }
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { patchEntitiesIdSettings as e } from "../../../../shared/data-access/dist/lib/rest/sdk.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 { entitySettingsInvalidationKey as i, nextDocumentNumbersInvalidationKey as a } from "./index5.js";
|
|
11
11
|
import { useMutation as o } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/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 ({ entityId:
|
|
17
|
-
let { data: i } = await
|
|
16
|
+
mutationFn: async ({ entityId: t, body: n }) => {
|
|
17
|
+
let { data: i } = await e({
|
|
18
18
|
client: s,
|
|
19
|
-
headers:
|
|
20
|
-
path: { entity_id:
|
|
21
|
-
body:
|
|
19
|
+
headers: r(c),
|
|
20
|
+
path: { entity_id: 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, { entityId: n }) => {
|
|
27
|
+
await Promise.all([t(i({
|
|
28
28
|
client: s,
|
|
29
29
|
organizationId: c,
|
|
30
30
|
entityId: n
|
|
31
|
-
})),
|
|
31
|
+
})), t(a({
|
|
32
32
|
client: s,
|
|
33
33
|
organizationId: c,
|
|
34
34
|
entityId: n
|
|
@@ -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 { putEntitiesIdLogo as e } from "../../../../shared/data-access/dist/lib/rest/sdk.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 { myEntityInvalidationKey as i } from "./index5.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/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 ({ entityId:
|
|
17
|
-
let { data: i } = await
|
|
16
|
+
mutationFn: async ({ entityId: t, file: n }) => {
|
|
17
|
+
let { data: i } = await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
path: { entity_id:
|
|
21
|
-
body: { file:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
path: { entity_id: t },
|
|
21
|
+
body: { file: 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,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 { deleteEntitiesIdLogo as e } from "../../../../shared/data-access/dist/lib/rest/sdk.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 { myEntityInvalidationKey as i } from "./index5.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.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 ({ entityId:
|
|
17
|
-
let { data:
|
|
16
|
+
mutationFn: async ({ entityId: t }) => {
|
|
17
|
+
let { data: n } = await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
path: { entity_id:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
path: { entity_id: 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,22 +2,22 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getEntityUsersMyEntityOptions 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 { useCurrentUserQuery as i } from "../../../../shared/data-access/dist/lib/useCurrentUserQuery.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/settings-widget/profile/data-access/dist/index2.js
|
|
13
13
|
function o({ enabled: o } = {}) {
|
|
14
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } =
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = !!(c && l) && (o === !0 || o === void 0);
|
|
15
15
|
return {
|
|
16
16
|
userQuery: i({ enabled: d }),
|
|
17
17
|
entityQuery: a({
|
|
18
|
-
...
|
|
18
|
+
...t(e({
|
|
19
19
|
client: s,
|
|
20
|
-
headers:
|
|
20
|
+
headers: r(c)
|
|
21
21
|
}), u),
|
|
22
22
|
enabled: d
|
|
23
23
|
})
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getEntityUsersOptions 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/settings-widget/tags/data-access/dist/index10.js
|
|
12
12
|
var a = 100;
|
|
13
13
|
function o(o = a) {
|
|
14
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } =
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = !!(c && l), f = e({
|
|
15
15
|
query: { limit: o },
|
|
16
16
|
client: s,
|
|
17
|
-
headers:
|
|
17
|
+
headers: r(c)
|
|
18
18
|
});
|
|
19
19
|
return i({
|
|
20
|
-
...
|
|
20
|
+
...t(f, u),
|
|
21
21
|
enabled: d
|
|
22
22
|
});
|
|
23
23
|
}
|