@tesouro/embedded-components-react 0.5.226 → 0.5.228

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 (160) hide show
  1. package/README.md +21 -21
  2. package/dist/index.d.ts +54 -34
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +54 -34
  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 +33 -63
  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 +36 -141
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +26 -16
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +58 -37
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +228 -122
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +300 -147
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +34 -37
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +126 -122
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +150 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +38 -91
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +113 -107
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +98 -231
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +111 -27
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +25 -624
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +631 -39
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +41 -40
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +35 -74
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +73 -115
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +115 -313
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +325 -0
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index7.js +15 -2
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +11 -12
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +42 -1
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +19 -3
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +73 -3
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +3 -1
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +16 -1
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +32 -4
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +304 -11
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +42 -258
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +62 -38
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +485 -61
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +90 -480
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +2 -0
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +3 -1
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +0 -3
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +100 -1
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +23 -95
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +231 -23
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +3 -236
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +249 -3
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +78 -234
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +53 -87
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +343 -49
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +29 -20
  102. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  103. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  104. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  105. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  106. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  107. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  108. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  109. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  110. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  111. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  112. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  113. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  114. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  115. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  116. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  117. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  118. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  119. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  120. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  121. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  122. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +4 -3
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  129. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  130. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  131. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  132. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  133. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  134. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  135. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +189 -211
  136. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +43 -59
  137. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  138. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  139. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  141. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  142. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  143. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  144. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  145. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  146. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  147. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  148. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  149. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  150. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  151. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  152. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  153. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  154. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  155. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  156. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  157. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  158. package/package.json +1 -1
  159. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +0 -106
  160. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +0 -353
@@ -6,58 +6,58 @@ import { diffMemberSelection as e, formatMembersCount as t } from "./index4.js";
6
6
  import { useEffect as n, useRef as r, useState as i } from "react";
