@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,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 { getBankAccounts as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { getBankAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { useEmbedApi as n } from "../EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../organizationHeaders.js";
|
|
9
9
|
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../allPages.js";
|
|
10
10
|
import { useMemo as o } from "react";
|
|
11
11
|
import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.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: { limit: c }
|
|
@@ -24,15 +24,15 @@ function l({ enabled: l } = {}) {
|
|
|
24
24
|
],
|
|
25
25
|
enabled: h,
|
|
26
26
|
initialPageParam: void 0,
|
|
27
|
-
queryFn: async ({ signal:
|
|
28
|
-
let { data: r } = await
|
|
27
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
28
|
+
let { data: r } = await e({
|
|
29
29
|
client: u,
|
|
30
30
|
headers: m,
|
|
31
31
|
query: {
|
|
32
32
|
limit: c,
|
|
33
|
-
...
|
|
33
|
+
...n ? { pagination_token: n } : {}
|
|
34
34
|
},
|
|
35
|
-
signal:
|
|
35
|
+
signal: t,
|
|
36
36
|
throwOnError: !0
|
|
37
37
|
});
|
|
38
38
|
return r;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { getDisclosures as e, postApiWidgetGatewayDisclosureAcceptance as t } from "../rest/sdk.gen.js";
|
|
6
|
+
import { useEmbedApi as n } from "../EmbedApiContext.js";
|
|
7
7
|
import { useMutation as r } from "@tanstack/react-query";
|
|
8
8
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js
|
|
9
9
|
var i = class extends Error {
|
|
@@ -12,21 +12,21 @@ var i = class extends Error {
|
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
function a() {
|
|
15
|
-
let { client: a, widgetToken: o } =
|
|
16
|
-
return r({ mutationFn: async ({ invitationToken:
|
|
15
|
+
let { client: a, widgetToken: o } = n();
|
|
16
|
+
return r({ mutationFn: async ({ invitationToken: n, userId: r, displayedVersion: s }) => {
|
|
17
17
|
if (!o) throw Error("Widget token is required to accept disclosures");
|
|
18
|
-
let { data: c } = await
|
|
18
|
+
let { data: c } = await e({
|
|
19
19
|
client: a,
|
|
20
20
|
headers: { "X-Widget-Token": o },
|
|
21
|
-
...
|
|
22
|
-
invitationToken:
|
|
21
|
+
...n && r ? { query: {
|
|
22
|
+
invitationToken: n,
|
|
23
23
|
userId: r
|
|
24
24
|
} } : {},
|
|
25
25
|
throwOnError: !0
|
|
26
26
|
});
|
|
27
27
|
if (!c) throw Error("Unexpected disclosures response from widget gateway");
|
|
28
28
|
if (c.version !== s) throw new i();
|
|
29
|
-
let { data: l } = await
|
|
29
|
+
let { data: l } = await t({
|
|
30
30
|
client: a,
|
|
31
31
|
headers: { "X-Widget-Token": o },
|
|
32
32
|
body: { version: s },
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getDisclosures as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../EmbedApiContext.js";
|
|
8
8
|
import { useQuery as r } from "@tanstack/react-query";
|
|
9
9
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js
|
|
10
10
|
function i(e) {
|
|
@@ -20,15 +20,15 @@ function s(e, t) {
|
|
|
20
20
|
if (e !== void 0 && t !== void 0 && a(t.queryKey, o)) return e;
|
|
21
21
|
}
|
|
22
22
|
function c({ invitationToken: a, userId: c, enabled: l } = {}) {
|
|
23
|
-
let { client: u, widgetToken: d, authEpoch: f } =
|
|
23
|
+
let { client: u, widgetToken: d, authEpoch: f } = n(), p = a && c ? {
|
|
24
24
|
invitationToken: a,
|
|
25
25
|
userId: c
|
|
26
|
-
} : void 0, m = async ({ signal:
|
|
27
|
-
let { data: n } = await
|
|
26
|
+
} : void 0, m = async ({ signal: t }) => {
|
|
27
|
+
let { data: n } = await e({
|
|
28
28
|
client: u,
|
|
29
29
|
headers: { "X-Widget-Token": d ?? "" },
|
|
30
30
|
...p ? { query: p } : {},
|
|
31
|
-
signal:
|
|
31
|
+
signal: t,
|
|
32
32
|
throwOnError: !0
|
|
33
33
|
});
|
|
34
34
|
if (!n) throw Error("Unexpected disclosures response from widget gateway");
|
|
@@ -39,7 +39,7 @@ function c({ invitationToken: a, userId: c, enabled: l } = {}) {
|
|
|
39
39
|
...p ? { invitationTokenFingerprint: i(p.invitationToken) } : {}
|
|
40
40
|
}];
|
|
41
41
|
o = h;
|
|
42
|
-
let { queryKey: g } =
|
|
42
|
+
let { queryKey: g } = t({
|
|
43
43
|
queryKey: h,
|
|
44
44
|
queryFn: m,
|
|
45
45
|
placeholderData: void 0
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getExternalBankAccounts as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { getExternalBankAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { useEmbedApi as n } from "../EmbedApiContext.js";
|
|
8
8
|
import { getAllPagesNextPageParam as r, useAutoFetchNextPage as i } from "../allPages.js";
|
|
9
9
|
import { useMemo as a } from "react";
|
|
10
10
|
import { useInfiniteQuery as o } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js
|
|
12
12
|
var s = 100;
|
|
13
13
|
function c({ enabled: c } = {}) {
|
|
14
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } =
|
|
14
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = n(), p = { "x-organization-id": u ?? "" }, m = !!(u && d) && (c === !0 || c === void 0), h = t({
|
|
15
15
|
client: l,
|
|
16
16
|
headers: p,
|
|
17
17
|
query: { limit: s }
|
|
@@ -23,15 +23,15 @@ function c({ enabled: c } = {}) {
|
|
|
23
23
|
],
|
|
24
24
|
enabled: m,
|
|
25
25
|
initialPageParam: void 0,
|
|
26
|
-
queryFn: async ({ signal:
|
|
27
|
-
let { data: r } = await
|
|
26
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
27
|
+
let { data: r } = await e({
|
|
28
28
|
client: l,
|
|
29
29
|
headers: p,
|
|
30
30
|
query: {
|
|
31
31
|
limit: s,
|
|
32
32
|
...n ? { pagination_token: n } : {}
|
|
33
33
|
},
|
|
34
|
-
signal:
|
|
34
|
+
signal: t,
|
|
35
35
|
throwOnError: !0
|
|
36
36
|
});
|
|
37
37
|
return r;
|
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { getMerchantCategoryGroups as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { getMerchantCategoryGroupsOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as n } from "../withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as r } from "../EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as i } from "../organizationHeaders.js";
|
|
10
10
|
import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
|
|
11
11
|
import { useMemo as c } from "react";
|
|
12
12
|
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js
|
|
14
14
|
function u({ enabled: u } = {}) {
|
|
15
|
-
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } =
|
|
15
|
+
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = r(), h = i(f), g = !!(f && p) && (u === !0 || u === void 0), _ = t({
|
|
16
16
|
client: d,
|
|
17
17
|
headers: h,
|
|
18
18
|
query: { active: !0 }
|
|
19
19
|
}), v = l({
|
|
20
|
-
queryKey: [...
|
|
20
|
+
queryKey: [...n(_, m).queryKey, "all"],
|
|
21
21
|
enabled: g,
|
|
22
22
|
initialPageParam: void 0,
|
|
23
|
-
queryFn: async ({ signal:
|
|
24
|
-
let { data: r } = await
|
|
23
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
24
|
+
let { data: r } = await e({
|
|
25
25
|
client: d,
|
|
26
26
|
headers: h,
|
|
27
27
|
query: {
|
|
28
28
|
active: !0,
|
|
29
|
-
...
|
|
29
|
+
...n ? { pagination_token: n } : {}
|
|
30
30
|
},
|
|
31
|
-
signal:
|
|
31
|
+
signal: t,
|
|
32
32
|
throwOnError: !0
|
|
33
33
|
});
|
|
34
34
|
return r;
|
|
@@ -2,45 +2,45 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { getLedgerAccounts as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { getLedgerAccountsOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as n } from "../withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as r } from "../EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as i } from "../organizationHeaders.js";
|
|
10
10
|
import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
|
|
11
11
|
import { useMemo as c } from "react";
|
|
12
12
|
import { useInfiniteQuery as l, useQuery as u } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js
|
|
14
14
|
var d = 250;
|
|
15
|
-
function f({ enabled:
|
|
16
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
15
|
+
function f({ enabled: e, ...a } = {}) {
|
|
16
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = r(), d = !!(s && c) && (e === !0 || e === void 0), f = t({
|
|
17
17
|
client: o,
|
|
18
|
-
headers:
|
|
18
|
+
headers: i(s),
|
|
19
19
|
query: a
|
|
20
20
|
});
|
|
21
21
|
return u({
|
|
22
|
-
...
|
|
22
|
+
...n(f, l),
|
|
23
23
|
enabled: d
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function p({ enabled: u } = {}) {
|
|
27
|
-
let { client: f, organizationId: p, widgetToken: m, authEpoch: h } =
|
|
27
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = r(), g = i(p), _ = !!(p && m) && (u === !0 || u === void 0), v = t({
|
|
28
28
|
client: f,
|
|
29
29
|
headers: g,
|
|
30
30
|
query: { limit: d }
|
|
31
31
|
}), y = l({
|
|
32
|
-
queryKey: [...
|
|
32
|
+
queryKey: [...n(v, h).queryKey, "all"],
|
|
33
33
|
enabled: _,
|
|
34
34
|
initialPageParam: void 0,
|
|
35
|
-
queryFn: async ({ signal:
|
|
36
|
-
let { data: r } = await
|
|
35
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
36
|
+
let { data: r } = await e({
|
|
37
37
|
client: f,
|
|
38
38
|
headers: g,
|
|
39
39
|
query: {
|
|
40
40
|
limit: d,
|
|
41
|
-
...
|
|
41
|
+
...n ? { pagination_token: n } : {}
|
|
42
42
|
},
|
|
43
|
-
signal:
|
|
43
|
+
signal: t,
|
|
44
44
|
throwOnError: !0
|
|
45
45
|
});
|
|
46
46
|
return r;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getPaymentTermsOptions as e } from "../rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../organizationHeaders.js";
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js
|
|
11
11
|
function a({ enabled: a } = {}) {
|
|
12
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
12
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c) && (a === !0 || a === void 0), d = e({
|
|
13
13
|
client: o,
|
|
14
|
-
headers:
|
|
14
|
+
headers: r(s)
|
|
15
15
|
});
|
|
16
16
|
return i({
|
|
17
|
-
...
|
|
17
|
+
...t(d, l),
|
|
18
18
|
enabled: u
|
|
19
19
|
});
|
|
20
20
|
}
|
|
@@ -2,34 +2,34 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { listRoles as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { listRolesOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as n } from "../withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as r } from "../EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as i } from "../organizationHeaders.js";
|
|
10
10
|
import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
|
|
11
11
|
import { useMemo as c } from "react";
|
|
12
12
|
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js
|
|
14
14
|
var u = 100;
|
|
15
15
|
function d({ enabled: d } = {}) {
|
|
16
|
-
let { client: f, organizationId: p, widgetToken: m, authEpoch: h } =
|
|
16
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h } = r(), g = i(p), _ = !!(p && m) && (d === !0 || d === void 0), v = t({
|
|
17
17
|
client: f,
|
|
18
18
|
headers: g,
|
|
19
19
|
query: { limit: u }
|
|
20
20
|
}), y = l({
|
|
21
|
-
queryKey: [...
|
|
21
|
+
queryKey: [...n(v, h).queryKey, "all"],
|
|
22
22
|
enabled: _,
|
|
23
23
|
initialPageParam: void 0,
|
|
24
|
-
queryFn: async ({ signal:
|
|
25
|
-
let { data: r } = await
|
|
24
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
25
|
+
let { data: r } = await e({
|
|
26
26
|
client: f,
|
|
27
27
|
headers: g,
|
|
28
28
|
query: {
|
|
29
29
|
limit: u,
|
|
30
|
-
...
|
|
30
|
+
...n ? { paginationToken: n } : {}
|
|
31
31
|
},
|
|
32
|
-
signal:
|
|
32
|
+
signal: t,
|
|
33
33
|
throwOnError: !0
|
|
34
34
|
});
|
|
35
35
|
return r;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { listRolePermissionsOptions as e } from "../rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../organizationHeaders.js";
|
|
9
9
|
import { useCallback as i, useMemo as a, useRef as o } from "react";
|
|
10
10
|
import { useQueries as s } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js
|
|
12
12
|
function c({ roleIds: c, enabled: l }) {
|
|
13
|
-
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } =
|
|
14
|
-
...
|
|
13
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f) && (l === !0 || l === void 0), g = a(() => [...new Set(c)].sort(), [c]), _ = s({ queries: g.map((n) => ({
|
|
14
|
+
...t(e({
|
|
15
15
|
client: u,
|
|
16
16
|
headers: m,
|
|
17
|
-
path: { roleId:
|
|
17
|
+
path: { roleId: n }
|
|
18
18
|
}), p),
|
|
19
19
|
enabled: h
|
|
20
20
|
})) }), v = o(_);
|
|
@@ -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 { getEntityUsersMeOptions as e } from "./rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "./withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "./EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "./organizationHeaders.js";
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js
|
|
11
11
|
function a({ enabled: a } = {}) {
|
|
12
|
-
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } =
|
|
12
|
+
let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c) && (a === !0 || a === void 0);
|
|
13
13
|
return i({
|
|
14
|
-
...
|
|
14
|
+
...t(e({
|
|
15
15
|
client: o,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(s)
|
|
17
17
|
}), l),
|
|
18
18
|
enabled: u,
|
|
19
19
|
staleTime: Infinity,
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getUserDataOptions as e } from "./rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "./withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "./EmbedApiContext.js";
|
|
8
8
|
import { isUserDataNotFoundError as r } from "./isUserDataNotFoundError.js";
|
|
9
9
|
import { useQuery as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js
|
|
11
11
|
function a({ key: a, enabled: o, defaultWhenNotFound: s }) {
|
|
12
|
-
let { client: c, widgetToken: l, authEpoch: u } =
|
|
12
|
+
let { client: c, widgetToken: l, authEpoch: u } = n(), d = !!(l && a) && o !== !1, f = e({
|
|
13
13
|
client: c,
|
|
14
14
|
path: { key: a }
|
|
15
|
-
}), p = f.queryFn, m =
|
|
15
|
+
}), p = f.queryFn, m = t(f, u);
|
|
16
16
|
return i(s !== void 0 && p ? {
|
|
17
17
|
...m,
|
|
18
18
|
enabled: d,
|
|
@@ -2,32 +2,33 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useQuery as i } from "@tanstack/react-query";
|
|
5
|
+
import { applicationStatusQueryOptions as e } from "./applicationStatusQueryOptions.js";
|
|
6
|
+
import { useEmbedApi as t } from "./EmbedApiContext.js";
|
|
7
|
+
import { OnboardingSuppressionReason as n } from "./onboardingSuppressionReason.js";
|
|
8
|
+
import { useQuery as r } from "@tanstack/react-query";
|
|
10
9
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
let t = e.filter((e) => e.product ===
|
|
14
|
-
return t.some((e) => e.status ===
|
|
10
|
+
var i = "COMPLETE", a = "BANK_ACCOUNT", o = "STARTED_BY_OTHER";
|
|
11
|
+
function s(e) {
|
|
12
|
+
let t = e.filter((e) => e.product === a);
|
|
13
|
+
return t.some((e) => e.status === i) ? n.OrganizationApplicationComplete : t.some((e) => e.ownership === o) ? n.OrganizationApplicationStartedByOther : null;
|
|
15
14
|
}
|
|
16
|
-
function
|
|
17
|
-
let { client:
|
|
18
|
-
...
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
function c() {
|
|
16
|
+
let { client: n, widgetToken: i, authEpoch: a } = t(), o = !!i, c = r({
|
|
17
|
+
...e({
|
|
18
|
+
client: n,
|
|
19
|
+
widgetToken: i,
|
|
20
|
+
authEpoch: a
|
|
21
|
+
}),
|
|
22
|
+
enabled: o
|
|
23
|
+
}), l = c.data ? s(c.data.applications) : null;
|
|
23
24
|
return {
|
|
24
|
-
isSuppressed:
|
|
25
|
-
reason:
|
|
26
|
-
isResolved: !
|
|
25
|
+
isSuppressed: l !== null,
|
|
26
|
+
reason: l,
|
|
27
|
+
isResolved: !o || c.isSuccess || c.isError,
|
|
27
28
|
refetch: () => {
|
|
28
|
-
|
|
29
|
+
c.refetch();
|
|
29
30
|
}
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
//#endregion
|
|
33
|
-
export {
|
|
34
|
+
export { c as useOrganizationOnboardingSuppression };
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { upsertUserDataMutation as e } from "./rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "./clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "./EmbedApiContext.js";
|
|
8
8
|
import { userDataInvalidationKey as r } from "./queryKeys.js";
|
|
9
9
|
import { useMutation as i } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js
|
|
11
11
|
function a() {
|
|
12
|
-
let { client: a } =
|
|
12
|
+
let { client: a } = n();
|
|
13
13
|
return i({
|
|
14
|
-
...
|
|
15
|
-
onSuccess: async (
|
|
16
|
-
await
|
|
14
|
+
...e({ client: a }),
|
|
15
|
+
onSuccess: async (e, n) => {
|
|
16
|
+
await t(r({
|
|
17
17
|
client: a,
|
|
18
18
|
key: n.path.key
|
|
19
19
|
}));
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { getUsers as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { getUsersOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as n } from "../withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as r } from "../EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as i } from "../organizationHeaders.js";
|
|
10
10
|
import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../allPages.js";
|
|
11
11
|
import { useMemo as c } from "react";
|
|
12
12
|
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js
|
|
14
14
|
var u = 100;
|
|
15
15
|
function d({ enabled: d, permissions: f } = {}) {
|
|
16
|
-
let { client: p, organizationId: m, widgetToken: h, authEpoch: g } =
|
|
16
|
+
let { client: p, organizationId: m, widgetToken: h, authEpoch: g } = r(), _ = i(m), v = !!(m && h) && (d === !0 || d === void 0), y = f?.length ? { Permissions: f } : {}, b = t({
|
|
17
17
|
client: p,
|
|
18
18
|
headers: _,
|
|
19
19
|
query: {
|
|
@@ -22,20 +22,20 @@ function d({ enabled: d, permissions: f } = {}) {
|
|
|
22
22
|
...y
|
|
23
23
|
}
|
|
24
24
|
}), x = l({
|
|
25
|
-
queryKey: [...
|
|
25
|
+
queryKey: [...n(b, g).queryKey, "all"],
|
|
26
26
|
enabled: v,
|
|
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: p,
|
|
31
31
|
headers: _,
|
|
32
32
|
query: {
|
|
33
33
|
Status: "ACTIVE",
|
|
34
34
|
Limit: u,
|
|
35
35
|
...y,
|
|
36
|
-
...
|
|
36
|
+
...n ? { PaginationToken: n } : {}
|
|
37
37
|
},
|
|
38
|
-
signal:
|
|
38
|
+
signal: t,
|
|
39
39
|
throwOnError: !0
|
|
40
40
|
});
|
|
41
41
|
return r;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
let r = t;
|
|
4
|
+
for (let t = 0; t < e.length; t += 1) r ^= e.charCodeAt(t), r = Math.imul(r, n);
|
|
5
|
+
return (r >>> 0) % 67108864;
|
|
6
|
+
}
|
|
7
|
+
function t(t) {
|
|
8
|
+
return t ? e(t, 2166136261, 16777619) * 67108864 + e(t, 16777619, 2246822507) + 1 : 0;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as widgetTokenCacheId };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getTransactionsValidationsQueryKey as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as t } from "../../../data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/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 transactionsValidationsInvalidationKey };
|