@tesouro/embedded-components-react 0.5.115 → 0.5.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +20 -23
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getTagsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js
|
|
12
12
|
function a({ enabled: a, ...o } = {}) {
|
|
13
|
-
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } =
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = !!(c && l) && (a === !0 || a === void 0), f = e({
|
|
14
14
|
query: o,
|
|
15
15
|
client: s,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(c)
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(f, u),
|
|
20
20
|
enabled: d
|
|
21
21
|
});
|
|
22
22
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { getEntitiesIdSettingsQueryKey as e, getTagsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
2
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
3
3
|
import "../../../../shared/data-access/dist/index.js";
|
|
4
4
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js
|
|
5
|
-
var r = ({ client:
|
|
6
|
-
client: t,
|
|
7
|
-
headers: e(r)
|
|
8
|
-
}), i = ({ client: e, entityId: n }) => t({
|
|
5
|
+
var r = ({ client: e, organizationId: r }) => t({
|
|
9
6
|
client: e,
|
|
7
|
+
headers: n(r)
|
|
8
|
+
}), i = ({ client: t, entityId: n }) => e({
|
|
9
|
+
client: t,
|
|
10
10
|
path: { entity_id: n }
|
|
11
11
|
});
|
|
12
12
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js
CHANGED
|
@@ -2,28 +2,28 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { postTags as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { tagsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n();
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({ body:
|
|
17
|
-
let { data:
|
|
16
|
+
mutationFn: async ({ body: t }) => {
|
|
17
|
+
let { data: n } = await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
body:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
body: t,
|
|
21
21
|
throwOnError: !0
|
|
22
22
|
});
|
|
23
|
-
return
|
|
23
|
+
return n;
|
|
24
24
|
},
|
|
25
25
|
onSuccess: async () => {
|
|
26
|
-
await
|
|
26
|
+
await t(i({
|
|
27
27
|
client: o,
|
|
28
28
|
organizationId: s
|
|
29
29
|
}));
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { patchTagsId as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { tagsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n();
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({ path:
|
|
17
|
-
let { data: i } = await
|
|
16
|
+
mutationFn: async ({ path: t, body: n }) => {
|
|
17
|
+
let { data: i } = await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
path:
|
|
21
|
-
body:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
path: t,
|
|
21
|
+
body: n,
|
|
22
22
|
throwOnError: !0
|
|
23
23
|
});
|
|
24
24
|
return i;
|
|
25
25
|
},
|
|
26
26
|
onSuccess: async () => {
|
|
27
|
-
await
|
|
27
|
+
await t(i({
|
|
28
28
|
client: o,
|
|
29
29
|
organizationId: s
|
|
30
30
|
}));
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { deleteTagsId as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { tagsInvalidationKey as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
12
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js
|
|
13
13
|
function o() {
|
|
14
|
-
let { client: o, organizationId: s } =
|
|
14
|
+
let { client: o, organizationId: s } = n();
|
|
15
15
|
return a({
|
|
16
|
-
mutationFn: async ({ path:
|
|
17
|
-
await
|
|
16
|
+
mutationFn: async ({ path: t }) => {
|
|
17
|
+
await e({
|
|
18
18
|
client: o,
|
|
19
|
-
headers:
|
|
20
|
-
path:
|
|
19
|
+
headers: r(s),
|
|
20
|
+
path: t,
|
|
21
21
|
throwOnError: !0
|
|
22
22
|
});
|
|
23
23
|
},
|
|
24
24
|
onSuccess: async () => {
|
|
25
|
-
await
|
|
25
|
+
await t(i({
|
|
26
26
|
client: o,
|
|
27
27
|
organizationId: s
|
|
28
28
|
}));
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getEntitiesMeOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js
|
|
11
11
|
function i() {
|
|
12
|
-
let { client: i, organizationId: a, widgetToken: o, authEpoch: s } =
|
|
12
|
+
let { client: i, organizationId: a, widgetToken: o, authEpoch: s } = n(), c = !!(a && o), l = e({ client: i });
|
|
13
13
|
return r({
|
|
14
|
-
...
|
|
14
|
+
...t(l, s),
|
|
15
15
|
enabled: c
|
|
16
16
|
});
|
|
17
17
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { getEntitiesIdSettingsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { useQuery as r } from "@tanstack/react-query";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js
|
|
11
11
|
function i(i) {
|
|
12
|
-
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } =
|
|
12
|
+
let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = n(), l = !!(o && s && i), u = e({
|
|
13
13
|
client: a,
|
|
14
14
|
path: { entity_id: i ?? "" }
|
|
15
15
|
});
|
|
16
16
|
return r({
|
|
17
|
-
...
|
|
17
|
+
...t(u, c),
|
|
18
18
|
enabled: l
|
|
19
19
|
});
|
|
20
20
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { patchEntitiesIdSettingsMutation as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
8
|
import "../../../../shared/data-access/dist/index.js";
|
|
9
9
|
import { entitySettingsInvalidationKey as r } from "./index3.js";
|
|
10
10
|
import { useMutation as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js
|
|
12
12
|
function a() {
|
|
13
|
-
let { client: a } =
|
|
13
|
+
let { client: a } = n();
|
|
14
14
|
return i({
|
|
15
|
-
...
|
|
16
|
-
onSuccess: async (
|
|
15
|
+
...e({ client: a }),
|
|
16
|
+
onSuccess: async (e, n) => {
|
|
17
17
|
let i = n?.path?.entity_id;
|
|
18
|
-
i && await
|
|
18
|
+
i && await t(r({
|
|
19
19
|
client: a,
|
|
20
20
|
entityId: i
|
|
21
21
|
}));
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js
CHANGED
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getBankAccountAccess as e, getExternalBankAccountAccess as t } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getBankAccountAccessQueryKey as n, getExternalBankAccountAccessQueryKey as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { useEmbedApi as i } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as a } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQueries as o } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js
|
|
12
12
|
function s({ userId: s, accounts: c, enabled: l }) {
|
|
13
|
-
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } =
|
|
13
|
+
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = i(), m = a(d), h = !!(d && f && s) && c.length > 0 && (l === !0 || l === void 0);
|
|
14
14
|
return o({
|
|
15
|
-
queries: c.map((
|
|
16
|
-
let
|
|
15
|
+
queries: c.map((i) => {
|
|
16
|
+
let a = i.source === "EXTERNAL";
|
|
17
17
|
return {
|
|
18
|
-
queryKey: [...
|
|
18
|
+
queryKey: [...a ? r({
|
|
19
19
|
client: u,
|
|
20
20
|
headers: m,
|
|
21
|
-
path: { id:
|
|
22
|
-
}) :
|
|
21
|
+
path: { id: i.bankAccountId }
|
|
22
|
+
}) : n({
|
|
23
23
|
client: u,
|
|
24
24
|
headers: m,
|
|
25
|
-
path: { id:
|
|
25
|
+
path: { id: i.bankAccountId }
|
|
26
26
|
}), { authEpoch: p }],
|
|
27
27
|
enabled: h,
|
|
28
|
-
queryFn: async ({ signal:
|
|
29
|
-
let { data:
|
|
28
|
+
queryFn: async ({ signal: n }) => {
|
|
29
|
+
let { data: r } = await (a ? t : e)({
|
|
30
30
|
client: u,
|
|
31
31
|
headers: m,
|
|
32
|
-
path: { id:
|
|
33
|
-
signal:
|
|
32
|
+
path: { id: i.bankAccountId },
|
|
33
|
+
signal: n,
|
|
34
34
|
throwOnError: !0
|
|
35
35
|
});
|
|
36
|
-
return
|
|
36
|
+
return r;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}),
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js
CHANGED
|
@@ -2,44 +2,44 @@
|
|
|
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 "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { listRolesQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { withAuthEpoch as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
10
|
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
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 } =
|
|
16
|
-
queryKey: [...
|
|
15
|
+
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = r(), p = i(u), m = a({
|
|
16
|
+
queryKey: [...t({
|
|
17
17
|
client: l,
|
|
18
18
|
headers: p,
|
|
19
19
|
query: { limit: s }
|
|
20
20
|
}), "all"],
|
|
21
|
-
queryFn: async ({ signal:
|
|
22
|
-
let
|
|
21
|
+
queryFn: async ({ signal: t }) => {
|
|
22
|
+
let n = [], r = /* @__PURE__ */ new Set(), i;
|
|
23
23
|
do {
|
|
24
|
-
let { data: a } = await
|
|
24
|
+
let { data: a } = await e({
|
|
25
25
|
client: l,
|
|
26
26
|
headers: p,
|
|
27
27
|
query: {
|
|
28
28
|
limit: s,
|
|
29
29
|
paginationToken: i
|
|
30
30
|
},
|
|
31
|
-
signal:
|
|
31
|
+
signal: t,
|
|
32
32
|
throwOnError: !0
|
|
33
33
|
});
|
|
34
|
-
|
|
34
|
+
n.push(...a.data);
|
|
35
35
|
let o = a.nextPaginationToken ?? void 0;
|
|
36
36
|
i = o && !r.has(o) ? o : void 0, i && r.add(i);
|
|
37
37
|
} while (i);
|
|
38
|
-
return { data:
|
|
38
|
+
return { data: n };
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
return o({
|
|
42
|
-
...
|
|
42
|
+
...n(m, f),
|
|
43
43
|
enabled: !!(u && d) && (c === !0 || c === void 0)
|
|
44
44
|
});
|
|
45
45
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getUsersOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
6
|
+
import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQuery as i } from "@tanstack/react-query";
|
|
11
11
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/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 } = n(), d = e({
|
|
14
14
|
query: o,
|
|
15
15
|
client: s,
|
|
16
|
-
headers:
|
|
16
|
+
headers: r(c)
|
|
17
17
|
});
|
|
18
18
|
return i({
|
|
19
|
-
...
|
|
19
|
+
...t(d, u),
|
|
20
20
|
enabled: !!(c && l) && (a === !0 || a === void 0)
|
|
21
21
|
});
|
|
22
22
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
5
|
+
import { getUsers as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getUsersOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
9
9
|
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
10
|
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useMemo as o } from "react";
|
|
@@ -13,7 +13,7 @@ import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js
|
|
14
14
|
var c = 100;
|
|
15
15
|
function l({ Status: l, enabled: u } = {}) {
|
|
16
|
-
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } =
|
|
16
|
+
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = n(), h = r(f), g = !!(f && p) && (u === !0 || u === void 0), _ = t({
|
|
17
17
|
client: d,
|
|
18
18
|
headers: h,
|
|
19
19
|
query: {
|
|
@@ -28,16 +28,16 @@ function l({ Status: l, enabled: u } = {}) {
|
|
|
28
28
|
],
|
|
29
29
|
enabled: g,
|
|
30
30
|
initialPageParam: void 0,
|
|
31
|
-
queryFn: async ({ signal:
|
|
32
|
-
let { data: r } = await
|
|
31
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
32
|
+
let { data: r } = await e({
|
|
33
33
|
client: d,
|
|
34
34
|
headers: h,
|
|
35
35
|
query: {
|
|
36
36
|
Limit: c,
|
|
37
37
|
...l ? { Status: l } : {},
|
|
38
|
-
...
|
|
38
|
+
...n ? { PaginationToken: n } : {}
|
|
39
39
|
},
|
|
40
|
-
signal:
|
|
40
|
+
signal: t,
|
|
41
41
|
throwOnError: !0
|
|
42
42
|
});
|
|
43
43
|
return r;
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js
CHANGED
|
@@ -2,104 +2,104 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
5
|
+
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, updateUser as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
6
|
+
import { getDepartmentQueryKey as i, getLocationQueryKey as a } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { invalidateAllClients as o } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
8
|
+
import { useEmbedApi as s } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as c } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
10
10
|
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as l } from "./index2.js";
|
|
12
12
|
import { departmentsInvalidationKey as u } from "./index5.js";
|
|
13
13
|
import { locationsInvalidationKey as d } from "./index6.js";
|
|
14
14
|
import { useMutation as f } from "@tanstack/react-query";
|
|
15
15
|
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js
|
|
16
|
-
async function p({ client:
|
|
17
|
-
let
|
|
16
|
+
async function p({ client: e, organizationId: t, departmentChange: n, locationChange: r }) {
|
|
17
|
+
let s = c(t), f = [n?.removeId, n?.addId].filter((e) => !!e), p = [r?.removeId, r?.addId].filter((e) => !!e);
|
|
18
18
|
await Promise.all([
|
|
19
|
-
|
|
20
|
-
client:
|
|
21
|
-
organizationId:
|
|
19
|
+
o(l({
|
|
20
|
+
client: e,
|
|
21
|
+
organizationId: t
|
|
22
22
|
})),
|
|
23
|
-
|
|
24
|
-
client:
|
|
25
|
-
organizationId:
|
|
23
|
+
o(u({
|
|
24
|
+
client: e,
|
|
25
|
+
organizationId: t
|
|
26
26
|
})),
|
|
27
|
-
|
|
28
|
-
client:
|
|
29
|
-
organizationId:
|
|
27
|
+
o(d({
|
|
28
|
+
client: e,
|
|
29
|
+
organizationId: t
|
|
30
30
|
})),
|
|
31
|
-
...f.map((
|
|
32
|
-
client:
|
|
33
|
-
path: { departmentId:
|
|
34
|
-
headers:
|
|
31
|
+
...f.map((t) => o(i({
|
|
32
|
+
client: e,
|
|
33
|
+
path: { departmentId: t },
|
|
34
|
+
headers: s
|
|
35
35
|
}))),
|
|
36
|
-
...p.map((
|
|
37
|
-
client:
|
|
38
|
-
path: { locationId:
|
|
39
|
-
headers:
|
|
36
|
+
...p.map((t) => o(a({
|
|
37
|
+
client: e,
|
|
38
|
+
path: { locationId: t },
|
|
39
|
+
headers: s
|
|
40
40
|
})))
|
|
41
41
|
]);
|
|
42
42
|
}
|
|
43
43
|
function m() {
|
|
44
|
-
let { client:
|
|
44
|
+
let { client: i, organizationId: a } = s(), o = c(a);
|
|
45
45
|
return f({
|
|
46
|
-
mutationFn: async ({ path:
|
|
47
|
-
let f = [
|
|
46
|
+
mutationFn: async ({ path: s, body: c, roleChange: l, departmentChange: u, locationChange: d }) => {
|
|
47
|
+
let f = [s.id], m = !1;
|
|
48
48
|
try {
|
|
49
|
-
Object.keys(
|
|
50
|
-
client:
|
|
51
|
-
headers:
|
|
52
|
-
path:
|
|
53
|
-
body:
|
|
49
|
+
Object.keys(c).length > 0 && (await r({
|
|
50
|
+
client: i,
|
|
51
|
+
headers: o,
|
|
52
|
+
path: s,
|
|
53
|
+
body: c,
|
|
54
54
|
throwOnError: !0
|
|
55
|
-
}), m = !0), l && (l.removeRoleId && (await
|
|
56
|
-
client:
|
|
57
|
-
headers:
|
|
55
|
+
}), m = !0), l && (l.removeRoleId && (await n({
|
|
56
|
+
client: i,
|
|
57
|
+
headers: o,
|
|
58
58
|
path: { roleId: l.removeRoleId },
|
|
59
59
|
body: {
|
|
60
60
|
type: "REMOVE",
|
|
61
61
|
userIds: f
|
|
62
62
|
},
|
|
63
63
|
throwOnError: !0
|
|
64
|
-
}), m = !0), await
|
|
65
|
-
client:
|
|
66
|
-
headers:
|
|
64
|
+
}), m = !0), await n({
|
|
65
|
+
client: i,
|
|
66
|
+
headers: o,
|
|
67
67
|
path: { roleId: l.addRoleId },
|
|
68
68
|
body: {
|
|
69
69
|
type: "ASSIGN",
|
|
70
70
|
userIds: f
|
|
71
71
|
},
|
|
72
72
|
throwOnError: !0
|
|
73
|
-
}), m = !0), u?.removeId && (await
|
|
74
|
-
client:
|
|
75
|
-
headers:
|
|
73
|
+
}), m = !0), u?.removeId && (await e({
|
|
74
|
+
client: i,
|
|
75
|
+
headers: o,
|
|
76
76
|
path: { departmentId: u.removeId },
|
|
77
77
|
body: {
|
|
78
78
|
type: "REMOVE",
|
|
79
79
|
userIds: f
|
|
80
80
|
},
|
|
81
81
|
throwOnError: !0
|
|
82
|
-
}), m = !0), u?.addId && (await
|
|
83
|
-
client:
|
|
84
|
-
headers:
|
|
82
|
+
}), m = !0), u?.addId && (await e({
|
|
83
|
+
client: i,
|
|
84
|
+
headers: o,
|
|
85
85
|
path: { departmentId: u.addId },
|
|
86
86
|
body: {
|
|
87
87
|
type: "ASSIGN",
|
|
88
88
|
userIds: f
|
|
89
89
|
},
|
|
90
90
|
throwOnError: !0
|
|
91
|
-
}), m = !0), d?.removeId && (await
|
|
92
|
-
client:
|
|
93
|
-
headers:
|
|
91
|
+
}), m = !0), d?.removeId && (await t({
|
|
92
|
+
client: i,
|
|
93
|
+
headers: o,
|
|
94
94
|
path: { locationId: d.removeId },
|
|
95
95
|
body: {
|
|
96
96
|
type: "REMOVE",
|
|
97
97
|
userIds: f
|
|
98
98
|
},
|
|
99
99
|
throwOnError: !0
|
|
100
|
-
}), m = !0), d?.addId && (await
|
|
101
|
-
client:
|
|
102
|
-
headers:
|
|
100
|
+
}), m = !0), d?.addId && (await t({
|
|
101
|
+
client: i,
|
|
102
|
+
headers: o,
|
|
103
103
|
path: { locationId: d.addId },
|
|
104
104
|
body: {
|
|
105
105
|
type: "ASSIGN",
|
|
@@ -107,21 +107,21 @@ function m() {
|
|
|
107
107
|
},
|
|
108
108
|
throwOnError: !0
|
|
109
109
|
}), m = !0);
|
|
110
|
-
} catch (
|
|
110
|
+
} catch (e) {
|
|
111
111
|
throw m && await p({
|
|
112
|
-
client:
|
|
113
|
-
organizationId:
|
|
112
|
+
client: i,
|
|
113
|
+
organizationId: a,
|
|
114
114
|
departmentChange: u,
|
|
115
115
|
locationChange: d
|
|
116
|
-
}),
|
|
116
|
+
}), e;
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
onSuccess: async (
|
|
119
|
+
onSuccess: async (e, t) => {
|
|
120
120
|
await p({
|
|
121
|
-
client:
|
|
122
|
-
organizationId:
|
|
123
|
-
departmentChange:
|
|
124
|
-
locationChange:
|
|
121
|
+
client: i,
|
|
122
|
+
organizationId: a,
|
|
123
|
+
departmentChange: t.departmentChange,
|
|
124
|
+
locationChange: t.locationChange
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
});
|