@tesouro/embedded-components-react 0.5.116 → 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 (146) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  3. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  33. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  34. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  35. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  36. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  37. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  42. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  43. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  44. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  48. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  49. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  51. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  52. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  60. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  61. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  62. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  63. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  64. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  65. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  66. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  67. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  68. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  69. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  70. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  71. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  72. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  73. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  74. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  75. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  78. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  80. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  82. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  83. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  105. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  106. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  107. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  108. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  109. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  128. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  129. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  132. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  133. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  134. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  141. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  142. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  143. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  144. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  145. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  146. package/package.json +1 -1
@@ -2,35 +2,35 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { getTransactionsValidationsOptions as n, putTransactionsValidationsMutation as r } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as i } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { getTransactionsValidationsOptions as e, putTransactionsValidationsMutation as t } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as n } from "../../../data-access/dist/lib/withAuthEpoch.js";
7
+ import { invalidateAllClients as r } from "../../../data-access/dist/lib/clientRegistry.js";
8
+ import { useEmbedApi as i } from "../../../data-access/dist/lib/EmbedApiContext.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { transactionsValidationsInvalidationKey as a } from "./index2.js";
11
11
  import { useMutation as o, useQuery as s } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js
13
13
  function c() {
14
- let { client: e, organizationId: r, widgetToken: a, authEpoch: o } = t(), c = !!(r && a), l = n({
15
- client: e,
14
+ let { client: t, organizationId: r, widgetToken: a, authEpoch: o } = i(), c = !!(r && a), l = e({
15
+ client: t,
16
16
  headers: { "x-organization-id": r ?? "" }
17
17
  });
18
18
  return s({
19
- ...i(l, o),
19
+ ...n(l, o),
20
20
  enabled: c
21
21
  });
22
22
  }
23
23
  function l() {
24
- let { client: n, organizationId: i } = t();
24
+ let { client: e, organizationId: n } = i();
25
25
  return o({
26
- ...r({
27
- client: n,
28
- headers: { "x-organization-id": i ?? "" }
26
+ ...t({
27
+ client: e,
28
+ headers: { "x-organization-id": n ?? "" }
29
29
  }),
30
30
  onSuccess: async () => {
31
- await e(a({
32
- client: n,
33
- organizationId: i
31
+ await r(a({
32
+ client: e,
33
+ organizationId: n
34
34
  }));
35
35
  }
36
36
  });
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.116", n = "d696d8decff320a51da5ba16ad7fb5cc2841cef6", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.117", n = "5390a93d391c418ae9627a07ab60f598ac5faa78", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -2,28 +2,28 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../data-access/dist/lib/organizationHeaders.js";
8
- import { postMeasureUnits as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
5
+ import { postMeasureUnits as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { measureUnitsInvalidationKey as i } from "./index4.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.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 "../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../data-access/dist/lib/organizationHeaders.js";
8
- import { patchMeasureUnitsId as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
5
+ import { patchMeasureUnitsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { measureUnitsInvalidationKey as i } from "./index4.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.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,30 +2,30 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../data-access/dist/lib/organizationHeaders.js";
8
- import { deleteMeasureUnitsId as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
5
+ import { deleteMeasureUnitsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { measureUnitsInvalidationKey as i, productsInvalidationKey as a } from "./index4.js";
11
11
  import { useMutation as o } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js
13
13
  function s() {
14
- let { client: s, organizationId: c } = t();
14
+ let { client: s, organizationId: c } = n();
15
15
  return o({
16
- mutationFn: async ({ path: e }) => {
17
- await r({
16
+ mutationFn: async ({ path: t }) => {
17
+ await e({
18
18
  client: s,
19
- headers: n(c),
20
- path: e,
19
+ headers: r(c),
20
+ path: t,
21
21
  throwOnError: !0
22
22
  });
23
23
  },
24
24
  onSuccess: async () => {
25
- await Promise.all([e(i({
25
+ await Promise.all([t(i({
26
26
  client: s,
27
27
  organizationId: c
28
- })), e(a({
28
+ })), t(a({
29
29
  client: s,
30
30
  organizationId: c
31
31
  }))]);
@@ -2,21 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../data-access/dist/lib/organizationHeaders.js";
7
- import { getProductsOptions as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { getProductsOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/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
  }
@@ -2,21 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../data-access/dist/lib/organizationHeaders.js";
7
- import { getProductsIdOptions as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { getProductsIdOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js
12
12
  function a(a) {
13
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), u = !!(s && c && a), d = n({
13
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c && a), d = e({
14
14
  client: o,
15
- headers: t(s),
15
+ headers: r(s),
16
16
  path: { product_id: a ?? "" }
17
17
  });
18
18
  return i({
19
- ...r(d, l),
19
+ ...t(d, l),
20
20
  enabled: u
21
21
  });
22
22
  }
@@ -1,17 +1,17 @@
1
- import { organizationHeaders as e } from "../../../data-access/dist/lib/organizationHeaders.js";
2
- import { getMeasureUnitsQueryKey as t, getProductsIdQueryKey as n, getProductsQueryKey as r } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getMeasureUnitsQueryKey as e, getProductsIdQueryKey as t, getProductsQueryKey as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
3
3
  import "../../../data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js
5
- var i = ({ client: t, organizationId: n }) => r({
6
- client: t,
7
- headers: e(n)
8
- }), a = ({ client: t, organizationId: r, productId: i }) => n({
9
- client: t,
10
- headers: e(r),
5
+ var i = ({ client: e, organizationId: t }) => n({
6
+ client: e,
7
+ headers: r(t)
8
+ }), a = ({ client: e, organizationId: n, productId: i }) => t({
9
+ client: e,
10
+ headers: r(n),
11
11
  path: { product_id: i }
12
- }), o = ({ client: n, organizationId: r }) => t({
13
- client: n,
14
- headers: e(r)
12
+ }), o = ({ client: t, organizationId: n }) => e({
13
+ client: t,
14
+ headers: r(n)
15
15
  });
16
16
  //#endregion
17
17
  export { o as measureUnitsInvalidationKey, a as productInvalidationKey, i as productsInvalidationKey };
@@ -2,28 +2,28 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../data-access/dist/lib/organizationHeaders.js";
8
- import { postProducts as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
5
+ import { postProducts as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { productsInvalidationKey as i } from "./index4.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/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 ({ 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,32 +2,32 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../data-access/dist/lib/organizationHeaders.js";
8
- import { patchProductsId as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
5
+ import { patchProductsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { productInvalidationKey as i, productsInvalidationKey as a } from "./index4.js";
11
11
  import { useMutation as o } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js
13
13
  function s() {
14
- let { client: s, organizationId: c } = t();
14
+ let { client: s, organizationId: c } = n();
15
15
  return o({
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: s,
19
- headers: n(c),
20
- path: e,
21
- body: t,
19
+ headers: r(c),
20
+ path: t,
21
+ body: n,
22
22
  throwOnError: !0
23
23
  });
24
24
  return i;
25
25
  },
26
- onSuccess: async (t, n) => {
27
- await Promise.all([e(a({
26
+ onSuccess: async (e, n) => {
27
+ await Promise.all([t(a({
28
28
  client: s,
29
29
  organizationId: c
30
- })), e(i({
30
+ })), t(i({
31
31
  client: s,
32
32
  organizationId: c,
33
33
  productId: n.path.product_id
@@ -2,27 +2,27 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../data-access/dist/lib/organizationHeaders.js";
8
- import { deleteProductsId as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
5
+ import { deleteProductsId as e } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { productsInvalidationKey as i } from "./index4.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.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,20 +2,20 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../data-access/dist/lib/organizationHeaders.js";
7
- import { getMeasureUnitsOptions as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { getMeasureUnitsOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js
12
12
  function a() {
13
- let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = e(), l = !!(o && s), u = n({
13
+ let { client: a, organizationId: o, widgetToken: s, authEpoch: c } = n(), l = !!(o && s), u = e({
14
14
  client: a,
15
- headers: t(o)
15
+ headers: r(o)
16
16
  });
17
17
  return i({
18
- ...r(u, c),
18
+ ...t(u, c),
19
19
  enabled: l
20
20
  });
21
21
  }
@@ -2,21 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../data-access/dist/lib/organizationHeaders.js";
7
- import { getProductsOptions as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as r } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { getProductsOptions as e } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js
12
12
  function a(a) {
13
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = e(), u = !!(s && c && a), d = n({
13
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l } = n(), u = !!(s && c && a), d = e({
14
14
  query: { measure_unit_id: a ?? "" },
15
15
  client: o,
16
- headers: t(s)
16
+ headers: r(s)
17
17
  });
18
18
  return i({
19
- ...r(d, l),
19
+ ...t(d, l),
20
20
  enabled: u
21
21
  });
22
22
  }
@@ -1,17 +1,17 @@
1
- import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getBankAccountQueryKey as t, getBankAccountTransfersQueryKey as n, getBankAccountsQueryKey as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getBankAccountQueryKey as e, getBankAccountTransfersQueryKey as t, getBankAccountsQueryKey as n } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as r } 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/transfers-widget/data-access/dist/index3.js
5
- var i = ({ client: t, organizationId: n }) => r({
6
- client: t,
7
- headers: e(n)
8
- }), a = ({ client: t, organizationId: r, bankAccountId: i }) => n({
9
- client: t,
10
- headers: e(r),
5
+ var i = ({ client: e, organizationId: t }) => n({
6
+ client: e,
7
+ headers: r(t)
8
+ }), a = ({ client: e, organizationId: n, bankAccountId: i }) => t({
9
+ client: e,
10
+ headers: r(n),
11
11
  path: { id: i }
12
- }), o = ({ client: n, organizationId: r, bankAccountId: i }) => t({
13
- client: n,
14
- headers: e(r),
12
+ }), o = ({ client: t, organizationId: n, bankAccountId: i }) => e({
13
+ client: t,
14
+ headers: r(n),
15
15
  path: { id: i }
16
16
  });
17
17
  //#endregion
@@ -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 { getBankAccountTransfersOptions 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 { getBankAccountTransfersOptions 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 { isPaginatedAccountsQueryInFlight as i } from "./index2.js";
11
11
  import { useTransferBankAccountsQuery as a } from "./index4.js";
@@ -14,11 +14,11 @@ import { useQueries as s } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js
15
15
  var c = 25;
16
16
  function l({ enabled: l, transfersPerAccount: u = c } = {}) {
17
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = e(), h = t(f), g = !!(f && p) && (l === !0 || l === void 0), _ = a({ enabled: g }), v = o(() => [..._.data?.data?.map((e) => e.id).filter(Boolean) ?? []].sort(), [_.data?.data]), y = s({ queries: v.map((e) => ({
18
- ...r(n({
17
+ let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = n(), h = r(f), g = !!(f && p) && (l === !0 || l === void 0), _ = a({ enabled: g }), v = o(() => [..._.data?.data?.map((e) => e.id).filter(Boolean) ?? []].sort(), [_.data?.data]), y = s({ queries: v.map((n) => ({
18
+ ...t(e({
19
19
  client: d,
20
20
  headers: h,
21
- path: { id: e },
21
+ path: { id: n },
22
22
  query: { limit: u }
23
23
  }), m),
24
24
  enabled: g
@@ -2,34 +2,34 @@
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 { createBookTransferMutation as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { createBookTransferMutation 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 { bankAccountInvalidationKeyForAccount as i, bankAccountTransfersInvalidationKeyForAccount as a, bankAccountsInvalidationKey as o } from "./index3.js";
11
11
  import { useMutation as s } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js
13
13
  function c() {
14
- let { client: c, organizationId: l } = t(), u = n(l);
14
+ let { client: c, organizationId: l } = n(), u = r(l);
15
15
  return s({
16
- ...r({
16
+ ...e({
17
17
  client: c,
18
18
  headers: u
19
19
  }),
20
- onSuccess: async (t, n) => {
20
+ onSuccess: async (e, n) => {
21
21
  let r = n.body.fromBankAccountId, s = n.body.toBankAccountId, u = [.../* @__PURE__ */ new Set([r, s])];
22
- await Promise.all([e(o({
22
+ await Promise.all([t(o({
23
23
  client: c,
24
24
  organizationId: l
25
- })), ...u.flatMap((t) => [e(a({
25
+ })), ...u.flatMap((e) => [t(a({
26
26
  client: c,
27
27
  organizationId: l,
28
- bankAccountId: t
29
- })), e(i({
28
+ bankAccountId: e
29
+ })), t(i({
30
30
  client: c,
31
31
  organizationId: l,
32
- bankAccountId: t
32
+ bankAccountId: e
33
33
  }))])]);
34
34
  }
35
35
  });
@@ -2,39 +2,39 @@
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 { createAchMoneyMovementMutation as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { createAchMoneyMovementMutation 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 { bankAccountInvalidationKeyForAccount as i, bankAccountTransfersInvalidationKeyForAccount as a, bankAccountsInvalidationKey as o } from "./index3.js";
11
11
  import { useMutation as s } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js
13
13
  function c() {
14
- let { client: c, organizationId: l } = t(), u = n(l);
14
+ let { client: c, organizationId: l } = n(), u = r(l);
15
15
  return s({
16
- ...r({
16
+ ...e({
17
17
  client: c,
18
18
  headers: u
19
19
  }),
20
- onSuccess: async (t, n) => {
20
+ onSuccess: async (e, n) => {
21
21
  let r = n.body.fromBankAccountId, s = n.body.toBankAccountId, u = n.body.type === "EXTERNAL_TO_INTERNAL" ? s : r;
22
22
  await Promise.all([
23
- e(o({
23
+ t(o({
24
24
  client: c,
25
25
  organizationId: l
26
26
  })),
27
- e(a({
27
+ t(a({
28
28
  client: c,
29
29
  organizationId: l,
30
30
  bankAccountId: r
31
31
  })),
32
- e(a({
32
+ t(a({
33
33
  client: c,
34
34
  organizationId: l,
35
35
  bankAccountId: s
36
36
  })),
37
- e(i({
37
+ t(i({
38
38
  client: c,
39
39
  organizationId: l,
40
40
  bankAccountId: u