@tesouro/embedded-components-react 0.5.33 → 0.5.34

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 (22) hide show
  1. package/README.md +1 -1
  2. package/dist/index.d.ts +17 -1
  3. package/dist/index.js +1 -1
  4. package/dist/lib/BankAccountOnboardingWidget.d.ts +17 -1
  5. package/dist/lib/BankAccountOnboardingWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +3 -1
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +30 -0
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +48 -0
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +6 -0
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +1 -1
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +1 -0
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +9 -2
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +96 -5
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +5 -28
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +26 -320
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index19.js +7 -0
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index20.js +387 -0
  18. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +27 -27
  19. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +162 -154
  20. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js +11 -11
  21. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  22. package/package.json +1 -1
@@ -0,0 +1,387 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { Dialog as e, DialogContent as t, DialogTitle as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { useEmbedApi as r } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { useAcceptWidgetDisclosures as i } from "../../../shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js";
8
+ import { useDisclosuresQuery as a } from "../../../shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js";
9
+ import { OnboardingSuppressionReason as o } from "../../../shared/data-access/dist/lib/onboardingSuppressionReason.js";
10
+ import { useOrganizationOnboardingSuppression as s } from "../../../shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js";
11
+ import "../../../shared/data-access/dist/index.js";
12
+ import { OnboardingShell as c } from "../../../shared/ui/dist/lib/OnboardingShell/OnboardingShell.js";
13
+ import "../../../shared/ui/dist/index.js";
14
+ import { useAnalyticsTrack as l } from "../../../shared/feature/dist/lib/analytics/hooks.js";
15
+ import { WidgetProvider as u } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
16
+ import { getStateOptions as d } from "../../../shared/util/dist/lib/usStates.js";
17
+ import { extractApiErrorMessage as ee } from "../../../shared/util/dist/lib/apiErrors.js";
18
+ import { useRefetchWidget as te, useWidgetConfig as f } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
19
+ import { getNaicsOptions as ne } from "../../../shared/feature/dist/lib/naicsCodeMap.js";
20
+ import "../../../shared/feature/dist/index.js";
21
+ import { bankAccountOnboardingTestIds as p } from "./index9.js";
22
+ import { ADDITIONAL_OWNERS_LABELS_EN as m } from "../../ui/dist/index4.js";
23
+ import { interpolateBankName as h } from "../../ui/dist/index6.js";
24
+ import { ResultStep as re } from "../../ui/dist/index11.js";
25
+ import "../../ui/dist/index.js";
26
+ import { BusinessDetailsStep as ie } from "./index10.js";
27
+ import { PersonalDetailsStep as ae } from "./index12.js";
28
+ import { AdditionalOwnersStep as oe } from "./index14.js";
29
+ import { buildCreateApplicationBody as se, buildUpdateApplicationBody as g } from "./index15.js";
30
+ import { buildOnboardingPrefill as _ } from "./index16.js";
31
+ import { OnboardingAnalyticsEvent as v, WIDGET_NAME as ce } from "./index17.js";
32
+ import { DEFAULT_LABELS as y } from "./index18.js";
33
+ import { withoutResumeOnlyOwnerFields as b } from "./index19.js";
34
+ import { ApplicationClientSecretProvider as le, useApplicationClientSecret as ue } from "../../data-access/dist/index2.js";
35
+ import { useCreateApplication as de } from "../../data-access/dist/index4.js";
36
+ import { useUpdateApplication as fe } from "../../data-access/dist/index6.js";
37
+ import { useSubmitApplication as pe } from "../../data-access/dist/index7.js";
38
+ import { usePollApplicationCompletion as me } from "../../data-access/dist/index8.js";
39
+ import { useResumableBankAccountApplication as x } from "../../data-access/dist/index10.js";
40
+ import { useStartedBankAccountApplication as he } from "../../data-access/dist/index11.js";
41
+ import "../../data-access/dist/index.js";
42
+ import { useCallback as S, useEffect as C, useMemo as w, useRef as ge, useState as T } from "react";
43
+ import { Fragment as _e, jsx as E, jsxs as ve } from "react/jsx-runtime";
44
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index20.js
45
+ var ye = "DRAFT", be = [], xe = {
46
+ companyLegalName: "",
47
+ companyDbaName: "",
48
+ businessAddress: "",
49
+ city: "",
50
+ state: "",
51
+ zipCode: "",
52
+ companyPhoneNumber: "",
53
+ companyStructure: "",
54
+ website: "",
55
+ taxId: "",
56
+ naicsCode: "",
57
+ isAuthorized: null,
58
+ isCheckboxChecked: !1
59
+ }, Se = {
60
+ firstName: "",
61
+ lastName: "",
62
+ dateOfBirth: void 0,
63
+ ssn: "",
64
+ homeAddress: "",
65
+ city: "",
66
+ state: "",
67
+ zipCode: "",
68
+ mobilePhoneNumber: "",
69
+ workEmail: "",
70
+ ownsOver25Percent: null,
71
+ ownershipPercentage: null
72
+ };
73
+ function Ce(e, t) {
74
+ if (e === 0) return {
75
+ title: t.businessReviewTitle,
76
+ subtitle: t.businessReviewSubtitle
77
+ };
78
+ if (e === 1) return {
79
+ title: t.personalReviewTitle,
80
+ subtitle: t.personalReviewSubtitle
81
+ };
82
+ let n = {
83
+ ...m,
84
+ ...t.additionalOwners
85
+ };
86
+ return {
87
+ title: n.heading,
88
+ subtitle: n.subheading
89
+ };
90
+ }
91
+ function D({ onEmbeddedOnboardingCompletedSuccessfully: r, onNavigateToDashboard: u, labels: m, initialBusinessDetails: _, initialPersonalDetails: ce, initialAdditionalOwners: le, initialApplicationId: x = null, bankLogoSrc: he, disclosureLinks: ye, open: D, defaultOpen: O, onOpenChange: k, isFullScreenInline: A = !1 }) {
92
+ let j = l();
93
+ C(() => {
94
+ j(v.Mounted);
95
+ }, [j]);
96
+ let M = {
97
+ ...y,
98
+ ...m,
99
+ stepIndicator: {
100
+ ...y.stepIndicator,
101
+ ...m?.stepIndicator
102
+ },
103
+ businessDetails: m?.businessDetails ?? {},
104
+ personalDetails: m?.personalDetails ?? {},
105
+ additionalOwners: m?.additionalOwners ?? {},
106
+ result: {
107
+ ...y.result,
108
+ ...m?.result
109
+ }
110
+ }, N = f().initResponse, { termsHref: we, privacyHref: Te, electronicCommunicationHref: Ee, patriotActHref: De } = ye ?? {}, P = D === void 0, [Oe, ke] = T(() => O ?? !1), Ae = P ? Oe : D, je = O ?? !1, F = S((e) => {
111
+ P && ke(e), k?.(e);
112
+ }, [k, P]), Me = S(() => {
113
+ r();
114
+ }, [r]), Ne = te(), [I, L] = T(0), [Pe, Fe] = T(() => ({
115
+ ...xe,
116
+ ..._
117
+ })), [R, Ie] = T(() => ({
118
+ ...Se,
119
+ ...ce
120
+ })), [Le, Re] = T(() => le ?? []), [z, ze] = T(null), [B, Be] = T(null), [V, Ve] = T(null), [H, He] = T(x), [Ue, U] = T(null), [W, We] = T(!1), [Ge, G] = T(null), Ke = de(), K = fe(), qe = pe(), Je = me(), { setClientSecret: Ye } = ue(), { data: Xe, refetch: Ze } = a(), { mutateAsync: Qe } = i(), q = s(), J = ge(null);
121
+ C(() => () => J.current?.abort(), []);
122
+ let $e = w(() => ne(M.businessDetails.naicsTitles), [M.businessDetails.naicsTitles]), et = w(() => d(M.businessDetails.stateTitles), [M.businessDetails.stateTitles]), tt = w(() => d(M.personalDetails.stateTitles), [M.personalDetails.stateTitles]), nt = w(() => d(M.additionalOwners.stateTitles), [M.additionalOwners.stateTitles]), Y = W || Ge !== null, rt = N?.status === "ACTIVE" || N?.status === "INACTIVE", it = N?.status === "INVITED", X = !!N && !Y && (rt || it || q.isSuppressed), Z = X ? rt ? o.UserAlreadyOnboarded : it ? o.UserInvitedToOrganization : q.reason : null;
123
+ if (C(() => {
124
+ !X || !Z || (j(v.Suppressed, { reason: Z }), console.info(`[onboarding] not shown: ${Z}`));
125
+ }, [
126
+ X,
127
+ Z,
128
+ j
129
+ ]), !N || !Y && (X || !q.isResolved)) return null;
130
+ let Q = z?.companyStructure === "SOLE_PROPRIETORSHIP", at = [
131
+ M.stepIndicator.business,
132
+ M.stepIndicator.personal,
133
+ M.stepIndicator.ownership
134
+ ], ot = I === 0 ? z : I === 1 ? B : I === 2 ? V : null, $ = Ke.isPending || K.isPending || qe.isPending || W, st = () => {
135
+ U(null), L((e) => e === 0 ? 0 : e - 1);
136
+ }, ct = () => {
137
+ F(!1);
138
+ }, lt = async (e) => {
139
+ We(!0), F(!0);
140
+ let t = new AbortController();
141
+ J.current = t;
142
+ let n = !1;
143
+ try {
144
+ let r = await qe.mutateAsync({ path: { id: e } });
145
+ if (t.signal.aborted) return;
146
+ if (!r.id) throw Error(M.submitFailedError);
147
+ if (n = !0, (await Je(e, { signal: t.signal })).status === "complete") {
148
+ let e = Xe;
149
+ if (e === void 0 && (e = (await Ze()).data), t.signal.aborted) return;
150
+ if (e !== void 0) try {
151
+ await Qe({ displayedVersion: e.version ?? null });
152
+ } catch {}
153
+ if (t.signal.aborted) return;
154
+ G("success"), Ne(), Me();
155
+ } else G("pending");
156
+ } catch (e) {
157
+ if (e instanceof DOMException && e.name === "AbortError") return;
158
+ if (!n) throw e;
159
+ G("pending");
160
+ } finally {
161
+ J.current = null, We(!1);
162
+ }
163
+ }, ut = () => {
164
+ Re((e) => e.map(b));
165
+ }, dt = async () => {
166
+ U(null);
167
+ try {
168
+ if (I === 0) {
169
+ if (!z) return;
170
+ let e = H;
171
+ if (e) await K.mutateAsync({
172
+ path: { id: e },
173
+ body: g({
174
+ businessDetails: z,
175
+ carryConsent: x !== null
176
+ })
177
+ });
178
+ else {
179
+ let t = await Ke.mutateAsync({ body: se(z) });
180
+ e = t.id, He(e), t.clientSecret && Ye(t.clientSecret);
181
+ }
182
+ Q && ut(), L(1);
183
+ } else if (I === 1) {
184
+ if (!B || !z || !H) return;
185
+ await K.mutateAsync({
186
+ path: { id: H },
187
+ body: g({
188
+ businessDetails: z,
189
+ applicant: B,
190
+ carryConsent: x !== null
191
+ })
192
+ }), L(2);
193
+ } else if (I === 2) {
194
+ if (!V || !H) return;
195
+ await K.mutateAsync({
196
+ path: { id: H },
197
+ body: g({ businessOwners: V })
198
+ }), await lt(H);
199
+ }
200
+ } catch (e) {
201
+ let t = ee(e) ?? (e instanceof Error ? e.message : void 0) ?? M.genericRetryError;
202
+ U(t);
203
+ }
204
+ }, ft = Ce(Math.min(I, 2), M), pt = N.bankName?.trim() || M.fallbackBankName, mt = h(M.shellFdicDisclaimer, pt);
205
+ if (Y) {
206
+ let r = z?.companyLegalName ?? "", i = N.bankName?.trim() || M.fallbackBankName, a = Ge ?? "pending", o = a === "success", s = {
207
+ ...y.result,
208
+ ...M.result
209
+ }, c = /* @__PURE__ */ E(re, {
210
+ testIds: {
211
+ processing: p.resultProcessing,
212
+ dashboardButton: p.resultDashboardButton
213
+ },
214
+ status: a,
215
+ isLoading: W,
216
+ loadingMessage: s.loadingMessage,
217
+ headingLine1: o ? s.successHeadingLine1 : s.pendingHeadingLine1,
218
+ headingLine2: `${r}!`,
219
+ body: o ? s.successBody : s.pendingBody,
220
+ followUpEmail: B?.workEmail ?? "",
221
+ emailBoxLead: s.pendingEmailBoxLead,
222
+ navigateToDashboardLabel: s.navigateToDashboard,
223
+ bankLogoSrc: he,
224
+ bankLogoAlt: h(s.bankLogoAlt, i),
225
+ fdicDisclaimer: h(s.fdicDisclaimer, i),
226
+ onNavigateToDashboard: u
227
+ });
228
+ return A ? /* @__PURE__ */ E("div", {
229
+ className: "ttw:grid ttw:h-full ttw:w-full ttw:grid-rows-[1fr] ttw:place-items-center ttw:gap-0 ttw:overflow-auto ttw:bg-background",
230
+ children: c
231
+ }) : /* @__PURE__ */ E(e, {
232
+ open: Ae,
233
+ onOpenChange: F,
234
+ children: /* @__PURE__ */ ve(t, {
235
+ className: "ttw:grid ttw:max-h-[95vh] ttw:w-[720px] ttw:max-w-[calc(100vw-2rem)] ttw:grid-rows-[1fr] ttw:gap-0 ttw:overflow-hidden ttw:rounded-2xl ttw:p-0",
236
+ children: [/* @__PURE__ */ E(n, {
237
+ className: "ttw:sr-only",
238
+ children: M.modalTitle
239
+ }), c]
240
+ })
241
+ });
242
+ }
243
+ let ht = I === 2 ? M.submit : M.next, gt = ot === null || $;
244
+ return /* @__PURE__ */ E(_e, { children: /* @__PURE__ */ ve(c, {
245
+ open: Ae,
246
+ defaultOpen: je,
247
+ onOpenChange: F,
248
+ isFullScreenInline: A,
249
+ title: ft.title,
250
+ subtitle: ft.subtitle,
251
+ stepLabels: at,
252
+ activeStep: I,
253
+ disclaimerText: mt,
254
+ onBack: I === 0 ? ct : st,
255
+ onCancel: I > 0 ? ct : void 0,
256
+ onNext: dt,
257
+ showDismissButton: !1,
258
+ isNextDisabled: gt,
259
+ isNextLoading: $,
260
+ nextLabel: ht,
261
+ nextIcon: null,
262
+ errorMessage: Ue,
263
+ labels: {
264
+ backButton: I === 0 ? M.cancel : M.back,
265
+ cancelButton: M.cancel
266
+ },
267
+ testIds: {
268
+ root: p.shell,
269
+ dismiss: p.shellDismiss,
270
+ back: p.shellBack,
271
+ cancel: p.shellCancel,
272
+ next: p.shellNext,
273
+ scrollRegion: {
274
+ root: p.shellScrollRegion,
275
+ fade: p.shellScrollFade,
276
+ hint: p.shellScrollHint
277
+ }
278
+ },
279
+ children: [
280
+ I === 0 ? /* @__PURE__ */ E(ie, {
281
+ value: Pe,
282
+ onValueChange: Fe,
283
+ onSnapshotChange: ze,
284
+ naicsOptions: $e,
285
+ stateOptions: et,
286
+ isSubmitting: $,
287
+ labels: M.businessDetails,
288
+ bankName: pt,
289
+ termsHref: we,
290
+ privacyHref: Te,
291
+ electronicCommunicationHref: Ee,
292
+ patriotActHref: De
293
+ }, "business") : null,
294
+ I === 1 ? /* @__PURE__ */ E(ae, {
295
+ value: R,
296
+ onValueChange: Ie,
297
+ onSnapshotChange: Be,
298
+ stateOptions: tt,
299
+ isSubmitting: $,
300
+ labels: M.personalDetails
301
+ }, "personal") : null,
302
+ I === 2 ? /* @__PURE__ */ E(oe, {
303
+ owners: Q ? be : Le,
304
+ onOwnersChange: Re,
305
+ primaryOwnerName: `${R.firstName} ${R.lastName}`.trim(),
306
+ primaryOwnerPercentage: Q ? 100 : B?.ownsOver25Percent === !0 ? B.ownershipPercentage ?? 0 : 0,
307
+ stateOptions: nt,
308
+ onSnapshotChange: Ve,
309
+ isSubmitting: $,
310
+ labels: M.additionalOwners
311
+ }) : null
312
+ ]
313
+ }) });
314
+ }
315
+ function O({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: l, analytics: d, disclosuresAcceptance: ee, providerLabels: te, ...f }) {
316
+ return /* @__PURE__ */ E(u, {
317
+ baseUrl: e,
318
+ widgetToken: t,
319
+ organizationId: n,
320
+ configClient: r,
321
+ gatewayRouting: i,
322
+ linkComponent: a,
323
+ implementation: o,
324
+ uiFramework: s,
325
+ errorFallback: c,
326
+ onError: l,
327
+ analytics: d,
328
+ disclosuresAcceptance: ee,
329
+ providerLabels: te,
330
+ widgetName: ce,
331
+ children: /* @__PURE__ */ E(k, { ...f })
332
+ });
333
+ }
334
+ function k(e) {
335
+ let { initResponse: t } = f(), { client: n } = r(), i = t?.userId ?? null, [a, o] = T(i), [s, c] = T(0);
336
+ i !== a && (o(i), a !== null && i !== null && c((e) => e + 1));
337
+ let [l, u] = T(n);
338
+ return n !== l && (u(n), c((e) => e + 1)), /* @__PURE__ */ E(le, { children: /* @__PURE__ */ E(j, { ...e }, s) }, s);
339
+ }
340
+ var A = { canRender: !1 };
341
+ function j(e) {
342
+ let { setClientSecret: t } = ue(), { applicationId: n, clientSecret: r, isResolved: i } = x(), { application: a, isResolved: o, isUnavailable: s } = he(n, r);
343
+ C(() => {
344
+ r && t(r);
345
+ }, [r, t]);
346
+ let [c, l] = T(null);
347
+ if (C(() => {
348
+ if (!(c?.canRender === !0 || !i || !o)) {
349
+ if (s) {
350
+ l(A);
351
+ return;
352
+ }
353
+ if (a !== null && a.status !== void 0 && a.status !== ye) {
354
+ l(A);
355
+ return;
356
+ }
357
+ l({
358
+ canRender: !0,
359
+ applicationId: a === null ? null : n,
360
+ prefill: _(a)
361
+ });
362
+ }
363
+ }, [
364
+ c,
365
+ i,
366
+ o,
367
+ s,
368
+ a,
369
+ n
370
+ ]), c === null || !c.canRender) return null;
371
+ let { applicationId: u, prefill: d } = c;
372
+ return /* @__PURE__ */ E(D, {
373
+ ...e,
374
+ initialApplicationId: u,
375
+ initialBusinessDetails: {
376
+ ...e.initialBusinessDetails,
377
+ ...d?.businessDetails
378
+ },
379
+ initialPersonalDetails: {
380
+ ...e.initialPersonalDetails,
381
+ ...d?.personalDetails
382
+ },
383
+ initialAdditionalOwners: d?.additionalOwners ?? e.initialAdditionalOwners?.map(b)
384
+ });
385
+ }
386
+ //#endregion
387
+ export { O as BankAccountOnboardingWidget, O as default };
@@ -6,34 +6,34 @@ import { attachTransportInterceptors as c } from "./lib/transportInterceptors.js
6
6
  import "./lib/rest/client.gen.js";
7
7
  import { EmbedApiProvider as l, useEmbedApi as u } from "./lib/EmbedApiContext.js";
8
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, getCounterparts as P, getDepartment as F, getExternalBankAccountAccess as I, getLocation as L, getPayables as R, getPayablesId as z, getPayablesIdHistory as B, getPayablesIdLineItems as V, getPaymentRecords as H, getReceivables as U, getUsers as W, listDepartments as G, listLocations as K, listRoles as q, manageBankAccountAccess as J, patchCounterpartsId as Y, patchCounterpartsIdAddressesId as X, patchCounterpartsIdBankAccountsId as Z, patchMeasureUnitsId as Q, patchPayablesId as $, patchProductsId as ee, patchReceivablesId as te, patchTagsId as ne, postApprovalRequestsIdApprove as re, postApprovalRequestsIdReject as ie, postCounterparts as ae, postCounterpartsIdAddresses as oe, postCounterpartsIdBankAccounts as se, postCounterpartsIdBankAccountsIdMakeDefault as ce, postMeasureUnits as le, postPayables as ue, postPayablesIdApprovePaymentOperation as de, postPayablesIdAttachFile as fe, postPayablesIdCancel as pe, postPayablesIdDuplicatesIdConfirm as me, postPayablesIdDuplicatesIdDismiss as he, postPayablesIdMarkAsPaid as ge, postPayablesIdReject as _e, postPayablesIdReopen as ve, postPayablesIdSchedulePayment as ye, postPayablesIdSubmitForApproval as be, postPayablesIdValidate as xe, postPayablesUploadFromFile as Se, postPaymentIntentsIdCancel as Ce, postProducts as we, postReceivables as Te, postReceivablesIdAccept as Ee, postReceivablesIdCancel as De, postReceivablesIdClone as Oe, postReceivablesIdDecline as ke, postReceivablesIdIssue as Ae, postReceivablesIdMarkAsPaid as je, postReceivablesIdMarkAsPartiallyPaid as Me, postReceivablesIdMarkAsUncollectible as Ne, postReceivablesIdSend as Pe, postTags as Fe, putPayablesIdLineItems as Ie, putReceivablesIdLineItems as Le, updateDepartment as Re, updateLocation as ze, updateUser as Be } from "./lib/rest/sdk.gen.js";
10
- import { fetchWidgetInit as Ve } from "./lib/fetchWidgetInit.js";
11
- 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, getApprovalPoliciesOptions as at, getApprovalPoliciesQueryKey as ot, getApprovalRequestsOptions as st, getApprovalRequestsQueryKey as ct, getBankAccountAccessQueryKey as lt, getBankAccountOptions as ut, getBankAccountQueryKey as dt, getBankAccountTransactionsOptions as ft, getBankAccountTransactionsQueryKey as pt, getBankAccountTransfersOptions as mt, getBankAccountTransfersQueryKey as ht, getBankAccountsQueryKey as gt, getCounterpartsIdAddressesOptions as _t, getCounterpartsIdAddressesQueryKey as vt, getCounterpartsIdBankAccountsOptions as yt, getCounterpartsIdBankAccountsQueryKey as bt, getCounterpartsIdOptions as xt, getCounterpartsIdQueryKey as St, getCounterpartsOptions as Ct, getCounterpartsQueryKey as wt, getCreditCardByIdOptions as Tt, getCreditCardByIdQueryKey as Et, getCreditCardsOptions as Dt, getCreditCardsQueryKey as Ot, getDebitCardByIdOptions as kt, getDebitCardByIdQueryKey as At, getDebitCardCredentialsOptions as jt, getDebitCardsOptions as Mt, getDebitCardsQueryKey as Nt, getDepartmentOptions as Pt, getDepartmentQueryKey as Ft, getEntitiesIdSettingsOptions as It, getEntitiesIdSettingsQueryKey as Lt, getEntitiesMeOptions as Rt, getEntityUsersMyEntityOptions as zt, getEntityUsersOptions as Bt, getExternalBankAccountAccessQueryKey as Vt, getExternalBankAccountsOptions as Ht, getExternalBankAccountsQueryKey as Ut, getLedgerAccountsQueryKey as Wt, getLocationOptions as Gt, getLocationQueryKey as Kt, getMeasureUnitsOptions as qt, getMeasureUnitsQueryKey as Jt, getOrganizationOptions as Yt, getPayablesAnalyticsOptions as Xt, getPayablesAnalyticsQueryKey as Zt, getPayablesIdHistoryOptions as Qt, getPayablesIdHistoryQueryKey as $t, getPayablesIdLineItemsOptions as en, getPayablesIdLineItemsQueryKey as tn, getPayablesIdOptions as nn, getPayablesIdQueryKey as rn, getPayablesIdSuggestionsOptions as an, getPayablesOptions as on, getPayablesQueryKey as sn, getPaymentRecordsOptions as cn, getPaymentRecordsQueryKey as ln, getProductsIdOptions as un, getProductsIdQueryKey as dn, getProductsOptions as fn, getProductsQueryKey as pn, getReceiptsIdQueryKey as mn, getReceiptsOptions as hn, getReceiptsQueryKey as gn, getReceivablesIdHistoryOptions as _n, getReceivablesIdHistoryQueryKey as vn, getReceivablesIdMailsOptions as yn, getReceivablesIdMailsQueryKey as bn, getReceivablesIdOptions as xn, getReceivablesIdPdfLinkOptions as Sn, getReceivablesIdPdfLinkQueryKey as Cn, getReceivablesIdQueryKey as wn, getReceivablesOptions as Tn, getReceivablesQueryKey as En, getTagsOptions as Dn, getTagsQueryKey as On, getTransactionsIdQueryKey as kn, getTransactionsOptions as An, getTransactionsQueryKey as jn, getTransactionsValidationsOptions as Mn, getTransactionsValidationsQueryKey as Nn, getUsersOptions as Pn, getUsersQueryKey as Fn, getVelocityControlsQueryKey as In, grantBankAccountAccessMutation as Ln, grantExternalBankAccountAccessMutation as Rn, linkExternalBankAccountMutation as zn, listDepartmentsOptions as Bn, listDepartmentsQueryKey as Vn, listLocationsOptions as Hn, listLocationsQueryKey as Un, listRolesQueryKey as Wn, manageDebitCardAccessMutation as Gn, patchApprovalPoliciesIdMutation as Kn, patchEntitiesIdSettingsMutation as qn, patchLedgerAccountsIdMutation as Jn, patchReceiptsIdMutation as Yn, postApprovalPoliciesMutation as Xn, postLedgerAccountsMutation as Zn, putTransactionsValidationsMutation as Qn, setDebitCardLockStatusMutation as $n, submitApplicationMutation as er, unlinkExternalBankAccountMutation as tr, updateApplicationMutation as nr, updateBankAccountMutation as rr, updateDebitCardMutation as ir, updateExternalBankAccountMutation as ar, validateExternalBankAccountMutation as or, verifyDebitCardMutation as sr } from "./lib/rest/@tanstack/react-query.gen.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, putReceivablesIdLineItems as Re, updateDepartment as ze, updateLocation as Be, updateUser as Ve } from "./lib/rest/sdk.gen.js";
10
+ import { fetchWidgetInit as He } from "./lib/fetchWidgetInit.js";
11
+ import { hasAnyScope as Ue } from "./lib/hasAnyScope.js";
12
+ 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, deleteLedgerAccountsIdMutation as tt, deleteReceiptsIdMutation as nt, disableUserMutation as rt, getAnalyticsPayablesOptions as it, getAnalyticsReceivablesOptions as at, getApplicationStatusOptions as ot, getApprovalPoliciesOptions as st, getApprovalPoliciesQueryKey as ct, getApprovalRequestsOptions as lt, getApprovalRequestsQueryKey as ut, getBankAccountAccessQueryKey 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
13
  import "./lib/queryKeys.js";