7
7
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js
8
8
  function a(a) {
9
- let { canRead: o, canWrite: s, directory: c, directoryReady: l, assignedAvatarsByGroupId: u, useListQuery: d, useEditMembers: f, useMutations: p, panelLabels: m, drawerLabels: h, countLabels: g, saveFailedMessage: _, deleteFailedMessage: v } = a, y = d(), b = p(), [x, S] = i("closed"), [C, w] = i(), [T, E] = i(""), [D, O] = i(""), [k, A] = i([]), [j, M] = i(), [N, P] = i(), [F, I] = i(), L = f(x === "edit" ? C : void 0), R = (L.data?.members?.data ?? []).map((e) => e.id), z = o ? y.data?.data ?? [] : [], B = l && (x !== "edit" || !!L.data), V = r(void 0);
9
+ let { canRead: o, canWrite: s, directory: c, directoryReady: l, assignedAvatarsByGroupId: u, useListQuery: d, useEditMembers: f, useMutations: p, panelLabels: m, drawerLabels: h, countLabels: g, saveFailedMessage: _, deleteFailedMessage: v } = a, y = d(), b = p(), x = s && !y.isPlaceholderData, [S, C] = i("closed"), [w, T] = i(), [E, D] = i(""), [O, k] = i(""), [A, j] = i([]), [M, N] = i(), [P, F] = i(), [I, L] = i(), R = f(S === "edit" ? w : void 0), z = (R.data?.members?.data ?? []).map((e) => e.id), B = o ? y.data?.data ?? [] : [], V = l && (S !== "edit" || !!R.data), H = r(void 0);
10
10
  n(() => {
11
- x === "edit" && C && V.current !== C && L.data && l && (V.current = C, A(R.map((e) => c.idToOption.get(e)).filter((e) => !!e)));
11
+ S === "edit" && w && H.current !== w && R.data && l && (H.current = w, j(z.map((e) => c.idToOption.get(e)).filter((e) => !!e)));
12
12
  }, [
13
- x,
14
- C,
15
- L.data,
13
+ S,
14
+ w,
15
+ R.data,
16
16
  l,
17
- R,
17
+ z,
18
18
  c
19
19
  ]);
20
- let H = () => {
21
- S("closed"), w(void 0), E(""), O(""), A([]), M(void 0), V.current = void 0;
22
- }, U = () => {
23
- H(), S("create");
24
- }, W = (e) => {
25
- let t = z.find((t) => t.id === e);
26
- S("edit"), w(e), E(t?.name ?? ""), O(t?.name ?? ""), A([]), M(void 0), V.current = void 0;
27
- }, G = () => k.map((e) => c.optionToId.get(e)).filter((e) => !!e), K = async () => {
28
- let t = T.trim();
29
- if (t && B) {
30
- M(void 0);
20
+ let U = () => {
21
+ C("closed"), T(void 0), D(""), k(""), j([]), N(void 0), H.current = void 0;
22
+ }, W = () => {
23
+ U(), C("create");
24
+ }, G = (e) => {
25
+ let t = B.find((t) => t.id === e);
26
+ C("edit"), T(e), D(t?.name ?? ""), k(t?.name ?? ""), j([]), N(void 0), H.current = void 0;
27
+ }, K = () => A.map((e) => c.optionToId.get(e)).filter((e) => !!e), q = async () => {
28
+ let t = E.trim();
29
+ if (t && V) {
30
+ N(void 0);
31
31
  try {
32
- if (x === "create") {
32
+ if (S === "create") {
33
33
  let e = await b.create(t);
34
- S("edit"), w(e.id), O(t), V.current = e.id;
35
- let n = G();
34
+ C("edit"), T(e.id), k(t), H.current = e.id;
35
+ let n = K();
36
36
  n.length > 0 && await b.assignMembers(e.id, n);
37
- } else if (x === "edit" && C) {
38
- t !== D.trim() && await b.rename(C, t);
39
- let n = R.filter((e) => c.idToOption.has(e)), { toAssign: r, toRemove: i } = e(n, G());
40
- r.length > 0 && await b.assignMembers(C, r), i.length > 0 && await b.removeMembers(C, i);
37
+ } else if (S === "edit" && w) {
38
+ t !== O.trim() && await b.rename(w, t);
39
+ let n = z.filter((e) => c.idToOption.has(e)), { toAssign: r, toRemove: i } = e(n, K());
40
+ r.length > 0 && await b.assignMembers(w, r), i.length > 0 && await b.removeMembers(w, i);
41
41
  }
42
- H();
42
+ U();
43
43
  } catch {
44
- M(_);
44
+ N(_);
45
45
  }
46
46
  }
47
- }, q = (e) => {
48
- P(e), I(void 0);
49
- }, J = () => {
50
- P(void 0), I(void 0);
51
- }, Y = async () => {
52
- if (N) {
53
- I(void 0);
47
+ }, J = (e) => {
48
+ F(e), L(void 0);
49
+ }, Y = () => {
50
+ F(void 0), L(void 0);
51
+ }, X = async () => {
52
+ if (P) {
53
+ L(void 0);
54
54
  try {
55
- await b.remove(N), J(), C === N && H();
55
+ await b.remove(P), Y(), w === P && U();
56
56
  } catch {
57
- I(v);
57
+ L(v);
58
58
  }
59
59
  }
60
- }, X = z.map((e) => {
60
+ }, Z = B.map((e) => {
61
61
  let n = typeof e.memberCount == "string" ? Number.parseInt(e.memberCount, 10) : e.memberCount ?? 0, r = Number.isNaN(n) ? 0 : n, i = u?.get(e.id), a = i ? Math.max(0, r - i.length) : 0;
62
62
  return {
63
63
  key: e.id,
@@ -65,45 +65,45 @@ function a(a) {
65
65
  membersLabel: t(e.memberCount, g),
66
66
  assignedAvatars: i,
67
67
  assignedOverflowLabel: a > 0 ? `+${a}` : void 0,
68
- onEdit: s ? () => W(e.id) : void 0,
69
- onDelete: s ? () => q(e.id) : void 0
68
+ onEdit: x ? () => G(e.id) : void 0,
69
+ onDelete: x ? () => J(e.id) : void 0
70
70
  };
71
- }), Z = z.find((e) => e.id === N)?.name ?? "";
71
+ }), Q = B.find((e) => e.id === P)?.name ?? "";
72
72
  return {
73
73
  canRead: o,
74
74
  panel: {
75
- rows: X,
76
- isLoading: o && (y.isLoading || y.isComplete === !1),
75
+ rows: Z,
76
+ isLoading: o && (y.isLoading || y.isComplete === !1 && !y.isPlaceholderData),
77
77
  isError: y.isError,
78
- onAddClick: s ? U : void 0,
78
+ onAddClick: x ? W : void 0,
79
79
  labels: m
80
80
  },
81
81
  drawer: {
82
- open: x !== "closed",
83
- isEditMode: x === "edit",
84
- name: T,
85
- onNameChange: E,
82
+ open: S !== "closed",
83
+ isEditMode: S === "edit",
84
+ name: E,
85
+ onNameChange: D,
86
86
  options: c.options,
87
- selectedOptions: k,
88
- onSelectedOptionsChange: (e) => A(Array.isArray(e) ? e : [e]),
89
- isSaveDisabled: !T.trim() || b.isMutating || !B,
90
- submitErrorMessage: j,
87
+ selectedOptions: A,
88
+ onSelectedOptionsChange: (e) => j(Array.isArray(e) ? e : [e]),
89
+ isSaveDisabled: !E.trim() || b.isMutating || !V,
90
+ submitErrorMessage: M,
91
91
  onOpenChange: (e) => {
92
- e || H();
92
+ e || U();
93
93
  },
94
- onSubmit: K,
95
- onDelete: x === "edit" && C ? () => q(C) : void 0,
94
+ onSubmit: q,
95
+ onDelete: S === "edit" && w ? () => J(w) : void 0,
96
96
  labels: h
97
97
  },
98
98
  deleteDialog: {
99
- open: !!N,
100
- subjectName: Z,
99
+ open: !!P,
100
+ subjectName: Q,
101
101
  isConfirming: b.isMutating,
102
- errorMessage: F,
102
+ errorMessage: I,
103
103
  onOpenChange: (e) => {
104
- e || J();
104
+ e || Y();
105
105
  },
106
- onConfirm: Y
106
+ onConfirm: X
107
107
  }
108
108
  };
109
109
  }
@@ -4,21 +4,21 @@
4
4
  "use client";
5
5
  import { getApprovalPolicies as e } from "../../../../data-access/dist/lib/rest/sdk.gen.js";
6
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 { authEpochPlaceholder as a, withAuthEpoch as o } from "../../../../data-access/dist/lib/withAuthEpoch.js";
8
- import { invalidateAllClients as s, setAllClientsQueriesData as c } from "../../../../data-access/dist/lib/clientRegistry.js";
9
- import { useEmbedApi as l } from "../../../../data-access/dist/lib/EmbedApiContext.js";
10
- import { getAllPagesNextPaginationTokenParam as u, isAllPagesResolving as d, useAutoFetchNextPage as f } from "../../../../data-access/dist/lib/allPages.js";
7
+ import { withAuthEpochInfinite 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
+ 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
- import { ApprovalPolicyObjectType as p, approvalPoliciesInvalidationKey as m } from "./queryKeys.js";
13
- import { useMemo as h } from "react";
14
- import { useInfiniteQuery as g, useMutation as _, useQueryClient as v } from "@tanstack/react-query";
12
+ import { ApprovalPolicyObjectType as f, approvalPoliciesInvalidationKey as p } from "./queryKeys.js";
13
+ import { useMemo as m } from "react";
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
- var y = 100;
17
- function b(e, t, n) {
16
+ var v = 100;
17
+ function y(e, t, n) {
18
18
  let r = (e) => e && n(e);
19
- e.setQueriesData({ queryKey: t }, r), c(t, r);
19
+ e.setQueriesData({ queryKey: t }, r), s(t, r);
20
20
  }
21
- function x(e, t) {
21
+ function b(e, t) {
22
22
  return {
23
23
  ...e,
24
24
  pages: e.pages.map((e) => ({
@@ -27,56 +27,55 @@ function x(e, t) {
27
27
  }))
28
28
  };
29
29
  }
30
- function S({ objectType: t = p.Payable, enabled: r = !0 } = {}) {
31
- let { client: i, organizationId: s, widgetToken: c, authEpoch: m, organizationPending: _ } = l(), v = s, b = !!(v && c) && r, x = { "x-organization-id": v ?? "" }, S = { object_type: t }, C = n({
30
+ function x({ objectType: t = f.Payable, enabled: r = !0 } = {}) {
31
+ let { client: i, organizationId: o, widgetToken: s, authEpoch: p, organizationStatus: g } = c(), _ = o, y = !!(_ && s) && r, b = { "x-organization-id": _ ?? "" }, x = { object_type: t }, S = n({
32
32
  client: i,
33
- headers: x,
34
- query: S
35
- }), w = g({
36
- queryKey: [...o(C, {
37
- authEpoch: m,
38
- organizationPending: _
39
- }).queryKey, "all"],
40
- placeholderData: a(C.queryKey, _),
41
- enabled: b,
33
+ headers: b,
34
+ query: x
35
+ }), C = h({
36
+ ...a(S.queryKey, {
37
+ authEpoch: p,
38
+ organizationStatus: g
39
+ }, { suffix: ["all"] }),
40
+ enabled: y,
42
41
  initialPageParam: void 0,
43
42
  queryFn: async ({ signal: t, pageParam: n }) => {
44
43
  let { data: r } = await e({
45
44
  client: i,
46
- headers: x,
45
+ headers: b,
47
46
  query: n ? { pagination_token: n } : {
48
- ...S,
49
- limit: y
47
+ ...x,
48
+ limit: v
50
49
  },
51
50
  signal: t,
52
51
  throwOnError: !0
53
52
  });
54
53
  return r;
55
54
  },
56
- getNextPageParam: u
55
+ getNextPageParam: l
57
56
  });
58
- f(w, b);
59
- let T = h(() => w.data ? { data: w.data.pages.flatMap((e) => e.data ?? []) } : void 0, [w.data]);
57
+ d(C, y);
58
+ let w = m(() => C.data ? { data: C.data.pages.flatMap((e) => e.data ?? []) } : void 0, [C.data]);
60
59
  return {
61
- ...w,
62
- data: T,
63
- isResolving: d(w)
60
+ ...C,
61
+ data: w,
62
+ isResolving: u(C)
64
63
  };
65
64
  }
66
- function C({ objectType: e = p.Payable } = {}) {
67
- let { client: t, organizationId: n } = l(), r = v();
68
- return _({
65
+ function S({ objectType: e = f.Payable } = {}) {
66
+ let { client: t, organizationId: n } = c(), r = _();
67
+ return g({
69
68
  ...i({
70
69
  client: t,
71
70
  headers: { "x-organization-id": n ?? "" }
72
71
  }),
73
72
  onSuccess: async (i) => {
74
- b(r, m({
73
+ y(r, p({
75
74
  client: t,
76
75
  organizationId: n,
77
76
  objectType: e
78
77
  }), (e) => {
79
- if (e.pages.some((e) => e.data?.some((e) => e.id === i.id))) return x(e, (e) => e.map((e) => e.id === i.id ? i : e));
78
+ 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));
80
79
  let t = e.pages.length - 1;
81
80
  return t < 0 ? e : {
82
81
  ...e,
@@ -85,7 +84,7 @@ function C({ objectType: e = p.Payable } = {}) {
85
84
  data: [...e.data ?? [], i]
86
85
  } : e)
87
86
  };
88
- }), await s(m({
87
+ }), await o(p({
89
88
  client: t,
90
89
  organizationId: n,
91
90
  objectType: e
@@ -93,19 +92,19 @@ function C({ objectType: e = p.Payable } = {}) {
93
92
  }
94
93
  });
95
94
  }
96
- function w({ objectType: e = p.Payable } = {}) {
97
- let { client: t, organizationId: n } = l(), i = v();
98
- return _({
95
+ function C({ objectType: e = f.Payable } = {}) {
96
+ let { client: t, organizationId: n } = c(), i = _();
97
+ return g({
99
98
  ...r({
100
99
  client: t,
101
100
  headers: { "x-organization-id": n ?? "" }
102
101
  }),
103
102
  onSuccess: async (r) => {
104
- b(i, m({
103
+ y(i, p({
105
104
  client: t,
106
105
  organizationId: n,
107
106
  objectType: e
108
- }), (e) => x(e, (e) => e.map((e) => e.id === r.id ? r : e))), await s(m({
107
+ }), (e) => b(e, (e) => e.map((e) => e.id === r.id ? r : e))), await o(p({
109
108
  client: t,
110
109
  organizationId: n,
111
110
  objectType: e
@@ -113,19 +112,19 @@ function w({ objectType: e = p.Payable } = {}) {
113
112
  }
114
113
  });
115
114
  }
116
- function T({ objectType: e = p.Payable } = {}) {
117
- let { client: n, organizationId: r } = l(), i = v();
118
- return _({
115
+ function w({ objectType: e = f.Payable } = {}) {
116
+ let { client: n, organizationId: r } = c(), i = _();
117
+ return g({
119
118
  ...t({
120
119
  client: n,
121
120
  headers: { "x-organization-id": r ?? "" }
122
121
  }),
123
122
  onSuccess: async (t, a) => {
124
- b(i, m({
123
+ y(i, p({
125
124
  client: n,
126
125
  organizationId: r,
127
126
  objectType: e
128
- }), (e) => x(e, (e) => e.filter((e) => e.id !== a.path.approval_policy_id))), await s(m({
127
+ }), (e) => b(e, (e) => e.filter((e) => e.id !== a.path.approval_policy_id))), await o(p({
129
128
  client: n,
130
129
  organizationId: r,
131
130
  objectType: e
@@ -134,4 +133,4 @@ function T({ objectType: e = p.Payable } = {}) {
134
133
  });
135
134
  }
136
135
  //#endregion
137
- export { T as useDeleteApprovalPoliciesIdMutation, S as useGetApprovalPoliciesQuery, w as usePatchApprovalPoliciesIdMutation, C as usePostApprovalPoliciesMutation };
136
+ export { w as useDeleteApprovalPoliciesIdMutation, x as useGetApprovalPoliciesQuery, C as usePatchApprovalPoliciesIdMutation, S as usePostApprovalPoliciesMutation };
@@ -14,7 +14,7 @@ import { useMemo as d } from "react";
14
14
  import { useMutation as f, useQuery as p } from "@tanstack/react-query";
15
15
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js
16
16
  function m({ enabled: e, ...t } = {}) {
17
- let { client: n, organizationId: r, widgetToken: o, authEpoch: l, organizationPending: u } = s(), d = !!(r && o) && (e === !0 || e === void 0), f = i({
17
+ let { client: n, organizationId: r, widgetToken: o, authEpoch: l, organizationStatus: u } = s(), d = !!(r && o) && (e === !0 || e === void 0), f = i({
18
18
  query: t,
19
19
  client: n,
20
20
  headers: c(r)
@@ -22,13 +22,13 @@ function m({ enabled: e, ...t } = {}) {
22
22
  return p({
23
23
  ...a(f, {
24
24
  authEpoch: l,
25
- organizationPending: u
25
+ organizationStatus: u
26
26
  }, { carryWithinOrg: !0 }),
27
27
  enabled: d
28
28
  });
29
29
  }
30
30
  function h(e) {
31
- let { client: t, organizationId: n, widgetToken: i, authEpoch: o, organizationPending: l } = s(), u = !!(n && i && e), d = r({
31
+ let { client: t, organizationId: n, widgetToken: i, authEpoch: o, organizationStatus: l } = s(), u = !!(n && i && e), d = r({
32
32
  client: t,
33
33
  headers: c(n),
34
34
  path: { counterpart_id: e ?? "" }
@@ -36,7 +36,7 @@ function h(e) {
36
36
  return p({
37
37
  ...a(d, {
38
38
  authEpoch: o,
39
- organizationPending: l
39
+ organizationStatus: l
40
40
  }),
41
41
  enabled: u
42
42
  });
@@ -13,7 +13,7 @@ import { counterpartBankAccountsInvalidationKey as l, counterpartInvalidationKey
13
13
  import { useMutation as d, useQuery as f } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js
15
15
  function p(e, { enabled: t = !0 } = {}) {
16
- let { client: n, organizationId: r, widgetToken: o, authEpoch: l, organizationPending: u } = s(), d = !!(t && r && o && e), p = i({
16
+ let { client: n, organizationId: r, widgetToken: o, authEpoch: l, organizationStatus: u } = s(), d = !!(t && r && o && e), p = i({
17
17
  client: n,
18
18
  headers: c(r),
19
19
  path: { counterpart_id: e ?? "" }
@@ -21,7 +21,7 @@ function p(e, { enabled: t = !0 } = {}) {
21
21
  return f({
22
22
  ...a(p, {
23
23
  authEpoch: l,
24
- organizationPending: u
24
+ organizationStatus: u
25
25
  }),
26
26
  enabled: d
27
27
  });
@@ -13,7 +13,7 @@ import { counterpartAddressesInvalidationKey as s, counterpartInvalidationKey as
13
13
  import { useMutation as l, useQueries as u, useQuery as d } from "@tanstack/react-query";
14
14
  //#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js
15
15
  function f(e) {
16
- let { client: t, organizationId: i, widgetToken: s, authEpoch: c, organizationPending: l } = a(), u = !!(i && s && e), f = n({
16
+ let { client: t, organizationId: i, widgetToken: s, authEpoch: c, organizationStatus: l } = a(), u = !!(i && s && e), f = n({
17
17
  client: t,
18
18
  headers: o(i),
19
19
  path: { counterpart_id: e ?? "" }
@@ -21,13 +21,13 @@ function f(e) {
21
21
  return d({
22
22
  ...r(f, {
23
23
  authEpoch: c,
24
- organizationPending: l
24
+ organizationStatus: l
25
25
  }),
26
26
  enabled: u
27
27
  });
28
28
  }
29
29
  function p({ counterpartIds: e, enabled: t }) {
30
- let { client: i, organizationId: s, widgetToken: c, authEpoch: l, organizationPending: d } = a(), f = !!(s && c) && e.length > 0 && (t === !0 || t === void 0);
30
+ let { client: i, organizationId: s, widgetToken: c, authEpoch: l, organizationStatus: d } = a(), f = !!(s && c) && e.length > 0 && (t === !0 || t === void 0);
31
31
  return u({ queries: e.map((e) => ({
32
32
  ...r(n({
33
33
  client: i,
@@ -35,7 +35,7 @@ function p({ counterpartIds: e, enabled: t }) {
35
35
  path: { counterpart_id: e }
36
36
  }), {
37
37
  authEpoch: l,
38
- organizationPending: d
38
+ organizationStatus: d
39
39
  }),
40
40
  enabled: f && !!e
41
41
  })) });
@@ -1,8 +1,9 @@
1
1
  import "./lib/finopsApiVersion.js";
2
2
  import "./lib/rest/client.gen.js";
3
3
  import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getUsers as I, listDepartments as L, listLocations as R, listRoles as z, manageBankAccountAccess as B, manageDebitCardAccess as V, patchCounterpartsId as H, patchCounterpartsIdAddressesId as U, patchCounterpartsIdBankAccountsId as W, patchEntitiesIdSettings as G, patchMeasureUnitsId as K, patchPayablesId as q, patchProductsId as J, patchReceivablesId as Y, patchRecurrencesId as X, patchTransactionsId as Z, postApprovalRequestsIdApprove as Q, postApprovalRequestsIdReject as $, postBankDetails as ee, postCounterparts as te, postCounterpartsIdAddresses as ne, postCounterpartsIdBankAccounts as re, postCounterpartsIdBankAccountsIdMakeDefault as ie, postFiles as ae, postMeasureUnits as oe, postOverdueReminders as se, postPayables as ce, postPayablesIdApprovePaymentOperation as le, postPayablesIdAttachFile as ue, postPayablesIdCancel as de, postPayablesIdDuplicatesIdConfirm as fe, postPayablesIdDuplicatesIdDismiss as pe, postPayablesIdMarkAsPaid as me, postPayablesIdReject as he, postPayablesIdReopen as ge, postPayablesIdSchedulePayment as _e, postPayablesIdSubmitForApproval as ve, postPayablesIdValidate as ye, postPayablesUploadFromFile as be, postPaymentIntentsIdCancel as xe, postPaymentReminders as Se, postProducts as Ce, postReceivables as we, postReceivablesIdAccept as Te, postReceivablesIdCancel as Ee, postReceivablesIdClone as De, postReceivablesIdDecline as Oe, postReceivablesIdIssue as ke, postReceivablesIdMarkAsPaid as Ae, postReceivablesIdMarkAsPartiallyPaid as je, postReceivablesIdMarkAsUncollectible as Me, postReceivablesIdSend as Ne, postRecurrences as Pe, postTransactionsIdApprove as Fe, postTransactionsIdReject as Ie, postTransactionsIdReopen as Le, postTransactionsIdSubmit as Re, putEntitiesIdLogo as ze, putPayablesIdLineItems as Be, updateDepartment as Ve, updateLocation as He, updateUser as Ue } from "./lib/rest/sdk.gen.js";
4
- import { activateCreditCardMutation as We, activateDebitCardMutation as Ge, connectExternalBankAccountMutation as Ke, createAchMoneyMovementMutation as qe, createApplicationMutation as Je, createBankAccountMutation as Ye, createBookTransferMutation as Xe, createCheckDepositMutation as Ze, createDebitCardMutation as Qe, createVelocityControlMutation as $e, deleteApprovalPoliciesIdMutation as et, deleteBankAccountApplicationMutation as tt, deleteLedgerAccountsIdMutation as nt, deleteReceiptsIdMutation as rt, disableUserMutation as it, getAnalyticsPayablesOptions as at, getAnalyticsPayablesQueryKey as ot, getAnalyticsReceiptsOptions as st, getAnalyticsReceiptsQueryKey as ct, getAnalyticsReceivablesOptions as lt, getAnalyticsReceivablesQueryKey as ut, getAnalyticsTransactionsOptions as dt, getAnalyticsTransactionsQueryKey as ft, getApprovalPoliciesOptions as pt, getApprovalPoliciesQueryKey as mt, getApprovalRequestsOptions as ht, getApprovalRequestsQueryKey as gt, getBankAccountAccessQueryKey as _t, getBankAccountApplicationOptions as vt, getBankAccountOptions as yt, getBankAccountQueryKey as bt, getBankAccountStatementsOptions as xt, getBankAccountTransactionsOptions as St, getBankAccountTransactionsQueryKey as Ct, getBankAccountTransfersOptions as wt, getBankAccountTransfersQueryKey as Tt, getBankAccountsQueryKey as Et, getBankDetailsOptions as Dt, getBankDetailsQueryKey as Ot, getCounterpartsIdAddressesOptions as kt, getCounterpartsIdAddressesQueryKey as At, getCounterpartsIdBankAccountsOptions as jt, getCounterpartsIdBankAccountsQueryKey as Mt, getCounterpartsIdOptions as Nt, getCounterpartsIdQueryKey as Pt, getCounterpartsOptions as Ft, getCounterpartsQueryKey as It, getCreditCardByIdOptions as Lt, getCreditCardByIdQueryKey as Rt, getCreditCardsOptions as zt, getCreditCardsQueryKey as Bt, getDebitCardByIdOptions as Vt, getDebitCardByIdQueryKey as Ht, getDebitCardCredentialsOptions as Ut, getDebitCardsOptions as Wt, getDebitCardsQueryKey as Gt, getDepartmentOptions as Kt, getDepartmentQueryKey as qt, getDepositableBankAccountsOptions as Jt, getDocumentsIdNextNumbersOptions as Yt, getDocumentsIdNextNumbersQueryKey as Xt, getEntitiesIdSettingsOptions as Zt, getEntitiesIdSettingsQueryKey as Qt, getEntityUsersMyEntityOptions as $t, getEntityUsersOptions as en, getExternalBankAccountAccessQueryKey as tn, getExternalBankAccountsOptions as nn, getExternalBankAccountsQueryKey as rn, getFilesQueryKey as an, getLedgerAccountsQueryKey as on, getLocationOptions as sn, getLocationQueryKey as cn, getMeasureUnitsOptions as ln, getMeasureUnitsQueryKey as un, getOrganizationOptions as dn, getOverdueRemindersOptions as fn, getOverdueRemindersQueryKey as pn, getPayablesIdHistoryOptions as mn, getPayablesIdHistoryQueryKey as hn, getPayablesIdLineItemsOptions as gn, getPayablesIdLineItemsQueryKey as _n, getPayablesIdOptions as vn, getPayablesIdQueryKey as yn, getPayablesIdSuggestionsOptions as bn, getPayablesOptions as xn, getPayablesQueryKey as Sn, getPaymentRecordsOptions as Cn, getPaymentRecordsQueryKey as wn, getPaymentRemindersOptions as Tn, getPaymentRemindersQueryKey as En, getProductsIdOptions as Dn, getProductsIdQueryKey as On, getProductsOptions as kn, getProductsQueryKey as An, getReceiptsIdQueryKey as jn, getReceiptsOptions as Mn, getReceiptsQueryKey as Nn, getReceivablesIdHistoryOptions as Pn, getReceivablesIdHistoryQueryKey as Fn, getReceivablesIdMailsOptions as In, getReceivablesIdMailsQueryKey as Ln, getReceivablesIdOptions as Rn, getReceivablesIdPdfLinkOptions as zn, getReceivablesIdPdfLinkQueryKey as Bn, getReceivablesIdQueryKey as Vn, getReceivablesOptions as Hn, getReceivablesQueryKey as Un, getReceivablesRequiredFieldsOptions as Wn, getRecurrencesIdOptions as Gn, getRecurrencesIdQueryKey as Kn, getRecurrencesQueryKey as qn, getTransactionsIdExpenseHistoryOptions as Jn, getTransactionsIdExpenseHistoryQueryKey as Yn, getTransactionsIdOptions as Xn, getTransactionsIdQueryKey as Zn, getTransactionsOptions as Qn, getTransactionsQueryKey as $n, getTransactionsValidationsOptions as er, getTransactionsValidationsQueryKey as tr, getUsersOptions as nr, getUsersQueryKey as rr, getVelocityControlsQueryKey as ir, grantBankAccountAccessMutation as ar, grantExternalBankAccountAccessMutation as or, linkExternalBankAccountMutation as sr, listDepartmentsOptions as cr, listDepartmentsQueryKey as lr, listLocationsOptions as ur, listLocationsQueryKey as dr, listRolesQueryKey as fr, manageDebitCardAccessMutation as pr, patchApprovalPoliciesIdMutation as mr, patchLedgerAccountsIdMutation as hr, patchReceiptsIdMutation as gr, postApprovalPoliciesMutation as _r, postLedgerAccountsMutation as vr, postReceiptsUploadFromFileMutation as yr, putTransactionsValidationsMutation as br, setDebitCardLockStatusMutation as xr, submitApplicationMutation as Sr, unlinkExternalBankAccountMutation as Cr, updateApplicationMutation as wr, updateBankAccountMutation as Tr, updateDebitCardMutation as Er, updateExternalBankAccountMutation as Dr, validateExternalBankAccountMutation as Or, verifyDebitCardMutation as kr } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { authEpochPlaceholder as Ar, withAuthEpoch as jr } from "./lib/withAuthEpoch.js";
4
+ import { activateCreditCardMutation as We, activateDebitCardMutation as Ge, connectExternalBankAccountMutation as Ke, createAchMoneyMovementMutation as qe, createApplicationMutation as Je, createBankAccountMutation as Ye, createBookTransferMutation as Xe, createCheckDepositMutation as Ze, createDebitCardMutation as Qe, createVelocityControlMutation as $e, deleteApprovalPoliciesIdMutation as et, deleteBankAccountApplicationMutation as tt, deleteLedgerAccountsIdMutation as nt, deleteReceiptsIdMutation as rt, disableUserMutation as it, getAnalyticsPayablesOptions as at, getAnalyticsPayablesQueryKey as ot, getAnalyticsReceiptsOptions as st, getAnalyticsReceiptsQueryKey as ct, getAnalyticsReceivablesOptions as lt, getAnalyticsReceivablesQueryKey as ut, getAnalyticsTransactionsOptions as dt, getAnalyticsTransactionsQueryKey as ft, getApprovalPoliciesOptions as pt, getApprovalPoliciesQueryKey as mt, getApprovalRequestsOptions as ht, getApprovalRequestsQueryKey as gt, getBankAccountAccessQueryKey as _t, getBankAccountApplicationOptions as vt, getBankAccountOptions as yt, getBankAccountQueryKey as bt, getBankAccountStatementsOptions as xt, getBankAccountTransactionsOptions as St, getBankAccountTransactionsQueryKey as Ct, getBankAccountTransfersOptions as wt, getBankAccountTransfersQueryKey as Tt, getBankAccountsQueryKey as Et, getBankDetailsOptions as Dt, getBankDetailsQueryKey as Ot, getCounterpartsIdAddressesOptions as kt, getCounterpartsIdAddressesQueryKey as At, getCounterpartsIdBankAccountsOptions as jt, getCounterpartsIdBankAccountsQueryKey as Mt, getCounterpartsIdOptions as Nt, getCounterpartsIdQueryKey as Pt, getCounterpartsOptions as Ft, getCounterpartsQueryKey as It, getCreditCardByIdOptions as Lt, getCreditCardByIdQueryKey as Rt, getCreditCardsOptions as zt, getCreditCardsQueryKey as Bt, getDebitCardByIdOptions as Vt, getDebitCardByIdQueryKey as Ht, getDebitCardCredentialsOptions as Ut, getDebitCardsOptions as Wt, getDebitCardsQueryKey as Gt, getDepartmentOptions as Kt, getDepartmentQueryKey as qt, getDepositableBankAccountsOptions as Jt, getDocumentsIdNextNumbersOptions as Yt, getDocumentsIdNextNumbersQueryKey as Xt, getEntitiesIdSettingsOptions as Zt, getEntitiesIdSettingsQueryKey as Qt, getEntityUsersMyEntityOptions as $t, getEntityUsersOptions as en, getExternalBankAccountAccessQueryKey as tn, getExternalBankAccountsOptions as nn, getExternalBankAccountsQueryKey as rn, getFilesQueryKey as an, getLedgerAccountsQueryKey as on, getLocationOptions as sn, getLocationQueryKey as cn, getMeasureUnitsOptions as ln, getMeasureUnitsQueryKey as un, getOrganizationOptions as dn, getOverdueRemindersOptions as fn, getOverdueRemindersQueryKey as pn, getPayablesIdHistoryOptions as mn, getPayablesIdHistoryQueryKey as hn, getPayablesIdLineItemsOptions as gn, getPayablesIdLineItemsQueryKey as _n, getPayablesIdOptions as vn, getPayablesIdQueryKey as yn, getPayablesIdSuggestionsOptions as bn, getPayablesOptions as xn, getPayablesQueryKey as Sn, getPaymentRecordsOptions as Cn, getPaymentRecordsQueryKey as wn, getPaymentRemindersOptions as Tn, getPaymentRemindersQueryKey as En, getProductsIdOptions as Dn, getProductsIdQueryKey as On, getProductsOptions as kn, getProductsQueryKey as An, getReceiptsIdQueryKey as jn, getReceiptsOptions as Mn, getReceiptsQueryKey as Nn, getReceivablesIdHistoryQueryKey as Pn, getReceivablesIdMailsQueryKey as Fn, getReceivablesIdOptions as In, getReceivablesIdPdfLinkOptions as Ln, getReceivablesIdPdfLinkQueryKey as Rn, getReceivablesIdQueryKey as zn, getReceivablesOptions as Bn, getReceivablesQueryKey as Vn, getReceivablesRequiredFieldsOptions as Hn, getRecurrencesIdOptions as Un, getRecurrencesIdQueryKey as Wn, getRecurrencesQueryKey as Gn, getTransactionsIdExpenseHistoryOptions as Kn, getTransactionsIdExpenseHistoryQueryKey as qn, getTransactionsIdOptions as Jn, getTransactionsIdQueryKey as Yn, getTransactionsOptions as Xn, getTransactionsQueryKey as Zn, getTransactionsValidationsOptions as Qn, getTransactionsValidationsQueryKey as $n, getUsersOptions as er, getUsersQueryKey as tr, getVelocityControlsQueryKey as nr, grantBankAccountAccessMutation as rr, grantExternalBankAccountAccessMutation as ir, linkExternalBankAccountMutation as ar, listDepartmentsOptions as or, listDepartmentsQueryKey as sr, listLocationsOptions as cr, listLocationsQueryKey as lr, listRolesQueryKey as ur, manageDebitCardAccessMutation as dr, patchApprovalPoliciesIdMutation as fr, patchLedgerAccountsIdMutation as pr, patchReceiptsIdMutation as mr, postApprovalPoliciesMutation as hr, postLedgerAccountsMutation as gr, postReceiptsUploadFromFileMutation as _r, putTransactionsValidationsMutation as vr, setDebitCardLockStatusMutation as yr, submitApplicationMutation as br, unlinkExternalBankAccountMutation as xr, updateApplicationMutation as Sr, updateBankAccountMutation as Cr, updateDebitCardMutation as wr, updateExternalBankAccountMutation as Tr, validateExternalBankAccountMutation as Er, verifyDebitCardMutation as Dr } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { OrganizationStatus as Or, isOrganizationOnItsWay as kr } from "./lib/organizationStatus.js";
6
+ import { withAuthEpoch as Ar, withAuthEpochInfinite as jr } from "./lib/withAuthEpoch.js";
6
7
  import { applicationStatusInvalidationKey as Mr, applicationStatusQueryOptions as Nr } from "./lib/applicationStatusQueryOptions.js";
7
8
  import { createClientSecretInstaller as Pr } from "./lib/scopedClientSecret.js";
8
9
  import { cancelAllClients as Fr, invalidateAllClients as Ir, registerQueryClient as Lr, removeInactiveFromAllClients as Rr, setAllClientsQueriesData as zr, unregisterQueryClient as Br } from "./lib/clientRegistry.js";
@@ -43,4 +44,4 @@ import { useDisclosuresQuery as wi } from "./lib/disclosures/useDisclosuresQuery
43
44
  import { OnboardingSuppressionReason as Ti } from "./lib/onboardingSuppressionReason.js";
44
45
  import { useOrganizationOnboardingSuppression as Ei } from "./lib/useOrganizationOnboardingSuppression.js";
45
46
  import { useOrganizationApplicationStatus as Di } from "./lib/useOrganizationApplicationStatus.js";
46
- export { Wr as EmbedApiProvider, Ti as OnboardingSuppressionReason, oi as Scope, We as activateCreditCardMutation, Ge as activateDebitCardMutation, Mr as applicationStatusInvalidationKey, Nr as applicationStatusQueryOptions, Ur as attachTransportInterceptors, Ar as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Fr as cancelAllClients, Vr as cloneEmbeddedClient, Ke as connectExternalBankAccountMutation, qe as createAchMoneyMovementMutation, Je as createApplicationMutation, Ye as createBankAccountMutation, Xe as createBookTransferMutation, Ze as createCheckDepositMutation, Pr as createClientSecretInstaller, Qe as createDebitCardMutation, r as createDepartment, Hr as createEmbeddedClient, i as createLocation, a as createUser, $e as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, et as deleteApprovalPoliciesIdMutation, tt as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, nt as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, rt as deleteReceiptsIdMutation, g as deleteReceivablesId, it as disableUserMutation, _ as downloadBankAccountTransactions, Jr as fetchWidgetInit, ci as getAllPagesNextPageParam, li as getAllPagesNextPaginationTokenParam, at as getAnalyticsPayablesOptions, ot as getAnalyticsPayablesQueryKey, st as getAnalyticsReceiptsOptions, ct as getAnalyticsReceiptsQueryKey, lt as getAnalyticsReceivablesOptions, ut as getAnalyticsReceivablesQueryKey, dt as getAnalyticsTransactionsOptions, ft as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, pt as getApprovalPoliciesOptions, mt as getApprovalPoliciesQueryKey, b as getApprovalRequests, ht as getApprovalRequestsOptions, gt as getApprovalRequestsQueryKey, x as getBankAccountAccess, _t as getBankAccountAccessQueryKey, vt as getBankAccountApplicationOptions, yt as getBankAccountOptions, bt as getBankAccountQueryKey, S as getBankAccountStatement, xt as getBankAccountStatementsOptions, St as getBankAccountTransactionsOptions, Ct as getBankAccountTransactionsQueryKey, wt as getBankAccountTransfersOptions, Tt as getBankAccountTransfersQueryKey, Et as getBankAccountsQueryKey, Dt as getBankDetailsOptions, Ot as getBankDetailsQueryKey, C as getCounterparts, kt as getCounterpartsIdAddressesOptions, At as getCounterpartsIdAddressesQueryKey, jt as getCounterpartsIdBankAccountsOptions, Mt as getCounterpartsIdBankAccountsQueryKey, Nt as getCounterpartsIdOptions, Pt as getCounterpartsIdQueryKey, Ft as getCounterpartsOptions, It as getCounterpartsQueryKey, Lt as getCreditCardByIdOptions, Rt as getCreditCardByIdQueryKey, zt as getCreditCardsOptions, Bt as getCreditCardsQueryKey, Vt as getDebitCardByIdOptions, Ht as getDebitCardByIdQueryKey, Ut as getDebitCardCredentialsOptions, Wt as getDebitCardsOptions, Gt as getDebitCardsQueryKey, w as getDepartment, Kt as getDepartmentOptions, qt as getDepartmentQueryKey, T as getDepositableBankAccounts, Jt as getDepositableBankAccountsOptions, Yt as getDocumentsIdNextNumbersOptions, Xt as getDocumentsIdNextNumbersQueryKey, Zt as getEntitiesIdSettingsOptions, Qt as getEntitiesIdSettingsQueryKey, $t as getEntityUsersMyEntityOptions, en as getEntityUsersOptions, E as getExternalBankAccountAccess, tn as getExternalBankAccountAccessQueryKey, nn as getExternalBankAccountsOptions, rn as getExternalBankAccountsQueryKey, an as getFilesQueryKey, on as getLedgerAccountsQueryKey, D as getLocation, sn as getLocationOptions, cn as getLocationQueryKey, ln as getMeasureUnitsOptions, un as getMeasureUnitsQueryKey, dn as getOrganizationOptions, fn as getOverdueRemindersOptions, pn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, mn as getPayablesIdHistoryOptions, hn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, gn as getPayablesIdLineItemsOptions, _n as getPayablesIdLineItemsQueryKey, vn as getPayablesIdOptions, yn as getPayablesIdQueryKey, bn as getPayablesIdSuggestionsOptions, xn as getPayablesOptions, Sn as getPayablesQueryKey, M as getPaymentRecords, Cn as getPaymentRecordsOptions, wn as getPaymentRecordsQueryKey, Tn as getPaymentRemindersOptions, En as getPaymentRemindersQueryKey, N as getProducts, Dn as getProductsIdOptions, On as getProductsIdQueryKey, kn as getProductsOptions, An as getProductsQueryKey, P as getReceipts, jn as getReceiptsIdQueryKey, Mn as getReceiptsOptions, Nn as getReceiptsQueryKey, F as getReceivables, Pn as getReceivablesIdHistoryOptions, Fn as getReceivablesIdHistoryQueryKey, In as getReceivablesIdMailsOptions, Ln as getReceivablesIdMailsQueryKey, Rn as getReceivablesIdOptions, zn as getReceivablesIdPdfLinkOptions, Bn as getReceivablesIdPdfLinkQueryKey, Vn as getReceivablesIdQueryKey, Hn as getReceivablesOptions, Un as getReceivablesQueryKey, Wn as getReceivablesRequiredFieldsOptions, Gn as getRecurrencesIdOptions, Kn as getRecurrencesIdQueryKey, qn as getRecurrencesQueryKey, Jn as getTransactionsIdExpenseHistoryOptions, Yn as getTransactionsIdExpenseHistoryQueryKey, Xn as getTransactionsIdOptions, Zn as getTransactionsIdQueryKey, Qn as getTransactionsOptions, $n as getTransactionsQueryKey, er as getTransactionsValidationsOptions, tr as getTransactionsValidationsQueryKey, I as getUsers, nr as getUsersOptions, rr as getUsersQueryKey, ir as getVelocityControlsQueryKey, ar as grantBankAccountAccessMutation, or as grantExternalBankAccountAccessMutation, Yr as hasAnyScope, Ir as invalidateAllClients, ui as isAllPagesResolving, ei as isApiConflictError, ti as isApiForbiddenError, ni as isApiNotFoundError, ri as isApiUnprocessableError, si as isScope, sr as linkExternalBankAccountMutation, L as listDepartments, cr as listDepartmentsOptions, lr as listDepartmentsQueryKey, R as listLocations, ur as listLocationsOptions, dr as listLocationsQueryKey, z as listRoles, fr as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, pr as manageDebitCardAccessMutation, Xr as myEntityInvalidationKey, Kr as optionalOrganizationHeaders, qr as organizationHeaders, mr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, hr as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, gr as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchRecurrencesId, Z as patchTransactionsId, Si as personDisclosure, _r as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postBankDetails, te as postCounterparts, ne as postCounterpartsIdAddresses, re as postCounterpartsIdBankAccounts, ie as postCounterpartsIdBankAccountsIdMakeDefault, ae as postFiles, vr as postLedgerAccountsMutation, oe as postMeasureUnits, se as postOverdueReminders, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postPaymentReminders, Ce as postProducts, yr as postReceiptsUploadFromFileMutation, we as postReceivables, Te as postReceivablesIdAccept, Ee as postReceivablesIdCancel, De as postReceivablesIdClone, Oe as postReceivablesIdDecline, ke as postReceivablesIdIssue, Ae as postReceivablesIdMarkAsPaid, je as postReceivablesIdMarkAsPartiallyPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postTransactionsIdApprove, Ie as postTransactionsIdReject, Le as postTransactionsIdReopen, Re as postTransactionsIdSubmit, ze as putEntitiesIdLogo, Be as putPayablesIdLineItems, br as putTransactionsValidationsMutation, Lr as registerQueryClient, Rr as removeInactiveFromAllClients, zr as setAllClientsQueriesData, xr as setDebitCardLockStatusMutation, Sr as submitApplicationMutation, Cr as unlinkExternalBankAccountMutation, Br as unregisterQueryClient, wr as updateApplicationMutation, Tr as updateBankAccountMutation, Er as updateDebitCardMutation, Ve as updateDepartment, Dr as updateExternalBankAccountMutation, He as updateLocation, Ue as updateUser, Ci as useAcceptWidgetDisclosures, fi as useAllBankAccountsQuery, pi as useAllDebitCardsQuery, mi as useAllExternalBankAccountsQuery, gi as useAllLedgerAccountsQuery, hi as useAllMerchantCategoryGroupsQuery, yi as useAllOrganizationRolesQuery, xi as useAllOrganizationUsersQuery, di as useAutoFetchNextPage, Zr as useCurrentUserQuery, wi as useDisclosuresQuery, Gr as useEmbedApi, ii as useGetUserDataQuery, _i as useLedgerAccountsQuery, $r as useMailboxAddress, Qr as useMyEntityQuery, Di as useOrganizationApplicationStatus, Ei as useOrganizationOnboardingSuppression, vi as usePaymentTermsQuery, bi as useRolePermissionsQueries, ai as useUpsertUserDataMutation, Or as validateExternalBankAccountMutation, kr as verifyDebitCardMutation, jr as withAuthEpoch };
47
+ export { Wr as EmbedApiProvider, Ti as OnboardingSuppressionReason, Or as OrganizationStatus, oi as Scope, We as activateCreditCardMutation, Ge as activateDebitCardMutation, Mr as applicationStatusInvalidationKey, Nr as applicationStatusQueryOptions, Ur as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Fr as cancelAllClients, Vr as cloneEmbeddedClient, Ke as connectExternalBankAccountMutation, qe as createAchMoneyMovementMutation, Je as createApplicationMutation, Ye as createBankAccountMutation, Xe as createBookTransferMutation, Ze as createCheckDepositMutation, Pr as createClientSecretInstaller, Qe as createDebitCardMutation, r as createDepartment, Hr as createEmbeddedClient, i as createLocation, a as createUser, $e as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, et as deleteApprovalPoliciesIdMutation, tt as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, nt as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, rt as deleteReceiptsIdMutation, g as deleteReceivablesId, it as disableUserMutation, _ as downloadBankAccountTransactions, Jr as fetchWidgetInit, ci as getAllPagesNextPageParam, li as getAllPagesNextPaginationTokenParam, at as getAnalyticsPayablesOptions, ot as getAnalyticsPayablesQueryKey, st as getAnalyticsReceiptsOptions, ct as getAnalyticsReceiptsQueryKey, lt as getAnalyticsReceivablesOptions, ut as getAnalyticsReceivablesQueryKey, dt as getAnalyticsTransactionsOptions, ft as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, pt as getApprovalPoliciesOptions, mt as getApprovalPoliciesQueryKey, b as getApprovalRequests, ht as getApprovalRequestsOptions, gt as getApprovalRequestsQueryKey, x as getBankAccountAccess, _t as getBankAccountAccessQueryKey, vt as getBankAccountApplicationOptions, yt as getBankAccountOptions, bt as getBankAccountQueryKey, S as getBankAccountStatement, xt as getBankAccountStatementsOptions, St as getBankAccountTransactionsOptions, Ct as getBankAccountTransactionsQueryKey, wt as getBankAccountTransfersOptions, Tt as getBankAccountTransfersQueryKey, Et as getBankAccountsQueryKey, Dt as getBankDetailsOptions, Ot as getBankDetailsQueryKey, C as getCounterparts, kt as getCounterpartsIdAddressesOptions, At as getCounterpartsIdAddressesQueryKey, jt as getCounterpartsIdBankAccountsOptions, Mt as getCounterpartsIdBankAccountsQueryKey, Nt as getCounterpartsIdOptions, Pt as getCounterpartsIdQueryKey, Ft as getCounterpartsOptions, It as getCounterpartsQueryKey, Lt as getCreditCardByIdOptions, Rt as getCreditCardByIdQueryKey, zt as getCreditCardsOptions, Bt as getCreditCardsQueryKey, Vt as getDebitCardByIdOptions, Ht as getDebitCardByIdQueryKey, Ut as getDebitCardCredentialsOptions, Wt as getDebitCardsOptions, Gt as getDebitCardsQueryKey, w as getDepartment, Kt as getDepartmentOptions, qt as getDepartmentQueryKey, T as getDepositableBankAccounts, Jt as getDepositableBankAccountsOptions, Yt as getDocumentsIdNextNumbersOptions, Xt as getDocumentsIdNextNumbersQueryKey, Zt as getEntitiesIdSettingsOptions, Qt as getEntitiesIdSettingsQueryKey, $t as getEntityUsersMyEntityOptions, en as getEntityUsersOptions, E as getExternalBankAccountAccess, tn as getExternalBankAccountAccessQueryKey, nn as getExternalBankAccountsOptions, rn as getExternalBankAccountsQueryKey, an as getFilesQueryKey, on as getLedgerAccountsQueryKey, D as getLocation, sn as getLocationOptions, cn as getLocationQueryKey, ln as getMeasureUnitsOptions, un as getMeasureUnitsQueryKey, dn as getOrganizationOptions, fn as getOverdueRemindersOptions, pn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, mn as getPayablesIdHistoryOptions, hn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, gn as getPayablesIdLineItemsOptions, _n as getPayablesIdLineItemsQueryKey, vn as getPayablesIdOptions, yn as getPayablesIdQueryKey, bn as getPayablesIdSuggestionsOptions, xn as getPayablesOptions, Sn as getPayablesQueryKey, M as getPaymentRecords, Cn as getPaymentRecordsOptions, wn as getPaymentRecordsQueryKey, Tn as getPaymentRemindersOptions, En as getPaymentRemindersQueryKey, N as getProducts, Dn as getProductsIdOptions, On as getProductsIdQueryKey, kn as getProductsOptions, An as getProductsQueryKey, P as getReceipts, jn as getReceiptsIdQueryKey, Mn as getReceiptsOptions, Nn as getReceiptsQueryKey, F as getReceivables, Pn as getReceivablesIdHistoryQueryKey, Fn as getReceivablesIdMailsQueryKey, In as getReceivablesIdOptions, Ln as getReceivablesIdPdfLinkOptions, Rn as getReceivablesIdPdfLinkQueryKey, zn as getReceivablesIdQueryKey, Bn as getReceivablesOptions, Vn as getReceivablesQueryKey, Hn as getReceivablesRequiredFieldsOptions, Un as getRecurrencesIdOptions, Wn as getRecurrencesIdQueryKey, Gn as getRecurrencesQueryKey, Kn as getTransactionsIdExpenseHistoryOptions, qn as getTransactionsIdExpenseHistoryQueryKey, Jn as getTransactionsIdOptions, Yn as getTransactionsIdQueryKey, Xn as getTransactionsOptions, Zn as getTransactionsQueryKey, Qn as getTransactionsValidationsOptions, $n as getTransactionsValidationsQueryKey, I as getUsers, er as getUsersOptions, tr as getUsersQueryKey, nr as getVelocityControlsQueryKey, rr as grantBankAccountAccessMutation, ir as grantExternalBankAccountAccessMutation, Yr as hasAnyScope, Ir as invalidateAllClients, ui as isAllPagesResolving, ei as isApiConflictError, ti as isApiForbiddenError, ni as isApiNotFoundError, ri as isApiUnprocessableError, kr as isOrganizationOnItsWay, si as isScope, ar as linkExternalBankAccountMutation, L as listDepartments, or as listDepartmentsOptions, sr as listDepartmentsQueryKey, R as listLocations, cr as listLocationsOptions, lr as listLocationsQueryKey, z as listRoles, ur as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, dr as manageDebitCardAccessMutation, Xr as myEntityInvalidationKey, Kr as optionalOrganizationHeaders, qr as organizationHeaders, fr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, pr as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, mr as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchRecurrencesId, Z as patchTransactionsId, Si as personDisclosure, hr as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postBankDetails, te as postCounterparts, ne as postCounterpartsIdAddresses, re as postCounterpartsIdBankAccounts, ie as postCounterpartsIdBankAccountsIdMakeDefault, ae as postFiles, gr as postLedgerAccountsMutation, oe as postMeasureUnits, se as postOverdueReminders, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postPaymentReminders, Ce as postProducts, _r as postReceiptsUploadFromFileMutation, we as postReceivables, Te as postReceivablesIdAccept, Ee as postReceivablesIdCancel, De as postReceivablesIdClone, Oe as postReceivablesIdDecline, ke as postReceivablesIdIssue, Ae as postReceivablesIdMarkAsPaid, je as postReceivablesIdMarkAsPartiallyPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postTransactionsIdApprove, Ie as postTransactionsIdReject, Le as postTransactionsIdReopen, Re as postTransactionsIdSubmit, ze as putEntitiesIdLogo, Be as putPayablesIdLineItems, vr as putTransactionsValidationsMutation, Lr as registerQueryClient, Rr as removeInactiveFromAllClients, zr as setAllClientsQueriesData, yr as setDebitCardLockStatusMutation, br as submitApplicationMutation, xr as unlinkExternalBankAccountMutation, Br as unregisterQueryClient, Sr as updateApplicationMutation, Cr as updateBankAccountMutation, wr as updateDebitCardMutation, Ve as updateDepartment, Tr as updateExternalBankAccountMutation, He as updateLocation, Ue as updateUser, Ci as useAcceptWidgetDisclosures, fi as useAllBankAccountsQuery, pi as useAllDebitCardsQuery, mi as useAllExternalBankAccountsQuery, gi as useAllLedgerAccountsQuery, hi as useAllMerchantCategoryGroupsQuery, yi as useAllOrganizationRolesQuery, xi as useAllOrganizationUsersQuery, di as useAutoFetchNextPage, Zr as useCurrentUserQuery, wi as useDisclosuresQuery, Gr as useEmbedApi, ii as useGetUserDataQuery, _i as useLedgerAccountsQuery, $r as useMailboxAddress, Qr as useMyEntityQuery, Di as useOrganizationApplicationStatus, Ei as useOrganizationOnboardingSuppression, vi as usePaymentTermsQuery, bi as useRolePermissionsQueries, ai as useUpsertUserDataMutation, Er as validateExternalBankAccountMutation, Dr as verifyDebitCardMutation, Ar as withAuthEpoch, jr as withAuthEpochInfinite };
@@ -3,37 +3,38 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { client as e } from "./rest/client.gen.js";
6
- import { createContext as t, useContext as n, useMemo as r } from "react";
7
- import { jsx as i } from "react/jsx-runtime";
6
+ import { OrganizationStatus as t } from "./organizationStatus.js";
7
+ import { createContext as n, useContext as r, useMemo as i } from "react";
8
+ import { jsx as a } from "react/jsx-runtime";
8
9
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js
9
- var a = t({
10
+ var o = n({
10
11
  client: e,
11
12
  authEpoch: 0,
12
- organizationPending: !1
13
+ organizationStatus: t.None
13
14
  });
14
- function o({ children: e, client: t, widgetToken: n, organizationId: o, installClientSecret: s, authEpoch: c, organizationPending: l }) {
15
- let u = r(() => ({
15
+ function s({ children: e, client: t, widgetToken: n, organizationId: r, installClientSecret: s, authEpoch: c, organizationStatus: l }) {
16
+ let u = i(() => ({
16
17
  client: t,
17
- organizationId: o,
18
+ organizationId: r,
18
19
  widgetToken: n,
19
20
  installClientSecret: s,
20
21
  authEpoch: c,
21
- organizationPending: l
22
+ organizationStatus: l
22
23
  }), [
23
24
  t,
24
- o,
25
+ r,
25
26
  n,
26
27
  s,
27
28
  c,
28
29
  l
29
30
  ]);
30
- return /* @__PURE__ */ i(a.Provider, {
31
+ return /* @__PURE__ */ a(o.Provider, {
31
32
  value: u,
32
33
  children: e
33
34
  });
34
35
  }
35
- function s() {
36
- return n(a);
36
+ function c() {
37
+ return r(o);
37
38
  }
38
39
  //#endregion
39
- export { o as EmbedApiProvider, s as useEmbedApi };
40
+ export { s as EmbedApiProvider, c as useEmbedApi };
@@ -12,7 +12,7 @@ function t(e) {
12
12
  }
13
13
  var n = t((e) => e.nextPaginationToken), r = t((e) => e.next_pagination_token);
14
14
  function i(e) {
15
- return !e.isError && (e.isLoading || e.isFetchingNextPage || !!e.hasNextPage);
15
+ return !e.isError && (e.isLoading || e.isPlaceholderData || e.isFetchingNextPage || !!e.hasNextPage);
16
16
  }
17
17
  function a(t, n) {
18
18
  e(() => {
@@ -1,28 +1,29 @@
1
1
  import { getApplicationStatusOptions as e } from "./rest/@tanstack/react-query.gen.js";
2
- import { withAuthEpoch as t } from "./withAuthEpoch.js";
3
- import { widgetTokenCacheId as n } from "./widgetTokenCacheId.js";
2
+ import { OrganizationStatus as t } from "./organizationStatus.js";
3
+ import { withAuthEpoch as n } from "./withAuthEpoch.js";
4
+ import { widgetTokenCacheId as r } from "./widgetTokenCacheId.js";
4
5
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js
5
- var r = 1e4;
6
- function i({ client: t }) {
6
+ var i = 1e4;
7
+ function a({ client: t }) {
7
8
  return e({ client: t }).queryKey;
8
9
  }
9
- function a({ client: i, widgetToken: a, authEpoch: o }) {
10
- let { queryFn: s, queryKey: c } = e({ client: i }), { placeholderData: l } = t({ queryKey: c }, {
11
- authEpoch: o,
12
- organizationPending: !1
10
+ function o({ client: a, widgetToken: o, authEpoch: s }) {
11
+ let { queryFn: c, queryKey: l } = e({ client: a }), { placeholderData: u } = n({ queryKey: l }, {
12
+ authEpoch: s,
13
+ organizationStatus: t.Known
13
14
  });
14
15
  return {
15
16
  queryKey: [
16
- c[0],
17
- { authEpoch: o },
18
- { widgetTokenId: n(a) }
17
+ l[0],
18
+ { authEpoch: s },
19
+ { widgetTokenId: r(o) }
19
20
  ],
20
- queryFn: s,
21
- placeholderData: l,
21
+ queryFn: c,
22
+ placeholderData: u,
22
23
  retry: 2,
23
24
  retryDelay: 300,
24
- staleTime: r
25
+ staleTime: i
25
26
  };
26
27
  }
27
28
  //#endregion
28
- export { i as applicationStatusInvalidationKey, a as applicationStatusQueryOptions };
29
+ export { a as applicationStatusInvalidationKey, o as applicationStatusQueryOptions };