@tesouro/embedded-components-react 0.5.225 → 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/README.md +21 -21
- package/dist/index.d.ts +23 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +23 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- 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/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
- 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/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
- 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/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
- 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/rest/@tanstack/react-query.gen.js +210 -199
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
- 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
|
@@ -10,7 +10,7 @@ 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, organizationStatus: u } = n(), d = !!(s && c && a), f = e({
|
|
14
14
|
client: o,
|
|
15
15
|
headers: r(s),
|
|
16
16
|
path: { entity_id: a ?? "" }
|
|
@@ -18,7 +18,7 @@ function a(a) {
|
|
|
18
18
|
return i({
|
|
19
19
|
...t(f, {
|
|
20
20
|
authEpoch: l,
|
|
21
|
-
|
|
21
|
+
organizationStatus: u
|
|
22
22
|
}),
|
|
23
23
|
enabled: d
|
|
24
24
|
});
|
|
@@ -11,7 +11,7 @@ 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, organizationStatus: d } = n(), f = !!(c && l) && (o === !0 || o === void 0);
|
|
15
15
|
return {
|
|
16
16
|
userQuery: i({ enabled: f }),
|
|
17
17
|
entityQuery: a({
|
|
@@ -20,7 +20,7 @@ function o({ enabled: o } = {}) {
|
|
|
20
20
|
headers: r(c)
|
|
21
21
|
}), {
|
|
22
22
|
authEpoch: u,
|
|
23
|
-
|
|
23
|
+
organizationStatus: d
|
|
24
24
|
}),
|
|
25
25
|
enabled: f
|
|
26
26
|
})
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js
CHANGED
|
@@ -12,7 +12,7 @@ import { queryOptions as a, useQuery as o } from "@tanstack/react-query";
|
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js
|
|
13
13
|
var s = 100;
|
|
14
14
|
function c({ enabled: c } = {}) {
|
|
15
|
-
let { client: l, organizationId: u, widgetToken: d, authEpoch: f,
|
|
15
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = r(), m = i(u), h = a({
|
|
16
16
|
queryKey: [...t({
|
|
17
17
|
client: l,
|
|
18
18
|
headers: m,
|
|
@@ -41,7 +41,7 @@ function c({ enabled: c } = {}) {
|
|
|
41
41
|
return o({
|
|
42
42
|
...n(h, {
|
|
43
43
|
authEpoch: f,
|
|
44
|
-
|
|
44
|
+
organizationStatus: p
|
|
45
45
|
}),
|
|
46
46
|
enabled: !!(u && d) && (c === !0 || c === void 0)
|
|
47
47
|
});
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js
CHANGED
|
@@ -10,7 +10,7 @@ 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/team/data-access/dist/index13.js
|
|
12
12
|
function a({ enabled: a, ...o } = {}) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u,
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
|
|
14
14
|
query: o,
|
|
15
15
|
client: s,
|
|
16
16
|
headers: r(c)
|
|
@@ -18,7 +18,7 @@ function a({ enabled: a, ...o } = {}) {
|
|
|
18
18
|
return i({
|
|
19
19
|
...t(f, {
|
|
20
20
|
authEpoch: u,
|
|
21
|
-
|
|
21
|
+
organizationStatus: d
|
|
22
22
|
}, { carryWithinOrg: !0 }),
|
|
23
23
|
enabled: !!(c && l) && (a === !0 || a === void 0)
|
|
24
24
|
});
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js
CHANGED
|
@@ -4,35 +4,37 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getUsers as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { getUsersOptions 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
|
-
import { getAllPagesNextPageParam as a,
|
|
10
|
+
import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
11
11
|
import "../../../../shared/data-access/dist/index.js";
|
|
12
|
-
import { useMemo as
|
|
13
|
-
import { useInfiniteQuery as
|
|
12
|
+
import { useMemo as c } from "react";
|
|
13
|
+
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
let { client:
|
|
18
|
-
client:
|
|
19
|
-
headers:
|
|
15
|
+
var u = 100;
|
|
16
|
+
function d({ Status: d, enabled: f } = {}) {
|
|
17
|
+
let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationStatus: _ } = r(), v = i(m), y = !!(m && h) && (f === !0 || f === void 0), b = t({
|
|
18
|
+
client: p,
|
|
19
|
+
headers: v,
|
|
20
20
|
query: {
|
|
21
|
-
Limit:
|
|
22
|
-
...
|
|
21
|
+
Limit: u,
|
|
22
|
+
...d ? { Status: d } : {}
|
|
23
23
|
}
|
|
24
|
-
})
|
|
25
|
-
queryKey
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
}), x = l({
|
|
25
|
+
...n(b.queryKey, {
|
|
26
|
+
authEpoch: g,
|
|
27
|
+
organizationStatus: _
|
|
28
|
+
}, { suffix: ["all"] }),
|
|
29
|
+
enabled: y,
|
|
28
30
|
initialPageParam: void 0,
|
|
29
31
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
30
32
|
let { data: r } = await e({
|
|
31
|
-
client:
|
|
32
|
-
headers:
|
|
33
|
+
client: p,
|
|
34
|
+
headers: v,
|
|
33
35
|
query: {
|
|
34
|
-
Limit:
|
|
35
|
-
...
|
|
36
|
+
Limit: u,
|
|
37
|
+
...d ? { Status: d } : {},
|
|
36
38
|
...n ? { PaginationToken: n } : {}
|
|
37
39
|
},
|
|
38
40
|
signal: t,
|
|
@@ -42,19 +44,19 @@ function u({ Status: u, enabled: d } = {}) {
|
|
|
42
44
|
},
|
|
43
45
|
getNextPageParam: a
|
|
44
46
|
});
|
|
45
|
-
|
|
46
|
-
let
|
|
47
|
-
if (
|
|
48
|
-
data:
|
|
47
|
+
s(x, y);
|
|
48
|
+
let S = c(() => {
|
|
49
|
+
if (x.data) return {
|
|
50
|
+
data: x.data.pages.flatMap((e) => e.data ?? []),
|
|
49
51
|
nextPaginationToken: null,
|
|
50
52
|
prevPaginationToken: null
|
|
51
53
|
};
|
|
52
|
-
}, [
|
|
54
|
+
}, [x.data]), C = x.isSuccess && !o(x);
|
|
53
55
|
return {
|
|
54
|
-
...
|
|
55
|
-
data:
|
|
56
|
-
isComplete:
|
|
56
|
+
...x,
|
|
57
|
+
data: S,
|
|
58
|
+
isComplete: C
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
61
|
//#endregion
|
|
60
|
-
export {
|
|
62
|
+
export { d as useAllTeamMembersQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js
CHANGED
|
@@ -4,31 +4,33 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { listDepartments as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { listDepartmentsOptions 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
|
-
import { getAllPagesNextPageParam as a,
|
|
10
|
+
import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
11
11
|
import "../../../../shared/data-access/dist/index.js";
|
|
12
|
-
import { useMemo as
|
|
13
|
-
import { useInfiniteQuery as
|
|
12
|
+
import { useMemo as c } from "react";
|
|
13
|
+
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
let { client:
|
|
18
|
-
client:
|
|
19
|
-
headers:
|
|
20
|
-
query: { limit:
|
|
21
|
-
})
|
|
22
|
-
queryKey
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
var u = 100;
|
|
16
|
+
function d({ enabled: d } = {}) {
|
|
17
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m) && (d === !0 || d === void 0), y = t({
|
|
18
|
+
client: f,
|
|
19
|
+
headers: _,
|
|
20
|
+
query: { limit: u }
|
|
21
|
+
}), b = l({
|
|
22
|
+
...n(y.queryKey, {
|
|
23
|
+
authEpoch: h,
|
|
24
|
+
organizationStatus: g
|
|
25
|
+
}, { suffix: ["all"] }),
|
|
26
|
+
enabled: v,
|
|
25
27
|
initialPageParam: void 0,
|
|
26
28
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
27
29
|
let { data: r } = await e({
|
|
28
|
-
client:
|
|
29
|
-
headers:
|
|
30
|
+
client: f,
|
|
31
|
+
headers: _,
|
|
30
32
|
query: {
|
|
31
|
-
limit:
|
|
33
|
+
limit: u,
|
|
32
34
|
...n ? { paginationToken: n } : {}
|
|
33
35
|
},
|
|
34
36
|
signal: t,
|
|
@@ -38,19 +40,19 @@ function u({ enabled: u } = {}) {
|
|
|
38
40
|
},
|
|
39
41
|
getNextPageParam: a
|
|
40
42
|
});
|
|
41
|
-
|
|
42
|
-
let
|
|
43
|
-
if (
|
|
44
|
-
data:
|
|
43
|
+
s(b, v);
|
|
44
|
+
let x = c(() => {
|
|
45
|
+
if (b.data) return {
|
|
46
|
+
data: b.data.pages.flatMap((e) => e.data ?? []),
|
|
45
47
|
nextPaginationToken: null,
|
|
46
48
|
prevPaginationToken: null
|
|
47
49
|
};
|
|
48
|
-
}, [
|
|
50
|
+
}, [b.data]), S = b.isSuccess && !o(b);
|
|
49
51
|
return {
|
|
50
|
-
...
|
|
51
|
-
data:
|
|
52
|
-
isComplete:
|
|
52
|
+
...b,
|
|
53
|
+
data: x,
|
|
54
|
+
isComplete: S
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
//#endregion
|
|
56
|
-
export {
|
|
58
|
+
export { d as useAllDepartmentsQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js
CHANGED
|
@@ -4,32 +4,35 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getDepartment as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { getDepartmentOptions 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
|
+
import { isAllPagesResolving as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
11
|
import "../../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { useEffect as
|
|
12
|
-
import { useInfiniteQuery as
|
|
12
|
+
import { useEffect as o, useMemo as s } from "react";
|
|
13
|
+
import { useInfiniteQuery as c } from "@tanstack/react-query";
|
|
13
14
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
let { client:
|
|
17
|
-
path: { departmentId:
|
|
18
|
-
client:
|
|
19
|
-
headers:
|
|
20
|
-
query: { limit:
|
|
21
|
-
})
|
|
22
|
-
queryKey
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
var l = 100;
|
|
16
|
+
function u({ departmentId: u, enabled: d }) {
|
|
17
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m && u) && (d === !0 || d === void 0), y = t({
|
|
18
|
+
path: { departmentId: u ?? "" },
|
|
19
|
+
client: f,
|
|
20
|
+
headers: _,
|
|
21
|
+
query: { limit: l }
|
|
22
|
+
}), b = c({
|
|
23
|
+
...n(y.queryKey, {
|
|
24
|
+
authEpoch: h,
|
|
25
|
+
organizationStatus: g
|
|
26
|
+
}, { suffix: ["all-members"] }),
|
|
27
|
+
enabled: v,
|
|
25
28
|
initialPageParam: void 0,
|
|
26
29
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
27
30
|
let { data: r } = await e({
|
|
28
|
-
client:
|
|
29
|
-
headers:
|
|
30
|
-
path: { departmentId:
|
|
31
|
+
client: f,
|
|
32
|
+
headers: _,
|
|
33
|
+
path: { departmentId: u ?? "" },
|
|
31
34
|
query: {
|
|
32
|
-
limit:
|
|
35
|
+
limit: l,
|
|
33
36
|
...n ? { paginationToken: n } : {}
|
|
34
37
|
},
|
|
35
38
|
signal: t,
|
|
@@ -42,19 +45,19 @@ function l({ departmentId: l, enabled: u }) {
|
|
|
42
45
|
if (!(i === void 0 || r.includes(i))) return i;
|
|
43
46
|
}
|
|
44
47
|
});
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
o(() => {
|
|
49
|
+
v && b.hasNextPage && !b.isFetchingNextPage && !b.isError && b.fetchNextPage();
|
|
47
50
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
v,
|
|
52
|
+
b.hasNextPage,
|
|
53
|
+
b.isFetchingNextPage,
|
|
54
|
+
b.isError,
|
|
55
|
+
b.fetchNextPage,
|
|
56
|
+
b
|
|
54
57
|
]);
|
|
55
|
-
let
|
|
56
|
-
if (!
|
|
57
|
-
let e =
|
|
58
|
+
let x = b.isSuccess && !b.hasNextPage && !b.isFetchingNextPage, S = b.isSuccess && !a(b), C = s(() => {
|
|
59
|
+
if (!b.data || !x) return;
|
|
60
|
+
let e = b.data.pages, t = e[e.length - 1], n = e.flatMap((e) => e.members?.data ?? []);
|
|
58
61
|
return {
|
|
59
62
|
...t,
|
|
60
63
|
members: {
|
|
@@ -63,12 +66,12 @@ function l({ departmentId: l, enabled: u }) {
|
|
|
63
66
|
nextPaginationToken: null
|
|
64
67
|
}
|
|
65
68
|
};
|
|
66
|
-
}, [
|
|
69
|
+
}, [b.data, x]);
|
|
67
70
|
return {
|
|
68
|
-
...
|
|
69
|
-
data:
|
|
70
|
-
isComplete:
|
|
71
|
+
...b,
|
|
72
|
+
data: C,
|
|
73
|
+
isComplete: S
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
//#endregion
|
|
74
|
-
export {
|
|
77
|
+
export { u as useDepartmentMembersQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js
CHANGED
|
@@ -4,31 +4,33 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { listLocations as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { listLocationsOptions 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
|
-
import { getAllPagesNextPageParam as a,
|
|
10
|
+
import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
11
11
|
import "../../../../shared/data-access/dist/index.js";
|
|
12
|
-
import { useMemo as
|
|
13
|
-
import { useInfiniteQuery as
|
|
12
|
+
import { useMemo as c } from "react";
|
|
13
|
+
import { useInfiniteQuery as l } from "@tanstack/react-query";
|
|
14
14
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
let { client:
|
|
18
|
-
client:
|
|
19
|
-
headers:
|
|
20
|
-
query: { limit:
|
|
21
|
-
})
|
|
22
|
-
queryKey
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
var u = 100;
|
|
16
|
+
function d({ enabled: d } = {}) {
|
|
17
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m) && (d === !0 || d === void 0), y = t({
|
|
18
|
+
client: f,
|
|
19
|
+
headers: _,
|
|
20
|
+
query: { limit: u }
|
|
21
|
+
}), b = l({
|
|
22
|
+
...n(y.queryKey, {
|
|
23
|
+
authEpoch: h,
|
|
24
|
+
organizationStatus: g
|
|
25
|
+
}, { suffix: ["all"] }),
|
|
26
|
+
enabled: v,
|
|
25
27
|
initialPageParam: void 0,
|
|
26
28
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
27
29
|
let { data: r } = await e({
|
|
28
|
-
client:
|
|
29
|
-
headers:
|
|
30
|
+
client: f,
|
|
31
|
+
headers: _,
|
|
30
32
|
query: {
|
|
31
|
-
limit:
|
|
33
|
+
limit: u,
|
|
32
34
|
...n ? { paginationToken: n } : {}
|
|
33
35
|
},
|
|
34
36
|
signal: t,
|
|
@@ -38,19 +40,19 @@ function u({ enabled: u } = {}) {
|
|
|
38
40
|
},
|
|
39
41
|
getNextPageParam: a
|
|
40
42
|
});
|
|
41
|
-
|
|
42
|
-
let
|
|
43
|
-
if (
|
|
44
|
-
data:
|
|
43
|
+
s(b, v);
|
|
44
|
+
let x = c(() => {
|
|
45
|
+
if (b.data) return {
|
|
46
|
+
data: b.data.pages.flatMap((e) => e.data ?? []),
|
|
45
47
|
nextPaginationToken: null,
|
|
46
48
|
prevPaginationToken: null
|
|
47
49
|
};
|
|
48
|
-
}, [
|
|
50
|
+
}, [b.data]), S = b.isSuccess && !o(b);
|
|
49
51
|
return {
|
|
50
|
-
...
|
|
51
|
-
data:
|
|
52
|
-
isComplete:
|
|
52
|
+
...b,
|
|
53
|
+
data: x,
|
|
54
|
+
isComplete: S
|
|
53
55
|
};
|
|
54
56
|
}
|
|
55
57
|
//#endregion
|
|
56
|
-
export {
|
|
58
|
+
export { d as useAllLocationsQuery };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js
CHANGED
|
@@ -4,32 +4,35 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { getLocation as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
6
|
import { getLocationOptions 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
|
+
import { isAllPagesResolving as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
11
|
import "../../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { useEffect as
|
|
12
|
-
import { useInfiniteQuery as
|
|
12
|
+
import { useEffect as o, useMemo as s } from "react";
|
|
13
|
+
import { useInfiniteQuery as c } from "@tanstack/react-query";
|
|
13
14
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js
|
|
14
|
-
var
|
|
15
|
-
function
|
|
16
|
-
let { client:
|
|
17
|
-
path: { locationId:
|
|
18
|
-
client:
|
|
19
|
-
headers:
|
|
20
|
-
query: { limit:
|
|
21
|
-
})
|
|
22
|
-
queryKey
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
var l = 100;
|
|
16
|
+
function u({ locationId: u, enabled: d }) {
|
|
17
|
+
let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m && u) && (d === !0 || d === void 0), y = t({
|
|
18
|
+
path: { locationId: u ?? "" },
|
|
19
|
+
client: f,
|
|
20
|
+
headers: _,
|
|
21
|
+
query: { limit: l }
|
|
22
|
+
}), b = c({
|
|
23
|
+
...n(y.queryKey, {
|
|
24
|
+
authEpoch: h,
|
|
25
|
+
organizationStatus: g
|
|
26
|
+
}, { suffix: ["all-members"] }),
|
|
27
|
+
enabled: v,
|
|
25
28
|
initialPageParam: void 0,
|
|
26
29
|
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
27
30
|
let { data: r } = await e({
|
|
28
|
-
client:
|
|
29
|
-
headers:
|
|
30
|
-
path: { locationId:
|
|
31
|
+
client: f,
|
|
32
|
+
headers: _,
|
|
33
|
+
path: { locationId: u ?? "" },
|
|
31
34
|
query: {
|
|
32
|
-
limit:
|
|
35
|
+
limit: l,
|
|
33
36
|
...n ? { paginationToken: n } : {}
|
|
34
37
|
},
|
|
35
38
|
signal: t,
|
|
@@ -42,19 +45,19 @@ function l({ locationId: l, enabled: u }) {
|
|
|
42
45
|
if (!(i === void 0 || r.includes(i))) return i;
|
|
43
46
|
}
|
|
44
47
|
});
|
|
45
|
-
|
|
46
|
-
|
|
48
|
+
o(() => {
|
|
49
|
+
v && b.hasNextPage && !b.isFetchingNextPage && !b.isError && b.fetchNextPage();
|
|
47
50
|
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
v,
|
|
52
|
+
b.hasNextPage,
|
|
53
|
+
b.isFetchingNextPage,
|
|
54
|
+
b.isError,
|
|
55
|
+
b.fetchNextPage,
|
|
56
|
+
b
|
|
54
57
|
]);
|
|
55
|
-
let
|
|
56
|
-
if (!
|
|
57
|
-
let e =
|
|
58
|
+
let x = b.isSuccess && !b.hasNextPage && !b.isFetchingNextPage, S = b.isSuccess && !a(b), C = s(() => {
|
|
59
|
+
if (!b.data || !x) return;
|
|
60
|
+
let e = b.data.pages, t = e[e.length - 1], n = e.flatMap((e) => e.members?.data ?? []);
|
|
58
61
|
return {
|
|
59
62
|
...t,
|
|
60
63
|
members: {
|
|
@@ -63,12 +66,12 @@ function l({ locationId: l, enabled: u }) {
|
|
|
63
66
|
nextPaginationToken: null
|
|
64
67
|
}
|
|
65
68
|
};
|
|
66
|
-
}, [
|
|
69
|
+
}, [b.data, x]);
|
|
67
70
|
return {
|
|
68
|
-
...
|
|
69
|
-
data:
|
|
70
|
-
isComplete:
|
|
71
|
+
...b,
|
|
72
|
+
data: C,
|
|
73
|
+
isComplete: S
|
|
71
74
|
};
|
|
72
75
|
}
|
|
73
76
|
//#endregion
|
|
74
|
-
export {
|
|
77
|
+
export { u as useLocationMembersQuery };
|