@tesouro/embedded-components-react 0.5.115 → 0.5.117

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/index.css +3 -0
  2. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -6
  3. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +25 -31
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +41 -0
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index4.js +6 -15
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +15 -11
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +7 -7
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +14 -37
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +43 -3
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +3 -31
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +6 -6
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +20 -23
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +20 -23
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +7 -7
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +7 -7
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +8 -8
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +10 -10
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +8 -8
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +6 -6
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +13 -13
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +25 -25
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +12 -12
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index12.js +8 -8
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index13.js +168 -168
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +7 -7
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index16.js +4 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index17.js +44 -44
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index18.js +7 -7
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +4 -4
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +24 -24
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +81 -81
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index7.js +17 -17
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index8.js +31 -31
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index9.js +7 -7
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +15 -15
  36. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index10.js +6 -6
  37. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index11.js +6 -6
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index2.js +15 -15
  39. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index4.js +15 -15
  40. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +7 -7
  41. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +7 -7
  42. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +7 -7
  43. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index9.js +6 -6
  44. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index3.js +10 -10
  45. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index4.js +8 -8
  46. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index5.js +8 -8
  47. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index6.js +8 -8
  48. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +5 -5
  49. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +7 -7
  50. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +7 -7
  51. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +14 -14
  52. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +14 -14
  53. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +5 -5
  54. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +5 -5
  55. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +15 -15
  56. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +12 -12
  57. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +9 -9
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +22 -22
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +12 -12
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +87 -87
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +44 -44
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +36 -36
  63. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js +6 -6
  64. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +7 -7
  65. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index2.js +21 -21
  66. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index3.js +13 -13
  67. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +9 -9
  68. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +9 -9
  69. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +10 -10
  70. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index2.js +4 -4
  71. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/data-access/dist/index3.js +22 -22
  72. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +7 -7
  73. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +7 -7
  74. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +7 -7
  75. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +11 -11
  76. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +13 -13
  77. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +11 -11
  78. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +11 -11
  79. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +7 -7
  80. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +7 -7
  81. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +7 -7
  82. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +6 -6
  83. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +11 -11
  84. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +11 -11
  85. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +10 -10
  86. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +5 -5
  87. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +5 -5
  88. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +7 -7
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js +16 -16
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +14 -14
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +7 -7
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +9 -9
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js +59 -59
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +9 -9
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +9 -9
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js +41 -41
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +4 -4
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +9 -9
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js +41 -41
  101. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js +8 -8
  102. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +9 -9
  103. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +4 -4
  104. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +4 -4
  105. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +73 -73
  106. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +11 -11
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js +20 -20
  108. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +61 -61
  109. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js +4 -4
  110. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js +16 -16
  111. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +51 -51
  112. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +63 -63
  113. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +44 -44
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +35 -34
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +22 -0
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +9 -9
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js +8 -8
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +8 -8
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -7
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +11 -11
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +15 -15
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +7 -7
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +11 -11
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +7 -7
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +7 -7
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +5 -5
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +22 -21
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useUpsertUserDataMutation.js +7 -7
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +11 -11
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetTokenCacheId.js +11 -0
  131. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index2.js +4 -4
  132. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +14 -14
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +11 -11
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index11.js +11 -11
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index12.js +11 -11
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +7 -7
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +7 -7
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +11 -11
  140. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index5.js +11 -11
  141. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index6.js +13 -13
  142. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +10 -10
  143. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index8.js +7 -7
  144. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +7 -7
  145. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index3.js +11 -11
  146. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +7 -7
  147. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index7.js +12 -12
  148. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index8.js +11 -11
  149. package/package.json +1 -1
@@ -2,45 +2,45 @@
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 { deleteReceivablesId as r, patchReceivablesId as i, postReceivables as a, postReceivablesIdAccept as o, postReceivablesIdCancel as s, postReceivablesIdClone as c, postReceivablesIdDecline as l, postReceivablesIdIssue as u } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { deleteReceivablesId as e, patchReceivablesId as t, postReceivables as n, postReceivablesIdAccept as r, postReceivablesIdCancel as i, postReceivablesIdClone as a, postReceivablesIdDecline as o, postReceivablesIdIssue as s } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as c } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as l } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as u } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { receivableHistoryInvalidationKey as d, receivableInvalidationKey as f, receivablePdfInvalidationKey as p, receivablesInvalidationKey as m } from "./index2.js";
11
11
  import { useMutation as h } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js