14
- import { withAuthEpoch as cr } from "./lib/withAuthEpoch.js";
15
- import { useCurrentUserQuery as lr } from "./lib/useCurrentUserQuery.js";
14
+ import { withAuthEpoch as ur } from "./lib/withAuthEpoch.js";
15
+ import { useCurrentUserQuery as dr } from "./lib/useCurrentUserQuery.js";
16
16
  import "./lib/apiErrorStatus.js";
17
- import { isApiConflictError as ur } from "./lib/isApiConflictError.js";
18
- import { isApiForbiddenError as dr } from "./lib/isApiForbiddenError.js";
19
- import { isApiNotFoundError as fr } from "./lib/isApiNotFoundError.js";
20
- import { isApiUnprocessableError as pr } from "./lib/isApiUnprocessableError.js";
17
+ import { isApiConflictError as fr } from "./lib/isApiConflictError.js";
18
+ import { isApiForbiddenError as pr } from "./lib/isApiForbiddenError.js";
19
+ import { isApiNotFoundError as mr } from "./lib/isApiNotFoundError.js";
20
+ import { isApiUnprocessableError as hr } from "./lib/isApiUnprocessableError.js";
21
21
  import "./lib/isUserDataNotFoundError.js";
22
- import { useGetUserDataQuery as mr } from "./lib/useGetUserDataQuery.js";
23
- import { useUpsertUserDataMutation as hr } from "./lib/useUpsertUserDataMutation.js";
22
+ import { useGetUserDataQuery as gr } from "./lib/useGetUserDataQuery.js";
23
+ import { useUpsertUserDataMutation as _r } from "./lib/useUpsertUserDataMutation.js";
24
24
  import "./lib/rest/zod.gen.js";
