@tesouro/embedded-components-react 0.2.337 → 0.2.338
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.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +103 -58
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +74 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +25 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +64 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +40 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +51 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +5 -71
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +71 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +46 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +78 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +33 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +138 -67
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +63 -200
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +194 -184
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +180 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +64 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +12 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +46 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +26 -158
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +159 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +32 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index37.js +102 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index38.js +13 -224
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index39.js +243 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index40.js +4 -29
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +27 -80
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +76 -126
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +137 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +2 -43
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +45 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +6 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +9 -92
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +94 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +14 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +59 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +3 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +107 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +8 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +40 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +6 -98
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +91 -171
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +179 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +26 -26
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/clientRegistry.js +11 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +94 -74
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1,115 @@
|
|
|
1
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { hasAnyScope as e } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
6
|
+
import { Scope as t } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
7
|
+
import "../../../shared/data-access/dist/index.js";
|
|
8
|
+
import { EmbeddedToaster as n } from "../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
9
|
+
import "../../../shared/ui/dist/index.js";
|
|
10
|
+
import { useAnalyticsTrack as r } from "../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
|
+
import { WidgetProvider as i } from "../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
12
|
+
import { useWidgetConfig as a } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
|
+
import "../../../shared/feature/dist/index.js";
|
|
14
|
+
import { BillPayWidgetUi as o } from "../../ui/dist/index44.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index63.js";
|
|
16
|
+
import "../../ui/dist/index.js";
|
|
17
|
+
import { ApprovalPoliciesSettings as c } from "../../../shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js";
|
|
18
|
+
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
19
|
+
import { useBillUploadQueue as l } from "./index50.js";
|
|
20
|
+
import "./index51.js";
|
|
21
|
+
import { billsTabTestIds as u } from "./index59.js";
|
|
22
|
+
import { BillsTab as d } from "./index61.js";
|
|
23
|
+
import "./index62.js";
|
|
24
|
+
import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index45.js";
|
|
25
|
+
import { DEFAULT_TABS_LABELS as m } from "./index63.js";
|
|
26
|
+
import { CounterpartsWidget as h } from "../../../counterparts-widget/feature/dist/index8.js";
|
|
27
|
+
import "../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
+
import { useCallback as g, useEffect as _, useState as v } from "react";
|
|
29
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
30
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js
|
|
31
|
+
var S = {
|
|
32
|
+
Bills: "bills",
|
|
33
|
+
Vendors: "vendors",
|
|
34
|
+
Settings: "settings"
|
|
35
|
+
}, C = [
|
|
36
|
+
S.Bills,
|
|
37
|
+
S.Vendors,
|
|
38
|
+
S.Settings
|
|
39
|
+
];
|
|
40
|
+
function w({ labels: i, tabsLabels: p, approvalPolicyLabels: w, approvalPolicyComponentLabels: T, vendorLabels: E, poweredByBankName: D }) {
|
|
41
|
+
let O = r();
|
|
42
|
+
_(() => {
|
|
43
|
+
O(f.Mounted);
|
|
44
|
+
}, [O]);
|
|
45
|
+
let k = {
|
|
46
|
+
...m,
|
|
47
|
+
...p
|
|
48
|
+
}, { initResponse: A } = a(), j = e(A?.scopes, [t.ApprovalPolicyWriteOrg]), M = !A || j, [N, P] = v(S.Bills), [F, I] = v(), L = g((e) => {
|
|
49
|
+
P(S.Bills), I(e);
|
|
50
|
+
}, []), R = l({ onOpenBill: L }), z = [{
|
|
51
|
+
id: S.Bills,
|
|
52
|
+
label: k.bills,
|
|
53
|
+
content: /* @__PURE__ */ b(d, {
|
|
54
|
+
onEnqueueFiles: R.enqueue,
|
|
55
|
+
openPayableId: F,
|
|
56
|
+
onOpenPayableHandled: () => I(void 0),
|
|
57
|
+
poweredByBankName: D
|
|
58
|
+
})
|
|
59
|
+
}, {
|
|
60
|
+
id: S.Vendors,
|
|
61
|
+
label: k.vendors,
|
|
62
|
+
content: /* @__PURE__ */ b(h, {
|
|
63
|
+
...E,
|
|
64
|
+
counterpartType: "vendor",
|
|
65
|
+
showTitle: !1,
|
|
66
|
+
onViewAllDocuments: () => P(S.Bills)
|
|
67
|
+
})
|
|
68
|
+
}];
|
|
69
|
+
M && z.push({
|
|
70
|
+
id: S.Settings,
|
|
71
|
+
label: k.settings,
|
|
72
|
+
content: /* @__PURE__ */ b(c, {
|
|
73
|
+
labels: w,
|
|
74
|
+
componentLabels: T
|
|
75
|
+
})
|
|
76
|
+
});
|
|
77
|
+
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
78
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
79
|
+
/* @__PURE__ */ b(n, {}),
|
|
80
|
+
/* @__PURE__ */ b(o, {
|
|
81
|
+
labels: i,
|
|
82
|
+
tabs: z,
|
|
83
|
+
selectedTabId: B,
|
|
84
|
+
onTabChange: P
|
|
85
|
+
}),
|
|
86
|
+
R.isVisible ? /* @__PURE__ */ b(s, {
|
|
87
|
+
sections: R.sections,
|
|
88
|
+
summaryLabel: R.summaryLabel,
|
|
89
|
+
collapsed: R.collapsed,
|
|
90
|
+
onToggleCollapsed: R.onToggleCollapsed,
|
|
91
|
+
onClose: R.onClose,
|
|
92
|
+
testId: u.uploadTray
|
|
93
|
+
}) : null
|
|
94
|
+
] });
|
|
95
|
+
}
|
|
96
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, ...m }) {
|
|
97
|
+
return /* @__PURE__ */ b(i, {
|
|
98
|
+
widgetName: p,
|
|
99
|
+
baseUrl: e,
|
|
100
|
+
widgetToken: t,
|
|
101
|
+
organizationId: n,
|
|
102
|
+
configClient: r,
|
|
103
|
+
gatewayRouting: a,
|
|
104
|
+
linkComponent: o,
|
|
105
|
+
implementation: s,
|
|
106
|
+
uiFramework: c,
|
|
107
|
+
errorFallback: l,
|
|
108
|
+
onError: u,
|
|
109
|
+
analytics: d,
|
|
110
|
+
disclosuresAcceptance: f,
|
|
111
|
+
children: /* @__PURE__ */ b(w, { ...m })
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
//#endregion
|
|
115
|
+
export { T as BillPayWidgetNative, T as default };
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
-
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
-
import "../../../shared/feature/dist/index.js";
|
|
8
|
-
import { BillPayWidgetMonite as n } from "./index45.js";
|
|
9
|
-
import "./index46.js";
|
|
10
|
-
import { BillPayWidgetNative as r } from "./index63.js";
|
|
11
1
|
import "./index64.js";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js
|
|
14
|
-
function a({ implementation: a, ...o }) {
|
|
15
|
-
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
-
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
-
implementation: c,
|
|
18
|
-
...o
|
|
19
|
-
}) : /* @__PURE__ */ i(n, {
|
|
20
|
-
implementation: c,
|
|
21
|
-
...o
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { a as BillPayWidget, a as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { Implementation as e } from "../../../shared/feature/dist/lib/WidgetProvider/types.js";
|
|
6
|
+
import { useWidgetConfig as t } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
7
|
+
import "../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillPayWidgetMonite as n } from "./index46.js";
|
|
9
|
+
import "./index47.js";
|
|
10
|
+
import { BillPayWidgetNative as r } from "./index64.js";
|
|
11
|
+
import "./index65.js";
|
|
12
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js
|
|
14
|
+
function a({ implementation: a, ...o }) {
|
|
15
|
+
let s = t().implementation, c = a ?? s ?? e.Monite;
|
|
16
|
+
return c === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
+
implementation: c,
|
|
18
|
+
...o
|
|
19
|
+
}) : /* @__PURE__ */ i(n, {
|
|
20
|
+
implementation: c,
|
|
21
|
+
...o
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as BillPayWidget, a as default };
|
|
@@ -26,6 +26,7 @@ var a = {
|
|
|
26
26
|
rejectButton: "Reject",
|
|
27
27
|
approveButton: "Approve",
|
|
28
28
|
cancelButton: "Cancel bill",
|
|
29
|
+
cancelScheduledPaymentButton: "Cancel scheduled payment",
|
|
29
30
|
reopenButton: "Reopen bill",
|
|
30
31
|
forceApproveButton: "Approve without policy",
|
|
31
32
|
forceRejectButton: "Reject without policy",
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import "./lib/api-version.js";
|
|
2
|
-
import {
|
|
3
|
-
import { cloneEmbeddedClient as
|
|
4
|
-
import { isWidgetGatewayHost as
|
|
2
|
+
import { cancelAllClients as e, invalidateAllClients as t, registerQueryClient as n, removeInactiveFromAllClients as r, setAllClientsQueriesData as i, unregisterQueryClient as a } from "./lib/clientRegistry.js";
|
|
3
|
+
import { cloneEmbeddedClient as o, createEmbeddedClient as s } from "./lib/createEmbeddedClient.js";
|
|
4
|
+
import { isWidgetGatewayHost as c } from "./lib/widgetGatewayHosts.js";
|
|
5
5
|
import "./lib/rest/client.gen.js";
|
|
6
|
-
import { EmbedApiProvider as
|
|
7
|
-
import { optionalOrganizationHeaders as
|
|
8
|
-
import { bulkUpdateDepartmentMembers as
|
|
9
|
-
import { fetchWidgetInit as
|
|
10
|
-
import { hasAnyScope as
|
|
11
|
-
import { connectExternalBankAccountMutation as
|
|
6
|
+
import { EmbedApiProvider as l, useEmbedApi as u } from "./lib/EmbedApiContext.js";
|
|
7
|
+
import { optionalOrganizationHeaders as d, organizationHeaders as f } from "./lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateDepartmentMembers as p, bulkUpdateLocationMembers as m, bulkUpdateRoleMembers as h, createDepartment as g, createLocation as _, createUser as v, deactivateDepartment as y, deactivateLocation as b, deleteCounterpartsId as x, deleteCounterpartsIdBankAccountsId as S, deleteFilesId as C, deleteMeasureUnitsId as w, deletePayablesId as T, deleteProductsId as E, deleteReceivablesId as D, deleteTagsId as O, downloadBankAccountTransactions as k, getApplicationStatus as A, getApprovalPolicies as j, getBankAccountAccess as M, getDepartment as N, getExternalBankAccountAccess as P, getLocation as F, getPayablesId as I, getPayablesIdLineItems as L, getPaymentRecords as R, getUsers as z, listDepartments as B, listLocations as V, listRoles as H, manageBankAccountAccess as U, patchCounterpartsId as W, patchCounterpartsIdAddressesId as G, patchCounterpartsIdBankAccountsId as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchTagsId as Z, postApprovalRequestsIdApprove as Q, postApprovalRequestsIdReject as $, postCounterparts as ee, postCounterpartsIdAddresses as te, postCounterpartsIdBankAccounts as ne, postCounterpartsIdBankAccountsIdMakeDefault as re, postMeasureUnits as ie, postPayables as ae, postPayablesIdApprovePaymentOperation as oe, postPayablesIdAttachFile as se, postPayablesIdCancel as ce, postPayablesIdMarkAsPaid as le, postPayablesIdReject as ue, postPayablesIdReopen as de, postPayablesIdSchedulePayment as fe, postPayablesIdSubmitForApproval as pe, postPayablesIdValidate as me, postPayablesUploadFromFile as he, postPaymentRecordsIdCancel as ge, postProducts as _e, postReceivables as ve, postReceivablesIdAccept as ye, postReceivablesIdCancel as be, postReceivablesIdClone as xe, postReceivablesIdDecline as Se, postReceivablesIdIssue as Ce, postReceivablesIdMarkAsPaid as we, postReceivablesIdMarkAsPartiallyPaid as Te, postReceivablesIdMarkAsUncollectible as Ee, postReceivablesIdSend as De, postTags as Oe, putPayablesIdLineItems as ke, putReceivablesIdLineItems as Ae, updateDepartment as je, updateLocation as Me, updateUser as Ne } from "./lib/rest/sdk.gen.js";
|
|
9
|
+
import { fetchWidgetInit as Pe } from "./lib/fetchWidgetInit.js";
|
|
10
|
+
import { hasAnyScope as Fe } from "./lib/hasAnyScope.js";
|
|
11
|
+
import { connectExternalBankAccountMutation as Ie, createAchMoneyMovementMutation as Le, createApplicationMutation as Re, createBankAccountMutation as ze, createBookTransferMutation as Be, createDebitCardMutation as Ve, deleteApprovalPoliciesIdMutation as He, deleteLedgerAccountsIdMutation as Ue, deleteReceiptsIdMutation as We, disableUserMutation as Ge, getAnalyticsPayablesOptions as Ke, getAnalyticsReceivablesOptions as qe, getApplicationStatusOptions as Je, getApprovalPoliciesOptions as Ye, getApprovalPoliciesQueryKey as Xe, getApprovalRequestsOptions as Ze, getApprovalRequestsQueryKey as Qe, getBankAccountAccessQueryKey as $e, getBankAccountOptions as et, getBankAccountQueryKey as tt, getBankAccountTransactionsOptions as nt, getBankAccountTransfersOptions as rt, getBankAccountTransfersQueryKey as it, getBankAccountsQueryKey as at, getCounterpartsIdAddressesOptions as ot, getCounterpartsIdAddressesQueryKey as st, getCounterpartsIdBankAccountsOptions as ct, getCounterpartsIdBankAccountsQueryKey as lt, getCounterpartsIdOptions as ut, getCounterpartsIdQueryKey as dt, getCounterpartsOptions as ft, getCounterpartsQueryKey as pt, getCreditCardByIdOptions as mt, getCreditCardsOptions as ht, getDebitCardByIdOptions as gt, getDebitCardsOptions as _t, getDebitCardsQueryKey as vt, getDepartmentOptions as yt, getDepartmentQueryKey as bt, getEntitiesIdSettingsOptions as xt, getEntitiesIdSettingsQueryKey as St, getEntitiesMeOptions as Ct, getEntityUsersMyEntityOptions as wt, getEntityUsersOptions as Tt, getExternalBankAccountAccessQueryKey as Et, getExternalBankAccountsOptions as Dt, getExternalBankAccountsQueryKey as Ot, getLedgerAccountsQueryKey as kt, getLocationOptions as At, getLocationQueryKey as jt, getMeasureUnitsOptions as Mt, getMeasureUnitsQueryKey as Nt, getOrganizationOptions as Pt, getPayablesAnalyticsOptions as Ft, getPayablesAnalyticsQueryKey as It, getPayablesIdHistoryOptions as Lt, getPayablesIdHistoryQueryKey as Rt, getPayablesIdLineItemsOptions as zt, getPayablesIdLineItemsQueryKey as Bt, getPayablesIdOptions as Vt, getPayablesIdQueryKey as Ht, getPayablesIdSuggestionsOptions as Ut, getPayablesOptions as Wt, getPayablesQueryKey as Gt, getPaymentRecordsOptions as Kt, getPaymentRecordsQueryKey as qt, getProductsIdOptions as Jt, getProductsIdQueryKey as Yt, getProductsOptions as Xt, getProductsQueryKey as Zt, getReceiptsIdQueryKey as Qt, getReceiptsOptions as $t, getReceiptsQueryKey as en, getReceivablesIdHistoryOptions as tn, getReceivablesIdHistoryQueryKey as nn, getReceivablesIdMailsOptions as rn, getReceivablesIdMailsQueryKey as an, getReceivablesIdOptions as on, getReceivablesIdPdfLinkOptions as sn, getReceivablesIdPdfLinkQueryKey as cn, getReceivablesIdQueryKey as ln, getReceivablesOptions as un, getReceivablesQueryKey as dn, getTagsOptions as fn, getTagsQueryKey as pn, getTransactionsIdQueryKey as mn, getTransactionsOptions as hn, getTransactionsQueryKey as gn, getTransactionsValidationsOptions as _n, getTransactionsValidationsQueryKey as vn, getUsersOptions as yn, getUsersQueryKey as bn, grantBankAccountAccessMutation as xn, grantExternalBankAccountAccessMutation as Sn, linkExternalBankAccountMutation as Cn, listDepartmentsOptions as wn, listDepartmentsQueryKey as Tn, listLocationsOptions as En, listLocationsQueryKey as Dn, listRolesQueryKey as On, patchApprovalPoliciesIdMutation as kn, patchEntitiesIdSettingsMutation as An, patchLedgerAccountsIdMutation as jn, patchReceiptsIdMutation as Mn, postApprovalPoliciesMutation as Nn, postLedgerAccountsMutation as Pn, putTransactionsValidationsMutation as Fn, submitApplicationMutation as In, unlinkExternalBankAccountMutation as Ln, updateApplicationMutation as Rn, updateBankAccountMutation as zn, updateExternalBankAccountMutation as Bn, validateExternalBankAccountMutation as Vn } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
12
12
|
import "./lib/queryKeys.js";
|
|
13
|
-
import { withAuthEpoch as
|
|
14
|
-
import { useCurrentUserQuery as
|
|
15
|
-
import { isApiNotFoundError as
|
|
13
|
+
import { withAuthEpoch as Hn } from "./lib/withAuthEpoch.js";
|
|
14
|
+
import { useCurrentUserQuery as Un } from "./lib/useCurrentUserQuery.js";
|
|
15
|
+
import { isApiNotFoundError as Wn } from "./lib/isApiNotFoundError.js";
|
|
16
16
|
import "./lib/isUserDataNotFoundError.js";
|
|
17
|
-
import { useGetUserDataQuery as
|
|
18
|
-
import { useUpsertUserDataMutation as
|
|
17
|
+
import { useGetUserDataQuery as Gn } from "./lib/useGetUserDataQuery.js";
|
|
18
|
+
import { useUpsertUserDataMutation as Kn } from "./lib/useUpsertUserDataMutation.js";
|
|
19
19
|
import "./lib/rest/zod.gen.js";
|
|
20
|
-
import { Scope as
|
|
21
|
-
import { getAllPagesNextPageParam as
|
|
22
|
-
import { useAllBankAccountsQuery as
|
|
23
|
-
import { useAllExternalBankAccountsQuery as
|
|
24
|
-
import { useAllLedgerAccountsQuery as
|
|
25
|
-
import { usePaymentTermsQuery as
|
|
26
|
-
import { useAllOrganizationRolesQuery as
|
|
27
|
-
import { useRolePermissionsQueries as
|
|
28
|
-
import { useAllOrganizationUsersQuery as
|
|
29
|
-
import { useAcceptWidgetDisclosures as
|
|
30
|
-
import { useDisclosuresQuery as
|
|
31
|
-
export {
|
|
20
|
+
import { Scope as qn } from "./lib/scopes.js";
|
|
21
|
+
import { getAllPagesNextPageParam as Jn, getAllPagesNextPaginationTokenParam as Yn, isAllPagesResolving as Xn, useAutoFetchNextPage as Zn } from "./lib/allPages.js";
|
|
22
|
+
import { useAllBankAccountsQuery as Qn } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
23
|
+
import { useAllExternalBankAccountsQuery as $n } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
24
|
+
import { useAllLedgerAccountsQuery as er, useLedgerAccountsQuery as tr } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
25
|
+
import { usePaymentTermsQuery as nr } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
26
|
+
import { useAllOrganizationRolesQuery as rr } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
27
|
+
import { useRolePermissionsQueries as ir } from "./lib/role/useRolePermissionsQueries.js";
|
|
28
|
+
import { useAllOrganizationUsersQuery as ar } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
29
|
+
import { useAcceptWidgetDisclosures as or } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
30
|
+
import { useDisclosuresQuery as sr } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
31
|
+
export { l as EmbedApiProvider, qn as Scope, p as bulkUpdateDepartmentMembers, m as bulkUpdateLocationMembers, h as bulkUpdateRoleMembers, e as cancelAllClients, o as cloneEmbeddedClient, Ie as connectExternalBankAccountMutation, Le as createAchMoneyMovementMutation, Re as createApplicationMutation, ze as createBankAccountMutation, Be as createBookTransferMutation, Ve as createDebitCardMutation, g as createDepartment, s as createEmbeddedClient, _ as createLocation, v as createUser, y as deactivateDepartment, b as deactivateLocation, He as deleteApprovalPoliciesIdMutation, x as deleteCounterpartsId, S as deleteCounterpartsIdBankAccountsId, C as deleteFilesId, Ue as deleteLedgerAccountsIdMutation, w as deleteMeasureUnitsId, T as deletePayablesId, E as deleteProductsId, We as deleteReceiptsIdMutation, D as deleteReceivablesId, O as deleteTagsId, Ge as disableUserMutation, k as downloadBankAccountTransactions, Pe as fetchWidgetInit, Jn as getAllPagesNextPageParam, Yn as getAllPagesNextPaginationTokenParam, Ke as getAnalyticsPayablesOptions, qe as getAnalyticsReceivablesOptions, A as getApplicationStatus, Je as getApplicationStatusOptions, j as getApprovalPolicies, Ye as getApprovalPoliciesOptions, Xe as getApprovalPoliciesQueryKey, Ze as getApprovalRequestsOptions, Qe as getApprovalRequestsQueryKey, M as getBankAccountAccess, $e as getBankAccountAccessQueryKey, et as getBankAccountOptions, tt as getBankAccountQueryKey, nt as getBankAccountTransactionsOptions, rt as getBankAccountTransfersOptions, it as getBankAccountTransfersQueryKey, at as getBankAccountsQueryKey, ot as getCounterpartsIdAddressesOptions, st as getCounterpartsIdAddressesQueryKey, ct as getCounterpartsIdBankAccountsOptions, lt as getCounterpartsIdBankAccountsQueryKey, ut as getCounterpartsIdOptions, dt as getCounterpartsIdQueryKey, ft as getCounterpartsOptions, pt as getCounterpartsQueryKey, mt as getCreditCardByIdOptions, ht as getCreditCardsOptions, gt as getDebitCardByIdOptions, _t as getDebitCardsOptions, vt as getDebitCardsQueryKey, N as getDepartment, yt as getDepartmentOptions, bt as getDepartmentQueryKey, xt as getEntitiesIdSettingsOptions, St as getEntitiesIdSettingsQueryKey, Ct as getEntitiesMeOptions, wt as getEntityUsersMyEntityOptions, Tt as getEntityUsersOptions, P as getExternalBankAccountAccess, Et as getExternalBankAccountAccessQueryKey, Dt as getExternalBankAccountsOptions, Ot as getExternalBankAccountsQueryKey, kt as getLedgerAccountsQueryKey, F as getLocation, At as getLocationOptions, jt as getLocationQueryKey, Mt as getMeasureUnitsOptions, Nt as getMeasureUnitsQueryKey, Pt as getOrganizationOptions, Ft as getPayablesAnalyticsOptions, It as getPayablesAnalyticsQueryKey, I as getPayablesId, Lt as getPayablesIdHistoryOptions, Rt as getPayablesIdHistoryQueryKey, L as getPayablesIdLineItems, zt as getPayablesIdLineItemsOptions, Bt as getPayablesIdLineItemsQueryKey, Vt as getPayablesIdOptions, Ht as getPayablesIdQueryKey, Ut as getPayablesIdSuggestionsOptions, Wt as getPayablesOptions, Gt as getPayablesQueryKey, R as getPaymentRecords, Kt as getPaymentRecordsOptions, qt as getPaymentRecordsQueryKey, Jt as getProductsIdOptions, Yt as getProductsIdQueryKey, Xt as getProductsOptions, Zt as getProductsQueryKey, Qt as getReceiptsIdQueryKey, $t as getReceiptsOptions, en as getReceiptsQueryKey, tn as getReceivablesIdHistoryOptions, nn as getReceivablesIdHistoryQueryKey, rn as getReceivablesIdMailsOptions, an as getReceivablesIdMailsQueryKey, on as getReceivablesIdOptions, sn as getReceivablesIdPdfLinkOptions, cn as getReceivablesIdPdfLinkQueryKey, ln as getReceivablesIdQueryKey, un as getReceivablesOptions, dn as getReceivablesQueryKey, fn as getTagsOptions, pn as getTagsQueryKey, mn as getTransactionsIdQueryKey, hn as getTransactionsOptions, gn as getTransactionsQueryKey, _n as getTransactionsValidationsOptions, vn as getTransactionsValidationsQueryKey, z as getUsers, yn as getUsersOptions, bn as getUsersQueryKey, xn as grantBankAccountAccessMutation, Sn as grantExternalBankAccountAccessMutation, Fe as hasAnyScope, t as invalidateAllClients, Xn as isAllPagesResolving, Wn as isApiNotFoundError, c as isWidgetGatewayHost, Cn as linkExternalBankAccountMutation, B as listDepartments, wn as listDepartmentsOptions, Tn as listDepartmentsQueryKey, V as listLocations, En as listLocationsOptions, Dn as listLocationsQueryKey, H as listRoles, On as listRolesQueryKey, U as manageBankAccountAccess, d as optionalOrganizationHeaders, f as organizationHeaders, kn as patchApprovalPoliciesIdMutation, W as patchCounterpartsId, G as patchCounterpartsIdAddressesId, K as patchCounterpartsIdBankAccountsId, An as patchEntitiesIdSettingsMutation, jn as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, Mn as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchTagsId, Nn as postApprovalPoliciesMutation, Q as postApprovalRequestsIdApprove, $ as postApprovalRequestsIdReject, ee as postCounterparts, te as postCounterpartsIdAddresses, ne as postCounterpartsIdBankAccounts, re as postCounterpartsIdBankAccountsIdMakeDefault, Pn as postLedgerAccountsMutation, ie as postMeasureUnits, ae as postPayables, oe as postPayablesIdApprovePaymentOperation, se as postPayablesIdAttachFile, ce as postPayablesIdCancel, le as postPayablesIdMarkAsPaid, ue as postPayablesIdReject, de as postPayablesIdReopen, fe as postPayablesIdSchedulePayment, pe as postPayablesIdSubmitForApproval, me as postPayablesIdValidate, he as postPayablesUploadFromFile, ge as postPaymentRecordsIdCancel, _e as postProducts, ve as postReceivables, ye as postReceivablesIdAccept, be as postReceivablesIdCancel, xe as postReceivablesIdClone, Se as postReceivablesIdDecline, Ce as postReceivablesIdIssue, we as postReceivablesIdMarkAsPaid, Te as postReceivablesIdMarkAsPartiallyPaid, Ee as postReceivablesIdMarkAsUncollectible, De as postReceivablesIdSend, Oe as postTags, ke as putPayablesIdLineItems, Ae as putReceivablesIdLineItems, Fn as putTransactionsValidationsMutation, n as registerQueryClient, r as removeInactiveFromAllClients, i as setAllClientsQueriesData, In as submitApplicationMutation, Ln as unlinkExternalBankAccountMutation, a as unregisterQueryClient, Rn as updateApplicationMutation, zn as updateBankAccountMutation, je as updateDepartment, Bn as updateExternalBankAccountMutation, Me as updateLocation, Ne as updateUser, or as useAcceptWidgetDisclosures, Qn as useAllBankAccountsQuery, $n as useAllExternalBankAccountsQuery, er as useAllLedgerAccountsQuery, rr as useAllOrganizationRolesQuery, ar as useAllOrganizationUsersQuery, Zn as useAutoFetchNextPage, Un as useCurrentUserQuery, sr as useDisclosuresQuery, u as useEmbedApi, Gn as useGetUserDataQuery, tr as useLedgerAccountsQuery, nr as usePaymentTermsQuery, ir as useRolePermissionsQueries, Kn as useUpsertUserDataMutation, Vn as validateExternalBankAccountMutation, Hn as withAuthEpoch };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/clientRegistry.js
CHANGED
|
@@ -13,8 +13,17 @@ function n(t) {
|
|
|
13
13
|
function r(t) {
|
|
14
14
|
return Promise.all([...e].map((e) => e.invalidateQueries({ queryKey: t }))).then(() => void 0);
|
|
15
15
|
}
|
|
16
|
-
function i(t
|
|
16
|
+
function i(t) {
|
|
17
|
+
return Promise.all([...e].map((e) => e.cancelQueries({ queryKey: t }))).then(() => void 0);
|
|
18
|
+
}
|
|
19
|
+
function a(t) {
|
|
20
|
+
for (let n of e) n.removeQueries({
|
|
21
|
+
queryKey: t,
|
|
22
|
+
type: "inactive"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function o(t, n) {
|
|
17
26
|
for (let r of e) r.setQueriesData({ queryKey: t }, n);
|
|
18
27
|
}
|
|
19
28
|
//#endregion
|
|
20
|
-
export { r as invalidateAllClients, t as registerQueryClient,
|
|
29
|
+
export { i as cancelAllClients, r as invalidateAllClients, t as registerQueryClient, a as removeInactiveFromAllClients, o as setAllClientsQueriesData, n as unregisterQueryClient };
|