13
- async function g({ client: t, organizationId: n, receivableId: r }) {
14
- let i = [m({
15
- client: t,
16
- organizationId: n
17
- }), ...r ? [
13
+ async function g({ client: e, organizationId: t, receivableId: n }) {
14
+ let r = [m({
15
+ client: e,
16
+ organizationId: t
17
+ }), ...n ? [
18
18
  f({
19
- client: t,
20
- organizationId: n,
21
- receivableId: r
19
+ client: e,
20
+ organizationId: t,
21
+ receivableId: n
22
22
  }),
23
23
  d({
24
- client: t,
25
- organizationId: n,
26
- receivableId: r
24
+ client: e,
25
+ organizationId: t,
26
+ receivableId: n
27
27
  }),
28
28
  p({
29
- client: t,
30
- organizationId: n,
31
- receivableId: r
29
+ client: e,
30
+ organizationId: t,
31
+ receivableId: n
32
32
  })
33
33
  ] : []];
34
- await Promise.all(i.map((t) => e(t)));
34
+ await Promise.all(r.map((e) => c(e)));
35
35
  }
36
36
  function _() {
37
- let { client: e, organizationId: r } = t();
37
+ let { client: e, organizationId: t } = l();
38
38
  return h({
39
- mutationFn: async ({ body: t }) => {
40
- let { data: i } = await a({
39
+ mutationFn: async ({ body: r }) => {
40
+ let { data: i } = await n({
41
41
  client: e,
42
- headers: n(r),
43
- body: t,
42
+ headers: u(t),
43
+ body: r,
44
44
  throwOnError: !0
45
45
  });
46
46
  return i;
@@ -48,154 +48,154 @@ function _() {
48
48
  onSuccess: async () => {
49
49
  await g({
50
50
  client: e,
51
- organizationId: r
51
+ organizationId: t
52
52
  });
53
53
  }
54
54
  });
55
55
  }
56
56
  function v() {
57
- let { client: e, organizationId: r } = t();
57
+ let { client: e, organizationId: n } = l();
58
58
  return h({
59
- mutationFn: async ({ path: t, body: a }) => {
60
- let { data: o } = await i({
59
+ mutationFn: async ({ path: r, body: i }) => {
60
+ let { data: a } = await t({
61
61
  client: e,
62
- headers: n(r),
63
- path: t,
64
- body: a,
62
+ headers: u(n),
63
+ path: r,
64
+ body: i,
65
65
  throwOnError: !0
66
66
  });
67
- return o;
67
+ return a;
68
68
  },
69
- onSuccess: async (t, n) => {
69
+ onSuccess: async (t, r) => {
70
70
  await g({
71
71
  client: e,
72
- organizationId: r,
73
- receivableId: n.path.receivable_id
72
+ organizationId: n,
73
+ receivableId: r.path.receivable_id
74
74
  });
75
75
  }
76
76
  });
77
77
  }
78
78
  function y() {
79
- let { client: e, organizationId: i } = t();
79
+ let { client: t, organizationId: n } = l();
80
80
  return h({
81
- mutationFn: async ({ path: t }) => {
82
- await r({
83
- client: e,
84
- headers: n(i),
85
- path: t,
81
+ mutationFn: async ({ path: r }) => {
82
+ await e({
83
+ client: t,
84
+ headers: u(n),
85
+ path: r,
86
86
  throwOnError: !0
87
87
  });
88
88
  },
89
- onSuccess: async (t, n) => {
89
+ onSuccess: async (e, r) => {
90
90
  await g({
91
- client: e,
92
- organizationId: i,
93
- receivableId: n.path.receivable_id
91
+ client: t,
92
+ organizationId: n,
93
+ receivableId: r.path.receivable_id
94
94
  });
95
95
  }
96
96
  });
97
97
  }
98
98
  function b() {
99
- let { client: e, organizationId: r } = t();
99
+ let { client: e, organizationId: t } = l();
100
100
  return h({
101
- mutationFn: async ({ path: t }) => {
102
- let { data: i } = await u({
101
+ mutationFn: async ({ path: n }) => {
102
+ let { data: r } = await s({
103
103
  client: e,
104
- headers: n(r),
105
- path: t,
104
+ headers: u(t),
105
+ path: n,
106
106
  throwOnError: !0
107
107
  });
108
- return i;
108
+ return r;
109
109
  },
110
- onSuccess: async (t, n) => {
110
+ onSuccess: async (n, r) => {
111
111
  await g({
112
112
  client: e,
113
- organizationId: r,
114
- receivableId: n.path.receivable_id
113
+ organizationId: t,
114
+ receivableId: r.path.receivable_id
115
115
  });
116
116
  }
117
117
  });
118
118
  }
119
119
  function x() {
120
- let { client: e, organizationId: r } = t();
120
+ let { client: e, organizationId: t } = l();
121
121
  return h({
122
- mutationFn: async ({ path: t }) => {
123
- await s({
122
+ mutationFn: async ({ path: n }) => {
123
+ await i({
124
124
  client: e,
125
- headers: n(r),
126
- path: t,
125
+ headers: u(t),
126
+ path: n,
127
127
  throwOnError: !0
128
128
  });
129
129
  },
130
- onSuccess: async (t, n) => {
130
+ onSuccess: async (n, r) => {
131
131
  await g({
132
132
  client: e,
133
- organizationId: r,
134
- receivableId: n.path.receivable_id
133
+ organizationId: t,
134
+ receivableId: r.path.receivable_id
135
135
  });
136
136
  }
137
137
  });
138
138
  }
139
139
  function S() {
140
- let { client: e, organizationId: r } = t();
140
+ let { client: e, organizationId: t } = l();
141
141
  return h({
142
- mutationFn: async ({ path: t }) => {
143
- let { data: i } = await c({
142
+ mutationFn: async ({ path: n }) => {
143
+ let { data: r } = await a({
144
144
  client: e,
145
- headers: n(r),
146
- path: t,
145
+ headers: u(t),
146
+ path: n,
147
147
  throwOnError: !0
148
148
  });
149
- return i;
149
+ return r;
150
150
  },
151
151
  onSuccess: async () => {
152
152
  await g({
153
153
  client: e,
154
- organizationId: r
154
+ organizationId: t
155
155
  });
156
156
  }
157
157
  });
158
158
  }
159
159
  function C() {
160
- let { client: e, organizationId: r } = t();
160
+ let { client: e, organizationId: t } = l();
161
161
  return h({
162
- mutationFn: async ({ path: t, body: i }) => {
163
- let { data: a } = await o({
162
+ mutationFn: async ({ path: n, body: i }) => {
163
+ let { data: a } = await r({
164
164
  client: e,
165
- headers: n(r),
166
- path: t,
165
+ headers: u(t),
166
+ path: n,
167
167
  body: i,
168
168
  throwOnError: !0
169
169
  });
170
170
  return a;
171
171
  },
172
- onSuccess: async (t, n) => {
172
+ onSuccess: async (n, r) => {
173
173
  await g({
174
174
  client: e,
175
- organizationId: r,
176
- receivableId: n.path.receivable_id
175
+ organizationId: t,
176
+ receivableId: r.path.receivable_id
177
177
  });
178
178
  }
179
179
  });
180
180
  }
181
181
  function w() {
182
- let { client: e, organizationId: r } = t();
182
+ let { client: e, organizationId: t } = l();
183
183
  return h({
184
- mutationFn: async ({ path: t, body: i }) => {
185
- let { data: a } = await l({
184
+ mutationFn: async ({ path: n, body: r }) => {
185
+ let { data: i } = await o({
186
186
  client: e,
187
- headers: n(r),
188
- path: t,
189
- body: i,
187
+ headers: u(t),
188
+ path: n,
189
+ body: r,
190
190
  throwOnError: !0
191
191
  });
192
- return a;
192
+ return i;
193
193
  },
194
- onSuccess: async (t, n) => {
194
+ onSuccess: async (n, r) => {
195
195
  await g({
196
196
  client: e,
197
- organizationId: r,
198
- receivableId: n.path.receivable_id
197
+ organizationId: t,
198
+ receivableId: r.path.receivable_id
199
199
  });
200
200
  }
201
201
  });
@@ -2,94 +2,94 @@
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 { postReceivablesIdMarkAsPaid as r, postReceivablesIdMarkAsPartiallyPaid as i, postReceivablesIdMarkAsUncollectible as a } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { postReceivablesIdMarkAsPaid as e, postReceivablesIdMarkAsPartiallyPaid as t, postReceivablesIdMarkAsUncollectible as n } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as r } from "../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as i } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as a } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { receivableHistoryInvalidationKey as o, receivableInvalidationKey as s, receivablesInvalidationKey as c } from "./index2.js";
11
11
  import { useMutation as l } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js
13
- async function u({ client: t, organizationId: n, receivableId: r }) {
13
+ async function u({ client: e, organizationId: t, receivableId: n }) {
14
14
  await Promise.all([
15
- e(c({
16
- client: t,
17
- organizationId: n
15
+ r(c({
16
+ client: e,
17
+ organizationId: t
18
18
  })),
19
- e(s({
20
- client: t,
21
- organizationId: n,
22
- receivableId: r
19
+ r(s({
20
+ client: e,
21
+ organizationId: t,
22
+ receivableId: n
23
23
  })),
24
- e(o({
25
- client: t,
26
- organizationId: n,
27
- receivableId: r
24
+ r(o({
25
+ client: e,
26
+ organizationId: t,
27
+ receivableId: n
28
28
  }))
29
29
  ]);
30
30
  }
31
31
  function d() {
32
- let { client: e, organizationId: i } = t();
32
+ let { client: t, organizationId: n } = i();
33
33
  return l({
34
- mutationFn: async ({ path: t, body: a }) => {
35
- let { data: o } = await r({
36
- client: e,
37
- headers: n(i),
38
- path: t,
39
- body: a,
34
+ mutationFn: async ({ path: r, body: i }) => {
35
+ let { data: o } = await e({
36
+ client: t,
37
+ headers: a(n),
38
+ path: r,
39
+ body: i,
40
40
  throwOnError: !0
41
41
  });
42
42
  return o;
43
43
  },
44
- onSuccess: async (t, n) => {
44
+ onSuccess: async (e, r) => {
45
45
  await u({
46
- client: e,
47
- organizationId: i,
48
- receivableId: n.path.receivable_id
46
+ client: t,
47
+ organizationId: n,
48
+ receivableId: r.path.receivable_id
49
49
  });
50
50
  }
51
51
  });
52
52
  }
53
53
  function f() {
54
- let { client: e, organizationId: r } = t();
54
+ let { client: e, organizationId: n } = i();
55
55
  return l({
56
- mutationFn: async ({ path: t, body: a }) => {
57
- let { data: o } = await i({
56
+ mutationFn: async ({ path: r, body: i }) => {
57
+ let { data: o } = await t({
58
58
  client: e,
59
- headers: n(r),
60
- path: t,
61
- body: a,
59
+ headers: a(n),
60
+ path: r,
61
+ body: i,
62
62
  throwOnError: !0
63
63
  });
64
64
  return o;
65
65
  },
66
- onSuccess: async (t, n) => {
66
+ onSuccess: async (t, r) => {
67
67
  await u({
68
68
  client: e,
69
- organizationId: r,
70
- receivableId: n.path.receivable_id
69
+ organizationId: n,
70
+ receivableId: r.path.receivable_id
71
71
  });
72
72
  }
73
73
  });
74
74
  }
75
75
  function p() {
76
- let { client: e, organizationId: r } = t();
76
+ let { client: e, organizationId: t } = i();
77
77
  return l({
78
- mutationFn: async ({ path: t, body: i }) => {
79
- let { data: o } = await a({
78
+ mutationFn: async ({ path: r, body: i }) => {
79
+ let { data: o } = await n({
80
80
  client: e,
81
- headers: n(r),
82
- path: t,
81
+ headers: a(t),
82
+ path: r,
83
83
  body: i,
84
84
  throwOnError: !0
85
85
  });
86
86
  return o;
87
87
  },
88
- onSuccess: async (t, n) => {
88
+ onSuccess: async (n, r) => {
89
89
  await u({
90
90
  client: e,
91
- organizationId: r,
92
- receivableId: n.path.receivable_id
91
+ organizationId: t,
92
+ receivableId: r.path.receivable_id
93
93
  });
94
94
  }
95
95
  });
@@ -2,67 +2,67 @@
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 { getReceivablesIdHistoryOptions as n, getReceivablesIdMailsOptions as r, getReceivablesIdOptions as i, getReceivablesIdPdfLinkOptions as a, getReceivablesOptions as o } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
8
- import { withAuthEpoch as s } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
5
+ import { getReceivablesIdHistoryOptions as e, getReceivablesIdMailsOptions as t, getReceivablesIdOptions as n, getReceivablesIdPdfLinkOptions as r, getReceivablesOptions as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as a } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as o } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as s } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as c } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js
12
- function l({ enabled: n, ...r } = {}) {
13
- let { client: i, organizationId: a, widgetToken: l, authEpoch: u } = e(), d = !!(a && l) && (n === !0 || n === void 0), f = o({
14
- client: i,
15
- headers: t(a),
16
- query: r
12
+ function l({ enabled: e, ...t } = {}) {
13
+ let { client: n, organizationId: r, widgetToken: l, authEpoch: u } = o(), d = !!(r && l) && (e === !0 || e === void 0), f = i({
14
+ client: n,
15
+ headers: s(r),
16
+ query: t
17
17
  });
18
18
  return c({
19
- ...s(f, u),
19
+ ...a(f, u),
20
20
  enabled: d
21
21
  });
22
22
  }
23
- function u(n, { enabled: r = !0 } = {}) {
24
- let { client: a, organizationId: o, widgetToken: l, authEpoch: u } = e(), d = !!(o && l && n) && r, f = i({
25
- client: a,
26
- headers: t(o),
27
- path: { receivable_id: n ?? "" }
23
+ function u(e, { enabled: t = !0 } = {}) {
24
+ let { client: r, organizationId: i, widgetToken: l, authEpoch: u } = o(), d = !!(i && l && e) && t, f = n({
25
+ client: r,
26
+ headers: s(i),
27
+ path: { receivable_id: e ?? "" }
28
28
  });
29
29
  return c({
30
- ...s(f, u),
30
+ ...a(f, u),
31
31
  enabled: d
32
32
  });
33
33
  }
34
- function d(r, { enabled: i, ...a } = {}) {
35
- let { client: o, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && r) && (i === !0 || i === void 0), p = n({
36
- client: o,
37
- headers: t(l),
38
- path: { receivable_id: r ?? "" },
39
- query: a
34
+ function d(t, { enabled: n, ...r } = {}) {
35
+ let { client: i, organizationId: l, widgetToken: u, authEpoch: d } = o(), f = !!(l && u && t) && (n === !0 || n === void 0), p = e({
36
+ client: i,
37
+ headers: s(l),
38
+ path: { receivable_id: t ?? "" },
39
+ query: r
40
40
  });
41
41
  return c({
42
- ...s(p, d),
42
+ ...a(p, d),
43
43
  enabled: f
44
44
  });
45
45
  }
46
- function f(n, { enabled: i, ...a } = {}) {
47
- let { client: o, organizationId: l, widgetToken: u, authEpoch: d } = e(), f = !!(l && u && n) && (i === !0 || i === void 0), p = r({
48
- client: o,
49
- headers: t(l),
50
- path: { receivable_id: n ?? "" },
51
- query: a
46
+ function f(e, { enabled: n, ...r } = {}) {
47
+ let { client: i, organizationId: l, widgetToken: u, authEpoch: d } = o(), f = !!(l && u && e) && (n === !0 || n === void 0), p = t({
48
+ client: i,
49
+ headers: s(l),
50
+ path: { receivable_id: e ?? "" },
51
+ query: r
52
52
  });
53
53
  return c({
54
- ...s(p, d),
54
+ ...a(p, d),
55
55
  enabled: f
56
56
  });
57
57
  }
58
- function p(n, { enabled: r = !0 } = {}) {
59
- let { client: i, organizationId: o, widgetToken: l, authEpoch: u } = e(), d = !!(o && l && n) && r, f = a({
60
- client: i,
61
- headers: t(o),
62
- path: { receivable_id: n ?? "" }
58
+ function p(e, { enabled: t = !0 } = {}) {
59
+ let { client: n, organizationId: i, widgetToken: l, authEpoch: u } = o(), d = !!(i && l && e) && t, f = r({
60
+ client: n,
61
+ headers: s(i),
62
+ path: { receivable_id: e ?? "" }
63
63
  });
64
64
  return c({
65
- ...s(f, u),
65
+ ...a(f, u),
66
66
  enabled: d
67
67
  });
68
68
  }
@@ -2,18 +2,18 @@
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 { getExternalBankAccountsQueryKey as r } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getExternalBankAccountsQueryKey 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
  //#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index2.js
11
11
  function i() {
12
- let { client: i, organizationId: a } = t(), o = n(a);
12
+ let { client: i, organizationId: a } = n(), o = r(a);
13
13
  return {
14
14
  client: i,
15
15
  headers: o,
16
- invalidate: () => e(r({
16
+ invalidate: () => t(e({
17
17
  client: i,
18
18
  headers: o
19
19
  }))
@@ -2,21 +2,21 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
6
- import { organizationHeaders as t } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
7
- import { getExternalBankAccountsOptions 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 { getExternalBankAccountsOptions as e } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js
12
12
  function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = n({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = n(), d = e({
14
14
  query: o,
15
15
  client: s,
16
- headers: t(c)
16
+ headers: r(c)
17
17
  });
18
18
  return i({
19
- ...r(d, u),
19
+ ...t(d, u),
20
20
  enabled: !!(c && l) && (a === !0 || a === void 0)
21
21
  });
22
22
  }
@@ -1,28 +1,28 @@
1
- import { organizationHeaders as e } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
2
- import { getBankAccountTransactionsQueryKey as t, getBankAccountsQueryKey as n, getReceivablesIdHistoryQueryKey as r, getReceivablesIdQueryKey as i, getReceivablesQueryKey as a } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getBankAccountTransactionsQueryKey as e, getBankAccountsQueryKey as t, getReceivablesIdHistoryQueryKey as n, getReceivablesIdQueryKey as r, getReceivablesQueryKey as i } from "../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as a } 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/remote-check-capture/data-access/dist/index2.js
5
- var o = ({ client: t, organizationId: r }) => n({
5
+ var o = ({ client: e, organizationId: n }) => t({
6
+ client: e,
7
+ headers: a(n)
8
+ }), s = ({ client: t, organizationId: n, bankAccountId: r }) => e({
6
9
  client: t,
7
- headers: e(r)
8
- }), s = ({ client: n, organizationId: r, bankAccountId: i }) => t({
9
- client: n,
10
- headers: e(r),
11
- path: { id: i }
12
- }), c = ({ client: t, organizationId: n }) => {
13
- let [r] = a({
14
- client: t,
15
- headers: e(n)
16
- }), i = { ...r };
17
- return delete i.query, [i];
18
- }, l = ({ client: t, organizationId: n, receivableId: r }) => i({
19
- client: t,
20
- headers: e(n),
10
+ headers: a(n),
11
+ path: { id: r }
12
+ }), c = ({ client: e, organizationId: t }) => {
13
+ let [n] = i({
14
+ client: e,
15
+ headers: a(t)
16
+ }), r = { ...n };
17
+ return delete r.query, [r];
18
+ }, l = ({ client: e, organizationId: t, receivableId: n }) => r({
19
+ client: e,
20
+ headers: a(t),
21
+ path: { receivable_id: n }
22
+ }), u = ({ client: e, organizationId: t, receivableId: r }) => n({
23
+ client: e,
24
+ headers: a(t),
21
25
  path: { receivable_id: r }
22
- }), u = ({ client: t, organizationId: n, receivableId: i }) => r({
23
- client: t,
24
- headers: e(n),
25
- path: { receivable_id: i }
26
26
  });
27
27
  //#endregion
28
28
  export { s as bankAccountTransactionsInvalidationKey, o as bankAccountsInvalidationKey, u as receivableHistoryInvalidationKey, l as receivableInvalidationKey, c as receivablesInvalidationKey };