@tesouro/embedded-components-react 0.5.116 → 0.5.118

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 (163) hide show
  1. package/README.md +6 -6
  2. package/dist/index.css +13 -6
  3. package/dist/index.d.ts +31 -4
  4. package/dist/index.js +5 -4
  5. package/dist/lib/MarketingWidget.d.ts +31 -4
  6. package/dist/lib/MarketingWidget.js +3 -2
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  21. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  22. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  23. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  44. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  45. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  46. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  48. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  49. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  50. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  51. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  52. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  53. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  54. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  55. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  58. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  59. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  60. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  66. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  67. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  68. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +3 -2
  69. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index3.js +1 -0
  70. package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index4.js +27 -23
  71. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index.js +4 -3
  72. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index2.js +3 -1
  73. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index3.js +8 -17
  74. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index4.js +10 -80
  75. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index5.js +16 -72
  76. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index6.js +45 -0
  77. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index7.js +109 -0
  78. package/dist/libs/tesouro-embedded-components-react/marketing-widget/ui/dist/index8.js +88 -0
  79. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  80. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  81. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  82. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  83. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  105. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  106. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  108. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  109. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  110. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  111. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  112. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  113. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  114. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  115. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  116. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  117. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  118. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  119. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  120. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  122. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  123. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  124. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  125. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  126. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  127. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  131. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  132. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  134. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  135. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  136. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  137. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  138. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  139. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  140. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  141. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  142. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  143. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  144. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  145. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  146. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  147. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  148. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  149. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  150. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  151. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  152. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  153. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  154. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  155. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  156. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  157. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  158. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  159. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  160. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  161. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  162. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  163. package/package.json +1 -1
@@ -2,98 +2,98 @@
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 { deleteCounterpartsId as r, patchCounterpartsId as i, postCounterparts as a } from "../../../data-access/dist/lib/rest/sdk.gen.js";
9
- import { getCounterpartsIdOptions as o, getCounterpartsOptions as s } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
10
- import { withAuthEpoch as c } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { deleteCounterpartsId as e, patchCounterpartsId as t, postCounterparts as n } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getCounterpartsIdOptions as r, getCounterpartsOptions as i } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as a } from "../../../data-access/dist/lib/withAuthEpoch.js";
8
+ import { invalidateAllClients as o } from "../../../data-access/dist/lib/clientRegistry.js";
9
+ import { useEmbedApi as s } from "../../../data-access/dist/lib/EmbedApiContext.js";
10
+ import { organizationHeaders as c } from "../../../data-access/dist/lib/organizationHeaders.js";
11
11
  import "../../../data-access/dist/index.js";
12
12
  import { counterpartInvalidationKey as l, counterpartsInvalidationKey as u } from "./index2.js";
13
13
  import { useMutation as d, useQuery as f } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js
