@tesouro/embedded-components-react 0.5.226 → 0.5.227
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/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +39 -38
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
- 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 +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ import { useQuery as i } from "@tanstack/react-query";
|
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js
|
|
12
12
|
var a = 100;
|
|
13
13
|
function o(o, { enabled: s } = {}) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = !!(l && u && o) && s !== !1, m = e({
|
|
15
15
|
client: c,
|
|
16
16
|
headers: r(l),
|
|
17
17
|
path: { payable_id: o ?? "" },
|
|
@@ -24,7 +24,7 @@ function o(o, { enabled: s } = {}) {
|
|
|
24
24
|
return i({
|
|
25
25
|
...t(m, {
|
|
26
26
|
authEpoch: d,
|
|
27
|
-
|
|
27
|
+
organizationStatus: f
|
|
28
28
|
}),
|
|
29
29
|
enabled: p
|
|
30
30
|
});
|
|
@@ -4,38 +4,37 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getPayablesIdLineItems as e, putPayablesIdLineItems as t } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { getPayablesIdLineItemsOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
-
import {
|
|
8
|
-
import { useEmbedApi as
|
|
9
|
-
import { organizationHeaders as
|
|
10
|
-
import { getAllPagesNextPaginationTokenParam as
|
|
7
|
+
import { withAuthEpochInfinite as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as i } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as a } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
|
+
import { getAllPagesNextPaginationTokenParam as o, isAllPagesResolving as s, useAutoFetchNextPage as c } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
11
11
|
import "../../../../shared/data-access/dist/index.js";
|
|
12
|
-
import { invalidatePayableQueries as
|
|
12
|
+
import { invalidatePayableQueries as l } from "../../../data-access/dist/lib/invalidatePayableQueries/invalidatePayableQueries.js";
|
|
13
13
|
import "../../../data-access/dist/invalidation.js";
|
|
14
|
-
import { useMemo as
|
|
15
|
-
import { useInfiniteQuery as
|
|
14
|
+
import { useMemo as u } from "react";
|
|
15
|
+
import { useInfiniteQuery as d, useMutation as f } from "@tanstack/react-query";
|
|
16
16
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js
|
|
17
|
-
var
|
|
18
|
-
function
|
|
19
|
-
let { client:
|
|
20
|
-
client:
|
|
21
|
-
headers:
|
|
17
|
+
var p = 100;
|
|
18
|
+
function m(t, { enabled: l } = {}) {
|
|
19
|
+
let { client: f, organizationId: m, widgetToken: h, authEpoch: g, organizationStatus: _ } = i(), v = a(m), y = !!(m && h && t) && l !== !1, b = n({
|
|
20
|
+
client: f,
|
|
21
|
+
headers: v,
|
|
22
22
|
path: { payable_id: t ?? "" },
|
|
23
|
-
query: { limit:
|
|
24
|
-
}),
|
|
25
|
-
|
|
26
|
-
authEpoch:
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
enabled: b,
|
|
23
|
+
query: { limit: p }
|
|
24
|
+
}), x = d({
|
|
25
|
+
...r(b.queryKey, {
|
|
26
|
+
authEpoch: g,
|
|
27
|
+
organizationStatus: _
|
|
28
|
+
}, { suffix: ["all"] }),
|
|
29
|
+
enabled: y,
|
|
31
30
|
initialPageParam: void 0,
|
|
32
31
|
queryFn: async ({ signal: n, pageParam: r }) => {
|
|
33
32
|
let { data: i } = await e({
|
|
34
|
-
client:
|
|
35
|
-
headers:
|
|
33
|
+
client: f,
|
|
34
|
+
headers: v,
|
|
36
35
|
path: { payable_id: t ?? "" },
|
|
37
36
|
query: {
|
|
38
|
-
limit:
|
|
37
|
+
limit: p,
|
|
39
38
|
...r ? { pagination_token: r } : {}
|
|
40
39
|
},
|
|
41
40
|
signal: n,
|
|
@@ -43,31 +42,31 @@ function h(t, { enabled: u } = {}) {
|
|
|
43
42
|
});
|
|
44
43
|
return i;
|
|
45
44
|
},
|
|
46
|
-
getNextPageParam:
|
|
45
|
+
getNextPageParam: o
|
|
47
46
|
});
|
|
48
|
-
|
|
49
|
-
let
|
|
47
|
+
c(x, y);
|
|
48
|
+
let S = u(() => x.data?.pages.flatMap((e) => e.data ?? []) ?? [], [x.data]);
|
|
50
49
|
return {
|
|
51
|
-
...
|
|
52
|
-
lineItems:
|
|
53
|
-
isResolving:
|
|
50
|
+
...x,
|
|
51
|
+
lineItems: S,
|
|
52
|
+
isResolving: s(x)
|
|
54
53
|
};
|
|
55
54
|
}
|
|
56
|
-
function
|
|
57
|
-
let { client: e, organizationId: n } =
|
|
58
|
-
return
|
|
55
|
+
function h() {
|
|
56
|
+
let { client: e, organizationId: n } = i();
|
|
57
|
+
return f({
|
|
59
58
|
mutationFn: async ({ path: r, body: i }) => {
|
|
60
|
-
let { data:
|
|
59
|
+
let { data: o } = await t({
|
|
61
60
|
client: e,
|
|
62
|
-
headers:
|
|
61
|
+
headers: a(n),
|
|
63
62
|
path: r,
|
|
64
63
|
body: i,
|
|
65
64
|
throwOnError: !0
|
|
66
65
|
});
|
|
67
|
-
return
|
|
66
|
+
return o;
|
|
68
67
|
},
|
|
69
68
|
onSuccess: async (t, r) => {
|
|
70
|
-
await
|
|
69
|
+
await l({
|
|
71
70
|
client: e,
|
|
72
71
|
organizationId: n,
|
|
73
72
|
payableId: r.path.payable_id,
|
|
@@ -77,4 +76,4 @@ function g() {
|
|
|
77
76
|
});
|
|
78
77
|
}
|
|
79
78
|
//#endregion
|
|
80
|
-
export {
|
|
79
|
+
export { m as useAllPayableLineItemsQuery, h as useReplacePayableLineItemsMutation };
|
|
@@ -11,7 +11,7 @@ import "../../../data-access/dist/invalidation.js";
|
|
|
11
11
|
import { useQueries as i } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js
|
|
13
13
|
function a({ payableIds: a, enabled: o }) {
|
|
14
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
14
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = t(), f = !!(c && l) && (o === !0 || o === void 0);
|
|
15
15
|
return i({
|
|
16
16
|
queries: a.map((t) => ({
|
|
17
17
|
...e(r({
|
|
@@ -20,7 +20,7 @@ function a({ payableIds: a, enabled: o }) {
|
|
|
20
20
|
payableId: t
|
|
21
21
|
}), {
|
|
22
22
|
authEpoch: u,
|
|
23
|
-
|
|
23
|
+
organizationStatus: d
|
|
24
24
|
}),
|
|
25
25
|
enabled: f && !!t
|
|
26
26
|
})),
|
|
@@ -23,7 +23,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
|
|
|
23
23
|
let v = {
|
|
24
24
|
...s,
|
|
25
25
|
..._
|
|
26
|
-
}, y = _?.tooManyFilesError ?? s.tooManyFilesError, b = _?.remainingCapacityError ?? s.remainingCapacityError, { client: x, organizationId: S, authEpoch: C,
|
|
26
|
+
}, y = _?.tooManyFilesError ?? s.tooManyFilesError, b = _?.remainingCapacityError ?? s.remainingCapacityError, { client: x, organizationId: S, authEpoch: C, organizationStatus: w } = r(), T = h(), E = f(() => o(S), [S]), D = l(), [O, k] = p(!1), { data: A = [] } = m({
|
|
27
27
|
queryKey: E,
|
|
28
28
|
queryFn: () => T.getQueryData(E) ?? [],
|
|
29
29
|
staleTime: Infinity,
|
|
@@ -88,7 +88,7 @@ function g({ onOpenBill: g, labels: _ } = {}) {
|
|
|
88
88
|
path: { payable_id: o }
|
|
89
89
|
}), {
|
|
90
90
|
authEpoch: C,
|
|
91
|
-
|
|
91
|
+
organizationStatus: w
|
|
92
92
|
}),
|
|
93
93
|
retry: !1
|
|
94
94
|
}).catch((e) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getPayables as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { getPayablesOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
-
import {
|
|
7
|
+
import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
8
|
import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
9
|
import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
10
|
import { getAllPagesNextPaginationTokenParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
@@ -13,19 +13,15 @@ import { useMemo as c } from "react";
|
|
|
13
13
|
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js
|
|
15
15
|
function u({ enabled: u, maxPages: d = 3, ...f } = {}) {
|
|
16
|
-
let { client: p, organizationId: m, widgetToken: h, authEpoch: g,
|
|
16
|
+
let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationStatus: _ } = r(), v = i(m), y = !!(m && h) && (u === !0 || u === void 0), b = t({
|
|
17
17
|
client: p,
|
|
18
18
|
headers: v,
|
|
19
19
|
query: f
|
|
20
20
|
}), x = l({
|
|
21
|
-
queryKey
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}).queryKey,
|
|
26
|
-
"first-pages",
|
|
27
|
-
d
|
|
28
|
-
],
|
|
21
|
+
...n(b.queryKey, {
|
|
22
|
+
authEpoch: g,
|
|
23
|
+
organizationStatus: _
|
|
24
|
+
}, { suffix: ["first-pages", d] }),
|
|
29
25
|
enabled: y,
|
|
30
26
|
initialPageParam: void 0,
|
|
31
27
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
@@ -13,7 +13,7 @@ import { useMemo as a } from "react";
|
|
|
13
13
|
import { useQueries as o } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js
|
|
15
15
|
function s({ filters: s, enabled: c }) {
|
|
16
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f,
|
|
16
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = r(u), h = !!(u && d) && (c === !0 || c === void 0), g = o({ queries: s.map((n) => ({
|
|
17
17
|
...t(e({
|
|
18
18
|
client: l,
|
|
19
19
|
headers: m,
|
|
@@ -23,7 +23,7 @@ function s({ filters: s, enabled: c }) {
|
|
|
23
23
|
}
|
|
24
24
|
}), {
|
|
25
25
|
authEpoch: f,
|
|
26
|
-
|
|
26
|
+
organizationStatus: p
|
|
27
27
|
}),
|
|
28
28
|
enabled: h
|
|
29
29
|
})) });
|
|
@@ -12,7 +12,7 @@ import "../../../data-access/dist/invalidation.js";
|
|
|
12
12
|
import { useQuery as a } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js
|
|
14
14
|
function o({ enabled: o, pollWhileOcrProcessing: s = !1, ...c } = {}) {
|
|
15
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f,
|
|
15
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = n(), m = !!(u && d) && (o === !0 || o === void 0), h = e({
|
|
16
16
|
client: l,
|
|
17
17
|
headers: r(u),
|
|
18
18
|
query: c
|
|
@@ -20,7 +20,7 @@ function o({ enabled: o, pollWhileOcrProcessing: s = !1, ...c } = {}) {
|
|
|
20
20
|
return a({
|
|
21
21
|
...t(h, {
|
|
22
22
|
authEpoch: f,
|
|
23
|
-
|
|
23
|
+
organizationStatus: p
|
|
24
24
|
}),
|
|
25
25
|
enabled: m,
|
|
26
26
|
...s ? { refetchInterval: (e) => (e.state.data?.data ?? []).some((e) => e.ocr_status === "processing") ? i : !1 } : {}
|
|
@@ -12,7 +12,7 @@ import "../../../data-access/dist/index.js";
|
|
|
12
12
|
import { useQuery as a } from "@tanstack/react-query";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js
|
|
14
14
|
function o({ enabled: o } = {}) {
|
|
15
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
15
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && (o === !0 || o === void 0), p = e({
|
|
16
16
|
client: s,
|
|
17
17
|
headers: r(c),
|
|
18
18
|
query: i
|
|
@@ -20,7 +20,7 @@ function o({ enabled: o } = {}) {
|
|
|
20
20
|
return a({
|
|
21
21
|
...t(p, {
|
|
22
22
|
authEpoch: u,
|
|
23
|
-
|
|
23
|
+
organizationStatus: d
|
|
24
24
|
}),
|
|
25
25
|
enabled: f,
|
|
26
26
|
select: (e) => ({ count: e.data[0]?.metric_value ?? 0 })
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js
CHANGED
|
@@ -11,14 +11,14 @@ import { withNotFoundOutcome as i } from "./index5.js";
|
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
|
|
15
15
|
client: c,
|
|
16
16
|
headers: r(l),
|
|
17
17
|
path: { cardId: o ?? "" }
|
|
18
18
|
}), m = a({
|
|
19
19
|
...t(p, {
|
|
20
20
|
authEpoch: d,
|
|
21
|
-
|
|
21
|
+
organizationStatus: f
|
|
22
22
|
}),
|
|
23
23
|
enabled: !!(o && l && u) && s !== !1
|
|
24
24
|
});
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js
CHANGED
|
@@ -11,14 +11,14 @@ import "../../../shared/data-access/dist/index.js";
|
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = !!(o && l && u) && s, m = p ? o ?? "" : "", h = e({
|
|
15
15
|
client: c,
|
|
16
16
|
headers: r(l),
|
|
17
17
|
path: { id: m }
|
|
18
18
|
}), g = a({
|
|
19
19
|
...t(h, {
|
|
20
20
|
authEpoch: d,
|
|
21
|
-
|
|
21
|
+
organizationStatus: f
|
|
22
22
|
}),
|
|
23
23
|
enabled: p,
|
|
24
24
|
staleTime: 0,
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js
CHANGED
|
@@ -11,14 +11,14 @@ import { withNotFoundOutcome as i } from "./index5.js";
|
|
|
11
11
|
import { useQuery as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js
|
|
13
13
|
function o({ cardId: o, enabled: s }) {
|
|
14
|
-
let { client: c, organizationId: l, widgetToken: u, authEpoch: d,
|
|
14
|
+
let { client: c, organizationId: l, widgetToken: u, authEpoch: d, organizationStatus: f } = n(), p = e({
|
|
15
15
|
client: c,
|
|
16
16
|
headers: r(l),
|
|
17
17
|
path: { id: o ?? "" }
|
|
18
18
|
}), m = a({
|
|
19
19
|
...t(p, {
|
|
20
20
|
authEpoch: d,
|
|
21
|
-
|
|
21
|
+
organizationStatus: f
|
|
22
22
|
}),
|
|
23
23
|
enabled: !!(o && l && u) && s !== !1
|
|
24
24
|
});
|