@tesouro/embedded-components-react 0.5.207 → 0.5.211

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index.js +7 -8
  2. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +11 -10
  3. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  4. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js +12 -24
  5. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js +36 -14
  6. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js +16 -21
  7. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js +6 -7
  8. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index10.js +23 -22
  9. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +38 -37
  12. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/queryKeys.js +8 -4
  13. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +25 -0
  14. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  15. package/package.json +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js +0 -34
@@ -1,8 +1,7 @@
1
- import { useMyEntityQuery as e } from "./index2.js";
2
- import { useEntitySettingsQuery as t } from "./index3.js";
3
- import { useNextDocumentNumbersQuery as n } from "./index4.js";
4
- import "./index5.js";
5
- import { useUpdateEntitySettingsMutation as r } from "./index6.js";
6
- import { useUploadEntityLogoMutation as i } from "./index7.js";
7
- import { useDeleteEntityLogoMutation as a } from "./index8.js";
8
- export { a as useDeleteEntityLogoMutation, t as useEntitySettingsQuery, e as useMyEntityQuery, n as useNextDocumentNumbersQuery, r as useUpdateEntitySettingsMutation, i as useUploadEntityLogoMutation };
1
+ import { useEntitySettingsQuery as e } from "./index2.js";
2
+ import { useNextDocumentNumbersQuery as t } from "./index3.js";
3
+ import "./index4.js";
4
+ import { useUpdateEntitySettingsMutation as n } from "./index5.js";
5
+ import { useUploadEntityLogoMutation as r } from "./index6.js";
6
+ import { useDeleteEntityLogoMutation as i } from "./index7.js";
7
+ export { i as useDeleteEntityLogoMutation, e as useEntitySettingsQuery, t as useNextDocumentNumbersQuery, n as useUpdateEntitySettingsMutation, r as useUploadEntityLogoMutation };
@@ -2,25 +2,26 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { getEntityUsersMyEntityOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getEntitiesIdSettingsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
6
  import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
7
  import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
8
  import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
9
  import "../../../../shared/data-access/dist/index.js";
10
10
  import { useQuery as i } from "@tanstack/react-query";
11
11
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js
12
- function a() {
13
- let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationPending: l } = n(), u = !!(o && s), d = e({
14
- client: a,
15
- headers: r(o)
12
+ function a(a) {
13
+ let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationPending: u } = n(), d = !!(s && c && a), f = e({
14
+ client: o,
15
+ headers: r(s),
16
+ path: { entity_id: a ?? "" }
16
17
  });
17
18
  return i({
18
- ...t(d, {
19
- authEpoch: c,
20
- organizationPending: l
19
+ ...t(f, {
20
+ authEpoch: l,
21
+ organizationPending: u
21
22
  }),
22
- enabled: u
23
+ enabled: d
23
24
  });
24
25
  }
25
26
  //#endregion
26
- export { a as useMyEntityQuery };
27
+ export { a as useEntitySettingsQuery };
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { getEntitiesIdSettingsOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
5
+ import { getDocumentsIdNextNumbersOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
6
  import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
7
  import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
8
  import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
@@ -24,4 +24,4 @@ function a(a) {
24
24
  });
25
25
  }
26
26
  //#endregion
27
- export { a as useEntitySettingsQuery };
27
+ export { a as useNextDocumentNumbersQuery };
@@ -1,27 +1,15 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { getDocumentsIdNextNumbersOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
- import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
- import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
- import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
1
+ import { getDocumentsIdNextNumbersQueryKey as e, getEntitiesIdSettingsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
3
  import "../../../../shared/data-access/dist/index.js";
10
- import { useQuery as i } from "@tanstack/react-query";
11
4
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index4.js
12
- function a(a) {
13
- let { client: o, organizationId: s, widgetToken: c, authEpoch: l, organizationPending: u } = n(), d = !!(s && c && a), f = e({
14
- client: o,
15
- headers: r(s),
16
- path: { entity_id: a ?? "" }
17
- });
18
- return i({
19
- ...t(f, {
20
- authEpoch: l,
21
- organizationPending: u
22
- }),
23
- enabled: d
24
- });
25
- }
5
+ var r = ({ client: e, organizationId: r, entityId: i }) => t({
6
+ client: e,
7
+ headers: n(r),
8
+ path: { entity_id: i }
9
+ }), i = ({ client: t, organizationId: r, entityId: i }) => e({
10
+ client: t,
11
+ headers: n(r),
12
+ path: { entity_id: i }
13
+ });
26
14
  //#endregion
27
- export { a as useNextDocumentNumbersQuery };
15
+ export { r as entitySettingsInvalidationKey, i as nextDocumentNumbersInvalidationKey };
@@ -1,18 +1,40 @@
1
- import { getDocumentsIdNextNumbersQueryKey as e, getEntitiesIdSettingsQueryKey as t, getEntityUsersMyEntityQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { patchEntitiesIdSettings as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
+ import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
+ import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
2
8
  import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
3
9
  import "../../../../shared/data-access/dist/index.js";
10
+ import { entitySettingsInvalidationKey as i, nextDocumentNumbersInvalidationKey as a } from "./index4.js";
11
+ import { useMutation as o } from "@tanstack/react-query";
4
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index5.js
5
- var i = ({ client: e, organizationId: t }) => n({
6
- client: e,
7
- headers: r(t)
8
- }), a = ({ client: e, organizationId: n, entityId: i }) => t({
9
- client: e,
10
- headers: r(n),
11
- path: { entity_id: i }
12
- }), o = ({ client: t, organizationId: n, entityId: i }) => e({
13
- client: t,
14
- headers: r(n),
15
- path: { entity_id: i }
16
- });
13
+ function s() {
14
+ let { client: s, organizationId: c } = n();
15
+ return o({
16
+ mutationFn: async ({ entityId: t, body: n }) => {
17
+ let { data: i } = await e({
18
+ client: s,
19
+ headers: r(c),
20
+ path: { entity_id: t },
21
+ body: n,
22
+ throwOnError: !0
23
+ });
24
+ return i;
25
+ },
26
+ onSuccess: async (e, { entityId: n }) => {
27
+ await Promise.all([t(i({
28
+ client: s,
29
+ organizationId: c,
30
+ entityId: n
31
+ })), t(a({
32
+ client: s,
33
+ organizationId: c,
34
+ entityId: n
35
+ }))]);
36
+ }
37
+ });
38
+ }
17
39
  //#endregion
18
- export { a as entitySettingsInvalidationKey, i as myEntityInvalidationKey, o as nextDocumentNumbersInvalidationKey };
40
+ export { s as useUpdateEntitySettingsMutation };
@@ -2,39 +2,34 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { patchEntitiesIdSettings as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { putEntitiesIdLogo as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
7
  import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
8
  import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
+ import { myEntityInvalidationKey as i } from "../../../../shared/data-access/dist/lib/queryKeys.js";
9
10
  import "../../../../shared/data-access/dist/index.js";
10
- import { entitySettingsInvalidationKey as i, nextDocumentNumbersInvalidationKey as a } from "./index5.js";
11
- import { useMutation as o } from "@tanstack/react-query";
11
+ import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index6.js
13
- function s() {
14
- let { client: s, organizationId: c } = n();
15
- return o({
16
- mutationFn: async ({ entityId: t, body: n }) => {
13
+ function o() {
14
+ let { client: o, organizationId: s } = n();
15
+ return a({
16
+ mutationFn: async ({ entityId: t, file: n }) => {
17
17
  let { data: i } = await e({
18
- client: s,
19
- headers: r(c),
18
+ client: o,
19
+ headers: r(s),
20
20
  path: { entity_id: t },
21
- body: n,
21
+ body: { file: n },
22
22
  throwOnError: !0
23
23
  });
24
24
  return i;
25
25
  },
26
- onSuccess: async (e, { entityId: n }) => {
27
- await Promise.all([t(i({
28
- client: s,
29
- organizationId: c,
30
- entityId: n
31
- })), t(a({
32
- client: s,
33
- organizationId: c,
34
- entityId: n
35
- }))]);
26
+ onSuccess: async () => {
27
+ await t(i({
28
+ client: o,
29
+ organizationId: s
30
+ }));
36
31
  }
37
32
  });
38
33
  }
39
34
  //#endregion
40
- export { s as useUpdateEntitySettingsMutation };
35
+ export { o as useUploadEntityLogoMutation };
@@ -2,26 +2,25 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { putEntitiesIdLogo as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { deleteEntitiesIdLogo as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
7
  import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
8
  import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
+ import { myEntityInvalidationKey as i } from "../../../../shared/data-access/dist/lib/queryKeys.js";
9
10
  import "../../../../shared/data-access/dist/index.js";
10
- import { myEntityInvalidationKey as i } from "./index5.js";
11
11
  import { useMutation as a } from "@tanstack/react-query";
12
12
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index7.js
13
13
  function o() {
14
14
  let { client: o, organizationId: s } = n();
15
15
  return a({
16
- mutationFn: async ({ entityId: t, file: n }) => {
17
- let { data: i } = await e({
16
+ mutationFn: async ({ entityId: t }) => {
17
+ let { data: n } = await e({
18
18
  client: o,
19
19
  headers: r(s),
20
20
  path: { entity_id: t },
21
- body: { file: n },
22
21
  throwOnError: !0
23
22
  });
24
- return i;
23
+ return n;
25
24
  },
26
25
  onSuccess: async () => {
27
26
  await t(i({
@@ -32,4 +31,4 @@ function o() {
32
31
  });
33
32
  }
34
33
  //#endregion
35
- export { o as useUploadEntityLogoMutation };
34
+ export { o as useDeleteEntityLogoMutation };
@@ -2,17 +2,18 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { EmbeddedToaster as e } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
5
+ import { useMyEntityQuery as e } from "../../../../shared/data-access/dist/lib/useMyEntityQuery.js";
6
+ import "../../../../shared/data-access/dist/index.js";
7
+ import { EmbeddedToaster as t } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
6
8
  import "../../../../shared/ui/dist/index.js";
7
- import { useAnalyticsTrack as t } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
8
- import { WidgetProvider as n } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
9
- import { useWidgetConfig as r } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
9
+ import { useAnalyticsTrack as n } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
10
+ import { WidgetProvider as r } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
11
+ import { useWidgetConfig as i } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
10
12
  import "../../../../shared/feature/dist/index.js";
11
- import { InvoiceSettingsAnalyticsEvent as i, WIDGET_NAME as a } from "./index9.js";
12
- import { getInvoiceSettingsPermissions as o } from "./index2.js";
13
- import { useMyEntityQuery as s } from "../../data-access/dist/index2.js";
14
- import { useEntitySettingsQuery as c } from "../../data-access/dist/index3.js";
15
- import { useNextDocumentNumbersQuery as l } from "../../data-access/dist/index4.js";
13
+ import { InvoiceSettingsAnalyticsEvent as a, WIDGET_NAME as o } from "./index9.js";
14
+ import { getInvoiceSettingsPermissions as s } from "./index2.js";
15
+ import { useEntitySettingsQuery as c } from "../../data-access/dist/index2.js";
16
+ import { useNextDocumentNumbersQuery as l } from "../../data-access/dist/index3.js";
16
17
  import "../../data-access/dist/index.js";
17
18
  import { useInvoiceSettingsForm as u } from "./index7.js";
18
19
  import { InvoiceSettingsPanel as d } from "../../ui/dist/index3.js";
@@ -65,12 +66,12 @@ function w({ entityId: e, entitySettings: t, nextNumbers: n, logo: r, confirmLea
65
66
  labels: c
66
67
  })] });
67
68
  }
68
- function T({ handleRef: n, panelLabels: a, logoLabels: u, dropzoneLabels: f, messageLabels: p, ...m }) {
69
- let T = t(), E = b(null);
70
- v(n, () => ({ confirmLeave: () => E.current?.() ?? Promise.resolve(!0) }), []), _(() => {
71
- T(i.Mounted);
69
+ function T({ handleRef: r, panelLabels: o, logoLabels: u, dropzoneLabels: f, messageLabels: p, ...m }) {
70
+ let T = n(), E = b(null);
71
+ v(r, () => ({ confirmLeave: () => E.current?.() ?? Promise.resolve(!0) }), []), _(() => {
72
+ T(a.Mounted);
72
73
  }, [T]);
73
- let { initResponse: D } = r(), { canEdit: O } = y(() => o(D?.scopes), [D?.scopes]), { data: k, isLoading: A, isError: j, refetch: M } = s(), N = k?.id, P = O ? N : void 0, { data: F, isLoading: I, isError: L, refetch: R } = c(P), { data: z, isLoading: B, isError: V, refetch: H } = l(P), U = g({
74
+ let { initResponse: D } = i(), { canEdit: O } = y(() => s(D?.scopes), [D?.scopes]), { data: k, isLoading: A, isError: j, refetch: M } = e(), N = k?.id, P = O ? N : void 0, { data: F, isLoading: I, isError: L, refetch: R } = c(P), { data: z, isLoading: B, isError: V, refetch: H } = l(P), U = g({
74
75
  entityId: N ?? "",
75
76
  labels: p
76
77
  }), W = y(() => ({
@@ -79,7 +80,7 @@ function T({ handleRef: n, panelLabels: a, logoLabels: u, dropzoneLabels: f, mes
79
80
  }), [U.fileTypesHint, f]);
80
81
  if (!O) return null;
81
82
  let G = N || A ? /* @__PURE__ */ C(x, { children: [
82
- /* @__PURE__ */ S(e, {}),
83
+ /* @__PURE__ */ S(t, {}),
83
84
  /* @__PURE__ */ S(h, {
84
85
  logoUrl: U.uploadedLogoUrl ?? k?.logo?.url,
85
86
  isLoading: A,
@@ -107,26 +108,26 @@ function T({ handleRef: n, panelLabels: a, logoLabels: u, dropzoneLabels: f, mes
107
108
  M(), R(), H();
108
109
  },
109
110
  onSubmit: () => void 0,
110
- labels: a
111
+ labels: o
111
112
  }) : /* @__PURE__ */ S(w, {
112
113
  entityId: N ?? "",
113
114
  entitySettings: F,
114
115
  nextNumbers: z,
115
116
  logo: G,
116
117
  confirmLeaveRef: E,
117
- panelLabels: a,
118
+ panelLabels: o,
118
119
  messageLabels: p,
119
120
  ...m
120
121
  }, N);
121
122
  }
122
- function E({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, errorFallback: p, onError: m, ref: h, ...g }) {
123
- return /* @__PURE__ */ S(n, {
124
- widgetName: a,
123
+ function E({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, errorFallback: p, onError: m, ref: h, ...g }) {
124
+ return /* @__PURE__ */ S(r, {
125
+ widgetName: o,
125
126
  baseUrl: e,
126
127
  widgetToken: t,
127
- organizationId: r,
128
+ organizationId: n,
128
129
  configClient: i,
129
- gatewayRouting: o,
130
+ gatewayRouting: a,
130
131
  linkComponent: s,
131
132
  implementation: c,
132
133
  uiFramework: l,
@@ -8,7 +8,7 @@ import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
8
8
  import { buildDocumentRendering as n, getBankDisplayValue as r } from "./index3.js";
9
9
  import { formatInvoiceNumberPreview as i, padStartingNumber as a } from "./index4.js";
10
10
  import { getInvoiceSettingsFormSchema as o } from "./index6.js";
11
- import { useUpdateEntitySettingsMutation as s } from "../../data-access/dist/index6.js";
11
+ import { useUpdateEntitySettingsMutation as s } from "../../data-access/dist/index5.js";
12
12
  import "../../data-access/dist/index.js";
13
13
  import { useCallback as c, useMemo as l, useRef as u, useState as d } from "react";
14
14
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js
@@ -5,8 +5,8 @@
5
5
  import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
6
6
  import "../../../../shared/ui/dist/index.js";
7
7
  import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
8
- import { useUploadEntityLogoMutation as n } from "../../data-access/dist/index7.js";
9
- import { useDeleteEntityLogoMutation as r } from "../../data-access/dist/index8.js";
8
+ import { useUploadEntityLogoMutation as n } from "../../data-access/dist/index6.js";
9
+ import { useDeleteEntityLogoMutation as r } from "../../data-access/dist/index7.js";
10
10
  import "../../data-access/dist/index.js";
11
11
  import { LogoUploadStatus as i } from "../../ui/dist/index15.js";
12
12
  import "../../ui/dist/index.js";
@@ -1,45 +1,46 @@
1
1
  import "./lib/finopsApiVersion.js";
2
2
  import "./lib/rest/client.gen.js";
3
3
  import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getUsers as I, listDepartments as L, listLocations as R, listRoles as z, manageBankAccountAccess as B, manageDebitCardAccess as V, patchCounterpartsId as H, patchCounterpartsIdAddressesId as U, patchCounterpartsIdBankAccountsId as W, patchEntitiesIdSettings as G, patchMeasureUnitsId as K, patchPayablesId as q, patchProductsId as J, patchReceivablesId as Y, patchTransactionsId as X, postApprovalRequestsIdApprove as Z, postApprovalRequestsIdReject as Q, postBankDetails as $, postCounterparts as ee, postCounterpartsIdAddresses as te, postCounterpartsIdBankAccounts as ne, postCounterpartsIdBankAccountsIdMakeDefault as re, postFiles as ie, postMeasureUnits as ae, postOverdueReminders as oe, postPayables as se, postPayablesIdApprovePaymentOperation as ce, postPayablesIdAttachFile as le, postPayablesIdCancel as ue, postPayablesIdDuplicatesIdConfirm as de, postPayablesIdDuplicatesIdDismiss as fe, postPayablesIdMarkAsPaid as pe, postPayablesIdReject as me, postPayablesIdReopen as he, postPayablesIdSchedulePayment as ge, postPayablesIdSubmitForApproval as _e, postPayablesIdValidate as ve, postPayablesUploadFromFile as ye, postPaymentIntentsIdCancel as be, postPaymentReminders as xe, postProducts as Se, postReceivables as Ce, postReceivablesIdAccept as we, postReceivablesIdCancel as Te, postReceivablesIdClone as Ee, postReceivablesIdDecline as De, postReceivablesIdIssue as Oe, postReceivablesIdMarkAsPaid as ke, postReceivablesIdMarkAsPartiallyPaid as Ae, postReceivablesIdMarkAsUncollectible as je, postReceivablesIdSend as Me, postTransactionsIdApprove as Ne, postTransactionsIdReject as Pe, postTransactionsIdReopen as Fe, postTransactionsIdSubmit as Ie, putEntitiesIdLogo as Le, putPayablesIdLineItems as Re, updateDepartment as ze, updateLocation as Be, updateUser as Ve } from "./lib/rest/sdk.gen.js";
4
- import { activateCreditCardMutation as He, activateDebitCardMutation as Ue, connectExternalBankAccountMutation as We, createAchMoneyMovementMutation as Ge, createApplicationMutation as Ke, createBankAccountMutation as qe, createBookTransferMutation as Je, createCheckDepositMutation as Ye, createDebitCardMutation as Xe, createVelocityControlMutation as Ze, deleteApprovalPoliciesIdMutation as Qe, deleteBankAccountApplicationMutation as $e, deleteLedgerAccountsIdMutation as et, deleteReceiptsIdMutation as tt, disableUserMutation as nt, getAnalyticsPayablesOptions as rt, getAnalyticsPayablesQueryKey as it, getAnalyticsReceiptsOptions as at, getAnalyticsReceiptsQueryKey as ot, getAnalyticsReceivablesOptions as st, getAnalyticsReceivablesQueryKey as ct, getAnalyticsTransactionsOptions as lt, getAnalyticsTransactionsQueryKey as ut, getApprovalPoliciesOptions as dt, getApprovalPoliciesQueryKey as ft, getApprovalRequestsOptions as pt, getApprovalRequestsQueryKey as mt, getBankAccountAccessQueryKey as ht, getBankAccountApplicationOptions as gt, getBankAccountOptions as _t, getBankAccountQueryKey as vt, getBankAccountStatementsOptions as yt, getBankAccountTransactionsOptions as bt, getBankAccountTransactionsQueryKey as xt, getBankAccountTransfersOptions as St, getBankAccountTransfersQueryKey as Ct, getBankAccountsQueryKey as wt, getBankDetailsOptions as Tt, getBankDetailsQueryKey as Et, getCounterpartsIdAddressesOptions as Dt, getCounterpartsIdAddressesQueryKey as Ot, getCounterpartsIdBankAccountsOptions as kt, getCounterpartsIdBankAccountsQueryKey as At, getCounterpartsIdOptions as jt, getCounterpartsIdQueryKey as Mt, getCounterpartsOptions as Nt, getCounterpartsQueryKey as Pt, getCreditCardByIdOptions as Ft, getCreditCardByIdQueryKey as It, getCreditCardsOptions as Lt, getCreditCardsQueryKey as Rt, getDebitCardByIdOptions as zt, getDebitCardByIdQueryKey as Bt, getDebitCardCredentialsOptions as Vt, getDebitCardsOptions as Ht, getDebitCardsQueryKey as Ut, getDepartmentOptions as Wt, getDepartmentQueryKey as Gt, getDepositableBankAccountsOptions as Kt, getDocumentsIdNextNumbersOptions as qt, getDocumentsIdNextNumbersQueryKey as Jt, getEntitiesIdSettingsOptions as Yt, getEntitiesIdSettingsQueryKey as Xt, getEntityUsersMyEntityOptions as Zt, getEntityUsersMyEntityQueryKey as Qt, getEntityUsersOptions as $t, getExternalBankAccountAccessQueryKey as en, getExternalBankAccountsOptions as tn, getExternalBankAccountsQueryKey as nn, getFilesQueryKey as rn, getLedgerAccountsQueryKey as an, getLocationOptions as on, getLocationQueryKey as sn, getMeasureUnitsOptions as cn, getMeasureUnitsQueryKey as ln, getOrganizationOptions as un, getOverdueRemindersOptions as dn, getOverdueRemindersQueryKey as fn, getPayablesIdHistoryOptions as pn, getPayablesIdHistoryQueryKey as mn, getPayablesIdLineItemsOptions as hn, getPayablesIdLineItemsQueryKey as gn, getPayablesIdOptions as _n, getPayablesIdQueryKey as vn, getPayablesIdSuggestionsOptions as yn, getPayablesOptions as bn, getPayablesQueryKey as xn, getPaymentRecordsOptions as Sn, getPaymentRecordsQueryKey as Cn, getPaymentRemindersOptions as wn, getPaymentRemindersQueryKey as Tn, getProductsIdOptions as En, getProductsIdQueryKey as Dn, getProductsOptions as On, getProductsQueryKey as kn, getReceiptsIdQueryKey as An, getReceiptsOptions as jn, getReceiptsQueryKey as Mn, getReceivablesIdHistoryOptions as Nn, getReceivablesIdHistoryQueryKey as Pn, getReceivablesIdMailsOptions as Fn, getReceivablesIdMailsQueryKey as In, getReceivablesIdOptions as Ln, getReceivablesIdPdfLinkOptions as Rn, getReceivablesIdPdfLinkQueryKey as zn, getReceivablesIdQueryKey as Bn, getReceivablesOptions as Vn, getReceivablesQueryKey as Hn, getTransactionsIdExpenseHistoryOptions as Un, getTransactionsIdExpenseHistoryQueryKey as Wn, getTransactionsIdOptions as Gn, getTransactionsIdQueryKey as Kn, getTransactionsOptions as qn, getTransactionsQueryKey as Jn, getTransactionsValidationsOptions as Yn, getTransactionsValidationsQueryKey as Xn, getUsersOptions as Zn, getUsersQueryKey as Qn, getVelocityControlsQueryKey as $n, grantBankAccountAccessMutation as er, grantExternalBankAccountAccessMutation as tr, linkExternalBankAccountMutation as nr, listDepartmentsOptions as rr, listDepartmentsQueryKey as ir, listLocationsOptions as ar, listLocationsQueryKey as or, listRolesQueryKey as sr, manageDebitCardAccessMutation as cr, patchApprovalPoliciesIdMutation as lr, patchLedgerAccountsIdMutation as ur, patchReceiptsIdMutation as dr, postApprovalPoliciesMutation as fr, postLedgerAccountsMutation as pr, postReceiptsUploadFromFileMutation as mr, putTransactionsValidationsMutation as hr, setDebitCardLockStatusMutation as gr, submitApplicationMutation as _r, unlinkExternalBankAccountMutation as vr, updateApplicationMutation as yr, updateBankAccountMutation as br, updateDebitCardMutation as xr, updateExternalBankAccountMutation as Sr, validateExternalBankAccountMutation as Cr, verifyDebitCardMutation as wr } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { authEpochPlaceholder as Tr, withAuthEpoch as Er } from "./lib/withAuthEpoch.js";
6
- import { applicationStatusInvalidationKey as Dr, applicationStatusQueryOptions as Or } from "./lib/applicationStatusQueryOptions.js";
7
- import { createClientSecretInstaller as kr } from "./lib/scopedClientSecret.js";
8
- import { cancelAllClients as Ar, invalidateAllClients as jr, registerQueryClient as Mr, removeInactiveFromAllClients as Nr, setAllClientsQueriesData as Pr, unregisterQueryClient as Fr } from "./lib/clientRegistry.js";
9
- import { cloneEmbeddedClient as Ir, createEmbeddedClient as Lr } from "./lib/createEmbeddedClient.js";
4
+ import { activateCreditCardMutation as He, activateDebitCardMutation as Ue, connectExternalBankAccountMutation as We, createAchMoneyMovementMutation as Ge, createApplicationMutation as Ke, createBankAccountMutation as qe, createBookTransferMutation as Je, createCheckDepositMutation as Ye, createDebitCardMutation as Xe, createVelocityControlMutation as Ze, deleteApprovalPoliciesIdMutation as Qe, deleteBankAccountApplicationMutation as $e, deleteLedgerAccountsIdMutation as et, deleteReceiptsIdMutation as tt, disableUserMutation as nt, getAnalyticsPayablesOptions as rt, getAnalyticsPayablesQueryKey as it, getAnalyticsReceiptsOptions as at, getAnalyticsReceiptsQueryKey as ot, getAnalyticsReceivablesOptions as st, getAnalyticsReceivablesQueryKey as ct, getAnalyticsTransactionsOptions as lt, getAnalyticsTransactionsQueryKey as ut, getApprovalPoliciesOptions as dt, getApprovalPoliciesQueryKey as ft, getApprovalRequestsOptions as pt, getApprovalRequestsQueryKey as mt, getBankAccountAccessQueryKey as ht, getBankAccountApplicationOptions as gt, getBankAccountOptions as _t, getBankAccountQueryKey as vt, getBankAccountStatementsOptions as yt, getBankAccountTransactionsOptions as bt, getBankAccountTransactionsQueryKey as xt, getBankAccountTransfersOptions as St, getBankAccountTransfersQueryKey as Ct, getBankAccountsQueryKey as wt, getBankDetailsOptions as Tt, getBankDetailsQueryKey as Et, getCounterpartsIdAddressesOptions as Dt, getCounterpartsIdAddressesQueryKey as Ot, getCounterpartsIdBankAccountsOptions as kt, getCounterpartsIdBankAccountsQueryKey as At, getCounterpartsIdOptions as jt, getCounterpartsIdQueryKey as Mt, getCounterpartsOptions as Nt, getCounterpartsQueryKey as Pt, getCreditCardByIdOptions as Ft, getCreditCardByIdQueryKey as It, getCreditCardsOptions as Lt, getCreditCardsQueryKey as Rt, getDebitCardByIdOptions as zt, getDebitCardByIdQueryKey as Bt, getDebitCardCredentialsOptions as Vt, getDebitCardsOptions as Ht, getDebitCardsQueryKey as Ut, getDepartmentOptions as Wt, getDepartmentQueryKey as Gt, getDepositableBankAccountsOptions as Kt, getDocumentsIdNextNumbersOptions as qt, getDocumentsIdNextNumbersQueryKey as Jt, getEntitiesIdSettingsOptions as Yt, getEntitiesIdSettingsQueryKey as Xt, getEntityUsersMyEntityOptions as Zt, getEntityUsersOptions as Qt, getExternalBankAccountAccessQueryKey as $t, getExternalBankAccountsOptions as en, getExternalBankAccountsQueryKey as tn, getFilesQueryKey as nn, getLedgerAccountsQueryKey as rn, getLocationOptions as an, getLocationQueryKey as on, getMeasureUnitsOptions as sn, getMeasureUnitsQueryKey as cn, getOrganizationOptions as ln, getOverdueRemindersOptions as un, getOverdueRemindersQueryKey as dn, getPayablesIdHistoryOptions as fn, getPayablesIdHistoryQueryKey as pn, getPayablesIdLineItemsOptions as mn, getPayablesIdLineItemsQueryKey as hn, getPayablesIdOptions as gn, getPayablesIdQueryKey as _n, getPayablesIdSuggestionsOptions as vn, getPayablesOptions as yn, getPayablesQueryKey as bn, getPaymentRecordsOptions as xn, getPaymentRecordsQueryKey as Sn, getPaymentRemindersOptions as Cn, getPaymentRemindersQueryKey as wn, getProductsIdOptions as Tn, getProductsIdQueryKey as En, getProductsOptions as Dn, getProductsQueryKey as On, getReceiptsIdQueryKey as kn, getReceiptsOptions as An, getReceiptsQueryKey as jn, getReceivablesIdHistoryOptions as Mn, getReceivablesIdHistoryQueryKey as Nn, getReceivablesIdMailsOptions as Pn, getReceivablesIdMailsQueryKey as Fn, getReceivablesIdOptions as In, getReceivablesIdPdfLinkOptions as Ln, getReceivablesIdPdfLinkQueryKey as Rn, getReceivablesIdQueryKey as zn, getReceivablesOptions as Bn, getReceivablesQueryKey as Vn, getTransactionsIdExpenseHistoryOptions as Hn, getTransactionsIdExpenseHistoryQueryKey as Un, getTransactionsIdOptions as Wn, getTransactionsIdQueryKey as Gn, getTransactionsOptions as Kn, getTransactionsQueryKey as qn, getTransactionsValidationsOptions as Jn, getTransactionsValidationsQueryKey as Yn, getUsersOptions as Xn, getUsersQueryKey as Zn, getVelocityControlsQueryKey as Qn, grantBankAccountAccessMutation as $n, grantExternalBankAccountAccessMutation as er, linkExternalBankAccountMutation as tr, listDepartmentsOptions as nr, listDepartmentsQueryKey as rr, listLocationsOptions as ir, listLocationsQueryKey as ar, listRolesQueryKey as or, manageDebitCardAccessMutation as sr, patchApprovalPoliciesIdMutation as cr, patchLedgerAccountsIdMutation as lr, patchReceiptsIdMutation as ur, postApprovalPoliciesMutation as dr, postLedgerAccountsMutation as fr, postReceiptsUploadFromFileMutation as pr, putTransactionsValidationsMutation as mr, setDebitCardLockStatusMutation as hr, submitApplicationMutation as gr, unlinkExternalBankAccountMutation as _r, updateApplicationMutation as vr, updateBankAccountMutation as yr, updateDebitCardMutation as br, updateExternalBankAccountMutation as xr, validateExternalBankAccountMutation as Sr, verifyDebitCardMutation as Cr } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { authEpochPlaceholder as wr, withAuthEpoch as Tr } from "./lib/withAuthEpoch.js";
6
+ import { applicationStatusInvalidationKey as Er, applicationStatusQueryOptions as Dr } from "./lib/applicationStatusQueryOptions.js";
7
+ import { createClientSecretInstaller as Or } from "./lib/scopedClientSecret.js";
8
+ import { cancelAllClients as kr, invalidateAllClients as Ar, registerQueryClient as jr, removeInactiveFromAllClients as Mr, setAllClientsQueriesData as Nr, unregisterQueryClient as Pr } from "./lib/clientRegistry.js";
9
+ import { cloneEmbeddedClient as Fr, createEmbeddedClient as Ir } from "./lib/createEmbeddedClient.js";
10
10
  import "./lib/widgetGatewayHosts.js";
11
- import { attachTransportInterceptors as Rr } from "./lib/transportInterceptors.js";
12
- import { EmbedApiProvider as zr, useEmbedApi as Br } from "./lib/EmbedApiContext.js";
13
- import { optionalOrganizationHeaders as Vr, organizationHeaders as Hr } from "./lib/organizationHeaders.js";
14
- import { fetchWidgetInit as Ur } from "./lib/fetchWidgetInit.js";
15
- import { hasAnyScope as Wr } from "./lib/hasAnyScope.js";
16
- import "./lib/queryKeys.js";
11
+ import { attachTransportInterceptors as Lr } from "./lib/transportInterceptors.js";
12
+ import { EmbedApiProvider as Rr, useEmbedApi as zr } from "./lib/EmbedApiContext.js";
13
+ import { optionalOrganizationHeaders as Br, organizationHeaders as Vr } from "./lib/organizationHeaders.js";
14
+ import { fetchWidgetInit as Hr } from "./lib/fetchWidgetInit.js";
15
+ import { hasAnyScope as Ur } from "./lib/hasAnyScope.js";
16
+ import { myEntityInvalidationKey as Wr } from "./lib/queryKeys.js";
17
17
  import { useCurrentUserQuery as Gr } from "./lib/useCurrentUserQuery.js";
18
- import { useMailboxAddress as Kr } from "./lib/useMailboxAddress.js";
18
+ import { useMyEntityQuery as Kr } from "./lib/useMyEntityQuery.js";
19
+ import { useMailboxAddress as qr } from "./lib/useMailboxAddress.js";
19
20
  import "./lib/apiErrorStatus.js";
20
- import { isApiConflictError as qr } from "./lib/isApiConflictError.js";
21
- import { isApiForbiddenError as Jr } from "./lib/isApiForbiddenError.js";
22
- import { isApiNotFoundError as Yr } from "./lib/isApiNotFoundError.js";
23
- import { isApiUnprocessableError as Xr } from "./lib/isApiUnprocessableError.js";
21
+ import { isApiConflictError as Jr } from "./lib/isApiConflictError.js";
22
+ import { isApiForbiddenError as Yr } from "./lib/isApiForbiddenError.js";
23
+ import { isApiNotFoundError as Xr } from "./lib/isApiNotFoundError.js";
24
+ import { isApiUnprocessableError as Zr } from "./lib/isApiUnprocessableError.js";
24
25
  import "./lib/isUserDataNotFoundError.js";
25
- import { useGetUserDataQuery as Zr } from "./lib/useGetUserDataQuery.js";
26
- import { useUpsertUserDataMutation as Qr } from "./lib/useUpsertUserDataMutation.js";
26
+ import { useGetUserDataQuery as Qr } from "./lib/useGetUserDataQuery.js";
27
+ import { useUpsertUserDataMutation as $r } from "./lib/useUpsertUserDataMutation.js";
27
28
  import "./lib/rest/zod.gen.js";
28
- import { Scope as $r, isScope as ei } from "./lib/scopes.js";
29
- import { getAllPagesNextPageParam as ti, getAllPagesNextPaginationTokenParam as ni, isAllPagesResolving as ri, useAutoFetchNextPage as ii } from "./lib/allPages.js";
30
- import { useAllBankAccountsQuery as ai } from "./lib/bank-account/useAllBankAccountsQuery.js";
31
- import { useAllDebitCardsQuery as oi } from "./lib/debit-card/useAllDebitCardsQuery.js";
32
- import { useAllExternalBankAccountsQuery as si } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
33
- import { useAllMerchantCategoryGroupsQuery as ci } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
34
- import { useAllLedgerAccountsQuery as li, useLedgerAccountsQuery as ui } from "./lib/reference-data/useLedgerAccountsQuery.js";
35
- import { usePaymentTermsQuery as di } from "./lib/reference-data/usePaymentTermsQuery.js";
36
- import { useAllOrganizationRolesQuery as fi } from "./lib/role/useAllOrganizationRolesQuery.js";
37
- import { useRolePermissionsQueries as pi } from "./lib/role/useRolePermissionsQueries.js";
38
- import { useAllOrganizationUsersQuery as mi } from "./lib/user/useAllOrganizationUsersQuery.js";
39
- import { personDisclosure as hi } from "./lib/disclosures/personDisclosure.js";
40
- import { useAcceptWidgetDisclosures as gi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
41
- import { useDisclosuresQuery as _i } from "./lib/disclosures/useDisclosuresQuery.js";
42
- import { OnboardingSuppressionReason as vi } from "./lib/onboardingSuppressionReason.js";
43
- import { useOrganizationOnboardingSuppression as yi } from "./lib/useOrganizationOnboardingSuppression.js";
44
- import { useOrganizationApplicationStatus as bi } from "./lib/useOrganizationApplicationStatus.js";
45
- export { zr as EmbedApiProvider, vi as OnboardingSuppressionReason, $r as Scope, He as activateCreditCardMutation, Ue as activateDebitCardMutation, Dr as applicationStatusInvalidationKey, Or as applicationStatusQueryOptions, Rr as attachTransportInterceptors, Tr as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Ar as cancelAllClients, Ir as cloneEmbeddedClient, We as connectExternalBankAccountMutation, Ge as createAchMoneyMovementMutation, Ke as createApplicationMutation, qe as createBankAccountMutation, Je as createBookTransferMutation, Ye as createCheckDepositMutation, kr as createClientSecretInstaller, Xe as createDebitCardMutation, r as createDepartment, Lr as createEmbeddedClient, i as createLocation, a as createUser, Ze as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Qe as deleteApprovalPoliciesIdMutation, $e as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, et as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, tt as deleteReceiptsIdMutation, g as deleteReceivablesId, nt as disableUserMutation, _ as downloadBankAccountTransactions, Ur as fetchWidgetInit, ti as getAllPagesNextPageParam, ni as getAllPagesNextPaginationTokenParam, rt as getAnalyticsPayablesOptions, it as getAnalyticsPayablesQueryKey, at as getAnalyticsReceiptsOptions, ot as getAnalyticsReceiptsQueryKey, st as getAnalyticsReceivablesOptions, ct as getAnalyticsReceivablesQueryKey, lt as getAnalyticsTransactionsOptions, ut as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, dt as getApprovalPoliciesOptions, ft as getApprovalPoliciesQueryKey, b as getApprovalRequests, pt as getApprovalRequestsOptions, mt as getApprovalRequestsQueryKey, x as getBankAccountAccess, ht as getBankAccountAccessQueryKey, gt as getBankAccountApplicationOptions, _t as getBankAccountOptions, vt as getBankAccountQueryKey, S as getBankAccountStatement, yt as getBankAccountStatementsOptions, bt as getBankAccountTransactionsOptions, xt as getBankAccountTransactionsQueryKey, St as getBankAccountTransfersOptions, Ct as getBankAccountTransfersQueryKey, wt as getBankAccountsQueryKey, Tt as getBankDetailsOptions, Et as getBankDetailsQueryKey, C as getCounterparts, Dt as getCounterpartsIdAddressesOptions, Ot as getCounterpartsIdAddressesQueryKey, kt as getCounterpartsIdBankAccountsOptions, At as getCounterpartsIdBankAccountsQueryKey, jt as getCounterpartsIdOptions, Mt as getCounterpartsIdQueryKey, Nt as getCounterpartsOptions, Pt as getCounterpartsQueryKey, Ft as getCreditCardByIdOptions, It as getCreditCardByIdQueryKey, Lt as getCreditCardsOptions, Rt as getCreditCardsQueryKey, zt as getDebitCardByIdOptions, Bt as getDebitCardByIdQueryKey, Vt as getDebitCardCredentialsOptions, Ht as getDebitCardsOptions, Ut as getDebitCardsQueryKey, w as getDepartment, Wt as getDepartmentOptions, Gt as getDepartmentQueryKey, T as getDepositableBankAccounts, Kt as getDepositableBankAccountsOptions, qt as getDocumentsIdNextNumbersOptions, Jt as getDocumentsIdNextNumbersQueryKey, Yt as getEntitiesIdSettingsOptions, Xt as getEntitiesIdSettingsQueryKey, Zt as getEntityUsersMyEntityOptions, Qt as getEntityUsersMyEntityQueryKey, $t as getEntityUsersOptions, E as getExternalBankAccountAccess, en as getExternalBankAccountAccessQueryKey, tn as getExternalBankAccountsOptions, nn as getExternalBankAccountsQueryKey, rn as getFilesQueryKey, an as getLedgerAccountsQueryKey, D as getLocation, on as getLocationOptions, sn as getLocationQueryKey, cn as getMeasureUnitsOptions, ln as getMeasureUnitsQueryKey, un as getOrganizationOptions, dn as getOverdueRemindersOptions, fn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, pn as getPayablesIdHistoryOptions, mn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, hn as getPayablesIdLineItemsOptions, gn as getPayablesIdLineItemsQueryKey, _n as getPayablesIdOptions, vn as getPayablesIdQueryKey, yn as getPayablesIdSuggestionsOptions, bn as getPayablesOptions, xn as getPayablesQueryKey, M as getPaymentRecords, Sn as getPaymentRecordsOptions, Cn as getPaymentRecordsQueryKey, wn as getPaymentRemindersOptions, Tn as getPaymentRemindersQueryKey, N as getProducts, En as getProductsIdOptions, Dn as getProductsIdQueryKey, On as getProductsOptions, kn as getProductsQueryKey, P as getReceipts, An as getReceiptsIdQueryKey, jn as getReceiptsOptions, Mn as getReceiptsQueryKey, F as getReceivables, Nn as getReceivablesIdHistoryOptions, Pn as getReceivablesIdHistoryQueryKey, Fn as getReceivablesIdMailsOptions, In as getReceivablesIdMailsQueryKey, Ln as getReceivablesIdOptions, Rn as getReceivablesIdPdfLinkOptions, zn as getReceivablesIdPdfLinkQueryKey, Bn as getReceivablesIdQueryKey, Vn as getReceivablesOptions, Hn as getReceivablesQueryKey, Un as getTransactionsIdExpenseHistoryOptions, Wn as getTransactionsIdExpenseHistoryQueryKey, Gn as getTransactionsIdOptions, Kn as getTransactionsIdQueryKey, qn as getTransactionsOptions, Jn as getTransactionsQueryKey, Yn as getTransactionsValidationsOptions, Xn as getTransactionsValidationsQueryKey, I as getUsers, Zn as getUsersOptions, Qn as getUsersQueryKey, $n as getVelocityControlsQueryKey, er as grantBankAccountAccessMutation, tr as grantExternalBankAccountAccessMutation, Wr as hasAnyScope, jr as invalidateAllClients, ri as isAllPagesResolving, qr as isApiConflictError, Jr as isApiForbiddenError, Yr as isApiNotFoundError, Xr as isApiUnprocessableError, ei as isScope, nr as linkExternalBankAccountMutation, L as listDepartments, rr as listDepartmentsOptions, ir as listDepartmentsQueryKey, R as listLocations, ar as listLocationsOptions, or as listLocationsQueryKey, z as listRoles, sr as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, cr as manageDebitCardAccessMutation, Vr as optionalOrganizationHeaders, Hr as organizationHeaders, lr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, ur as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, dr as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchTransactionsId, hi as personDisclosure, fr as postApprovalPoliciesMutation, Z as postApprovalRequestsIdApprove, Q as postApprovalRequestsIdReject, $ as postBankDetails, ee as postCounterparts, te as postCounterpartsIdAddresses, ne as postCounterpartsIdBankAccounts, re as postCounterpartsIdBankAccountsIdMakeDefault, ie as postFiles, pr as postLedgerAccountsMutation, ae as postMeasureUnits, oe as postOverdueReminders, se as postPayables, ce as postPayablesIdApprovePaymentOperation, le as postPayablesIdAttachFile, ue as postPayablesIdCancel, de as postPayablesIdDuplicatesIdConfirm, fe as postPayablesIdDuplicatesIdDismiss, pe as postPayablesIdMarkAsPaid, me as postPayablesIdReject, he as postPayablesIdReopen, ge as postPayablesIdSchedulePayment, _e as postPayablesIdSubmitForApproval, ve as postPayablesIdValidate, ye as postPayablesUploadFromFile, be as postPaymentIntentsIdCancel, xe as postPaymentReminders, Se as postProducts, mr as postReceiptsUploadFromFileMutation, Ce as postReceivables, we as postReceivablesIdAccept, Te as postReceivablesIdCancel, Ee as postReceivablesIdClone, De as postReceivablesIdDecline, Oe as postReceivablesIdIssue, ke as postReceivablesIdMarkAsPaid, Ae as postReceivablesIdMarkAsPartiallyPaid, je as postReceivablesIdMarkAsUncollectible, Me as postReceivablesIdSend, Ne as postTransactionsIdApprove, Pe as postTransactionsIdReject, Fe as postTransactionsIdReopen, Ie as postTransactionsIdSubmit, Le as putEntitiesIdLogo, Re as putPayablesIdLineItems, hr as putTransactionsValidationsMutation, Mr as registerQueryClient, Nr as removeInactiveFromAllClients, Pr as setAllClientsQueriesData, gr as setDebitCardLockStatusMutation, _r as submitApplicationMutation, vr as unlinkExternalBankAccountMutation, Fr as unregisterQueryClient, yr as updateApplicationMutation, br as updateBankAccountMutation, xr as updateDebitCardMutation, ze as updateDepartment, Sr as updateExternalBankAccountMutation, Be as updateLocation, Ve as updateUser, gi as useAcceptWidgetDisclosures, ai as useAllBankAccountsQuery, oi as useAllDebitCardsQuery, si as useAllExternalBankAccountsQuery, li as useAllLedgerAccountsQuery, ci as useAllMerchantCategoryGroupsQuery, fi as useAllOrganizationRolesQuery, mi as useAllOrganizationUsersQuery, ii as useAutoFetchNextPage, Gr as useCurrentUserQuery, _i as useDisclosuresQuery, Br as useEmbedApi, Zr as useGetUserDataQuery, ui as useLedgerAccountsQuery, Kr as useMailboxAddress, bi as useOrganizationApplicationStatus, yi as useOrganizationOnboardingSuppression, di as usePaymentTermsQuery, pi as useRolePermissionsQueries, Qr as useUpsertUserDataMutation, Cr as validateExternalBankAccountMutation, wr as verifyDebitCardMutation, Er as withAuthEpoch };
29
+ import { Scope as ei, isScope as ti } from "./lib/scopes.js";
30
+ import { getAllPagesNextPageParam as ni, getAllPagesNextPaginationTokenParam as ri, isAllPagesResolving as ii, useAutoFetchNextPage as ai } from "./lib/allPages.js";
31
+ import { useAllBankAccountsQuery as oi } from "./lib/bank-account/useAllBankAccountsQuery.js";
32
+ import { useAllDebitCardsQuery as si } from "./lib/debit-card/useAllDebitCardsQuery.js";
33
+ import { useAllExternalBankAccountsQuery as ci } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
34
+ import { useAllMerchantCategoryGroupsQuery as li } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
35
+ import { useAllLedgerAccountsQuery as ui, useLedgerAccountsQuery as di } from "./lib/reference-data/useLedgerAccountsQuery.js";
36
+ import { usePaymentTermsQuery as fi } from "./lib/reference-data/usePaymentTermsQuery.js";
37
+ import { useAllOrganizationRolesQuery as pi } from "./lib/role/useAllOrganizationRolesQuery.js";
38
+ import { useRolePermissionsQueries as mi } from "./lib/role/useRolePermissionsQueries.js";
39
+ import { useAllOrganizationUsersQuery as hi } from "./lib/user/useAllOrganizationUsersQuery.js";
40
+ import { personDisclosure as gi } from "./lib/disclosures/personDisclosure.js";
41
+ import { useAcceptWidgetDisclosures as _i } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
42
+ import { useDisclosuresQuery as vi } from "./lib/disclosures/useDisclosuresQuery.js";
43
+ import { OnboardingSuppressionReason as yi } from "./lib/onboardingSuppressionReason.js";
44
+ import { useOrganizationOnboardingSuppression as bi } from "./lib/useOrganizationOnboardingSuppression.js";
45
+ import { useOrganizationApplicationStatus as xi } from "./lib/useOrganizationApplicationStatus.js";
46
+ export { Rr as EmbedApiProvider, yi as OnboardingSuppressionReason, ei as Scope, He as activateCreditCardMutation, Ue as activateDebitCardMutation, Er as applicationStatusInvalidationKey, Dr as applicationStatusQueryOptions, Lr as attachTransportInterceptors, wr as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, kr as cancelAllClients, Fr as cloneEmbeddedClient, We as connectExternalBankAccountMutation, Ge as createAchMoneyMovementMutation, Ke as createApplicationMutation, qe as createBankAccountMutation, Je as createBookTransferMutation, Ye as createCheckDepositMutation, Or as createClientSecretInstaller, Xe as createDebitCardMutation, r as createDepartment, Ir as createEmbeddedClient, i as createLocation, a as createUser, Ze as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Qe as deleteApprovalPoliciesIdMutation, $e as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, et as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, tt as deleteReceiptsIdMutation, g as deleteReceivablesId, nt as disableUserMutation, _ as downloadBankAccountTransactions, Hr as fetchWidgetInit, ni as getAllPagesNextPageParam, ri as getAllPagesNextPaginationTokenParam, rt as getAnalyticsPayablesOptions, it as getAnalyticsPayablesQueryKey, at as getAnalyticsReceiptsOptions, ot as getAnalyticsReceiptsQueryKey, st as getAnalyticsReceivablesOptions, ct as getAnalyticsReceivablesQueryKey, lt as getAnalyticsTransactionsOptions, ut as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, dt as getApprovalPoliciesOptions, ft as getApprovalPoliciesQueryKey, b as getApprovalRequests, pt as getApprovalRequestsOptions, mt as getApprovalRequestsQueryKey, x as getBankAccountAccess, ht as getBankAccountAccessQueryKey, gt as getBankAccountApplicationOptions, _t as getBankAccountOptions, vt as getBankAccountQueryKey, S as getBankAccountStatement, yt as getBankAccountStatementsOptions, bt as getBankAccountTransactionsOptions, xt as getBankAccountTransactionsQueryKey, St as getBankAccountTransfersOptions, Ct as getBankAccountTransfersQueryKey, wt as getBankAccountsQueryKey, Tt as getBankDetailsOptions, Et as getBankDetailsQueryKey, C as getCounterparts, Dt as getCounterpartsIdAddressesOptions, Ot as getCounterpartsIdAddressesQueryKey, kt as getCounterpartsIdBankAccountsOptions, At as getCounterpartsIdBankAccountsQueryKey, jt as getCounterpartsIdOptions, Mt as getCounterpartsIdQueryKey, Nt as getCounterpartsOptions, Pt as getCounterpartsQueryKey, Ft as getCreditCardByIdOptions, It as getCreditCardByIdQueryKey, Lt as getCreditCardsOptions, Rt as getCreditCardsQueryKey, zt as getDebitCardByIdOptions, Bt as getDebitCardByIdQueryKey, Vt as getDebitCardCredentialsOptions, Ht as getDebitCardsOptions, Ut as getDebitCardsQueryKey, w as getDepartment, Wt as getDepartmentOptions, Gt as getDepartmentQueryKey, T as getDepositableBankAccounts, Kt as getDepositableBankAccountsOptions, qt as getDocumentsIdNextNumbersOptions, Jt as getDocumentsIdNextNumbersQueryKey, Yt as getEntitiesIdSettingsOptions, Xt as getEntitiesIdSettingsQueryKey, Zt as getEntityUsersMyEntityOptions, Qt as getEntityUsersOptions, E as getExternalBankAccountAccess, $t as getExternalBankAccountAccessQueryKey, en as getExternalBankAccountsOptions, tn as getExternalBankAccountsQueryKey, nn as getFilesQueryKey, rn as getLedgerAccountsQueryKey, D as getLocation, an as getLocationOptions, on as getLocationQueryKey, sn as getMeasureUnitsOptions, cn as getMeasureUnitsQueryKey, ln as getOrganizationOptions, un as getOverdueRemindersOptions, dn as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, fn as getPayablesIdHistoryOptions, pn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, mn as getPayablesIdLineItemsOptions, hn as getPayablesIdLineItemsQueryKey, gn as getPayablesIdOptions, _n as getPayablesIdQueryKey, vn as getPayablesIdSuggestionsOptions, yn as getPayablesOptions, bn as getPayablesQueryKey, M as getPaymentRecords, xn as getPaymentRecordsOptions, Sn as getPaymentRecordsQueryKey, Cn as getPaymentRemindersOptions, wn as getPaymentRemindersQueryKey, N as getProducts, Tn as getProductsIdOptions, En as getProductsIdQueryKey, Dn as getProductsOptions, On as getProductsQueryKey, P as getReceipts, kn as getReceiptsIdQueryKey, An as getReceiptsOptions, jn as getReceiptsQueryKey, F as getReceivables, Mn as getReceivablesIdHistoryOptions, Nn as getReceivablesIdHistoryQueryKey, Pn as getReceivablesIdMailsOptions, Fn as getReceivablesIdMailsQueryKey, In as getReceivablesIdOptions, Ln as getReceivablesIdPdfLinkOptions, Rn as getReceivablesIdPdfLinkQueryKey, zn as getReceivablesIdQueryKey, Bn as getReceivablesOptions, Vn as getReceivablesQueryKey, Hn as getTransactionsIdExpenseHistoryOptions, Un as getTransactionsIdExpenseHistoryQueryKey, Wn as getTransactionsIdOptions, Gn as getTransactionsIdQueryKey, Kn as getTransactionsOptions, qn as getTransactionsQueryKey, Jn as getTransactionsValidationsOptions, Yn as getTransactionsValidationsQueryKey, I as getUsers, Xn as getUsersOptions, Zn as getUsersQueryKey, Qn as getVelocityControlsQueryKey, $n as grantBankAccountAccessMutation, er as grantExternalBankAccountAccessMutation, Ur as hasAnyScope, Ar as invalidateAllClients, ii as isAllPagesResolving, Jr as isApiConflictError, Yr as isApiForbiddenError, Xr as isApiNotFoundError, Zr as isApiUnprocessableError, ti as isScope, tr as linkExternalBankAccountMutation, L as listDepartments, nr as listDepartmentsOptions, rr as listDepartmentsQueryKey, R as listLocations, ir as listLocationsOptions, ar as listLocationsQueryKey, z as listRoles, or as listRolesQueryKey, B as manageBankAccountAccess, V as manageDebitCardAccess, sr as manageDebitCardAccessMutation, Wr as myEntityInvalidationKey, Br as optionalOrganizationHeaders, Vr as organizationHeaders, cr as patchApprovalPoliciesIdMutation, H as patchCounterpartsId, U as patchCounterpartsIdAddressesId, W as patchCounterpartsIdBankAccountsId, G as patchEntitiesIdSettings, lr as patchLedgerAccountsIdMutation, K as patchMeasureUnitsId, q as patchPayablesId, J as patchProductsId, ur as patchReceiptsIdMutation, Y as patchReceivablesId, X as patchTransactionsId, gi as personDisclosure, dr as postApprovalPoliciesMutation, Z as postApprovalRequestsIdApprove, Q as postApprovalRequestsIdReject, $ as postBankDetails, ee as postCounterparts, te as postCounterpartsIdAddresses, ne as postCounterpartsIdBankAccounts, re as postCounterpartsIdBankAccountsIdMakeDefault, ie as postFiles, fr as postLedgerAccountsMutation, ae as postMeasureUnits, oe as postOverdueReminders, se as postPayables, ce as postPayablesIdApprovePaymentOperation, le as postPayablesIdAttachFile, ue as postPayablesIdCancel, de as postPayablesIdDuplicatesIdConfirm, fe as postPayablesIdDuplicatesIdDismiss, pe as postPayablesIdMarkAsPaid, me as postPayablesIdReject, he as postPayablesIdReopen, ge as postPayablesIdSchedulePayment, _e as postPayablesIdSubmitForApproval, ve as postPayablesIdValidate, ye as postPayablesUploadFromFile, be as postPaymentIntentsIdCancel, xe as postPaymentReminders, Se as postProducts, pr as postReceiptsUploadFromFileMutation, Ce as postReceivables, we as postReceivablesIdAccept, Te as postReceivablesIdCancel, Ee as postReceivablesIdClone, De as postReceivablesIdDecline, Oe as postReceivablesIdIssue, ke as postReceivablesIdMarkAsPaid, Ae as postReceivablesIdMarkAsPartiallyPaid, je as postReceivablesIdMarkAsUncollectible, Me as postReceivablesIdSend, Ne as postTransactionsIdApprove, Pe as postTransactionsIdReject, Fe as postTransactionsIdReopen, Ie as postTransactionsIdSubmit, Le as putEntitiesIdLogo, Re as putPayablesIdLineItems, mr as putTransactionsValidationsMutation, jr as registerQueryClient, Mr as removeInactiveFromAllClients, Nr as setAllClientsQueriesData, hr as setDebitCardLockStatusMutation, gr as submitApplicationMutation, _r as unlinkExternalBankAccountMutation, Pr as unregisterQueryClient, vr as updateApplicationMutation, yr as updateBankAccountMutation, br as updateDebitCardMutation, ze as updateDepartment, xr as updateExternalBankAccountMutation, Be as updateLocation, Ve as updateUser, _i as useAcceptWidgetDisclosures, oi as useAllBankAccountsQuery, si as useAllDebitCardsQuery, ci as useAllExternalBankAccountsQuery, ui as useAllLedgerAccountsQuery, li as useAllMerchantCategoryGroupsQuery, pi as useAllOrganizationRolesQuery, hi as useAllOrganizationUsersQuery, ai as useAutoFetchNextPage, Gr as useCurrentUserQuery, vi as useDisclosuresQuery, zr as useEmbedApi, Qr as useGetUserDataQuery, di as useLedgerAccountsQuery, qr as useMailboxAddress, Kr as useMyEntityQuery, xi as useOrganizationApplicationStatus, bi as useOrganizationOnboardingSuppression, fi as usePaymentTermsQuery, mi as useRolePermissionsQueries, $r as useUpsertUserDataMutation, Sr as validateExternalBankAccountMutation, Cr as verifyDebitCardMutation, Tr as withAuthEpoch };
@@ -1,8 +1,12 @@
1
- import { getUserDataQueryKey as e } from "./rest/@tanstack/react-query.gen.js";
1
+ import { getEntityUsersMyEntityQueryKey as e, getUserDataQueryKey as t } from "./rest/@tanstack/react-query.gen.js";
2
+ import { organizationHeaders as n } from "./organizationHeaders.js";
2
3
  //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/queryKeys.js
3
- var t = ({ client: t, key: n }) => e({
4
- client: t,
4
+ var r = ({ client: e, key: n }) => t({
5
+ client: e,
5
6
  path: { key: n }
7
+ }), i = ({ client: t, organizationId: r }) => e({
8
+ client: t,
9
+ headers: n(r)
6
10
  });
7
11
  //#endregion
8
- export { t as userDataInvalidationKey };
12
+ export { i as myEntityInvalidationKey, r as userDataInvalidationKey };
@@ -0,0 +1,25 @@
1
+ "use client";
2
+ "use client";
3
+ "use client";
4
+ "use client";
5
+ import { getEntityUsersMyEntityOptions as e } from "./rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "./withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "./EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "./organizationHeaders.js";
9
+ import { useQuery as i } from "@tanstack/react-query";
10
+ //#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js
11
+ function a() {
12
+ let { client: a, organizationId: o, widgetToken: s, authEpoch: c, organizationPending: l } = n(), u = !!(o && s), d = e({
13
+ client: a,
14
+ headers: r(o)
15
+ });
16
+ return i({
17
+ ...t(d, {
18
+ authEpoch: c,
19
+ organizationPending: l
20
+ }),
21
+ enabled: u
22
+ });
23
+ }
24
+ //#endregion
25
+ export { a as useMyEntityQuery };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.207", n = "e76f3e7895dfa622f1f7f5691b286afccd135c37", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.211", n = "ea3f3633a5ea51e5204678d4b51f968b1c3a39d6", 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.5.207",
3
+ "version": "0.5.211",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {
@@ -1,34 +0,0 @@
1
- "use client";
2
- "use client";
3
- "use client";
4
- "use client";
5
- import { deleteEntitiesIdLogo as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
- import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
- import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
- import "../../../../shared/data-access/dist/index.js";
10
- import { myEntityInvalidationKey as i } from "./index5.js";
11
- import { useMutation as a } from "@tanstack/react-query";
12
- //#region ../../libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index8.js
13
- function o() {
14
- let { client: o, organizationId: s } = n();
15
- return a({
16
- mutationFn: async ({ entityId: t }) => {
17
- let { data: n } = await e({
18
- client: o,
19
- headers: r(s),
20
- path: { entity_id: t },
21
- throwOnError: !0
22
- });
23
- return n;
24
- },
25
- onSuccess: async () => {
26
- await t(i({
27
- client: o,
28
- organizationId: s
29
- }));
30
- }
31
- });
32
- }
33
- //#endregion
34
- export { o as useDeleteEntityLogoMutation };