25
- import { Scope as gr } from "./lib/scopes.js";
26
- import { getAllPagesNextPageParam as _r, getAllPagesNextPaginationTokenParam as vr, isAllPagesResolving as yr, useAutoFetchNextPage as br } from "./lib/allPages.js";
27
- import { useAllBankAccountsQuery as xr } from "./lib/bank-account/useAllBankAccountsQuery.js";
28
- import { useAllExternalBankAccountsQuery as Sr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
29
- import { useAllMerchantCategoryGroupsQuery as Cr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
30
- import { useAllLedgerAccountsQuery as wr, useLedgerAccountsQuery as Tr } from "./lib/reference-data/useLedgerAccountsQuery.js";
31
- import { usePaymentTermsQuery as Er } from "./lib/reference-data/usePaymentTermsQuery.js";
32
- import { useAllOrganizationRolesQuery as Dr } from "./lib/role/useAllOrganizationRolesQuery.js";
33
- import { useRolePermissionsQueries as Or } from "./lib/role/useRolePermissionsQueries.js";
34
- import { useAllOrganizationUsersQuery as kr } from "./lib/user/useAllOrganizationUsersQuery.js";
35
- import { useAcceptWidgetDisclosures as Ar } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
36
- import { useDisclosuresQuery as jr } from "./lib/disclosures/useDisclosuresQuery.js";
37
- import { OnboardingSuppressionReason as Mr } from "./lib/onboardingSuppressionReason.js";
38
- import { useOrganizationOnboardingSuppression as Nr } from "./lib/useOrganizationOnboardingSuppression.js";
39
- export { l as EmbedApiProvider, Mr as OnboardingSuppressionReason, gr 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, _r as getAllPagesNextPageParam, vr as getAllPagesNextPaginationTokenParam, rt as getAnalyticsPayablesOptions, it as getAnalyticsReceivablesOptions, A as getApplicationStatus, j as getApprovalPolicies, at as getApprovalPoliciesOptions, ot as getApprovalPoliciesQueryKey, M as getApprovalRequests, st as getApprovalRequestsOptions, ct as getApprovalRequestsQueryKey, N as getBankAccountAccess, lt as getBankAccountAccessQueryKey, ut as getBankAccountOptions, dt as getBankAccountQueryKey, ft as getBankAccountTransactionsOptions, pt as getBankAccountTransactionsQueryKey, mt as getBankAccountTransfersOptions, ht as getBankAccountTransfersQueryKey, gt as getBankAccountsQueryKey, P as getCounterparts, _t as getCounterpartsIdAddressesOptions, vt as getCounterpartsIdAddressesQueryKey, yt as getCounterpartsIdBankAccountsOptions, bt as getCounterpartsIdBankAccountsQueryKey, xt as getCounterpartsIdOptions, St as getCounterpartsIdQueryKey, Ct as getCounterpartsOptions, wt as getCounterpartsQueryKey, Tt as getCreditCardByIdOptions, Et as getCreditCardByIdQueryKey, Dt as getCreditCardsOptions, Ot as getCreditCardsQueryKey, kt as getDebitCardByIdOptions, At as getDebitCardByIdQueryKey, jt as getDebitCardCredentialsOptions, Mt as getDebitCardsOptions, Nt as getDebitCardsQueryKey, F as getDepartment, Pt as getDepartmentOptions, Ft as getDepartmentQueryKey, It as getEntitiesIdSettingsOptions, Lt as getEntitiesIdSettingsQueryKey, Rt as getEntitiesMeOptions, zt as getEntityUsersMyEntityOptions, Bt as getEntityUsersOptions, I as getExternalBankAccountAccess, Vt as getExternalBankAccountAccessQueryKey, Ht as getExternalBankAccountsOptions, Ut as getExternalBankAccountsQueryKey, Wt as getLedgerAccountsQueryKey, L as getLocation, Gt as getLocationOptions, Kt as getLocationQueryKey, qt as getMeasureUnitsOptions, Jt as getMeasureUnitsQueryKey, Yt as getOrganizationOptions, R as getPayables, Xt as getPayablesAnalyticsOptions, Zt as getPayablesAnalyticsQueryKey, z as getPayablesId, B as getPayablesIdHistory, Qt as getPayablesIdHistoryOptions, $t as getPayablesIdHistoryQueryKey, V as getPayablesIdLineItems, en as getPayablesIdLineItemsOptions, tn as getPayablesIdLineItemsQueryKey, nn as getPayablesIdOptions, rn as getPayablesIdQueryKey, an as getPayablesIdSuggestionsOptions, on as getPayablesOptions, sn as getPayablesQueryKey, H as getPaymentRecords, cn as getPaymentRecordsOptions, ln as getPaymentRecordsQueryKey, un as getProductsIdOptions, dn as getProductsIdQueryKey, fn as getProductsOptions, pn as getProductsQueryKey, mn as getReceiptsIdQueryKey, hn as getReceiptsOptions, gn as getReceiptsQueryKey, U as getReceivables, _n as getReceivablesIdHistoryOptions, vn as getReceivablesIdHistoryQueryKey, yn as getReceivablesIdMailsOptions, bn as getReceivablesIdMailsQueryKey, xn as getReceivablesIdOptions, Sn as getReceivablesIdPdfLinkOptions, Cn as getReceivablesIdPdfLinkQueryKey, wn as getReceivablesIdQueryKey, Tn as getReceivablesOptions, En as getReceivablesQueryKey, Dn as getTagsOptions, On as getTagsQueryKey, kn as getTransactionsIdQueryKey, An as getTransactionsOptions, jn as getTransactionsQueryKey, Mn as getTransactionsValidationsOptions, Nn as getTransactionsValidationsQueryKey, W as getUsers, Pn as getUsersOptions, Fn as getUsersQueryKey, In as getVelocityControlsQueryKey, Ln as grantBankAccountAccessMutation, Rn as grantExternalBankAccountAccessMutation, He as hasAnyScope, t as invalidateAllClients, yr as isAllPagesResolving, ur as isApiConflictError, dr as isApiForbiddenError, fr as isApiNotFoundError, pr as isApiUnprocessableError, zn as linkExternalBankAccountMutation, G as listDepartments, Bn as listDepartmentsOptions, Vn as listDepartmentsQueryKey, K as listLocations, Hn as listLocationsOptions, Un as listLocationsQueryKey, q as listRoles, Wn as listRolesQueryKey, J as manageBankAccountAccess, Gn as manageDebitCardAccessMutation, d as optionalOrganizationHeaders, f as organizationHeaders, Kn as patchApprovalPoliciesIdMutation, Y as patchCounterpartsId, X as patchCounterpartsIdAddressesId, Z as patchCounterpartsIdBankAccountsId, qn as patchEntitiesIdSettingsMutation, Jn as patchLedgerAccountsIdMutation, Q as patchMeasureUnitsId, $ as patchPayablesId, ee as patchProductsId, Yn as patchReceiptsIdMutation, te as patchReceivablesId, ne as patchTagsId, Xn as postApprovalPoliciesMutation, re as postApprovalRequestsIdApprove, ie as postApprovalRequestsIdReject, ae as postCounterparts, oe as postCounterpartsIdAddresses, se as postCounterpartsIdBankAccounts, ce as postCounterpartsIdBankAccountsIdMakeDefault, Zn as postLedgerAccountsMutation, le as postMeasureUnits, ue as postPayables, de as postPayablesIdApprovePaymentOperation, fe as postPayablesIdAttachFile, pe as postPayablesIdCancel, me as postPayablesIdDuplicatesIdConfirm, he as postPayablesIdDuplicatesIdDismiss, ge as postPayablesIdMarkAsPaid, _e as postPayablesIdReject, ve as postPayablesIdReopen, ye as postPayablesIdSchedulePayment, be as postPayablesIdSubmitForApproval, xe as postPayablesIdValidate, Se as postPayablesUploadFromFile, Ce as postPaymentIntentsIdCancel, we as postProducts, Te as postReceivables, Ee as postReceivablesIdAccept, De as postReceivablesIdCancel, Oe as postReceivablesIdClone, ke as postReceivablesIdDecline, Ae as postReceivablesIdIssue, je as postReceivablesIdMarkAsPaid, Me as postReceivablesIdMarkAsPartiallyPaid, Ne as postReceivablesIdMarkAsUncollectible, Pe as postReceivablesIdSend, Fe as postTags, Ie as putPayablesIdLineItems, Le as putReceivablesIdLineItems, Qn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, $n as setDebitCardLockStatusMutation, er as submitApplicationMutation, tr as unlinkExternalBankAccountMutation, a as unregisterQueryClient, nr as updateApplicationMutation, rr as updateBankAccountMutation, ir as updateDebitCardMutation, Re as updateDepartment, ar as updateExternalBankAccountMutation, ze as updateLocation, Be as updateUser, Ar as useAcceptWidgetDisclosures, xr as useAllBankAccountsQuery, Sr as useAllExternalBankAccountsQuery, wr as useAllLedgerAccountsQuery, Cr as useAllMerchantCategoryGroupsQuery, Dr as useAllOrganizationRolesQuery, kr as useAllOrganizationUsersQuery, br as useAutoFetchNextPage, lr as useCurrentUserQuery, jr as useDisclosuresQuery, u as useEmbedApi, mr as useGetUserDataQuery, Tr as useLedgerAccountsQuery, Nr as useOrganizationOnboardingSuppression, Er as usePaymentTermsQuery, Or as useRolePermissionsQueries, hr as useUpsertUserDataMutation, or as validateExternalBankAccountMutation, sr as verifyDebitCardMutation, cr as withAuthEpoch };
25
+ import { Scope as vr } from "./lib/scopes.js";
26
+ import { getAllPagesNextPageParam as yr, getAllPagesNextPaginationTokenParam as br, isAllPagesResolving as xr, useAutoFetchNextPage as Sr } from "./lib/allPages.js";
27
+ import { useAllBankAccountsQuery as Cr } from "./lib/bank-account/useAllBankAccountsQuery.js";
28
+ import { useAllExternalBankAccountsQuery as wr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
29
+ import { useAllMerchantCategoryGroupsQuery as Tr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
30
+ import { useAllLedgerAccountsQuery as Er, useLedgerAccountsQuery as Dr } from "./lib/reference-data/useLedgerAccountsQuery.js";
31
+ import { usePaymentTermsQuery as Or } from "./lib/reference-data/usePaymentTermsQuery.js";
32
+ import { useAllOrganizationRolesQuery as kr } from "./lib/role/useAllOrganizationRolesQuery.js";
33
+ import { useRolePermissionsQueries as Ar } from "./lib/role/useRolePermissionsQueries.js";
34
+ import { useAllOrganizationUsersQuery as jr } from "./lib/user/useAllOrganizationUsersQuery.js";
35
+ import { useAcceptWidgetDisclosures as Mr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
36
+ import { useDisclosuresQuery as Nr } from "./lib/disclosures/useDisclosuresQuery.js";
37
+ import { OnboardingSuppressionReason as Pr } from "./lib/onboardingSuppressionReason.js";
38
+ import { useOrganizationOnboardingSuppression as Fr } from "./lib/useOrganizationOnboardingSuppression.js";
39
+ export { l as EmbedApiProvider, Pr as OnboardingSuppressionReason, vr as Scope, We as activateCreditCardMutation, Ge as activateDebitCardMutation, c as attachTransportInterceptors, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ke as connectExternalBankAccountMutation, qe as createAchMoneyMovementMutation, Je as createApplicationMutation, Ye as createBankAccountMutation, Xe as createBookTransferMutation, Ze as createCheckDepositMutation, Qe as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, $e as createVelocityControlMutation, y as deactivateDepartment, b as deactivateLocation, et as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, tt as deleteLedgerAccountsIdMutation, C as deleteMeasureUnitsId, w as deletePayablesId, T as deletePayablesIdFile, E as deleteProductsId, nt as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, rt as disableUserMutation, k as downloadBankAccountTransactions, He as fetchWidgetInit, yr as getAllPagesNextPageParam, br as getAllPagesNextPaginationTokenParam, it as getAnalyticsPayablesOptions, at as getAnalyticsReceivablesOptions, A as getApplicationStatus, ot as getApplicationStatusOptions, j as getApprovalPolicies, st as getApprovalPoliciesOptions, ct as getApprovalPoliciesQueryKey, M as getApprovalRequests, lt as getApprovalRequestsOptions, ut as getApprovalRequestsQueryKey, N as getBankAccountAccess, dt as getBankAccountAccessQueryKey, P as getBankAccountApplication, 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, Ue as hasAnyScope, t 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, d as optionalOrganizationHeaders, f 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, Re as putReceivablesIdLineItems, er as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, tr as setDebitCardLockStatusMutation, nr as submitApplicationMutation, rr as unlinkExternalBankAccountMutation, a as unregisterQueryClient, ir as updateApplicationMutation, ar as updateBankAccountMutation, or as updateDebitCardMutation, ze as updateDepartment, sr as updateExternalBankAccountMutation, Be as updateLocation, Ve 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, u 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 };