@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,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 { listDepartments as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { listDepartmentsOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { listDepartments as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { listDepartmentsOptions 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/index17.js
14
14
  var c = 100;
15
15
  function l({ enabled: l } = {}) {
16
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = r({
16
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f) && (l === !0 || l === void 0), g = t({
17
17
  client: u,
18
18
  headers: m,
19
19
  query: { limit: c }
@@ -25,15 +25,15 @@ function l({ enabled: l } = {}) {
25
25
  ],
26
26
  enabled: h,
27
27
  initialPageParam: void 0,
28
- queryFn: async ({ signal: e, pageParam: t }) => {
29
- let { data: r } = await n({
28
+ queryFn: async ({ signal: t, pageParam: n }) => {
29
+ let { data: r } = await e({
30
30
  client: u,
31
31
  headers: m,
32
32
  query: {
33
33
  limit: c,
34
- ...t ? { paginationToken: t } : {}
34
+ ...n ? { paginationToken: n } : {}
35
35
  },
36
- signal: e,
36
+ signal: t,
37
37
  throwOnError: !0
38
38
  });
39
39
  return r;
@@ -2,17 +2,17 @@
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 { getDepartment as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { getDepartmentOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getDepartment as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getDepartmentOptions 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 "../../../../shared/data-access/dist/index.js";
10
10
  import { useEffect as i, useMemo as a } from "react";
11
11
  import { useInfiniteQuery as o } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js
13
13
  var s = 100;
14
14
  function c({ departmentId: c, enabled: l }) {
15
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = r({
15
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = t({
16
16
  path: { departmentId: c ?? "" },
17
17
  client: u,
18
18
  headers: m,
@@ -25,16 +25,16 @@ function c({ departmentId: c, enabled: l }) {
25
25
  ],
26
26
  enabled: h,
27
27
  initialPageParam: void 0,
28
- queryFn: async ({ signal: e, pageParam: t }) => {
29
- let { data: r } = await n({
28
+ queryFn: async ({ signal: t, pageParam: n }) => {
29
+ let { data: r } = await e({
30
30
  client: u,
31
31
  headers: m,
32
32
  path: { departmentId: c ?? "" },
33
33
  query: {
34
34
  limit: s,
35
- ...t ? { paginationToken: t } : {}
35
+ ...n ? { paginationToken: n } : {}
36
36
  },
37
- signal: e,
37
+ signal: t,
38
38
  throwOnError: !0
39
39
  });
40
40
  return r;
@@ -2,66 +2,66 @@
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, createDepartment as i, deactivateDepartment as a, updateDepartment as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
9
- import { getDepartmentQueryKey as s } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { bulkUpdateDepartmentMembers as e, createDepartment as t, deactivateDepartment as n, updateDepartment as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getDepartmentQueryKey as i } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { invalidateAllClients as a } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
8
+ import { useEmbedApi as o } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { organizationHeaders as s } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
10
  import "../../../../shared/data-access/dist/index.js";
11
11
  import { teamMembersInvalidationKey as c } from "./index2.js";
12
12
  import { departmentsInvalidationKey as l } from "./index5.js";
13
13
  import { useMutation as u } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js
15
- async function d(t) {
16
- await Promise.all([e(l(t)), e(c(t))]);
15
+ async function d(e) {
16
+ await Promise.all([a(l(e)), a(c(e))]);
17
17
  }
18
18
  function f() {
19
- let { client: r, organizationId: a } = t(), o = n(a);
19
+ let { client: e, organizationId: n } = o(), r = s(n);
20
20
  return u({
21
- mutationFn: async ({ name: e }) => {
22
- let { data: t } = await i({
23
- client: r,
24
- headers: o,
25
- body: { name: e },
21
+ mutationFn: async ({ name: n }) => {
22
+ let { data: i } = await t({
23
+ client: e,
24
+ headers: r,
25
+ body: { name: n },
26
26
  throwOnError: !0
27
27
  });
28
- return t;
28
+ return i;
29
29
  },
30
30
  onSuccess: async () => {
31
- await e(l({
32
- client: r,
33
- organizationId: a
31
+ await a(l({
32
+ client: e,
33
+ organizationId: n
34
34
  }));
35
35
  }
36
36
  });
37
37
  }
38
38
  function p() {
39
- let { client: e, organizationId: r } = t(), i = n(r);
39
+ let { client: e, organizationId: t } = o(), n = s(t);
40
40
  return u({
41
- mutationFn: async ({ departmentId: t, name: n }) => {
42
- await o({
41
+ mutationFn: async ({ departmentId: t, name: i }) => {
42
+ await r({
43
43
  client: e,
44
- headers: i,
44
+ headers: n,
45
45
  path: { departmentId: t },
46
- body: { name: n },
46
+ body: { name: i },
47
47
  throwOnError: !0
48
48
  });
49
49
  },
50
50
  onSuccess: async () => {
51
51
  await d({
52
52
  client: e,
53
- organizationId: r
53
+ organizationId: t
54
54
  });
55
55
  }
56
56
  });
57
57
  }
58
58
  function m() {
59
- let { client: e, organizationId: r } = t(), i = n(r);
59
+ let { client: e, organizationId: t } = o(), r = s(t);
60
60
  return u({
61
61
  mutationFn: async ({ departmentId: t }) => {
62
- await a({
62
+ await n({
63
63
  client: e,
64
- headers: i,
64
+ headers: r,
65
65
  path: { departmentId: t },
66
66
  throwOnError: !0
67
67
  });
@@ -69,34 +69,34 @@ function m() {
69
69
  onSuccess: async () => {
70
70
  await d({
71
71
  client: e,
72
- organizationId: r
72
+ organizationId: t
73
73
  });
74
74
  }
75
75
  });
76
76
  }
77
77
  function h() {
78
- let { client: i, organizationId: a } = t(), o = n(a);
78
+ let { client: t, organizationId: n } = o(), r = s(n);
79
79
  return u({
80
- mutationFn: async ({ departmentId: e, type: t, userIds: n }) => {
81
- n.length !== 0 && await r({
82
- client: i,
83
- headers: o,
84
- path: { departmentId: e },
80
+ mutationFn: async ({ departmentId: n, type: i, userIds: a }) => {
81
+ a.length !== 0 && await e({
82
+ client: t,
83
+ headers: r,
84
+ path: { departmentId: n },
85
85
  body: {
86
- type: t,
87
- userIds: n
86
+ type: i,
87
+ userIds: a
88
88
  },
89
89
  throwOnError: !0
90
90
  });
91
91
  },
92
- onSuccess: async (t, r) => {
92
+ onSuccess: async (e, r) => {
93
93
  await d({
94
- client: i,
95
- organizationId: a
96
- }), await e(s({
97
- client: i,
94
+ client: t,
95
+ organizationId: n
96
+ }), await a(i({
97
+ client: t,
98
98
  path: { departmentId: r.departmentId },
99
- headers: n(a)
99
+ headers: s(n)
100
100
  }));
101
101
  }
102
102
  });
@@ -1,10 +1,10 @@
1
- import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getUsersQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getUsersQueryKey as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as t } 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/team/data-access/dist/index2.js
5
- var n = ({ client: n, organizationId: r }) => t({
5
+ var n = ({ client: n, organizationId: r }) => e({
6
6
  client: n,
7
- headers: e(r)
7
+ headers: t(r)
8
8
  });
9
9
  //#endregion
10
10
  export { n as teamMembersInvalidationKey };
@@ -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 { listLocations as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { listLocationsOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { listLocations as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { listLocationsOptions 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/index21.js
14
14
  var c = 100;
15
15
  function l({ enabled: l } = {}) {
16
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = r({
16
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f) && (l === !0 || l === void 0), g = t({
17
17
  client: u,
18
18
  headers: m,
19
19
  query: { limit: c }
@@ -25,15 +25,15 @@ function l({ enabled: l } = {}) {
25
25
  ],
26
26
  enabled: h,
27
27
  initialPageParam: void 0,
28
- queryFn: async ({ signal: e, pageParam: t }) => {
29
- let { data: r } = await n({
28
+ queryFn: async ({ signal: t, pageParam: n }) => {
29
+ let { data: r } = await e({
30
30
  client: u,
31
31
  headers: m,
32
32
  query: {
33
33
  limit: c,
34
- ...t ? { paginationToken: t } : {}
34
+ ...n ? { paginationToken: n } : {}
35
35
  },
36
- signal: e,
36
+ signal: t,
37
37
  throwOnError: !0
38
38
  });
39
39
  return r;
@@ -2,17 +2,17 @@
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 { getLocation as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
8
- import { getLocationOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getLocation as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getLocationOptions 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 "../../../../shared/data-access/dist/index.js";
10
10
  import { useEffect as i, useMemo as a } from "react";
11
11
  import { useInfiniteQuery as o } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js
13
13
  var s = 100;
14
14
  function c({ locationId: c, enabled: l }) {
15
- let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = r({
15
+ let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = n(), m = r(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = t({
16
16
  path: { locationId: c ?? "" },
17
17
  client: u,
18
18
  headers: m,
@@ -25,16 +25,16 @@ function c({ locationId: c, enabled: l }) {
25
25
  ],
26
26
  enabled: h,
27
27
  initialPageParam: void 0,
28
- queryFn: async ({ signal: e, pageParam: t }) => {
29
- let { data: r } = await n({
28
+ queryFn: async ({ signal: t, pageParam: n }) => {
29
+ let { data: r } = await e({
30
30
  client: u,
31
31
  headers: m,
32
32
  path: { locationId: c ?? "" },
33
33
  query: {
34
34
  limit: s,
35
- ...t ? { paginationToken: t } : {}
35
+ ...n ? { paginationToken: n } : {}
36
36
  },
37
- signal: e,
37
+ signal: t,
38
38
  throwOnError: !0
39
39
  });
40
40
  return r;
@@ -2,66 +2,66 @@
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 { bulkUpdateLocationMembers as r, createLocation as i, deactivateLocation as a, updateLocation as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
9
- import { getLocationQueryKey as s } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { bulkUpdateLocationMembers as e, createLocation as t, deactivateLocation as n, updateLocation as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getLocationQueryKey as i } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { invalidateAllClients as a } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
8
+ import { useEmbedApi as o } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { organizationHeaders as s } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
10
  import "../../../../shared/data-access/dist/index.js";
11
11
  import { teamMembersInvalidationKey as c } from "./index2.js";
12
12
  import { locationsInvalidationKey as l } from "./index6.js";
13
13
  import { useMutation as u } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js
15
- async function d(t) {
16
- await Promise.all([e(l(t)), e(c(t))]);
15
+ async function d(e) {
16
+ await Promise.all([a(l(e)), a(c(e))]);
17
17
  }
18
18
  function f() {
19
- let { client: r, organizationId: a } = t(), o = n(a);
19
+ let { client: e, organizationId: n } = o(), r = s(n);
20
20
  return u({
21
- mutationFn: async ({ name: e }) => {
22
- let { data: t } = await i({
23
- client: r,
24
- headers: o,
25
- body: { name: e },
21
+ mutationFn: async ({ name: n }) => {
22
+ let { data: i } = await t({
23
+ client: e,
24
+ headers: r,
25
+ body: { name: n },
26
26
  throwOnError: !0
27
27
  });
28
- return t;
28
+ return i;
29
29
  },
30
30
  onSuccess: async () => {
31
- await e(l({
32
- client: r,
33
- organizationId: a
31
+ await a(l({
32
+ client: e,
33
+ organizationId: n
34
34
  }));
35
35
  }
36
36
  });
37
37
  }
38
38
  function p() {
39
- let { client: e, organizationId: r } = t(), i = n(r);
39
+ let { client: e, organizationId: t } = o(), n = s(t);
40
40
  return u({
41
- mutationFn: async ({ locationId: t, name: n }) => {
42
- await o({
41
+ mutationFn: async ({ locationId: t, name: i }) => {
42
+ await r({
43
43
  client: e,
44
- headers: i,
44
+ headers: n,
45
45
  path: { locationId: t },
46
- body: { name: n },
46
+ body: { name: i },
47
47
  throwOnError: !0
48
48
  });
49
49
  },
50
50
  onSuccess: async () => {
51
51
  await d({
52
52
  client: e,
53
- organizationId: r
53
+ organizationId: t
54
54
  });
55
55
  }
56
56
  });
57
57
  }
58
58
  function m() {
59
- let { client: e, organizationId: r } = t(), i = n(r);
59
+ let { client: e, organizationId: t } = o(), r = s(t);
60
60
  return u({
61
61
  mutationFn: async ({ locationId: t }) => {
62
- await a({
62
+ await n({
63
63
  client: e,
64
- headers: i,
64
+ headers: r,
65
65
  path: { locationId: t },
66
66
  throwOnError: !0
67
67
  });
@@ -69,34 +69,34 @@ function m() {
69
69
  onSuccess: async () => {
70
70
  await d({
71
71
  client: e,
72
- organizationId: r
72
+ organizationId: t
73
73
  });
74
74
  }
75
75
  });
76
76
  }
77
77
  function h() {
78
- let { client: i, organizationId: a } = t(), o = n(a);
78
+ let { client: t, organizationId: n } = o(), r = s(n);
79
79
  return u({
80
- mutationFn: async ({ locationId: e, type: t, userIds: n }) => {
81
- n.length !== 0 && await r({
82
- client: i,
83
- headers: o,
84
- path: { locationId: e },
80
+ mutationFn: async ({ locationId: n, type: i, userIds: a }) => {
81
+ a.length !== 0 && await e({
82
+ client: t,
83
+ headers: r,
84
+ path: { locationId: n },
85
85
  body: {
86
- type: t,
87
- userIds: n
86
+ type: i,
87
+ userIds: a
88
88
  },
89
89
  throwOnError: !0
90
90
  });
91
91
  },
92
- onSuccess: async (t, r) => {
92
+ onSuccess: async (e, r) => {
93
93
  await d({
94
- client: i,
95
- organizationId: a
96
- }), await e(s({
97
- client: i,
94
+ client: t,
95
+ organizationId: n
96
+ }), await a(i({
97
+ client: t,
98
98
  path: { locationId: r.locationId },
99
- headers: n(a)
99
+ headers: s(n)
100
100
  }));
101
101
  }
102
102
  });
@@ -1,14 +1,14 @@
1
- import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getBankAccountAccessQueryKey as t, getExternalBankAccountAccessQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getBankAccountAccessQueryKey as e, getExternalBankAccountAccessQueryKey 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/team/data-access/dist/index3.js
5
- var r = ({ client: n, organizationId: r, bankAccountId: i }) => t({
6
- client: n,
7
- headers: e(r),
8
- path: { id: i }
9
- }), i = ({ client: t, organizationId: r, bankAccountId: i }) => n({
5
+ var r = ({ client: t, organizationId: r, bankAccountId: i }) => e({
10
6
  client: t,
11
- headers: e(r),
7
+ headers: n(r),
8
+ path: { id: i }
9
+ }), i = ({ client: e, organizationId: r, bankAccountId: i }) => t({
10
+ client: e,
11
+ headers: n(r),
12
12
  path: { id: i }
13
13
  }), a = ({ client: e, organizationId: t, bankAccountId: n, source: a }) => a === "EXTERNAL" ? i({
14
14
  client: e,
@@ -2,26 +2,26 @@
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 { disableUserMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { disableUserMutation 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
+ import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import { teamMembersInvalidationKey as i } from "./index2.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js
13
13
  function o() {
14
- let { client: o, organizationId: s } = t(), c = r({
14
+ let { client: o, organizationId: s } = n(), c = e({
15
15
  client: o,
16
- headers: n(s)
16
+ headers: r(s)
17
17
  });
18
18
  return a({
19
19
  ...c,
20
- onSuccess: async (...t) => {
21
- await e(i({
20
+ onSuccess: async (...e) => {
21
+ await t(i({
22
22
  client: o,
23
23
  organizationId: s
24
- })), await c.onSuccess?.(...t);
24
+ })), await c.onSuccess?.(...e);
25
25
  }
26
26
  });
27
27
  }
@@ -1,10 +1,10 @@
1
- import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { listDepartmentsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { listDepartmentsQueryKey as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as t } 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/team/data-access/dist/index5.js
5
- var n = ({ client: n, organizationId: r }) => t({
5
+ var n = ({ client: n, organizationId: r }) => e({
6
6
  client: n,
7
- headers: e(r)
7
+ headers: t(r)
8
8
  });
9
9
  //#endregion
10
10
  export { n as departmentsInvalidationKey };
@@ -1,10 +1,10 @@
1
- import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { listLocationsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { listLocationsQueryKey as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as t } 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/team/data-access/dist/index6.js
5
- var n = ({ client: n, organizationId: r }) => t({
5
+ var n = ({ client: n, organizationId: r }) => e({
6
6
  client: n,
7
- headers: e(r)
7
+ headers: t(r)
8
8
  });
9
9
  //#endregion
10
10
  export { n as locationsInvalidationKey };