@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,11 +2,11 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
8
- import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, createUser as o, manageBankAccountAccess as s, updateUser as c } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
9
- import { getDepartmentQueryKey as l, getLocationQueryKey as u } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createUser as r, manageBankAccountAccess as i, updateUser as a } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { getDepartmentQueryKey as o, getLocationQueryKey as s } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
+ import { invalidateAllClients as c } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
8
+ import { useEmbedApi as l } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { organizationHeaders as u } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
10
  import "../../../../shared/data-access/dist/index.js";
11
11
  import { teamMembersInvalidationKey as d } from "./index2.js";
12
12
  import { accountAccessInvalidationKeyForSource as f } from "./index3.js";
@@ -18,88 +18,88 @@ import { useMutation as g } from "@tanstack/react-query";
18
18
  function _(e) {
19
19
  return e.map((e) => `${e.source}:${e.bankAccountId}`).sort().join(",");
20
20
  }
21
- async function v({ client: t, organizationId: r, departmentIds: i, locationIds: a, grantedBankAccounts: o = [] }) {
22
- let s = n(r);
21
+ async function v({ client: e, organizationId: t, departmentIds: n, locationIds: r, grantedBankAccounts: i = [] }) {
22
+ let a = u(t);
23
23
  await Promise.all([
24
- e(d({
25
- client: t,
26
- organizationId: r
24
+ c(d({
25
+ client: e,
26
+ organizationId: t
27
27
  })),
28
- e(p({
29
- client: t,
30
- organizationId: r
28
+ c(p({
29
+ client: e,
30
+ organizationId: t
31
31
  })),
32
- e(m({
33
- client: t,
34
- organizationId: r
32
+ c(m({
33
+ client: e,
34
+ organizationId: t
35
35
  })),
36
- ...i.map((n) => e(l({
37
- client: t,
38
- path: { departmentId: n },
39
- headers: s
36
+ ...n.map((t) => c(o({
37
+ client: e,
38
+ path: { departmentId: t },
39
+ headers: a
40
40
  }))),
41
- ...a.map((n) => e(u({
42
- client: t,
43
- path: { locationId: n },
44
- headers: s
41
+ ...r.map((t) => c(s({
42
+ client: e,
43
+ path: { locationId: t },
44
+ headers: a
45
45
  }))),
46
- ...o.map((n) => e(f({
47
- client: t,
48
- organizationId: r,
46
+ ...i.map((n) => c(f({
47
+ client: e,
48
+ organizationId: t,
49
49
  bankAccountId: n.bankAccountId,
50
50
  source: n.source
51
51
  })))
52
52
  ]);
53
53
  }
54
54
  function y() {
55
- let { client: e, organizationId: l } = t(), u = n(l), d = h(void 0);
56
- return g({ mutationFn: async ({ body: t, roleId: n, departmentId: f, locationId: p, bankAccountAccess: m = [] }) => {
57
- let h = d.current?.email === t.email ? d.current : void 0, g = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set(), b = [];
55
+ let { client: o, organizationId: s } = l(), c = u(s), d = h(void 0);
56
+ return g({ mutationFn: async ({ body: l, roleId: u, departmentId: f, locationId: p, bankAccountAccess: m = [] }) => {
57
+ let h = d.current?.email === l.email ? d.current : void 0, g = /* @__PURE__ */ new Set(), y = /* @__PURE__ */ new Set(), b = [];
58
58
  try {
59
59
  if (!h) {
60
- let { data: n } = await o({
61
- client: e,
62
- headers: u,
63
- body: t,
60
+ let { data: e } = await r({
61
+ client: o,
62
+ headers: c,
63
+ body: l,
64
64
  throwOnError: !0
65
65
  });
66
66
  h = {
67
- email: t.email,
68
- user: n,
69
- createdReportingManagerUserId: t.reportingManagerUserId ?? null
67
+ email: l.email,
68
+ user: e,
69
+ createdReportingManagerUserId: l.reportingManagerUserId ?? null
70
70
  }, d.current = h;
71
71
  }
72
- let x = [h.user.id], S = t.reportingManagerUserId ?? null;
73
- if (h.createdReportingManagerUserId !== S && (await c({
74
- client: e,
75
- headers: u,
72
+ let x = [h.user.id], S = l.reportingManagerUserId ?? null;
73
+ if (h.createdReportingManagerUserId !== S && (await a({
74
+ client: o,
75
+ headers: c,
76
76
  path: { id: h.user.id },
77
77
  body: { reportingManagerUserId: S },
78
78
  throwOnError: !0
79
- }), h.createdReportingManagerUserId = S), h.assignedRoleId !== n && (h.assignedRoleId && (await a({
80
- client: e,
81
- headers: u,
79
+ }), h.createdReportingManagerUserId = S), h.assignedRoleId !== u && (h.assignedRoleId && (await n({
80
+ client: o,
81
+ headers: c,
82
82
  path: { roleId: h.assignedRoleId },
83
83
  body: {
84
84
  type: "REMOVE",
85
85
  userIds: x
86
86
  },
87
87
  throwOnError: !0
88
- }), h.assignedRoleId = void 0), await a({
89
- client: e,
90
- headers: u,
91
- path: { roleId: n },
88
+ }), h.assignedRoleId = void 0), await n({
89
+ client: o,
90
+ headers: c,
91
+ path: { roleId: u },
92
92
  body: {
93
93
  type: "ASSIGN",
94
94
  userIds: x
95
95
  },
96
96
  throwOnError: !0
97
- }), h.assignedRoleId = n), h.assignedDepartmentId !== (f || void 0)) {
97
+ }), h.assignedRoleId = u), h.assignedDepartmentId !== (f || void 0)) {
98
98
  if (h.assignedDepartmentId) {
99
99
  let t = h.assignedDepartmentId;
100
- await r({
101
- client: e,
102
- headers: u,
100
+ await e({
101
+ client: o,
102
+ headers: c,
103
103
  path: { departmentId: t },
104
104
  body: {
105
105
  type: "REMOVE",
@@ -108,9 +108,9 @@ function y() {
108
108
  throwOnError: !0
109
109
  }), g.add(t), h.assignedDepartmentId = void 0;
110
110
  }
111
- f && (await r({
112
- client: e,
113
- headers: u,
111
+ f && (await e({
112
+ client: o,
113
+ headers: c,
114
114
  path: { departmentId: f },
115
115
  body: {
116
116
  type: "ASSIGN",
@@ -121,21 +121,21 @@ function y() {
121
121
  }
122
122
  if (h.assignedLocationId !== (p || void 0)) {
123
123
  if (h.assignedLocationId) {
124
- let t = h.assignedLocationId;
125
- await i({
126
- client: e,
127
- headers: u,
128
- path: { locationId: t },
124
+ let e = h.assignedLocationId;
125
+ await t({
126
+ client: o,
127
+ headers: c,
128
+ path: { locationId: e },
129
129
  body: {
130
130
  type: "REMOVE",
131
131
  userIds: x
132
132
  },
133
133
  throwOnError: !0
134
- }), y.add(t), h.assignedLocationId = void 0;
134
+ }), y.add(e), h.assignedLocationId = void 0;
135
135
  }
136
- p && (await i({
137
- client: e,
138
- headers: u,
136
+ p && (await t({
137
+ client: o,
138
+ headers: c,
139
139
  path: { locationId: p },
140
140
  body: {
141
141
  type: "ASSIGN",
@@ -145,9 +145,9 @@ function y() {
145
145
  }), y.add(p), h.assignedLocationId = p);
146
146
  }
147
147
  let C = _(m);
148
- return m.length > 0 && h.grantedBankAccountAccessSignature !== C && (await s({
149
- client: e,
150
- headers: u,
148
+ return m.length > 0 && h.grantedBankAccountAccessSignature !== C && (await i({
149
+ client: o,
150
+ headers: c,
151
151
  body: {
152
152
  type: "GRANT",
153
153
  userIds: x,
@@ -155,20 +155,20 @@ function y() {
155
155
  },
156
156
  throwOnError: !0
157
157
  }), b.push(...m), h.grantedBankAccountAccessSignature = C), await v({
158
- client: e,
159
- organizationId: l,
158
+ client: o,
159
+ organizationId: s,
160
160
  departmentIds: [...g],
161
161
  locationIds: [...y],
162
162
  grantedBankAccounts: b
163
163
  }), d.current = void 0, h.user;
164
- } catch (t) {
164
+ } catch (e) {
165
165
  throw h && await v({
166
- client: e,
167
- organizationId: l,
166
+ client: o,
167
+ organizationId: s,
168
168
  departmentIds: [...g],
169
169
  locationIds: [...y],
170
170
  grantedBankAccounts: b
171
- }), t;
171
+ }), e;
172
172
  }
173
173
  } });
174
174
  }
@@ -2,33 +2,33 @@
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 { createUser as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { createUser as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import { teamMembersInvalidationKey as i } from "./index2.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js
13
13
  function o() {
14
- let { client: o, organizationId: s } = t(), c = n(s);
14
+ let { client: o, organizationId: s } = n(), c = r(s);
15
15
  return a({
16
- mutationFn: async ({ name: e, email: t, redirectUri: n }) => {
17
- await r({
16
+ mutationFn: async ({ name: t, email: n, redirectUri: r }) => {
17
+ await e({
18
18
  client: o,
19
19
  headers: c,
20
20
  body: {
21
- name: e,
22
- email: t,
21
+ name: t,
22
+ email: n,
23
23
  status: "INVITED",
24
24
  permissionIds: [],
25
- redirectUri: n
25
+ redirectUri: r
26
26
  },
27
27
  throwOnError: !0
28
28
  });
29
29
  },
30
30
  onSuccess: async () => {
31
- await e(i({
31
+ await t(i({
32
32
  client: o,
33
33
  organizationId: s
34
34
  }));
@@ -2,56 +2,56 @@
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 { manageBankAccountAccess as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { manageBankAccountAccess as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import { accountAccessInvalidationKeyForSource as i } from "./index3.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js
13
- async function o({ client: t, organizationId: n, accounts: r }) {
14
- await Promise.all(r.map((r) => e(i({
15
- client: t,
13
+ async function o({ client: e, organizationId: n, accounts: r }) {
14
+ await Promise.all(r.map((r) => t(i({
15
+ client: e,
16
16
  organizationId: n,
17
17
  bankAccountId: r.bankAccountId,
18
18
  source: r.source
19
19
  }))));
20
20
  }
21
21
  function s() {
22
- let { client: e, organizationId: i } = t(), s = n(i);
23
- return a({ mutationFn: async ({ userIds: t, grant: n, revoke: a }) => {
22
+ let { client: t, organizationId: i } = n(), s = r(i);
23
+ return a({ mutationFn: async ({ userIds: n, grant: r, revoke: a }) => {
24
24
  let c = [];
25
25
  try {
26
- t.length > 0 && n.length > 0 && (await r({
27
- client: e,
26
+ n.length > 0 && r.length > 0 && (await e({
27
+ client: t,
28
28
  headers: s,
29
29
  body: {
30
30
  type: "GRANT",
31
- userIds: t,
32
- bankAccounts: n
31
+ userIds: n,
32
+ bankAccounts: r
33
33
  },
34
34
  throwOnError: !0
35
- }), c.push(...n)), t.length > 0 && a.length > 0 && (await r({
36
- client: e,
35
+ }), c.push(...r)), n.length > 0 && a.length > 0 && (await e({
36
+ client: t,
37
37
  headers: s,
38
38
  body: {
39
39
  type: "REVOKE",
40
- userIds: t,
40
+ userIds: n,
41
41
  bankAccounts: a
42
42
  },
43
43
  throwOnError: !0
44
44
  }), c.push(...a)), await o({
45
- client: e,
45
+ client: t,
46
46
  organizationId: i,
47
47
  accounts: c
48
48
  });
49
- } catch (t) {
49
+ } catch (e) {
50
50
  throw c.length > 0 && await o({
51
- client: e,
51
+ client: t,
52
52
  organizationId: i,
53
53
  accounts: c
54
- }), t;
54
+ }), e;
55
55
  }
56
56
  } });
57
57
  }
@@ -2,11 +2,11 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { invalidateAllClients as e, setAllClientsQueriesData as t } from "../../../../data-access/dist/lib/clientRegistry.js";
6
- import { useEmbedApi as n } from "../../../../data-access/dist/lib/EmbedApiContext.js";
7
- import { getApprovalPolicies as r } from "../../../../data-access/dist/lib/rest/sdk.gen.js";
8
- import { deleteApprovalPoliciesIdMutation as i, getApprovalPoliciesOptions as a, patchApprovalPoliciesIdMutation as o, postApprovalPoliciesMutation as s } from "../../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
9
- import { withAuthEpoch as c } from "../../../../data-access/dist/lib/withAuthEpoch.js";
5
+ import { getApprovalPolicies as e } from "../../../../data-access/dist/lib/rest/sdk.gen.js";
6
+ import { deleteApprovalPoliciesIdMutation as t, getApprovalPoliciesOptions as n, patchApprovalPoliciesIdMutation as r, postApprovalPoliciesMutation 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, setAllClientsQueriesData as s } from "../../../../data-access/dist/lib/clientRegistry.js";
9
+ import { useEmbedApi as c } from "../../../../data-access/dist/lib/EmbedApiContext.js";
10
10
  import { getAllPagesNextPaginationTokenParam as l, isAllPagesResolving as u, useAutoFetchNextPage as d } from "../../../../data-access/dist/lib/allPages.js";
11
11
  import "../../../../data-access/dist/index.js";
12
12
  import { ApprovalPolicyObjectType as f, approvalPoliciesInvalidationKey as p } from "./queryKeys.js";
@@ -14,9 +14,9 @@ import { useMemo as m } from "react";
14
14
  import { useInfiniteQuery as h, useMutation as g, useQueryClient as _ } from "@tanstack/react-query";
15
15
  //#region ../../libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js
16
16
  var v = 100;
17
- function y(e, n, r) {
18
- let i = (e) => e && r(e);
19
- e.setQueriesData({ queryKey: n }, i), t(n, i);
17
+ function y(e, t, n) {
18
+ let r = (e) => e && n(e);
19
+ e.setQueriesData({ queryKey: t }, r), s(t, r);
20
20
  }
21
21
  function b(e, t) {
22
22
  return {
@@ -27,27 +27,27 @@ function b(e, t) {
27
27
  }))
28
28
  };
29
29
  }
30
- function x({ objectType: e = f.Payable, enabled: t = !0 } = {}) {
31
- let { client: i, organizationId: o, widgetToken: s, authEpoch: p } = n(), g = o, _ = !!(g && s) && t, y = { "x-organization-id": g ?? "" }, b = { object_type: e }, x = a({
30
+ function x({ objectType: t = f.Payable, enabled: r = !0 } = {}) {
31
+ let { client: i, organizationId: o, widgetToken: s, authEpoch: p } = c(), g = o, _ = !!(g && s) && r, y = { "x-organization-id": g ?? "" }, b = { object_type: t }, x = n({
32
32
  client: i,
33
33
  headers: y,
34
34
  query: b
35
35
  }), S = h({
36
- queryKey: [...c(x, p).queryKey, "all"],
36
+ queryKey: [...a(x, p).queryKey, "all"],
37
37
  enabled: _,
38
38
  initialPageParam: void 0,
39
- queryFn: async ({ signal: e, pageParam: t }) => {
40
- let { data: n } = await r({
39
+ queryFn: async ({ signal: t, pageParam: n }) => {
40
+ let { data: r } = await e({
41
41
  client: i,
42
42
  headers: y,
43
- query: t ? { pagination_token: t } : {
43
+ query: n ? { pagination_token: n } : {
44
44
  ...b,
45
45
  limit: v
46
46
  },
47
- signal: e,
47
+ signal: t,
48
48
  throwOnError: !0
49
49
  });
50
- return n;
50
+ return r;
51
51
  },
52
52
  getNextPageParam: l
53
53
  });
@@ -59,72 +59,72 @@ function x({ objectType: e = f.Payable, enabled: t = !0 } = {}) {
59
59
  isResolving: u(S)
60
60
  };
61
61
  }
62
- function S({ objectType: t = f.Payable } = {}) {
63
- let { client: r, organizationId: i } = n(), a = _();
62
+ function S({ objectType: e = f.Payable } = {}) {
63
+ let { client: t, organizationId: n } = c(), r = _();
64
64
  return g({
65
- ...s({
66
- client: r,
67
- headers: { "x-organization-id": i ?? "" }
65
+ ...i({
66
+ client: t,
67
+ headers: { "x-organization-id": n ?? "" }
68
68
  }),
69
- onSuccess: async (n) => {
70
- y(a, p({
71
- client: r,
72
- organizationId: i,
73
- objectType: t
69
+ onSuccess: async (i) => {
70
+ y(r, p({
71
+ client: t,
72
+ organizationId: n,
73
+ objectType: e
74
74
  }), (e) => {
75
- if (e.pages.some((e) => e.data?.some((e) => e.id === n.id))) return b(e, (e) => e.map((e) => e.id === n.id ? n : e));
75
+ if (e.pages.some((e) => e.data?.some((e) => e.id === i.id))) return b(e, (e) => e.map((e) => e.id === i.id ? i : e));
76
76
  let t = e.pages.length - 1;
77
77
  return t < 0 ? e : {
78
78
  ...e,
79
- pages: e.pages.map((e, r) => r === t ? {
79
+ pages: e.pages.map((e, n) => n === t ? {
80
80
  ...e,
81
- data: [...e.data ?? [], n]
81
+ data: [...e.data ?? [], i]
82
82
  } : e)
83
83
  };
84
- }), await e(p({
85
- client: r,
86
- organizationId: i,
87
- objectType: t
84
+ }), await o(p({
85
+ client: t,
86
+ organizationId: n,
87
+ objectType: e
88
88
  }));
89
89
  }
90
90
  });
91
91
  }
92
- function C({ objectType: t = f.Payable } = {}) {
93
- let { client: r, organizationId: i } = n(), a = _();
92
+ function C({ objectType: e = f.Payable } = {}) {
93
+ let { client: t, organizationId: n } = c(), i = _();
94
94
  return g({
95
- ...o({
96
- client: r,
97
- headers: { "x-organization-id": i ?? "" }
95
+ ...r({
96
+ client: t,
97
+ headers: { "x-organization-id": n ?? "" }
98
98
  }),
99
- onSuccess: async (n) => {
100
- y(a, p({
101
- client: r,
102
- organizationId: i,
103
- objectType: t
104
- }), (e) => b(e, (e) => e.map((e) => e.id === n.id ? n : e))), await e(p({
105
- client: r,
106
- organizationId: i,
107
- objectType: t
99
+ onSuccess: async (r) => {
100
+ y(i, p({
101
+ client: t,
102
+ organizationId: n,
103
+ objectType: e
104
+ }), (e) => b(e, (e) => e.map((e) => e.id === r.id ? r : e))), await o(p({
105
+ client: t,
106
+ organizationId: n,
107
+ objectType: e
108
108
  }));
109
109
  }
110
110
  });
111
111
  }
112
- function w({ objectType: t = f.Payable } = {}) {
113
- let { client: r, organizationId: a } = n(), o = _();
112
+ function w({ objectType: e = f.Payable } = {}) {
113
+ let { client: n, organizationId: r } = c(), i = _();
114
114
  return g({
115
- ...i({
116
- client: r,
117
- headers: { "x-organization-id": a ?? "" }
115
+ ...t({
116
+ client: n,
117
+ headers: { "x-organization-id": r ?? "" }
118
118
  }),
119
- onSuccess: async (n, i) => {
120
- y(o, p({
121
- client: r,
122
- organizationId: a,
123
- objectType: t
124
- }), (e) => b(e, (e) => e.filter((e) => e.id !== i.path.approval_policy_id))), await e(p({
125
- client: r,
126
- organizationId: a,
127
- objectType: t
119
+ onSuccess: async (t, a) => {
120
+ y(i, p({
121
+ client: n,
122
+ organizationId: r,
123
+ objectType: e
124
+ }), (e) => b(e, (e) => e.filter((e) => e.id !== a.path.approval_policy_id))), await o(p({
125
+ client: n,
126
+ organizationId: r,
127
+ objectType: e
128
128
  }));
129
129
  }
130
130
  });
@@ -1,13 +1,13 @@
1
- import { organizationHeaders as e } from "../../../../data-access/dist/lib/organizationHeaders.js";
2
- import { getApprovalPoliciesQueryKey as t } from "../../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getApprovalPoliciesQueryKey as e } from "../../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as t } from "../../../../data-access/dist/lib/organizationHeaders.js";
3
3
  import "../../../../data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/queryKeys.js
5
5
  var n = {
6
6
  Payable: "payable",
7
7
  Transaction: "transaction"
8
- }, r = ({ client: r, organizationId: i, objectType: a }) => t({
8
+ }, r = ({ client: r, organizationId: i, objectType: a }) => e({
9
9
  client: r,
10
- headers: e(i),
10
+ headers: t(i),
11
11
  query: { object_type: a ?? n.Payable }
12
12
  });
13
13
  //#endregion
@@ -1,22 +1,22 @@
1
- import { organizationHeaders as e } from "../../../data-access/dist/lib/organizationHeaders.js";
2
- import { getCounterpartsIdAddressesQueryKey as t, getCounterpartsIdBankAccountsQueryKey as n, getCounterpartsIdQueryKey as r, getCounterpartsQueryKey as i } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ import { getCounterpartsIdAddressesQueryKey as e, getCounterpartsIdBankAccountsQueryKey as t, getCounterpartsIdQueryKey as n, getCounterpartsQueryKey as r } from "../../../data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as i } from "../../../data-access/dist/lib/organizationHeaders.js";
3
3
  import "../../../data-access/dist/index.js";
4
4
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index2.js
5
- var a = ({ client: t, organizationId: n }) => i({
5
+ var a = ({ client: e, organizationId: t }) => r({
6
+ client: e,
7
+ headers: i(t)
8
+ }), o = ({ client: e, organizationId: t, counterpartId: r }) => n({
9
+ client: e,
10
+ headers: i(t),
11
+ path: { counterpart_id: r }
12
+ }), s = ({ client: e, organizationId: n, counterpartId: r }) => t({
13
+ client: e,
14
+ headers: i(n),
15
+ path: { counterpart_id: r }
16
+ }), c = ({ client: t, organizationId: n, counterpartId: r }) => e({
6
17
  client: t,
7
- headers: e(n)
8
- }), o = ({ client: t, organizationId: n, counterpartId: i }) => r({
9
- client: t,
10
- headers: e(n),
11
- path: { counterpart_id: i }
12
- }), s = ({ client: t, organizationId: r, counterpartId: i }) => n({
13
- client: t,
14
- headers: e(r),
15
- path: { counterpart_id: i }
16
- }), c = ({ client: n, organizationId: r, counterpartId: i }) => t({
17
- client: n,
18
- headers: e(r),
19
- path: { counterpart_id: i }
18
+ headers: i(n),
19
+ path: { counterpart_id: r }
20
20
  });
21
21
  //#endregion
22
22
  export { c as counterpartAddressesInvalidationKey, s as counterpartBankAccountsInvalidationKey, o as counterpartInvalidationKey, a as counterpartsInvalidationKey };