@tesouro/embedded-components-react 0.5.163 → 0.5.165
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/README.md +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +1 -1
- package/dist/lib/UploadReceiptWidget.d.ts +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +114 -110
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/UploadReceiptWidget/UploadReceiptModal.js +24 -22
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +183 -172
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +88 -80
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -422,7 +422,7 @@ _Standalone presentational widget — it does not take the shared auth/scope pro
|
|
|
422
422
|
|
|
423
423
|
| Prop | Type | Default | Description |
|
|
424
424
|
| ----------------- | --------------------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
425
|
-
| `emailAddress` | `string` |
|
|
425
|
+
| `emailAddress` | `string` | `undefined` | Forwarding email address shown in the popover with a copy button. Omit it to hide the email option. |
|
|
426
426
|
| `onFileUpload` | `(file: File) => unknown \| Promise<unknown>` | `undefined` | Called once per selected file. The widget awaits each call and counts resolutions vs. rejections to drive its toasts. Omit to disable uploading. |
|
|
427
427
|
| `onAwaitMatching` | `(uploadedCount: number) => Promise<ReceiptMatchSummary>` | `undefined` | Awaited after every file in a batch has uploaded. Resolve once the backend has finished OCR and auto-matching, and the widget reports the aggregate outcome in its batch toast. Omit to stop at the upload confirmation. |
|
|
428
428
|
| `isUploading` | `boolean` | `false` | Host-controlled loading flag. While `true` (or while a batch is in flight) the popover shows a processing state and blocks new uploads. |
|
package/dist/index.d.ts
CHANGED
|
@@ -4490,7 +4490,7 @@ interface ReceiptMatchSummary {
|
|
|
4490
4490
|
stillProcessing: number;
|
|
4491
4491
|
}
|
|
4492
4492
|
interface UploadReceiptWidgetProps {
|
|
4493
|
-
emailAddress
|
|
4493
|
+
emailAddress?: string;
|
|
4494
4494
|
onFileUpload?: (file: File) => unknown | Promise<unknown>;
|
|
4495
4495
|
/**
|
|
4496
4496
|
* Awaited after every file in the batch has uploaded. Resolve once the backend
|
|
@@ -648,7 +648,7 @@ interface ReceiptMatchSummary {
|
|
|
648
648
|
stillProcessing: number;
|
|
649
649
|
}
|
|
650
650
|
interface UploadReceiptWidgetProps {
|
|
651
|
-
emailAddress
|
|
651
|
+
emailAddress?: string;
|
|
652
652
|
onFileUpload?: (file: File) => unknown | Promise<unknown>;
|
|
653
653
|
/**
|
|
654
654
|
* Awaited after every file in the batch has uploaded. Resolve once the backend
|
|
@@ -13,7 +13,7 @@ interface ReceiptMatchSummary {
|
|
|
13
13
|
stillProcessing: number;
|
|
14
14
|
}
|
|
15
15
|
interface UploadReceiptWidgetProps {
|
|
16
|
-
emailAddress
|
|
16
|
+
emailAddress?: string;
|
|
17
17
|
onFileUpload?: (file: File) => unknown | Promise<unknown>;
|
|
18
18
|
/**
|
|
19
19
|
* Awaited after every file in the batch has uploaded. Resolve once the backend
|
|
@@ -4,140 +4,146 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { toast as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
6
|
import { hasAnyScope as t } from "../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { useMailboxAddress as ee } from "../../../shared/data-access/dist/lib/useMailboxAddress.js";
|
|
7
8
|
import { Scope as n } from "../../../shared/data-access/dist/lib/scopes.js";
|
|
8
9
|
import "../../../shared/data-access/dist/index.js";
|
|
9
10
|
import "../../../shared/ui/dist/index.js";
|
|
10
|
-
import { useWidgetConfig as
|
|
11
|
+
import { useWidgetConfig as r, useWidgetInitStaleForToken as i } from "../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
11
12
|
import "../../../shared/feature/dist/index.js";
|
|
12
|
-
import { useDuplicateBillsCount as
|
|
13
|
-
import { AddBillDialog as
|
|
13
|
+
import { useDuplicateBillsCount as te } from "./index10.js";
|
|
14
|
+
import { AddBillDialog as ne } from "../../ui/dist/index10.js";
|
|
14
15
|
import { BillsScreen as re } from "../../ui/dist/index84.js";
|
|
15
16
|
import "../../ui/dist/index.js";
|
|
16
17
|
import { DuplicateBillsContainer as ie } from "./index12.js";
|
|
17
18
|
import "./index14.js";
|
|
18
|
-
import { BillCreateDialog as
|
|
19
|
+
import { BillCreateDialog as a } from "./index62.js";
|
|
19
20
|
import "./index63.js";
|
|
20
21
|
import { BillDetailsContainer as ae } from "./index65.js";
|
|
21
22
|
import "./index66.js";
|
|
22
23
|
import "./index72.js";
|
|
23
24
|
import "./index73.js";
|
|
24
|
-
import { BILL_QUEUE_ORDER as
|
|
25
|
-
import { BILLS_TAB_LABELS_EN as
|
|
26
|
-
import { useBillsTable as
|
|
27
|
-
import { formatBillQueueBadge as
|
|
28
|
-
import { copyTextToClipboard as
|
|
29
|
-
import { resolveDuplicateWarning as
|
|
30
|
-
import { billsTabTestIds as
|
|
31
|
-
import { useBillQueueCounts as
|
|
25
|
+
import { BILL_QUEUE_ORDER as o } from "./index75.js";
|
|
26
|
+
import { BILLS_TAB_LABELS_EN as s } from "./index78.js";
|
|
27
|
+
import { useBillsTable as c } from "./index86.js";
|
|
28
|
+
import { formatBillQueueBadge as l } from "./index74.js";
|
|
29
|
+
import { copyTextToClipboard as u } from "./index76.js";
|
|
30
|
+
import { resolveDuplicateWarning as d } from "./index77.js";
|
|
31
|
+
import { billsTabTestIds as f, billsTableCellTestIds as oe } from "./index79.js";
|
|
32
|
+
import { useBillQueueCounts as se } from "./index80.js";
|
|
32
33
|
import { useCallback as p, useEffect as m, useMemo as h, useState as g } from "react";
|
|
33
|
-
import { jsx as _, jsxs as
|
|
34
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
34
35
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...o,
|
|
36
|
+
function y({ labels: y, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandled: S, vendorIntent: C, onVendorIntentHandled: w, poweredByBankName: T, onSettingsClick: ce }) {
|
|
37
|
+
let E = h(() => ({
|
|
38
|
+
...s,
|
|
39
39
|
...y,
|
|
40
40
|
queues: {
|
|
41
|
-
...
|
|
41
|
+
...s.queues,
|
|
42
42
|
...y?.queues
|
|
43
43
|
},
|
|
44
44
|
scheduledRelativeDay: {
|
|
45
|
-
...
|
|
45
|
+
...s.scheduledRelativeDay,
|
|
46
46
|
...y?.scheduledRelativeDay
|
|
47
47
|
},
|
|
48
48
|
filters: {
|
|
49
|
-
...
|
|
49
|
+
...s.filters,
|
|
50
50
|
...y?.filters,
|
|
51
51
|
presets: {
|
|
52
|
-
...
|
|
52
|
+
...s.filters.presets,
|
|
53
53
|
...y?.filters?.presets
|
|
54
54
|
},
|
|
55
55
|
statuses: {
|
|
56
|
-
...
|
|
56
|
+
...s.filters.statuses,
|
|
57
57
|
...y?.filters?.statuses
|
|
58
58
|
},
|
|
59
59
|
dateFieldNames: {
|
|
60
|
-
...
|
|
60
|
+
...s.filters.dateFieldNames,
|
|
61
61
|
...y?.filters?.dateFieldNames
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
filterBar: {
|
|
65
|
-
...
|
|
65
|
+
...s.filterBar,
|
|
66
66
|
...y?.filterBar
|
|
67
67
|
},
|
|
68
|
-
queueEmptyStates:
|
|
68
|
+
queueEmptyStates: o.reduce((e, t) => ({
|
|
69
69
|
...e,
|
|
70
70
|
[t]: {
|
|
71
|
-
...
|
|
71
|
+
...s.queueEmptyStates[t],
|
|
72
72
|
...y?.queueEmptyStates?.[t]
|
|
73
73
|
}
|
|
74
74
|
}), {})
|
|
75
|
-
}), [y]), [
|
|
76
|
-
if (t &&
|
|
77
|
-
|
|
75
|
+
}), [y]), [le, D] = g(!1), [ue, O] = g(), [k, A] = g(), [j, M] = g(!1), [N, P] = g(), [F, I] = g(!1), [L, R] = g(!1), [z, B] = g(!1), { initResponse: V } = r(), H = i(), de = t(V?.scopes, [n.PayableReadOrg]), fe = t(V?.scopes, [n.PayableWriteOrg]), U = !V || de, W = !V || fe, pe = p((e, t) => {
|
|
76
|
+
if (t && W) {
|
|
77
|
+
O(e), A(void 0), M(!0);
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
}, [
|
|
82
|
-
enabled:
|
|
83
|
-
canReadVendors:
|
|
84
|
-
isVendorFilterPaused:
|
|
85
|
-
filterLabels:
|
|
86
|
-
onOpenBill:
|
|
87
|
-
duplicateRowNote:
|
|
88
|
-
attachmentLabel:
|
|
89
|
-
scheduledRelativeDayLabels:
|
|
90
|
-
}), q =
|
|
80
|
+
P(e), R(!0);
|
|
81
|
+
}, [W]), me = t(V?.scopes, [n.CounterpartReadOrg]), { mailboxAddress: G } = ee({ relatedObjectType: "payable" }), K = c({
|
|
82
|
+
enabled: U,
|
|
83
|
+
canReadVendors: me,
|
|
84
|
+
isVendorFilterPaused: H,
|
|
85
|
+
filterLabels: E.filters,
|
|
86
|
+
onOpenBill: pe,
|
|
87
|
+
duplicateRowNote: E.duplicateRowNote,
|
|
88
|
+
attachmentLabel: E.attachmentIndicator,
|
|
89
|
+
scheduledRelativeDayLabels: E.scheduledRelativeDay
|
|
90
|
+
}), q = te({ enabled: U }), he = d(q, E), J = se({ enabled: U }), ge = h(() => o.map((e) => ({
|
|
91
91
|
id: e,
|
|
92
|
-
label:
|
|
93
|
-
badge:
|
|
94
|
-
})), [
|
|
95
|
-
|
|
96
|
-
}, _e = () => {
|
|
97
|
-
L(!1), z(!0);
|
|
92
|
+
label: E.queues[e],
|
|
93
|
+
badge: l(J[e])
|
|
94
|
+
})), [E.queues, J]), _e = (e) => {
|
|
95
|
+
B(!1), P(e), R(!0);
|
|
98
96
|
}, ve = () => {
|
|
99
|
-
|
|
97
|
+
I(!1), R(!0);
|
|
98
|
+
}, ye = () => {
|
|
99
|
+
R(!1), I(!0);
|
|
100
100
|
}, Y = () => {
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
createButton:
|
|
104
|
-
settingsButton:
|
|
105
|
-
addBill: { heading:
|
|
101
|
+
I(!1), R(!1), O(N), A(void 0), M(!0);
|
|
102
|
+
}, be = h(() => ({
|
|
103
|
+
createButton: E.createButton,
|
|
104
|
+
settingsButton: E.settingsButton,
|
|
105
|
+
addBill: { heading: E.nonEmptyHeading }
|
|
106
106
|
}), [
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
]),
|
|
107
|
+
E.createButton,
|
|
108
|
+
E.settingsButton,
|
|
109
|
+
E.nonEmptyHeading
|
|
110
|
+
]), xe = h(() => ({
|
|
111
111
|
...K.filterBarProps,
|
|
112
|
-
labels:
|
|
113
|
-
}), [K.filterBarProps,
|
|
114
|
-
|
|
112
|
+
labels: E.filterBar
|
|
113
|
+
}), [K.filterBarProps, E.filterBar]), X = p((e) => {
|
|
114
|
+
D(!1), O(void 0), A(e), M(!0);
|
|
115
115
|
}, []), Z = (e) => {
|
|
116
|
-
|
|
117
|
-
}, Q =
|
|
118
|
-
|
|
116
|
+
D(!1), b?.(e);
|
|
117
|
+
}, Q = G ? {
|
|
118
|
+
emailAddress: G,
|
|
119
|
+
onCopyEmail: async () => {
|
|
120
|
+
G && (await u(G) ? e.success(E.emailCopiedToast) : e.error(E.emailCopyFailedToast));
|
|
121
|
+
}
|
|
122
|
+
} : {
|
|
123
|
+
emailAddress: void 0,
|
|
124
|
+
onCopyEmail: void 0
|
|
119
125
|
};
|
|
120
126
|
m(() => {
|
|
121
|
-
x && (
|
|
127
|
+
x && (O(x), A(void 0), M(!0), S?.());
|
|
122
128
|
}, [S, x]);
|
|
123
129
|
let { showVendorBills: $ } = K;
|
|
124
130
|
return m(() => {
|
|
125
|
-
C && (C.action === "createBill" ?
|
|
131
|
+
C && (C.action === "createBill" ? W && X(C.vendorId) : $({
|
|
126
132
|
id: C.vendorId,
|
|
127
133
|
name: C.vendorName
|
|
128
134
|
}), w?.());
|
|
129
135
|
}, [
|
|
130
|
-
|
|
136
|
+
W,
|
|
131
137
|
w,
|
|
132
138
|
X,
|
|
133
139
|
$,
|
|
134
140
|
C
|
|
135
|
-
]), /* @__PURE__ */
|
|
136
|
-
"data-testid":
|
|
141
|
+
]), /* @__PURE__ */ v("div", {
|
|
142
|
+
"data-testid": f.root,
|
|
137
143
|
children: [
|
|
138
144
|
/* @__PURE__ */ _(re, {
|
|
139
145
|
rows: K.rows,
|
|
140
|
-
isLoading: K.isLoading || !
|
|
146
|
+
isLoading: K.isLoading || !V,
|
|
141
147
|
isError: K.isError,
|
|
142
148
|
onRetry: K.onRetry,
|
|
143
149
|
sorting: K.sorting,
|
|
@@ -148,67 +154,65 @@ function y({ labels: y, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandle
|
|
|
148
154
|
hasPrevPage: K.hasPrevPage,
|
|
149
155
|
onNextPage: K.onNextPage,
|
|
150
156
|
onPrevPage: K.onPrevPage,
|
|
151
|
-
filterTabs:
|
|
157
|
+
filterTabs: ge,
|
|
152
158
|
selectedFilterTabId: K.selectedFilterTabId,
|
|
153
159
|
onFilterTabChange: K.onFilterTabChange,
|
|
154
160
|
searchValue: K.searchValue,
|
|
155
161
|
onSearchChange: K.onSearchChange,
|
|
156
|
-
filters:
|
|
162
|
+
filters: xe,
|
|
157
163
|
visibleColumns: K.visibleColumns,
|
|
158
|
-
cellTestIds:
|
|
164
|
+
cellTestIds: oe,
|
|
159
165
|
isSearchActive: K.isSearchActive,
|
|
160
166
|
showAddPanelWhenEmpty: K.showAddPanelWhenEmpty,
|
|
161
|
-
emptyState:
|
|
162
|
-
onCreateClick:
|
|
163
|
-
onSettingsClick:
|
|
164
|
-
onEnterManually:
|
|
165
|
-
onFilesSelected:
|
|
167
|
+
emptyState: E.queueEmptyStates[K.selectedFilterTabId],
|
|
168
|
+
onCreateClick: W ? () => D(!0) : void 0,
|
|
169
|
+
onSettingsClick: ce,
|
|
170
|
+
onEnterManually: W ? () => X() : void 0,
|
|
171
|
+
onFilesSelected: W ? Z : void 0,
|
|
166
172
|
maxFiles: 10,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
labels: ye
|
|
173
|
+
...Q,
|
|
174
|
+
duplicateWarning: he,
|
|
175
|
+
onReviewDuplicates: q.isError ? void 0 : () => B(!0),
|
|
176
|
+
labels: be
|
|
172
177
|
}),
|
|
173
|
-
|
|
174
|
-
open:
|
|
175
|
-
onOpenChange:
|
|
176
|
-
enabled:
|
|
177
|
-
canManageDuplicates:
|
|
178
|
-
onOpenBill:
|
|
178
|
+
z ? /* @__PURE__ */ _(ie, {
|
|
179
|
+
open: z,
|
|
180
|
+
onOpenChange: B,
|
|
181
|
+
enabled: U,
|
|
182
|
+
canManageDuplicates: W,
|
|
183
|
+
onOpenBill: _e
|
|
179
184
|
}) : null,
|
|
180
|
-
|
|
181
|
-
open:
|
|
182
|
-
onOpenChange:
|
|
185
|
+
W ? /* @__PURE__ */ _(ne, {
|
|
186
|
+
open: le,
|
|
187
|
+
onOpenChange: D,
|
|
183
188
|
onFilesSelected: Z,
|
|
184
189
|
maxFiles: 10,
|
|
185
190
|
onEnterManually: () => X(),
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
labels: { heading: K.hasAnyBills ? D.nonEmptyHeading : D.emptyHeading }
|
|
191
|
+
...Q,
|
|
192
|
+
labels: { heading: K.hasAnyBills ? E.nonEmptyHeading : E.emptyHeading }
|
|
189
193
|
}) : null,
|
|
190
|
-
|
|
191
|
-
open:
|
|
192
|
-
onOpenChange:
|
|
193
|
-
payableId:
|
|
194
|
-
initialCounterpartId:
|
|
194
|
+
j ? /* @__PURE__ */ _(a, {
|
|
195
|
+
open: j,
|
|
196
|
+
onOpenChange: M,
|
|
197
|
+
payableId: ue,
|
|
198
|
+
initialCounterpartId: k
|
|
195
199
|
}) : null,
|
|
196
|
-
|
|
197
|
-
open:
|
|
198
|
-
onOpenChange:
|
|
199
|
-
payableId:
|
|
200
|
-
onClose: () =>
|
|
201
|
-
onExpand:
|
|
200
|
+
F ? /* @__PURE__ */ _(ae, {
|
|
201
|
+
open: F,
|
|
202
|
+
onOpenChange: I,
|
|
203
|
+
payableId: N,
|
|
204
|
+
onClose: () => I(!1),
|
|
205
|
+
onExpand: ve,
|
|
202
206
|
onEdit: Y,
|
|
203
|
-
testId:
|
|
207
|
+
testId: f.detailsSheet,
|
|
204
208
|
poweredByBankName: T
|
|
205
209
|
}) : null,
|
|
206
|
-
|
|
207
|
-
open:
|
|
208
|
-
onOpenChange:
|
|
209
|
-
payableId:
|
|
210
|
+
L ? /* @__PURE__ */ _(a, {
|
|
211
|
+
open: L,
|
|
212
|
+
onOpenChange: R,
|
|
213
|
+
payableId: N,
|
|
210
214
|
readOnly: !0,
|
|
211
|
-
onCollapse:
|
|
215
|
+
onCollapse: ye,
|
|
212
216
|
onEdit: Y,
|
|
213
217
|
poweredByBankName: T
|
|
214
218
|
}) : null
|
|
@@ -93,28 +93,30 @@ function d({ open: d, onClose: f, emailAddress: p, onFilesSelected: m, isUploadi
|
|
|
93
93
|
})
|
|
94
94
|
]
|
|
95
95
|
}),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
96
|
+
p ? /* @__PURE__ */ o(i, { children: [
|
|
97
|
+
/* @__PURE__ */ a("p", {
|
|
98
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-primary ttw:mb-1",
|
|
99
|
+
children: t.OrSendViaEmail
|
|
100
|
+
}),
|
|
101
|
+
/* @__PURE__ */ a("p", {
|
|
102
|
+
className: "ttw:text-xs ttw:text-muted-foreground ttw:mb-3",
|
|
103
|
+
children: t.EmailDescription
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ o("div", {
|
|
106
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:border ttw:border-border ttw:rounded-lg ttw:px-3 ttw:py-2.5",
|
|
107
|
+
children: [/* @__PURE__ */ a("span", {
|
|
108
|
+
className: "ttw:text-sm ttw:text-foreground",
|
|
109
|
+
children: p
|
|
110
|
+
}), /* @__PURE__ */ o(e, {
|
|
111
|
+
type: "button",
|
|
112
|
+
variant: "ghost",
|
|
113
|
+
size: "sm",
|
|
114
|
+
className: "ttw:flex ttw:items-center ttw:gap-1.5 ttw:text-primary ttw:text-sm ttw:font-medium ttw:transition-colors",
|
|
115
|
+
onClick: () => navigator.clipboard.writeText(p).catch(() => void 0),
|
|
116
|
+
children: [/* @__PURE__ */ a(c, { size: 14 }), t.CopyButton]
|
|
117
|
+
})]
|
|
118
|
+
})
|
|
119
|
+
] }) : null,
|
|
118
120
|
/* @__PURE__ */ a("input", {
|
|
119
121
|
ref: g,
|
|
120
122
|
type: "file",
|
|
@@ -15,27 +15,28 @@ import { fetchWidgetInit as dr } from "./lib/fetchWidgetInit.js";
|
|
|
15
15
|
import { hasAnyScope as fr } from "./lib/hasAnyScope.js";
|
|
16
16
|
import "./lib/queryKeys.js";
|
|
17
17
|
import { useCurrentUserQuery as pr } from "./lib/useCurrentUserQuery.js";
|
|
18
|
+
import { useMailboxAddress as mr } from "./lib/useMailboxAddress.js";
|
|
18
19
|
import "./lib/apiErrorStatus.js";
|
|
19
|
-
import { isApiConflictError as
|
|
20
|
-
import { isApiForbiddenError as
|
|
21
|
-
import { isApiNotFoundError as
|
|
22
|
-
import { isApiUnprocessableError as
|
|
20
|
+
import { isApiConflictError as hr } from "./lib/isApiConflictError.js";
|
|
21
|
+
import { isApiForbiddenError as gr } from "./lib/isApiForbiddenError.js";
|
|
22
|
+
import { isApiNotFoundError as _r } from "./lib/isApiNotFoundError.js";
|
|
23
|
+
import { isApiUnprocessableError as vr } from "./lib/isApiUnprocessableError.js";
|
|
23
24
|
import "./lib/isUserDataNotFoundError.js";
|
|
24
|
-
import { useGetUserDataQuery as
|
|
25
|
-
import { useUpsertUserDataMutation as
|
|
25
|
+
import { useGetUserDataQuery as yr } from "./lib/useGetUserDataQuery.js";
|
|
26
|
+
import { useUpsertUserDataMutation as br } from "./lib/useUpsertUserDataMutation.js";
|
|
26
27
|
import "./lib/rest/zod.gen.js";
|
|
27
|
-
import { Scope as
|
|
28
|
-
import { getAllPagesNextPageParam as
|
|
29
|
-
import { useAllBankAccountsQuery as
|
|
30
|
-
import { useAllExternalBankAccountsQuery as
|
|
31
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
32
|
-
import { useAllLedgerAccountsQuery as
|
|
33
|
-
import { usePaymentTermsQuery as
|
|
34
|
-
import { useAllOrganizationRolesQuery as
|
|
35
|
-
import { useRolePermissionsQueries as
|
|
36
|
-
import { useAllOrganizationUsersQuery as
|
|
37
|
-
import { useAcceptWidgetDisclosures as
|
|
38
|
-
import { useDisclosuresQuery as
|
|
39
|
-
import { OnboardingSuppressionReason as
|
|
40
|
-
import { useOrganizationOnboardingSuppression as
|
|
41
|
-
export { sr as EmbedApiProvider,
|
|
28
|
+
import { Scope as xr, isScope as Sr } from "./lib/scopes.js";
|
|
29
|
+
import { getAllPagesNextPageParam as Cr, getAllPagesNextPaginationTokenParam as wr, isAllPagesResolving as Tr, useAutoFetchNextPage as Er } from "./lib/allPages.js";
|
|
30
|
+
import { useAllBankAccountsQuery as Dr } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
31
|
+
import { useAllExternalBankAccountsQuery as Or } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
32
|
+
import { useAllMerchantCategoryGroupsQuery as kr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
33
|
+
import { useAllLedgerAccountsQuery as Ar, useLedgerAccountsQuery as jr } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
34
|
+
import { usePaymentTermsQuery as Mr } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
35
|
+
import { useAllOrganizationRolesQuery as Nr } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
36
|
+
import { useRolePermissionsQueries as Pr } from "./lib/role/useRolePermissionsQueries.js";
|
|
37
|
+
import { useAllOrganizationUsersQuery as Fr } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
38
|
+
import { useAcceptWidgetDisclosures as Ir } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
39
|
+
import { useDisclosuresQuery as Lr } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
40
|
+
import { OnboardingSuppressionReason as Rr } from "./lib/onboardingSuppressionReason.js";
|
|
41
|
+
import { useOrganizationOnboardingSuppression as zr } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
42
|
+
export { sr as EmbedApiProvider, Rr as OnboardingSuppressionReason, xr as Scope, ke as activateCreditCardMutation, Ae as activateDebitCardMutation, Yn as applicationStatusInvalidationKey, Xn as applicationStatusQueryOptions, or as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, Qn as cancelAllClients, ir as cloneEmbeddedClient, je as connectExternalBankAccountMutation, Me as createAchMoneyMovementMutation, Ne as createApplicationMutation, Pe as createBankAccountMutation, Fe as createBookTransferMutation, Ie as createCheckDepositMutation, Zn as createClientSecretInstaller, Le as createDebitCardMutation, r as createDepartment, ar as createEmbeddedClient, i as createLocation, a as createUser, Re as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, ze as deleteApprovalPoliciesIdMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, Be as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ve as deleteReceiptsIdMutation, h as deleteReceivablesId, He as disableUserMutation, g as downloadBankAccountTransactions, dr as fetchWidgetInit, Cr as getAllPagesNextPageParam, wr as getAllPagesNextPaginationTokenParam, Ue as getAnalyticsPayablesOptions, We as getAnalyticsPayablesQueryKey, Ge as getAnalyticsReceivablesOptions, _ as getApplicationStatus, v as getApprovalPolicies, Ke as getApprovalPoliciesOptions, qe as getApprovalPoliciesQueryKey, y as getApprovalRequests, Je as getApprovalRequestsOptions, Ye as getApprovalRequestsQueryKey, b as getBankAccountAccess, Xe as getBankAccountAccessQueryKey, Ze as getBankAccountApplicationOptions, Qe as getBankAccountOptions, $e as getBankAccountQueryKey, x as getBankAccountStatement, et as getBankAccountStatementsOptions, tt as getBankAccountTransactionsOptions, nt as getBankAccountTransactionsQueryKey, rt as getBankAccountTransfersOptions, it as getBankAccountTransfersQueryKey, at as getBankAccountsQueryKey, S as getCounterparts, 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 getCreditCardByIdQueryKey, gt as getCreditCardsOptions, _t as getCreditCardsQueryKey, vt as getDebitCardByIdOptions, yt as getDebitCardByIdQueryKey, bt as getDebitCardCredentialsOptions, xt as getDebitCardsOptions, St as getDebitCardsQueryKey, C as getDepartment, Ct as getDepartmentOptions, wt as getDepartmentQueryKey, w as getDepositableBankAccounts, Tt as getDepositableBankAccountsOptions, Et as getDocumentsIdNextNumbersOptions, Dt as getDocumentsIdNextNumbersQueryKey, Ot as getEntitiesIdSettingsOptions, kt as getEntitiesIdSettingsQueryKey, At as getEntityUsersMyEntityOptions, jt as getEntityUsersMyEntityQueryKey, T as getExternalBankAccountAccess, Mt as getExternalBankAccountAccessQueryKey, Nt as getExternalBankAccountsOptions, Pt as getExternalBankAccountsQueryKey, Ft as getLedgerAccountsQueryKey, E as getLocation, It as getLocationOptions, Lt as getLocationQueryKey, Rt as getMeasureUnitsOptions, zt as getMeasureUnitsQueryKey, Bt as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Vt as getPayablesIdHistoryOptions, Ht as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Ut as getPayablesIdLineItemsOptions, Wt as getPayablesIdLineItemsQueryKey, Gt as getPayablesIdOptions, Kt as getPayablesIdQueryKey, qt as getPayablesIdSuggestionsOptions, Jt as getPayablesOptions, Yt as getPayablesQueryKey, j as getPaymentRecords, Xt as getPaymentRecordsOptions, Zt as getPaymentRecordsQueryKey, Qt as getProductsIdOptions, $t as getProductsIdQueryKey, en as getProductsOptions, tn as getProductsQueryKey, nn as getReceiptsIdQueryKey, rn as getReceiptsOptions, an as getReceiptsQueryKey, M as getReceivables, on as getReceivablesIdHistoryOptions, sn as getReceivablesIdHistoryQueryKey, cn as getReceivablesIdMailsOptions, ln as getReceivablesIdMailsQueryKey, un as getReceivablesIdOptions, dn as getReceivablesIdPdfLinkOptions, fn as getReceivablesIdPdfLinkQueryKey, pn as getReceivablesIdQueryKey, mn as getReceivablesOptions, hn as getReceivablesQueryKey, gn as getTransactionsIdQueryKey, _n as getTransactionsOptions, vn as getTransactionsQueryKey, yn as getTransactionsValidationsOptions, bn as getTransactionsValidationsQueryKey, N as getUsers, xn as getUsersOptions, Sn as getUsersQueryKey, Cn as getVelocityControlsQueryKey, wn as grantBankAccountAccessMutation, Tn as grantExternalBankAccountAccessMutation, fr as hasAnyScope, $n as invalidateAllClients, Tr as isAllPagesResolving, hr as isApiConflictError, gr as isApiForbiddenError, _r as isApiNotFoundError, vr as isApiUnprocessableError, Sr as isScope, En as linkExternalBankAccountMutation, P as listDepartments, Dn as listDepartmentsOptions, On as listDepartmentsQueryKey, F as listLocations, kn as listLocationsOptions, An as listLocationsQueryKey, I as listRoles, jn as listRolesQueryKey, L as manageBankAccountAccess, Mn as manageDebitCardAccessMutation, lr as optionalOrganizationHeaders, ur as organizationHeaders, Nn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, Pn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, Fn as patchReceiptsIdMutation, G as patchReceivablesId, In as postApprovalPoliciesMutation, K as postApprovalRequestsIdApprove, q as postApprovalRequestsIdReject, J as postCounterparts, Y as postCounterpartsIdAddresses, X as postCounterpartsIdBankAccounts, Z as postCounterpartsIdBankAccountsIdMakeDefault, Ln as postLedgerAccountsMutation, Q as postMeasureUnits, $ as postPayables, ee as postPayablesIdApprovePaymentOperation, te as postPayablesIdAttachFile, ne as postPayablesIdCancel, re as postPayablesIdDuplicatesIdConfirm, ie as postPayablesIdDuplicatesIdDismiss, ae as postPayablesIdMarkAsPaid, oe as postPayablesIdReject, se as postPayablesIdReopen, ce as postPayablesIdSchedulePayment, le as postPayablesIdSubmitForApproval, ue as postPayablesIdValidate, de as postPayablesUploadFromFile, fe as postPaymentIntentsIdCancel, pe as postProducts, me as postReceivables, he as postReceivablesIdAccept, ge as postReceivablesIdCancel, _e as postReceivablesIdClone, ve as postReceivablesIdDecline, ye as postReceivablesIdIssue, be as postReceivablesIdMarkAsPaid, xe as postReceivablesIdMarkAsPartiallyPaid, Se as postReceivablesIdMarkAsUncollectible, Ce as postReceivablesIdSend, we as putEntitiesIdLogo, Te as putPayablesIdLineItems, Rn as putTransactionsValidationsMutation, er as registerQueryClient, tr as removeInactiveFromAllClients, nr as setAllClientsQueriesData, zn as setDebitCardLockStatusMutation, Bn as submitApplicationMutation, Vn as unlinkExternalBankAccountMutation, rr as unregisterQueryClient, Hn as updateApplicationMutation, Un as updateBankAccountMutation, Wn as updateDebitCardMutation, Ee as updateDepartment, Gn as updateExternalBankAccountMutation, De as updateLocation, Oe as updateUser, Ir as useAcceptWidgetDisclosures, Dr as useAllBankAccountsQuery, Or as useAllExternalBankAccountsQuery, Ar as useAllLedgerAccountsQuery, kr as useAllMerchantCategoryGroupsQuery, Nr as useAllOrganizationRolesQuery, Fr as useAllOrganizationUsersQuery, Er as useAutoFetchNextPage, pr as useCurrentUserQuery, Lr as useDisclosuresQuery, cr as useEmbedApi, yr as useGetUserDataQuery, jr as useLedgerAccountsQuery, mr as useMailboxAddress, zr as useOrganizationOnboardingSuppression, Mr as usePaymentTermsQuery, Pr as useRolePermissionsQueries, br as useUpsertUserDataMutation, Kn as validateExternalBankAccountMutation, qn as verifyDebitCardMutation, Jn as withAuthEpoch };
|