@tesouro/embedded-components-react 0.5.83 → 0.5.85

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 (27) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/lib/InvoicingWidget.d.ts +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +6 -7
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +28 -21
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index2.js +7 -23
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index3.js +34 -6
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +8 -8
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +11 -17
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index7.js +37 -16
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +3 -43
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +31 -3
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +29 -33
  13. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +7 -19
  14. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +68 -77
  15. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +4 -13
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +3 -2
  17. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +31 -30
  18. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +7 -5
  19. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +186 -175
  20. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopedClientSecret.js +8 -0
  21. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/transportInterceptors.js +9 -6
  22. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +39 -36
  23. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +86 -83
  24. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/client.js +3 -2
  26. package/package.json +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +0 -48
@@ -17,31 +17,31 @@ import { ApproverOptionLabels as l, PermissionErrorLabels as u, ValidationErrorL
17
17
  import { ExpenseApprovalPoliciesAnalyticsEvent as f, WIDGET_NAME as p } from "./index2.js";
18
18
  import { AmountConditionType as m, ApprovalOutcomeType as h } from "../../ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/types.js";
19
19
  import { ApprovalRuleToastLabels as g } from "../../ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js";
20
- import { ExpenseApprovalsPage as ee } from "../../ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js";
20
+ import { ExpenseApprovalsPage as _ } from "../../ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js";
21
21
  import "../../ui/dist/index.js";
22
- import { useApprovalPolicies as _ } from "./index3.js";
23
- import { expenseApprovalPoliciesTestIds as v } from "./index5.js";
24
- import { useEffect as y, useMemo as b, useState as x } from "react";
25
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
22
+ import { useApprovalPolicies as v } from "./index3.js";
23
+ import { expenseApprovalPoliciesTestIds as y } from "./index5.js";
24
+ import { useEffect as b, useMemo as x, useState as S } from "react";
25
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
26
26
  //#region ../../libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js
27
- var T = {
27
+ var E = {
28
28
  minAmount: "",
29
29
  maxAmount: "",
30
30
  outcome: h.AutoApprove,
31
31
  approvers: []
32
32
  };
33
- function E(e, t) {
33
+ function D(e, t) {
34
34
  let n = (e ?? "").trim().toLowerCase();
35
35
  return n === t || n === `embedded:${t}`;
36
36
  }
37
- function D(e, t) {
37
+ function O(e, t) {
38
38
  return (e ?? "").toLowerCase().split(":").map((e) => e.trim()).filter(Boolean).some((e) => e === t);
39
39
  }
40
- function O(e) {
41
- return E(e, "cfo") || E(e, "finance_admin") || E(e, "finance-admin");
42
- }
43
40
  function k(e) {
44
- let t = e.find((e) => e.isSystemRole === !0 && E(e.key, "admin")), n = e.find((e) => e.isSystemRole === !0 && O(e.key)), r = e.filter((e) => e.isSystemRole === !0 && e !== t && e !== n && !D(e.key, "employee") && !D(e.key, "bookkeeper")).map((e) => ({
41
+ return D(e, "cfo") || D(e, "finance_admin") || D(e, "finance-admin");
42
+ }
43
+ function A(e) {
44
+ let t = e.find((e) => e.isSystemRole === !0 && D(e.key, "admin")), n = e.find((e) => e.isSystemRole === !0 && k(e.key)), r = e.filter((e) => e.isSystemRole === !0 && e !== t && e !== n && !O(e.key, "employee") && !O(e.key, "bookkeeper")).map((e) => ({
45
45
  id: e.id,
46
46
  label: e.name
47
47
  })), i = e.filter((e) => !e.isSystemRole && e.status?.toLowerCase() === "active").map((e) => ({
@@ -68,16 +68,16 @@ function k(e) {
68
68
  ...i
69
69
  ];
70
70
  }
71
- function A(e) {
71
+ function j(e) {
72
72
  let t = e.minAmount.trim() !== "", n = e.maxAmount.trim() !== "";
73
73
  return t && n ? m.InRange : t ? m.GreaterThanOrEqual : n ? m.LessThan : m.All;
74
74
  }
75
- function j(e) {
75
+ function M(e) {
76
76
  return [e.conditionType === m.LessThan || e.conditionType === m.All ? 0 : e.minAmount ?? 0, e.conditionType === m.GreaterThanOrEqual || e.conditionType === m.All ? Infinity : e.maxAmount ?? 0];
77
77
  }
78
- function te(e) {
78
+ function N(e) {
79
79
  if (e.length === 0) return !1;
80
- let t = e.map(j).sort((e, t) => e[0] - t[0]);
80
+ let t = e.map(M).sort((e, t) => e[0] - t[0]);
81
81
  if (t[0][0] > 0) return !1;
82
82
  let n = 0;
83
83
  for (let [e, r] of t) {
@@ -86,9 +86,9 @@ function te(e) {
86
86
  }
87
87
  return n === Infinity;
88
88
  }
89
- function M(e) {
89
+ function P(e) {
90
90
  if (e.length === 0) return [];
91
- let t = e.map(j).sort((e, t) => e[0] - t[0]), n = [], r = 0;
91
+ let t = e.map(M).sort((e, t) => e[0] - t[0]), n = [], r = 0;
92
92
  for (let [e, i] of t) e > r && n.push({
93
93
  from: r,
94
94
  to: e
@@ -98,23 +98,23 @@ function M(e) {
98
98
  to: null
99
99
  }), n;
100
100
  }
101
- function N(e) {
102
- let t = Number(e.minAmount) || 0, n = Number(e.maxAmount) || 0, r = A(e);
101
+ function F(e) {
102
+ let t = Number(e.minAmount) || 0, n = Number(e.maxAmount) || 0, r = j(e);
103
103
  return [r === m.LessThan || r === m.All ? 0 : t, r === m.GreaterThanOrEqual || r === m.All ? Infinity : n];
104
104
  }
105
- function P(e, t, n) {
106
- let [r, i] = N(e);
105
+ function I(e, t, n) {
106
+ let [r, i] = F(e);
107
107
  return t.filter((e) => e.id !== n).some((e) => {
108
- let [t, n] = j(e);
108
+ let [t, n] = M(e);
109
109
  return r < n && t < i;
110
110
  });
111
111
  }
112
- function F(e, t, n) {
112
+ function L(e, t, n) {
113
113
  let r = {}, i = e.minAmount.trim() !== "", a = e.maxAmount.trim() !== "", o = Number(e.minAmount.trim()), s = Number(e.maxAmount.trim());
114
- return i && (!Number.isFinite(o) || o < 0) && (r.minAmount = d.InvalidMinAmount), a && (!Number.isFinite(s) || s <= 0) && (r.maxAmount = d.InvalidMaxAmount), i && a && !r.minAmount && !r.maxAmount && o >= s && (r.maxAmount = d.MaxLessThanOrEqualToMin), e.outcome === h.RequireApproval && e.approvers.length === 0 && (r.approvers = d.ApproversRequired), !r.minAmount && !r.maxAmount && P(e, t, n) && (a ? r.maxAmount = d.ConflictsWithAnotherRule : r.minAmount = d.ConflictsWithAnotherRule), r;
114
+ return i && (!Number.isFinite(o) || o < 0) && (r.minAmount = d.InvalidMinAmount), a && (!Number.isFinite(s) || s <= 0) && (r.maxAmount = d.InvalidMaxAmount), i && a && !r.minAmount && !r.maxAmount && o >= s && (r.maxAmount = d.MaxLessThanOrEqualToMin), e.outcome === h.RequireApproval && e.approvers.length === 0 && (r.approvers = d.ApproversRequired), !r.minAmount && !r.maxAmount && I(e, t, n) && (a ? r.maxAmount = d.ConflictsWithAnotherRule : r.minAmount = d.ConflictsWithAnotherRule), r;
115
115
  }
116
- function I(e, t) {
117
- let n = A(t);
116
+ function R(e, t) {
117
+ let n = j(t);
118
118
  return {
119
119
  id: e,
120
120
  conditionType: n,
@@ -124,7 +124,7 @@ function I(e, t) {
124
124
  approvers: t.outcome === h.RequireApproval ? t.approvers : []
125
125
  };
126
126
  }
127
- function L(e) {
127
+ function z(e) {
128
128
  return {
129
129
  minAmount: e.minAmount == null ? "" : String(e.minAmount),
130
130
  maxAmount: e.maxAmount == null ? "" : String(e.maxAmount),
@@ -132,67 +132,67 @@ function L(e) {
132
132
  approvers: e.approvers
133
133
  };
134
134
  }
135
- function R() {
135
+ function B() {
136
136
  let o = a();
137
- y(() => {
137
+ b(() => {
138
138
  o(f.Mounted);
139
139
  }, [o]);
140
- let { initResponse: d } = s(), p = c(), m = d?.scopes?.includes(t.RoleReadOrg) ?? !1, { data: h, isResolving: D, isError: A } = n({ enabled: m }), j = b(() => k(h?.data ?? []), [h]), N = b(() => {
141
- let e = h?.data ?? [], t = e.find((e) => e.isSystemRole === !0 && E(e.key, "admin")), n = e.find((e) => e.isSystemRole === !0 && O(e.key)), r = { reporting_manager: l.ReportingManagerLabel };
140
+ let { initResponse: d } = s(), p = c(), m = d?.scopes?.includes(t.RoleReadOrg) ?? !1, { data: h, isResolving: O, isError: j } = n({ enabled: m }), M = x(() => A(h?.data ?? []), [h]), F = x(() => {
141
+ let e = h?.data ?? [], t = e.find((e) => e.isSystemRole === !0 && D(e.key, "admin")), n = e.find((e) => e.isSystemRole === !0 && k(e.key)), r = { reporting_manager: l.ReportingManagerLabel };
142
142
  t && (r[t.id] = l.AdminLabel), n && (r[n.id] = l.CfoLabel);
143
143
  for (let t of e) r[t.id] || (r[t.id] = t.name);
144
144
  return r;
145
- }, [h]), { rules: P, isLoading: R, saveStatus: z, createRule: B, updateRule: V, deleteRule: H } = _(N), [U, W] = x(!1), [G, K] = x(T), [q, J] = x(null), [Y, X] = x(null);
146
- y(() => {
147
- z === "success" && e.success(g.Saved), z === "error" && e.error(g.FailedToSave);
148
- }, [z]);
149
- let Z = R || p && !d, ne = te(P), re = M(P), Q = Z || D || z === "saving", $ = U ? F(G, P) : {}, ie = Y && q ? F(Y, P, q) : {}, ae = () => {
150
- W(!0), K(T);
151
- }, oe = () => {
145
+ }, [h]), { rules: I, isLoading: B, saveStatus: V, createRule: ee, updateRule: te, deleteRule: H } = v(F), [U, W] = S(!1), [G, K] = S(E), [q, J] = S(null), [Y, X] = S(null);
146
+ b(() => {
147
+ V === "success" && e.success(g.Saved), V === "error" && e.error(g.FailedToSave);
148
+ }, [V]);
149
+ let Z = B || p && !d, ne = N(I), re = P(I), Q = Z || O || V === "saving", ie = U ? L(G, I) : {}, ae = Y && q ? L(Y, I, q) : {}, oe = () => {
150
+ W(!0), K(E);
151
+ }, se = () => {
152
152
  W(!1);
153
- }, se = async () => {
154
- let e = F(G, P);
153
+ }, $ = async () => {
154
+ let e = L(G, I);
155
155
  if (Object.keys(e).length > 0) return;
156
156
  let t = crypto.randomUUID();
157
- await B(I(t, G)) && (W(!1), K(T));
157
+ await ee(R(t, G)) && (W(!1), K(E));
158
158
  }, ce = (e) => {
159
159
  K(e);
160
160
  }, le = (e) => {
161
- let t = P.find((t) => t.id === e);
162
- t && (W(!1), K(T), J(e), X(L(t)));
161
+ let t = I.find((t) => t.id === e);
162
+ t && (W(!1), K(E), J(e), X(z(t)));
163
163
  }, ue = () => {
164
164
  J(null), X(null);
165
165
  }, de = async () => {
166
166
  if (!q || !Y) return;
167
- let e = F(Y, P, q);
168
- Object.keys(e).length > 0 || await V(q, I(q, Y)) && (J(null), X(null));
167
+ let e = L(Y, I, q);
168
+ Object.keys(e).length > 0 || await te(q, R(q, Y)) && (J(null), X(null));
169
169
  }, fe = (e) => {
170
170
  X(e);
171
171
  }, pe = async (e) => {
172
172
  await H(e), q === e && (J(null), X(null));
173
173
  };
174
- return d !== void 0 && !m ? /* @__PURE__ */ C(i, {
174
+ return d !== void 0 && !m ? /* @__PURE__ */ w(i, {
175
175
  title: u.MissingRolePermissionTitle,
176
176
  description: u.MissingRolePermissionDescription
177
- }) : A ? /* @__PURE__ */ C(i, {
177
+ }) : j ? /* @__PURE__ */ w(i, {
178
178
  title: u.RolesUnavailableTitle,
179
179
  description: u.RolesUnavailableDescription
180
- }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(r, {}), /* @__PURE__ */ C(ee, {
181
- rules: P,
180
+ }) : /* @__PURE__ */ T(C, { children: [/* @__PURE__ */ w(r, {}), /* @__PURE__ */ w(_, {
181
+ rules: I,
182
182
  isBusy: Q,
183
183
  isLoading: Z,
184
184
  isAddingRule: U,
185
185
  newRuleFormValues: G,
186
- newRuleValidationErrors: $,
186
+ newRuleValidationErrors: ie,
187
187
  editingRuleId: q,
188
188
  editingRuleFormValues: Y,
189
- editingRuleValidationErrors: ie,
190
- approverOptions: Q ? [] : j,
189
+ editingRuleValidationErrors: ae,
190
+ approverOptions: Q ? [] : M,
191
191
  allExpensesAreCovered: ne,
192
192
  gapIntervals: re,
193
- onAddRuleClick: ae,
194
- onCancelAddRule: oe,
195
- onSaveNewRule: () => void se(),
193
+ onAddRuleClick: oe,
194
+ onCancelAddRule: se,
195
+ onSaveNewRule: () => void $(),
196
196
  onNewRuleFormChange: ce,
197
197
  onEditRule: le,
198
198
  onCancelEditRule: ue,
@@ -200,33 +200,24 @@ function R() {
200
200
  onEditRuleFormChange: fe,
201
201
  onDeleteRule: (e) => void pe(e),
202
202
  testIds: {
203
- ruleCard: { root: v.ruleCard },
203
+ ruleCard: { root: y.ruleCard },
204
204
  ruleForm: {
205
- root: v.ruleForm,
206
- saveButton: v.ruleFormSaveButton,
207
- minAmountInput: v.ruleFormMinAmountInput,
208
- maxAmountInput: v.ruleFormMaxAmountInput
205
+ root: y.ruleForm,
206
+ saveButton: y.ruleFormSaveButton,
207
+ minAmountInput: y.ruleFormMinAmountInput,
208
+ maxAmountInput: y.ruleFormMaxAmountInput
209
209
  }
210
210
  }
211
211
  })] });
212
212
  }
213
- function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: f, disclosuresAcceptance: m, providerLabels: h } = {}) {
214
- return /* @__PURE__ */ C(o, {
213
+ function V({ token: e, orgId: t, widgetToken: n, organizationId: r, ...i } = {}) {
214
+ return /* @__PURE__ */ w(o, {
215
+ ...i,
215
216
  widgetName: p,
216
- baseUrl: i,
217
- widgetToken: n ?? e,
218
- organizationId: r ?? t,
219
- configClient: a,
220
- gatewayRouting: s,
221
- linkComponent: c,
222
- implementation: l,
223
- uiFramework: u,
224
- errorFallback: d,
225
- onError: f,
226
- disclosuresAcceptance: m,
227
- providerLabels: h,
228
- children: /* @__PURE__ */ C(R, {})
217
+ widgetToken: n === void 0 ? e : n,
218
+ organizationId: r === void 0 ? t : r,
219
+ children: /* @__PURE__ */ w(B, {})
229
220
  });
230
221
  }
231
222
  //#endregion
232
- export { z as ExpenseApprovalPoliciesWidget, z as default, k as buildApproverOptions, E as isEmbeddedSystemRoleKey, D as roleKeyHasSegment };
223
+ export { V as ExpenseApprovalPoliciesWidget, V as default, A as buildApproverOptions, D as isEmbeddedSystemRoleKey, O as roleKeyHasSegment };
@@ -63,21 +63,12 @@ function x() {
63
63
  })]
64
64
  })] });
65
65
  }
66
- function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, disclosuresAcceptance: m, providerLabels: g } = {}) {
66
+ function S({ token: e, orgId: t, widgetToken: n, organizationId: r, ...a } = {}) {
67
67
  return /* @__PURE__ */ h(i, {
68
+ ...a,
68
69
  widgetName: l,
69
- baseUrl: a,
70
- widgetToken: n ?? e,
71
- organizationId: r ?? t,
72
- configClient: o,
73
- gatewayRouting: s,
74
- linkComponent: c,
75
- implementation: u,
76
- uiFramework: d,
77
- errorFallback: f,
78
- onError: p,
79
- disclosuresAcceptance: m,
80
- providerLabels: g,
70
+ widgetToken: n === void 0 ? e : n,
71
+ organizationId: r === void 0 ? t : r,
81
72
  children: /* @__PURE__ */ h(x, {})
82
73
  });
83
74
  }
@@ -19,7 +19,7 @@ function c(n) {
19
19
  i(r.Mounted);
20
20
  }, [i]), /* @__PURE__ */ o(t, { ...n });
21
21
  }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, pageTitleComponent: _ = s, uiFramework: v, ...y }) {
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, pageTitleComponent: _ = s, uiFramework: v, implementation: y, ...b }) {
23
23
  return /* @__PURE__ */ o(n, {
24
24
  widgetName: i,
25
25
  baseUrl: e,
@@ -35,8 +35,9 @@ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gat
35
35
  disclosuresAcceptance: h,
36
36
  providerLabels: g,
37
37
  uiFramework: v,
38
+ implementation: y,
38
39
  children: /* @__PURE__ */ o(c, {
39
- ...y,
40
+ ...b,
40
41
  pageTitleComponent: _
41
42
  })
42
43
  });
@@ -1,39 +1,40 @@
1
1
  import "./lib/finopsApiVersion.js";
2
- import { cancelAllClients as e, invalidateAllClients as t, registerQueryClient as n, removeInactiveFromAllClients as r, setAllClientsQueriesData as i, unregisterQueryClient as a } from "./lib/clientRegistry.js";
3
- import { cloneEmbeddedClient as o, createEmbeddedClient as s } from "./lib/createEmbeddedClient.js";
2
+ import { createClientSecretInstaller as e } from "./lib/scopedClientSecret.js";
3
+ import { cancelAllClients as t, invalidateAllClients as n, registerQueryClient as r, removeInactiveFromAllClients as i, setAllClientsQueriesData as a, unregisterQueryClient as o } from "./lib/clientRegistry.js";
4
+ import { cloneEmbeddedClient as s, createEmbeddedClient as c } from "./lib/createEmbeddedClient.js";
4
5
  import "./lib/widgetGatewayHosts.js";
5
- import { attachTransportInterceptors as c } from "./lib/transportInterceptors.js";
6
+ import { attachTransportInterceptors as l } from "./lib/transportInterceptors.js";
6
7
  import "./lib/rest/client.gen.js";
7
- import { EmbedApiProvider as l, useEmbedApi as u } from "./lib/EmbedApiContext.js";
8
- import { optionalOrganizationHeaders as d, organizationHeaders as f } from "./lib/organizationHeaders.js";
9
- import { bulkUpdateDepartmentMembers as p, bulkUpdateLocationMembers as m, bulkUpdateRoleMembers as h, createDepartment as g, createLocation as _, createUser as v, deactivateDepartment as y, deactivateLocation as b, deleteCounterpartsId as x, deleteCounterpartsIdBankAccountsId as S, deleteMeasureUnitsId as C, deletePayablesId as w, deletePayablesIdFile as T, deleteProductsId as E, deleteReceivablesId as D, deleteTagsId as O, downloadBankAccountTransactions as k, getApplicationStatus as A, getApprovalPolicies as j, getApprovalRequests as M, getBankAccountAccess as N, getBankAccountApplication as P, getCounterparts as F, getDepartment as I, getExternalBankAccountAccess as L, getLocation as R, getPayables as z, getPayablesId as B, getPayablesIdHistory as V, getPayablesIdLineItems as H, getPaymentRecords as U, getReceivables as W, getUsers as G, listDepartments as K, listLocations as q, listRoles as J, manageBankAccountAccess as Y, patchCounterpartsId as X, patchCounterpartsIdAddressesId as Z, patchCounterpartsIdBankAccountsId as Q, patchMeasureUnitsId as $, patchPayablesId as ee, patchProductsId as te, patchReceivablesId as ne, patchTagsId as re, postApprovalRequestsIdApprove as ie, postApprovalRequestsIdReject as ae, postCounterparts as oe, postCounterpartsIdAddresses as se, postCounterpartsIdBankAccounts as ce, postCounterpartsIdBankAccountsIdMakeDefault as le, postMeasureUnits as ue, postPayables as de, postPayablesIdApprovePaymentOperation as fe, postPayablesIdAttachFile as pe, postPayablesIdCancel as me, postPayablesIdDuplicatesIdConfirm as he, postPayablesIdDuplicatesIdDismiss as ge, postPayablesIdMarkAsPaid as _e, postPayablesIdReject as ve, postPayablesIdReopen as ye, postPayablesIdSchedulePayment as be, postPayablesIdSubmitForApproval as xe, postPayablesIdValidate as Se, postPayablesUploadFromFile as Ce, postPaymentIntentsIdCancel as we, postProducts as Te, postReceivables as Ee, postReceivablesIdAccept as De, postReceivablesIdCancel as Oe, postReceivablesIdClone as ke, postReceivablesIdDecline as Ae, postReceivablesIdIssue as je, postReceivablesIdMarkAsPaid as Me, postReceivablesIdMarkAsPartiallyPaid as Ne, postReceivablesIdMarkAsUncollectible as Pe, postReceivablesIdSend as Fe, postTags as Ie, putPayablesIdLineItems as Le, updateDepartment as Re, updateLocation as ze, updateUser as Be } from "./lib/rest/sdk.gen.js";
8
+ import { EmbedApiProvider as u, useEmbedApi as d } from "./lib/EmbedApiContext.js";
9
+ import { optionalOrganizationHeaders as f, organizationHeaders as p } from "./lib/organizationHeaders.js";
10
+ import { bulkUpdateDepartmentMembers as m, bulkUpdateLocationMembers as h, bulkUpdateRoleMembers as g, createDepartment as _, createLocation as v, createUser as y, deactivateDepartment as b, deactivateLocation as x, deleteCounterpartsId as S, deleteCounterpartsIdBankAccountsId as C, deleteMeasureUnitsId as w, deletePayablesId as T, deletePayablesIdFile as E, deleteProductsId as D, deleteReceivablesId as O, deleteTagsId as k, downloadBankAccountTransactions as A, getApplicationStatus as j, getApprovalPolicies as M, getApprovalRequests as N, getBankAccountAccess as P, getCounterparts as F, getDepartment as I, getExternalBankAccountAccess as L, getLocation as R, getPayables as z, getPayablesId as B, getPayablesIdHistory as V, getPayablesIdLineItems as H, getPaymentRecords as U, getReceivables as W, getUsers as G, listDepartments as K, listLocations as q, listRoles as J, manageBankAccountAccess as Y, patchCounterpartsId as X, patchCounterpartsIdAddressesId as Z, patchCounterpartsIdBankAccountsId as Q, patchMeasureUnitsId as $, patchPayablesId as ee, patchProductsId as te, patchReceivablesId as ne, patchTagsId as re, postApprovalRequestsIdApprove as ie, postApprovalRequestsIdReject as ae, postCounterparts as oe, postCounterpartsIdAddresses as se, postCounterpartsIdBankAccounts as ce, postCounterpartsIdBankAccountsIdMakeDefault as le, postMeasureUnits as ue, postPayables as de, postPayablesIdApprovePaymentOperation as fe, postPayablesIdAttachFile as pe, postPayablesIdCancel as me, postPayablesIdDuplicatesIdConfirm as he, postPayablesIdDuplicatesIdDismiss as ge, postPayablesIdMarkAsPaid as _e, postPayablesIdReject as ve, postPayablesIdReopen as ye, postPayablesIdSchedulePayment as be, postPayablesIdSubmitForApproval as xe, postPayablesIdValidate as Se, postPayablesUploadFromFile as Ce, postPaymentIntentsIdCancel as we, postProducts as Te, postReceivables as Ee, postReceivablesIdAccept as De, postReceivablesIdCancel as Oe, postReceivablesIdClone as ke, postReceivablesIdDecline as Ae, postReceivablesIdIssue as je, postReceivablesIdMarkAsPaid as Me, postReceivablesIdMarkAsPartiallyPaid as Ne, postReceivablesIdMarkAsUncollectible as Pe, postReceivablesIdSend as Fe, postTags as Ie, putPayablesIdLineItems as Le, updateDepartment as Re, updateLocation as ze, updateUser as Be } from "./lib/rest/sdk.gen.js";
10
11
  import { fetchWidgetInit as Ve } from "./lib/fetchWidgetInit.js";
11
12
  import { hasAnyScope as He } from "./lib/hasAnyScope.js";
12
- import { activateCreditCardMutation as Ue, activateDebitCardMutation as We, connectExternalBankAccountMutation as Ge, createAchMoneyMovementMutation as Ke, createApplicationMutation as qe, createBankAccountMutation as Je, createBookTransferMutation as Ye, createCheckDepositMutation as Xe, createDebitCardMutation as Ze, createVelocityControlMutation as Qe, deleteApprovalPoliciesIdMutation as $e, deleteLedgerAccountsIdMutation as et, deleteReceiptsIdMutation as tt, disableUserMutation as nt, getAnalyticsPayablesOptions as rt, getAnalyticsReceivablesOptions as it, getApplicationStatusOptions as at, getApprovalPoliciesOptions as ot, getApprovalPoliciesQueryKey as st, getApprovalRequestsOptions as ct, getApprovalRequestsQueryKey as lt, getBankAccountAccessQueryKey as ut, getBankAccountOptions as dt, getBankAccountQueryKey as ft, getBankAccountTransactionsOptions as pt, getBankAccountTransactionsQueryKey as mt, getBankAccountTransfersOptions as ht, getBankAccountTransfersQueryKey as gt, getBankAccountsQueryKey as _t, getCounterpartsIdAddressesOptions as vt, getCounterpartsIdAddressesQueryKey as yt, getCounterpartsIdBankAccountsOptions as bt, getCounterpartsIdBankAccountsQueryKey as xt, getCounterpartsIdOptions as St, getCounterpartsIdQueryKey as Ct, getCounterpartsOptions as wt, getCounterpartsQueryKey as Tt, getCreditCardByIdOptions as Et, getCreditCardByIdQueryKey as Dt, getCreditCardsOptions as Ot, getCreditCardsQueryKey as kt, getDebitCardByIdOptions as At, getDebitCardByIdQueryKey as jt, getDebitCardCredentialsOptions as Mt, getDebitCardsOptions as Nt, getDebitCardsQueryKey as Pt, getDepartmentOptions as Ft, getDepartmentQueryKey as It, getEntitiesIdSettingsOptions as Lt, getEntitiesIdSettingsQueryKey as Rt, getEntitiesMeOptions as zt, getEntityUsersMyEntityOptions as Bt, getEntityUsersOptions as Vt, getExternalBankAccountAccessQueryKey as Ht, getExternalBankAccountsOptions as Ut, getExternalBankAccountsQueryKey as Wt, getLedgerAccountsQueryKey as Gt, getLocationOptions as Kt, getLocationQueryKey as qt, getMeasureUnitsOptions as Jt, getMeasureUnitsQueryKey as Yt, getOrganizationOptions as Xt, getPayablesAnalyticsOptions as Zt, getPayablesAnalyticsQueryKey as Qt, getPayablesIdHistoryOptions as $t, getPayablesIdHistoryQueryKey as en, getPayablesIdLineItemsOptions as tn, getPayablesIdLineItemsQueryKey as nn, getPayablesIdOptions as rn, getPayablesIdQueryKey as an, getPayablesIdSuggestionsOptions as on, getPayablesOptions as sn, getPayablesQueryKey as cn, getPaymentRecordsOptions as ln, getPaymentRecordsQueryKey as un, getProductsIdOptions as dn, getProductsIdQueryKey as fn, getProductsOptions as pn, getProductsQueryKey as mn, getReceiptsIdQueryKey as hn, getReceiptsOptions as gn, getReceiptsQueryKey as _n, getReceivablesIdHistoryOptions as vn, getReceivablesIdHistoryQueryKey as yn, getReceivablesIdMailsOptions as bn, getReceivablesIdMailsQueryKey as xn, getReceivablesIdOptions as Sn, getReceivablesIdPdfLinkOptions as Cn, getReceivablesIdPdfLinkQueryKey as wn, getReceivablesIdQueryKey as Tn, getReceivablesOptions as En, getReceivablesQueryKey as Dn, getTagsOptions as On, getTagsQueryKey as kn, getTransactionsIdQueryKey as An, getTransactionsOptions as jn, getTransactionsQueryKey as Mn, getTransactionsValidationsOptions as Nn, getTransactionsValidationsQueryKey as Pn, getUsersOptions as Fn, getUsersQueryKey as In, getVelocityControlsQueryKey as Ln, grantBankAccountAccessMutation as Rn, grantExternalBankAccountAccessMutation as zn, linkExternalBankAccountMutation as Bn, listDepartmentsOptions as Vn, listDepartmentsQueryKey as Hn, listLocationsOptions as Un, listLocationsQueryKey as Wn, listRolesQueryKey as Gn, manageDebitCardAccessMutation as Kn, patchApprovalPoliciesIdMutation as qn, patchEntitiesIdSettingsMutation as Jn, patchLedgerAccountsIdMutation as Yn, patchReceiptsIdMutation as Xn, postApprovalPoliciesMutation as Zn, postLedgerAccountsMutation as Qn, putTransactionsValidationsMutation as $n, setDebitCardLockStatusMutation as er, submitApplicationMutation as tr, unlinkExternalBankAccountMutation as nr, updateApplicationMutation as rr, updateBankAccountMutation as ir, updateDebitCardMutation as ar, updateExternalBankAccountMutation as or, validateExternalBankAccountMutation as sr, verifyDebitCardMutation as cr } from "./lib/rest/@tanstack/react-query.gen.js";
13
+ import { activateCreditCardMutation as Ue, activateDebitCardMutation as We, connectExternalBankAccountMutation as Ge, createAchMoneyMovementMutation as Ke, createApplicationMutation as qe, createBankAccountMutation as Je, createBookTransferMutation as Ye, createCheckDepositMutation as Xe, createDebitCardMutation as Ze, createVelocityControlMutation as Qe, deleteApprovalPoliciesIdMutation as $e, deleteLedgerAccountsIdMutation as et, deleteReceiptsIdMutation as tt, disableUserMutation as nt, getAnalyticsPayablesOptions as rt, getAnalyticsReceivablesOptions as it, getApplicationStatusOptions as at, getApprovalPoliciesOptions as ot, getApprovalPoliciesQueryKey as st, getApprovalRequestsOptions as ct, getApprovalRequestsQueryKey as lt, getBankAccountAccessQueryKey as ut, getBankAccountApplicationOptions as dt, getBankAccountOptions as ft, getBankAccountQueryKey as pt, getBankAccountTransactionsOptions as mt, getBankAccountTransactionsQueryKey as ht, getBankAccountTransfersOptions as gt, getBankAccountTransfersQueryKey as _t, getBankAccountsQueryKey as vt, getCounterpartsIdAddressesOptions as yt, getCounterpartsIdAddressesQueryKey as bt, getCounterpartsIdBankAccountsOptions as xt, getCounterpartsIdBankAccountsQueryKey as St, getCounterpartsIdOptions as Ct, getCounterpartsIdQueryKey as wt, getCounterpartsOptions as Tt, getCounterpartsQueryKey as Et, getCreditCardByIdOptions as Dt, getCreditCardByIdQueryKey as Ot, getCreditCardsOptions as kt, getCreditCardsQueryKey as At, getDebitCardByIdOptions as jt, getDebitCardByIdQueryKey as Mt, getDebitCardCredentialsOptions as Nt, getDebitCardsOptions as Pt, getDebitCardsQueryKey as Ft, getDepartmentOptions as It, getDepartmentQueryKey as Lt, getEntitiesIdSettingsOptions as Rt, getEntitiesIdSettingsQueryKey as zt, getEntitiesMeOptions as Bt, getEntityUsersMyEntityOptions as Vt, getEntityUsersOptions as Ht, getExternalBankAccountAccessQueryKey as Ut, getExternalBankAccountsOptions as Wt, getExternalBankAccountsQueryKey as Gt, getLedgerAccountsQueryKey as Kt, getLocationOptions as qt, getLocationQueryKey as Jt, getMeasureUnitsOptions as Yt, getMeasureUnitsQueryKey as Xt, getOrganizationOptions as Zt, getPayablesAnalyticsOptions as Qt, getPayablesAnalyticsQueryKey as $t, getPayablesIdHistoryOptions as en, getPayablesIdHistoryQueryKey as tn, getPayablesIdLineItemsOptions as nn, getPayablesIdLineItemsQueryKey as rn, getPayablesIdOptions as an, getPayablesIdQueryKey as on, getPayablesIdSuggestionsOptions as sn, getPayablesOptions as cn, getPayablesQueryKey as ln, getPaymentRecordsOptions as un, getPaymentRecordsQueryKey as dn, getProductsIdOptions as fn, getProductsIdQueryKey as pn, getProductsOptions as mn, getProductsQueryKey as hn, getReceiptsIdQueryKey as gn, getReceiptsOptions as _n, getReceiptsQueryKey as vn, getReceivablesIdHistoryOptions as yn, getReceivablesIdHistoryQueryKey as bn, getReceivablesIdMailsOptions as xn, getReceivablesIdMailsQueryKey as Sn, getReceivablesIdOptions as Cn, getReceivablesIdPdfLinkOptions as wn, getReceivablesIdPdfLinkQueryKey as Tn, getReceivablesIdQueryKey as En, getReceivablesOptions as Dn, getReceivablesQueryKey as On, getTagsOptions as kn, getTagsQueryKey as An, getTransactionsIdQueryKey as jn, getTransactionsOptions as Mn, getTransactionsQueryKey as Nn, getTransactionsValidationsOptions as Pn, getTransactionsValidationsQueryKey as Fn, getUsersOptions as In, getUsersQueryKey as Ln, getVelocityControlsQueryKey as Rn, grantBankAccountAccessMutation as zn, grantExternalBankAccountAccessMutation as Bn, linkExternalBankAccountMutation as Vn, listDepartmentsOptions as Hn, listDepartmentsQueryKey as Un, listLocationsOptions as Wn, listLocationsQueryKey as Gn, listRolesQueryKey as Kn, manageDebitCardAccessMutation as qn, patchApprovalPoliciesIdMutation as Jn, patchEntitiesIdSettingsMutation as Yn, patchLedgerAccountsIdMutation as Xn, patchReceiptsIdMutation as Zn, postApprovalPoliciesMutation as Qn, postLedgerAccountsMutation as $n, putTransactionsValidationsMutation as er, setDebitCardLockStatusMutation as tr, submitApplicationMutation as nr, unlinkExternalBankAccountMutation as rr, updateApplicationMutation as ir, updateBankAccountMutation as ar, updateDebitCardMutation as or, updateExternalBankAccountMutation as sr, validateExternalBankAccountMutation as cr, verifyDebitCardMutation as lr } from "./lib/rest/@tanstack/react-query.gen.js";
13
14
  import "./lib/queryKeys.js";
14
- import { withAuthEpoch as lr } from "./lib/withAuthEpoch.js";
15
- import { useCurrentUserQuery as ur } from "./lib/useCurrentUserQuery.js";
15
+ import { withAuthEpoch as ur } from "./lib/withAuthEpoch.js";
16
+ import { useCurrentUserQuery as dr } from "./lib/useCurrentUserQuery.js";
16
17
  import "./lib/apiErrorStatus.js";
17
- import { isApiConflictError as dr } from "./lib/isApiConflictError.js";
18
- import { isApiForbiddenError as fr } from "./lib/isApiForbiddenError.js";
19
- import { isApiNotFoundError as pr } from "./lib/isApiNotFoundError.js";
20
- import { isApiUnprocessableError as mr } from "./lib/isApiUnprocessableError.js";
18
+ import { isApiConflictError as fr } from "./lib/isApiConflictError.js";
19
+ import { isApiForbiddenError as pr } from "./lib/isApiForbiddenError.js";
20
+ import { isApiNotFoundError as mr } from "./lib/isApiNotFoundError.js";
21
+ import { isApiUnprocessableError as hr } from "./lib/isApiUnprocessableError.js";
21
22
  import "./lib/isUserDataNotFoundError.js";
22
- import { useGetUserDataQuery as hr } from "./lib/useGetUserDataQuery.js";
23
- import { useUpsertUserDataMutation as gr } from "./lib/useUpsertUserDataMutation.js";
23
+ import { useGetUserDataQuery as gr } from "./lib/useGetUserDataQuery.js";
24
+ import { useUpsertUserDataMutation as _r } from "./lib/useUpsertUserDataMutation.js";
24
25
  import "./lib/rest/zod.gen.js";
25
- import { Scope as _r } from "./lib/scopes.js";
26
- import { getAllPagesNextPageParam as vr, getAllPagesNextPaginationTokenParam as yr, isAllPagesResolving as br, useAutoFetchNextPage as xr } from "./lib/allPages.js";
27
- import { useAllBankAccountsQuery as Sr } from "./lib/bank-account/useAllBankAccountsQuery.js";
28
- import { useAllExternalBankAccountsQuery as Cr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
29
- import { useAllMerchantCategoryGroupsQuery as wr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
30
- import { useAllLedgerAccountsQuery as Tr, useLedgerAccountsQuery as Er } from "./lib/reference-data/useLedgerAccountsQuery.js";
31
- import { usePaymentTermsQuery as Dr } from "./lib/reference-data/usePaymentTermsQuery.js";
32
- import { useAllOrganizationRolesQuery as Or } from "./lib/role/useAllOrganizationRolesQuery.js";
33
- import { useRolePermissionsQueries as kr } from "./lib/role/useRolePermissionsQueries.js";
34
- import { useAllOrganizationUsersQuery as Ar } from "./lib/user/useAllOrganizationUsersQuery.js";
35
- import { useAcceptWidgetDisclosures as jr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
36
- import { useDisclosuresQuery as Mr } from "./lib/disclosures/useDisclosuresQuery.js";
37
- import { OnboardingSuppressionReason as Nr } from "./lib/onboardingSuppressionReason.js";
38
- import { useOrganizationOnboardingSuppression as Pr } from "./lib/useOrganizationOnboardingSuppression.js";
39
- export { l as EmbedApiProvider, Nr as OnboardingSuppressionReason, _r as Scope, Ue as activateCreditCardMutation, We as activateDebitCardMutation, c as attachTransportInterceptors, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ge as connectExternalBankAccountMutation, Ke as createAchMoneyMovementMutation, qe as createApplicationMutation, Je as createBankAccountMutation, Ye as createBookTransferMutation, Xe as createCheckDepositMutation, Ze as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, Qe as createVelocityControlMutation, y as deactivateDepartment, b as deactivateLocation, $e as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, et as deleteLedgerAccountsIdMutation, C as deleteMeasureUnitsId, w as deletePayablesId, T as deletePayablesIdFile, E as deleteProductsId, tt as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, nt as disableUserMutation, k as downloadBankAccountTransactions, Ve as fetchWidgetInit, vr as getAllPagesNextPageParam, yr as getAllPagesNextPaginationTokenParam, rt as getAnalyticsPayablesOptions, it as getAnalyticsReceivablesOptions, A as getApplicationStatus, at as getApplicationStatusOptions, j as getApprovalPolicies, ot as getApprovalPoliciesOptions, st as getApprovalPoliciesQueryKey, M as getApprovalRequests, ct as getApprovalRequestsOptions, lt as getApprovalRequestsQueryKey, N as getBankAccountAccess, ut as getBankAccountAccessQueryKey, P as getBankAccountApplication, dt as getBankAccountOptions, ft as getBankAccountQueryKey, pt as getBankAccountTransactionsOptions, mt as getBankAccountTransactionsQueryKey, ht as getBankAccountTransfersOptions, gt as getBankAccountTransfersQueryKey, _t as getBankAccountsQueryKey, F as getCounterparts, vt as getCounterpartsIdAddressesOptions, yt as getCounterpartsIdAddressesQueryKey, bt as getCounterpartsIdBankAccountsOptions, xt as getCounterpartsIdBankAccountsQueryKey, St as getCounterpartsIdOptions, Ct as getCounterpartsIdQueryKey, wt as getCounterpartsOptions, Tt as getCounterpartsQueryKey, Et as getCreditCardByIdOptions, Dt as getCreditCardByIdQueryKey, Ot as getCreditCardsOptions, kt as getCreditCardsQueryKey, At as getDebitCardByIdOptions, jt as getDebitCardByIdQueryKey, Mt as getDebitCardCredentialsOptions, Nt as getDebitCardsOptions, Pt as getDebitCardsQueryKey, I as getDepartment, Ft as getDepartmentOptions, It as getDepartmentQueryKey, Lt as getEntitiesIdSettingsOptions, Rt as getEntitiesIdSettingsQueryKey, zt as getEntitiesMeOptions, Bt as getEntityUsersMyEntityOptions, Vt as getEntityUsersOptions, L as getExternalBankAccountAccess, Ht as getExternalBankAccountAccessQueryKey, Ut as getExternalBankAccountsOptions, Wt as getExternalBankAccountsQueryKey, Gt as getLedgerAccountsQueryKey, R as getLocation, Kt as getLocationOptions, qt as getLocationQueryKey, Jt as getMeasureUnitsOptions, Yt as getMeasureUnitsQueryKey, Xt as getOrganizationOptions, z as getPayables, Zt as getPayablesAnalyticsOptions, Qt as getPayablesAnalyticsQueryKey, B as getPayablesId, V as getPayablesIdHistory, $t as getPayablesIdHistoryOptions, en as getPayablesIdHistoryQueryKey, H as getPayablesIdLineItems, tn as getPayablesIdLineItemsOptions, nn as getPayablesIdLineItemsQueryKey, rn as getPayablesIdOptions, an as getPayablesIdQueryKey, on as getPayablesIdSuggestionsOptions, sn as getPayablesOptions, cn as getPayablesQueryKey, U as getPaymentRecords, ln as getPaymentRecordsOptions, un as getPaymentRecordsQueryKey, dn as getProductsIdOptions, fn as getProductsIdQueryKey, pn as getProductsOptions, mn as getProductsQueryKey, hn as getReceiptsIdQueryKey, gn as getReceiptsOptions, _n as getReceiptsQueryKey, W as getReceivables, vn as getReceivablesIdHistoryOptions, yn as getReceivablesIdHistoryQueryKey, bn as getReceivablesIdMailsOptions, xn as getReceivablesIdMailsQueryKey, Sn as getReceivablesIdOptions, Cn as getReceivablesIdPdfLinkOptions, wn as getReceivablesIdPdfLinkQueryKey, Tn as getReceivablesIdQueryKey, En as getReceivablesOptions, Dn as getReceivablesQueryKey, On as getTagsOptions, kn as getTagsQueryKey, An as getTransactionsIdQueryKey, jn as getTransactionsOptions, Mn as getTransactionsQueryKey, Nn as getTransactionsValidationsOptions, Pn as getTransactionsValidationsQueryKey, G as getUsers, Fn as getUsersOptions, In as getUsersQueryKey, Ln as getVelocityControlsQueryKey, Rn as grantBankAccountAccessMutation, zn as grantExternalBankAccountAccessMutation, He as hasAnyScope, t as invalidateAllClients, br as isAllPagesResolving, dr as isApiConflictError, fr as isApiForbiddenError, pr as isApiNotFoundError, mr as isApiUnprocessableError, Bn as linkExternalBankAccountMutation, K as listDepartments, Vn as listDepartmentsOptions, Hn as listDepartmentsQueryKey, q as listLocations, Un as listLocationsOptions, Wn as listLocationsQueryKey, J as listRoles, Gn as listRolesQueryKey, Y as manageBankAccountAccess, Kn as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, qn as patchApprovalPoliciesIdMutation, X as patchCounterpartsId, Z as patchCounterpartsIdAddressesId, Q as patchCounterpartsIdBankAccountsId, Jn as patchEntitiesIdSettingsMutation, Yn as patchLedgerAccountsIdMutation, $ as patchMeasureUnitsId, ee as patchPayablesId, te as patchProductsId, Xn as patchReceiptsIdMutation, ne as patchReceivablesId, re as patchTagsId, Zn as postApprovalPoliciesMutation, ie as postApprovalRequestsIdApprove, ae as postApprovalRequestsIdReject, oe as postCounterparts, se as postCounterpartsIdAddresses, ce as postCounterpartsIdBankAccounts, le as postCounterpartsIdBankAccountsIdMakeDefault, Qn as postLedgerAccountsMutation, ue as postMeasureUnits, de as postPayables, fe as postPayablesIdApprovePaymentOperation, pe as postPayablesIdAttachFile, me as postPayablesIdCancel, he as postPayablesIdDuplicatesIdConfirm, ge as postPayablesIdDuplicatesIdDismiss, _e as postPayablesIdMarkAsPaid, ve as postPayablesIdReject, ye as postPayablesIdReopen, be as postPayablesIdSchedulePayment, xe as postPayablesIdSubmitForApproval, Se as postPayablesIdValidate, Ce as postPayablesUploadFromFile, we as postPaymentIntentsIdCancel, Te as postProducts, Ee as postReceivables, De as postReceivablesIdAccept, Oe as postReceivablesIdCancel, ke as postReceivablesIdClone, Ae as postReceivablesIdDecline, je as postReceivablesIdIssue, Me as postReceivablesIdMarkAsPaid, Ne as postReceivablesIdMarkAsPartiallyPaid, Pe as postReceivablesIdMarkAsUncollectible, Fe as postReceivablesIdSend, Ie as postTags, Le as putPayablesIdLineItems, $n as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, er as setDebitCardLockStatusMutation, tr as submitApplicationMutation, nr as unlinkExternalBankAccountMutation, a as unregisterQueryClient, rr as updateApplicationMutation, ir as updateBankAccountMutation, ar as updateDebitCardMutation, Re as updateDepartment, or as updateExternalBankAccountMutation, ze as updateLocation, Be as updateUser, jr as useAcceptWidgetDisclosures, Sr as useAllBankAccountsQuery, Cr as useAllExternalBankAccountsQuery, Tr as useAllLedgerAccountsQuery, wr as useAllMerchantCategoryGroupsQuery, Or as useAllOrganizationRolesQuery, Ar as useAllOrganizationUsersQuery, xr as useAutoFetchNextPage, ur as useCurrentUserQuery, Mr as useDisclosuresQuery, u as useEmbedApi, hr as useGetUserDataQuery, Er as useLedgerAccountsQuery, Pr as useOrganizationOnboardingSuppression, Dr as usePaymentTermsQuery, kr as useRolePermissionsQueries, gr as useUpsertUserDataMutation, sr as validateExternalBankAccountMutation, cr as verifyDebitCardMutation, lr as withAuthEpoch };
26
+ import { Scope as vr } from "./lib/scopes.js";
27
+ import { getAllPagesNextPageParam as yr, getAllPagesNextPaginationTokenParam as br, isAllPagesResolving as xr, useAutoFetchNextPage as Sr } from "./lib/allPages.js";
28
+ import { useAllBankAccountsQuery as Cr } from "./lib/bank-account/useAllBankAccountsQuery.js";
29
+ import { useAllExternalBankAccountsQuery as wr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
30
+ import { useAllMerchantCategoryGroupsQuery as Tr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
31
+ import { useAllLedgerAccountsQuery as Er, useLedgerAccountsQuery as Dr } from "./lib/reference-data/useLedgerAccountsQuery.js";
32
+ import { usePaymentTermsQuery as Or } from "./lib/reference-data/usePaymentTermsQuery.js";
33
+ import { useAllOrganizationRolesQuery as kr } from "./lib/role/useAllOrganizationRolesQuery.js";
34
+ import { useRolePermissionsQueries as Ar } from "./lib/role/useRolePermissionsQueries.js";
35
+ import { useAllOrganizationUsersQuery as jr } from "./lib/user/useAllOrganizationUsersQuery.js";
36
+ import { useAcceptWidgetDisclosures as Mr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
37
+ import { useDisclosuresQuery as Nr } from "./lib/disclosures/useDisclosuresQuery.js";
38
+ import { OnboardingSuppressionReason as Pr } from "./lib/onboardingSuppressionReason.js";
39
+ import { useOrganizationOnboardingSuppression as Fr } from "./lib/useOrganizationOnboardingSuppression.js";
40
+ export { u as EmbedApiProvider, Pr as OnboardingSuppressionReason, vr as Scope, Ue as activateCreditCardMutation, We as activateDebitCardMutation, l as attachTransportInterceptors, m as bulkUpdateDepartmentMembers, h as bulkUpdateLocationMembers, g as bulkUpdateRoleMembers, t as cancelAllClients, s as cloneEmbeddedClient, Ge as connectExternalBankAccountMutation, Ke as createAchMoneyMovementMutation, qe as createApplicationMutation, Je as createBankAccountMutation, Ye as createBookTransferMutation, Xe as createCheckDepositMutation, e as createClientSecretInstaller, Ze as createDebitCardMutation, _ as createDepartment, c as createEmbeddedClient, v as createLocation, y as createUser, Qe as createVelocityControlMutation, b as deactivateDepartment, x as deactivateLocation, $e as deleteApprovalPoliciesIdMutation, S as deleteCounterpartsId, C as deleteCounterpartsIdBankAccountsId, et as deleteLedgerAccountsIdMutation, w as deleteMeasureUnitsId, T as deletePayablesId, E as deletePayablesIdFile, D as deleteProductsId, tt as deleteReceiptsIdMutation, O as deleteReceivablesId, k as deleteTagsId, nt as disableUserMutation, A as downloadBankAccountTransactions, Ve as fetchWidgetInit, yr as getAllPagesNextPageParam, br as getAllPagesNextPaginationTokenParam, rt as getAnalyticsPayablesOptions, it as getAnalyticsReceivablesOptions, j as getApplicationStatus, at as getApplicationStatusOptions, M as getApprovalPolicies, ot as getApprovalPoliciesOptions, st as getApprovalPoliciesQueryKey, N as getApprovalRequests, ct as getApprovalRequestsOptions, lt as getApprovalRequestsQueryKey, P as getBankAccountAccess, ut as getBankAccountAccessQueryKey, dt as getBankAccountApplicationOptions, ft as getBankAccountOptions, pt as getBankAccountQueryKey, mt as getBankAccountTransactionsOptions, ht as getBankAccountTransactionsQueryKey, gt as getBankAccountTransfersOptions, _t as getBankAccountTransfersQueryKey, vt as getBankAccountsQueryKey, F as getCounterparts, yt as getCounterpartsIdAddressesOptions, bt as getCounterpartsIdAddressesQueryKey, xt as getCounterpartsIdBankAccountsOptions, St as getCounterpartsIdBankAccountsQueryKey, Ct as getCounterpartsIdOptions, wt as getCounterpartsIdQueryKey, Tt as getCounterpartsOptions, Et as getCounterpartsQueryKey, Dt as getCreditCardByIdOptions, Ot as getCreditCardByIdQueryKey, kt as getCreditCardsOptions, At as getCreditCardsQueryKey, jt as getDebitCardByIdOptions, Mt as getDebitCardByIdQueryKey, Nt as getDebitCardCredentialsOptions, Pt as getDebitCardsOptions, Ft as getDebitCardsQueryKey, I as getDepartment, It as getDepartmentOptions, Lt as getDepartmentQueryKey, Rt as getEntitiesIdSettingsOptions, zt as getEntitiesIdSettingsQueryKey, Bt as getEntitiesMeOptions, Vt as getEntityUsersMyEntityOptions, Ht as getEntityUsersOptions, L as getExternalBankAccountAccess, Ut as getExternalBankAccountAccessQueryKey, Wt as getExternalBankAccountsOptions, Gt as getExternalBankAccountsQueryKey, Kt as getLedgerAccountsQueryKey, R as getLocation, qt as getLocationOptions, Jt as getLocationQueryKey, Yt as getMeasureUnitsOptions, Xt as getMeasureUnitsQueryKey, Zt as getOrganizationOptions, z as getPayables, Qt as getPayablesAnalyticsOptions, $t as getPayablesAnalyticsQueryKey, B as getPayablesId, V as getPayablesIdHistory, en as getPayablesIdHistoryOptions, tn as getPayablesIdHistoryQueryKey, H as getPayablesIdLineItems, nn as getPayablesIdLineItemsOptions, rn as getPayablesIdLineItemsQueryKey, an as getPayablesIdOptions, on as getPayablesIdQueryKey, sn as getPayablesIdSuggestionsOptions, cn as getPayablesOptions, ln as getPayablesQueryKey, U as getPaymentRecords, un as getPaymentRecordsOptions, dn as getPaymentRecordsQueryKey, fn as getProductsIdOptions, pn as getProductsIdQueryKey, mn as getProductsOptions, hn as getProductsQueryKey, gn as getReceiptsIdQueryKey, _n as getReceiptsOptions, vn as getReceiptsQueryKey, W as getReceivables, yn as getReceivablesIdHistoryOptions, bn as getReceivablesIdHistoryQueryKey, xn as getReceivablesIdMailsOptions, Sn as getReceivablesIdMailsQueryKey, Cn as getReceivablesIdOptions, wn as getReceivablesIdPdfLinkOptions, Tn as getReceivablesIdPdfLinkQueryKey, En as getReceivablesIdQueryKey, Dn as getReceivablesOptions, On as getReceivablesQueryKey, kn as getTagsOptions, An as getTagsQueryKey, jn as getTransactionsIdQueryKey, Mn as getTransactionsOptions, Nn as getTransactionsQueryKey, Pn as getTransactionsValidationsOptions, Fn as getTransactionsValidationsQueryKey, G as getUsers, In as getUsersOptions, Ln as getUsersQueryKey, Rn as getVelocityControlsQueryKey, zn as grantBankAccountAccessMutation, Bn as grantExternalBankAccountAccessMutation, He as hasAnyScope, n as invalidateAllClients, xr as isAllPagesResolving, fr as isApiConflictError, pr as isApiForbiddenError, mr as isApiNotFoundError, hr as isApiUnprocessableError, Vn as linkExternalBankAccountMutation, K as listDepartments, Hn as listDepartmentsOptions, Un as listDepartmentsQueryKey, q as listLocations, Wn as listLocationsOptions, Gn as listLocationsQueryKey, J as listRoles, Kn as listRolesQueryKey, Y as manageBankAccountAccess, qn as manageDebitCardAccessMutation, f as optionalOrganizationHeaders, p as organizationHeaders, Jn as patchApprovalPoliciesIdMutation, X as patchCounterpartsId, Z as patchCounterpartsIdAddressesId, Q as patchCounterpartsIdBankAccountsId, Yn as patchEntitiesIdSettingsMutation, Xn as patchLedgerAccountsIdMutation, $ as patchMeasureUnitsId, ee as patchPayablesId, te as patchProductsId, Zn as patchReceiptsIdMutation, ne as patchReceivablesId, re as patchTagsId, Qn as postApprovalPoliciesMutation, ie as postApprovalRequestsIdApprove, ae as postApprovalRequestsIdReject, oe as postCounterparts, se as postCounterpartsIdAddresses, ce as postCounterpartsIdBankAccounts, le as postCounterpartsIdBankAccountsIdMakeDefault, $n as postLedgerAccountsMutation, ue as postMeasureUnits, de as postPayables, fe as postPayablesIdApprovePaymentOperation, pe as postPayablesIdAttachFile, me as postPayablesIdCancel, he as postPayablesIdDuplicatesIdConfirm, ge as postPayablesIdDuplicatesIdDismiss, _e as postPayablesIdMarkAsPaid, ve as postPayablesIdReject, ye as postPayablesIdReopen, be as postPayablesIdSchedulePayment, xe as postPayablesIdSubmitForApproval, Se as postPayablesIdValidate, Ce as postPayablesUploadFromFile, we as postPaymentIntentsIdCancel, Te as postProducts, Ee as postReceivables, De as postReceivablesIdAccept, Oe as postReceivablesIdCancel, ke as postReceivablesIdClone, Ae as postReceivablesIdDecline, je as postReceivablesIdIssue, Me as postReceivablesIdMarkAsPaid, Ne as postReceivablesIdMarkAsPartiallyPaid, Pe as postReceivablesIdMarkAsUncollectible, Fe as postReceivablesIdSend, Ie as postTags, Le as putPayablesIdLineItems, er as putTransactionsValidationsMutation, r as registerQueryClient, i as removeInactiveFromAllClients, a as setAllClientsQueriesData, tr as setDebitCardLockStatusMutation, nr as submitApplicationMutation, rr as unlinkExternalBankAccountMutation, o as unregisterQueryClient, ir as updateApplicationMutation, ar as updateBankAccountMutation, or as updateDebitCardMutation, Re as updateDepartment, sr as updateExternalBankAccountMutation, ze as updateLocation, Be as updateUser, Mr as useAcceptWidgetDisclosures, Cr as useAllBankAccountsQuery, wr as useAllExternalBankAccountsQuery, Er as useAllLedgerAccountsQuery, Tr as useAllMerchantCategoryGroupsQuery, kr as useAllOrganizationRolesQuery, jr as useAllOrganizationUsersQuery, Sr as useAutoFetchNextPage, dr as useCurrentUserQuery, Nr as useDisclosuresQuery, d as useEmbedApi, gr as useGetUserDataQuery, Dr as useLedgerAccountsQuery, Fr as useOrganizationOnboardingSuppression, Or as usePaymentTermsQuery, Ar as useRolePermissionsQueries, _r as useUpsertUserDataMutation, cr as validateExternalBankAccountMutation, lr as verifyDebitCardMutation, ur as withAuthEpoch };
@@ -10,20 +10,22 @@ var a = t({
10
10
  client: e,
11
11
  authEpoch: 0
12
12
  });
13
- function o({ children: e, client: t, widgetToken: n, organizationId: o, authEpoch: s }) {
14
- let c = r(() => ({
13
+ function o({ children: e, client: t, widgetToken: n, organizationId: o, installClientSecret: s, authEpoch: c }) {
14
+ let l = r(() => ({
15
15
  client: t,
16
16
  organizationId: o,
17
17
  widgetToken: n,
18
- authEpoch: s
18
+ installClientSecret: s,
19
+ authEpoch: c
19
20
  }), [
20
21
  t,
21
22
  o,
22
23
  n,
23
- s
24
+ s,
25
+ c
24
26
  ]);
25
27
  return /* @__PURE__ */ i(a.Provider, {
26
- value: c,
28
+ value: l,
27
29
  children: e
28
30
  });
29
31
  }