@tesouro/embedded-components-react 0.2.293 → 0.2.295
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.css +3 -0
- 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 +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index10.js +28 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +33 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +15 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +6 -134
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +74 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +141 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +5 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +6 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index31.js +83 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +2 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index33.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +105 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index35.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index36.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index36.js +24 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +144 -97
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +131 -120
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +75 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/tags-widget/ui/dist/index3.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +3654 -3614
- package/package.json +1 -1
|
@@ -1,148 +1,195 @@
|
|
|
1
|
-
import { Button as e, DataTable as t, DataTableSortableHeader as n,
|
|
2
|
-
import {
|
|
1
|
+
import { Button as e, DataTable as t, DataTableSortableHeader as n, Input as r, Tabs as i, TabsContent as a, TabsList as o, TabsTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as c } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as l } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
3
4
|
import "../../../shared/ui/dist/index.js";
|
|
4
|
-
import { AddBillPanel as
|
|
5
|
+
import { AddBillPanel as u } from "./index7.js";
|
|
5
6
|
import "./index8.js";
|
|
6
|
-
import { BillStatusBadge as
|
|
7
|
+
import { BillStatusBadge as d } from "./index34.js";
|
|
7
8
|
import "./index35.js";
|
|
8
|
-
import { BILLS_SCREEN_LABELS_EN as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { BILLS_SCREEN_LABELS_EN as f, BILLS_SCREEN_UPLOAD_ACCEPT as p } from "./index36.js";
|
|
10
|
+
import { useMemo as m } from "react";
|
|
11
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
|
+
import { ChevronRightIcon as _, PlusIcon as v, SearchIcon as y } from "lucide-react";
|
|
11
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js
|
|
12
|
-
var
|
|
14
|
+
var b = [
|
|
13
15
|
10,
|
|
14
16
|
25,
|
|
15
17
|
50,
|
|
16
18
|
100
|
|
17
19
|
];
|
|
18
|
-
function
|
|
19
|
-
let
|
|
20
|
-
...
|
|
21
|
-
...
|
|
20
|
+
function x({ rows: x, isLoading: S, isError: C, sorting: w, onSortingChange: T, pageSize: E, onPageSizeChange: D, pageSizeOptions: O = b, pageInfo: k, hasNextPage: A, hasPrevPage: j, onNextPage: M, onPrevPage: N, filterTabs: P, selectedFilterTabId: F, onFilterTabChange: I, searchValue: L, onSearchChange: R, isFiltering: z, onCreateClick: B, onRetry: V, onFilesSelected: H, onEnterManually: U, uploadStatus: W, uploadErrorMessage: G, emailAddress: K, onCopyEmail: q, labels: J }) {
|
|
21
|
+
let Y = m(() => ({
|
|
22
|
+
...f,
|
|
23
|
+
...J,
|
|
22
24
|
statusBadge: {
|
|
23
|
-
...
|
|
24
|
-
...
|
|
25
|
+
...f.statusBadge,
|
|
26
|
+
...J?.statusBadge
|
|
25
27
|
},
|
|
26
28
|
addBill: {
|
|
27
|
-
...
|
|
28
|
-
...
|
|
29
|
+
...f.addBill,
|
|
30
|
+
...J?.addBill,
|
|
29
31
|
dropzone: {
|
|
30
|
-
...
|
|
31
|
-
...
|
|
32
|
+
...f.addBill.dropzone,
|
|
33
|
+
...J?.addBill?.dropzone
|
|
32
34
|
}
|
|
35
|
+
},
|
|
36
|
+
sortableHeader: {
|
|
37
|
+
...f.sortableHeader,
|
|
38
|
+
...J?.sortableHeader
|
|
33
39
|
}
|
|
34
|
-
},
|
|
40
|
+
}), [J]), X = m(() => [
|
|
35
41
|
{
|
|
36
42
|
accessorKey: "vendorLabel",
|
|
37
|
-
|
|
43
|
+
enableSorting: !0,
|
|
44
|
+
header: ({ column: e }) => /* @__PURE__ */ h(n, {
|
|
38
45
|
column: e,
|
|
39
|
-
title:
|
|
46
|
+
title: Y.columnVendor,
|
|
47
|
+
labels: Y.sortableHeader
|
|
40
48
|
})
|
|
41
49
|
},
|
|
42
50
|
{
|
|
43
51
|
accessorKey: "dueDateLabel",
|
|
44
|
-
|
|
52
|
+
enableSorting: !0,
|
|
53
|
+
header: ({ column: e }) => /* @__PURE__ */ h(n, {
|
|
45
54
|
column: e,
|
|
46
|
-
title:
|
|
55
|
+
title: Y.columnDueDate,
|
|
56
|
+
labels: Y.sortableHeader
|
|
47
57
|
})
|
|
48
58
|
},
|
|
49
59
|
{
|
|
50
|
-
accessorKey: "
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
60
|
+
accessorKey: "status",
|
|
61
|
+
enableSorting: !1,
|
|
62
|
+
header: Y.columnStatus,
|
|
63
|
+
cell: ({ row: e }) => /* @__PURE__ */ h(d, {
|
|
64
|
+
status: e.original.status,
|
|
65
|
+
tone: e.original.statusTone,
|
|
66
|
+
labels: Y.statusBadge
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
accessorKey: "amountDueLabel",
|
|
71
|
+
enableSorting: !1,
|
|
72
|
+
header: () => /* @__PURE__ */ h("div", {
|
|
73
|
+
className: "ttw:text-right",
|
|
74
|
+
children: Y.columnAmountDue
|
|
57
75
|
}),
|
|
58
|
-
cell: ({ row: e }) => /* @__PURE__ */
|
|
76
|
+
cell: ({ row: e }) => /* @__PURE__ */ h("div", {
|
|
59
77
|
className: "ttw:text-right",
|
|
60
|
-
children: e.original.
|
|
78
|
+
children: e.original.amountDueLabel
|
|
61
79
|
})
|
|
62
80
|
},
|
|
63
81
|
{
|
|
64
|
-
accessorKey: "
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
labels:
|
|
82
|
+
accessorKey: "addedOnLabel",
|
|
83
|
+
enableSorting: !0,
|
|
84
|
+
header: ({ column: e }) => /* @__PURE__ */ h(n, {
|
|
85
|
+
column: e,
|
|
86
|
+
title: Y.columnAddedOn,
|
|
87
|
+
labels: Y.sortableHeader
|
|
70
88
|
})
|
|
71
89
|
},
|
|
72
90
|
{
|
|
73
91
|
id: "actions",
|
|
74
|
-
|
|
92
|
+
enableSorting: !1,
|
|
93
|
+
header: () => /* @__PURE__ */ h("span", {
|
|
75
94
|
className: "ttw:sr-only",
|
|
76
|
-
children:
|
|
95
|
+
children: Y.columnActions
|
|
77
96
|
}),
|
|
78
|
-
cell: ({ row: t }) => /* @__PURE__ */
|
|
97
|
+
cell: ({ row: t }) => /* @__PURE__ */ h("div", {
|
|
79
98
|
className: "ttw:flex ttw:justify-end",
|
|
80
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ h(e, {
|
|
81
100
|
variant: "ghost",
|
|
82
101
|
size: "icon",
|
|
83
|
-
"aria-label":
|
|
102
|
+
"aria-label": Y.openRow(t.original.vendorLabel),
|
|
84
103
|
onClick: (e) => {
|
|
85
104
|
e.stopPropagation(), t.original.onOpen();
|
|
86
105
|
},
|
|
87
|
-
children: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ h(_, { className: "ttw:size-4" })
|
|
88
107
|
})
|
|
89
108
|
})
|
|
90
109
|
}
|
|
91
|
-
],
|
|
92
|
-
|
|
110
|
+
], [Y]), Z = !!(B && H) && !S && !C && !z && x.length === 0, Q = /* @__PURE__ */ h("div", {
|
|
111
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
112
|
+
children: /* @__PURE__ */ g("div", {
|
|
113
|
+
className: "ttw:relative ttw:w-80",
|
|
114
|
+
children: [/* @__PURE__ */ h(y, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ h(r, {
|
|
115
|
+
className: "ttw:pl-9",
|
|
116
|
+
type: "search",
|
|
117
|
+
"aria-label": Y.searchLabel,
|
|
118
|
+
placeholder: Y.searchPlaceholder,
|
|
119
|
+
value: L,
|
|
120
|
+
onChange: (e) => R(e.target.value)
|
|
121
|
+
})]
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
return /* @__PURE__ */ g(i, {
|
|
125
|
+
value: F,
|
|
126
|
+
onValueChange: I,
|
|
93
127
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
94
|
-
children: [/* @__PURE__ */
|
|
95
|
-
className: "ttw:flex ttw:items-center ttw:justify-between",
|
|
96
|
-
children: [/* @__PURE__ */
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
128
|
+
children: [/* @__PURE__ */ g("div", {
|
|
129
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
130
|
+
children: [/* @__PURE__ */ h(o, {
|
|
131
|
+
"aria-label": Y.filterTabsLabel,
|
|
132
|
+
children: P.map((e) => /* @__PURE__ */ g(s, {
|
|
133
|
+
value: e.id,
|
|
134
|
+
className: "ttw:min-w-28",
|
|
135
|
+
children: [e.icon, e.label]
|
|
136
|
+
}, e.id))
|
|
137
|
+
}), B && !Z ? /* @__PURE__ */ g(e, {
|
|
138
|
+
onClick: B,
|
|
139
|
+
children: [/* @__PURE__ */ h(v, { className: "ttw:size-4" }), Y.createButton]
|
|
104
140
|
}) : null]
|
|
105
|
-
}),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
}), (() => {
|
|
142
|
+
let e = C ? /* @__PURE__ */ h(l, {
|
|
143
|
+
title: Y.errorTitle,
|
|
144
|
+
description: Y.errorDescription,
|
|
145
|
+
retryLabel: V ? Y.errorRetry : void 0,
|
|
146
|
+
onRetry: V
|
|
147
|
+
}) : Z && B && H ? /* @__PURE__ */ h("div", {
|
|
148
|
+
className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
|
|
149
|
+
children: K && q ? /* @__PURE__ */ h(u, {
|
|
150
|
+
emailAddress: K,
|
|
151
|
+
onCopyEmail: q,
|
|
152
|
+
onFilesSelected: H,
|
|
153
|
+
accept: p,
|
|
154
|
+
uploadStatus: W,
|
|
155
|
+
uploadErrorMessage: G,
|
|
156
|
+
onEnterManually: U ?? B,
|
|
157
|
+
labels: Y.addBill
|
|
158
|
+
}) : /* @__PURE__ */ h(u, {
|
|
159
|
+
onFilesSelected: H,
|
|
160
|
+
accept: p,
|
|
161
|
+
uploadStatus: W,
|
|
162
|
+
uploadErrorMessage: G,
|
|
163
|
+
onEnterManually: U ?? B,
|
|
164
|
+
labels: Y.addBill
|
|
165
|
+
})
|
|
166
|
+
}) : /* @__PURE__ */ h(t, {
|
|
167
|
+
columns: X,
|
|
168
|
+
data: x,
|
|
169
|
+
isLoading: S,
|
|
170
|
+
sorting: w,
|
|
171
|
+
onSortingChange: T,
|
|
172
|
+
pageSize: E,
|
|
173
|
+
onPageSizeChange: D,
|
|
174
|
+
pageSizeOptions: O,
|
|
175
|
+
pageInfo: k,
|
|
176
|
+
hasNextPage: A,
|
|
177
|
+
hasPrevPage: j,
|
|
178
|
+
onNextPage: M,
|
|
179
|
+
onPrevPage: N,
|
|
180
|
+
onRowClick: (e) => e.onOpen(),
|
|
181
|
+
filterComponent: Q,
|
|
182
|
+
children: z ? /* @__PURE__ */ h(c, {
|
|
183
|
+
title: Y.filteredEmptyTitle,
|
|
184
|
+
description: Y.filteredEmptyDescription
|
|
185
|
+
}) : void 0
|
|
186
|
+
});
|
|
187
|
+
return P.map((t) => /* @__PURE__ */ h(a, {
|
|
188
|
+
value: t.id,
|
|
189
|
+
children: t.id === F ? e : null
|
|
190
|
+
}, t.id));
|
|
191
|
+
})()]
|
|
145
192
|
});
|
|
146
193
|
}
|
|
147
194
|
//#endregion
|
|
148
|
-
export {
|
|
195
|
+
export { x as BillsScreen, x as default };
|
|
@@ -6,8 +6,8 @@ import { CARD_COLUMN_KEYS as i } from "../../ui/dist/lib/CardsList/types.js";
|
|
|
6
6
|
import "../../ui/dist/index.js";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/cards-widget/feature/dist/index6.js
|
|
8
8
|
var a = "PENDING_ACTIVATION", o = {
|
|
9
|
-
[e.Credit]: i.filter((e) => e !== "fundingAccount"),
|
|
10
|
-
[e.Debit]: i
|
|
9
|
+
[e.Credit]: i.filter((e) => e !== "fundingAccount" && e !== "limit"),
|
|
10
|
+
[e.Debit]: i.filter((e) => e !== "limit")
|
|
11
11
|
};
|
|
12
12
|
function s(e) {
|
|
13
13
|
return e.map((e) => ({
|
|
@@ -71,6 +71,7 @@ function C({ mode: n, counterparts: r, isLoading: i, isError: a, sorting: o, onS
|
|
|
71
71
|
}, V = n === "customer", H = V ? B.customersTitle : B.vendorsTitle, U = V ? B.columnReceivedAmount : B.columnTotalPaidToDate, W = V ? B.columnAmountDue : B.columnBalanceDue, G = [
|
|
72
72
|
{
|
|
73
73
|
accessorKey: "name",
|
|
74
|
+
enableSorting: !0,
|
|
74
75
|
header: ({ column: t }) => {
|
|
75
76
|
let n = t.getIsSorted();
|
|
76
77
|
return /* @__PURE__ */ m("div", {
|
|
@@ -124,6 +124,7 @@ function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l
|
|
|
124
124
|
columns: [
|
|
125
125
|
{
|
|
126
126
|
accessorKey: "documentLabel",
|
|
127
|
+
enableSorting: !0,
|
|
127
128
|
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
128
129
|
column: e,
|
|
129
130
|
label: X.columnDocument,
|
|
@@ -143,6 +144,7 @@ function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l
|
|
|
143
144
|
},
|
|
144
145
|
{
|
|
145
146
|
accessorKey: "customerLabel",
|
|
147
|
+
enableSorting: !0,
|
|
146
148
|
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
147
149
|
column: e,
|
|
148
150
|
label: X.columnCustomer,
|
|
@@ -165,6 +167,7 @@ function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l
|
|
|
165
167
|
},
|
|
166
168
|
{
|
|
167
169
|
accessorKey: "issueDateLabel",
|
|
170
|
+
enableSorting: !0,
|
|
168
171
|
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
169
172
|
column: e,
|
|
170
173
|
label: X.columnIssueDate,
|
|
@@ -173,6 +176,7 @@ function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l
|
|
|
173
176
|
},
|
|
174
177
|
{
|
|
175
178
|
accessorKey: "dueDateLabel",
|
|
179
|
+
enableSorting: !0,
|
|
176
180
|
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
177
181
|
column: e,
|
|
178
182
|
label: X.columnDueDate,
|
|
@@ -181,6 +185,7 @@ function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l
|
|
|
181
185
|
},
|
|
182
186
|
{
|
|
183
187
|
accessorKey: "totalLabel",
|
|
188
|
+
enableSorting: !0,
|
|
184
189
|
header: ({ column: e }) => /* @__PURE__ */ b("div", {
|
|
185
190
|
className: "ttw:flex ttw:justify-end",
|
|
186
191
|
children: /* @__PURE__ */ b(j, {
|
|
@@ -8,22 +8,22 @@ import { optionalOrganizationHeaders as l, organizationHeaders as u } from "./li
|
|
|
8
8
|
import { bulkUpdateDepartmentMembers as d, bulkUpdateLocationMembers as f, bulkUpdateRoleMembers as p, createDepartment as m, createLocation as h, createUser as g, deactivateDepartment as _, deactivateLocation as v, deleteCounterpartsId as y, deleteCounterpartsIdBankAccountsId as b, deleteFilesId as x, deleteMeasureUnitsId as S, deleteProductsId as C, deleteReceivablesId as w, deleteTagsId as T, downloadBankAccountTransactions as E, getApplicationStatus as D, getApprovalPolicies as O, getBankAccountAccess as k, getDepartment as A, getDisclosures as j, getExternalBankAccountAccess as M, getLocation as N, getPayablesIdLineItems as P, getUsers as F, listDepartments as I, listLocations as L, listRoles as R, manageBankAccountAccess as z, patchCounterpartsId as B, patchCounterpartsIdAddressesId as V, patchCounterpartsIdBankAccountsId as H, patchMeasureUnitsId as U, patchPayablesId as W, patchProductsId as G, patchReceivablesId as K, patchTagsId as q, postApiWidgetGatewayDisclosureAcceptance as J, postCounterparts as Y, postCounterpartsIdAddresses as X, postCounterpartsIdBankAccounts as Z, postCounterpartsIdBankAccountsIdMakeDefault as Q, postMeasureUnits as $, postPayables as ee, postPayablesIdAttachFile as te, postPayablesIdSubmitForApproval as ne, postPayablesIdValidate as re, postPayablesUploadFromFile as ie, postProducts as ae, postReceivables as oe, postReceivablesIdAccept as se, postReceivablesIdCancel as ce, postReceivablesIdClone as le, postReceivablesIdDecline as ue, postReceivablesIdIssue as de, postReceivablesIdMarkAsPaid as fe, postReceivablesIdMarkAsPartiallyPaid as pe, postReceivablesIdMarkAsUncollectible as me, postReceivablesIdSend as he, postTags as ge, putPayablesIdLineItems as _e, putReceivablesIdLineItems as ve, updateDepartment as ye, updateLocation as be, updateUser as xe } from "./lib/rest/sdk.gen.js";
|
|
9
9
|
import { fetchWidgetInit as Se } from "./lib/fetchWidgetInit.js";
|
|
10
10
|
import { hasAnyScope as Ce } from "./lib/hasAnyScope.js";
|
|
11
|
-
import { connectExternalBankAccountMutation as we, createAchMoneyMovementMutation as Te, createApplicationMutation as Ee, createBankAccountMutation as De, createBookTransferMutation as Oe, createDebitCardMutation as ke, deleteApprovalPoliciesIdMutation as Ae, deleteLedgerAccountsIdMutation as je, deleteReceiptsIdMutation as Me, disableUserMutation as Ne, getAnalyticsPayablesOptions as Pe, getAnalyticsReceivablesOptions as Fe, getApplicationStatusOptions as Ie, getApprovalPoliciesOptions as Le, getApprovalPoliciesQueryKey as Re, getApprovalRequestsQueryKey as ze, getBankAccountAccessQueryKey as Be, getBankAccountOptions as Ve, getBankAccountQueryKey as He, getBankAccountTransactionsOptions as Ue, getBankAccountTransfersOptions as We, getBankAccountTransfersQueryKey as Ge, getBankAccountsQueryKey as Ke, getCounterpartsIdAddressesOptions as qe, getCounterpartsIdAddressesQueryKey as Je, getCounterpartsIdBankAccountsOptions as Ye, getCounterpartsIdBankAccountsQueryKey as Xe, getCounterpartsIdOptions as Ze, getCounterpartsIdQueryKey as Qe, getCounterpartsOptions as $e, getCounterpartsQueryKey as et, getCreditCardByIdOptions as tt, getCreditCardsOptions as nt, getDebitCardByIdOptions as rt, getDebitCardsOptions as it, getDebitCardsQueryKey as at, getDepartmentOptions as ot, getDepartmentQueryKey as st, getEntitiesIdSettingsOptions as ct, getEntitiesIdSettingsQueryKey as lt, getEntitiesMeOptions as ut, getEntityUsersMyEntityOptions as dt, getEntityUsersOptions as ft, getExternalBankAccountAccessQueryKey as pt, getExternalBankAccountsOptions as mt, getExternalBankAccountsQueryKey as ht, getLedgerAccountsQueryKey as gt, getLocationOptions as _t, getLocationQueryKey as vt, getMeasureUnitsOptions as yt, getMeasureUnitsQueryKey as bt, getOrganizationOptions as xt,
|
|
11
|
+
import { connectExternalBankAccountMutation as we, createAchMoneyMovementMutation as Te, createApplicationMutation as Ee, createBankAccountMutation as De, createBookTransferMutation as Oe, createDebitCardMutation as ke, deleteApprovalPoliciesIdMutation as Ae, deleteLedgerAccountsIdMutation as je, deleteReceiptsIdMutation as Me, disableUserMutation as Ne, getAnalyticsPayablesOptions as Pe, getAnalyticsReceivablesOptions as Fe, getApplicationStatusOptions as Ie, getApprovalPoliciesOptions as Le, getApprovalPoliciesQueryKey as Re, getApprovalRequestsQueryKey as ze, getBankAccountAccessQueryKey as Be, getBankAccountOptions as Ve, getBankAccountQueryKey as He, getBankAccountTransactionsOptions as Ue, getBankAccountTransfersOptions as We, getBankAccountTransfersQueryKey as Ge, getBankAccountsQueryKey as Ke, getCounterpartsIdAddressesOptions as qe, getCounterpartsIdAddressesQueryKey as Je, getCounterpartsIdBankAccountsOptions as Ye, getCounterpartsIdBankAccountsQueryKey as Xe, getCounterpartsIdOptions as Ze, getCounterpartsIdQueryKey as Qe, getCounterpartsOptions as $e, getCounterpartsQueryKey as et, getCreditCardByIdOptions as tt, getCreditCardsOptions as nt, getDebitCardByIdOptions as rt, getDebitCardsOptions as it, getDebitCardsQueryKey as at, getDepartmentOptions as ot, getDepartmentQueryKey as st, getEntitiesIdSettingsOptions as ct, getEntitiesIdSettingsQueryKey as lt, getEntitiesMeOptions as ut, getEntityUsersMyEntityOptions as dt, getEntityUsersOptions as ft, getExternalBankAccountAccessQueryKey as pt, getExternalBankAccountsOptions as mt, getExternalBankAccountsQueryKey as ht, getLedgerAccountsQueryKey as gt, getLocationOptions as _t, getLocationQueryKey as vt, getMeasureUnitsOptions as yt, getMeasureUnitsQueryKey as bt, getOrganizationOptions as xt, getPayablesAnalyticsOptions as St, getPayablesAnalyticsQueryKey as Ct, getPayablesIdHistoryQueryKey as wt, getPayablesIdLineItemsOptions as Tt, getPayablesIdLineItemsQueryKey as Et, getPayablesIdOptions as Dt, getPayablesIdQueryKey as Ot, getPayablesIdSuggestionsOptions as kt, getPayablesOptions as At, getPayablesQueryKey as jt, getProductsIdOptions as Mt, getProductsIdQueryKey as Nt, getProductsOptions as Pt, getProductsQueryKey as Ft, getReceiptsIdQueryKey as It, getReceiptsOptions as Lt, getReceiptsQueryKey as Rt, getReceivablesIdHistoryOptions as zt, getReceivablesIdHistoryQueryKey as Bt, getReceivablesIdMailsOptions as Vt, getReceivablesIdMailsQueryKey as Ht, getReceivablesIdOptions as Ut, getReceivablesIdPdfLinkOptions as Wt, getReceivablesIdPdfLinkQueryKey as Gt, getReceivablesIdQueryKey as Kt, getReceivablesOptions as qt, getReceivablesQueryKey as Jt, getTagsOptions as Yt, getTagsQueryKey as Xt, getTransactionsIdQueryKey as Zt, getTransactionsOptions as Qt, getTransactionsQueryKey as $t, getTransactionsValidationsOptions as en, getTransactionsValidationsQueryKey as tn, getUsersOptions as nn, getUsersQueryKey as rn, grantBankAccountAccessMutation as an, grantExternalBankAccountAccessMutation as on, linkExternalBankAccountMutation as sn, listDepartmentsOptions as cn, listDepartmentsQueryKey as ln, listLocationsOptions as un, listLocationsQueryKey as dn, listRolesQueryKey as fn, patchApprovalPoliciesIdMutation as pn, patchEntitiesIdSettingsMutation as mn, patchLedgerAccountsIdMutation as hn, patchReceiptsIdMutation as gn, postApprovalPoliciesMutation as _n, postLedgerAccountsMutation as vn, putTransactionsValidationsMutation as yn, submitApplicationMutation as bn, unlinkExternalBankAccountMutation as xn, updateApplicationMutation as Sn, updateBankAccountMutation as Cn, updateExternalBankAccountMutation as wn, validateExternalBankAccountMutation as Tn } 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 En } from "./lib/withAuthEpoch.js";
|
|
14
|
+
import { useCurrentUserQuery as Dn } from "./lib/useCurrentUserQuery.js";
|
|
15
|
+
import { isApiNotFoundError as On } from "./lib/isApiNotFoundError.js";
|
|
16
16
|
import "./lib/isUserDataNotFoundError.js";
|
|
17
|
-
import { useGetUserDataQuery as
|
|
18
|
-
import { useUpsertUserDataMutation as
|
|
17
|
+
import { useGetUserDataQuery as kn } from "./lib/useGetUserDataQuery.js";
|
|
18
|
+
import { useUpsertUserDataMutation as An } 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
|
-
export { s as EmbedApiProvider,
|
|
20
|
+
import { Scope as jn } from "./lib/scopes.js";
|
|
21
|
+
import { getAllPagesNextPageParam as Mn, getAllPagesNextPaginationTokenParam as Nn, isAllPagesResolving as Pn, useAutoFetchNextPage as Fn } from "./lib/allPages.js";
|
|
22
|
+
import { useAllBankAccountsQuery as In } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
23
|
+
import { useAllExternalBankAccountsQuery as Ln } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
24
|
+
import { useAllLedgerAccountsQuery as Rn, useLedgerAccountsQuery as zn } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
25
|
+
import { usePaymentTermsQuery as Bn } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
26
|
+
import { useAllOrganizationRolesQuery as Vn } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
27
|
+
import { useRolePermissionsQueries as Hn } from "./lib/role/useRolePermissionsQueries.js";
|
|
28
|
+
import { useAllOrganizationUsersQuery as Un } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
29
|
+
export { s as EmbedApiProvider, jn as Scope, d as bulkUpdateDepartmentMembers, f as bulkUpdateLocationMembers, p as bulkUpdateRoleMembers, i as cloneEmbeddedClient, we as connectExternalBankAccountMutation, Te as createAchMoneyMovementMutation, Ee as createApplicationMutation, De as createBankAccountMutation, Oe as createBookTransferMutation, ke as createDebitCardMutation, m as createDepartment, a as createEmbeddedClient, h as createLocation, g as createUser, _ as deactivateDepartment, v as deactivateLocation, Ae as deleteApprovalPoliciesIdMutation, y as deleteCounterpartsId, b as deleteCounterpartsIdBankAccountsId, x as deleteFilesId, je as deleteLedgerAccountsIdMutation, S as deleteMeasureUnitsId, C as deleteProductsId, Me as deleteReceiptsIdMutation, w as deleteReceivablesId, T as deleteTagsId, Ne as disableUserMutation, E as downloadBankAccountTransactions, Se as fetchWidgetInit, Mn as getAllPagesNextPageParam, Nn as getAllPagesNextPaginationTokenParam, Pe as getAnalyticsPayablesOptions, Fe as getAnalyticsReceivablesOptions, D as getApplicationStatus, Ie as getApplicationStatusOptions, O as getApprovalPolicies, Le as getApprovalPoliciesOptions, Re as getApprovalPoliciesQueryKey, ze as getApprovalRequestsQueryKey, k as getBankAccountAccess, Be as getBankAccountAccessQueryKey, Ve as getBankAccountOptions, He as getBankAccountQueryKey, Ue as getBankAccountTransactionsOptions, We as getBankAccountTransfersOptions, Ge as getBankAccountTransfersQueryKey, Ke as getBankAccountsQueryKey, qe as getCounterpartsIdAddressesOptions, Je as getCounterpartsIdAddressesQueryKey, Ye as getCounterpartsIdBankAccountsOptions, Xe as getCounterpartsIdBankAccountsQueryKey, Ze as getCounterpartsIdOptions, Qe as getCounterpartsIdQueryKey, $e as getCounterpartsOptions, et as getCounterpartsQueryKey, tt as getCreditCardByIdOptions, nt as getCreditCardsOptions, rt as getDebitCardByIdOptions, it as getDebitCardsOptions, at as getDebitCardsQueryKey, A as getDepartment, ot as getDepartmentOptions, st as getDepartmentQueryKey, j as getDisclosures, ct as getEntitiesIdSettingsOptions, lt as getEntitiesIdSettingsQueryKey, ut as getEntitiesMeOptions, dt as getEntityUsersMyEntityOptions, ft as getEntityUsersOptions, M as getExternalBankAccountAccess, pt as getExternalBankAccountAccessQueryKey, mt as getExternalBankAccountsOptions, ht as getExternalBankAccountsQueryKey, gt as getLedgerAccountsQueryKey, N as getLocation, _t as getLocationOptions, vt as getLocationQueryKey, yt as getMeasureUnitsOptions, bt as getMeasureUnitsQueryKey, xt as getOrganizationOptions, St as getPayablesAnalyticsOptions, Ct as getPayablesAnalyticsQueryKey, wt as getPayablesIdHistoryQueryKey, P as getPayablesIdLineItems, Tt as getPayablesIdLineItemsOptions, Et as getPayablesIdLineItemsQueryKey, Dt as getPayablesIdOptions, Ot as getPayablesIdQueryKey, kt as getPayablesIdSuggestionsOptions, At as getPayablesOptions, jt as getPayablesQueryKey, Mt as getProductsIdOptions, Nt as getProductsIdQueryKey, Pt as getProductsOptions, Ft as getProductsQueryKey, It as getReceiptsIdQueryKey, Lt as getReceiptsOptions, Rt as getReceiptsQueryKey, zt as getReceivablesIdHistoryOptions, Bt as getReceivablesIdHistoryQueryKey, Vt as getReceivablesIdMailsOptions, Ht as getReceivablesIdMailsQueryKey, Ut as getReceivablesIdOptions, Wt as getReceivablesIdPdfLinkOptions, Gt as getReceivablesIdPdfLinkQueryKey, Kt as getReceivablesIdQueryKey, qt as getReceivablesOptions, Jt as getReceivablesQueryKey, Yt as getTagsOptions, Xt as getTagsQueryKey, Zt as getTransactionsIdQueryKey, Qt as getTransactionsOptions, $t as getTransactionsQueryKey, en as getTransactionsValidationsOptions, tn as getTransactionsValidationsQueryKey, F as getUsers, nn as getUsersOptions, rn as getUsersQueryKey, an as grantBankAccountAccessMutation, on as grantExternalBankAccountAccessMutation, Ce as hasAnyScope, e as invalidateAllClients, Pn as isAllPagesResolving, On as isApiNotFoundError, o as isWidgetGatewayHost, sn as linkExternalBankAccountMutation, I as listDepartments, cn as listDepartmentsOptions, ln as listDepartmentsQueryKey, L as listLocations, un as listLocationsOptions, dn as listLocationsQueryKey, R as listRoles, fn as listRolesQueryKey, z as manageBankAccountAccess, l as optionalOrganizationHeaders, u as organizationHeaders, pn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, mn as patchEntitiesIdSettingsMutation, hn as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, gn as patchReceiptsIdMutation, K as patchReceivablesId, q as patchTagsId, J as postApiWidgetGatewayDisclosureAcceptance, _n as postApprovalPoliciesMutation, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, vn as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdAttachFile, ne as postPayablesIdSubmitForApproval, re as postPayablesIdValidate, ie as postPayablesUploadFromFile, ae as postProducts, oe as postReceivables, se as postReceivablesIdAccept, ce as postReceivablesIdCancel, le as postReceivablesIdClone, ue as postReceivablesIdDecline, de as postReceivablesIdIssue, fe as postReceivablesIdMarkAsPaid, pe as postReceivablesIdMarkAsPartiallyPaid, me as postReceivablesIdMarkAsUncollectible, he as postReceivablesIdSend, ge as postTags, _e as putPayablesIdLineItems, ve as putReceivablesIdLineItems, yn as putTransactionsValidationsMutation, t as registerQueryClient, n as setAllClientsQueriesData, bn as submitApplicationMutation, xn as unlinkExternalBankAccountMutation, r as unregisterQueryClient, Sn as updateApplicationMutation, Cn as updateBankAccountMutation, ye as updateDepartment, wn as updateExternalBankAccountMutation, be as updateLocation, xe as updateUser, In as useAllBankAccountsQuery, Ln as useAllExternalBankAccountsQuery, Rn as useAllLedgerAccountsQuery, Vn as useAllOrganizationRolesQuery, Un as useAllOrganizationUsersQuery, Fn as useAutoFetchNextPage, Dn as useCurrentUserQuery, c as useEmbedApi, kn as useGetUserDataQuery, zn as useLedgerAccountsQuery, Bn as usePaymentTermsQuery, Hn as useRolePermissionsQueries, An as useUpsertUserDataMutation, Tn as validateExternalBankAccountMutation, En as withAuthEpoch };
|