@tesouro/embedded-components-react 0.5.225 → 0.5.227

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 (142) hide show
  1. package/README.md +21 -21
  2. package/dist/index.d.ts +23 -2
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +23 -2
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
  31. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
  32. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
  35. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
  48. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
  49. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
  51. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  86. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  87. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  88. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  101. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  102. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  103. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
  107. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
  108. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  109. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +210 -199
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  129. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  131. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  132. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  141. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  142. package/package.json +1 -1
@@ -10,7 +10,7 @@ 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/settings-widget/invoice-settings/data-access/dist/index3.js
12
12
  function a(a) {
13
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationPending: u } = n(), d = !!(s && c && a), f = e({
13
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: u } = n(), d = !!(s && c && a), f = e({
14
14
  client: o,
15
15
  headers: r(s),
16
16
  path: { entity_id: a ?? "" }
@@ -18,7 +18,7 @@ function a(a) {
18
18
  return i({
19
19
  ...t(f, {
20
20
  authEpoch: l,
21
- organizationPending: u
21
+ organizationStatus: u
22
22
  }),
23
23
  enabled: d
24
24
  });
@@ -11,7 +11,7 @@ import "../../../../shared/data-access/dist/index.js";
11
11
  import { useQuery as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js
13
13
  function o({ enabled: o } = {}) {
14
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = !!(c && l) && (o === !0 || o === void 0);
14
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = !!(c && l) && (o === !0 || o === void 0);
15
15
  return {
16
16
  userQuery: i({ enabled: f }),
17
17
  entityQuery: a({
@@ -20,7 +20,7 @@ function o({ enabled: o } = {}) {
20
20
  headers: r(c)
21
21
  }), {
22
22
  authEpoch: u,
23
- organizationPending: d
23
+ organizationStatus: d
24
24
  }),
25
25
  enabled: f
26
26
  })
@@ -12,7 +12,7 @@ import { queryOptions as a, useQuery as o } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js
13
13
  var s = 100;
14
14
  function c({ enabled: c } = {}) {
15
- let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationPending: p } = r(), m = i(u), h = a({
15
+ let { client: l, organizationId: u, widgetToken: d, authEpoch: f, organizationStatus: p } = r(), m = i(u), h = a({
16
16
  queryKey: [...t({
17
17
  client: l,
18
18
  headers: m,
@@ -41,7 +41,7 @@ function c({ enabled: c } = {}) {
41
41
  return o({
42
42
  ...n(h, {
43
43
  authEpoch: f,
44
- organizationPending: p
44
+ organizationStatus: p
45
45
  }),
46
46
  enabled: !!(u && d) && (c === !0 || c === void 0)
47
47
  });
@@ -10,7 +10,7 @@ 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/settings-widget/team/data-access/dist/index13.js
12
12
  function a({ enabled: a, ...o } = {}) {
13
- let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationPending: d } = n(), f = e({
13
+ let { client: s, organizationId: c, widgetToken: l, authEpoch: u, organizationStatus: d } = n(), f = e({
14
14
  query: o,
15
15
  client: s,
16
16
  headers: r(c)
@@ -18,7 +18,7 @@ function a({ enabled: a, ...o } = {}) {
18
18
  return i({
19
19
  ...t(f, {
20
20
  authEpoch: u,
21
- organizationPending: d
21
+ organizationStatus: d
22
22
  }, { carryWithinOrg: !0 }),
23
23
  enabled: !!(c && l) && (a === !0 || a === void 0)
24
24
  });
@@ -4,35 +4,37 @@
4
4
  "use client";
5
5
  import { getUsers as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { getUsersOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
- import { getAllPagesNextPageParam as a, useAutoFetchNextPage as o } from "../../../../shared/data-access/dist/lib/allPages.js";
10
+ import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
11
11
  import "../../../../shared/data-access/dist/index.js";
12
- import { useMemo as s } from "react";
13
- import { useInfiniteQuery as c } from "@tanstack/react-query";
12
+ import { useMemo as c } from "react";
13
+ import { useInfiniteQuery as l } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js
15
- var l = 100;
16
- function u({ Status: u, enabled: d } = {}) {
17
- let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationPending: g } = r(), _ = i(p), v = !!(p && m) && (d === !0 || d === void 0), y = [...t({
18
- client: f,
19
- headers: _,
15
+ var u = 100;
16
+ function d({ Status: d, enabled: f } = {}) {
17
+ let { client: p, organizationId: m, widgetToken: h, authEpoch: g, organizationStatus: _ } = r(), v = i(m), y = !!(m && h) && (f === !0 || f === void 0), b = t({
18
+ client: p,
19
+ headers: v,
20
20
  query: {
21
- Limit: l,
22
- ...u ? { Status: u } : {}
21
+ Limit: u,
22
+ ...d ? { Status: d } : {}
23
23
  }
24
- }).queryKey, "all"], b = c({
25
- queryKey: [...y, { authEpoch: h }],
26
- placeholderData: n(y, g),
27
- enabled: v,
24
+ }), x = l({
25
+ ...n(b.queryKey, {
26
+ authEpoch: g,
27
+ organizationStatus: _
28
+ }, { suffix: ["all"] }),
29
+ enabled: y,
28
30
  initialPageParam: void 0,
29
31
  queryFn: async ({ signal: t, pageParam: n }) => {
30
32
  let { data: r } = await e({
31
- client: f,
32
- headers: _,
33
+ client: p,
34
+ headers: v,
33
35
  query: {
34
- Limit: l,
35
- ...u ? { Status: u } : {},
36
+ Limit: u,
37
+ ...d ? { Status: d } : {},
36
38
  ...n ? { PaginationToken: n } : {}
37
39
  },
38
40
  signal: t,
@@ -42,19 +44,19 @@ function u({ Status: u, enabled: d } = {}) {
42
44
  },
43
45
  getNextPageParam: a
44
46
  });
45
- o(b, v);
46
- let x = s(() => {
47
- if (b.data) return {
48
- data: b.data.pages.flatMap((e) => e.data ?? []),
47
+ s(x, y);
48
+ let S = c(() => {
49
+ if (x.data) return {
50
+ data: x.data.pages.flatMap((e) => e.data ?? []),
49
51
  nextPaginationToken: null,
50
52
  prevPaginationToken: null
51
53
  };
52
- }, [b.data]), S = b.isSuccess && !b.hasNextPage && !b.isFetchingNextPage;
54
+ }, [x.data]), C = x.isSuccess && !o(x);
53
55
  return {
54
- ...b,
55
- data: x,
56
- isComplete: S
56
+ ...x,
57
+ data: S,
58
+ isComplete: C
57
59
  };
58
60
  }
59
61
  //#endregion
60
- export { u as useAllTeamMembersQuery };
62
+ export { d as useAllTeamMembersQuery };
@@ -4,31 +4,33 @@
4
4
  "use client";
5
5
  import { listDepartments as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { listDepartmentsOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
- import { getAllPagesNextPageParam as a, useAutoFetchNextPage as o } from "../../../../shared/data-access/dist/lib/allPages.js";
10
+ import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
11
11
  import "../../../../shared/data-access/dist/index.js";
12
- import { useMemo as s } from "react";
13
- import { useInfiniteQuery as c } from "@tanstack/react-query";
12
+ import { useMemo as c } from "react";
13
+ import { useInfiniteQuery as l } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js
15
- var l = 100;
16
- function u({ enabled: u } = {}) {
17
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationPending: h } = r(), g = i(f), _ = !!(f && p) && (u === !0 || u === void 0), v = [...t({
18
- client: d,
19
- headers: g,
20
- query: { limit: l }
21
- }).queryKey, "all"], y = c({
22
- queryKey: [...v, { authEpoch: m }],
23
- placeholderData: n(v, h),
24
- enabled: _,
15
+ var u = 100;
16
+ function d({ enabled: d } = {}) {
17
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m) && (d === !0 || d === void 0), y = t({
18
+ client: f,
19
+ headers: _,
20
+ query: { limit: u }
21
+ }), b = l({
22
+ ...n(y.queryKey, {
23
+ authEpoch: h,
24
+ organizationStatus: g
25
+ }, { suffix: ["all"] }),
26
+ enabled: v,
25
27
  initialPageParam: void 0,
26
28
  queryFn: async ({ signal: t, pageParam: n }) => {
27
29
  let { data: r } = await e({
28
- client: d,
29
- headers: g,
30
+ client: f,
31
+ headers: _,
30
32
  query: {
31
- limit: l,
33
+ limit: u,
32
34
  ...n ? { paginationToken: n } : {}
33
35
  },
34
36
  signal: t,
@@ -38,19 +40,19 @@ function u({ enabled: u } = {}) {
38
40
  },
39
41
  getNextPageParam: a
40
42
  });
41
- o(y, _);
42
- let b = s(() => {
43
- if (y.data) return {
44
- data: y.data.pages.flatMap((e) => e.data ?? []),
43
+ s(b, v);
44
+ let x = c(() => {
45
+ if (b.data) return {
46
+ data: b.data.pages.flatMap((e) => e.data ?? []),
45
47
  nextPaginationToken: null,
46
48
  prevPaginationToken: null
47
49
  };
48
- }, [y.data]), x = y.isSuccess && !y.hasNextPage && !y.isFetchingNextPage;
50
+ }, [b.data]), S = b.isSuccess && !o(b);
49
51
  return {
50
- ...y,
51
- data: b,
52
- isComplete: x
52
+ ...b,
53
+ data: x,
54
+ isComplete: S
53
55
  };
54
56
  }
55
57
  //#endregion
56
- export { u as useAllDepartmentsQuery };
58
+ export { d as useAllDepartmentsQuery };
@@ -4,32 +4,35 @@
4
4
  "use client";
5
5
  import { getDepartment as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { getDepartmentOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
+ import { isAllPagesResolving as a } from "../../../../shared/data-access/dist/lib/allPages.js";
10
11
  import "../../../../shared/data-access/dist/index.js";
11
- import { useEffect as a, useMemo as o } from "react";
12
- import { useInfiniteQuery as s } from "@tanstack/react-query";
12
+ import { useEffect as o, useMemo as s } from "react";
13
+ import { useInfiniteQuery as c } from "@tanstack/react-query";
13
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js
14
- var c = 100;
15
- function l({ departmentId: l, enabled: u }) {
16
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationPending: h } = r(), g = i(f), _ = !!(f && p && l) && (u === !0 || u === void 0), v = [...t({
17
- path: { departmentId: l ?? "" },
18
- client: d,
19
- headers: g,
20
- query: { limit: c }
21
- }).queryKey, "all-members"], y = s({
22
- queryKey: [...v, { authEpoch: m }],
23
- placeholderData: n(v, h),
24
- enabled: _,
15
+ var l = 100;
16
+ function u({ departmentId: u, enabled: d }) {
17
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m && u) && (d === !0 || d === void 0), y = t({
18
+ path: { departmentId: u ?? "" },
19
+ client: f,
20
+ headers: _,
21
+ query: { limit: l }
22
+ }), b = c({
23
+ ...n(y.queryKey, {
24
+ authEpoch: h,
25
+ organizationStatus: g
26
+ }, { suffix: ["all-members"] }),
27
+ enabled: v,
25
28
  initialPageParam: void 0,
26
29
  queryFn: async ({ signal: t, pageParam: n }) => {
27
30
  let { data: r } = await e({
28
- client: d,
29
- headers: g,
30
- path: { departmentId: l ?? "" },
31
+ client: f,
32
+ headers: _,
33
+ path: { departmentId: u ?? "" },
31
34
  query: {
32
- limit: c,
35
+ limit: l,
33
36
  ...n ? { paginationToken: n } : {}
34
37
  },
35
38
  signal: t,
@@ -42,19 +45,19 @@ function l({ departmentId: l, enabled: u }) {
42
45
  if (!(i === void 0 || r.includes(i))) return i;
43
46
  }
44
47
  });
45
- a(() => {
46
- _ && y.hasNextPage && !y.isFetchingNextPage && !y.isError && y.fetchNextPage();
48
+ o(() => {
49
+ v && b.hasNextPage && !b.isFetchingNextPage && !b.isError && b.fetchNextPage();
47
50
  }, [
48
- _,
49
- y.hasNextPage,
50
- y.isFetchingNextPage,
51
- y.isError,
52
- y.fetchNextPage,
53
- y
51
+ v,
52
+ b.hasNextPage,
53
+ b.isFetchingNextPage,
54
+ b.isError,
55
+ b.fetchNextPage,
56
+ b
54
57
  ]);
55
- let b = y.isSuccess && !y.hasNextPage && !y.isFetchingNextPage, x = o(() => {
56
- if (!y.data || !b) return;
57
- let e = y.data.pages, t = e[e.length - 1], n = e.flatMap((e) => e.members?.data ?? []);
58
+ let x = b.isSuccess && !b.hasNextPage && !b.isFetchingNextPage, S = b.isSuccess && !a(b), C = s(() => {
59
+ if (!b.data || !x) return;
60
+ let e = b.data.pages, t = e[e.length - 1], n = e.flatMap((e) => e.members?.data ?? []);
58
61
  return {
59
62
  ...t,
60
63
  members: {
@@ -63,12 +66,12 @@ function l({ departmentId: l, enabled: u }) {
63
66
  nextPaginationToken: null
64
67
  }
65
68
  };
66
- }, [y.data, b]);
69
+ }, [b.data, x]);
67
70
  return {
68
- ...y,
69
- data: x,
70
- isComplete: b
71
+ ...b,
72
+ data: C,
73
+ isComplete: S
71
74
  };
72
75
  }
73
76
  //#endregion
74
- export { l as useDepartmentMembersQuery };
77
+ export { u as useDepartmentMembersQuery };
@@ -4,31 +4,33 @@
4
4
  "use client";
5
5
  import { listLocations as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { listLocationsOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
- import { getAllPagesNextPageParam as a, useAutoFetchNextPage as o } from "../../../../shared/data-access/dist/lib/allPages.js";
10
+ import { getAllPagesNextPageParam as a, isAllPagesResolving as o, useAutoFetchNextPage as s } from "../../../../shared/data-access/dist/lib/allPages.js";
11
11
  import "../../../../shared/data-access/dist/index.js";
12
- import { useMemo as s } from "react";
13
- import { useInfiniteQuery as c } from "@tanstack/react-query";
12
+ import { useMemo as c } from "react";
13
+ import { useInfiniteQuery as l } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js
15
- var l = 100;
16
- function u({ enabled: u } = {}) {
17
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationPending: h } = r(), g = i(f), _ = !!(f && p) && (u === !0 || u === void 0), v = [...t({
18
- client: d,
19
- headers: g,
20
- query: { limit: l }
21
- }).queryKey, "all"], y = c({
22
- queryKey: [...v, { authEpoch: m }],
23
- placeholderData: n(v, h),
24
- enabled: _,
15
+ var u = 100;
16
+ function d({ enabled: d } = {}) {
17
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m) && (d === !0 || d === void 0), y = t({
18
+ client: f,
19
+ headers: _,
20
+ query: { limit: u }
21
+ }), b = l({
22
+ ...n(y.queryKey, {
23
+ authEpoch: h,
24
+ organizationStatus: g
25
+ }, { suffix: ["all"] }),
26
+ enabled: v,
25
27
  initialPageParam: void 0,
26
28
  queryFn: async ({ signal: t, pageParam: n }) => {
27
29
  let { data: r } = await e({
28
- client: d,
29
- headers: g,
30
+ client: f,
31
+ headers: _,
30
32
  query: {
31
- limit: l,
33
+ limit: u,
32
34
  ...n ? { paginationToken: n } : {}
33
35
  },
34
36
  signal: t,
@@ -38,19 +40,19 @@ function u({ enabled: u } = {}) {
38
40
  },
39
41
  getNextPageParam: a
40
42
  });
41
- o(y, _);
42
- let b = s(() => {
43
- if (y.data) return {
44
- data: y.data.pages.flatMap((e) => e.data ?? []),
43
+ s(b, v);
44
+ let x = c(() => {
45
+ if (b.data) return {
46
+ data: b.data.pages.flatMap((e) => e.data ?? []),
45
47
  nextPaginationToken: null,
46
48
  prevPaginationToken: null
47
49
  };
48
- }, [y.data]), x = y.isSuccess && !y.hasNextPage && !y.isFetchingNextPage;
50
+ }, [b.data]), S = b.isSuccess && !o(b);
49
51
  return {
50
- ...y,
51
- data: b,
52
- isComplete: x
52
+ ...b,
53
+ data: x,
54
+ isComplete: S
53
55
  };
54
56
  }
55
57
  //#endregion
56
- export { u as useAllLocationsQuery };
58
+ export { d as useAllLocationsQuery };
@@ -4,32 +4,35 @@
4
4
  "use client";
5
5
  import { getLocation as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { getLocationOptions as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { authEpochPlaceholder as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { withAuthEpochInfinite as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
8
  import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
9
  import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
+ import { isAllPagesResolving as a } from "../../../../shared/data-access/dist/lib/allPages.js";
10
11
  import "../../../../shared/data-access/dist/index.js";
11
- import { useEffect as a, useMemo as o } from "react";
12
- import { useInfiniteQuery as s } from "@tanstack/react-query";
12
+ import { useEffect as o, useMemo as s } from "react";
13
+ import { useInfiniteQuery as c } from "@tanstack/react-query";
13
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js
14
- var c = 100;
15
- function l({ locationId: l, enabled: u }) {
16
- let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationPending: h } = r(), g = i(f), _ = !!(f && p && l) && (u === !0 || u === void 0), v = [...t({
17
- path: { locationId: l ?? "" },
18
- client: d,
19
- headers: g,
20
- query: { limit: c }
21
- }).queryKey, "all-members"], y = s({
22
- queryKey: [...v, { authEpoch: m }],
23
- placeholderData: n(v, h),
24
- enabled: _,
15
+ var l = 100;
16
+ function u({ locationId: u, enabled: d }) {
17
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = r(), _ = i(p), v = !!(p && m && u) && (d === !0 || d === void 0), y = t({
18
+ path: { locationId: u ?? "" },
19
+ client: f,
20
+ headers: _,
21
+ query: { limit: l }
22
+ }), b = c({
23
+ ...n(y.queryKey, {
24
+ authEpoch: h,
25
+ organizationStatus: g
26
+ }, { suffix: ["all-members"] }),
27
+ enabled: v,
25
28
  initialPageParam: void 0,
26
29
  queryFn: async ({ signal: t, pageParam: n }) => {
27
30
  let { data: r } = await e({
28
- client: d,
29
- headers: g,
30
- path: { locationId: l ?? "" },
31
+ client: f,
32
+ headers: _,
33
+ path: { locationId: u ?? "" },
31
34
  query: {
32
- limit: c,
35
+ limit: l,
33
36
  ...n ? { paginationToken: n } : {}
34
37
  },
35
38
  signal: t,
@@ -42,19 +45,19 @@ function l({ locationId: l, enabled: u }) {
42
45
  if (!(i === void 0 || r.includes(i))) return i;
43
46
  }
44
47
  });
45
- a(() => {
46
- _ && y.hasNextPage && !y.isFetchingNextPage && !y.isError && y.fetchNextPage();
48
+ o(() => {
49
+ v && b.hasNextPage && !b.isFetchingNextPage && !b.isError && b.fetchNextPage();
47
50
  }, [
48
- _,
49
- y.hasNextPage,
50
- y.isFetchingNextPage,
51
- y.isError,
52
- y.fetchNextPage,
53
- y
51
+ v,
52
+ b.hasNextPage,
53
+ b.isFetchingNextPage,
54
+ b.isError,
55
+ b.fetchNextPage,
56
+ b
54
57
  ]);
55
- let b = y.isSuccess && !y.hasNextPage && !y.isFetchingNextPage, x = o(() => {
56
- if (!y.data || !b) return;
57
- let e = y.data.pages, t = e[e.length - 1], n = e.flatMap((e) => e.members?.data ?? []);
58
+ let x = b.isSuccess && !b.hasNextPage && !b.isFetchingNextPage, S = b.isSuccess && !a(b), C = s(() => {
59
+ if (!b.data || !x) return;
60
+ let e = b.data.pages, t = e[e.length - 1], n = e.flatMap((e) => e.members?.data ?? []);
58
61
  return {
59
62
  ...t,
60
63
  members: {
@@ -63,12 +66,12 @@ function l({ locationId: l, enabled: u }) {
63
66
  nextPaginationToken: null
64
67
  }
65
68
  };
66
- }, [y.data, b]);
69
+ }, [b.data, x]);
67
70
  return {
68
- ...y,
69
- data: x,
70
- isComplete: b
71
+ ...b,
72
+ data: C,
73
+ isComplete: S
71
74
  };
72
75
  }
73
76
  //#endregion
74
- export { l as useLocationMembersQuery };
77
+ export { u as useLocationMembersQuery };