@tesouro/embedded-components-react 0.11.43 → 0.11.46

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.
package/dist/index.d.ts CHANGED
@@ -6322,6 +6322,7 @@ interface ReceivableMessageLabels {
6322
6322
  actionsSubject: string;
6323
6323
  actionsSendSucceeded: string;
6324
6324
  actionsSendFailed: string;
6325
+ /** @deprecated Unused: the backend creates the payment link on issue, so the browser no longer decides. Kept so existing overrides still compile. */
6325
6326
  actionsSendWithoutPaymentLink: string;
6326
6327
  /** @deprecated Unused: sending no longer checks a payment-link scope. Kept so existing overrides still compile. */
6327
6328
  actionsSendWithoutPaymentLinkScope: string;
@@ -1665,6 +1665,7 @@ interface ReceivableMessageLabels {
1665
1665
  actionsSubject: string;
1666
1666
  actionsSendSucceeded: string;
1667
1667
  actionsSendFailed: string;
1668
+ /** @deprecated Unused: the backend creates the payment link on issue, so the browser no longer decides. Kept so existing overrides still compile. */
1668
1669
  actionsSendWithoutPaymentLink: string;
1669
1670
  /** @deprecated Unused: sending no longer checks a payment-link scope. Kept so existing overrides still compile. */
1670
1671
  actionsSendWithoutPaymentLinkScope: string;
@@ -5,13 +5,13 @@ import { useAllCustomersQuery as t } from "./index3.js";
5
5
  import { useAllReceivableHistoryQuery as n } from "./index4.js";
6
6
  import { useEntityPaymentMethodsQuery as r, useEntitySettingsQuery as i } from "./index5.js";
7
7
  import { useCreateEntityBankAccountMutation as a, usePaymentAccountQuery as o, usePaymentAccountsQuery as s } from "./index6.js";
8
- import { useCreatePaymentLinkMutation as c } from "./index7.js";
9
- import { useDeleteReceivableAttachmentMutation as l, useUploadReceivableAttachmentMutation as u } from "./index8.js";
10
- import { useSendReceivableEmailMutation as d } from "./index10.js";
11
- import { useAcceptReceivableMutation as f, useCancelReceivableMutation as p, useCloneReceivableMutation as m, useCreateReceivableMutation as h, useDeclineReceivableMutation as g, useDeleteReceivableMutation as _, useIssueReceivableMutation as v, useUpdateReceivableMutation as y } from "./index11.js";
12
- import { useReceivablePaymentRecordsQuery as b } from "./index12.js";
13
- import { useCreateReceivablePaymentRecordMutation as x, useMarkReceivablePaidMutation as S, useMarkReceivableUncollectibleMutation as C } from "./index13.js";
14
- import { useReceivablePdfLinkQuery as w, useReceivableQuery as T, useReceivableRequiredFieldsQuery as E, useReceivablesByIdQueries as D, useReceivablesQuery as O } from "./index15.js";
15
- import { useCancelRecurrenceMutation as k, useCreateOverdueReminderMutation as A, useCreatePaymentReminderMutation as j, useCreateRecurrenceMutation as M, useOverdueRemindersQuery as N, usePauseRecurrenceMutation as P, usePaymentRemindersQuery as F, useRecurrenceQuery as I, useRecurrencesByIdQueries as L, useResumeRecurrenceMutation as R, useUpdateRecurrenceMutation as z } from "./index16.js";
16
- import { useReceivablesAnalyticsQuery as B } from "./index17.js";
17
- export { f as useAcceptReceivableMutation, t as useAllCustomersQuery, n as useAllReceivableHistoryQuery, p as useCancelReceivableMutation, k as useCancelRecurrenceMutation, m as useCloneReceivableMutation, a as useCreateEntityBankAccountMutation, A as useCreateOverdueReminderMutation, c as useCreatePaymentLinkMutation, j as useCreatePaymentReminderMutation, h as useCreateReceivableMutation, x as useCreateReceivablePaymentRecordMutation, M as useCreateRecurrenceMutation, g as useDeclineReceivableMutation, l as useDeleteReceivableAttachmentMutation, _ as useDeleteReceivableMutation, r as useEntityPaymentMethodsQuery, i as useEntitySettingsQuery, v as useIssueReceivableMutation, S as useMarkReceivablePaidMutation, C as useMarkReceivableUncollectibleMutation, N as useOverdueRemindersQuery, P as usePauseRecurrenceMutation, o as usePaymentAccountQuery, s as usePaymentAccountsQuery, F as usePaymentRemindersQuery, e as usePaymentTermsQuery, b as useReceivablePaymentRecordsQuery, w as useReceivablePdfLinkQuery, T as useReceivableQuery, E as useReceivableRequiredFieldsQuery, B as useReceivablesAnalyticsQuery, D as useReceivablesByIdQueries, O as useReceivablesQuery, I as useRecurrenceQuery, L as useRecurrencesByIdQueries, R as useResumeRecurrenceMutation, d as useSendReceivableEmailMutation, y as useUpdateReceivableMutation, z as useUpdateRecurrenceMutation, u as useUploadReceivableAttachmentMutation };
8
+ import "./index7.js";
9
+ import { useDeleteReceivableAttachmentMutation as c, useUploadReceivableAttachmentMutation as l } from "./index8.js";
10
+ import { useSendReceivableEmailMutation as u } from "./index10.js";
11
+ import { useAcceptReceivableMutation as d, useCancelReceivableMutation as f, useCloneReceivableMutation as p, useCreateReceivableMutation as m, useDeclineReceivableMutation as h, useDeleteReceivableMutation as g, useIssueReceivableMutation as _, useUpdateReceivableMutation as v } from "./index11.js";
12
+ import { useReceivablePaymentRecordsQuery as y } from "./index12.js";
13
+ import { useCreateReceivablePaymentRecordMutation as b, useMarkReceivablePaidMutation as x, useMarkReceivableUncollectibleMutation as S } from "./index13.js";
14
+ import { useReceivablePdfLinkQuery as C, useReceivableQuery as w, useReceivableRequiredFieldsQuery as T, useReceivablesByIdQueries as E, useReceivablesQuery as D } from "./index15.js";
15
+ import { useCancelRecurrenceMutation as O, useCreateOverdueReminderMutation as k, useCreatePaymentReminderMutation as A, useCreateRecurrenceMutation as j, useOverdueRemindersQuery as M, usePauseRecurrenceMutation as N, usePaymentRemindersQuery as P, useRecurrenceQuery as F, useRecurrencesByIdQueries as I, useResumeRecurrenceMutation as L, useUpdateRecurrenceMutation as R } from "./index16.js";
16
+ import { useReceivablesAnalyticsQuery as z } from "./index17.js";
17
+ export { d as useAcceptReceivableMutation, t as useAllCustomersQuery, n as useAllReceivableHistoryQuery, f as useCancelReceivableMutation, O as useCancelRecurrenceMutation, p as useCloneReceivableMutation, a as useCreateEntityBankAccountMutation, k as useCreateOverdueReminderMutation, A as useCreatePaymentReminderMutation, m as useCreateReceivableMutation, b as useCreateReceivablePaymentRecordMutation, j as useCreateRecurrenceMutation, h as useDeclineReceivableMutation, c as useDeleteReceivableAttachmentMutation, g as useDeleteReceivableMutation, r as useEntityPaymentMethodsQuery, i as useEntitySettingsQuery, _ as useIssueReceivableMutation, x as useMarkReceivablePaidMutation, S as useMarkReceivableUncollectibleMutation, M as useOverdueRemindersQuery, N as usePauseRecurrenceMutation, o as usePaymentAccountQuery, s as usePaymentAccountsQuery, P as usePaymentRemindersQuery, e as usePaymentTermsQuery, y as useReceivablePaymentRecordsQuery, C as useReceivablePdfLinkQuery, w as useReceivableQuery, T as useReceivableRequiredFieldsQuery, z as useReceivablesAnalyticsQuery, E as useReceivablesByIdQueries, D as useReceivablesQuery, F as useRecurrenceQuery, I as useRecurrencesByIdQueries, L as useResumeRecurrenceMutation, u as useSendReceivableEmailMutation, v as useUpdateReceivableMutation, R as useUpdateRecurrenceMutation, l as useUploadReceivableAttachmentMutation };
@@ -2,22 +2,5 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { postPaymentLinks as e } from "../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { useEmbedApi as t } from "../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
- import { organizationHeaders as n } from "../../../shared/data-access/dist/lib/organizationHeaders.js";
8
5
  import "../../../shared/data-access/dist/index.js";
9
- import { useMutation as r } from "@tanstack/react-query";
10
- // ../../libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js
11
- function i() {
12
- let { client: i, organizationId: a } = t();
13
- return r({ mutationFn: async ({ body: t }) => {
14
- let { data: r } = await e({
15
- client: i,
16
- headers: n(a),
17
- body: t,
18
- throwOnError: !0
19
- });
20
- return r;
21
- } });
22
- }
23
- export { i as useCreatePaymentLinkMutation };
6
+ import "@tanstack/react-query";
@@ -2,8 +2,8 @@ import { isLineItemTaxable as e } from "./lineItems.js";
2
2
  import { buildReceivableAttachmentDetailsView as t } from "./attachments.js";
3
3
  import { allocateDiscount as n, resolveDiscountAmount as r } from "./totals.js";
4
4
  import { buildReceivableNotesView as i, formatDate as a, formatMoney as o, getDaysOverdue as s } from "./helpers.js";
5
- import { formatCountryName as c, formatDeduction as l } from "./preview.js";
6
- import { getPaymentAccountLineLabel as u } from "./bankAccounts.js";
5
+ import { getPaymentAccountLineLabel as c } from "./bankAccounts.js";
6
+ import { formatCountryName as l, formatDeduction as u } from "./preview.js";
7
7
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js
8
8
  var d = {
9
9
  draft: {
@@ -181,7 +181,7 @@ function ee(e) {
181
181
  return [
182
182
  e.line2 ? `${e.line1} ${e.line2}` : e.line1,
183
183
  t,
184
- e.country ? c(e.country) : void 0
184
+ e.country ? l(e.country) : void 0
185
185
  ].filter(Boolean).join(", ");
186
186
  }
187
187
  function te(e, t, n) {
@@ -262,7 +262,7 @@ function ne(t, i, a) {
262
262
  }), s = r({
263
263
  discount: t.discount,
264
264
  subtotal: o.taxableItemsSubtotal + o.nonTaxableItemsSubtotal
265
- }), { taxableSubtotal: c, nonTaxableSubtotal: u } = n({
265
+ }), { taxableSubtotal: c, nonTaxableSubtotal: l } = n({
266
266
  ...o,
267
267
  discountAmount: s
268
268
  }), d = s > 0, f = o.taxableItemsSubtotal > 0, p = o.nonTaxableItemsSubtotal > 0, m = [{
@@ -271,10 +271,10 @@ function ne(t, i, a) {
271
271
  }];
272
272
  d && m.push({
273
273
  label: a.previewDiscount,
274
- value: l(s, t.currency)
274
+ value: u(s, t.currency)
275
275
  }), p && (f || d) && m.push({
276
276
  label: a.previewNonTaxableSubtotal,
277
- value: i(u),
277
+ value: i(l),
278
278
  tone: "muted"
279
279
  }), f && (p || d) && m.push({
280
280
  label: a.previewTaxableSubtotal,
@@ -295,7 +295,7 @@ var re = {
295
295
  primary: [],
296
296
  overflow: []
297
297
  };
298
- function D({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder: c, depositAccount: l, isAccountListIncomplete: m, recurrence: b, paymentRecords: S = [], isLoadingPaymentRecords: C = !1, iterationInvoices: T = /* @__PURE__ */ new Map(), auditHistory: D, statusLabels: O, messages: k, canRecordPayment: A, hasBeenSent: ie = !1, canWrite: j = !0, onOpenReceivable: M, onOpenCustomer: N, now: ae }) {
298
+ function D({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder: l, depositAccount: u, isAccountListIncomplete: m, recurrence: b, paymentRecords: S = [], isLoadingPaymentRecords: C = !1, iterationInvoices: T = /* @__PURE__ */ new Map(), auditHistory: D, statusLabels: O, messages: k, canRecordPayment: A, hasBeenSent: ie = !1, canWrite: j = !0, onOpenReceivable: M, onOpenCustomer: N, now: ae }) {
299
299
  if (!e || e.type !== "invoice") return;
300
300
  let P = e, F = (e) => o({
301
301
  amount: e ?? 0,
@@ -322,13 +322,13 @@ function D({ receivable: e, pdfUrl: n, paymentReminder: r, overdueReminder: c, d
322
322
  label: k.detailsPaymentReminders,
323
323
  value: h({
324
324
  paymentReminder: r,
325
- overdueReminder: c,
325
+ overdueReminder: l,
326
326
  remindersConfigured: !!(P.payment_reminder_id || P.overdue_reminder_id),
327
327
  messages: k
328
328
  })
329
329
  }, J = {
330
330
  label: k.detailsDepositAccount,
331
- value: l ? u(l, k) : m && P.bank_account_id ? "-" : k.detailsNotProvided
331
+ value: u ? c(u, k) : m && P.bank_account_id ? "-" : k.detailsNotProvided
332
332
  }, Y = {
333
333
  label: k.detailsPaymentTerms,
334
334
  value: P.payment_terms?.name ?? k.detailsPending
@@ -7,20 +7,17 @@ import "../../../../../shared/ui/dist/index.js";
7
7
  import { getCounterpartEmail as t, getCounterpartName as n } from "../../../../../shared/counterpart-management/feature/dist/lib/helpers.js";
8
8
  import { useCounterpartQuery as r } from "../../../../../shared/counterpart-management/data-access/dist/index3.js";
9
9
  import "../../../../../shared/counterpart-management/feature/dist/index.js";
10
- import { useReceivableQuery as i } from "../../../../data-access/dist/index15.js";
10
+ import { useSendReceivableEmailMutation as i } from "../../../../data-access/dist/index10.js";
11
+ import { useReceivableQuery as a } from "../../../../data-access/dist/index15.js";
11
12
  import "../../../../data-access/dist/index.js";
12
- import { useCreateProductMutation as a } from "../../../../../shared/product-catalog/data-access/dist/index6.js";
13
- import { useMeasureUnits as o } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
13
+ import { useCreateProductMutation as o } from "../../../../../shared/product-catalog/data-access/dist/index6.js";
14
+ import { useMeasureUnits as s } from "../../../../../shared/product-catalog/feature/dist/lib/useMeasureUnits.js";
14
15
  import "../../../../../shared/product-catalog/feature/dist/index.js";
15
- import { getInlineItemPriceLabel as s, getIssueAttachments as c, getIssueSubject as l, getProductsStepTitle as u, inlineItemToProductRequest as d } from "./actionsModal.js";
16
- import { useSendReceivableWithPaymentLink as f } from "./useSendReceivableWithPaymentLink.js";
16
+ import { getInlineItemPriceLabel as c, getIssueAttachments as l, getIssueSubject as u, getProductsStepTitle as d, inlineItemToProductRequest as f } from "./actionsModal.js";
17
17
  import { useCallback as p, useMemo as m, useState as h } from "react";
18
18
  // ../../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 = i(_?.receivableId, { enabled: j }), N = r(j ? _?.counterpartId : void 0), { unitNamesById: P } = o({ enabled: !!_?.inlineItems.length }), { send: F, isPending: I } = f({
21
- messages: g,
22
- documentType: j ? _?.documentType : void 0
23
- }), L = a(), 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 ?? l(V?.document_id, z, g), U = 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 = a(_?.receivableId, { enabled: j }), N = r(j ? _?.counterpartId : void 0), { unitNamesById: P } = s({ enabled: !!_?.inlineItems.length }), { mutateAsync: F, isPending: I } = i(), L = o(), 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 ?? u(V?.document_id, z, g), U = p((e) => {
24
21
  v(e), b(e.showEmailStep ? "issue" : "products"), S(void 0), w(void 0), E(""), O(new Set(e.inlineItems.map((e) => e.key)));
25
22
  }, []), W = p(() => v(void 0), []), G = p((e) => {
26
23
  S(e), _?.inlineItems.length ? b("products") : W();
@@ -65,7 +62,7 @@ function g({ messages: g }) {
65
62
  if (t.length) {
66
63
  A(!0);
67
64
  try {
68
- await Promise.all(t.map((e) => L.mutateAsync({ body: d(e) }))), e.success(g.actionsProductsSaved), W();
65
+ await Promise.all(t.map((e) => L.mutateAsync({ body: f(e) }))), e.success(g.actionsProductsSaved), W();
69
66
  } catch {
70
67
  e.error(g.actionsProductsSaveFailed);
71
68
  } finally {
@@ -86,17 +83,17 @@ function g({ messages: g }) {
86
83
  recipient: B ? `${z} <${B}>` : z,
87
84
  subject: H,
88
85
  message: T,
89
- attachments: c(V),
86
+ attachments: l(V),
90
87
  dismissLabel: _.isResend ? g.actionsResendDismiss : g.actionsIssueDismiss,
91
88
  sendDisabled: I || !H.trim() || !T.trim(),
92
89
  inProgress: I
93
90
  } : {
94
91
  step: "products",
95
- title: u(_.action, x, g),
92
+ title: d(_.action, x, g),
96
93
  items: J.map((e) => ({
97
94
  key: e.key,
98
95
  name: e.name,
99
- priceLabel: s(e, P),
96
+ priceLabel: c(e, P),
100
97
  selected: D.has(e.key)
101
98
  })),
102
99
  allSelected: J.length > 0 && D.size === J.length,
@@ -42,7 +42,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
42
42
  r.openDetails && (A(e), M(!0)), r.actionsModal && U({
43
43
  action: n.mode,
44
44
  receivableId: e,
45
- documentType: t,
46
45
  counterpartId: n.counterpartId,
47
46
  inlineItems: n.inlineItems,
48
47
  showEmailStep: r.actionsModal.showEmailStep
@@ -71,7 +70,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
71
70
  (i || n.inlineItems.length !== 0) && U({
72
71
  action: r || n.mode === "recurrence" ? n.mode : "update",
73
72
  receivableId: e,
74
- documentType: t,
75
73
  counterpartId: n.counterpartId,
76
74
  inlineItems: n.inlineItems,
77
75
  showEmailStep: i
@@ -108,7 +106,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
108
106
  onIssuedForSend: (e, t) => U({
109
107
  action: "issue",
110
108
  receivableId: e,
111
- documentType: "invoice",
112
109
  counterpartId: t,
113
110
  inlineItems: [],
114
111
  showEmailStep: !0
@@ -116,7 +113,6 @@ function u({ auditHistoryLabels: u, counterpartMessageLabels: pe, embeddedBankNa
116
113
  onResend: (e, t) => U({
117
114
  action: "issue",
118
115
  receivableId: e,
119
- documentType: "invoice",
120
116
  counterpartId: t,
121
117
  inlineItems: [],
122
118
  showEmailStep: !0,
@@ -1,48 +1,48 @@
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, postFiles as ae, postMeasureUnits as oe, postOverdueReminders as se, postPayables as ce, postPayablesIdApprovePaymentOperation as le, postPayablesIdAttachFile as ue, postPayablesIdCancel as de, postPayablesIdDuplicatesIdConfirm as fe, postPayablesIdDuplicatesIdDismiss as pe, postPayablesIdMarkAsPaid as me, postPayablesIdReject as he, postPayablesIdReopen as ge, postPayablesIdSchedulePayment as _e, postPayablesIdSubmitForApproval as ve, postPayablesIdValidate as ye, postPayablesUploadFromFile as be, postPaymentIntentsIdCancel as xe, postPaymentLinks 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, getBankAccountsQueryKey as Ot, getBankDetailsIdOptions as kt, getBankDetailsOptions as At, getBankDetailsQueryKey as jt, getCounterpartsIdAddressesOptions as Mt, getCounterpartsIdAddressesQueryKey as Nt, getCounterpartsIdBankAccountsOptions as Pt, getCounterpartsIdBankAccountsQueryKey as Ft, getCounterpartsIdOptions as It, getCounterpartsIdQueryKey as Lt, getCounterpartsOptions as Rt, getCounterpartsQueryKey as zt, getCreditCardByIdOptions as Bt, getCreditCardByIdQueryKey as Vt, getCreditCardsOptions as Ht, getCreditCardsQueryKey as Ut, getDebitCardByIdOptions as Wt, getDebitCardByIdQueryKey as Gt, getDebitCardCredentialsOptions as Kt, getDebitCardsOptions as qt, getDebitCardsQueryKey as Jt, getDepartmentOptions as Yt, getDepartmentQueryKey as Xt, getDepositableBankAccountsOptions as Zt, getDocumentsIdNextNumbersOptions as Qt, getDocumentsIdNextNumbersQueryKey as $t, getEntitiesIdPaymentMethodsOptions as en, getEntitiesIdSettingsOptions as tn, getEntitiesIdSettingsQueryKey as nn, getEntityUsersOptions as rn, getExternalBankAccountAccessQueryKey as an, getExternalBankAccountOptions as on, getExternalBankAccountsOptions as sn, getExternalBankAccountsQueryKey as cn, getFilesQueryKey as ln, getLedgerAccountsQueryKey as un, getLocationOptions as dn, getLocationQueryKey as fn, getMeOptions as pn, getMeasureUnitsOptions as mn, getMeasureUnitsQueryKey as hn, getOrganizationOptions as gn, getOrganizationTransfersOptions as _n, getOrganizationTransfersQueryKey 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 { widgetTokenCacheId as Fr } from "./lib/widgetTokenCacheId.js";
6
- import { OrganizationStatus as Ir, isOrganizationOnItsWay as Lr } from "./lib/organizationStatus.js";
7
- import { withAuthEpoch as Rr, withAuthEpochInfinite as zr } from "./lib/withAuthEpoch.js";
8
- import { applicationStatusInvalidationKey as Br, applicationStatusQueryOptions as Vr } from "./lib/applicationStatusQueryOptions.js";
9
- import { createClientSecretInstaller as Hr } from "./lib/scopedClientSecret.js";
10
- 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";
11
- import { cloneEmbeddedClient as Xr, createEmbeddedClient as Zr } 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, postFiles as ae, postMeasureUnits as oe, postOverdueReminders as se, postPayables as ce, postPayablesIdApprovePaymentOperation as le, postPayablesIdAttachFile as ue, postPayablesIdCancel as de, postPayablesIdDuplicatesIdConfirm as fe, postPayablesIdDuplicatesIdDismiss as pe, postPayablesIdMarkAsPaid as me, postPayablesIdReject as he, postPayablesIdReopen as ge, postPayablesIdSchedulePayment as _e, postPayablesIdSubmitForApproval as ve, postPayablesIdValidate as ye, postPayablesUploadFromFile as be, postPaymentIntentsIdCancel as xe, postPaymentRecords as Se, postPaymentReminders 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, postReceivablesIdMarkAsUncollectible as Me, postReceivablesIdSend as Ne, postRecurrences as Pe, postRecurrencesIdCancel as Fe, postRecurrencesIdPause as Ie, postRecurrencesIdResume as Le, postTransactionsIdApprove as Re, postTransactionsIdReject as ze, postTransactionsIdReopen as Be, postTransactionsIdSubmit as Ve, putEntitiesIdLogo as He, putPayablesIdLineItems as Ue, updateDepartment as We, updateLocation as Ge, updateUser as Ke } from "./lib/rest/sdk.gen.js";
4
+ import { activateCreditCardMutation as qe, activateDebitCardMutation as Je, connectExternalBankAccountMutation as Ye, createAchMoneyMovementMutation as Xe, createApplicationMutation as Ze, createBankAccountMutation as Qe, createBookTransferMutation as $e, createCheckDepositMutation as et, createDebitCardMutation as tt, createVelocityControlMutation as nt, deleteApprovalPoliciesIdMutation as rt, deleteBankAccountApplicationMutation as it, deleteLedgerAccountsIdMutation as at, deleteReceiptsIdMutation as ot, disableUserMutation as st, getAnalyticsPayablesOptions as ct, getAnalyticsPayablesQueryKey as lt, getAnalyticsReceiptsOptions as ut, getAnalyticsReceiptsQueryKey as dt, getAnalyticsReceivablesOptions as ft, getAnalyticsReceivablesQueryKey as pt, getAnalyticsTransactionsOptions as mt, getAnalyticsTransactionsQueryKey as ht, getApprovalPoliciesOptions as gt, getApprovalPoliciesQueryKey as _t, getApprovalRequestsOptions as vt, getApprovalRequestsQueryKey as yt, getBankAccountAccessQueryKey as bt, getBankAccountApplicationOptions as xt, getBankAccountOptions as St, getBankAccountQueryKey as Ct, getBankAccountStatementsOptions as wt, getBankAccountTransactionsOptions as Tt, getBankAccountTransactionsQueryKey as Et, getBankAccountsQueryKey as Dt, getBankDetailsIdOptions as Ot, getBankDetailsOptions as kt, getBankDetailsQueryKey as At, getCounterpartsIdAddressesOptions as jt, getCounterpartsIdAddressesQueryKey as Mt, getCounterpartsIdBankAccountsOptions as Nt, getCounterpartsIdBankAccountsQueryKey as Pt, getCounterpartsIdOptions as Ft, getCounterpartsIdQueryKey as It, getCounterpartsOptions as Lt, getCounterpartsQueryKey as Rt, getCreditCardByIdOptions as zt, getCreditCardByIdQueryKey as Bt, getCreditCardsOptions as Vt, getCreditCardsQueryKey as Ht, getDebitCardByIdOptions as Ut, getDebitCardByIdQueryKey as Wt, getDebitCardCredentialsOptions as Gt, getDebitCardsOptions as Kt, getDebitCardsQueryKey as qt, getDepartmentOptions as Jt, getDepartmentQueryKey as Yt, getDepositableBankAccountsOptions as Xt, getDocumentsIdNextNumbersOptions as Zt, getDocumentsIdNextNumbersQueryKey as Qt, getEntitiesIdPaymentMethodsOptions as $t, getEntitiesIdSettingsOptions as en, getEntitiesIdSettingsQueryKey as tn, getEntityUsersOptions as nn, getExternalBankAccountAccessQueryKey as rn, getExternalBankAccountOptions as an, getExternalBankAccountsOptions as on, getExternalBankAccountsQueryKey as sn, getFilesQueryKey as cn, getLedgerAccountsQueryKey as ln, getLocationOptions as un, getLocationQueryKey as dn, getMeOptions as fn, getMeasureUnitsOptions as pn, getMeasureUnitsQueryKey as mn, getOrganizationOptions as hn, getOrganizationTransfersOptions as gn, getOrganizationTransfersQueryKey as _n, getOverdueRemindersOptions as vn, getOverdueRemindersQueryKey as yn, getPayablesIdHistoryOptions as bn, getPayablesIdHistoryQueryKey as xn, getPayablesIdLineItemsOptions as Sn, getPayablesIdLineItemsQueryKey as Cn, getPayablesIdOptions as wn, getPayablesIdQueryKey as Tn, getPayablesIdSuggestionsOptions as En, getPayablesOptions as Dn, getPayablesQueryKey as On, getPaymentRecordsOptions as kn, getPaymentRecordsQueryKey as An, getPaymentRemindersOptions as jn, getPaymentRemindersQueryKey as Mn, getProductsIdOptions as Nn, getProductsIdQueryKey as Pn, getProductsOptions as Fn, getProductsQueryKey as In, getReceiptsIdQueryKey as Ln, getReceiptsOptions as Rn, getReceiptsQueryKey as zn, getReceivablesIdHistoryQueryKey as Bn, getReceivablesIdMailsQueryKey as Vn, getReceivablesIdOptions as Hn, getReceivablesIdPdfLinkOptions as Un, getReceivablesIdPdfLinkQueryKey as Wn, getReceivablesIdQueryKey as Gn, getReceivablesOptions as Kn, getReceivablesQueryKey as qn, getReceivablesRequiredFieldsOptions as Jn, getRecurrencesIdOptions as Yn, getRecurrencesIdQueryKey as Xn, getRecurrencesQueryKey as Zn, getTransactionsIdExpenseHistoryOptions as Qn, getTransactionsIdExpenseHistoryQueryKey as $n, getTransactionsIdOptions as er, getTransactionsIdQueryKey as tr, getTransactionsOptions as nr, getTransactionsQueryKey as rr, getTransactionsValidationsOptions as ir, getTransactionsValidationsQueryKey as ar, getUsersOptions as or, getUsersQueryKey as sr, getVelocityControlsQueryKey as cr, grantBankAccountAccessMutation as lr, grantExternalBankAccountAccessMutation as ur, linkExternalBankAccountMutation as dr, listDepartmentsOptions as fr, listDepartmentsQueryKey as pr, listLocationsOptions as mr, listLocationsQueryKey as hr, listRolesQueryKey as gr, manageDebitCardAccessMutation as _r, patchApprovalPoliciesIdMutation as vr, patchLedgerAccountsIdMutation as yr, patchReceiptsIdMutation as br, postApprovalPoliciesMutation as xr, postLedgerAccountsMutation as Sr, postReceiptsUploadFromFileMutation as Cr, putTransactionsValidationsMutation as wr, setDebitCardLockStatusMutation as Tr, submitApplicationMutation as Er, unlinkExternalBankAccountMutation as Dr, updateApplicationMutation as Or, updateBankAccountMutation as kr, updateDebitCardMutation as Ar, updateExternalBankAccountMutation as jr, validateExternalBankAccountMutation as Mr, verifyDebitCardMutation as Nr } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { widgetTokenCacheId as Pr } from "./lib/widgetTokenCacheId.js";
6
+ import { OrganizationStatus as Fr, isOrganizationOnItsWay as Ir } from "./lib/organizationStatus.js";
7
+ import { withAuthEpoch as Lr, withAuthEpochInfinite as Rr } from "./lib/withAuthEpoch.js";
8
+ import { applicationStatusInvalidationKey as zr, applicationStatusQueryOptions as Br } from "./lib/applicationStatusQueryOptions.js";
9
+ import { createClientSecretInstaller as Vr } from "./lib/scopedClientSecret.js";
10
+ 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";
11
+ import { cloneEmbeddedClient as Yr, createEmbeddedClient as Xr } from "./lib/createEmbeddedClient.js";
12
12
  import "./lib/widgetGatewayHosts.js";
13
- import { attachTransportInterceptors as Qr } from "./lib/transportInterceptors.js";
14
- import { EmbedApiProvider as $r, useEmbedApi as ei } from "./lib/EmbedApiContext.js";
15
- import { optionalOrganizationHeaders as ti, organizationHeaders as ni } from "./lib/organizationHeaders.js";
16
- import { fetchWidgetInit as ri } from "./lib/fetchWidgetInit.js";
17
- import { hasAnyScope as ii } from "./lib/hasAnyScope.js";
18
- import { myEntityInvalidationKey as ai } from "./lib/queryKeys.js";
19
- import { useCurrentUserQuery as oi } from "./lib/useCurrentUserQuery.js";
20
- import { useMyEntityQuery as si } from "./lib/useMyEntityQuery.js";
21
- import { useMailboxAddress as ci } from "./lib/useMailboxAddress.js";
13
+ import { attachTransportInterceptors as Zr } from "./lib/transportInterceptors.js";
14
+ import { EmbedApiProvider as Qr, useEmbedApi as $r } from "./lib/EmbedApiContext.js";
15
+ import { optionalOrganizationHeaders as ei, organizationHeaders as ti } from "./lib/organizationHeaders.js";
16
+ import { fetchWidgetInit as ni } from "./lib/fetchWidgetInit.js";
17
+ import { hasAnyScope as ri } from "./lib/hasAnyScope.js";
18
+ import { myEntityInvalidationKey as ii } from "./lib/queryKeys.js";
19
+ import { useCurrentUserQuery as ai } from "./lib/useCurrentUserQuery.js";
20
+ import { useMyEntityQuery as oi } from "./lib/useMyEntityQuery.js";
21
+ import { useMailboxAddress as si } from "./lib/useMailboxAddress.js";
22
22
  import "./lib/apiErrorStatus.js";
23
- import { isApiConflictError as li } from "./lib/isApiConflictError.js";
24
- import { isApiForbiddenError as ui } from "./lib/isApiForbiddenError.js";
25
- import { isApiNotFoundError as di } from "./lib/isApiNotFoundError.js";
26
- import { isApiUnprocessableError as fi } from "./lib/isApiUnprocessableError.js";
23
+ import { isApiConflictError as ci } from "./lib/isApiConflictError.js";
24
+ import { isApiForbiddenError as li } from "./lib/isApiForbiddenError.js";
25
+ import { isApiNotFoundError as ui } from "./lib/isApiNotFoundError.js";
26
+ import { isApiUnprocessableError as di } from "./lib/isApiUnprocessableError.js";
27
27
  import "./lib/isUserDataNotFoundError.js";
28
- import { useGetUserDataQuery as pi } from "./lib/useGetUserDataQuery.js";
29
- import { useUpsertUserDataMutation as mi } from "./lib/useUpsertUserDataMutation.js";
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 { useOrganizationQuery as Oi } from "./lib/organization/useOrganizationQuery.js";
39
- import { useAllOrganizationRolesQuery as ki } from "./lib/role/useAllOrganizationRolesQuery.js";
40
- import { useRolePermissionsQueries as Ai } from "./lib/role/useRolePermissionsQueries.js";
41
- import { useAllOrganizationUsersQuery as ji } from "./lib/user/useAllOrganizationUsersQuery.js";
42
- import { personDisclosure as Mi } from "./lib/disclosures/personDisclosure.js";
43
- import { useAcceptWidgetDisclosures as Ni } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
44
- import { useDisclosuresQuery as Pi } from "./lib/disclosures/useDisclosuresQuery.js";
45
- import { OnboardingSuppressionReason as Fi } from "./lib/onboardingSuppressionReason.js";
46
- import { useOrganizationOnboardingSuppression as Ii } from "./lib/useOrganizationOnboardingSuppression.js";
47
- import { useOrganizationApplicationStatus as Li } from "./lib/useOrganizationApplicationStatus.js";
48
- export { $r as EmbedApiProvider, Fi as OnboardingSuppressionReason, Ir as OrganizationStatus, hi as Scope, Je as activateCreditCardMutation, Ye 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, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Hr as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, Zr 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, ri as fetchWidgetInit, _i as getAllPagesNextPageParam, vi 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 getBankAccountsQueryKey, kt as getBankDetailsIdOptions, At as getBankDetailsOptions, jt as getBankDetailsQueryKey, C as getCounterparts, Mt as getCounterpartsIdAddressesOptions, Nt as getCounterpartsIdAddressesQueryKey, Pt as getCounterpartsIdBankAccountsOptions, Ft as getCounterpartsIdBankAccountsQueryKey, It as getCounterpartsIdOptions, Lt as getCounterpartsIdQueryKey, Rt as getCounterpartsOptions, zt as getCounterpartsQueryKey, Bt as getCreditCardByIdOptions, Vt as getCreditCardByIdQueryKey, Ht as getCreditCardsOptions, Ut as getCreditCardsQueryKey, Wt as getDebitCardByIdOptions, Gt as getDebitCardByIdQueryKey, Kt as getDebitCardCredentialsOptions, qt as getDebitCardsOptions, Jt as getDebitCardsQueryKey, w as getDepartment, Yt as getDepartmentOptions, Xt as getDepartmentQueryKey, T as getDepositableBankAccounts, Zt as getDepositableBankAccountsOptions, Qt as getDocumentsIdNextNumbersOptions, $t as getDocumentsIdNextNumbersQueryKey, en as getEntitiesIdPaymentMethodsOptions, tn as getEntitiesIdSettingsOptions, nn as getEntitiesIdSettingsQueryKey, rn as getEntityUsersOptions, E as getExternalBankAccountAccess, an as getExternalBankAccountAccessQueryKey, on as getExternalBankAccountOptions, sn as getExternalBankAccountsOptions, cn as getExternalBankAccountsQueryKey, ln as getFilesQueryKey, un as getLedgerAccountsQueryKey, D as getLocation, dn as getLocationOptions, fn as getLocationQueryKey, pn as getMeOptions, mn as getMeasureUnitsOptions, hn as getMeasureUnitsQueryKey, gn as getOrganizationOptions, _n as getOrganizationTransfersOptions, vn as getOrganizationTransfersQueryKey, 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, 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, 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, ai as myEntityInvalidationKey, ti as optionalOrganizationHeaders, ni 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, Mi as personDisclosure, Sr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postFiles, Cr as postLedgerAccountsMutation, oe as postMeasureUnits, se as postOverdueReminders, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postPaymentLinks, 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, Gr as registerQueryClient, Kr as removeInactiveFromAllClients, qr as resetAllClients, Jr as setAllClientsQueriesData, Er as setDebitCardLockStatusMutation, Dr as submitApplicationMutation, Or as unlinkExternalBankAccountMutation, Yr as unregisterQueryClient, kr as updateApplicationMutation, Ar as updateBankAccountMutation, jr as updateDebitCardMutation, Ge as updateDepartment, Mr as updateExternalBankAccountMutation, Ke as updateLocation, qe as updateUser, Ni as useAcceptWidgetDisclosures, xi as useAllBankAccountsQuery, Si as useAllDebitCardsQuery, Ci as useAllExternalBankAccountsQuery, Ti as useAllLedgerAccountsQuery, wi as useAllMerchantCategoryGroupsQuery, ki as useAllOrganizationRolesQuery, ji as useAllOrganizationUsersQuery, bi as useAutoFetchNextPage, oi as useCurrentUserQuery, Pi as useDisclosuresQuery, ei as useEmbedApi, pi as useGetUserDataQuery, Ei as useLedgerAccountsQuery, ci as useMailboxAddress, si as useMyEntityQuery, Li as useOrganizationApplicationStatus, Ii as useOrganizationOnboardingSuppression, Oi as useOrganizationQuery, Di as usePaymentTermsQuery, Ai as useRolePermissionsQueries, mi as useUpsertUserDataMutation, Nr as validateExternalBankAccountMutation, Pr as verifyDebitCardMutation, Fr as widgetTokenCacheId, Rr as withAuthEpoch, zr as withAuthEpochInfinite };
28
+ import { useGetUserDataQuery as fi } from "./lib/useGetUserDataQuery.js";
29
+ import { useUpsertUserDataMutation as pi } from "./lib/useUpsertUserDataMutation.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 { useOrganizationQuery as Di } from "./lib/organization/useOrganizationQuery.js";
39
+ import { useAllOrganizationRolesQuery as Oi } from "./lib/role/useAllOrganizationRolesQuery.js";
40
+ import { useRolePermissionsQueries as ki } from "./lib/role/useRolePermissionsQueries.js";
41
+ import { useAllOrganizationUsersQuery as Ai } from "./lib/user/useAllOrganizationUsersQuery.js";
42
+ import { personDisclosure as ji } from "./lib/disclosures/personDisclosure.js";
43
+ import { useAcceptWidgetDisclosures as Mi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
44
+ import { useDisclosuresQuery as Ni } from "./lib/disclosures/useDisclosuresQuery.js";
45
+ import { OnboardingSuppressionReason as Pi } from "./lib/onboardingSuppressionReason.js";
46
+ import { useOrganizationOnboardingSuppression as Fi } from "./lib/useOrganizationOnboardingSuppression.js";
47
+ import { useOrganizationApplicationStatus as Ii } from "./lib/useOrganizationApplicationStatus.js";
48
+ export { Qr as EmbedApiProvider, Pi as OnboardingSuppressionReason, Fr as OrganizationStatus, mi as Scope, qe as activateCreditCardMutation, Je 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, Ye as connectExternalBankAccountMutation, Xe as createAchMoneyMovementMutation, Ze as createApplicationMutation, Qe as createBankAccountMutation, $e as createBookTransferMutation, et as createCheckDepositMutation, Vr as createClientSecretInstaller, tt as createDebitCardMutation, r as createDepartment, Xr as createEmbeddedClient, i as createLocation, a as createUser, nt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, rt as deleteApprovalPoliciesIdMutation, it as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, at as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, ot as deleteReceiptsIdMutation, g as deleteReceivablesId, st as disableUserMutation, _ as downloadBankAccountTransactions, ni as fetchWidgetInit, gi as getAllPagesNextPageParam, _i as getAllPagesNextPaginationTokenParam, ct as getAnalyticsPayablesOptions, lt as getAnalyticsPayablesQueryKey, ut as getAnalyticsReceiptsOptions, dt as getAnalyticsReceiptsQueryKey, ft as getAnalyticsReceivablesOptions, pt as getAnalyticsReceivablesQueryKey, mt as getAnalyticsTransactionsOptions, ht as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, gt as getApprovalPoliciesOptions, _t as getApprovalPoliciesQueryKey, b as getApprovalRequests, vt as getApprovalRequestsOptions, yt as getApprovalRequestsQueryKey, x as getBankAccountAccess, bt as getBankAccountAccessQueryKey, xt as getBankAccountApplicationOptions, St as getBankAccountOptions, Ct as getBankAccountQueryKey, S as getBankAccountStatement, wt as getBankAccountStatementsOptions, Tt as getBankAccountTransactionsOptions, Et as getBankAccountTransactionsQueryKey, Dt as getBankAccountsQueryKey, Ot as getBankDetailsIdOptions, kt as getBankDetailsOptions, At as getBankDetailsQueryKey, C as getCounterparts, jt as getCounterpartsIdAddressesOptions, Mt as getCounterpartsIdAddressesQueryKey, Nt as getCounterpartsIdBankAccountsOptions, Pt as getCounterpartsIdBankAccountsQueryKey, Ft as getCounterpartsIdOptions, It as getCounterpartsIdQueryKey, Lt as getCounterpartsOptions, Rt as getCounterpartsQueryKey, zt as getCreditCardByIdOptions, Bt as getCreditCardByIdQueryKey, Vt as getCreditCardsOptions, Ht as getCreditCardsQueryKey, Ut as getDebitCardByIdOptions, Wt as getDebitCardByIdQueryKey, Gt as getDebitCardCredentialsOptions, Kt as getDebitCardsOptions, qt as getDebitCardsQueryKey, w as getDepartment, Jt as getDepartmentOptions, Yt as getDepartmentQueryKey, T as getDepositableBankAccounts, Xt as getDepositableBankAccountsOptions, Zt as getDocumentsIdNextNumbersOptions, Qt as getDocumentsIdNextNumbersQueryKey, $t as getEntitiesIdPaymentMethodsOptions, en as getEntitiesIdSettingsOptions, tn as getEntitiesIdSettingsQueryKey, nn as getEntityUsersOptions, E as getExternalBankAccountAccess, rn as getExternalBankAccountAccessQueryKey, an as getExternalBankAccountOptions, on as getExternalBankAccountsOptions, sn as getExternalBankAccountsQueryKey, cn as getFilesQueryKey, ln as getLedgerAccountsQueryKey, D as getLocation, un as getLocationOptions, dn as getLocationQueryKey, fn as getMeOptions, pn as getMeasureUnitsOptions, mn as getMeasureUnitsQueryKey, hn as getOrganizationOptions, gn as getOrganizationTransfersOptions, _n as getOrganizationTransfersQueryKey, vn as getOverdueRemindersOptions, yn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, bn as getPayablesIdHistoryOptions, xn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, Sn as getPayablesIdLineItemsOptions, Cn as getPayablesIdLineItemsQueryKey, wn as getPayablesIdOptions, Tn as getPayablesIdQueryKey, En as getPayablesIdSuggestionsOptions, Dn as getPayablesOptions, On as getPayablesQueryKey, M as getPaymentRecords, kn as getPaymentRecordsOptions, An as getPaymentRecordsQueryKey, jn as getPaymentRemindersOptions, Mn as getPaymentRemindersQueryKey, N as getProducts, Nn as getProductsIdOptions, Pn as getProductsIdQueryKey, Fn as getProductsOptions, In as getProductsQueryKey, P as getReceipts, Ln as getReceiptsIdQueryKey, Rn as getReceiptsOptions, zn as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Bn as getReceivablesIdHistoryQueryKey, Vn as getReceivablesIdMailsQueryKey, Hn as getReceivablesIdOptions, Un as getReceivablesIdPdfLinkOptions, Wn as getReceivablesIdPdfLinkQueryKey, Gn as getReceivablesIdQueryKey, Kn as getReceivablesOptions, qn as getReceivablesQueryKey, Jn as getReceivablesRequiredFieldsOptions, Yn as getRecurrencesIdOptions, Xn as getRecurrencesIdQueryKey, Zn as getRecurrencesQueryKey, Qn as getTransactionsIdExpenseHistoryOptions, $n as getTransactionsIdExpenseHistoryQueryKey, er as getTransactionsIdOptions, tr as getTransactionsIdQueryKey, nr as getTransactionsOptions, rr as getTransactionsQueryKey, ir as getTransactionsValidationsOptions, ar as getTransactionsValidationsQueryKey, L as getUsers, or as getUsersOptions, sr as getUsersQueryKey, cr as getVelocityControlsQueryKey, lr as grantBankAccountAccessMutation, ur 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, dr as linkExternalBankAccountMutation, R as listDepartments, fr as listDepartmentsOptions, pr as listDepartmentsQueryKey, z as listLocations, mr as listLocationsOptions, hr as listLocationsQueryKey, B as listRoles, gr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, _r as manageDebitCardAccessMutation, ii as myEntityInvalidationKey, ei as optionalOrganizationHeaders, ti as organizationHeaders, vr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, yr as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, br as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, ji as personDisclosure, xr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postFiles, Sr as postLedgerAccountsMutation, oe as postMeasureUnits, se as postOverdueReminders, ce as postPayables, le as postPayablesIdApprovePaymentOperation, ue as postPayablesIdAttachFile, de as postPayablesIdCancel, fe as postPayablesIdDuplicatesIdConfirm, pe as postPayablesIdDuplicatesIdDismiss, me as postPayablesIdMarkAsPaid, he as postPayablesIdReject, ge as postPayablesIdReopen, _e as postPayablesIdSchedulePayment, ve as postPayablesIdSubmitForApproval, ye as postPayablesIdValidate, be as postPayablesUploadFromFile, xe as postPaymentIntentsIdCancel, Se as postPaymentRecords, Ce as postPaymentReminders, we as postProducts, Cr as postReceiptsUploadFromFileMutation, Te as postReceivables, Ee as postReceivablesIdAccept, De as postReceivablesIdCancel, Oe as postReceivablesIdClone, ke as postReceivablesIdDecline, Ae as postReceivablesIdIssue, je as postReceivablesIdMarkAsPaid, Me as postReceivablesIdMarkAsUncollectible, Ne as postReceivablesIdSend, Pe as postRecurrences, Fe as postRecurrencesIdCancel, Ie as postRecurrencesIdPause, Le as postRecurrencesIdResume, Re as postTransactionsIdApprove, ze as postTransactionsIdReject, Be as postTransactionsIdReopen, Ve as postTransactionsIdSubmit, He as putEntitiesIdLogo, Ue as putPayablesIdLineItems, wr as putTransactionsValidationsMutation, Wr as registerQueryClient, Gr as removeInactiveFromAllClients, Kr as resetAllClients, qr as setAllClientsQueriesData, Tr as setDebitCardLockStatusMutation, Er as submitApplicationMutation, Dr as unlinkExternalBankAccountMutation, Jr as unregisterQueryClient, Or as updateApplicationMutation, kr as updateBankAccountMutation, Ar as updateDebitCardMutation, We as updateDepartment, jr as updateExternalBankAccountMutation, Ge as updateLocation, Ke as updateUser, Mi as useAcceptWidgetDisclosures, bi as useAllBankAccountsQuery, xi as useAllDebitCardsQuery, Si as useAllExternalBankAccountsQuery, wi as useAllLedgerAccountsQuery, Ci as useAllMerchantCategoryGroupsQuery, Oi as useAllOrganizationRolesQuery, Ai as useAllOrganizationUsersQuery, yi as useAutoFetchNextPage, ai as useCurrentUserQuery, Ni as useDisclosuresQuery, $r as useEmbedApi, fi as useGetUserDataQuery, Ti as useLedgerAccountsQuery, si as useMailboxAddress, oi as useMyEntityQuery, Ii as useOrganizationApplicationStatus, Fi as useOrganizationOnboardingSuppression, Di as useOrganizationQuery, Ei as usePaymentTermsQuery, ki as useRolePermissionsQueries, pi as useUpsertUserDataMutation, Mr as validateExternalBankAccountMutation, Nr as verifyDebitCardMutation, Pr as widgetTokenCacheId, Lr as withAuthEpoch, Rr as withAuthEpochInfinite };
@@ -1278,19 +1278,7 @@ var n = (e) => (e.client ?? t).post({
1278
1278
  }],
1279
1279
  url: "/finops/v1/payment-intents/{payment_intent_id}/cancel",
1280
1280
  ...e
1281
- }), ft = (e) => (e.client ?? t).post({
1282
- security: [{
1283
- key: "HTTPBearer",
1284
- scheme: "bearer",
1285
- type: "http"
1286
- }],
1287
- url: "/finops/v1/payment-links",
1288
- ...e,
1289
- headers: {
1290
- "Content-Type": "application/json",
1291
- ...e.headers
1292
- }
1293
- }), pt = (e) => (e.client ?? t).get({
1281
+ }), ft = (e) => (e.client ?? t).get({
1294
1282
  security: [{
1295
1283
  key: "HTTPBearer",
1296
1284
  scheme: "bearer",
@@ -1298,7 +1286,7 @@ var n = (e) => (e.client ?? t).post({
1298
1286
  }],
1299
1287
  url: "/finops/v1/payment-records",
1300
1288
  ...e
1301
- }), mt = (e) => (e.client ?? t).post({
1289
+ }), pt = (e) => (e.client ?? t).post({
1302
1290
  security: [{
1303
1291
  key: "HTTPBearer",
1304
1292
  scheme: "bearer",
@@ -1310,7 +1298,7 @@ var n = (e) => (e.client ?? t).post({
1310
1298
  "Content-Type": "application/json",
1311
1299
  ...e.headers
1312
1300
  }
1313
- }), ht = (e) => (e.client ?? t).get({
1301
+ }), mt = (e) => (e.client ?? t).get({
1314
1302
  security: [{
1315
1303
  key: "HTTPBearer",
1316
1304
  scheme: "bearer",
@@ -1318,7 +1306,7 @@ var n = (e) => (e.client ?? t).post({
1318
1306
  }],
1319
1307
  url: "/finops/v1/payment-reminders",
1320
1308
  ...e
1321
- }), gt = (e) => (e.client ?? t).post({
1309
+ }), ht = (e) => (e.client ?? t).post({
1322
1310
  security: [{
1323
1311
  key: "HTTPBearer",
1324
1312
  scheme: "bearer",
@@ -1330,7 +1318,7 @@ var n = (e) => (e.client ?? t).post({
1330
1318
  "Content-Type": "application/json",
1331
1319
  ...e.headers
1332
1320
  }
1333
- }), _t = (e) => (e.client ?? t).get({
1321
+ }), gt = (e) => (e.client ?? t).get({
1334
1322
  security: [{
1335
1323
  key: "HTTPBearer",
1336
1324
  scheme: "bearer",
@@ -1338,7 +1326,7 @@ var n = (e) => (e.client ?? t).post({
1338
1326
  }],
1339
1327
  url: "/finops/v1/payment-terms",
1340
1328
  ...e
1341
- }), vt = (e) => (e.client ?? t).get({
1329
+ }), _t = (e) => (e.client ?? t).get({
1342
1330
  security: [{
1343
1331
  key: "HTTPBearer",
1344
1332
  scheme: "bearer",
@@ -1346,7 +1334,7 @@ var n = (e) => (e.client ?? t).post({
1346
1334
  }],
1347
1335
  url: "/finops/v1/products",
1348
1336
  ...e
1349
- }), yt = (e) => (e.client ?? t).post({
1337
+ }), vt = (e) => (e.client ?? t).post({
1350
1338
  security: [{
1351
1339
  key: "HTTPBearer",
1352
1340
  scheme: "bearer",
@@ -1358,7 +1346,7 @@ var n = (e) => (e.client ?? t).post({
1358
1346
  "Content-Type": "application/json",
1359
1347
  ...e.headers
1360
1348
  }
1361
- }), bt = (e) => (e.client ?? t).delete({
1349
+ }), yt = (e) => (e.client ?? t).delete({
1362
1350
  security: [{
1363
1351
  key: "HTTPBearer",
1364
1352
  scheme: "bearer",
@@ -1366,7 +1354,7 @@ var n = (e) => (e.client ?? t).post({
1366
1354
  }],
1367
1355
  url: "/finops/v1/products/{product_id}",
1368
1356
  ...e
1369
- }), xt = (e) => (e.client ?? t).get({
1357
+ }), bt = (e) => (e.client ?? t).get({
1370
1358
  security: [{
1371
1359
  key: "HTTPBearer",
1372
1360
  scheme: "bearer",
@@ -1374,7 +1362,7 @@ var n = (e) => (e.client ?? t).post({
1374
1362
  }],
1375
1363
  url: "/finops/v1/products/{product_id}",
1376
1364
  ...e
1377
- }), St = (e) => (e.client ?? t).patch({
1365
+ }), xt = (e) => (e.client ?? t).patch({
1378
1366
  security: [{
1379
1367
  key: "HTTPBearer",
1380
1368
  scheme: "bearer",
@@ -1386,7 +1374,7 @@ var n = (e) => (e.client ?? t).post({
1386
1374
  "Content-Type": "application/json",
1387
1375
  ...e.headers
1388
1376
  }
1389
- }), Ct = (e) => (e.client ?? t).get({
1377
+ }), St = (e) => (e.client ?? t).get({
1390
1378
  security: [{
1391
1379
  key: "HTTPBearer",
1392
1380
  scheme: "bearer",
@@ -1394,7 +1382,7 @@ var n = (e) => (e.client ?? t).post({
1394
1382
  }],
1395
1383
  url: "/finops/v1/receipts",
1396
1384
  ...e
1397
- }), wt = (n) => (n.client ?? t).post({
1385
+ }), Ct = (n) => (n.client ?? t).post({
1398
1386
  ...e,
1399
1387
  security: [{
1400
1388
  key: "HTTPBearer",
@@ -1407,7 +1395,7 @@ var n = (e) => (e.client ?? t).post({
1407
1395
  "Content-Type": null,
1408
1396
  ...n.headers
1409
1397
  }
1410
- }), Tt = (e) => (e.client ?? t).delete({
1398
+ }), wt = (e) => (e.client ?? t).delete({
1411
1399
  security: [{
1412
1400
  key: "HTTPBearer",
1413
1401
  scheme: "bearer",
@@ -1415,7 +1403,7 @@ var n = (e) => (e.client ?? t).post({
1415
1403
  }],
1416
1404
  url: "/finops/v1/receipts/{receipt_id}",
1417
1405
  ...e
1418
- }), Et = (e) => (e.client ?? t).patch({
1406
+ }), Tt = (e) => (e.client ?? t).patch({
1419
1407
  security: [{
1420
1408
  key: "HTTPBearer",
1421
1409
  scheme: "bearer",
@@ -1427,7 +1415,7 @@ var n = (e) => (e.client ?? t).post({
1427
1415
  "Content-Type": "application/json",
1428
1416
  ...e.headers
1429
1417
  }
1430
- }), Dt = (e) => (e.client ?? t).get({
1418
+ }), Et = (e) => (e.client ?? t).get({
1431
1419
  security: [{
1432
1420
  key: "HTTPBearer",
1433
1421
  scheme: "bearer",
@@ -1435,7 +1423,7 @@ var n = (e) => (e.client ?? t).post({
1435
1423
  }],
1436
1424
  url: "/finops/v1/receivables",
1437
1425
  ...e
1438
- }), Ot = (e) => (e.client ?? t).post({
1426
+ }), Dt = (e) => (e.client ?? t).post({
1439
1427
  security: [{
1440
1428
  key: "HTTPBearer",
1441
1429
  scheme: "bearer",
@@ -1447,7 +1435,7 @@ var n = (e) => (e.client ?? t).post({
1447
1435
  "Content-Type": "application/json",
1448
1436
  ...e.headers
1449
1437
  }
1450
- }), kt = (e) => (e.client ?? t).get({
1438
+ }), Ot = (e) => (e.client ?? t).get({
1451
1439
  security: [{
1452
1440
  key: "HTTPBearer",
1453
1441
  scheme: "bearer",
@@ -1455,7 +1443,7 @@ var n = (e) => (e.client ?? t).post({
1455
1443
  }],
1456
1444
  url: "/finops/v1/receivables/required-fields",
1457
1445
  ...e
1458
- }), At = (e) => (e.client ?? t).delete({
1446
+ }), kt = (e) => (e.client ?? t).delete({
1459
1447
  security: [{
1460
1448
  key: "HTTPBearer",
1461
1449
  scheme: "bearer",
@@ -1463,7 +1451,7 @@ var n = (e) => (e.client ?? t).post({
1463
1451
  }],
1464
1452
  url: "/finops/v1/receivables/{receivable_id}",
1465
1453
  ...e
1466
- }), jt = (e) => (e.client ?? t).get({
1454
+ }), At = (e) => (e.client ?? t).get({
1467
1455
  security: [{
1468
1456
  key: "HTTPBearer",
1469
1457
  scheme: "bearer",
@@ -1471,7 +1459,7 @@ var n = (e) => (e.client ?? t).post({
1471
1459
  }],
1472
1460
  url: "/finops/v1/receivables/{receivable_id}",
1473
1461
  ...e
1474
- }), Mt = (e) => (e.client ?? t).patch({
1462
+ }), jt = (e) => (e.client ?? t).patch({
1475
1463
  security: [{
1476
1464
  key: "HTTPBearer",
1477
1465
  scheme: "bearer",
@@ -1483,7 +1471,7 @@ var n = (e) => (e.client ?? t).post({
1483
1471
  "Content-Type": "application/json",
1484
1472
  ...e.headers
1485
1473
  }
1486
- }), Nt = (e) => (e.client ?? t).post({
1474
+ }), Mt = (e) => (e.client ?? t).post({
1487
1475
  security: [{
1488
1476
  key: "HTTPBearer",
1489
1477
  scheme: "bearer",
@@ -1495,7 +1483,7 @@ var n = (e) => (e.client ?? t).post({
1495
1483
  "Content-Type": "application/json",
1496
1484
  ...e.headers
1497
1485
  }
1498
- }), Pt = (e) => (e.client ?? t).post({
1486
+ }), Nt = (e) => (e.client ?? t).post({
1499
1487
  security: [{
1500
1488
  key: "HTTPBearer",
1501
1489
  scheme: "bearer",
@@ -1503,7 +1491,7 @@ var n = (e) => (e.client ?? t).post({
1503
1491
  }],
1504
1492
  url: "/finops/v1/receivables/{receivable_id}/cancel",
1505
1493
  ...e
1506
- }), Ft = (e) => (e.client ?? t).post({
1494
+ }), Pt = (e) => (e.client ?? t).post({
1507
1495
  security: [{
1508
1496
  key: "HTTPBearer",
1509
1497
  scheme: "bearer",
@@ -1511,7 +1499,7 @@ var n = (e) => (e.client ?? t).post({
1511
1499
  }],
1512
1500
  url: "/finops/v1/receivables/{receivable_id}/clone",
1513
1501
  ...e
1514
- }), It = (e) => (e.client ?? t).post({
1502
+ }), Ft = (e) => (e.client ?? t).post({
1515
1503
  security: [{
1516
1504
  key: "HTTPBearer",
1517
1505
  scheme: "bearer",
@@ -1523,7 +1511,7 @@ var n = (e) => (e.client ?? t).post({
1523
1511
  "Content-Type": "application/json",
1524
1512
  ...e.headers
1525
1513
  }
1526
- }), Lt = (e) => (e.client ?? t).get({
1514
+ }), It = (e) => (e.client ?? t).get({
1527
1515
  security: [{
1528
1516
  key: "HTTPBearer",
1529
1517
  scheme: "bearer",
@@ -1531,7 +1519,7 @@ var n = (e) => (e.client ?? t).post({
1531
1519
  }],
1532
1520
  url: "/finops/v1/receivables/{receivable_id}/history",
1533
1521
  ...e
1534
- }), Rt = (e) => (e.client ?? t).post({
1522
+ }), Lt = (e) => (e.client ?? t).post({
1535
1523
  security: [{
1536
1524
  key: "HTTPBearer",
1537
1525
  scheme: "bearer",
@@ -1539,7 +1527,7 @@ var n = (e) => (e.client ?? t).post({
1539
1527
  }],
1540
1528
  url: "/finops/v1/receivables/{receivable_id}/issue",
1541
1529
  ...e
1542
- }), zt = (e) => (e.client ?? t).post({
1530
+ }), Rt = (e) => (e.client ?? t).post({
1543
1531
  security: [{
1544
1532
  key: "HTTPBearer",
1545
1533
  scheme: "bearer",
@@ -1551,7 +1539,7 @@ var n = (e) => (e.client ?? t).post({
1551
1539
  "Content-Type": "application/json",
1552
1540
  ...e.headers
1553
1541
  }
1554
- }), Bt = (e) => (e.client ?? t).post({
1542
+ }), zt = (e) => (e.client ?? t).post({
1555
1543
  security: [{
1556
1544
  key: "HTTPBearer",
1557
1545
  scheme: "bearer",
@@ -1563,7 +1551,7 @@ var n = (e) => (e.client ?? t).post({
1563
1551
  "Content-Type": "application/json",
1564
1552
  ...e.headers
1565
1553
  }
1566
- }), Vt = (e) => (e.client ?? t).get({
1554
+ }), Bt = (e) => (e.client ?? t).get({
1567
1555
  security: [{
1568
1556
  key: "HTTPBearer",
1569
1557
  scheme: "bearer",
@@ -1571,7 +1559,7 @@ var n = (e) => (e.client ?? t).post({
1571
1559
  }],
1572
1560
  url: "/finops/v1/receivables/{receivable_id}/pdf-link",
1573
1561
  ...e
1574
- }), Ht = (e) => (e.client ?? t).post({
1562
+ }), Vt = (e) => (e.client ?? t).post({
1575
1563
  security: [{
1576
1564
  key: "HTTPBearer",
1577
1565
  scheme: "bearer",
@@ -1583,7 +1571,7 @@ var n = (e) => (e.client ?? t).post({
1583
1571
  "Content-Type": "application/json",
1584
1572
  ...e.headers
1585
1573
  }
1586
- }), Ut = (e) => (e.client ?? t).post({
1574
+ }), Ht = (e) => (e.client ?? t).post({
1587
1575
  security: [{
1588
1576
  key: "HTTPBearer",
1589
1577
  scheme: "bearer",
@@ -1595,7 +1583,7 @@ var n = (e) => (e.client ?? t).post({
1595
1583
  "Content-Type": "application/json",
1596
1584
  ...e.headers
1597
1585
  }
1598
- }), Wt = (e) => (e.client ?? t).get({
1586
+ }), Ut = (e) => (e.client ?? t).get({
1599
1587
  security: [{
1600
1588
  key: "HTTPBearer",
1601
1589
  scheme: "bearer",
@@ -1603,7 +1591,7 @@ var n = (e) => (e.client ?? t).post({
1603
1591
  }],
1604
1592
  url: "/finops/v1/recurrences/{recurrence_id}",
1605
1593
  ...e
1606
- }), Gt = (e) => (e.client ?? t).patch({
1594
+ }), Wt = (e) => (e.client ?? t).patch({
1607
1595
  security: [{
1608
1596
  key: "HTTPBearer",
1609
1597
  scheme: "bearer",
@@ -1615,7 +1603,7 @@ var n = (e) => (e.client ?? t).post({
1615
1603
  "Content-Type": "application/json",
1616
1604
  ...e.headers
1617
1605
  }
1618
- }), Kt = (e) => (e.client ?? t).post({
1606
+ }), Gt = (e) => (e.client ?? t).post({
1619
1607
  security: [{
1620
1608
  key: "HTTPBearer",
1621
1609
  scheme: "bearer",
@@ -1623,7 +1611,7 @@ var n = (e) => (e.client ?? t).post({
1623
1611
  }],
1624
1612
  url: "/finops/v1/recurrences/{recurrence_id}/cancel",
1625
1613
  ...e
1626
- }), qt = (e) => (e.client ?? t).post({
1614
+ }), Kt = (e) => (e.client ?? t).post({
1627
1615
  security: [{
1628
1616
  key: "HTTPBearer",
1629
1617
  scheme: "bearer",
@@ -1631,7 +1619,7 @@ var n = (e) => (e.client ?? t).post({
1631
1619
  }],
1632
1620
  url: "/finops/v1/recurrences/{recurrence_id}/pause",
1633
1621
  ...e
1634
- }), Jt = (e) => (e.client ?? t).post({
1622
+ }), qt = (e) => (e.client ?? t).post({
1635
1623
  security: [{
1636
1624
  key: "HTTPBearer",
1637
1625
  scheme: "bearer",
@@ -1639,7 +1627,7 @@ var n = (e) => (e.client ?? t).post({
1639
1627
  }],
1640
1628
  url: "/finops/v1/recurrences/{recurrence_id}/resume",
1641
1629
  ...e
1642
- }), Yt = (e) => (e.client ?? t).get({
1630
+ }), Jt = (e) => (e.client ?? t).get({
1643
1631
  security: [{
1644
1632
  key: "HTTPBearer",
1645
1633
  scheme: "bearer",
@@ -1647,7 +1635,7 @@ var n = (e) => (e.client ?? t).post({
1647
1635
  }],
1648
1636
  url: "/finops/v1/transactions",
1649
1637
  ...e
1650
- }), Xt = (e) => (e.client ?? t).get({
1638
+ }), Yt = (e) => (e.client ?? t).get({
1651
1639
  security: [{
1652
1640
  key: "HTTPBearer",
1653
1641
  scheme: "bearer",
@@ -1655,7 +1643,7 @@ var n = (e) => (e.client ?? t).post({
1655
1643
  }],
1656
1644
  url: "/finops/v1/transactions/validations",
1657
1645
  ...e
1658
- }), Zt = (e) => (e.client ?? t).put({
1646
+ }), Xt = (e) => (e.client ?? t).put({
1659
1647
  security: [{
1660
1648
  key: "HTTPBearer",
1661
1649
  scheme: "bearer",
@@ -1667,7 +1655,7 @@ var n = (e) => (e.client ?? t).post({
1667
1655
  "Content-Type": "application/json",
1668
1656
  ...e.headers
1669
1657
  }
1670
- }), Qt = (e) => (e.client ?? t).get({
1658
+ }), Zt = (e) => (e.client ?? t).get({
1671
1659
  security: [{
1672
1660
  key: "HTTPBearer",
1673
1661
  scheme: "bearer",
@@ -1675,7 +1663,7 @@ var n = (e) => (e.client ?? t).post({
1675
1663
  }],
1676
1664
  url: "/finops/v1/transactions/{transaction_id}",
1677
1665
  ...e
1678
- }), $t = (e) => (e.client ?? t).patch({
1666
+ }), Qt = (e) => (e.client ?? t).patch({
1679
1667
  security: [{
1680
1668
  key: "HTTPBearer",
1681
1669
  scheme: "bearer",
@@ -1687,7 +1675,7 @@ var n = (e) => (e.client ?? t).post({
1687
1675
  "Content-Type": "application/json",
1688
1676
  ...e.headers
1689
1677
  }
1690
- }), en = (e) => (e.client ?? t).post({
1678
+ }), $t = (e) => (e.client ?? t).post({
1691
1679
  security: [{
1692
1680
  key: "HTTPBearer",
1693
1681
  scheme: "bearer",
@@ -1695,7 +1683,7 @@ var n = (e) => (e.client ?? t).post({
1695
1683
  }],
1696
1684
  url: "/finops/v1/transactions/{transaction_id}/approve",
1697
1685
  ...e
1698
- }), tn = (e) => (e.client ?? t).get({
1686
+ }), en = (e) => (e.client ?? t).get({
1699
1687
  security: [{
1700
1688
  key: "HTTPBearer",
1701
1689
  scheme: "bearer",
@@ -1703,7 +1691,7 @@ var n = (e) => (e.client ?? t).post({
1703
1691
  }],
1704
1692
  url: "/finops/v1/transactions/{transaction_id}/expense-history",
1705
1693
  ...e
1706
- }), nn = (e) => (e.client ?? t).post({
1694
+ }), tn = (e) => (e.client ?? t).post({
1707
1695
  security: [{
1708
1696
  key: "HTTPBearer",
1709
1697
  scheme: "bearer",
@@ -1715,7 +1703,7 @@ var n = (e) => (e.client ?? t).post({
1715
1703
  "Content-Type": "application/json",
1716
1704
  ...e.headers
1717
1705
  }
1718
- }), rn = (e) => (e.client ?? t).post({
1706
+ }), nn = (e) => (e.client ?? t).post({
1719
1707
  security: [{
1720
1708
  key: "HTTPBearer",
1721
1709
  scheme: "bearer",
@@ -1723,7 +1711,7 @@ var n = (e) => (e.client ?? t).post({
1723
1711
  }],
1724
1712
  url: "/finops/v1/transactions/{transaction_id}/reopen",
1725
1713
  ...e
1726
- }), an = (e) => (e.client ?? t).post({
1714
+ }), rn = (e) => (e.client ?? t).post({
1727
1715
  security: [{
1728
1716
  key: "HTTPBearer",
1729
1717
  scheme: "bearer",
@@ -1735,7 +1723,7 @@ var n = (e) => (e.client ?? t).post({
1735
1723
  "Content-Type": "application/json",
1736
1724
  ...e.headers
1737
1725
  }
1738
- }), on = (e) => (e?.client ?? t).get({
1726
+ }), an = (e) => (e?.client ?? t).get({
1739
1727
  security: [{
1740
1728
  key: "APPToken",
1741
1729
  scheme: "bearer",
@@ -1747,7 +1735,7 @@ var n = (e) => (e.client ?? t).post({
1747
1735
  }],
1748
1736
  url: "/identity/v1/departments",
1749
1737
  ...e
1750
- }), sn = (e) => (e.client ?? t).post({
1738
+ }), on = (e) => (e.client ?? t).post({
1751
1739
  security: [{
1752
1740
  key: "APPToken",
1753
1741
  scheme: "bearer",
@@ -1763,7 +1751,7 @@ var n = (e) => (e.client ?? t).post({
1763
1751
  "Content-Type": "application/json",
1764
1752
  ...e.headers
1765
1753
  }
1766
- }), cn = (e) => (e.client ?? t).delete({
1754
+ }), sn = (e) => (e.client ?? t).delete({
1767
1755
  security: [{
1768
1756
  key: "APPToken",
1769
1757
  scheme: "bearer",
@@ -1775,7 +1763,7 @@ var n = (e) => (e.client ?? t).post({
1775
1763
  }],
1776
1764
  url: "/identity/v1/departments/{departmentId}",
1777
1765
  ...e
1778
- }), ln = (e) => (e.client ?? t).get({
1766
+ }), cn = (e) => (e.client ?? t).get({
1779
1767
  security: [{
1780
1768
  key: "APPToken",
1781
1769
  scheme: "bearer",
@@ -1787,7 +1775,7 @@ var n = (e) => (e.client ?? t).post({
1787
1775
  }],
1788
1776
  url: "/identity/v1/departments/{departmentId}",
1789
1777
  ...e
1790
- }), un = (e) => (e.client ?? t).put({
1778
+ }), ln = (e) => (e.client ?? t).put({
1791
1779
  security: [{
1792
1780
  key: "APPToken",
1793
1781
  scheme: "bearer",
@@ -1803,7 +1791,7 @@ var n = (e) => (e.client ?? t).post({
1803
1791
  "Content-Type": "application/json",
1804
1792
  ...e.headers
1805
1793
  }
1806
- }), dn = (e) => (e.client ?? t).post({
1794
+ }), un = (e) => (e.client ?? t).post({
1807
1795
  security: [{
1808
1796
  key: "APPToken",
1809
1797
  scheme: "bearer",
@@ -1819,7 +1807,7 @@ var n = (e) => (e.client ?? t).post({
1819
1807
  "Content-Type": "application/json",
1820
1808
  ...e.headers
1821
1809
  }
1822
- }), fn = (e) => (e?.client ?? t).get({
1810
+ }), dn = (e) => (e?.client ?? t).get({
1823
1811
  security: [{
1824
1812
  key: "HTTPBearer",
1825
1813
  scheme: "bearer",
@@ -1827,7 +1815,7 @@ var n = (e) => (e.client ?? t).post({
1827
1815
  }],
1828
1816
  url: "/identity/v1/disclosures",
1829
1817
  ...e
1830
- }), pn = (e) => (e?.client ?? t).get({
1818
+ }), fn = (e) => (e?.client ?? t).get({
1831
1819
  security: [{
1832
1820
  key: "APPToken",
1833
1821
  scheme: "bearer",
@@ -1839,7 +1827,7 @@ var n = (e) => (e.client ?? t).post({
1839
1827
  }],
1840
1828
  url: "/identity/v1/locations",
1841
1829
  ...e
1842
- }), mn = (e) => (e.client ?? t).post({
1830
+ }), pn = (e) => (e.client ?? t).post({
1843
1831
  security: [{
1844
1832
  key: "APPToken",
1845
1833
  scheme: "bearer",
@@ -1855,7 +1843,7 @@ var n = (e) => (e.client ?? t).post({
1855
1843
  "Content-Type": "application/json",
1856
1844
  ...e.headers
1857
1845
  }
1858
- }), hn = (e) => (e.client ?? t).delete({
1846
+ }), mn = (e) => (e.client ?? t).delete({
1859
1847
  security: [{
1860
1848
  key: "APPToken",
1861
1849
  scheme: "bearer",
@@ -1867,7 +1855,7 @@ var n = (e) => (e.client ?? t).post({
1867
1855
  }],
1868
1856
  url: "/identity/v1/locations/{locationId}",
1869
1857
  ...e
1870
- }), gn = (e) => (e.client ?? t).get({
1858
+ }), hn = (e) => (e.client ?? t).get({
1871
1859
  security: [{
1872
1860
  key: "APPToken",
1873
1861
  scheme: "bearer",
@@ -1879,7 +1867,7 @@ var n = (e) => (e.client ?? t).post({
1879
1867
  }],
1880
1868
  url: "/identity/v1/locations/{locationId}",
1881
1869
  ...e
1882
- }), _n = (e) => (e.client ?? t).put({
1870
+ }), gn = (e) => (e.client ?? t).put({
1883
1871
  security: [{
1884
1872
  key: "APPToken",
1885
1873
  scheme: "bearer",
@@ -1895,7 +1883,7 @@ var n = (e) => (e.client ?? t).post({
1895
1883
  "Content-Type": "application/json",
1896
1884
  ...e.headers
1897
1885
  }
1898
- }), vn = (e) => (e.client ?? t).post({
1886
+ }), _n = (e) => (e.client ?? t).post({
1899
1887
  security: [{
1900
1888
  key: "APPToken",
1901
1889
  scheme: "bearer",
@@ -1911,7 +1899,7 @@ var n = (e) => (e.client ?? t).post({
1911
1899
  "Content-Type": "application/json",
1912
1900
  ...e.headers
1913
1901
  }
1914
- }), yn = (e) => (e.client ?? t).get({
1902
+ }), vn = (e) => (e.client ?? t).get({
1915
1903
  security: [{
1916
1904
  key: "APPToken",
1917
1905
  scheme: "bearer",
@@ -1923,7 +1911,7 @@ var n = (e) => (e.client ?? t).post({
1923
1911
  }],
1924
1912
  url: "/identity/v1/organizations/{organizationId}",
1925
1913
  ...e
1926
- }), bn = (e) => (e?.client ?? t).get({
1914
+ }), yn = (e) => (e?.client ?? t).get({
1927
1915
  security: [{
1928
1916
  key: "APPToken",
1929
1917
  scheme: "bearer",
@@ -1935,7 +1923,7 @@ var n = (e) => (e.client ?? t).post({
1935
1923
  }],
1936
1924
  url: "/identity/v1/roles",
1937
1925
  ...e
1938
- }), xn = (e) => (e.client ?? t).post({
1926
+ }), bn = (e) => (e.client ?? t).post({
1939
1927
  security: [{
1940
1928
  key: "APPToken",
1941
1929
  scheme: "bearer",
@@ -1951,7 +1939,7 @@ var n = (e) => (e.client ?? t).post({
1951
1939
  "Content-Type": "application/json",
1952
1940
  ...e.headers
1953
1941
  }
1954
- }), Sn = (e) => (e.client ?? t).get({
1942
+ }), xn = (e) => (e.client ?? t).get({
1955
1943
  security: [{
1956
1944
  key: "APPToken",
1957
1945
  scheme: "bearer",
@@ -1963,7 +1951,7 @@ var n = (e) => (e.client ?? t).post({
1963
1951
  }],
1964
1952
  url: "/identity/v1/roles/{roleId}/permissions",
1965
1953
  ...e
1966
- }), Cn = (e) => (e.client ?? t).get({
1954
+ }), Sn = (e) => (e.client ?? t).get({
1967
1955
  security: [{
1968
1956
  key: "HTTPBearer",
1969
1957
  scheme: "bearer",
@@ -1971,7 +1959,7 @@ var n = (e) => (e.client ?? t).post({
1971
1959
  }],
1972
1960
  url: "/identity/v1/user-data/{key}",
1973
1961
  ...e
1974
- }), wn = (e) => (e.client ?? t).put({
1962
+ }), Cn = (e) => (e.client ?? t).put({
1975
1963
  security: [{
1976
1964
  key: "HTTPBearer",
1977
1965
  scheme: "bearer",
@@ -1983,7 +1971,7 @@ var n = (e) => (e.client ?? t).post({
1983
1971
  "Content-Type": "application/json",
1984
1972
  ...e.headers
1985
1973
  }
1986
- }), Tn = (e) => (e?.client ?? t).get({
1974
+ }), wn = (e) => (e?.client ?? t).get({
1987
1975
  security: [{
1988
1976
  key: "APPToken",
1989
1977
  scheme: "bearer",
@@ -1995,7 +1983,7 @@ var n = (e) => (e.client ?? t).post({
1995
1983
  }],
1996
1984
  url: "/identity/v1/users",
1997
1985
  ...e
1998
- }), En = (e) => (e.client ?? t).post({
1986
+ }), Tn = (e) => (e.client ?? t).post({
1999
1987
  security: [{
2000
1988
  key: "APPToken",
2001
1989
  scheme: "bearer",
@@ -2011,7 +1999,7 @@ var n = (e) => (e.client ?? t).post({
2011
1999
  "Content-Type": "application/json",
2012
2000
  ...e.headers
2013
2001
  }
2014
- }), Dn = (e) => (e?.client ?? t).get({
2002
+ }), En = (e) => (e?.client ?? t).get({
2015
2003
  security: [{
2016
2004
  key: "HTTPBearer",
2017
2005
  scheme: "bearer",
@@ -2019,7 +2007,7 @@ var n = (e) => (e.client ?? t).post({
2019
2007
  }],
2020
2008
  url: "/identity/v1/users/me",
2021
2009
  ...e
2022
- }), On = (e) => (e.client ?? t).patch({
2010
+ }), Dn = (e) => (e.client ?? t).patch({
2023
2011
  security: [{
2024
2012
  key: "APPToken",
2025
2013
  scheme: "bearer",
@@ -2035,7 +2023,7 @@ var n = (e) => (e.client ?? t).post({
2035
2023
  "Content-Type": "application/json",
2036
2024
  ...e.headers
2037
2025
  }
2038
- }), kn = (e) => (e.client ?? t).post({
2026
+ }), On = (e) => (e.client ?? t).post({
2039
2027
  security: [{
2040
2028
  key: "APPToken",
2041
2029
  scheme: "bearer",
@@ -2048,4 +2036,4 @@ var n = (e) => (e.client ?? t).post({
2048
2036
  url: "/identity/v1/users/{userId}/disable",
2049
2037
  ...e
2050
2038
  });
2051
- export { O as activateCreditCard, P as activateDebitCard, dn as bulkUpdateDepartmentMembers, vn as bulkUpdateLocationMembers, xn as bulkUpdateRoleMembers, z as connectExternalBankAccount, q as createAchMoneyMovement, s as createApplication, p as createBankAccount, J as createBookTransfer, x as createCheckDeposit, A as createDebitCard, sn as createDepartment, mn as createLocation, En as createUser, o as createVelocityControl, cn as deactivateDepartment, hn as deactivateLocation, te as deleteApprovalPoliciesId, c as deleteBankAccountApplication, de as deleteCounterpartsId, ye as deleteCounterpartsIdBankAccountsId, Se as deleteEntitiesIdLogo, je as deleteFilesId, Pe as deleteLedgerAccountsId, ze as deleteMeasureUnitsId, Ke as deletePayablesId, et as deletePayablesIdFile, bt as deleteProductsId, Tt as deleteReceiptsId, At as deleteReceivablesId, kn as disableUser, T as downloadBankAccountTransactions, Y as getAnalyticsPayables, X as getAnalyticsReceipts, Z as getAnalyticsReceivables, Q as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, $ as getApprovalPolicies, re as getApprovalRequests, _ as getBankAccount, y as getBankAccountAccess, l as getBankAccountApplication, C as getBankAccountStatement, S as getBankAccountStatements, w as getBankAccountTransactions, f as getBankAccounts, oe as getBankDetails, ce as getBankDetailsId, le as getCounterparts, fe as getCounterpartsId, me as getCounterpartsIdAddresses, _e as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, ln as getDepartment, h as getDepositableBankAccounts, fn as getDisclosures, xe as getDocumentsIdNextNumbers, we as getEntitiesIdPaymentMethods, Te as getEntitiesIdSettings, De as getEntityUsers, Oe as getEntityUsersMe, ke as getEntityUsersMyEntity, V as getExternalBankAccount, U as getExternalBankAccountAccess, R as getExternalBankAccounts, Me as getLedgerAccounts, gn as getLocation, Ie as getMailboxes, Dn as getMe, Le as getMeasureUnits, a as getMerchantCategoryGroups, yn as getOrganization, g as getOrganizationTransfers, Ve as getOverdueReminders, Ue as getPayables, qe as getPayablesId, tt as getPayablesIdHistory, nt as getPayablesIdLineItems, lt as getPayablesIdSuggestions, pt as getPaymentRecords, ht as getPaymentReminders, _t as getPaymentTerms, vt as getProducts, xt as getProductsId, Ct as getReceipts, Dt as getReceivables, jt as getReceivablesId, Lt as getReceivablesIdHistory, Vt as getReceivablesIdPdfLink, kt as getReceivablesRequiredFields, Wt as getRecurrencesId, Yt as getTransactions, Qt as getTransactionsId, tn as getTransactionsIdExpenseHistory, Xt as getTransactionsValidations, Cn as getUserData, Tn as getUsers, b as grantBankAccountAccess, W as grantExternalBankAccountAccess, G as linkExternalBankAccount, on as listDepartments, pn as listLocations, Sn as listRolePermissions, bn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, ne as patchApprovalPoliciesId, pe as patchCounterpartsId, ge as patchCounterpartsIdAddressesId, be as patchCounterpartsIdBankAccountsId, Ee as patchEntitiesIdSettings, Fe as patchLedgerAccountsId, Be as patchMeasureUnitsId, Je as patchPayablesId, St as patchProductsId, Et as patchReceiptsId, Mt as patchReceivablesId, Gt as patchRecurrencesId, $t as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, ee as postApprovalPolicies, ie as postApprovalRequestsIdApprove, ae as postApprovalRequestsIdReject, se as postBankDetails, ue as postCounterparts, he as postCounterpartsIdAddresses, ve as postCounterpartsIdBankAccounts, Ae as postFiles, Ne as postLedgerAccounts, Re as postMeasureUnits, He as postOverdueReminders, We as postPayables, Ye as postPayablesIdApprovePaymentOperation, Xe as postPayablesIdAttachFile, Ze as postPayablesIdCancel, Qe as postPayablesIdDuplicatesIdConfirm, $e as postPayablesIdDuplicatesIdDismiss, it as postPayablesIdMarkAsPaid, at as postPayablesIdReject, ot as postPayablesIdReopen, st as postPayablesIdSchedulePayment, ct as postPayablesIdSubmitForApproval, ut as postPayablesIdValidate, Ge as postPayablesUploadFromFile, dt as postPaymentIntentsIdCancel, ft as postPaymentLinks, mt as postPaymentRecords, gt as postPaymentReminders, yt as postProducts, wt as postReceiptsUploadFromFile, Ot as postReceivables, Nt as postReceivablesIdAccept, Pt as postReceivablesIdCancel, Ft as postReceivablesIdClone, It as postReceivablesIdDecline, Rt as postReceivablesIdIssue, zt as postReceivablesIdMarkAsPaid, Bt as postReceivablesIdMarkAsUncollectible, Ht as postReceivablesIdSend, Ut as postRecurrences, Kt as postRecurrencesIdCancel, qt as postRecurrencesIdPause, Jt as postRecurrencesIdResume, en as postTransactionsIdApprove, nn as postTransactionsIdReject, rn as postTransactionsIdReopen, an as postTransactionsIdSubmit, Ce as putEntitiesIdLogo, rt as putPayablesIdLineItems, Zt as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, v as updateBankAccount, N as updateDebitCard, un as updateDepartment, H as updateExternalBankAccount, _n as updateLocation, On as updateUser, wn as upsertUserData, K as validateExternalBankAccount, L as verifyDebitCard };
2039
+ export { O as activateCreditCard, P as activateDebitCard, un as bulkUpdateDepartmentMembers, _n as bulkUpdateLocationMembers, bn as bulkUpdateRoleMembers, z as connectExternalBankAccount, q as createAchMoneyMovement, s as createApplication, p as createBankAccount, J as createBookTransfer, x as createCheckDeposit, A as createDebitCard, on as createDepartment, pn as createLocation, Tn as createUser, o as createVelocityControl, sn as deactivateDepartment, mn as deactivateLocation, te as deleteApprovalPoliciesId, c as deleteBankAccountApplication, de as deleteCounterpartsId, ye as deleteCounterpartsIdBankAccountsId, Se as deleteEntitiesIdLogo, je as deleteFilesId, Pe as deleteLedgerAccountsId, ze as deleteMeasureUnitsId, Ke as deletePayablesId, et as deletePayablesIdFile, yt as deleteProductsId, wt as deleteReceiptsId, kt as deleteReceivablesId, On as disableUser, T as downloadBankAccountTransactions, Y as getAnalyticsPayables, X as getAnalyticsReceipts, Z as getAnalyticsReceivables, Q as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, $ as getApprovalPolicies, re as getApprovalRequests, _ as getBankAccount, y as getBankAccountAccess, l as getBankAccountApplication, C as getBankAccountStatement, S as getBankAccountStatements, w as getBankAccountTransactions, f as getBankAccounts, oe as getBankDetails, ce as getBankDetailsId, le as getCounterparts, fe as getCounterpartsId, me as getCounterpartsIdAddresses, _e as getCounterpartsIdBankAccounts, D as getCreditCardById, E as getCreditCards, M as getDebitCardById, F as getDebitCardCredentials, k as getDebitCards, cn as getDepartment, h as getDepositableBankAccounts, dn as getDisclosures, xe as getDocumentsIdNextNumbers, we as getEntitiesIdPaymentMethods, Te as getEntitiesIdSettings, De as getEntityUsers, Oe as getEntityUsersMe, ke as getEntityUsersMyEntity, V as getExternalBankAccount, U as getExternalBankAccountAccess, R as getExternalBankAccounts, Me as getLedgerAccounts, hn as getLocation, Ie as getMailboxes, En as getMe, Le as getMeasureUnits, a as getMerchantCategoryGroups, vn as getOrganization, g as getOrganizationTransfers, Ve as getOverdueReminders, Ue as getPayables, qe as getPayablesId, tt as getPayablesIdHistory, nt as getPayablesIdLineItems, lt as getPayablesIdSuggestions, ft as getPaymentRecords, mt as getPaymentReminders, gt as getPaymentTerms, _t as getProducts, bt as getProductsId, St as getReceipts, Et as getReceivables, At as getReceivablesId, It as getReceivablesIdHistory, Bt as getReceivablesIdPdfLink, Ot as getReceivablesRequiredFields, Ut as getRecurrencesId, Jt as getTransactions, Zt as getTransactionsId, en as getTransactionsIdExpenseHistory, Yt as getTransactionsValidations, Sn as getUserData, wn as getUsers, b as grantBankAccountAccess, W as grantExternalBankAccountAccess, G as linkExternalBankAccount, an as listDepartments, fn as listLocations, xn as listRolePermissions, yn as listRoles, m as manageBankAccountAccess, j as manageDebitCardAccess, ne as patchApprovalPoliciesId, pe as patchCounterpartsId, ge as patchCounterpartsIdAddressesId, be as patchCounterpartsIdBankAccountsId, Ee as patchEntitiesIdSettings, Fe as patchLedgerAccountsId, Be as patchMeasureUnitsId, Je as patchPayablesId, xt as patchProductsId, Tt as patchReceiptsId, jt as patchReceivablesId, Wt as patchRecurrencesId, Qt as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, ee as postApprovalPolicies, ie as postApprovalRequestsIdApprove, ae as postApprovalRequestsIdReject, se as postBankDetails, ue as postCounterparts, he as postCounterpartsIdAddresses, ve as postCounterpartsIdBankAccounts, Ae as postFiles, Ne as postLedgerAccounts, Re as postMeasureUnits, He as postOverdueReminders, We as postPayables, Ye as postPayablesIdApprovePaymentOperation, Xe as postPayablesIdAttachFile, Ze as postPayablesIdCancel, Qe as postPayablesIdDuplicatesIdConfirm, $e as postPayablesIdDuplicatesIdDismiss, it as postPayablesIdMarkAsPaid, at as postPayablesIdReject, ot as postPayablesIdReopen, st as postPayablesIdSchedulePayment, ct as postPayablesIdSubmitForApproval, ut as postPayablesIdValidate, Ge as postPayablesUploadFromFile, dt as postPaymentIntentsIdCancel, pt as postPaymentRecords, ht as postPaymentReminders, vt as postProducts, Ct as postReceiptsUploadFromFile, Dt as postReceivables, Mt as postReceivablesIdAccept, Nt as postReceivablesIdCancel, Pt as postReceivablesIdClone, Ft as postReceivablesIdDecline, Lt as postReceivablesIdIssue, Rt as postReceivablesIdMarkAsPaid, zt as postReceivablesIdMarkAsUncollectible, Vt as postReceivablesIdSend, Ht as postRecurrences, Gt as postRecurrencesIdCancel, Kt as postRecurrencesIdPause, qt as postRecurrencesIdResume, $t as postTransactionsIdApprove, tn as postTransactionsIdReject, nn as postTransactionsIdReopen, rn as postTransactionsIdSubmit, Ce as putEntitiesIdLogo, rt as putPayablesIdLineItems, Xt as putTransactionsValidations, I as setDebitCardLockStatus, d as submitApplication, B as unlinkExternalBankAccount, u as updateApplication, v as updateBankAccount, N as updateDebitCard, ln as updateDepartment, H as updateExternalBankAccount, gn as updateLocation, Dn as updateUser, Cn as upsertUserData, K as validateExternalBankAccount, L as verifyDebitCard };
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.43", n = "4b383e2758e219e11dd144935011869d04207982", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.46", n = "f80778f72f9dd7ae57644adae6db2e053b3c1ac9", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.43",
3
+ "version": "0.11.46",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -275,7 +275,7 @@
275
275
  "tailwind-merge": "^3.7.0",
276
276
  "tailwind-variants": "^3.3.1",
277
277
  "type-fest": "^4.41.0",
278
- "zod": "^4.6.5"
278
+ "zod": "^4.6.6"
279
279
  },
280
280
  "peerDependencies": {
281
281
  "react": "^19.0.0",
@@ -1,51 +0,0 @@
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 { useMyEntityQuery as t } from "../../../../../shared/data-access/dist/lib/useMyEntityQuery.js";
7
- import "../../../../../shared/data-access/dist/index.js";
8
- import "../../../../../shared/ui/dist/index.js";
9
- import { useEntityPaymentMethodsQuery as n } from "../../../../data-access/dist/index5.js";
10
- import { useCreatePaymentLinkMutation as r } from "../../../../data-access/dist/index7.js";
11
- import { useSendReceivableEmailMutation as i } from "../../../../data-access/dist/index10.js";
12
- import "../../../../data-access/dist/index.js";
13
- import { getReceivePaymentMethods as a } from "./preview.js";
14
- import { useCallback as o, useEffect as s, useRef as c } from "react";
15
- // ../../libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js
16
- function l({ messages: l, documentType: u }) {
17
- let d = u === "invoice", f = t({ enabled: d }), p = f.data?.id, m = n({
18
- entityId: p,
19
- enabled: d
20
- }), h = r(), g = i(), _ = f.error || m.error ? void 0 : m.data?.data, v = c(void 0);
21
- s(() => {
22
- u || (v.current = void 0);
23
- }, [u]);
24
- let y = h.mutateAsync, b = g.mutateAsync, x = l.actionsSendWithoutPaymentLink;
25
- return {
26
- send: o(async (t) => {
27
- if (!d) return b(t);
28
- let n = t.path.receivable_id, r = a(_);
29
- return !p || r.length === 0 ? e.error(x) : v.current !== n && (await y({ body: {
30
- recipient: {
31
- id: p,
32
- type: "entity"
33
- },
34
- payment_methods: r.map((e) => e.type),
35
- object: {
36
- id: n,
37
- type: "receivable"
38
- }
39
- } }), v.current = n), b(t);
40
- }, [
41
- d,
42
- y,
43
- p,
44
- _,
45
- b,
46
- x
47
- ]),
48
- isPending: d && (f.isFetching || m.isFetching) || h.isPending || g.isPending
49
- };
50
- }
51
- export { l as useSendReceivableWithPaymentLink };