15
- function p({ enabled: e, ...r } = {}) {
16
- let { client: i, organizationId: a, widgetToken: o, authEpoch: l } = t(), u = !!(a && o) && (e === !0 || e === void 0), d = s({
17
- query: r,
18
- client: i,
19
- headers: n(a)
15
+ function p({ enabled: e, ...t } = {}) {
16
+ let { client: n, organizationId: r, widgetToken: o, authEpoch: l } = s(), u = !!(r && o) && (e === !0 || e === void 0), d = i({
17
+ query: t,
18
+ client: n,
19
+ headers: c(r)
20
20
  });
21
21
  return f({
22
- ...c(d, l),
22
+ ...a(d, l),
23
23
  enabled: u
24
24
  });
25
25
  }
26
26
  function m(e) {
27
- let { client: r, organizationId: i, widgetToken: a, authEpoch: s } = t(), l = !!(i && a && e), u = o({
28
- client: r,
29
- headers: n(i),
27
+ let { client: t, organizationId: n, widgetToken: i, authEpoch: o } = s(), l = !!(n && i && e), u = r({
28
+ client: t,
29
+ headers: c(n),
30
30
  path: { counterpart_id: e ?? "" }
31
31
  });
32
32
  return f({
33
- ...c(u, s),
33
+ ...a(u, o),
34
34
  enabled: l
35
35
  });
36
36
  }
37
37
  function h() {
38
- let { client: r, organizationId: i } = t();
38
+ let { client: e, organizationId: t } = s();
39
39
  return d({
40
- mutationFn: async ({ body: e }) => {
41
- let { data: t } = await a({
42
- client: r,
43
- headers: n(i),
44
- body: e,
40
+ mutationFn: async ({ body: r }) => {
41
+ let { data: i } = await n({
42
+ client: e,
43
+ headers: c(t),
44
+ body: r,
45
45
  throwOnError: !0
46
46
  });
47
- return t;
47
+ return i;
48
48
  },
49
49
  onSuccess: async () => {
50
- await e(u({
51
- client: r,
52
- organizationId: i
50
+ await o(u({
51
+ client: e,
52
+ organizationId: t
53
53
  }));
54
54
  }
55
55
  });
56
56
  }
57
57
  function g() {
58
- let { client: r, organizationId: a } = t();
58
+ let { client: e, organizationId: n } = s();
59
59
  return d({
60
- mutationFn: async ({ path: e, body: t }) => {
61
- let { data: o } = await i({
62
- client: r,
63
- headers: n(a),
64
- path: e,
65
- body: t,
60
+ mutationFn: async ({ path: r, body: i }) => {
61
+ let { data: a } = await t({
62
+ client: e,
63
+ headers: c(n),
64
+ path: r,
65
+ body: i,
66
66
  throwOnError: !0
67
67
  });
68
- return o;
68
+ return a;
69
69
  },
70
- onSuccess: async (t, n) => {
71
- await Promise.all([e(u({
72
- client: r,
73
- organizationId: a
74
- })), e(l({
75
- client: r,
76
- organizationId: a,
77
- counterpartId: n.path.counterpart_id
70
+ onSuccess: async (t, r) => {
71
+ await Promise.all([o(u({
72
+ client: e,
73
+ organizationId: n
74
+ })), o(l({
75
+ client: e,
76
+ organizationId: n,
77
+ counterpartId: r.path.counterpart_id
78
78
  }))]);
79
79
  }
80
80
  });
81
81
  }
82
82
  function _() {
83
- let { client: i, organizationId: a } = t();
83
+ let { client: t, organizationId: n } = s();
84
84
  return d({
85
- mutationFn: async ({ path: e }) => {
86
- await r({
87
- client: i,
88
- headers: n(a),
89
- path: e,
85
+ mutationFn: async ({ path: r }) => {
86
+ await e({
87
+ client: t,
88
+ headers: c(n),
89
+ path: r,
90
90
  throwOnError: !0
91
91
  });
92
92
  },
93
93
  onSuccess: async () => {
94
- await e(u({
95
- client: i,
96
- organizationId: a
94
+ await o(u({
95
+ client: t,
96
+ organizationId: n
97
97
  }));
98
98
  }
99
99
  });
@@ -2,111 +2,111 @@
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 { deleteCounterpartsIdBankAccountsId as r, patchCounterpartsIdBankAccountsId as i, postCounterpartsIdBankAccounts as a, postCounterpartsIdBankAccountsIdMakeDefault as o } from "../../../data-access/dist/lib/rest/sdk.gen.js";
9
- import { getCounterpartsIdBankAccountsOptions as s } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
10
- import { withAuthEpoch as c } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { deleteCounterpartsIdBankAccountsId as e, patchCounterpartsIdBankAccountsId as t, postCounterpartsIdBankAccounts as n, postCounterpartsIdBankAccountsIdMakeDefault as r } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getCounterpartsIdBankAccountsOptions as i } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as a } from "../../../data-access/dist/lib/withAuthEpoch.js";
8
+ import { invalidateAllClients as o } from "../../../data-access/dist/lib/clientRegistry.js";
9
+ import { useEmbedApi as s } from "../../../data-access/dist/lib/EmbedApiContext.js";
10
+ import { organizationHeaders as c } from "../../../data-access/dist/lib/organizationHeaders.js";
11
11
  import "../../../data-access/dist/index.js";
12
12
  import { counterpartBankAccountsInvalidationKey as l, counterpartInvalidationKey as u } from "./index2.js";
13
13
  import { useMutation as d, useQuery as f } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js
15
- function p(e, { enabled: r = !0 } = {}) {
16
- let { client: i, organizationId: a, widgetToken: o, authEpoch: l } = t(), u = !!(r && a && o && e), d = s({
17
- client: i,
18
- headers: n(a),
15
+ function p(e, { enabled: t = !0 } = {}) {
16
+ let { client: n, organizationId: r, widgetToken: o, authEpoch: l } = s(), u = !!(t && r && o && e), d = i({
17
+ client: n,
18
+ headers: c(r),
19
19
  path: { counterpart_id: e ?? "" }
20
20
  });
21
21
  return f({
22
- ...c(d, l),
22
+ ...a(d, l),
23
23
  enabled: u
24
24
  });
25
25
  }
26
26
  function m() {
27
- let { client: r, organizationId: i } = t();
27
+ let { client: e, organizationId: t } = s();
28
28
  return d({
29
- mutationFn: async ({ path: e, body: t }) => {
30
- let { data: o } = await a({
31
- client: r,
32
- headers: n(i),
33
- path: e,
34
- body: t,
29
+ mutationFn: async ({ path: r, body: i }) => {
30
+ let { data: a } = await n({
31
+ client: e,
32
+ headers: c(t),
33
+ path: r,
34
+ body: i,
35
35
  throwOnError: !0
36
36
  });
37
- return o;
37
+ return a;
38
38
  },
39
- onSuccess: async (t, n) => {
40
- await e(l({
41
- client: r,
42
- organizationId: i,
43
- counterpartId: n.path.counterpart_id
39
+ onSuccess: async (n, r) => {
40
+ await o(l({
41
+ client: e,
42
+ organizationId: t,
43
+ counterpartId: r.path.counterpart_id
44
44
  }));
45
45
  }
46
46
  });
47
47
  }
48
48
  function h() {
49
- let { client: r, organizationId: a } = t();
49
+ let { client: e, organizationId: n } = s();
50
50
  return d({
51
- mutationFn: async ({ path: e, body: t }) => {
52
- let { data: o } = await i({
53
- client: r,
54
- headers: n(a),
55
- path: e,
56
- body: t,
51
+ mutationFn: async ({ path: r, body: i }) => {
52
+ let { data: a } = await t({
53
+ client: e,
54
+ headers: c(n),
55
+ path: r,
56
+ body: i,
57
57
  throwOnError: !0
58
58
  });
59
- return o;
59
+ return a;
60
60
  },
61
- onSuccess: async (t, n) => {
62
- await e(l({
63
- client: r,
64
- organizationId: a,
65
- counterpartId: n.path.counterpart_id
61
+ onSuccess: async (t, r) => {
62
+ await o(l({
63
+ client: e,
64
+ organizationId: n,
65
+ counterpartId: r.path.counterpart_id
66
66
  }));
67
67
  }
68
68
  });
69
69
  }
70
70
  function g() {
71
- let { client: i, organizationId: a } = t();
71
+ let { client: t, organizationId: n } = s();
72
72
  return d({
73
- mutationFn: async ({ path: e }) => {
74
- await r({
75
- client: i,
76
- headers: n(a),
77
- path: e,
73
+ mutationFn: async ({ path: r }) => {
74
+ await e({
75
+ client: t,
76
+ headers: c(n),
77
+ path: r,
78
78
  throwOnError: !0
79
79
  });
80
80
  },
81
- onSuccess: async (t, n) => {
82
- await e(l({
83
- client: i,
84
- organizationId: a,
85
- counterpartId: n.path.counterpart_id
81
+ onSuccess: async (e, r) => {
82
+ await o(l({
83
+ client: t,
84
+ organizationId: n,
85
+ counterpartId: r.path.counterpart_id
86
86
  }));
87
87
  }
88
88
  });
89
89
  }
90
90
  function _() {
91
- let { client: r, organizationId: i } = t();
91
+ let { client: e, organizationId: t } = s();
92
92
  return d({
93
- mutationFn: async ({ path: e }) => {
94
- await o({
95
- client: r,
96
- headers: n(i),
97
- path: e,
93
+ mutationFn: async ({ path: n }) => {
94
+ await r({
95
+ client: e,
96
+ headers: c(t),
97
+ path: n,
98
98
  throwOnError: !0
99
99
  });
100
100
  },
101
- onSuccess: async (t, n) => {
102
- await Promise.all([e(l({
103
- client: r,
104
- organizationId: i,
105
- counterpartId: n.path.counterpart_id
106
- })), e(u({
107
- client: r,
108
- organizationId: i,
109
- counterpartId: n.path.counterpart_id
101
+ onSuccess: async (n, r) => {
102
+ await Promise.all([o(l({
103
+ client: e,
104
+ organizationId: t,
105
+ counterpartId: r.path.counterpart_id
106
+ })), o(u({
107
+ client: e,
108
+ organizationId: t,
109
+ counterpartId: r.path.counterpart_id
110
110
  }))]);
111
111
  }
112
112
  });
@@ -2,82 +2,82 @@
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 { patchCounterpartsIdAddressesId as r, postCounterpartsIdAddresses as i } from "../../../data-access/dist/lib/rest/sdk.gen.js";
9
- import { getCounterpartsIdAddressesOptions as a } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
10
- import { withAuthEpoch as o } from "../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { patchCounterpartsIdAddressesId as e, postCounterpartsIdAddresses as t } from "../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getCounterpartsIdAddressesOptions as n } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { withAuthEpoch as r } from "../../../data-access/dist/lib/withAuthEpoch.js";
8
+ import { invalidateAllClients as i } from "../../../data-access/dist/lib/clientRegistry.js";
9
+ import { useEmbedApi as a } from "../../../data-access/dist/lib/EmbedApiContext.js";
10
+ import { organizationHeaders as o } from "../../../data-access/dist/lib/organizationHeaders.js";
11
11
  import "../../../data-access/dist/index.js";
12
12
  import { counterpartAddressesInvalidationKey as s, counterpartInvalidationKey as c } from "./index2.js";
13
13
  import { useMutation as l, useQueries as u, useQuery as d } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js
15
15
  function f(e) {
16
- let { client: r, organizationId: i, widgetToken: s, authEpoch: c } = t(), l = !!(i && s && e), u = a({
17
- client: r,
18
- headers: n(i),
16
+ let { client: t, organizationId: i, widgetToken: s, authEpoch: c } = a(), l = !!(i && s && e), u = n({
17
+ client: t,
18
+ headers: o(i),
19
19
  path: { counterpart_id: e ?? "" }
20
20
  });
21
21
  return d({
22
- ...o(u, c),
22
+ ...r(u, c),
23
23
  enabled: l
24
24
  });
25
25
  }
26
- function p({ counterpartIds: e, enabled: r }) {
27
- let { client: i, organizationId: s, widgetToken: c, authEpoch: l } = t(), d = !!(s && c) && e.length > 0 && (r === !0 || r === void 0);
26
+ function p({ counterpartIds: e, enabled: t }) {
27
+ let { client: i, organizationId: s, widgetToken: c, authEpoch: l } = a(), d = !!(s && c) && e.length > 0 && (t === !0 || t === void 0);
28
28
  return u({ queries: e.map((e) => ({
29
- ...o(a({
29
+ ...r(n({
30
30
  client: i,
31
- headers: n(s),
31
+ headers: o(s),
32
32
  path: { counterpart_id: e }
33
33
  }), l),
34
34
  enabled: d && !!e
35
35
  })) });
36
36
  }
37
37
  function m() {
38
- let { client: r, organizationId: a } = t();
38
+ let { client: e, organizationId: n } = a();
39
39
  return l({
40
- mutationFn: async ({ path: e, body: t }) => {
41
- let { data: o } = await i({
42
- client: r,
43
- headers: n(a),
44
- path: e,
45
- body: t,
40
+ mutationFn: async ({ path: r, body: i }) => {
41
+ let { data: a } = await t({
42
+ client: e,
43
+ headers: o(n),
44
+ path: r,
45
+ body: i,
46
46
  throwOnError: !0
47
47
  });
48
- return o;
48
+ return a;
49
49
  },
50
- onSuccess: async (t, n) => {
51
- await Promise.all([e(s({
52
- client: r,
53
- organizationId: a,
54
- counterpartId: n.path.counterpart_id
55
- })), e(c({
56
- client: r,
57
- organizationId: a,
58
- counterpartId: n.path.counterpart_id
50
+ onSuccess: async (t, r) => {
51
+ await Promise.all([i(s({
52
+ client: e,
53
+ organizationId: n,
54
+ counterpartId: r.path.counterpart_id
55
+ })), i(c({
56
+ client: e,
57
+ organizationId: n,
58
+ counterpartId: r.path.counterpart_id
59
59
  }))]);
60
60
  }
61
61
  });
62
62
  }
63
63
  function h() {
64
- let { client: i, organizationId: a } = t();
64
+ let { client: t, organizationId: n } = a();
65
65
  return l({
66
- mutationFn: async ({ path: e, body: t }) => {
67
- let { data: o } = await r({
68
- client: i,
69
- headers: n(a),
70
- path: e,
71
- body: t,
66
+ mutationFn: async ({ path: r, body: i }) => {
67
+ let { data: a } = await e({
68
+ client: t,
69
+ headers: o(n),
70
+ path: r,
71
+ body: i,
72
72
  throwOnError: !0
73
73
  });
74
- return o;
74
+ return a;
75
75
  },
76
- onSuccess: async (t, n) => {
77
- await e(s({
78
- client: i,
79
- organizationId: a,
80
- counterpartId: n.path.counterpart_id
76
+ onSuccess: async (e, r) => {
77
+ await i(s({
78
+ client: t,
79
+ organizationId: n,
80
+ counterpartId: r.path.counterpart_id
81
81
  }));
82
82
  }
83
83
  });
@@ -1,40 +1,41 @@
1
1
  import "./lib/finopsApiVersion.js";
2
- import { createClientSecretInstaller as e } from "./lib/scopedClientSecret.js";
3
- import { cancelAllClients as t, invalidateAllClients as n, registerQueryClient as r, removeInactiveFromAllClients as i, setAllClientsQueriesData as a, unregisterQueryClient as o } from "./lib/clientRegistry.js";
4
- import { cloneEmbeddedClient as s, createEmbeddedClient as c } from "./lib/createEmbeddedClient.js";
5
- import "./lib/widgetGatewayHosts.js";
6
- import { attachTransportInterceptors as l } from "./lib/transportInterceptors.js";
7
2
  import "./lib/rest/client.gen.js";
8
- import { EmbedApiProvider as u, useEmbedApi as d } from "./lib/EmbedApiContext.js";
9
- import { optionalOrganizationHeaders as f, organizationHeaders as p } from "./lib/organizationHeaders.js";
10
- import { bulkUpdateDepartmentMembers as m, bulkUpdateLocationMembers as h, bulkUpdateRoleMembers as g, createDepartment as _, createLocation as v, createUser as y, deactivateDepartment as b, deactivateLocation as x, deleteCounterpartsId as S, deleteCounterpartsIdBankAccountsId as C, deleteEntitiesIdLogo as w, deleteMeasureUnitsId as T, deletePayablesId as E, deletePayablesIdFile as D, deleteProductsId as O, deleteReceivablesId as k, deleteTagsId as A, downloadBankAccountTransactions as j, getApplicationStatus as M, getApprovalPolicies as N, getApprovalRequests as P, getBankAccountAccess as F, getCounterparts as I, getDepartment as L, getDepositableBankAccounts as R, getExternalBankAccountAccess as z, getLocation as B, getPayables as V, getPayablesId as H, getPayablesIdHistory as U, getPayablesIdLineItems as W, getPaymentRecords as G, getReceivables as K, getUsers as q, listDepartments as J, listLocations as Y, listRoles as X, manageBankAccountAccess as Z, patchCounterpartsId as Q, patchCounterpartsIdAddressesId as $, patchCounterpartsIdBankAccountsId as ee, patchEntitiesIdSettings as te, patchMeasureUnitsId as ne, patchPayablesId as re, patchProductsId as ie, patchReceivablesId as ae, patchTagsId as oe, postApprovalRequestsIdApprove as se, postApprovalRequestsIdReject as ce, postCounterparts as le, postCounterpartsIdAddresses as ue, postCounterpartsIdBankAccounts as de, postCounterpartsIdBankAccountsIdMakeDefault as fe, postMeasureUnits as pe, postPayables as me, postPayablesIdApprovePaymentOperation as he, postPayablesIdAttachFile as ge, postPayablesIdCancel as _e, postPayablesIdDuplicatesIdConfirm as ve, postPayablesIdDuplicatesIdDismiss as ye, postPayablesIdMarkAsPaid as be, postPayablesIdReject as xe, postPayablesIdReopen as Se, postPayablesIdSchedulePayment as Ce, postPayablesIdSubmitForApproval as we, postPayablesIdValidate as Te, postPayablesUploadFromFile as Ee, postPaymentIntentsIdCancel as De, postProducts as Oe, postReceivables as ke, postReceivablesIdAccept as Ae, postReceivablesIdCancel as je, postReceivablesIdClone as Me, postReceivablesIdDecline as Ne, postReceivablesIdIssue as Pe, postReceivablesIdMarkAsPaid as Fe, postReceivablesIdMarkAsPartiallyPaid as Ie, postReceivablesIdMarkAsUncollectible as Le, postReceivablesIdSend as Re, postTags as ze, putEntitiesIdLogo as Be, putPayablesIdLineItems as Ve, updateDepartment as He, updateLocation as Ue, updateUser as We } from "./lib/rest/sdk.gen.js";
11
- import { fetchWidgetInit as Ge } from "./lib/fetchWidgetInit.js";
12
- import { hasAnyScope as Ke } from "./lib/hasAnyScope.js";
13
- import { activateCreditCardMutation as qe, activateDebitCardMutation as Je, connectExternalBankAccountMutation as Ye, createAchMoneyMovementMutation as Xe, createApplicationMutation as Ze, createBankAccountMutation as Qe, createBookTransferMutation as $e, createCheckDepositMutation as et, createDebitCardMutation as tt, createVelocityControlMutation as nt, deleteApprovalPoliciesIdMutation as rt, deleteLedgerAccountsIdMutation as it, deleteReceiptsIdMutation as at, disableUserMutation as ot, getAnalyticsPayablesOptions as st, getAnalyticsPayablesQueryKey as ct, getAnalyticsReceivablesOptions as lt, getApplicationStatusOptions as ut, getApprovalPoliciesOptions as dt, getApprovalPoliciesQueryKey as ft, getApprovalRequestsOptions as pt, getApprovalRequestsQueryKey as mt, getBankAccountAccessQueryKey as ht, getBankAccountApplicationOptions as gt, getBankAccountOptions as _t, getBankAccountQueryKey as vt, getBankAccountTransactionsOptions as yt, getBankAccountTransactionsQueryKey as bt, getBankAccountTransfersOptions as xt, getBankAccountTransfersQueryKey as St, getBankAccountsQueryKey as Ct, getCounterpartsIdAddressesOptions as wt, getCounterpartsIdAddressesQueryKey as Tt, getCounterpartsIdBankAccountsOptions as Et, getCounterpartsIdBankAccountsQueryKey as Dt, getCounterpartsIdOptions as Ot, getCounterpartsIdQueryKey as kt, getCounterpartsOptions as At, getCounterpartsQueryKey as jt, getCreditCardByIdOptions as Mt, getCreditCardByIdQueryKey as Nt, getCreditCardsOptions as Pt, getCreditCardsQueryKey as Ft, getDebitCardByIdOptions as It, getDebitCardByIdQueryKey as Lt, getDebitCardCredentialsOptions as Rt, getDebitCardsOptions as zt, getDebitCardsQueryKey as Bt, getDepartmentOptions as Vt, getDepartmentQueryKey as Ht, getDepositableBankAccountsOptions as Ut, getDocumentsIdNextNumbersOptions as Wt, getDocumentsIdNextNumbersQueryKey as Gt, getEntitiesIdSettingsOptions as Kt, getEntitiesIdSettingsQueryKey as qt, getEntitiesMeOptions as Jt, getEntityUsersMyEntityOptions as Yt, getEntityUsersMyEntityQueryKey as Xt, getEntityUsersOptions as Zt, getExternalBankAccountAccessQueryKey as Qt, getExternalBankAccountsOptions as $t, getExternalBankAccountsQueryKey as en, getLedgerAccountsQueryKey as tn, getLocationOptions as nn, getLocationQueryKey as rn, getMeasureUnitsOptions as an, getMeasureUnitsQueryKey as on, getOrganizationOptions as sn, getPayablesIdHistoryOptions as cn, getPayablesIdHistoryQueryKey as ln, getPayablesIdLineItemsOptions as un, getPayablesIdLineItemsQueryKey as dn, getPayablesIdOptions as fn, getPayablesIdQueryKey as pn, getPayablesIdSuggestionsOptions as mn, getPayablesOptions as hn, getPayablesQueryKey as gn, getPaymentRecordsOptions as _n, getPaymentRecordsQueryKey as vn, getProductsIdOptions as yn, getProductsIdQueryKey as bn, getProductsOptions as xn, getProductsQueryKey as Sn, getReceiptsIdQueryKey as Cn, getReceiptsOptions as wn, getReceiptsQueryKey as Tn, getReceivablesIdHistoryOptions as En, getReceivablesIdHistoryQueryKey as Dn, getReceivablesIdMailsOptions as On, getReceivablesIdMailsQueryKey as kn, getReceivablesIdOptions as An, getReceivablesIdPdfLinkOptions as jn, getReceivablesIdPdfLinkQueryKey as Mn, getReceivablesIdQueryKey as Nn, getReceivablesOptions as Pn, getReceivablesQueryKey as Fn, getTagsOptions as In, getTagsQueryKey as Ln, getTransactionsIdQueryKey as Rn, getTransactionsOptions as zn, getTransactionsQueryKey as Bn, getTransactionsValidationsOptions as Vn, getTransactionsValidationsQueryKey as Hn, getUsersOptions as Un, getUsersQueryKey as Wn, getVelocityControlsQueryKey as Gn, grantBankAccountAccessMutation as Kn, grantExternalBankAccountAccessMutation as qn, linkExternalBankAccountMutation as Jn, listDepartmentsOptions as Yn, listDepartmentsQueryKey as Xn, listLocationsOptions as Zn, listLocationsQueryKey as Qn, listRolesQueryKey as $n, manageDebitCardAccessMutation as er, patchApprovalPoliciesIdMutation as tr, patchEntitiesIdSettingsMutation as nr, patchLedgerAccountsIdMutation as rr, patchReceiptsIdMutation as ir, postApprovalPoliciesMutation as ar, postLedgerAccountsMutation as or, putTransactionsValidationsMutation as sr, setDebitCardLockStatusMutation as cr, submitApplicationMutation as lr, unlinkExternalBankAccountMutation as ur, updateApplicationMutation as dr, updateBankAccountMutation as fr, updateDebitCardMutation as pr, updateExternalBankAccountMutation as mr, validateExternalBankAccountMutation as hr, verifyDebitCardMutation as gr } from "./lib/rest/@tanstack/react-query.gen.js";
3
+ import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteMeasureUnitsId as d, deletePayablesId as f, deletePayablesIdFile as p, deleteProductsId as m, deleteReceivablesId as h, deleteTagsId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getCounterparts as S, getDepartment as C, getDepositableBankAccounts as w, getExternalBankAccountAccess as T, getLocation as E, getPayables as D, getPayablesId as O, getPayablesIdHistory as k, getPayablesIdLineItems as A, getPaymentRecords as j, getReceivables as M, getUsers as N, listDepartments as P, listLocations as F, listRoles as I, manageBankAccountAccess as L, patchCounterpartsId as R, patchCounterpartsIdAddressesId as z, patchCounterpartsIdBankAccountsId as B, patchEntitiesIdSettings as V, patchMeasureUnitsId as H, patchPayablesId as U, patchProductsId as W, patchReceivablesId as G, patchTagsId as K, postApprovalRequestsIdApprove as q, postApprovalRequestsIdReject as J, postCounterparts as Y, postCounterpartsIdAddresses as X, postCounterpartsIdBankAccounts as Z, postCounterpartsIdBankAccountsIdMakeDefault as Q, postMeasureUnits as $, postPayables as ee, postPayablesIdApprovePaymentOperation as te, postPayablesIdAttachFile as ne, postPayablesIdCancel as re, postPayablesIdDuplicatesIdConfirm as ie, postPayablesIdDuplicatesIdDismiss as ae, postPayablesIdMarkAsPaid as oe, postPayablesIdReject as se, postPayablesIdReopen as ce, postPayablesIdSchedulePayment as le, postPayablesIdSubmitForApproval as ue, postPayablesIdValidate as de, postPayablesUploadFromFile as fe, postPaymentIntentsIdCancel as pe, postProducts as me, postReceivables as he, postReceivablesIdAccept as ge, postReceivablesIdCancel as _e, postReceivablesIdClone as ve, postReceivablesIdDecline as ye, postReceivablesIdIssue as be, postReceivablesIdMarkAsPaid as xe, postReceivablesIdMarkAsPartiallyPaid as Se, postReceivablesIdMarkAsUncollectible as Ce, postReceivablesIdSend as we, postTags as Te, putEntitiesIdLogo as Ee, putPayablesIdLineItems as De, updateDepartment as Oe, updateLocation as ke, updateUser as Ae } from "./lib/rest/sdk.gen.js";
4
+ import { activateCreditCardMutation as je, activateDebitCardMutation as Me, connectExternalBankAccountMutation as Ne, createAchMoneyMovementMutation as Pe, createApplicationMutation as Fe, createBankAccountMutation as Ie, createBookTransferMutation as Le, createCheckDepositMutation as Re, createDebitCardMutation as ze, createVelocityControlMutation as Be, deleteApprovalPoliciesIdMutation as Ve, deleteLedgerAccountsIdMutation as He, deleteReceiptsIdMutation as Ue, disableUserMutation as We, getAnalyticsPayablesOptions as Ge, getAnalyticsPayablesQueryKey as Ke, getAnalyticsReceivablesOptions as qe, getApprovalPoliciesOptions as Je, getApprovalPoliciesQueryKey as Ye, getApprovalRequestsOptions as Xe, getApprovalRequestsQueryKey as Ze, getBankAccountAccessQueryKey as Qe, getBankAccountApplicationOptions as $e, getBankAccountOptions as et, getBankAccountQueryKey as tt, getBankAccountTransactionsOptions as nt, getBankAccountTransactionsQueryKey as rt, getBankAccountTransfersOptions as it, getBankAccountTransfersQueryKey as at, getBankAccountsQueryKey as ot, getCounterpartsIdAddressesOptions as st, getCounterpartsIdAddressesQueryKey as ct, getCounterpartsIdBankAccountsOptions as lt, getCounterpartsIdBankAccountsQueryKey as ut, getCounterpartsIdOptions as dt, getCounterpartsIdQueryKey as ft, getCounterpartsOptions as pt, getCounterpartsQueryKey as mt, getCreditCardByIdOptions as ht, getCreditCardByIdQueryKey as gt, getCreditCardsOptions as _t, getCreditCardsQueryKey as vt, getDebitCardByIdOptions as yt, getDebitCardByIdQueryKey as bt, getDebitCardCredentialsOptions as xt, getDebitCardsOptions as St, getDebitCardsQueryKey as Ct, getDepartmentOptions as wt, getDepartmentQueryKey as Tt, getDepositableBankAccountsOptions as Et, getDocumentsIdNextNumbersOptions as Dt, getDocumentsIdNextNumbersQueryKey as Ot, getEntitiesIdSettingsOptions as kt, getEntitiesIdSettingsQueryKey as At, getEntitiesMeOptions as jt, getEntityUsersMyEntityOptions as Mt, getEntityUsersMyEntityQueryKey as Nt, getEntityUsersOptions as Pt, getExternalBankAccountAccessQueryKey as Ft, getExternalBankAccountsOptions as It, getExternalBankAccountsQueryKey as Lt, getLedgerAccountsQueryKey as Rt, getLocationOptions as zt, getLocationQueryKey as Bt, getMeasureUnitsOptions as Vt, getMeasureUnitsQueryKey as Ht, getOrganizationOptions as Ut, getPayablesIdHistoryOptions as Wt, getPayablesIdHistoryQueryKey as Gt, getPayablesIdLineItemsOptions as Kt, getPayablesIdLineItemsQueryKey as qt, getPayablesIdOptions as Jt, getPayablesIdQueryKey as Yt, getPayablesIdSuggestionsOptions as Xt, getPayablesOptions as Zt, getPayablesQueryKey as Qt, getPaymentRecordsOptions as $t, getPaymentRecordsQueryKey as en, getProductsIdOptions as tn, getProductsIdQueryKey as nn, getProductsOptions as rn, getProductsQueryKey as an, getReceiptsIdQueryKey as on, getReceiptsOptions as sn, getReceiptsQueryKey as cn, getReceivablesIdHistoryOptions as ln, getReceivablesIdHistoryQueryKey as un, getReceivablesIdMailsOptions as dn, getReceivablesIdMailsQueryKey as fn, getReceivablesIdOptions as pn, getReceivablesIdPdfLinkOptions as mn, getReceivablesIdPdfLinkQueryKey as hn, getReceivablesIdQueryKey as gn, getReceivablesOptions as _n, getReceivablesQueryKey as vn, getTagsOptions as yn, getTagsQueryKey as bn, getTransactionsIdQueryKey as xn, getTransactionsOptions as Sn, getTransactionsQueryKey as Cn, getTransactionsValidationsOptions as wn, getTransactionsValidationsQueryKey as Tn, getUsersOptions as En, getUsersQueryKey as Dn, getVelocityControlsQueryKey as On, grantBankAccountAccessMutation as kn, grantExternalBankAccountAccessMutation as An, linkExternalBankAccountMutation as jn, listDepartmentsOptions as Mn, listDepartmentsQueryKey as Nn, listLocationsOptions as Pn, listLocationsQueryKey as Fn, listRolesQueryKey as In, manageDebitCardAccessMutation as Ln, patchApprovalPoliciesIdMutation as Rn, patchEntitiesIdSettingsMutation as zn, patchLedgerAccountsIdMutation as Bn, patchReceiptsIdMutation as Vn, postApprovalPoliciesMutation as Hn, postLedgerAccountsMutation as Un, putTransactionsValidationsMutation as Wn, setDebitCardLockStatusMutation as Gn, submitApplicationMutation as Kn, unlinkExternalBankAccountMutation as qn, updateApplicationMutation as Jn, updateBankAccountMutation as Yn, updateDebitCardMutation as Xn, updateExternalBankAccountMutation as Zn, validateExternalBankAccountMutation as Qn, verifyDebitCardMutation as $n } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { withAuthEpoch as er } from "./lib/withAuthEpoch.js";
6
+ import { applicationStatusInvalidationKey as tr, applicationStatusQueryOptions as nr } from "./lib/applicationStatusQueryOptions.js";
7
+ import { createClientSecretInstaller as rr } from "./lib/scopedClientSecret.js";
8
+ import { cancelAllClients as ir, invalidateAllClients as ar, registerQueryClient as or, removeInactiveFromAllClients as sr, setAllClientsQueriesData as cr, unregisterQueryClient as lr } from "./lib/clientRegistry.js";
9
+ import { cloneEmbeddedClient as ur, createEmbeddedClient as dr } from "./lib/createEmbeddedClient.js";
10
+ import "./lib/widgetGatewayHosts.js";
11
+ import { attachTransportInterceptors as fr } from "./lib/transportInterceptors.js";
12
+ import { EmbedApiProvider as pr, useEmbedApi as mr } from "./lib/EmbedApiContext.js";
13
+ import { optionalOrganizationHeaders as hr, organizationHeaders as gr } from "./lib/organizationHeaders.js";
14
+ import { fetchWidgetInit as _r } from "./lib/fetchWidgetInit.js";
15
+ import { hasAnyScope as vr } from "./lib/hasAnyScope.js";
14
16
  import "./lib/queryKeys.js";
15
- import { withAuthEpoch as _r } from "./lib/withAuthEpoch.js";
16
- import { useCurrentUserQuery as vr } from "./lib/useCurrentUserQuery.js";
17
+ import { useCurrentUserQuery as yr } from "./lib/useCurrentUserQuery.js";
17
18
  import "./lib/apiErrorStatus.js";
18
- import { isApiConflictError as yr } from "./lib/isApiConflictError.js";
19
- import { isApiForbiddenError as br } from "./lib/isApiForbiddenError.js";
20
- import { isApiNotFoundError as xr } from "./lib/isApiNotFoundError.js";
21
- import { isApiUnprocessableError as Sr } from "./lib/isApiUnprocessableError.js";
19
+ import { isApiConflictError as br } from "./lib/isApiConflictError.js";
20
+ import { isApiForbiddenError as xr } from "./lib/isApiForbiddenError.js";
21
+ import { isApiNotFoundError as Sr } from "./lib/isApiNotFoundError.js";
22
+ import { isApiUnprocessableError as Cr } from "./lib/isApiUnprocessableError.js";
22
23
  import "./lib/isUserDataNotFoundError.js";
23
- import { useGetUserDataQuery as Cr } from "./lib/useGetUserDataQuery.js";
24
- import { useUpsertUserDataMutation as wr } from "./lib/useUpsertUserDataMutation.js";
24
+ import { useGetUserDataQuery as wr } from "./lib/useGetUserDataQuery.js";
25
+ import { useUpsertUserDataMutation as Tr } from "./lib/useUpsertUserDataMutation.js";
25
26
  import "./lib/rest/zod.gen.js";
26
- import { Scope as Tr } from "./lib/scopes.js";
27
- import { getAllPagesNextPageParam as Er, getAllPagesNextPaginationTokenParam as Dr, isAllPagesResolving as Or, useAutoFetchNextPage as kr } from "./lib/allPages.js";
28
- import { useAllBankAccountsQuery as Ar } from "./lib/bank-account/useAllBankAccountsQuery.js";
29
- import { useAllExternalBankAccountsQuery as jr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
30
- import { useAllMerchantCategoryGroupsQuery as Mr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
31
- import { useAllLedgerAccountsQuery as Nr, useLedgerAccountsQuery as Pr } from "./lib/reference-data/useLedgerAccountsQuery.js";
32
- import { usePaymentTermsQuery as Fr } from "./lib/reference-data/usePaymentTermsQuery.js";
33
- import { useAllOrganizationRolesQuery as Ir } from "./lib/role/useAllOrganizationRolesQuery.js";
34
- import { useRolePermissionsQueries as Lr } from "./lib/role/useRolePermissionsQueries.js";
35
- import { useAllOrganizationUsersQuery as Rr } from "./lib/user/useAllOrganizationUsersQuery.js";
36
- import { useAcceptWidgetDisclosures as zr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
37
- import { useDisclosuresQuery as Br } from "./lib/disclosures/useDisclosuresQuery.js";
38
- import { OnboardingSuppressionReason as Vr } from "./lib/onboardingSuppressionReason.js";
39
- import { useOrganizationOnboardingSuppression as Hr } from "./lib/useOrganizationOnboardingSuppression.js";
40
- export { u as EmbedApiProvider, Vr as OnboardingSuppressionReason, Tr as Scope, qe as activateCreditCardMutation, Je as activateDebitCardMutation, l as attachTransportInterceptors, m as bulkUpdateDepartmentMembers, h as bulkUpdateLocationMembers, g as bulkUpdateRoleMembers, t as cancelAllClients, s as cloneEmbeddedClient, Ye as connectExternalBankAccountMutation, Xe as createAchMoneyMovementMutation, Ze as createApplicationMutation, Qe as createBankAccountMutation, $e as createBookTransferMutation, et as createCheckDepositMutation, e as createClientSecretInstaller, tt as createDebitCardMutation, _ as createDepartment, c as createEmbeddedClient, v as createLocation, y as createUser, nt as createVelocityControlMutation, b as deactivateDepartment, x as deactivateLocation, rt as deleteApprovalPoliciesIdMutation, S as deleteCounterpartsId, C as deleteCounterpartsIdBankAccountsId, w as deleteEntitiesIdLogo, it as deleteLedgerAccountsIdMutation, T as deleteMeasureUnitsId, E as deletePayablesId, D as deletePayablesIdFile, O as deleteProductsId, at as deleteReceiptsIdMutation, k as deleteReceivablesId, A as deleteTagsId, ot as disableUserMutation, j as downloadBankAccountTransactions, Ge as fetchWidgetInit, Er as getAllPagesNextPageParam, Dr as getAllPagesNextPaginationTokenParam, st as getAnalyticsPayablesOptions, ct as getAnalyticsPayablesQueryKey, lt as getAnalyticsReceivablesOptions, M as getApplicationStatus, ut as getApplicationStatusOptions, N as getApprovalPolicies, dt as getApprovalPoliciesOptions, ft as getApprovalPoliciesQueryKey, P as getApprovalRequests, pt as getApprovalRequestsOptions, mt as getApprovalRequestsQueryKey, F as getBankAccountAccess, ht as getBankAccountAccessQueryKey, gt as getBankAccountApplicationOptions, _t as getBankAccountOptions, vt as getBankAccountQueryKey, yt as getBankAccountTransactionsOptions, bt as getBankAccountTransactionsQueryKey, xt as getBankAccountTransfersOptions, St as getBankAccountTransfersQueryKey, Ct as getBankAccountsQueryKey, I as getCounterparts, wt as getCounterpartsIdAddressesOptions, Tt as getCounterpartsIdAddressesQueryKey, Et as getCounterpartsIdBankAccountsOptions, Dt as getCounterpartsIdBankAccountsQueryKey, Ot as getCounterpartsIdOptions, kt as getCounterpartsIdQueryKey, At as getCounterpartsOptions, jt as getCounterpartsQueryKey, Mt as getCreditCardByIdOptions, Nt as getCreditCardByIdQueryKey, Pt as getCreditCardsOptions, Ft as getCreditCardsQueryKey, It as getDebitCardByIdOptions, Lt as getDebitCardByIdQueryKey, Rt as getDebitCardCredentialsOptions, zt as getDebitCardsOptions, Bt as getDebitCardsQueryKey, L as getDepartment, Vt as getDepartmentOptions, Ht as getDepartmentQueryKey, R as getDepositableBankAccounts, Ut as getDepositableBankAccountsOptions, Wt as getDocumentsIdNextNumbersOptions, Gt as getDocumentsIdNextNumbersQueryKey, Kt as getEntitiesIdSettingsOptions, qt as getEntitiesIdSettingsQueryKey, Jt as getEntitiesMeOptions, Yt as getEntityUsersMyEntityOptions, Xt as getEntityUsersMyEntityQueryKey, Zt as getEntityUsersOptions, z as getExternalBankAccountAccess, Qt as getExternalBankAccountAccessQueryKey, $t as getExternalBankAccountsOptions, en as getExternalBankAccountsQueryKey, tn as getLedgerAccountsQueryKey, B as getLocation, nn as getLocationOptions, rn as getLocationQueryKey, an as getMeasureUnitsOptions, on as getMeasureUnitsQueryKey, sn as getOrganizationOptions, V as getPayables, H as getPayablesId, U as getPayablesIdHistory, cn as getPayablesIdHistoryOptions, ln as getPayablesIdHistoryQueryKey, W as getPayablesIdLineItems, un as getPayablesIdLineItemsOptions, dn as getPayablesIdLineItemsQueryKey, fn as getPayablesIdOptions, pn as getPayablesIdQueryKey, mn as getPayablesIdSuggestionsOptions, hn as getPayablesOptions, gn as getPayablesQueryKey, G as getPaymentRecords, _n as getPaymentRecordsOptions, vn as getPaymentRecordsQueryKey, yn as getProductsIdOptions, bn as getProductsIdQueryKey, xn as getProductsOptions, Sn as getProductsQueryKey, Cn as getReceiptsIdQueryKey, wn as getReceiptsOptions, Tn as getReceiptsQueryKey, K as getReceivables, En as getReceivablesIdHistoryOptions, Dn as getReceivablesIdHistoryQueryKey, On as getReceivablesIdMailsOptions, kn as getReceivablesIdMailsQueryKey, An as getReceivablesIdOptions, jn as getReceivablesIdPdfLinkOptions, Mn as getReceivablesIdPdfLinkQueryKey, Nn as getReceivablesIdQueryKey, Pn as getReceivablesOptions, Fn as getReceivablesQueryKey, In as getTagsOptions, Ln as getTagsQueryKey, Rn as getTransactionsIdQueryKey, zn as getTransactionsOptions, Bn as getTransactionsQueryKey, Vn as getTransactionsValidationsOptions, Hn as getTransactionsValidationsQueryKey, q as getUsers, Un as getUsersOptions, Wn as getUsersQueryKey, Gn as getVelocityControlsQueryKey, Kn as grantBankAccountAccessMutation, qn as grantExternalBankAccountAccessMutation, Ke as hasAnyScope, n as invalidateAllClients, Or as isAllPagesResolving, yr as isApiConflictError, br as isApiForbiddenError, xr as isApiNotFoundError, Sr as isApiUnprocessableError, Jn as linkExternalBankAccountMutation, J as listDepartments, Yn as listDepartmentsOptions, Xn as listDepartmentsQueryKey, Y as listLocations, Zn as listLocationsOptions, Qn as listLocationsQueryKey, X as listRoles, $n as listRolesQueryKey, Z as manageBankAccountAccess, er as manageDebitCardAccessMutation, f as optionalOrganizationHeaders, p as organizationHeaders, tr as patchApprovalPoliciesIdMutation, Q as patchCounterpartsId, $ as patchCounterpartsIdAddressesId, ee as patchCounterpartsIdBankAccountsId, te as patchEntitiesIdSettings, nr as patchEntitiesIdSettingsMutation, rr as patchLedgerAccountsIdMutation, ne as patchMeasureUnitsId, re as patchPayablesId, ie as patchProductsId, ir as patchReceiptsIdMutation, ae as patchReceivablesId, oe as patchTagsId, ar as postApprovalPoliciesMutation, se as postApprovalRequestsIdApprove, ce as postApprovalRequestsIdReject, le as postCounterparts, ue as postCounterpartsIdAddresses, de as postCounterpartsIdBankAccounts, fe as postCounterpartsIdBankAccountsIdMakeDefault, or as postLedgerAccountsMutation, pe as postMeasureUnits, me as postPayables, he as postPayablesIdApprovePaymentOperation, ge as postPayablesIdAttachFile, _e as postPayablesIdCancel, ve as postPayablesIdDuplicatesIdConfirm, ye as postPayablesIdDuplicatesIdDismiss, be as postPayablesIdMarkAsPaid, xe as postPayablesIdReject, Se as postPayablesIdReopen, Ce as postPayablesIdSchedulePayment, we as postPayablesIdSubmitForApproval, Te as postPayablesIdValidate, Ee as postPayablesUploadFromFile, De as postPaymentIntentsIdCancel, Oe as postProducts, ke as postReceivables, Ae as postReceivablesIdAccept, je as postReceivablesIdCancel, Me as postReceivablesIdClone, Ne as postReceivablesIdDecline, Pe as postReceivablesIdIssue, Fe as postReceivablesIdMarkAsPaid, Ie as postReceivablesIdMarkAsPartiallyPaid, Le as postReceivablesIdMarkAsUncollectible, Re as postReceivablesIdSend, ze as postTags, Be as putEntitiesIdLogo, Ve as putPayablesIdLineItems, sr as putTransactionsValidationsMutation, r as registerQueryClient, i as removeInactiveFromAllClients, a as setAllClientsQueriesData, cr as setDebitCardLockStatusMutation, lr as submitApplicationMutation, ur as unlinkExternalBankAccountMutation, o as unregisterQueryClient, dr as updateApplicationMutation, fr as updateBankAccountMutation, pr as updateDebitCardMutation, He as updateDepartment, mr as updateExternalBankAccountMutation, Ue as updateLocation, We as updateUser, zr as useAcceptWidgetDisclosures, Ar as useAllBankAccountsQuery, jr as useAllExternalBankAccountsQuery, Nr as useAllLedgerAccountsQuery, Mr as useAllMerchantCategoryGroupsQuery, Ir as useAllOrganizationRolesQuery, Rr as useAllOrganizationUsersQuery, kr as useAutoFetchNextPage, vr as useCurrentUserQuery, Br as useDisclosuresQuery, d as useEmbedApi, Cr as useGetUserDataQuery, Pr as useLedgerAccountsQuery, Hr as useOrganizationOnboardingSuppression, Fr as usePaymentTermsQuery, Lr as useRolePermissionsQueries, wr as useUpsertUserDataMutation, hr as validateExternalBankAccountMutation, gr as verifyDebitCardMutation, _r as withAuthEpoch };
27
+ import { Scope as Er } from "./lib/scopes.js";
28
+ import { getAllPagesNextPageParam as Dr, getAllPagesNextPaginationTokenParam as Or, isAllPagesResolving as kr, useAutoFetchNextPage as Ar } from "./lib/allPages.js";
29
+ import { useAllBankAccountsQuery as jr } from "./lib/bank-account/useAllBankAccountsQuery.js";
30
+ import { useAllExternalBankAccountsQuery as Mr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
31
+ import { useAllMerchantCategoryGroupsQuery as Nr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
32
+ import { useAllLedgerAccountsQuery as Pr, useLedgerAccountsQuery as Fr } from "./lib/reference-data/useLedgerAccountsQuery.js";
33
+ import { usePaymentTermsQuery as Ir } from "./lib/reference-data/usePaymentTermsQuery.js";
34
+ import { useAllOrganizationRolesQuery as Lr } from "./lib/role/useAllOrganizationRolesQuery.js";
35
+ import { useRolePermissionsQueries as Rr } from "./lib/role/useRolePermissionsQueries.js";
36
+ import { useAllOrganizationUsersQuery as zr } from "./lib/user/useAllOrganizationUsersQuery.js";
37
+ import { useAcceptWidgetDisclosures as Br } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
38
+ import { useDisclosuresQuery as Vr } from "./lib/disclosures/useDisclosuresQuery.js";
39
+ import { OnboardingSuppressionReason as Hr } from "./lib/onboardingSuppressionReason.js";
40
+ import { useOrganizationOnboardingSuppression as Ur } from "./lib/useOrganizationOnboardingSuppression.js";
41
+ export { pr as EmbedApiProvider, Hr as OnboardingSuppressionReason, Er as Scope, je as activateCreditCardMutation, Me as activateDebitCardMutation, tr as applicationStatusInvalidationKey, nr as applicationStatusQueryOptions, fr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, ir as cancelAllClients, ur as cloneEmbeddedClient, Ne as connectExternalBankAccountMutation, Pe as createAchMoneyMovementMutation, Fe as createApplicationMutation, Ie as createBankAccountMutation, Le as createBookTransferMutation, Re as createCheckDepositMutation, rr as createClientSecretInstaller, ze as createDebitCardMutation, r as createDepartment, dr as createEmbeddedClient, i as createLocation, a as createUser, Be as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Ve as deleteApprovalPoliciesIdMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, He as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ue as deleteReceiptsIdMutation, h as deleteReceivablesId, g as deleteTagsId, We as disableUserMutation, _ as downloadBankAccountTransactions, _r as fetchWidgetInit, Dr as getAllPagesNextPageParam, Or as getAllPagesNextPaginationTokenParam, Ge as getAnalyticsPayablesOptions, Ke as getAnalyticsPayablesQueryKey, qe as getAnalyticsReceivablesOptions, v as getApplicationStatus, y as getApprovalPolicies, Je as getApprovalPoliciesOptions, Ye as getApprovalPoliciesQueryKey, b as getApprovalRequests, Xe as getApprovalRequestsOptions, Ze as getApprovalRequestsQueryKey, x as getBankAccountAccess, Qe as getBankAccountAccessQueryKey, $e as getBankAccountApplicationOptions, et as getBankAccountOptions, tt as getBankAccountQueryKey, nt as getBankAccountTransactionsOptions, rt as getBankAccountTransactionsQueryKey, it as getBankAccountTransfersOptions, at as getBankAccountTransfersQueryKey, ot as getBankAccountsQueryKey, S as getCounterparts, st as getCounterpartsIdAddressesOptions, ct as getCounterpartsIdAddressesQueryKey, lt as getCounterpartsIdBankAccountsOptions, ut as getCounterpartsIdBankAccountsQueryKey, dt as getCounterpartsIdOptions, ft as getCounterpartsIdQueryKey, pt as getCounterpartsOptions, mt as getCounterpartsQueryKey, ht as getCreditCardByIdOptions, gt as getCreditCardByIdQueryKey, _t as getCreditCardsOptions, vt as getCreditCardsQueryKey, yt as getDebitCardByIdOptions, bt as getDebitCardByIdQueryKey, xt as getDebitCardCredentialsOptions, St as getDebitCardsOptions, Ct as getDebitCardsQueryKey, C as getDepartment, wt as getDepartmentOptions, Tt as getDepartmentQueryKey, w as getDepositableBankAccounts, Et as getDepositableBankAccountsOptions, Dt as getDocumentsIdNextNumbersOptions, Ot as getDocumentsIdNextNumbersQueryKey, kt as getEntitiesIdSettingsOptions, At as getEntitiesIdSettingsQueryKey, jt as getEntitiesMeOptions, Mt as getEntityUsersMyEntityOptions, Nt as getEntityUsersMyEntityQueryKey, Pt as getEntityUsersOptions, T as getExternalBankAccountAccess, Ft as getExternalBankAccountAccessQueryKey, It as getExternalBankAccountsOptions, Lt as getExternalBankAccountsQueryKey, Rt as getLedgerAccountsQueryKey, E as getLocation, zt as getLocationOptions, Bt as getLocationQueryKey, Vt as getMeasureUnitsOptions, Ht as getMeasureUnitsQueryKey, Ut as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Wt as getPayablesIdHistoryOptions, Gt as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Kt as getPayablesIdLineItemsOptions, qt as getPayablesIdLineItemsQueryKey, Jt as getPayablesIdOptions, Yt as getPayablesIdQueryKey, Xt as getPayablesIdSuggestionsOptions, Zt as getPayablesOptions, Qt as getPayablesQueryKey, j as getPaymentRecords, $t as getPaymentRecordsOptions, en as getPaymentRecordsQueryKey, tn as getProductsIdOptions, nn as getProductsIdQueryKey, rn as getProductsOptions, an as getProductsQueryKey, on as getReceiptsIdQueryKey, sn as getReceiptsOptions, cn as getReceiptsQueryKey, M as getReceivables, ln as getReceivablesIdHistoryOptions, un as getReceivablesIdHistoryQueryKey, dn as getReceivablesIdMailsOptions, fn as getReceivablesIdMailsQueryKey, pn as getReceivablesIdOptions, mn as getReceivablesIdPdfLinkOptions, hn as getReceivablesIdPdfLinkQueryKey, gn as getReceivablesIdQueryKey, _n as getReceivablesOptions, vn as getReceivablesQueryKey, yn as getTagsOptions, bn as getTagsQueryKey, xn as getTransactionsIdQueryKey, Sn as getTransactionsOptions, Cn as getTransactionsQueryKey, wn as getTransactionsValidationsOptions, Tn as getTransactionsValidationsQueryKey, N as getUsers, En as getUsersOptions, Dn as getUsersQueryKey, On as getVelocityControlsQueryKey, kn as grantBankAccountAccessMutation, An as grantExternalBankAccountAccessMutation, vr as hasAnyScope, ar as invalidateAllClients, kr as isAllPagesResolving, br as isApiConflictError, xr as isApiForbiddenError, Sr as isApiNotFoundError, Cr as isApiUnprocessableError, jn as linkExternalBankAccountMutation, P as listDepartments, Mn as listDepartmentsOptions, Nn as listDepartmentsQueryKey, F as listLocations, Pn as listLocationsOptions, Fn as listLocationsQueryKey, I as listRoles, In as listRolesQueryKey, L as manageBankAccountAccess, Ln as manageDebitCardAccessMutation, hr as optionalOrganizationHeaders, gr as organizationHeaders, Rn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, zn as patchEntitiesIdSettingsMutation, Bn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, Vn as patchReceiptsIdMutation, G as patchReceivablesId, K as patchTagsId, Hn as postApprovalPoliciesMutation, q as postApprovalRequestsIdApprove, J as postApprovalRequestsIdReject, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, Un as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdApprovePaymentOperation, ne as postPayablesIdAttachFile, re as postPayablesIdCancel, ie as postPayablesIdDuplicatesIdConfirm, ae as postPayablesIdDuplicatesIdDismiss, oe as postPayablesIdMarkAsPaid, se as postPayablesIdReject, ce as postPayablesIdReopen, le as postPayablesIdSchedulePayment, ue as postPayablesIdSubmitForApproval, de as postPayablesIdValidate, fe as postPayablesUploadFromFile, pe as postPaymentIntentsIdCancel, me as postProducts, he as postReceivables, ge as postReceivablesIdAccept, _e as postReceivablesIdCancel, ve as postReceivablesIdClone, ye as postReceivablesIdDecline, be as postReceivablesIdIssue, xe as postReceivablesIdMarkAsPaid, Se as postReceivablesIdMarkAsPartiallyPaid, Ce as postReceivablesIdMarkAsUncollectible, we as postReceivablesIdSend, Te as postTags, Ee as putEntitiesIdLogo, De as putPayablesIdLineItems, Wn as putTransactionsValidationsMutation, or as registerQueryClient, sr as removeInactiveFromAllClients, cr as setAllClientsQueriesData, Gn as setDebitCardLockStatusMutation, Kn as submitApplicationMutation, qn as unlinkExternalBankAccountMutation, lr as unregisterQueryClient, Jn as updateApplicationMutation, Yn as updateBankAccountMutation, Xn as updateDebitCardMutation, Oe as updateDepartment, Zn as updateExternalBankAccountMutation, ke as updateLocation, Ae as updateUser, Br as useAcceptWidgetDisclosures, jr as useAllBankAccountsQuery, Mr as useAllExternalBankAccountsQuery, Pr as useAllLedgerAccountsQuery, Nr as useAllMerchantCategoryGroupsQuery, Lr as useAllOrganizationRolesQuery, zr as useAllOrganizationUsersQuery, Ar as useAutoFetchNextPage, yr as useCurrentUserQuery, Vr as useDisclosuresQuery, mr as useEmbedApi, wr as useGetUserDataQuery, Fr as useLedgerAccountsQuery, Ur as useOrganizationOnboardingSuppression, Ir as usePaymentTermsQuery, Rr as useRolePermissionsQueries, Tr as useUpsertUserDataMutation, Qn as validateExternalBankAccountMutation, $n as verifyDebitCardMutation, er as withAuthEpoch };
@@ -0,0 +1,22 @@
1
+ import { getApplicationStatusOptions as e } from "./rest/@tanstack/react-query.gen.js";
2
+ import { withAuthEpoch as t } from "./withAuthEpoch.js";
3
+ import { widgetTokenCacheId as n } from "./widgetTokenCacheId.js";
4
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js
5
+ var r = 1e4;
6
+ function i({ client: t }) {
7
+ return e({ client: t }).queryKey;
8
+ }
9
+ function a({ client: i, widgetToken: a, authEpoch: o }) {
10
+ let { queryFn: s, queryKey: c } = e({ client: i });
11
+ return {
12
+ ...t({
13
+ queryKey: [c[0], { widgetTokenId: n(a) }],
14
+ queryFn: s
15
+ }, o),
16
+ retry: 2,
17
+ retryDelay: 300,
18
+ staleTime: r
19
+ };
20
+ }
21
+ //#endregion
22
+ export { i as applicationStatusInvalidationKey, a as applicationStatusQueryOptions };