@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.
Files changed (149) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  3. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +20 -23
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +20 -23
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  36. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  37. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  44. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  48. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  49. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  50. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  51. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  52. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  55. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  63. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  64. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  65. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  66. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  67. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  68. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  69. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  70. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  71. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  72. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  73. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  74. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  75. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  78. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  80. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  82. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  83. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  105. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  106. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  108. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  109. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  111. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  112. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  113. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  131. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  132. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  141. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  142. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  143. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  144. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  145. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  146. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  147. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  148. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  149. package/package.json +1 -1
@@ -2,21 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getTagsOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
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 } = e(), d = !!(c && l) && (a === !0 || a === void 0), f = n({
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: t(c)
16
+ headers: r(c)
17
17
  });
18
18
  return i({
19
- ...r(f, u),
19
+ ...t(f, u),
20
20
  enabled: d
21
21
  });
22
22
  }
@@ -1,12 +1,12 @@
1
- import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getEntitiesIdSettingsQueryKey as t, getTagsQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
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: t, organizationId: r }) => n({
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
@@ -2,28 +2,28 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { postTags as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 } = t();
14
+ let { client: o, organizationId: s } = n();
15
15
  return a({
16
- mutationFn: async ({ body: e }) => {
17
- let { data: t } = await r({
16
+ mutationFn: async ({ body: t }) => {
17
+ let { data: n } = await e({
18
18
  client: o,
19
- headers: n(s),
20
- body: e,
19
+ headers: r(s),
20
+ body: t,
21
21
  throwOnError: !0
22
22
  });
23
- return t;
23
+ return n;
24
24
  },
25
25
  onSuccess: async () => {
26
- await e(i({
26
+ await t(i({
27
27
  client: o,
28
28
  organizationId: s
29
29
  }));
@@ -2,29 +2,29 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { patchTagsId as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 } = t();
14
+ let { client: o, organizationId: s } = n();
15
15
  return a({
16
- mutationFn: async ({ path: e, body: t }) => {
17
- let { data: i } = await r({
16
+ mutationFn: async ({ path: t, body: n }) => {
17
+ let { data: i } = await e({
18
18
  client: o,
19
- headers: n(s),
20
- path: e,
21
- body: t,
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 e(i({
27
+ await t(i({
28
28
  client: o,
29
29
  organizationId: s
30
30
  }));
@@ -2,27 +2,27 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { deleteTagsId as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
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 } = t();
14
+ let { client: o, organizationId: s } = n();
15
15
  return a({
16
- mutationFn: async ({ path: e }) => {
17
- await r({
16
+ mutationFn: async ({ path: t }) => {
17
+ await e({
18
18
  client: o,
19
- headers: n(s),
20
- path: e,
19
+ headers: r(s),
20
+ path: t,
21
21
  throwOnError: !0
22
22
  });
23
23
  },
24
24
  onSuccess: async () => {
25
- await e(i({
25
+ await t(i({
26
26
  client: o,
27
27
  organizationId: s
28
28
  }));
@@ -2,16 +2,16 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getEntitiesMeOptions 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";
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 } = e(), c = !!(a && o), l = t({ client: i });
12
+ let { client: i, organizationId: a, widgetToken: o, authEpoch: s } = n(), c = !!(a && o), l = e({ client: i });
13
13
  return r({
14
- ...n(l, s),
14
+ ...t(l, s),
15
15
  enabled: c
16
16
  });
17
17
  }
@@ -2,19 +2,19 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { getEntitiesIdSettingsOptions 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";
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 } = e(), l = !!(o && s && i), u = t({
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
- ...n(u, c),
17
+ ...t(u, c),
18
18
  enabled: l
19
19
  });
20
20
  }
@@ -2,20 +2,20 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { patchEntitiesIdSettingsMutation as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
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 } = t();
13
+ let { client: a } = n();
14
14
  return i({
15
- ...n({ client: a }),
16
- onSuccess: async (t, n) => {
15
+ ...e({ client: a }),
16
+ onSuccess: async (e, n) => {
17
17
  let i = n?.path?.entity_id;
18
- i && await e(r({
18
+ i && await t(r({
19
19
  client: a,
20
20
  entityId: i
21
21
  }));
@@ -2,38 +2,38 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getBankAccountAccess as n, getExternalBankAccountAccess as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { getBankAccountAccessQueryKey as i, getExternalBankAccountAccessQueryKey as a } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
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 } = e(), m = t(d), h = !!(d && f && s) && c.length > 0 && (l === !0 || l === void 0);
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((e) => {
16
- let t = e.source === "EXTERNAL";
15
+ queries: c.map((i) => {
16
+ let a = i.source === "EXTERNAL";
17
17
  return {
18
- queryKey: [...t ? a({
18
+ queryKey: [...a ? r({
19
19
  client: u,
20
20
  headers: m,
21
- path: { id: e.bankAccountId }
22
- }) : i({
21
+ path: { id: i.bankAccountId }
22
+ }) : n({
23
23
  client: u,
24
24
  headers: m,
25
- path: { id: e.bankAccountId }
25
+ path: { id: i.bankAccountId }
26
26
  }), { authEpoch: p }],
27
27
  enabled: h,
28
- queryFn: async ({ signal: i }) => {
29
- let { data: a } = await (t ? r : n)({
28
+ queryFn: async ({ signal: n }) => {
29
+ let { data: r } = await (a ? t : e)({
30
30
  client: u,
31
31
  headers: m,
32
- path: { id: e.bankAccountId },
33
- signal: i,
32
+ path: { id: i.bankAccountId },
33
+ signal: n,
34
34
  throwOnError: !0
35
35
  });
36
- return a;
36
+ return r;
37
37
  }
38
38
  };
39
39
  }),
@@ -2,44 +2,44 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { listRoles as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { listRolesQueryKey as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as i } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
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 } = e(), p = t(u), m = a({
16
- queryKey: [...r({
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: e }) => {
22
- let t = [], r = /* @__PURE__ */ new Set(), i;
21
+ queryFn: async ({ signal: t }) => {
22
+ let n = [], r = /* @__PURE__ */ new Set(), i;
23
23
  do {
24
- let { data: a } = await n({
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: e,
31
+ signal: t,
32
32
  throwOnError: !0
33
33
  });
34
- t.push(...a.data);
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: t };
38
+ return { data: n };
39
39
  }
40
40
  });
41
41
  return o({
42
- ...i(m, f),
42
+ ...n(m, f),
43
43
  enabled: !!(u && d) && (c === !0 || c === void 0)
44
44
  });
45
45
  }
@@ -2,21 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getUsersOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
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 } = e(), d = n({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = e({
14
14
  query: o,
15
15
  client: s,
16
- headers: t(c)
16
+ headers: r(c)
17
17
  });
18
18
  return i({
19
- ...r(d, u),
19
+ ...t(d, u),
20
20
  enabled: !!(c && l) && (a === !0 || a === void 0)
21
21
  });
22
22
  }
@@ -2,10 +2,10 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getUsers as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { getUsersOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
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 } = e(), h = t(f), g = !!(f && p) && (u === !0 || u === void 0), _ = r({
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: e, pageParam: t }) => {
32
- let { data: r } = await n({
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
- ...t ? { PaginationToken: t } : {}
38
+ ...n ? { PaginationToken: n } : {}
39
39
  },
40
- signal: e,
40
+ signal: t,
41
41
  throwOnError: !0
42
42
  });
43
43
  return r;
@@ -2,104 +2,104 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, updateUser as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
9
- import { getDepartmentQueryKey as s, getLocationQueryKey as c } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
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: t, organizationId: r, departmentChange: i, locationChange: a }) {
17
- let o = n(r), f = [i?.removeId, i?.addId].filter((e) => !!e), p = [a?.removeId, a?.addId].filter((e) => !!e);
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
- e(l({
20
- client: t,
21
- organizationId: r
19
+ o(l({
20
+ client: e,
21
+ organizationId: t
22
22
  })),
23
- e(u({
24
- client: t,
25
- organizationId: r
23
+ o(u({
24
+ client: e,
25
+ organizationId: t
26
26
  })),
27
- e(d({
28
- client: t,
29
- organizationId: r
27
+ o(d({
28
+ client: e,
29
+ organizationId: t
30
30
  })),
31
- ...f.map((n) => e(s({
32
- client: t,
33
- path: { departmentId: n },
34
- headers: o
31
+ ...f.map((t) => o(i({
32
+ client: e,
33
+ path: { departmentId: t },
34
+ headers: s
35
35
  }))),
36
- ...p.map((n) => e(c({
37
- client: t,
38
- path: { locationId: n },
39
- headers: o
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: e, organizationId: s } = t(), c = n(s);
44
+ let { client: i, organizationId: a } = s(), o = c(a);
45
45
  return f({
46
- mutationFn: async ({ path: t, body: n, roleChange: l, departmentChange: u, locationChange: d }) => {
47
- let f = [t.id], m = !1;
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(n).length > 0 && (await o({
50
- client: e,
51
- headers: c,
52
- path: t,
53
- body: n,
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 a({
56
- client: e,
57
- headers: c,
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 a({
65
- client: e,
66
- headers: c,
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 r({
74
- client: e,
75
- headers: c,
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 r({
83
- client: e,
84
- headers: c,
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 i({
92
- client: e,
93
- headers: c,
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 i({
101
- client: e,
102
- headers: c,
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 (t) {
110
+ } catch (e) {
111
111
  throw m && await p({
112
- client: e,
113
- organizationId: s,
112
+ client: i,
113
+ organizationId: a,
114
114
  departmentChange: u,
115
115
  locationChange: d
116
- }), t;
116
+ }), e;
117
117
  }
118
118
  },
119
- onSuccess: async (t, n) => {
119
+ onSuccess: async (e, t) => {
120
120
  await p({
121
- client: e,
122
- organizationId: s,
123
- departmentChange: n.departmentChange,
124
- locationChange: n.locationChange
121
+ client: i,
122
+ organizationId: a,
123
+ departmentChange: t.departmentChange,
124
+ locationChange: t.locationChange
125
125
  });
126
126
  }
127
127
  });