@tesouro/embedded-components-react 0.5.272 → 0.5.274

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 (33) hide show
  1. package/README.md +4 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/lib/ReceivablesWidget.d.ts +1 -0
  4. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +10 -9
  5. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +173 -44
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +42 -94
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +91 -76
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +67 -173
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +186 -17
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +27 -0
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +16 -62
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +66 -28
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +28 -34
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +24 -168
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +9 -9
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +47 -44
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +125 -122
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +50 -47
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +3 -3
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +1 -1
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +3 -0
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +54 -0
  30. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
  31. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +83 -71
  32. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  33. package/package.json +7 -2
@@ -11,56 +11,59 @@ import { useCreateProductMutation as i } from "../../../../../shared/product-cat
11
11
  import { useMeasureUnits as a } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
12
12
  import "../../../../../shared/product-catalog/feature/dist/index.js";
13
13
  import { getInlineItemPriceLabel as o, getIssueAttachments as s, getIssueSubject as c, getProductsStepTitle as l, inlineItemToProductRequest as u } from "./actionsModal.js";
14
- import { useSendReceivableEmailMutation as d } from "../../../../data-access/dist/index8.js";
15
- import { useReceivableQuery as f } from "../../../../data-access/dist/index12.js";
14
+ import { useReceivableQuery as d } from "../../../../data-access/dist/index13.js";
16
15
  import "../../../../data-access/dist/index.js";
16
+ import { useSendReceivableWithPaymentLink as f } from "./useSendReceivableWithPaymentLink.js";
17
17
  import { useCallback as p, useMemo as m, useState as h } from "react";
