@tesouro/embedded-components-react 0.5.19 → 0.5.20
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/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +4 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +78 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +3 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +47 -136
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +136 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +33 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +188 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +22 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +223 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +202 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +126 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +47 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +49 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +19 -434
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +436 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +35 -231
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +235 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +112 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +239 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +110 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +213 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index11.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index12.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index14.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index17.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index18.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index19.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index21.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index23.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index8.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index12.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index14.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index15.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index16.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index17.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index10.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index12.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index14.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index16.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index17.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index8.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +12 -1
- 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/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index2.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +0 -9
- /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index.js +0 -0
|
@@ -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/index53.js";
|
|
15
|
+
import { BillUploadStatusTray as s } from "../../ui/dist/index82.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 "./index71.js";
|
|
20
|
+
import "./index72.js";
|
|
21
|
+
import { billsTabTestIds as u } from "./index77.js";
|
|
22
|
+
import { BillsTab as d } from "./index83.js";
|
|
23
|
+
import "./index84.js";
|
|
24
|
+
import { BillPayWidgetAnalyticsEvent as f, WIDGET_NAME as p } from "./index66.js";
|
|
25
|
+
import { DEFAULT_TABS_LABELS as m } from "./index85.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/index86.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
|
+
onViewAllDocuments: () => P(S.Bills)
|
|
66
|
+
})
|
|
67
|
+
}];
|
|
68
|
+
M && z.push({
|
|
69
|
+
id: S.Settings,
|
|
70
|
+
label: k.settings,
|
|
71
|
+
content: /* @__PURE__ */ b(c, {
|
|
72
|
+
labels: w,
|
|
73
|
+
componentLabels: T
|
|
74
|
+
})
|
|
75
|
+
});
|
|
76
|
+
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
77
|
+
return /* @__PURE__ */ x(y, { children: [
|
|
78
|
+
/* @__PURE__ */ b(n, {}),
|
|
79
|
+
/* @__PURE__ */ b(o, {
|
|
80
|
+
labels: i,
|
|
81
|
+
tabs: z,
|
|
82
|
+
selectedTabId: B,
|
|
83
|
+
onTabChange: P
|
|
84
|
+
}),
|
|
85
|
+
R.isVisible ? /* @__PURE__ */ b(s, {
|
|
86
|
+
sections: R.sections,
|
|
87
|
+
summaryLabel: R.summaryLabel,
|
|
88
|
+
collapsed: R.collapsed,
|
|
89
|
+
onToggleCollapsed: R.onToggleCollapsed,
|
|
90
|
+
onClose: R.onClose,
|
|
91
|
+
testId: u.uploadTray
|
|
92
|
+
}) : null
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
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, providerLabels: m, ...h }) {
|
|
96
|
+
return /* @__PURE__ */ b(i, {
|
|
97
|
+
widgetName: p,
|
|
98
|
+
baseUrl: e,
|
|
99
|
+
widgetToken: t,
|
|
100
|
+
organizationId: n,
|
|
101
|
+
configClient: r,
|
|
102
|
+
gatewayRouting: a,
|
|
103
|
+
linkComponent: o,
|
|
104
|
+
implementation: s,
|
|
105
|
+
uiFramework: c,
|
|
106
|
+
errorFallback: l,
|
|
107
|
+
onError: u,
|
|
108
|
+
analytics: d,
|
|
109
|
+
disclosuresAcceptance: f,
|
|
110
|
+
providerLabels: m,
|
|
111
|
+
children: /* @__PURE__ */ b(w, { ...h })
|
|
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 "./index66.js";
|
|
9
|
-
import "./index67.js";
|
|
10
|
-
import { BillPayWidgetNative as r } from "./index85.js";
|
|
11
1
|
import "./index86.js";
|
|
12
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.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 "./index67.js";
|
|
9
|
+
import "./index68.js";
|
|
10
|
+
import { BillPayWidgetNative as r } from "./index86.js";
|
|
11
|
+
import "./index87.js";
|
|
12
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.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 };
|
|
@@ -21,8 +21,8 @@ import { TagsWidget as p } from "../../../tags-widget/feature/dist/index11.js";
|
|
|
21
21
|
import "../../../tags-widget/feature/dist/index.js";
|
|
22
22
|
import { BankDisclosuresWidget as m } from "../../../shared/bank-disclosures/feature/dist/lib/BankDisclosuresWidget/BankDisclosuresWidget.js";
|
|
23
23
|
import "../../../shared/bank-disclosures/feature/dist/index.js";
|
|
24
|
-
import { TeamWidget as h } from "
|
|
25
|
-
import "
|
|
24
|
+
import { TeamWidget as h } from "../../team/feature/dist/index17.js";
|
|
25
|
+
import "../../team/feature/dist/index.js";
|
|
26
26
|
import { SettingsWidgetUi as g } from "../../ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js";
|
|
27
27
|
import "../../ui/dist/index.js";
|
|
28
28
|
import { ChartOfAccountsWidget as _ } from "../../chart-of-accounts/feature/dist/index8.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useAllOrganizationRolesQuery as e } from "
|
|
1
|
+
import { useAllOrganizationRolesQuery as e } from "../../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
|
|
2
2
|
import "./index2.js";
|
|
3
3
|
import "./index3.js";
|
|
4
4
|
import { useDeactivateTeamMemberMutation as t } from "./index4.js";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { getBankAccountAccess as n, getExternalBankAccountAccess as r } from "
|
|
8
|
-
import { getBankAccountAccessQueryKey as i, getExternalBankAccountAccessQueryKey as a } from "
|
|
9
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getBankAccountAccess as n, getExternalBankAccountAccess as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getBankAccountAccessQueryKey as i, getExternalBankAccountAccessQueryKey as a } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useQueries as o } from "@tanstack/react-query";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index10.js
|
|
12
12
|
function s({ userId: s, accounts: c, enabled: l }) {
|
|
13
13
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f && s) && c.length > 0 && (l === !0 || l === void 0);
|
|
14
14
|
return o({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { listRoles as n } from "
|
|
8
|
-
import { listRolesQueryKey as r } from "
|
|
9
|
-
import { withAuthEpoch as i } from "
|
|
10
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { listRoles as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { listRolesQueryKey as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { withAuthEpoch as i } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { queryOptions as a, useQuery as o } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js
|
|
13
13
|
var s = 100;
|
|
14
14
|
function c({ enabled: c } = {}) {
|
|
15
15
|
let { client: l, organizationId: u, widgetToken: d, authEpoch: f } = e(), p = t(u), m = a({
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getUsersOptions as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
8
|
+
import { withAuthEpoch as r } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
11
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js
|
|
12
|
+
function a({ enabled: a, ...o } = {}) {
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = n({
|
|
14
|
+
query: o,
|
|
15
|
+
client: s,
|
|
16
|
+
headers: t(c)
|
|
17
|
+
});
|
|
18
|
+
return i({
|
|
19
|
+
...r(d, u),
|
|
20
|
+
enabled: !!(c && l) && (a === !0 || a === void 0)
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { a as useTeamMembersQuery };
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { getUsers as n } from "
|
|
8
|
-
import { getUsersOptions as r } from "
|
|
9
|
-
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "
|
|
10
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getUsers as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getUsersOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useMemo as o } from "react";
|
|
12
12
|
import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js
|
|
14
14
|
var c = 100;
|
|
15
15
|
function l({ Status: l, enabled: u } = {}) {
|
|
16
16
|
let { client: d, organizationId: f, widgetToken: p, authEpoch: m } = e(), h = t(f), g = !!(f && p) && (u === !0 || u === void 0), _ = r({
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, updateUser as o } from "
|
|
9
|
-
import { getDepartmentQueryKey as s, getLocationQueryKey as c } from "
|
|
10
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, updateUser as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import { getDepartmentQueryKey as s, getLocationQueryKey as c } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as l } from "./index2.js";
|
|
12
12
|
import { departmentsInvalidationKey as u } from "./index5.js";
|
|
13
13
|
import { locationsInvalidationKey as d } from "./index6.js";
|
|
14
14
|
import { useMutation as f } from "@tanstack/react-query";
|
|
15
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
15
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index15.js
|
|
16
16
|
async function p({ client: t, organizationId: r, departmentChange: i, locationChange: a }) {
|
|
17
17
|
let o = n(r), f = [i?.removeId, i?.addId].filter((e) => !!e), p = [a?.removeId, a?.addId].filter((e) => !!e);
|
|
18
18
|
await Promise.all([
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { listDepartments as n } from "
|
|
8
|
-
import { listDepartmentsOptions as r } from "
|
|
9
|
-
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "
|
|
10
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { listDepartments as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { listDepartmentsOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useMemo as o } from "react";
|
|
12
12
|
import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js
|
|
14
14
|
var c = 100;
|
|
15
15
|
function l({ enabled: l } = {}) {
|
|
16
16
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { getDepartment as n } from "
|
|
8
|
-
import { getDepartmentOptions as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getDepartment as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getDepartmentOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useEffect as i, useMemo as a } from "react";
|
|
11
11
|
import { useInfiniteQuery as o } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js
|
|
13
13
|
var s = 100;
|
|
14
14
|
function c({ departmentId: c, enabled: l }) {
|
|
15
15
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { bulkUpdateDepartmentMembers as r, createDepartment as i, deactivateDepartment as a, updateDepartment as o } from "
|
|
9
|
-
import { getDepartmentQueryKey as s } from "
|
|
10
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateDepartmentMembers as r, createDepartment as i, deactivateDepartment as a, updateDepartment as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import { getDepartmentQueryKey as s } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as c } from "./index2.js";
|
|
12
12
|
import { departmentsInvalidationKey as l } from "./index5.js";
|
|
13
13
|
import { useMutation as u } from "@tanstack/react-query";
|
|
14
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js
|
|
15
15
|
async function d(t) {
|
|
16
16
|
await Promise.all([e(l(t)), e(c(t))]);
|
|
17
17
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getUsersQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as teamMembersInvalidationKey };
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { listLocations as n } from "
|
|
8
|
-
import { listLocationsOptions as r } from "
|
|
9
|
-
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "
|
|
10
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { listLocations as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { listLocationsOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useMemo as o } from "react";
|
|
12
12
|
import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js
|
|
14
14
|
var c = 100;
|
|
15
15
|
function l({ enabled: l } = {}) {
|
|
16
16
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { getLocation as n } from "
|
|
8
|
-
import { getLocationOptions as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getLocation as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getLocationOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useEffect as i, useMemo as a } from "react";
|
|
11
11
|
import { useInfiniteQuery as o } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js
|
|
13
13
|
var s = 100;
|
|
14
14
|
function c({ locationId: c, enabled: l }) {
|
|
15
15
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { bulkUpdateLocationMembers as r, createLocation as i, deactivateLocation as a, updateLocation as o } from "
|
|
9
|
-
import { getLocationQueryKey as s } from "
|
|
10
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateLocationMembers as r, createLocation as i, deactivateLocation as a, updateLocation as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import { getLocationQueryKey as s } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as c } from "./index2.js";
|
|
12
12
|
import { locationsInvalidationKey as l } from "./index6.js";
|
|
13
13
|
import { useMutation as u } from "@tanstack/react-query";
|
|
14
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js
|
|
15
15
|
async function d(t) {
|
|
16
16
|
await Promise.all([e(l(t)), e(c(t))]);
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { organizationHeaders as e } from "
|
|
2
|
-
import { getBankAccountAccessQueryKey as t, getExternalBankAccountAccessQueryKey as n } from "
|
|
3
|
-
import "
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getBankAccountAccessQueryKey as t, getExternalBankAccountAccessQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js
|
|
5
5
|
var r = ({ client: n, organizationId: r, bankAccountId: i }) => t({
|
|
6
6
|
client: n,
|
|
7
7
|
headers: e(r),
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { disableUserMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { teamMembersInvalidationKey as i } from "./index2.js";
|
|
11
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js
|
|
13
|
+
function o() {
|
|
14
|
+
let { client: o, organizationId: s } = t(), c = r({
|
|
15
|
+
client: o,
|
|
16
|
+
headers: n(s)
|
|
17
|
+
});
|
|
18
|
+
return a({
|
|
19
|
+
...c,
|
|
20
|
+
onSuccess: async (...t) => {
|
|
21
|
+
await e(i({
|
|
22
|
+
client: o,
|
|
23
|
+
organizationId: s
|
|
24
|
+
})), await c.onSuccess?.(...t);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as useDeactivateTeamMemberMutation };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { listDepartmentsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as departmentsInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { listLocationsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as locationsInvalidationKey };
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, createUser as o, manageBankAccountAccess as s, updateUser as c } from "
|
|
9
|
-
import { getDepartmentQueryKey as l, getLocationQueryKey as u } from "
|
|
10
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, createUser as o, manageBankAccountAccess as s, updateUser as c } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import { getDepartmentQueryKey as l, getLocationQueryKey as u } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as d } from "./index2.js";
|
|
12
12
|
import { accountAccessInvalidationKeyForSource as f } from "./index3.js";
|
|
13
13
|
import { departmentsInvalidationKey as p } from "./index5.js";
|
|
14
14
|
import { locationsInvalidationKey as m } from "./index6.js";
|
|
15
15
|
import { useRef as h } from "react";
|
|
16
16
|
import { useMutation as g } from "@tanstack/react-query";
|
|
17
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
17
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js
|
|
18
18
|
function _(e) {
|
|
19
19
|
return e.map((e) => `${e.source}:${e.bankAccountId}`).sort().join(",");
|
|
20
20
|
}
|