18
18
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js
19
19
  function g({ messages: g }) {
20
- let [_, v] = h(), [y, b] = h("products"), [x, S] = h(), [C, w] = h(), [T, E] = h(""), [D, O] = h(() => /* @__PURE__ */ new Set()), [k, A] = h(!1), j = !!_ && y === "issue", M = f(_?.receivableId, { enabled: j }), N = r(j ? _?.counterpartId : void 0), { unitNamesById: P } = a({ enabled: !!_?.inlineItems.length }), F = d(), I = i(), L = N.data?.id === _?.counterpartId ? N.data : void 0, R = L ? n(L) : "", z = L ? t(L) : "", B = M.data?.id === _?.receivableId ? M.data : void 0, V = C ?? c(B?.document_id, R, g), H = p((e) => {
20
+ let [_, v] = h(), [y, b] = h("products"), [x, S] = h(), [C, w] = h(), [T, E] = h(""), [D, O] = h(() => /* @__PURE__ */ new Set()), [k, A] = h(!1), j = !!_ && y === "issue", M = d(_?.receivableId, { enabled: j }), N = r(j ? _?.counterpartId : void 0), { unitNamesById: P } = a({ enabled: !!_?.inlineItems.length }), { send: F, isPending: I } = f({
21
+ messages: g,
22
+ documentType: j ? _?.documentType : void 0
23
+ }), L = i(), R = N.data?.id === _?.counterpartId ? N.data : void 0, z = R ? n(R) : "", B = R ? t(R) : "", V = M.data?.id === _?.receivableId ? M.data : void 0, H = C ?? c(V?.document_id, z, g), U = p((e) => {
21
24
  v(e), b(e.showEmailStep ? "issue" : "products"), S(void 0), w(void 0), E(""), O(new Set(e.inlineItems.map((e) => e.key)));
22
- }, []), U = p(() => v(void 0), []), W = p((e) => {
23
- S(e), _?.inlineItems.length ? b("products") : U();
24
- }, [U, _]), G = p(() => {
25
- y === "issue" ? W("issued") : U();
25
+ }, []), W = p(() => v(void 0), []), G = p((e) => {
26
+ S(e), _?.inlineItems.length ? b("products") : W();
27
+ }, [W, _]), K = p(() => {
28
+ y === "issue" ? G("issued") : W();
26
29
  }, [
27
- U,
28
30
  W,
31
+ G,
29
32
  y
30
- ]), K = p(async () => {
33
+ ]), q = p(async () => {
31
34
  if (_) try {
32
- await F.mutateAsync({
35
+ await F({
33
36
  path: { receivable_id: _.receivableId },
34
37
  body: {
35
- subject_text: V,
38
+ subject_text: H,
36
39
  body_text: T,
37
- recipients: z ? { to: [z] } : void 0
40
+ recipients: B ? { to: [B] } : void 0
38
41
  }
39
- }), e.success(g.actionsSendSucceeded), W("sent");
42
+ }), e.success(g.actionsSendSucceeded), G("sent");
40
43
  } catch {
41
44
  e.error(g.actionsSendFailed);
42
45
  }
43
46
  }, [
44
- z,
47
+ B,
45
48
  T,
46
49
  g,
47
- W,
48
- V,
50
+ G,
51
+ H,
49
52
  F,
50
53
  _
51
- ]), q = _?.inlineItems ?? [], J = D.size > 0, Y = p((e) => {
54
+ ]), J = _?.inlineItems ?? [], Y = D.size > 0, X = p((e) => {
52
55
  O(new Set(e ? (_?.inlineItems ?? []).map((e) => e.key) : []));
53
- }, [_]), X = p(() => Y(!J), [Y, J]), Z = p((e) => {
56
+ }, [_]), Z = p(() => X(!Y), [X, Y]), Q = p((e) => {
54
57
  O((t) => {
55
58
  let n = new Set(t);
56
59
  return n.has(e) ? n.delete(e) : n.add(e), n;
57
60
  });
58
- }, []), Q = p(async () => {
61
+ }, []), $ = p(async () => {
59
62
  let t = (_?.inlineItems ?? []).filter((e) => D.has(e.key));
60
63
  if (t.length) {
61
64
  A(!0);
62
65
  try {
63
- await Promise.all(t.map((e) => I.mutateAsync({ body: u(e) }))), e.success(g.actionsProductsSaved), U();
66
+ await Promise.all(t.map((e) => L.mutateAsync({ body: u(e) }))), e.success(g.actionsProductsSaved), W();
64
67
  } catch {
65
68
  e.error(g.actionsProductsSaveFailed);
66
69
  } finally {
@@ -68,65 +71,65 @@ function g({ messages: g }) {
68
71
  }
69
72
  }
70
73
  }, [
71
- U,
72
- I,
74
+ W,
75
+ L,
73
76
  g,
74
77
  D,
75
78
  _
76
- ]), $ = m(() => {
79
+ ]), ee = m(() => {
77
80
  if (_) return y === "issue" ? {
78
81
  step: "issue",
79
- title: g.actionsIssueTitle.replace("{name}", R),
80
- recipient: z ? `${R} <${z}>` : R,
81
- subject: V,
82
+ title: g.actionsIssueTitle.replace("{name}", z),
83
+ recipient: B ? `${z} <${B}>` : z,
84
+ subject: H,
82
85
  message: T,
83
- attachments: s(B),
84
- sendDisabled: F.isPending || !V.trim() || !T.trim(),
85
- inProgress: F.isPending
86
+ attachments: s(V),
87
+ sendDisabled: I || !H.trim() || !T.trim(),
88
+ inProgress: I
86
89
  } : {
87
90
  step: "products",
88
91
  title: l(_.action, x, g),
89
- items: q.map((e) => ({
92
+ items: J.map((e) => ({
90
93
  key: e.key,
91
94
  name: e.name,
92
95
  priceLabel: o(e, P),
93
96
  selected: D.has(e.key)
94
97
  })),
95
- allSelected: q.length > 0 && D.size === q.length,
96
- toggleAllLabel: J ? g.actionsDeselectAll : g.actionsSelectAll,
97
- saveDisabled: !J || k,
98
+ allSelected: J.length > 0 && D.size === J.length,
99
+ toggleAllLabel: Y ? g.actionsDeselectAll : g.actionsSelectAll,
100
+ saveDisabled: !Y || k,
98
101
  inProgress: k
99
102
  };
100
103
  }, [
104
+ B,
101
105
  z,
102
- R,
103
106
  k,
104
107
  x,
105
- q,
108
+ J,
106
109
  T,
107
110
  g,
108
- B,
109
111
  V,
112
+ H,
110
113
  D,
111
- F.isPending,
112
- J,
114
+ I,
115
+ Y,
113
116
  y,
114
117
  _,
115
118
  P
116
119
  ]);
117
120
  return {
118
121
  isOpen: !!_,
119
- view: $,
120
- open: H,
121
- close: U,
122
- skip: G,
122
+ view: ee,
123
+ open: U,
124
+ close: W,
125
+ skip: K,
123
126
  changeSubject: w,
124
127
  changeMessage: E,
125
- send: K,
126
- toggleItem: Z,
127
- toggleAll: X,
128
- setAllSelected: Y,
129
- saveItems: Q
128
+ send: q,
129
+ toggleItem: Q,
130
+ toggleAll: Z,
131
+ setAllSelected: X,
132
+ saveItems: $
130
133
  };
131
134
  }
132
135
  //#endregion
@@ -3,7 +3,7 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { toFileArray as e, validateAttachmentFile as t } from "./attachments.js";
6
- import { useDeleteReceivableAttachmentMutation as n, useUploadReceivableAttachmentMutation as r } from "../../../../data-access/dist/index6.js";
6
+ import { useDeleteReceivableAttachmentMutation as n, useUploadReceivableAttachmentMutation as r } from "../../../../data-access/dist/index7.js";
7
7
  import "../../../../data-access/dist/index.js";
8
8
  import { useCallback as i, useEffect as a, useRef as o, useState as s } from "react";
9
9
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js
@@ -13,9 +13,9 @@ import { RECEIVABLE_DETAILS_SECTION as a } from "../../../../ui/dist/index25.js"
13
13
  import "../../../../ui/dist/index.js";
14
14
  import { useAllReceivableHistoryQuery as ee } from "../../../../data-access/dist/index3.js";
15
15
  import { usePaymentAccountsQuery as o } from "../../../../data-access/dist/index5.js";
16
- import { useReceivablePaymentRecordsQuery as s } from "../../../../data-access/dist/index10.js";
17
- import { useReceivablePdfLinkQuery as te, useReceivableQuery as ne, useReceivablesByIdQueries as re } from "../../../../data-access/dist/index12.js";
18
- import { useOverdueRemindersQuery as ie, usePaymentRemindersQuery as c, useRecurrenceQuery as l } from "../../../../data-access/dist/index13.js";
16
+ import { useReceivablePaymentRecordsQuery as s } from "../../../../data-access/dist/index11.js";
17
+ import { useReceivablePdfLinkQuery as te, useReceivableQuery as ne, useReceivablesByIdQueries as re } from "../../../../data-access/dist/index13.js";
18
+ import { useOverdueRemindersQuery as ie, usePaymentRemindersQuery as c, useRecurrenceQuery as l } from "../../../../data-access/dist/index14.js";
19
19
  import "../../../../data-access/dist/index.js";
20
20
  import { canRecordPayments as u } from "./paymentRecord.js";
21
21
  import { buildReceivableAuditHistoryLabels as ae } from "./auditHistory/labels.js";
@@ -24,8 +24,8 @@ import { convertDiscountInput as we, decorateDiscountInput as Te, discountInputT
24
24
  import { buildFormTotalsView as Oe, calculateFormTotals as ke, validateDiscount as Ae, validateInvoiceTotals as je } from "./totals.js";
25
25
  import { createEmptyReceivableFormValues as Me, hasReceivableFormErrors as Ne, receivableFormValuesToCreatePayload as Pe, receivableFormValuesToLineItemChanges as Fe, receivableFormValuesToUpdatePayload as Ie, receivableToFormValues as Le, resolveCounterpartAddresses as Re, submittedLineItemRows as ze, validateReceivableForm as Be } from "./helpers.js";
26
26
  import { getIssueReminderBlocker as Ve, shouldShowRemindersInitially as He } from "./reminders.js";
27
- import { useCreateReceivableMutation as Ue, useIssueReceivableMutation as We, useUpdateReceivableMutation as Ge } from "../../../../data-access/dist/index9.js";
28
- import { useCreateRecurrenceMutation as Ke, useRecurrenceQuery as qe, useUpdateRecurrenceMutation as Je } from "../../../../data-access/dist/index13.js";
27
+ import { useCreateReceivableMutation as Ue, useIssueReceivableMutation as We, useUpdateReceivableMutation as Ge } from "../../../../data-access/dist/index10.js";
28
+ import { useCreateRecurrenceMutation as Ke, useRecurrenceQuery as qe, useUpdateRecurrenceMutation as Je } from "../../../../data-access/dist/index14.js";
29
29
  import "../../../../data-access/dist/index.js";
30
30
  import { useReceivableIssuePreflight as Ye } from "./useReceivableIssuePreflight.js";
31
31
  import { UNSUBMITTED_PAYLOAD_VARIANTS as Xe, apiValidationErrorsToFormErrors as Ze, getApiErrorMessage as Qe, parseApiValidationErrors as $e } from "./apiValidationErrors.js";
@@ -6,7 +6,7 @@ import { useMyEntityQuery as e } from "../../../../../shared/data-access/dist/li
6
6
  import "../../../../../shared/data-access/dist/index.js";
7
7
  import { useCounterpartQuery as t } from "../../../../../shared/counterpart-management/data-access/dist/index3.js";
8
8
  import "../../../../../shared/counterpart-management/feature/dist/index.js";
9
- import { useReceivableRequiredFieldsQuery as n } from "../../../../data-access/dist/index12.js";
9
+ import { useReceivableRequiredFieldsQuery as n } from "../../../../data-access/dist/index13.js";
10
10
  import "../../../../data-access/dist/index.js";
11
11
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js
12
12
  function r({ counterpartId: r, billingAddressId: i, billingCountry: a }) {
@@ -11,7 +11,7 @@ import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/Wid
11
11
  import "../../../../../shared/feature/dist/index.js";
12
12
  import { getCurrencySymbol as i } from "./lineItems.js";
13
13
  import { formatMoney as a } from "./helpers.js";
14
- import { useCreateReceivablePaymentRecordMutation as o } from "../../../../data-access/dist/index11.js";
14
+ import { useCreateReceivablePaymentRecordMutation as o } from "../../../../data-access/dist/index12.js";
15
15
  import "../../../../data-access/dist/index.js";
16
16
  import { amountDueInputValue as s, buildPaymentRecordPayload as c, buildPaymentReviewView as l, defaultPaymentRecordValues as u, hasPaymentRecordErrors as d, validatePaymentRecordValues as f } from "./paymentRecord.js";
17
17
  import { useCallback as p, useState as m } from "react";
@@ -9,7 +9,7 @@ import "../../../../../shared/ui/dist/index.js";
9
9
  import { useWidgetConfig as r } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
10
  import "../../../../../shared/feature/dist/index.js";
11
11
  import { areOverdueTermsValid as i, buildOverdueReminderPayload as a, buildPaymentReminderPayload as o, buildRemindersView as s, canCreateReminders as c, getImpliedDueDate as l, isBeforeDueDaysValid as u, sanitizeReminderDays as d } from "./reminders.js";
12
- import { useCreateOverdueReminderMutation as f, useCreatePaymentReminderMutation as p, useOverdueRemindersQuery as m, usePaymentRemindersQuery as h } from "../../../../data-access/dist/index13.js";
12
+ import { useCreateOverdueReminderMutation as f, useCreatePaymentReminderMutation as p, useOverdueRemindersQuery as m, usePaymentRemindersQuery as h } from "../../../../data-access/dist/index14.js";
13
13
  import "../../../../data-access/dist/index.js";
14
14
  import { useCallback as g, useMemo as _, useState as v } from "react";
15
15
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { useReceivablesAnalyticsQuery as e } from "../../../../data-access/dist/index14.js";
5
+ import { useReceivablesAnalyticsQuery as e } from "../../../../data-access/dist/index15.js";
6
6
  import "../../../../data-access/dist/index.js";
7
7
  import { buildReceivableStatusCardsView as t } from "./statusCards.js";
8
8
  import { useMemo as n } from "react";
@@ -3,7 +3,7 @@
3
3
  "use client";
4
4
  "use client";
5
5
  import { buildReceivableRows as e } from "./helpers.js";
6
- import { useReceivablesQuery as t } from "../../../../data-access/dist/index12.js";
6
+ import { useReceivablesQuery as t } from "../../../../data-access/dist/index13.js";
7
7
  import "../../../../data-access/dist/index.js";
8
8
  import { useInvoicesFilter as n } from "./useInvoicesFilter.js";
9
9
  import { useReceivableCustomerNames as r } from "./useReceivableCustomerNames.js";
@@ -44,6 +44,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
44
44
  r.openDetails && (N(e), F(!0)), r.actionsModal && W({
45
45
  action: n.mode,
46
46
  receivableId: e,
47
+ documentType: t,
47
48
  counterpartId: n.counterpartId,
48
49
  inlineItems: n.inlineItems,
49
50
  showEmailStep: r.actionsModal.showEmailStep
@@ -71,6 +72,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
71
72
  (i || n.inlineItems.length !== 0) && W({
72
73
  action: r || n.mode === "recurrence" ? n.mode : "update",
73
74
  receivableId: e,
75
+ documentType: t,
74
76
  counterpartId: n.counterpartId,
75
77
  inlineItems: n.inlineItems,
76
78
  showEmailStep: i
@@ -106,6 +108,7 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: he, embeddedBankNa
106
108
  onIssuedForSend: (e, t) => W({
107
109
  action: "issue",
108
110
  receivableId: e,
111
+ documentType: "invoice",
109
112
  counterpartId: t,
110
113
  inlineItems: [],
111
114
  showEmailStep: !0
@@ -0,0 +1,54 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { toast as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
+ import { hasAnyScope as t } from "../../../../../shared/data-access/dist/lib/hasAnyScope.js";
7
+ import { useMyEntityQuery as n } from "../../../../../shared/data-access/dist/lib/useMyEntityQuery.js";
8
+ import { Scope as r } from "../../../../../shared/data-access/dist/lib/scopes.js";
9
+ import "../../../../../shared/data-access/dist/index.js";
10
+ import "../../../../../shared/ui/dist/index.js";
11
+ import { useWidgetConfig as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
12
+ import "../../../../../shared/feature/dist/index.js";
13
+ import { useEntityPaymentMethodsQuery as a } from "../../../../data-access/dist/index4.js";
14
+ import { useCreatePaymentLinkMutation as o } from "../../../../data-access/dist/index6.js";
15
+ import { useSendReceivableEmailMutation as s } from "../../../../data-access/dist/index9.js";
16
+ import "../../../../data-access/dist/index.js";
17
+ import { getReceivePaymentMethods as c } from "./preview.js";
18
+ import { useCallback as l } from "react";
19
+ //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js
20
+ function u({ messages: u, documentType: d }) {
21
+ let { initResponse: f } = i(), p = d === "invoice" && t(f?.scopes, [r.PaymentLinkWrite]), m = n({ enabled: p }), h = m.data?.id, g = a({
22
+ entityId: h,
23
+ enabled: p
24
+ }), _ = o(), v = s(), y = g.data?.data, b = m.error ?? g.error, x = _.mutateAsync, S = v.mutateAsync, C = u.actionsSendWithoutPaymentLink;
25
+ return {
26
+ send: l(async (t) => {
27
+ if (!p) return S(t);
28
+ if (b || !h || !y) throw b ?? /* @__PURE__ */ Error();
29
+ let n = c(y);
30
+ return n.length === 0 ? e.error(C) : await x({ body: {
31
+ recipient: {
32
+ id: h,
33
+ type: "entity"
34
+ },
35
+ payment_methods: n.map((e) => e.type),
36
+ object: {
37
+ id: t.path.receivable_id,
38
+ type: "receivable"
39
+ }
40
+ } }), S(t);
41
+ }, [
42
+ p,
43
+ x,
44
+ h,
45
+ b,
46
+ y,
47
+ S,
48
+ C
49
+ ]),
50
+ isPending: p && (m.isFetching || g.isFetching) || _.isPending || v.isPending
51
+ };
52
+ }
53
+ //#endregion
54
+ export { u as useSendReceivableWithPaymentLink };
@@ -1,47 +1,47 @@
1
1
  import "./lib/finopsApiVersion.js";
2
2
  import "./lib/rest/client.gen.js";
3
- import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getReceivablesIdHistory as I, getUsers as L, listDepartments as R, listLocations as z, listRoles as B, manageBankAccountAccess as V, manageDebitCardAccess as H, patchCounterpartsId as U, patchCounterpartsIdAddressesId as W, patchCounterpartsIdBankAccountsId as G, patchEntitiesIdSettings as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchRecurrencesId as Z, patchTransactionsId as Q, postApprovalRequestsIdApprove as $, postApprovalRequestsIdReject as ee, postBankDetails as te, postCounterparts as ne, postCounterpartsIdAddresses as re, postCounterpartsIdBankAccounts as ie, postCounterpartsIdBankAccountsIdMakeDefault as ae, postFiles as oe, postMeasureUnits as se, postOverdueReminders as ce, postPayables as le, postPayablesIdApprovePaymentOperation as ue, postPayablesIdAttachFile as de, postPayablesIdCancel as fe, postPayablesIdDuplicatesIdConfirm as pe, postPayablesIdDuplicatesIdDismiss as me, postPayablesIdMarkAsPaid as he, postPayablesIdReject as ge, postPayablesIdReopen as _e, postPayablesIdSchedulePayment as ve, postPayablesIdSubmitForApproval as ye, postPayablesIdValidate as be, postPayablesUploadFromFile as xe, postPaymentIntentsIdCancel as Se, postPaymentRecords as Ce, postPaymentReminders 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, postReceivablesIdMarkAsUncollectible as Ne, postReceivablesIdSend as Pe, postRecurrences as Fe, postRecurrencesIdCancel as Ie, postRecurrencesIdPause as Le, postRecurrencesIdResume as Re, postTransactionsIdApprove as ze, postTransactionsIdReject as Be, postTransactionsIdReopen as Ve, postTransactionsIdSubmit as He, putEntitiesIdLogo as Ue, putPayablesIdLineItems as We, updateDepartment as Ge, updateLocation as Ke, updateUser as qe } from "./lib/rest/sdk.gen.js";
4
- import { activateCreditCardMutation as Je, activateDebitCardMutation as Ye, connectExternalBankAccountMutation as Xe, createAchMoneyMovementMutation as Ze, createApplicationMutation as Qe, createBankAccountMutation as $e, createBookTransferMutation as et, createCheckDepositMutation as tt, createDebitCardMutation as nt, createVelocityControlMutation as rt, deleteApprovalPoliciesIdMutation as it, deleteBankAccountApplicationMutation as at, deleteLedgerAccountsIdMutation as ot, deleteReceiptsIdMutation as st, disableUserMutation as ct, getAnalyticsPayablesOptions as lt, getAnalyticsPayablesQueryKey as ut, getAnalyticsReceiptsOptions as dt, getAnalyticsReceiptsQueryKey as ft, getAnalyticsReceivablesOptions as pt, getAnalyticsReceivablesQueryKey as mt, getAnalyticsTransactionsOptions as ht, getAnalyticsTransactionsQueryKey as gt, getApprovalPoliciesOptions as _t, getApprovalPoliciesQueryKey as vt, getApprovalRequestsOptions as yt, getApprovalRequestsQueryKey as bt, getBankAccountAccessQueryKey as xt, getBankAccountApplicationOptions as St, getBankAccountOptions as Ct, getBankAccountQueryKey as wt, getBankAccountStatementsOptions as Tt, getBankAccountTransactionsOptions as Et, getBankAccountTransactionsQueryKey as Dt, getBankAccountTransfersOptions as Ot, getBankAccountTransfersQueryKey as kt, getBankAccountsQueryKey as At, getBankDetailsIdOptions as jt, getBankDetailsOptions as Mt, getBankDetailsQueryKey as Nt, getCounterpartsIdAddressesOptions as Pt, getCounterpartsIdAddressesQueryKey as Ft, getCounterpartsIdBankAccountsOptions as It, getCounterpartsIdBankAccountsQueryKey as Lt, getCounterpartsIdOptions as Rt, getCounterpartsIdQueryKey as zt, getCounterpartsOptions as Bt, getCounterpartsQueryKey as Vt, getCreditCardByIdOptions as Ht, getCreditCardByIdQueryKey as Ut, getCreditCardsOptions as Wt, getCreditCardsQueryKey as Gt, getDebitCardByIdOptions as Kt, getDebitCardByIdQueryKey as qt, getDebitCardCredentialsOptions as Jt, getDebitCardsOptions as Yt, getDebitCardsQueryKey as Xt, getDepartmentOptions as Zt, getDepartmentQueryKey as Qt, getDepositableBankAccountsOptions as $t, getDocumentsIdNextNumbersOptions as en, getDocumentsIdNextNumbersQueryKey as tn, getEntitiesIdPaymentMethodsOptions as nn, getEntitiesIdSettingsOptions as rn, getEntitiesIdSettingsQueryKey as an, getEntityUsersOptions as on, getExternalBankAccountAccessQueryKey as sn, getExternalBankAccountOptions as cn, getExternalBankAccountsOptions as ln, getExternalBankAccountsQueryKey as un, getFilesQueryKey as dn, getLedgerAccountsQueryKey as fn, getLocationOptions as pn, getLocationQueryKey as mn, getMeOptions as hn, getMeasureUnitsOptions as gn, getMeasureUnitsQueryKey as _n, getOrganizationOptions as vn, getOverdueRemindersOptions as yn, getOverdueRemindersQueryKey as bn, getPayablesIdHistoryOptions as xn, getPayablesIdHistoryQueryKey as Sn, getPayablesIdLineItemsOptions as Cn, getPayablesIdLineItemsQueryKey as wn, getPayablesIdOptions as Tn, getPayablesIdQueryKey as En, getPayablesIdSuggestionsOptions as Dn, getPayablesOptions as On, getPayablesQueryKey as kn, getPaymentRecordsOptions as An, getPaymentRecordsQueryKey as jn, getPaymentRemindersOptions as Mn, getPaymentRemindersQueryKey as Nn, getProductsIdOptions as Pn, getProductsIdQueryKey as Fn, getProductsOptions as In, getProductsQueryKey as Ln, getReceiptsIdQueryKey as Rn, getReceiptsOptions as zn, getReceiptsQueryKey as Bn, getReceivablesIdHistoryQueryKey as Vn, getReceivablesIdMailsQueryKey as Hn, getReceivablesIdOptions as Un, getReceivablesIdPdfLinkOptions as Wn, getReceivablesIdPdfLinkQueryKey as Gn, getReceivablesIdQueryKey as Kn, getReceivablesOptions as qn, getReceivablesQueryKey as Jn, getReceivablesRequiredFieldsOptions as Yn, getRecurrencesIdOptions as Xn, getRecurrencesIdQueryKey as Zn, getRecurrencesQueryKey as Qn, getTransactionsIdExpenseHistoryOptions as $n, getTransactionsIdExpenseHistoryQueryKey as er, getTransactionsIdOptions as tr, getTransactionsIdQueryKey as nr, getTransactionsOptions as rr, getTransactionsQueryKey as ir, getTransactionsValidationsOptions as ar, getTransactionsValidationsQueryKey as or, getUsersOptions as sr, getUsersQueryKey as cr, getVelocityControlsQueryKey as lr, grantBankAccountAccessMutation as ur, grantExternalBankAccountAccessMutation as dr, linkExternalBankAccountMutation as fr, listDepartmentsOptions as pr, listDepartmentsQueryKey as mr, listLocationsOptions as hr, listLocationsQueryKey as gr, listRolesQueryKey as _r, manageDebitCardAccessMutation as vr, patchApprovalPoliciesIdMutation as yr, patchLedgerAccountsIdMutation as br, patchReceiptsIdMutation as xr, postApprovalPoliciesMutation as Sr, postLedgerAccountsMutation as Cr, postReceiptsUploadFromFileMutation as wr, putTransactionsValidationsMutation as Tr, setDebitCardLockStatusMutation as Er, submitApplicationMutation as Dr, unlinkExternalBankAccountMutation as Or, updateApplicationMutation as kr, updateBankAccountMutation as Ar, updateDebitCardMutation as jr, updateExternalBankAccountMutation as Mr, validateExternalBankAccountMutation as Nr, verifyDebitCardMutation as Pr } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { OrganizationStatus as Fr, isOrganizationOnItsWay as Ir } from "./lib/organizationStatus.js";
6
- import { withAuthEpoch as Lr, withAuthEpochInfinite as Rr } from "./lib/withAuthEpoch.js";
7
- import { applicationStatusInvalidationKey as zr, applicationStatusQueryOptions as Br } from "./lib/applicationStatusQueryOptions.js";
8
- import { createClientSecretInstaller as Vr } from "./lib/scopedClientSecret.js";
9
- import { cancelAllClients as Hr, invalidateAllClients as Ur, registerQueryClient as Wr, removeInactiveFromAllClients as Gr, resetAllClients as Kr, setAllClientsQueriesData as qr, unregisterQueryClient as Jr } from "./lib/clientRegistry.js";
10
- import { cloneEmbeddedClient as Yr, createEmbeddedClient as Xr } from "./lib/createEmbeddedClient.js";
3
+ import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getReceivablesIdHistory as I, getUsers as L, listDepartments as R, listLocations as z, listRoles as B, manageBankAccountAccess as V, manageDebitCardAccess as H, patchCounterpartsId as U, patchCounterpartsIdAddressesId as W, patchCounterpartsIdBankAccountsId as G, patchEntitiesIdSettings as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchRecurrencesId as Z, patchTransactionsId as Q, postApprovalRequestsIdApprove as $, postApprovalRequestsIdReject as ee, postBankDetails as te, postCounterparts as ne, postCounterpartsIdAddresses as re, postCounterpartsIdBankAccounts as ie, postCounterpartsIdBankAccountsIdMakeDefault as ae, postFiles as oe, postMeasureUnits as se, postOverdueReminders as ce, postPayables as le, postPayablesIdApprovePaymentOperation as ue, postPayablesIdAttachFile as de, postPayablesIdCancel as fe, postPayablesIdDuplicatesIdConfirm as pe, postPayablesIdDuplicatesIdDismiss as me, postPayablesIdMarkAsPaid as he, postPayablesIdReject as ge, postPayablesIdReopen as _e, postPayablesIdSchedulePayment as ve, postPayablesIdSubmitForApproval as ye, postPayablesIdValidate as be, postPayablesUploadFromFile as xe, postPaymentIntentsIdCancel as Se, postPaymentLinks as Ce, postPaymentRecords as we, postPaymentReminders as Te, postProducts as Ee, postReceivables as De, postReceivablesIdAccept as Oe, postReceivablesIdCancel as ke, postReceivablesIdClone as Ae, postReceivablesIdDecline as je, postReceivablesIdIssue as Me, postReceivablesIdMarkAsPaid as Ne, postReceivablesIdMarkAsUncollectible as Pe, postReceivablesIdSend as Fe, postRecurrences as Ie, postRecurrencesIdCancel as Le, postRecurrencesIdPause as Re, postRecurrencesIdResume as ze, postTransactionsIdApprove as Be, postTransactionsIdReject as Ve, postTransactionsIdReopen as He, postTransactionsIdSubmit as Ue, putEntitiesIdLogo as We, putPayablesIdLineItems as Ge, updateDepartment as Ke, updateLocation as qe, updateUser as Je } from "./lib/rest/sdk.gen.js";
4
+ import { activateCreditCardMutation as Ye, activateDebitCardMutation as Xe, connectExternalBankAccountMutation as Ze, createAchMoneyMovementMutation as Qe, createApplicationMutation as $e, createBankAccountMutation as et, createBookTransferMutation as tt, createCheckDepositMutation as nt, createDebitCardMutation as rt, createVelocityControlMutation as it, deleteApprovalPoliciesIdMutation as at, deleteBankAccountApplicationMutation as ot, deleteLedgerAccountsIdMutation as st, deleteReceiptsIdMutation as ct, disableUserMutation as lt, getAnalyticsPayablesOptions as ut, getAnalyticsPayablesQueryKey as dt, getAnalyticsReceiptsOptions as ft, getAnalyticsReceiptsQueryKey as pt, getAnalyticsReceivablesOptions as mt, getAnalyticsReceivablesQueryKey as ht, getAnalyticsTransactionsOptions as gt, getAnalyticsTransactionsQueryKey as _t, getApprovalPoliciesOptions as vt, getApprovalPoliciesQueryKey as yt, getApprovalRequestsOptions as bt, getApprovalRequestsQueryKey as xt, getBankAccountAccessQueryKey as St, getBankAccountApplicationOptions as Ct, getBankAccountOptions as wt, getBankAccountQueryKey as Tt, getBankAccountStatementsOptions as Et, getBankAccountTransactionsOptions as Dt, getBankAccountTransactionsQueryKey as Ot, getBankAccountTransfersOptions as kt, getBankAccountTransfersQueryKey as At, getBankAccountsQueryKey as jt, getBankDetailsIdOptions as Mt, getBankDetailsOptions as Nt, getBankDetailsQueryKey as Pt, getCounterpartsIdAddressesOptions as Ft, getCounterpartsIdAddressesQueryKey as It, getCounterpartsIdBankAccountsOptions as Lt, getCounterpartsIdBankAccountsQueryKey as Rt, getCounterpartsIdOptions as zt, getCounterpartsIdQueryKey as Bt, getCounterpartsOptions as Vt, getCounterpartsQueryKey as Ht, getCreditCardByIdOptions as Ut, getCreditCardByIdQueryKey as Wt, getCreditCardsOptions as Gt, getCreditCardsQueryKey as Kt, getDebitCardByIdOptions as qt, getDebitCardByIdQueryKey as Jt, getDebitCardCredentialsOptions as Yt, getDebitCardsOptions as Xt, getDebitCardsQueryKey as Zt, getDepartmentOptions as Qt, getDepartmentQueryKey as $t, getDepositableBankAccountsOptions as en, getDocumentsIdNextNumbersOptions as tn, getDocumentsIdNextNumbersQueryKey as nn, getEntitiesIdPaymentMethodsOptions as rn, getEntitiesIdSettingsOptions as an, getEntitiesIdSettingsQueryKey as on, getEntityUsersOptions as sn, getExternalBankAccountAccessQueryKey as cn, getExternalBankAccountOptions as ln, getExternalBankAccountsOptions as un, getExternalBankAccountsQueryKey as dn, getFilesQueryKey as fn, getLedgerAccountsQueryKey as pn, getLocationOptions as mn, getLocationQueryKey as hn, getMeOptions as gn, getMeasureUnitsOptions as _n, getMeasureUnitsQueryKey as vn, getOrganizationOptions as yn, getOverdueRemindersOptions as bn, getOverdueRemindersQueryKey as xn, getPayablesIdHistoryOptions as Sn, getPayablesIdHistoryQueryKey as Cn, getPayablesIdLineItemsOptions as wn, getPayablesIdLineItemsQueryKey as Tn, getPayablesIdOptions as En, getPayablesIdQueryKey as Dn, getPayablesIdSuggestionsOptions as On, getPayablesOptions as kn, getPayablesQueryKey as An, getPaymentRecordsOptions as jn, getPaymentRecordsQueryKey as Mn, getPaymentRemindersOptions as Nn, getPaymentRemindersQueryKey as Pn, getProductsIdOptions as Fn, getProductsIdQueryKey as In, getProductsOptions as Ln, getProductsQueryKey as Rn, getReceiptsIdQueryKey as zn, getReceiptsOptions as Bn, getReceiptsQueryKey as Vn, getReceivablesIdHistoryQueryKey as Hn, getReceivablesIdMailsQueryKey as Un, getReceivablesIdOptions as Wn, getReceivablesIdPdfLinkOptions as Gn, getReceivablesIdPdfLinkQueryKey as Kn, getReceivablesIdQueryKey as qn, getReceivablesOptions as Jn, getReceivablesQueryKey as Yn, getReceivablesRequiredFieldsOptions as Xn, getRecurrencesIdOptions as Zn, getRecurrencesIdQueryKey as Qn, getRecurrencesQueryKey as $n, getTransactionsIdExpenseHistoryOptions as er, getTransactionsIdExpenseHistoryQueryKey as tr, getTransactionsIdOptions as nr, getTransactionsIdQueryKey as rr, getTransactionsOptions as ir, getTransactionsQueryKey as ar, getTransactionsValidationsOptions as or, getTransactionsValidationsQueryKey as sr, getUsersOptions as cr, getUsersQueryKey as lr, getVelocityControlsQueryKey as ur, grantBankAccountAccessMutation as dr, grantExternalBankAccountAccessMutation as fr, linkExternalBankAccountMutation as pr, listDepartmentsOptions as mr, listDepartmentsQueryKey as hr, listLocationsOptions as gr, listLocationsQueryKey as _r, listRolesQueryKey as vr, manageDebitCardAccessMutation as yr, patchApprovalPoliciesIdMutation as br, patchLedgerAccountsIdMutation as xr, patchReceiptsIdMutation as Sr, postApprovalPoliciesMutation as Cr, postLedgerAccountsMutation as wr, postReceiptsUploadFromFileMutation as Tr, putTransactionsValidationsMutation as Er, setDebitCardLockStatusMutation as Dr, submitApplicationMutation as Or, unlinkExternalBankAccountMutation as kr, updateApplicationMutation as Ar, updateBankAccountMutation as jr, updateDebitCardMutation as Mr, updateExternalBankAccountMutation as Nr, validateExternalBankAccountMutation as Pr, verifyDebitCardMutation as Fr } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { OrganizationStatus as Ir, isOrganizationOnItsWay as Lr } from "./lib/organizationStatus.js";
6
+ import { withAuthEpoch as Rr, withAuthEpochInfinite as zr } from "./lib/withAuthEpoch.js";
7
+ import { applicationStatusInvalidationKey as Br, applicationStatusQueryOptions as Vr } from "./lib/applicationStatusQueryOptions.js";
8
+ import { createClientSecretInstaller as Hr } from "./lib/scopedClientSecret.js";
9
+ import { cancelAllClients as Ur, invalidateAllClients as Wr, registerQueryClient as Gr, removeInactiveFromAllClients as Kr, resetAllClients as qr, setAllClientsQueriesData as Jr, unregisterQueryClient as Yr } from "./lib/clientRegistry.js";
10
+ import { cloneEmbeddedClient as Xr, createEmbeddedClient as Zr } from "./lib/createEmbeddedClient.js";
11
11
  import "./lib/widgetGatewayHosts.js";
12
- import { attachTransportInterceptors as Zr } from "./lib/transportInterceptors.js";
13
- import { EmbedApiProvider as Qr, useEmbedApi as $r } from "./lib/EmbedApiContext.js";
14
- import { optionalOrganizationHeaders as ei, organizationHeaders as ti } from "./lib/organizationHeaders.js";
15
- import { fetchWidgetInit as ni } from "./lib/fetchWidgetInit.js";
16
- import { hasAnyScope as ri } from "./lib/hasAnyScope.js";
17
- import { myEntityInvalidationKey as ii } from "./lib/queryKeys.js";
18
- import { useCurrentUserQuery as ai } from "./lib/useCurrentUserQuery.js";
19
- import { useMyEntityQuery as oi } from "./lib/useMyEntityQuery.js";
20
- import { useMailboxAddress as si } from "./lib/useMailboxAddress.js";
12
+ import { attachTransportInterceptors as Qr } from "./lib/transportInterceptors.js";
13
+ import { EmbedApiProvider as $r, useEmbedApi as ei } from "./lib/EmbedApiContext.js";
14
+ import { optionalOrganizationHeaders as ti, organizationHeaders as ni } from "./lib/organizationHeaders.js";
15
+ import { fetchWidgetInit as ri } from "./lib/fetchWidgetInit.js";
16
+ import { hasAnyScope as ii } from "./lib/hasAnyScope.js";
17
+ import { myEntityInvalidationKey as ai } from "./lib/queryKeys.js";
18
+ import { useCurrentUserQuery as oi } from "./lib/useCurrentUserQuery.js";
19
+ import { useMyEntityQuery as si } from "./lib/useMyEntityQuery.js";
20
+ import { useMailboxAddress as ci } from "./lib/useMailboxAddress.js";
21
21
  import "./lib/apiErrorStatus.js";
22
- import { isApiConflictError as ci } from "./lib/isApiConflictError.js";
23
- import { isApiForbiddenError as li } from "./lib/isApiForbiddenError.js";
24
- import { isApiNotFoundError as ui } from "./lib/isApiNotFoundError.js";
25
- import { isApiUnprocessableError as di } from "./lib/isApiUnprocessableError.js";
22
+ import { isApiConflictError as li } from "./lib/isApiConflictError.js";
23
+ import { isApiForbiddenError as ui } from "./lib/isApiForbiddenError.js";
24
+ import { isApiNotFoundError as di } from "./lib/isApiNotFoundError.js";
25
+ import { isApiUnprocessableError as fi } from "./lib/isApiUnprocessableError.js";
26
26
  import "./lib/isUserDataNotFoundError.js";
27
- import { useGetUserDataQuery as fi } from "./lib/useGetUserDataQuery.js";
28
- import { useUpsertUserDataMutation as pi } from "./lib/useUpsertUserDataMutation.js";
27
+ import { useGetUserDataQuery as pi } from "./lib/useGetUserDataQuery.js";
28
+ import { useUpsertUserDataMutation as mi } from "./lib/useUpsertUserDataMutation.js";
29
29
  import "./lib/rest/zod.gen.js";
30
- import { Scope as mi, isScope as hi } from "./lib/scopes.js";
31
- import { getAllPagesNextPageParam as gi, getAllPagesNextPaginationTokenParam as _i, isAllPagesResolving as vi, useAutoFetchNextPage as yi } from "./lib/allPages.js";
32
- import { useAllBankAccountsQuery as bi } from "./lib/bank-account/useAllBankAccountsQuery.js";
33
- import { useAllDebitCardsQuery as xi } from "./lib/debit-card/useAllDebitCardsQuery.js";
34
- import { useAllExternalBankAccountsQuery as Si } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
35
- import { useAllMerchantCategoryGroupsQuery as Ci } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
36
- import { useAllLedgerAccountsQuery as wi, useLedgerAccountsQuery as Ti } from "./lib/reference-data/useLedgerAccountsQuery.js";
37
- import { usePaymentTermsQuery as Ei } from "./lib/reference-data/usePaymentTermsQuery.js";
38
- import { useAllOrganizationRolesQuery as Di } from "./lib/role/useAllOrganizationRolesQuery.js";
39
- import { useRolePermissionsQueries as Oi } from "./lib/role/useRolePermissionsQueries.js";
40
- import { useAllOrganizationUsersQuery as ki } from "./lib/user/useAllOrganizationUsersQuery.js";
41
- import { personDisclosure as Ai } from "./lib/disclosures/personDisclosure.js";
42
- import { useAcceptWidgetDisclosures as ji } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
43
- import { useDisclosuresQuery as Mi } from "./lib/disclosures/useDisclosuresQuery.js";
44
- import { OnboardingSuppressionReason as Ni } from "./lib/onboardingSuppressionReason.js";
45
- import { useOrganizationOnboardingSuppression as Pi } from "./lib/useOrganizationOnboardingSuppression.js";
46
- import { useOrganizationApplicationStatus as Fi } from "./lib/useOrganizationApplicationStatus.js";
47
- export { Qr as EmbedApiProvider, Ni as OnboardingSuppressionReason, Fr as OrganizationStatus, mi as Scope, Je as activateCreditCardMutation, Ye as activateDebitCardMutation, zr as applicationStatusInvalidationKey, Br as applicationStatusQueryOptions, Zr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Hr as cancelAllClients, Yr as cloneEmbeddedClient, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Vr as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, Xr as createEmbeddedClient, i as createLocation, a as createUser, rt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, it as deleteApprovalPoliciesIdMutation, at as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, ot as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, st as deleteReceiptsIdMutation, g as deleteReceivablesId, ct as disableUserMutation, _ as downloadBankAccountTransactions, ni as fetchWidgetInit, gi as getAllPagesNextPageParam, _i as getAllPagesNextPaginationTokenParam, lt as getAnalyticsPayablesOptions, ut as getAnalyticsPayablesQueryKey, dt as getAnalyticsReceiptsOptions, ft as getAnalyticsReceiptsQueryKey, pt as getAnalyticsReceivablesOptions, mt as getAnalyticsReceivablesQueryKey, ht as getAnalyticsTransactionsOptions, gt as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, _t as getApprovalPoliciesOptions, vt as getApprovalPoliciesQueryKey, b as getApprovalRequests, yt as getApprovalRequestsOptions, bt as getApprovalRequestsQueryKey, x as getBankAccountAccess, xt as getBankAccountAccessQueryKey, St as getBankAccountApplicationOptions, Ct as getBankAccountOptions, wt as getBankAccountQueryKey, S as getBankAccountStatement, Tt as getBankAccountStatementsOptions, Et as getBankAccountTransactionsOptions, Dt as getBankAccountTransactionsQueryKey, Ot as getBankAccountTransfersOptions, kt as getBankAccountTransfersQueryKey, At as getBankAccountsQueryKey, jt as getBankDetailsIdOptions, Mt as getBankDetailsOptions, Nt as getBankDetailsQueryKey, C as getCounterparts, Pt as getCounterpartsIdAddressesOptions, Ft as getCounterpartsIdAddressesQueryKey, It as getCounterpartsIdBankAccountsOptions, Lt as getCounterpartsIdBankAccountsQueryKey, Rt as getCounterpartsIdOptions, zt as getCounterpartsIdQueryKey, Bt as getCounterpartsOptions, Vt as getCounterpartsQueryKey, Ht as getCreditCardByIdOptions, Ut as getCreditCardByIdQueryKey, Wt as getCreditCardsOptions, Gt as getCreditCardsQueryKey, Kt as getDebitCardByIdOptions, qt as getDebitCardByIdQueryKey, Jt as getDebitCardCredentialsOptions, Yt as getDebitCardsOptions, Xt as getDebitCardsQueryKey, w as getDepartment, Zt as getDepartmentOptions, Qt as getDepartmentQueryKey, T as getDepositableBankAccounts, $t as getDepositableBankAccountsOptions, en as getDocumentsIdNextNumbersOptions, tn as getDocumentsIdNextNumbersQueryKey, nn as getEntitiesIdPaymentMethodsOptions, rn as getEntitiesIdSettingsOptions, an as getEntitiesIdSettingsQueryKey, on as getEntityUsersOptions, E as getExternalBankAccountAccess, sn as getExternalBankAccountAccessQueryKey, cn as getExternalBankAccountOptions, ln as getExternalBankAccountsOptions, un as getExternalBankAccountsQueryKey, dn as getFilesQueryKey, fn as getLedgerAccountsQueryKey, D as getLocation, pn as getLocationOptions, mn as getLocationQueryKey, hn as getMeOptions, gn as getMeasureUnitsOptions, _n as getMeasureUnitsQueryKey, vn as getOrganizationOptions, yn as getOverdueRemindersOptions, bn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, xn as getPayablesIdHistoryOptions, Sn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, Cn as getPayablesIdLineItemsOptions, wn as getPayablesIdLineItemsQueryKey, Tn as getPayablesIdOptions, En as getPayablesIdQueryKey, Dn as getPayablesIdSuggestionsOptions, On as getPayablesOptions, kn as getPayablesQueryKey, M as getPaymentRecords, An as getPaymentRecordsOptions, jn as getPaymentRecordsQueryKey, Mn as getPaymentRemindersOptions, Nn as getPaymentRemindersQueryKey, N as getProducts, Pn as getProductsIdOptions, Fn as getProductsIdQueryKey, In as getProductsOptions, Ln as getProductsQueryKey, P as getReceipts, Rn as getReceiptsIdQueryKey, zn as getReceiptsOptions, Bn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Vn as getReceivablesIdHistoryQueryKey, Hn as getReceivablesIdMailsQueryKey, Un as getReceivablesIdOptions, Wn as getReceivablesIdPdfLinkOptions, Gn as getReceivablesIdPdfLinkQueryKey, Kn as getReceivablesIdQueryKey, qn as getReceivablesOptions, Jn as getReceivablesQueryKey, Yn as getReceivablesRequiredFieldsOptions, Xn as getRecurrencesIdOptions, Zn as getRecurrencesIdQueryKey, Qn as getRecurrencesQueryKey, $n as getTransactionsIdExpenseHistoryOptions, er as getTransactionsIdExpenseHistoryQueryKey, tr as getTransactionsIdOptions, nr as getTransactionsIdQueryKey, rr as getTransactionsOptions, ir as getTransactionsQueryKey, ar as getTransactionsValidationsOptions, or as getTransactionsValidationsQueryKey, L as getUsers, sr as getUsersOptions, cr as getUsersQueryKey, lr as getVelocityControlsQueryKey, ur as grantBankAccountAccessMutation, dr as grantExternalBankAccountAccessMutation, ri as hasAnyScope, Ur as invalidateAllClients, vi as isAllPagesResolving, ci as isApiConflictError, li as isApiForbiddenError, ui as isApiNotFoundError, di as isApiUnprocessableError, Ir as isOrganizationOnItsWay, hi as isScope, fr as linkExternalBankAccountMutation, R as listDepartments, pr as listDepartmentsOptions, mr as listDepartmentsQueryKey, z as listLocations, hr as listLocationsOptions, gr as listLocationsQueryKey, B as listRoles, _r as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, vr as manageDebitCardAccessMutation, ii as myEntityInvalidationKey, ei as optionalOrganizationHeaders, ti as organizationHeaders, yr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, br as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, xr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, Ai as personDisclosure, Sr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postCounterpartsIdBankAccountsIdMakeDefault, oe as postFiles, Cr as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentRecords, we as postPaymentReminders, Te as postProducts, wr as postReceiptsUploadFromFileMutation, Ee as postReceivables, De as postReceivablesIdAccept, Oe as postReceivablesIdCancel, ke as postReceivablesIdClone, Ae as postReceivablesIdDecline, je as postReceivablesIdIssue, Me as postReceivablesIdMarkAsPaid, Ne as postReceivablesIdMarkAsUncollectible, Pe as postReceivablesIdSend, Fe as postRecurrences, Ie as postRecurrencesIdCancel, Le as postRecurrencesIdPause, Re as postRecurrencesIdResume, ze as postTransactionsIdApprove, Be as postTransactionsIdReject, Ve as postTransactionsIdReopen, He as postTransactionsIdSubmit, Ue as putEntitiesIdLogo, We as putPayablesIdLineItems, Tr as putTransactionsValidationsMutation, Wr as registerQueryClient, Gr as removeInactiveFromAllClients, Kr as resetAllClients, qr as setAllClientsQueriesData, Er as setDebitCardLockStatusMutation, Dr as submitApplicationMutation, Or as unlinkExternalBankAccountMutation, Jr as unregisterQueryClient, kr as updateApplicationMutation, Ar as updateBankAccountMutation, jr as updateDebitCardMutation, Ge as updateDepartment, Mr as updateExternalBankAccountMutation, Ke as updateLocation, qe as updateUser, ji as useAcceptWidgetDisclosures, bi as useAllBankAccountsQuery, xi as useAllDebitCardsQuery, Si as useAllExternalBankAccountsQuery, wi as useAllLedgerAccountsQuery, Ci as useAllMerchantCategoryGroupsQuery, Di as useAllOrganizationRolesQuery, ki as useAllOrganizationUsersQuery, yi as useAutoFetchNextPage, ai as useCurrentUserQuery, Mi as useDisclosuresQuery, $r as useEmbedApi, fi as useGetUserDataQuery, Ti as useLedgerAccountsQuery, si as useMailboxAddress, oi as useMyEntityQuery, Fi as useOrganizationApplicationStatus, Pi as useOrganizationOnboardingSuppression, Ei as usePaymentTermsQuery, Oi as useRolePermissionsQueries, pi as useUpsertUserDataMutation, Nr as validateExternalBankAccountMutation, Pr as verifyDebitCardMutation, Lr as withAuthEpoch, Rr as withAuthEpochInfinite };
30
+ import { Scope as hi, isScope as gi } from "./lib/scopes.js";
31
+ import { getAllPagesNextPageParam as _i, getAllPagesNextPaginationTokenParam as vi, isAllPagesResolving as yi, useAutoFetchNextPage as bi } from "./lib/allPages.js";
32
+ import { useAllBankAccountsQuery as xi } from "./lib/bank-account/useAllBankAccountsQuery.js";
33
+ import { useAllDebitCardsQuery as Si } from "./lib/debit-card/useAllDebitCardsQuery.js";
34
+ import { useAllExternalBankAccountsQuery as Ci } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
35
+ import { useAllMerchantCategoryGroupsQuery as wi } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
36
+ import { useAllLedgerAccountsQuery as Ti, useLedgerAccountsQuery as Ei } from "./lib/reference-data/useLedgerAccountsQuery.js";
37
+ import { usePaymentTermsQuery as Di } from "./lib/reference-data/usePaymentTermsQuery.js";
38
+ import { useAllOrganizationRolesQuery as Oi } from "./lib/role/useAllOrganizationRolesQuery.js";
39
+ import { useRolePermissionsQueries as ki } from "./lib/role/useRolePermissionsQueries.js";
40
+ import { useAllOrganizationUsersQuery as Ai } from "./lib/user/useAllOrganizationUsersQuery.js";
41
+ import { personDisclosure as ji } from "./lib/disclosures/personDisclosure.js";
42
+ import { useAcceptWidgetDisclosures as Mi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
43
+ import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery.js";
44
+ import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
45
+ import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
46
+ import { useOrganizationApplicationStatus as Ii } from "./lib/useOrganizationApplicationStatus.js";
47
+ export { $r as EmbedApiProvider, Pi as OnboardingSuppressionReason, Ir as OrganizationStatus, hi as Scope, Ye as activateCreditCardMutation, Xe as activateDebitCardMutation, Br as applicationStatusInvalidationKey, Vr as applicationStatusQueryOptions, Qr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Ur as cancelAllClients, Xr as cloneEmbeddedClient, Ze as connectExternalBankAccountMutation, Qe as createAchMoneyMovementMutation, $e as createApplicationMutation, et as createBankAccountMutation, tt as createBookTransferMutation, nt as createCheckDepositMutation, Hr as createClientSecretInstaller, rt as createDebitCardMutation, r as createDepartment, Zr as createEmbeddedClient, i as createLocation, a as createUser, it as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, at as deleteApprovalPoliciesIdMutation, ot as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, st as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, ct as deleteReceiptsIdMutation, g as deleteReceivablesId, lt as disableUserMutation, _ as downloadBankAccountTransactions, ri as fetchWidgetInit, _i as getAllPagesNextPageParam, vi as getAllPagesNextPaginationTokenParam, ut as getAnalyticsPayablesOptions, dt as getAnalyticsPayablesQueryKey, ft as getAnalyticsReceiptsOptions, pt as getAnalyticsReceiptsQueryKey, mt as getAnalyticsReceivablesOptions, ht as getAnalyticsReceivablesQueryKey, gt as getAnalyticsTransactionsOptions, _t as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, vt as getApprovalPoliciesOptions, yt as getApprovalPoliciesQueryKey, b as getApprovalRequests, bt as getApprovalRequestsOptions, xt as getApprovalRequestsQueryKey, x as getBankAccountAccess, St as getBankAccountAccessQueryKey, Ct as getBankAccountApplicationOptions, wt as getBankAccountOptions, Tt as getBankAccountQueryKey, S as getBankAccountStatement, Et as getBankAccountStatementsOptions, Dt as getBankAccountTransactionsOptions, Ot as getBankAccountTransactionsQueryKey, kt as getBankAccountTransfersOptions, At as getBankAccountTransfersQueryKey, jt as getBankAccountsQueryKey, Mt as getBankDetailsIdOptions, Nt as getBankDetailsOptions, Pt as getBankDetailsQueryKey, C as getCounterparts, Ft as getCounterpartsIdAddressesOptions, It as getCounterpartsIdAddressesQueryKey, Lt as getCounterpartsIdBankAccountsOptions, Rt as getCounterpartsIdBankAccountsQueryKey, zt as getCounterpartsIdOptions, Bt as getCounterpartsIdQueryKey, Vt as getCounterpartsOptions, Ht as getCounterpartsQueryKey, Ut as getCreditCardByIdOptions, Wt as getCreditCardByIdQueryKey, Gt as getCreditCardsOptions, Kt as getCreditCardsQueryKey, qt as getDebitCardByIdOptions, Jt as getDebitCardByIdQueryKey, Yt as getDebitCardCredentialsOptions, Xt as getDebitCardsOptions, Zt as getDebitCardsQueryKey, w as getDepartment, Qt as getDepartmentOptions, $t as getDepartmentQueryKey, T as getDepositableBankAccounts, en as getDepositableBankAccountsOptions, tn as getDocumentsIdNextNumbersOptions, nn as getDocumentsIdNextNumbersQueryKey, rn as getEntitiesIdPaymentMethodsOptions, an as getEntitiesIdSettingsOptions, on as getEntitiesIdSettingsQueryKey, sn as getEntityUsersOptions, E as getExternalBankAccountAccess, cn as getExternalBankAccountAccessQueryKey, ln as getExternalBankAccountOptions, un as getExternalBankAccountsOptions, dn as getExternalBankAccountsQueryKey, fn as getFilesQueryKey, pn as getLedgerAccountsQueryKey, D as getLocation, mn as getLocationOptions, hn as getLocationQueryKey, gn as getMeOptions, _n as getMeasureUnitsOptions, vn as getMeasureUnitsQueryKey, yn as getOrganizationOptions, bn as getOverdueRemindersOptions, xn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, Sn as getPayablesIdHistoryOptions, Cn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, wn as getPayablesIdLineItemsOptions, Tn as getPayablesIdLineItemsQueryKey, En as getPayablesIdOptions, Dn as getPayablesIdQueryKey, On as getPayablesIdSuggestionsOptions, kn as getPayablesOptions, An as getPayablesQueryKey, M as getPaymentRecords, jn as getPaymentRecordsOptions, Mn as getPaymentRecordsQueryKey, Nn as getPaymentRemindersOptions, Pn as getPaymentRemindersQueryKey, N as getProducts, Fn as getProductsIdOptions, In as getProductsIdQueryKey, Ln as getProductsOptions, Rn as getProductsQueryKey, P as getReceipts, zn as getReceiptsIdQueryKey, Bn as getReceiptsOptions, Vn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Hn as getReceivablesIdHistoryQueryKey, Un as getReceivablesIdMailsQueryKey, Wn as getReceivablesIdOptions, Gn as getReceivablesIdPdfLinkOptions, Kn as getReceivablesIdPdfLinkQueryKey, qn as getReceivablesIdQueryKey, Jn as getReceivablesOptions, Yn as getReceivablesQueryKey, Xn as getReceivablesRequiredFieldsOptions, Zn as getRecurrencesIdOptions, Qn as getRecurrencesIdQueryKey, $n as getRecurrencesQueryKey, er as getTransactionsIdExpenseHistoryOptions, tr as getTransactionsIdExpenseHistoryQueryKey, nr as getTransactionsIdOptions, rr as getTransactionsIdQueryKey, ir as getTransactionsOptions, ar as getTransactionsQueryKey, or as getTransactionsValidationsOptions, sr as getTransactionsValidationsQueryKey, L as getUsers, cr as getUsersOptions, lr as getUsersQueryKey, ur as getVelocityControlsQueryKey, dr as grantBankAccountAccessMutation, fr as grantExternalBankAccountAccessMutation, ii as hasAnyScope, Wr as invalidateAllClients, yi as isAllPagesResolving, li as isApiConflictError, ui as isApiForbiddenError, di as isApiNotFoundError, fi as isApiUnprocessableError, Lr as isOrganizationOnItsWay, gi as isScope, pr as linkExternalBankAccountMutation, R as listDepartments, mr as listDepartmentsOptions, hr as listDepartmentsQueryKey, z as listLocations, gr as listLocationsOptions, _r as listLocationsQueryKey, B as listRoles, vr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, yr as manageDebitCardAccessMutation, ai as myEntityInvalidationKey, ti as optionalOrganizationHeaders, ni as organizationHeaders, br as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, xr as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, Sr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, ji as personDisclosure, Cr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postCounterpartsIdBankAccountsIdMakeDefault, oe as postFiles, wr as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentLinks, we as postPaymentRecords, Te as postPaymentReminders, Ee as postProducts, Tr as postReceiptsUploadFromFileMutation, De as postReceivables, Oe as postReceivablesIdAccept, ke as postReceivablesIdCancel, Ae as postReceivablesIdClone, je as postReceivablesIdDecline, Me as postReceivablesIdIssue, Ne as postReceivablesIdMarkAsPaid, Pe as postReceivablesIdMarkAsUncollectible, Fe as postReceivablesIdSend, Ie as postRecurrences, Le as postRecurrencesIdCancel, Re as postRecurrencesIdPause, ze as postRecurrencesIdResume, Be as postTransactionsIdApprove, Ve as postTransactionsIdReject, He as postTransactionsIdReopen, Ue as postTransactionsIdSubmit, We as putEntitiesIdLogo, Ge as putPayablesIdLineItems, Er as putTransactionsValidationsMutation, Gr as registerQueryClient, Kr as removeInactiveFromAllClients, qr as resetAllClients, Jr as setAllClientsQueriesData, Dr as setDebitCardLockStatusMutation, Or as submitApplicationMutation, kr as unlinkExternalBankAccountMutation, Yr as unregisterQueryClient, Ar as updateApplicationMutation, jr as updateBankAccountMutation, Mr as updateDebitCardMutation, Ke as updateDepartment, Nr as updateExternalBankAccountMutation, qe as updateLocation, Je as updateUser, Mi as useAcceptWidgetDisclosures, xi as useAllBankAccountsQuery, Si as useAllDebitCardsQuery, Ci as useAllExternalBankAccountsQuery, Ti as useAllLedgerAccountsQuery, wi as useAllMerchantCategoryGroupsQuery, Oi as useAllOrganizationRolesQuery, Ai as useAllOrganizationUsersQuery, bi as useAutoFetchNextPage, oi as useCurrentUserQuery, Ni as useDisclosuresQuery, ei as useEmbedApi, pi as useGetUserDataQuery, Ei as useLedgerAccountsQuery, ci as useMailboxAddress, si as useMyEntityQuery, Ii as useOrganizationApplicationStatus, Fi as useOrganizationOnboardingSuppression, Di as usePaymentTermsQuery, ki as useRolePermissionsQueries, mi as useUpsertUserDataMutation, Pr as validateExternalBankAccountMutation, Fr as verifyDebitCardMutation, Rr as withAuthEpoch, zr as withAuthEpochInfinite };