@tesouro/embedded-components-react 0.5.231 → 0.5.233
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 -0
- package/dist/index.css +4 -0
- package/dist/index.d.ts +105 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +105 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +92 -55
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +67 -142
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +186 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +27 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +45 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +68 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +66 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +28 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +24 -166
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +177 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +42 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +36 -33
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +206 -147
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +39 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +53 -227
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +216 -287
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +453 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +103 -126
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +122 -146
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +145 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +39 -115
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +113 -90
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +81 -98
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +26 -633
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +639 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +41 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index33.js +35 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index34.js +73 -130
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index35.js +133 -329
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index36.js +345 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +15 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +35 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +8 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +70 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +31 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +18 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +12 -301
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +33 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +14 -46
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +23 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +76 -485
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +395 -95
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +48 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +72 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +496 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +97 -91
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +2 -236
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +1 -249
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +23 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +223 -340
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +59 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +353 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/clientRegistry.js +6 -3
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +75 -43
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +0 -28
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { Button as e, DataTable as t, DropdownMenu as n, DropdownMenuContent as r, DropdownMenuItem as i, DropdownMenuTrigger as a, Input as o, Select as s, SelectContent as c, SelectItem as l, SelectTrigger as u, SelectValue as d, Tabs as f, TabsList as p, TabsTrigger as m } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { EmptyState as h } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
|
|
3
|
+
import { ErrorState as g } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
4
|
+
import "../../../shared/ui/dist/index.js";
|
|
5
|
+
import { RECEIVABLES_SCREEN_LABELS_EN as _ } from "./index9.js";
|
|
6
|
+
import { ReceivableStatusBadge as v } from "./index18.js";
|
|
7
|
+
import { ReceivableStatusCards as y } from "./index46.js";
|
|
8
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
9
|
+
import { ArrowDownIcon as S, ArrowUpDownIcon as C, ArrowUpIcon as w, MoreHorizontalIcon as T, PlusIcon as E, SearchIcon as D, SettingsIcon as O } from "lucide-react";
|
|
10
|
+
//#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js
|
|
11
|
+
var k = [
|
|
12
|
+
10,
|
|
13
|
+
25,
|
|
14
|
+
50,
|
|
15
|
+
100
|
|
16
|
+
], A = "all";
|
|
17
|
+
function j({ label: t, ariaLabel: n, column: r }) {
|
|
18
|
+
let i = r.getIsSorted();
|
|
19
|
+
return /* @__PURE__ */ x("div", {
|
|
20
|
+
className: "ttw:flex ttw:items-center ttw:gap-2 ttw:text-inherit",
|
|
21
|
+
children: [t, /* @__PURE__ */ b(e, {
|
|
22
|
+
variant: "ghost",
|
|
23
|
+
size: "icon-sm",
|
|
24
|
+
"aria-label": n,
|
|
25
|
+
onClick: () => r.toggleSorting(i === "asc"),
|
|
26
|
+
children: b(i === "asc" ? w : i === "desc" ? S : C, { className: "ttw:size-4" })
|
|
27
|
+
})]
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function M({ labels: e, searchValue: t, onSearchChange: n, statusFilter: r, statusOptions: i, onStatusFilterChange: a }) {
|
|
31
|
+
return /* @__PURE__ */ x("div", {
|
|
32
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
|
|
33
|
+
children: [/* @__PURE__ */ x("div", {
|
|
34
|
+
className: "ttw:relative ttw:w-80",
|
|
35
|
+
children: [/* @__PURE__ */ b(D, { 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__ */ b(o, {
|
|
36
|
+
className: "ttw:pl-9",
|
|
37
|
+
placeholder: e.searchPlaceholder,
|
|
38
|
+
value: t,
|
|
39
|
+
onChange: (e) => n(e.target.value)
|
|
40
|
+
})]
|
|
41
|
+
}), /* @__PURE__ */ x(s, {
|
|
42
|
+
value: r,
|
|
43
|
+
onValueChange: a,
|
|
44
|
+
children: [/* @__PURE__ */ b(u, {
|
|
45
|
+
"aria-label": e.columnStatus,
|
|
46
|
+
className: "ttw:w-48",
|
|
47
|
+
children: /* @__PURE__ */ b(d, {})
|
|
48
|
+
}), /* @__PURE__ */ x(c, { children: [/* @__PURE__ */ b(l, {
|
|
49
|
+
value: A,
|
|
50
|
+
children: e.statusFilterAll
|
|
51
|
+
}), i.map((t) => /* @__PURE__ */ b(l, {
|
|
52
|
+
value: t.value,
|
|
53
|
+
children: P(t, e.statusBadge)
|
|
54
|
+
}, t.value))] })]
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function N({ enabled: e, label: t, action: n, row: r, onActionClick: a, variant: o }) {
|
|
59
|
+
return e ? /* @__PURE__ */ b(i, {
|
|
60
|
+
variant: o,
|
|
61
|
+
onClick: (e) => {
|
|
62
|
+
e.stopPropagation(), a(n, r);
|
|
63
|
+
},
|
|
64
|
+
children: t
|
|
65
|
+
}) : null;
|
|
66
|
+
}
|
|
67
|
+
function P(e, t) {
|
|
68
|
+
return t[e.value] ?? e.label;
|
|
69
|
+
}
|
|
70
|
+
function F({ rows: i, activeTab: o, enabledTabs: s, onTabChange: c, isLoading: l, isError: u, sorting: d, onSortingChange: S, pageSize: C, onPageSizeChange: w, pageSizeOptions: D = k, pageInfo: A, hasNextPage: P, hasPrevPage: F, onNextPage: I, onPrevPage: L, searchValue: R, onSearchChange: z, statusFilter: B, statusOptions: V, onStatusFilterChange: H, statusCards: U, onStatusCardSelect: W, isFiltering: G, onCreateClick: K, onTemplateSettingsClick: q, onRowClick: J, onActionClick: Y, onRetry: X, labels: Z }) {
|
|
71
|
+
let Q = {
|
|
72
|
+
..._,
|
|
73
|
+
...Z,
|
|
74
|
+
statusBadge: {
|
|
75
|
+
..._.statusBadge,
|
|
76
|
+
...Z?.statusBadge
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
return /* @__PURE__ */ x("div", {
|
|
80
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ x("div", {
|
|
83
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
|
|
84
|
+
children: [/* @__PURE__ */ b("div", {
|
|
85
|
+
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
86
|
+
children: /* @__PURE__ */ b(f, {
|
|
87
|
+
value: o,
|
|
88
|
+
onValueChange: (e) => c(e),
|
|
89
|
+
children: /* @__PURE__ */ x(p, { children: [
|
|
90
|
+
s.includes("invoices") && /* @__PURE__ */ b(m, {
|
|
91
|
+
value: "invoices",
|
|
92
|
+
children: Q.tabInvoices
|
|
93
|
+
}),
|
|
94
|
+
s.includes("quotes") && /* @__PURE__ */ b(m, {
|
|
95
|
+
value: "quotes",
|
|
96
|
+
children: Q.tabQuotes
|
|
97
|
+
}),
|
|
98
|
+
s.includes("credit_notes") && /* @__PURE__ */ b(m, {
|
|
99
|
+
value: "credit_notes",
|
|
100
|
+
children: Q.tabCreditNotes
|
|
101
|
+
})
|
|
102
|
+
] })
|
|
103
|
+
})
|
|
104
|
+
}), /* @__PURE__ */ x("div", {
|
|
105
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
106
|
+
children: [q && /* @__PURE__ */ x(e, {
|
|
107
|
+
variant: "outline",
|
|
108
|
+
onClick: q,
|
|
109
|
+
children: [/* @__PURE__ */ b(O, { className: "ttw:size-4" }), Q.templateSettingsButton]
|
|
110
|
+
}), /* @__PURE__ */ x(e, {
|
|
111
|
+
onClick: K,
|
|
112
|
+
children: [/* @__PURE__ */ b(E, { className: "ttw:size-4" }), Q.createButton]
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
115
|
+
}),
|
|
116
|
+
U && W && /* @__PURE__ */ b(y, {
|
|
117
|
+
view: U,
|
|
118
|
+
onSelect: W,
|
|
119
|
+
labels: { all: Q.statusCardsAll }
|
|
120
|
+
}),
|
|
121
|
+
u ? /* @__PURE__ */ b(g, {
|
|
122
|
+
title: Q.errorTitle,
|
|
123
|
+
description: Q.errorDescription,
|
|
124
|
+
retryLabel: X ? Q.errorRetry : void 0,
|
|
125
|
+
onRetry: X
|
|
126
|
+
}) : /* @__PURE__ */ b(t, {
|
|
127
|
+
columns: [
|
|
128
|
+
{
|
|
129
|
+
accessorKey: "documentLabel",
|
|
130
|
+
enableSorting: !0,
|
|
131
|
+
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
132
|
+
column: e,
|
|
133
|
+
label: Q.columnDocument,
|
|
134
|
+
ariaLabel: Q.sortByDocument
|
|
135
|
+
}),
|
|
136
|
+
cell: ({ row: e }) => /* @__PURE__ */ x("div", {
|
|
137
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
138
|
+
children: [/* @__PURE__ */ b("span", {
|
|
139
|
+
className: "ttw:font-medium",
|
|
140
|
+
children: e.original.documentLabel
|
|
141
|
+
}), /* @__PURE__ */ b("span", {
|
|
142
|
+
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
143
|
+
children: e.original.type === "credit_note" ? Q.tabCreditNotes : e.original.type === "quote" ? Q.tabQuotes : Q.tabInvoices
|
|
144
|
+
})]
|
|
145
|
+
}),
|
|
146
|
+
minSize: 180
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
accessorKey: "customerLabel",
|
|
150
|
+
enableSorting: !0,
|
|
151
|
+
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
152
|
+
column: e,
|
|
153
|
+
label: Q.columnCustomer,
|
|
154
|
+
ariaLabel: Q.sortByCustomer
|
|
155
|
+
}),
|
|
156
|
+
minSize: 180
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
accessorKey: "status",
|
|
160
|
+
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
161
|
+
column: e,
|
|
162
|
+
label: Q.columnStatus,
|
|
163
|
+
ariaLabel: Q.sortByStatus
|
|
164
|
+
}),
|
|
165
|
+
cell: ({ row: e }) => /* @__PURE__ */ b(v, {
|
|
166
|
+
status: e.original.status,
|
|
167
|
+
tone: e.original.statusTone,
|
|
168
|
+
labels: Q.statusBadge
|
|
169
|
+
})
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
accessorKey: "issueDateLabel",
|
|
173
|
+
enableSorting: !0,
|
|
174
|
+
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
175
|
+
column: e,
|
|
176
|
+
label: Q.columnIssueDate,
|
|
177
|
+
ariaLabel: Q.sortByIssueDate
|
|
178
|
+
})
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
accessorKey: "dueDateLabel",
|
|
182
|
+
enableSorting: !0,
|
|
183
|
+
header: ({ column: e }) => /* @__PURE__ */ b(j, {
|
|
184
|
+
column: e,
|
|
185
|
+
label: Q.columnDueDate,
|
|
186
|
+
ariaLabel: Q.sortByDueDate
|
|
187
|
+
})
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
accessorKey: "totalLabel",
|
|
191
|
+
enableSorting: !0,
|
|
192
|
+
header: ({ column: e }) => /* @__PURE__ */ b("div", {
|
|
193
|
+
className: "ttw:flex ttw:justify-end",
|
|
194
|
+
children: /* @__PURE__ */ b(j, {
|
|
195
|
+
column: e,
|
|
196
|
+
label: Q.columnTotal,
|
|
197
|
+
ariaLabel: Q.sortByTotal
|
|
198
|
+
})
|
|
199
|
+
}),
|
|
200
|
+
cell: ({ row: e }) => /* @__PURE__ */ b("div", {
|
|
201
|
+
className: "ttw:text-right",
|
|
202
|
+
children: e.original.totalLabel
|
|
203
|
+
})
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
accessorKey: "amountDueLabel",
|
|
207
|
+
header: () => /* @__PURE__ */ b("div", {
|
|
208
|
+
className: "ttw:text-right",
|
|
209
|
+
children: Q.columnAmountDue
|
|
210
|
+
}),
|
|
211
|
+
cell: ({ row: e }) => /* @__PURE__ */ b("div", {
|
|
212
|
+
className: "ttw:text-right",
|
|
213
|
+
children: e.original.amountDueLabel
|
|
214
|
+
})
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
id: "actions",
|
|
218
|
+
header: () => /* @__PURE__ */ b("span", {
|
|
219
|
+
className: "ttw:sr-only",
|
|
220
|
+
children: Q.columnActions
|
|
221
|
+
}),
|
|
222
|
+
cell: ({ row: t }) => /* @__PURE__ */ b("div", {
|
|
223
|
+
className: "ttw:flex ttw:justify-end",
|
|
224
|
+
children: /* @__PURE__ */ x(n, { children: [/* @__PURE__ */ b(a, {
|
|
225
|
+
asChild: !0,
|
|
226
|
+
children: /* @__PURE__ */ b(e, {
|
|
227
|
+
variant: "ghost",
|
|
228
|
+
size: "icon-sm",
|
|
229
|
+
"aria-label": Q.columnActions,
|
|
230
|
+
onClick: (e) => e.stopPropagation(),
|
|
231
|
+
children: /* @__PURE__ */ b(T, { className: "ttw:size-4" })
|
|
232
|
+
})
|
|
233
|
+
}), /* @__PURE__ */ x(r, {
|
|
234
|
+
align: "end",
|
|
235
|
+
children: [
|
|
236
|
+
/* @__PURE__ */ b(N, {
|
|
237
|
+
enabled: t.original.actions.edit,
|
|
238
|
+
label: Q.actionEdit,
|
|
239
|
+
action: "edit",
|
|
240
|
+
row: t.original,
|
|
241
|
+
onActionClick: Y
|
|
242
|
+
}),
|
|
243
|
+
/* @__PURE__ */ b(N, {
|
|
244
|
+
enabled: t.original.actions.issue,
|
|
245
|
+
label: Q.actionIssue,
|
|
246
|
+
action: "issue",
|
|
247
|
+
row: t.original,
|
|
248
|
+
onActionClick: Y
|
|
249
|
+
}),
|
|
250
|
+
/* @__PURE__ */ b(N, {
|
|
251
|
+
enabled: t.original.actions.send,
|
|
252
|
+
label: Q.actionSend,
|
|
253
|
+
action: "send",
|
|
254
|
+
row: t.original,
|
|
255
|
+
onActionClick: Y
|
|
256
|
+
}),
|
|
257
|
+
/* @__PURE__ */ b(N, {
|
|
258
|
+
enabled: t.original.actions.recordPayment,
|
|
259
|
+
label: Q.actionRecordPayment,
|
|
260
|
+
action: "recordPayment",
|
|
261
|
+
row: t.original,
|
|
262
|
+
onActionClick: Y
|
|
263
|
+
}),
|
|
264
|
+
/* @__PURE__ */ b(N, {
|
|
265
|
+
enabled: t.original.actions.markPaid,
|
|
266
|
+
label: Q.actionMarkPaid,
|
|
267
|
+
action: "markPaid",
|
|
268
|
+
row: t.original,
|
|
269
|
+
onActionClick: Y
|
|
270
|
+
}),
|
|
271
|
+
/* @__PURE__ */ b(N, {
|
|
272
|
+
enabled: t.original.actions.markUncollectible,
|
|
273
|
+
label: Q.actionMarkUncollectible,
|
|
274
|
+
action: "markUncollectible",
|
|
275
|
+
row: t.original,
|
|
276
|
+
onActionClick: Y
|
|
277
|
+
}),
|
|
278
|
+
/* @__PURE__ */ b(N, {
|
|
279
|
+
enabled: t.original.actions.accept,
|
|
280
|
+
label: Q.actionAccept,
|
|
281
|
+
action: "accept",
|
|
282
|
+
row: t.original,
|
|
283
|
+
onActionClick: Y
|
|
284
|
+
}),
|
|
285
|
+
/* @__PURE__ */ b(N, {
|
|
286
|
+
enabled: t.original.actions.decline,
|
|
287
|
+
label: Q.actionDecline,
|
|
288
|
+
action: "decline",
|
|
289
|
+
row: t.original,
|
|
290
|
+
onActionClick: Y
|
|
291
|
+
}),
|
|
292
|
+
/* @__PURE__ */ b(N, {
|
|
293
|
+
enabled: t.original.actions.cancel,
|
|
294
|
+
label: Q.actionCancel,
|
|
295
|
+
action: "cancel",
|
|
296
|
+
row: t.original,
|
|
297
|
+
onActionClick: Y
|
|
298
|
+
}),
|
|
299
|
+
/* @__PURE__ */ b(N, {
|
|
300
|
+
enabled: t.original.actions.clone,
|
|
301
|
+
label: Q.actionClone,
|
|
302
|
+
action: "clone",
|
|
303
|
+
row: t.original,
|
|
304
|
+
onActionClick: Y
|
|
305
|
+
}),
|
|
306
|
+
/* @__PURE__ */ b(N, {
|
|
307
|
+
enabled: t.original.actions.delete,
|
|
308
|
+
label: Q.actionDelete,
|
|
309
|
+
action: "delete",
|
|
310
|
+
row: t.original,
|
|
311
|
+
onActionClick: Y,
|
|
312
|
+
variant: "destructive"
|
|
313
|
+
})
|
|
314
|
+
]
|
|
315
|
+
})] })
|
|
316
|
+
}),
|
|
317
|
+
size: 72
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
data: i,
|
|
321
|
+
isLoading: l,
|
|
322
|
+
sorting: d,
|
|
323
|
+
onSortingChange: S,
|
|
324
|
+
pageSize: C,
|
|
325
|
+
onPageSizeChange: w,
|
|
326
|
+
pageSizeOptions: D,
|
|
327
|
+
pageInfo: A,
|
|
328
|
+
hasNextPage: P,
|
|
329
|
+
hasPrevPage: F,
|
|
330
|
+
onNextPage: I,
|
|
331
|
+
onPrevPage: L,
|
|
332
|
+
onRowClick: J,
|
|
333
|
+
rowAriaLabel: (e) => Q.openRow(e.documentLabel),
|
|
334
|
+
filterComponent: /* @__PURE__ */ b(M, {
|
|
335
|
+
labels: Q,
|
|
336
|
+
searchValue: R,
|
|
337
|
+
onSearchChange: z,
|
|
338
|
+
statusFilter: B,
|
|
339
|
+
statusOptions: V,
|
|
340
|
+
onStatusFilterChange: H
|
|
341
|
+
}),
|
|
342
|
+
children: /* @__PURE__ */ b(h, {
|
|
343
|
+
title: G ? Q.filterEmptyTitle : Q.emptyTitle,
|
|
344
|
+
description: G ? Q.filterEmptyDescription : Q.emptyDescription,
|
|
345
|
+
actionLabel: G ? void 0 : Q.emptyAction,
|
|
346
|
+
onAction: G ? void 0 : K
|
|
347
|
+
})
|
|
348
|
+
})
|
|
349
|
+
]
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
//#endregion
|
|
353
|
+
export { F as ReceivablesScreen, F as default };
|
|
@@ -163,8 +163,22 @@ var r = {
|
|
|
163
163
|
paymentHistoryHeading: "Payment history",
|
|
164
164
|
paymentHistoryEmpty: "You've received no payments yet.",
|
|
165
165
|
paymentHistoryTotalLabel: "Total received",
|
|
166
|
+
paymentHistoryLoading: "Loading payment history",
|
|
166
167
|
customerDetailsHeading: "Customer details",
|
|
167
|
-
|
|
168
|
+
recurringAmountCaption: "Recurring amount",
|
|
169
|
+
startsOnCaption: "Starts on",
|
|
170
|
+
endsOnCaption: "Ends on",
|
|
171
|
+
recurringSeriesRowLabel: "Recurring series",
|
|
172
|
+
scheduleIssueDateColumn: "Issue date",
|
|
173
|
+
scheduleAmountColumn: "Amount",
|
|
174
|
+
scheduleStatusColumn: "Status",
|
|
175
|
+
scheduleNumberColumn: "Number",
|
|
176
|
+
scheduleEmpty: "No invoices are scheduled.",
|
|
177
|
+
auditHistoryHeading: "Audit history",
|
|
178
|
+
auditHistoryEmpty: "No history yet.",
|
|
179
|
+
auditHistoryLoading: "Loading history",
|
|
180
|
+
auditHistoryError: "The audit history could not be loaded.",
|
|
181
|
+
auditHistoryNamesError: "Some names could not be loaded.",
|
|
168
182
|
billingHeading: "Billing details",
|
|
169
183
|
lineItemsHeading: "Line items",
|
|
170
184
|
notesHeading: "Notes",
|
|
@@ -188,6 +202,9 @@ var r = {
|
|
|
188
202
|
cancelButton: "Cancel invoice",
|
|
189
203
|
cloneButton: "Duplicate",
|
|
190
204
|
deleteButton: "Delete",
|
|
205
|
+
pauseRecurrenceButton: "Pause series",
|
|
206
|
+
resumeRecurrenceButton: "Resume series",
|
|
207
|
+
cancelRecurrenceButton: "Cancel series",
|
|
191
208
|
recurringBadge: "Recurring"
|
|
192
209
|
}, c = {
|
|
193
210
|
title: "Send receivable",
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
2
|
import "./lib/rest/client.gen.js";
|
|
3
|
-
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F,
|
|
4
|
-
import { activateCreditCardMutation as
|
|
5
|
-
import { OrganizationStatus as
|
|
6
|
-
import { withAuthEpoch as
|
|
7
|
-
import { applicationStatusInvalidationKey as
|
|
8
|
-
import { createClientSecretInstaller as
|
|
9
|
-
import { cancelAllClients as
|
|
10
|
-
import { cloneEmbeddedClient as
|
|
3
|
+
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteFilesId as d, deleteMeasureUnitsId as f, deletePayablesId as p, deletePayablesIdFile as m, deleteProductsId as h, deleteReceivablesId as g, downloadBankAccountTransactions as _, getApplicationStatus as v, getApprovalPolicies as y, getApprovalRequests as b, getBankAccountAccess as x, getBankAccountStatement as S, getCounterparts as C, getDepartment as w, getDepositableBankAccounts as T, getExternalBankAccountAccess as E, getLocation as D, getPayables as O, getPayablesId as k, getPayablesIdHistory as A, getPayablesIdLineItems as j, getPaymentRecords as M, getProducts as N, getReceipts as P, getReceivables as F, getReceivablesIdHistory as I, getUsers as L, listDepartments as R, listLocations as z, listRoles as B, manageBankAccountAccess as V, manageDebitCardAccess as H, patchCounterpartsId as U, patchCounterpartsIdAddressesId as W, patchCounterpartsIdBankAccountsId as G, patchEntitiesIdSettings as K, patchMeasureUnitsId as q, patchPayablesId as J, patchProductsId as Y, patchReceivablesId as X, patchRecurrencesId as Z, patchTransactionsId as Q, postApprovalRequestsIdApprove as $, postApprovalRequestsIdReject as ee, postBankDetails as te, postCounterparts as ne, postCounterpartsIdAddresses as re, postCounterpartsIdBankAccounts as ie, postCounterpartsIdBankAccountsIdMakeDefault as ae, postFiles as oe, postMeasureUnits as se, postOverdueReminders as ce, postPayables as le, postPayablesIdApprovePaymentOperation as ue, postPayablesIdAttachFile as de, postPayablesIdCancel as fe, postPayablesIdDuplicatesIdConfirm as pe, postPayablesIdDuplicatesIdDismiss as me, postPayablesIdMarkAsPaid as he, postPayablesIdReject as ge, postPayablesIdReopen as _e, postPayablesIdSchedulePayment as ve, postPayablesIdSubmitForApproval as ye, postPayablesIdValidate as be, postPayablesUploadFromFile as xe, postPaymentIntentsIdCancel as Se, postPaymentReminders as Ce, postProducts as we, postReceivables as Te, postReceivablesIdAccept as Ee, postReceivablesIdCancel as De, postReceivablesIdClone as Oe, postReceivablesIdDecline as ke, postReceivablesIdIssue as Ae, postReceivablesIdMarkAsPaid as je, postReceivablesIdMarkAsPartiallyPaid as Me, postReceivablesIdMarkAsUncollectible as Ne, postReceivablesIdSend as Pe, postRecurrences as Fe, postRecurrencesIdCancel as Ie, postRecurrencesIdPause as Le, postRecurrencesIdResume as Re, postTransactionsIdApprove as ze, postTransactionsIdReject as Be, postTransactionsIdReopen as Ve, postTransactionsIdSubmit as He, putEntitiesIdLogo as Ue, putPayablesIdLineItems as We, updateDepartment as Ge, updateLocation as Ke, updateUser as qe } from "./lib/rest/sdk.gen.js";
|
|
4
|
+
import { activateCreditCardMutation as Je, activateDebitCardMutation as Ye, connectExternalBankAccountMutation as Xe, createAchMoneyMovementMutation as Ze, createApplicationMutation as Qe, createBankAccountMutation as $e, createBookTransferMutation as et, createCheckDepositMutation as tt, createDebitCardMutation as nt, createVelocityControlMutation as rt, deleteApprovalPoliciesIdMutation as it, deleteBankAccountApplicationMutation as at, deleteLedgerAccountsIdMutation as ot, deleteReceiptsIdMutation as st, disableUserMutation as ct, getAnalyticsPayablesOptions as lt, getAnalyticsPayablesQueryKey as ut, getAnalyticsReceiptsOptions as dt, getAnalyticsReceiptsQueryKey as ft, getAnalyticsReceivablesOptions as pt, getAnalyticsReceivablesQueryKey as mt, getAnalyticsTransactionsOptions as ht, getAnalyticsTransactionsQueryKey as gt, getApprovalPoliciesOptions as _t, getApprovalPoliciesQueryKey as vt, getApprovalRequestsOptions as yt, getApprovalRequestsQueryKey as bt, getBankAccountAccessQueryKey as xt, getBankAccountApplicationOptions as St, getBankAccountOptions as Ct, getBankAccountQueryKey as wt, getBankAccountStatementsOptions as Tt, getBankAccountTransactionsOptions as Et, getBankAccountTransactionsQueryKey as Dt, getBankAccountTransfersOptions as Ot, getBankAccountTransfersQueryKey as kt, getBankAccountsQueryKey as At, getBankDetailsOptions as jt, getBankDetailsQueryKey as Mt, getCounterpartsIdAddressesOptions as Nt, getCounterpartsIdAddressesQueryKey as Pt, getCounterpartsIdBankAccountsOptions as Ft, getCounterpartsIdBankAccountsQueryKey as It, getCounterpartsIdOptions as Lt, getCounterpartsIdQueryKey as Rt, getCounterpartsOptions as zt, getCounterpartsQueryKey as Bt, getCreditCardByIdOptions as Vt, getCreditCardByIdQueryKey as Ht, getCreditCardsOptions as Ut, getCreditCardsQueryKey as Wt, getDebitCardByIdOptions as Gt, getDebitCardByIdQueryKey as Kt, getDebitCardCredentialsOptions as qt, getDebitCardsOptions as Jt, getDebitCardsQueryKey as Yt, getDepartmentOptions as Xt, getDepartmentQueryKey as Zt, getDepositableBankAccountsOptions as Qt, getDocumentsIdNextNumbersOptions as $t, getDocumentsIdNextNumbersQueryKey as en, getEntitiesIdSettingsOptions as tn, getEntitiesIdSettingsQueryKey as nn, getEntityUsersMyEntityOptions as rn, getEntityUsersOptions as an, getExternalBankAccountAccessQueryKey as on, getExternalBankAccountsOptions as sn, getExternalBankAccountsQueryKey as cn, getFilesQueryKey as ln, getLedgerAccountsQueryKey as un, getLocationOptions as dn, getLocationQueryKey as fn, getMeasureUnitsOptions as pn, getMeasureUnitsQueryKey as mn, getOrganizationOptions as hn, getOverdueRemindersOptions as gn, getOverdueRemindersQueryKey as _n, getPayablesIdHistoryOptions as vn, getPayablesIdHistoryQueryKey as yn, getPayablesIdLineItemsOptions as bn, getPayablesIdLineItemsQueryKey as xn, getPayablesIdOptions as Sn, getPayablesIdQueryKey as Cn, getPayablesIdSuggestionsOptions as wn, getPayablesOptions as Tn, getPayablesQueryKey as En, getPaymentRecordsOptions as Dn, getPaymentRecordsQueryKey as On, getPaymentRemindersOptions as kn, getPaymentRemindersQueryKey as An, getProductsIdOptions as jn, getProductsIdQueryKey as Mn, getProductsOptions as Nn, getProductsQueryKey as Pn, getReceiptsIdQueryKey as Fn, getReceiptsOptions as In, getReceiptsQueryKey as Ln, getReceivablesIdHistoryQueryKey as Rn, getReceivablesIdMailsQueryKey as zn, getReceivablesIdOptions as Bn, getReceivablesIdPdfLinkOptions as Vn, getReceivablesIdPdfLinkQueryKey as Hn, getReceivablesIdQueryKey as Un, getReceivablesOptions as Wn, getReceivablesQueryKey as Gn, getReceivablesRequiredFieldsOptions as Kn, getRecurrencesIdOptions as qn, getRecurrencesIdQueryKey as Jn, getRecurrencesQueryKey as Yn, getTransactionsIdExpenseHistoryOptions as Xn, getTransactionsIdExpenseHistoryQueryKey as Zn, getTransactionsIdOptions as Qn, getTransactionsIdQueryKey as $n, getTransactionsOptions as er, getTransactionsQueryKey as tr, getTransactionsValidationsOptions as nr, getTransactionsValidationsQueryKey as rr, getUsersOptions as ir, getUsersQueryKey as ar, getVelocityControlsQueryKey as or, grantBankAccountAccessMutation as sr, grantExternalBankAccountAccessMutation as cr, linkExternalBankAccountMutation as lr, listDepartmentsOptions as ur, listDepartmentsQueryKey as dr, listLocationsOptions as fr, listLocationsQueryKey as pr, listRolesQueryKey as mr, manageDebitCardAccessMutation as hr, patchApprovalPoliciesIdMutation as gr, patchLedgerAccountsIdMutation as _r, patchReceiptsIdMutation as vr, postApprovalPoliciesMutation as yr, postLedgerAccountsMutation as br, postReceiptsUploadFromFileMutation as xr, putTransactionsValidationsMutation as Sr, setDebitCardLockStatusMutation as Cr, submitApplicationMutation as wr, unlinkExternalBankAccountMutation as Tr, updateApplicationMutation as Er, updateBankAccountMutation as Dr, updateDebitCardMutation as Or, updateExternalBankAccountMutation as kr, validateExternalBankAccountMutation as Ar, verifyDebitCardMutation as jr } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { OrganizationStatus as Mr, isOrganizationOnItsWay as Nr } from "./lib/organizationStatus.js";
|
|
6
|
+
import { withAuthEpoch as Pr, withAuthEpochInfinite as Fr } from "./lib/withAuthEpoch.js";
|
|
7
|
+
import { applicationStatusInvalidationKey as Ir, applicationStatusQueryOptions as Lr } from "./lib/applicationStatusQueryOptions.js";
|
|
8
|
+
import { createClientSecretInstaller as Rr } from "./lib/scopedClientSecret.js";
|
|
9
|
+
import { cancelAllClients as zr, invalidateAllClients as Br, registerQueryClient as Vr, removeInactiveFromAllClients as Hr, resetAllClients as Ur, setAllClientsQueriesData as Wr, unregisterQueryClient as Gr } from "./lib/clientRegistry.js";
|
|
10
|
+
import { cloneEmbeddedClient as Kr, createEmbeddedClient as qr } from "./lib/createEmbeddedClient.js";
|
|
11
11
|
import "./lib/widgetGatewayHosts.js";
|
|
12
|
-
import { attachTransportInterceptors as
|
|
13
|
-
import { EmbedApiProvider as
|
|
14
|
-
import { optionalOrganizationHeaders as
|
|
15
|
-
import { fetchWidgetInit as
|
|
16
|
-
import { hasAnyScope as
|
|
17
|
-
import { myEntityInvalidationKey as
|
|
18
|
-
import { useCurrentUserQuery as
|
|
19
|
-
import { useMyEntityQuery as
|
|
20
|
-
import { useMailboxAddress as
|
|
12
|
+
import { attachTransportInterceptors as Jr } from "./lib/transportInterceptors.js";
|
|
13
|
+
import { EmbedApiProvider as Yr, useEmbedApi as Xr } from "./lib/EmbedApiContext.js";
|
|
14
|
+
import { optionalOrganizationHeaders as Zr, organizationHeaders as Qr } from "./lib/organizationHeaders.js";
|
|
15
|
+
import { fetchWidgetInit as $r } from "./lib/fetchWidgetInit.js";
|
|
16
|
+
import { hasAnyScope as ei } from "./lib/hasAnyScope.js";
|
|
17
|
+
import { myEntityInvalidationKey as ti } from "./lib/queryKeys.js";
|
|
18
|
+
import { useCurrentUserQuery as ni } from "./lib/useCurrentUserQuery.js";
|
|
19
|
+
import { useMyEntityQuery as ri } from "./lib/useMyEntityQuery.js";
|
|
20
|
+
import { useMailboxAddress as ii } from "./lib/useMailboxAddress.js";
|
|
21
21
|
import "./lib/apiErrorStatus.js";
|
|
22
|
-
import { isApiConflictError as
|
|
23
|
-
import { isApiForbiddenError as
|
|
24
|
-
import { isApiNotFoundError as
|
|
25
|
-
import { isApiUnprocessableError as
|
|
22
|
+
import { isApiConflictError as ai } from "./lib/isApiConflictError.js";
|
|
23
|
+
import { isApiForbiddenError as oi } from "./lib/isApiForbiddenError.js";
|
|
24
|
+
import { isApiNotFoundError as si } from "./lib/isApiNotFoundError.js";
|
|
25
|
+
import { isApiUnprocessableError as ci } from "./lib/isApiUnprocessableError.js";
|
|
26
26
|
import "./lib/isUserDataNotFoundError.js";
|
|
27
|
-
import { useGetUserDataQuery as
|
|
28
|
-
import { useUpsertUserDataMutation as
|
|
27
|
+
import { useGetUserDataQuery as li } from "./lib/useGetUserDataQuery.js";
|
|
28
|
+
import { useUpsertUserDataMutation as ui } from "./lib/useUpsertUserDataMutation.js";
|
|
29
29
|
import "./lib/rest/zod.gen.js";
|
|
30
|
-
import { Scope as
|
|
31
|
-
import { getAllPagesNextPageParam as
|
|
32
|
-
import { useAllBankAccountsQuery as
|
|
33
|
-
import { useAllDebitCardsQuery as
|
|
34
|
-
import { useAllExternalBankAccountsQuery as
|
|
35
|
-
import { useAllMerchantCategoryGroupsQuery as
|
|
36
|
-
import { useAllLedgerAccountsQuery as
|
|
37
|
-
import { usePaymentTermsQuery as
|
|
38
|
-
import { useAllOrganizationRolesQuery as
|
|
39
|
-
import { useRolePermissionsQueries as
|
|
40
|
-
import { useAllOrganizationUsersQuery as
|
|
41
|
-
import { personDisclosure as
|
|
42
|
-
import { useAcceptWidgetDisclosures as
|
|
43
|
-
import { useDisclosuresQuery as
|
|
44
|
-
import { OnboardingSuppressionReason as
|
|
45
|
-
import { useOrganizationOnboardingSuppression as
|
|
46
|
-
import { useOrganizationApplicationStatus as
|
|
47
|
-
export {
|
|
30
|
+
import { Scope as di, isScope as fi } from "./lib/scopes.js";
|
|
31
|
+
import { getAllPagesNextPageParam as pi, getAllPagesNextPaginationTokenParam as mi, isAllPagesResolving as hi, useAutoFetchNextPage as gi } from "./lib/allPages.js";
|
|
32
|
+
import { useAllBankAccountsQuery as _i } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
33
|
+
import { useAllDebitCardsQuery as vi } from "./lib/debit-card/useAllDebitCardsQuery.js";
|
|
34
|
+
import { useAllExternalBankAccountsQuery as yi } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
35
|
+
import { useAllMerchantCategoryGroupsQuery as bi } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
36
|
+
import { useAllLedgerAccountsQuery as xi, useLedgerAccountsQuery as Si } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
37
|
+
import { usePaymentTermsQuery as Ci } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
38
|
+
import { useAllOrganizationRolesQuery as wi } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
39
|
+
import { useRolePermissionsQueries as Ti } from "./lib/role/useRolePermissionsQueries.js";
|
|
40
|
+
import { useAllOrganizationUsersQuery as Ei } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
41
|
+
import { personDisclosure as Di } from "./lib/disclosures/personDisclosure.js";
|
|
42
|
+
import { useAcceptWidgetDisclosures as Oi } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
43
|
+
import { useDisclosuresQuery as ki } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
44
|
+
import { OnboardingSuppressionReason as Ai } from "./lib/onboardingSuppressionReason.js";
|
|
45
|
+
import { useOrganizationOnboardingSuppression as ji } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
46
|
+
import { useOrganizationApplicationStatus as Mi } from "./lib/useOrganizationApplicationStatus.js";
|
|
47
|
+
export { Yr as EmbedApiProvider, Ai as OnboardingSuppressionReason, Mr as OrganizationStatus, di as Scope, Je as activateCreditCardMutation, Ye as activateDebitCardMutation, Ir as applicationStatusInvalidationKey, Lr as applicationStatusQueryOptions, Jr as attachTransportInterceptors, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, zr as cancelAllClients, Kr as cloneEmbeddedClient, Xe as connectExternalBankAccountMutation, Ze as createAchMoneyMovementMutation, Qe as createApplicationMutation, $e as createBankAccountMutation, et as createBookTransferMutation, tt as createCheckDepositMutation, Rr as createClientSecretInstaller, nt as createDebitCardMutation, r as createDepartment, qr as createEmbeddedClient, i as createLocation, a as createUser, rt as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, it as deleteApprovalPoliciesIdMutation, at as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, d as deleteFilesId, ot as deleteLedgerAccountsIdMutation, f as deleteMeasureUnitsId, p as deletePayablesId, m as deletePayablesIdFile, h as deleteProductsId, st as deleteReceiptsIdMutation, g as deleteReceivablesId, ct as disableUserMutation, _ as downloadBankAccountTransactions, $r as fetchWidgetInit, pi as getAllPagesNextPageParam, mi as getAllPagesNextPaginationTokenParam, lt as getAnalyticsPayablesOptions, ut as getAnalyticsPayablesQueryKey, dt as getAnalyticsReceiptsOptions, ft as getAnalyticsReceiptsQueryKey, pt as getAnalyticsReceivablesOptions, mt as getAnalyticsReceivablesQueryKey, ht as getAnalyticsTransactionsOptions, gt as getAnalyticsTransactionsQueryKey, v as getApplicationStatus, y as getApprovalPolicies, _t as getApprovalPoliciesOptions, vt as getApprovalPoliciesQueryKey, b as getApprovalRequests, yt as getApprovalRequestsOptions, bt as getApprovalRequestsQueryKey, x as getBankAccountAccess, xt as getBankAccountAccessQueryKey, St as getBankAccountApplicationOptions, Ct as getBankAccountOptions, wt as getBankAccountQueryKey, S as getBankAccountStatement, Tt as getBankAccountStatementsOptions, Et as getBankAccountTransactionsOptions, Dt as getBankAccountTransactionsQueryKey, Ot as getBankAccountTransfersOptions, kt as getBankAccountTransfersQueryKey, At as getBankAccountsQueryKey, jt as getBankDetailsOptions, Mt as getBankDetailsQueryKey, C as getCounterparts, Nt as getCounterpartsIdAddressesOptions, Pt as getCounterpartsIdAddressesQueryKey, Ft as getCounterpartsIdBankAccountsOptions, It as getCounterpartsIdBankAccountsQueryKey, Lt as getCounterpartsIdOptions, Rt as getCounterpartsIdQueryKey, zt as getCounterpartsOptions, Bt as getCounterpartsQueryKey, Vt as getCreditCardByIdOptions, Ht as getCreditCardByIdQueryKey, Ut as getCreditCardsOptions, Wt as getCreditCardsQueryKey, Gt as getDebitCardByIdOptions, Kt as getDebitCardByIdQueryKey, qt as getDebitCardCredentialsOptions, Jt as getDebitCardsOptions, Yt as getDebitCardsQueryKey, w as getDepartment, Xt as getDepartmentOptions, Zt as getDepartmentQueryKey, T as getDepositableBankAccounts, Qt as getDepositableBankAccountsOptions, $t as getDocumentsIdNextNumbersOptions, en as getDocumentsIdNextNumbersQueryKey, tn as getEntitiesIdSettingsOptions, nn as getEntitiesIdSettingsQueryKey, rn as getEntityUsersMyEntityOptions, an as getEntityUsersOptions, E as getExternalBankAccountAccess, on as getExternalBankAccountAccessQueryKey, sn as getExternalBankAccountsOptions, cn as getExternalBankAccountsQueryKey, ln as getFilesQueryKey, un as getLedgerAccountsQueryKey, D as getLocation, dn as getLocationOptions, fn as getLocationQueryKey, pn as getMeasureUnitsOptions, mn as getMeasureUnitsQueryKey, hn as getOrganizationOptions, gn as getOverdueRemindersOptions, _n as getOverdueRemindersQueryKey, O as getPayables, k as getPayablesId, A as getPayablesIdHistory, vn as getPayablesIdHistoryOptions, yn as getPayablesIdHistoryQueryKey, j as getPayablesIdLineItems, bn as getPayablesIdLineItemsOptions, xn as getPayablesIdLineItemsQueryKey, Sn as getPayablesIdOptions, Cn as getPayablesIdQueryKey, wn as getPayablesIdSuggestionsOptions, Tn as getPayablesOptions, En as getPayablesQueryKey, M as getPaymentRecords, Dn as getPaymentRecordsOptions, On as getPaymentRecordsQueryKey, kn as getPaymentRemindersOptions, An as getPaymentRemindersQueryKey, N as getProducts, jn as getProductsIdOptions, Mn as getProductsIdQueryKey, Nn as getProductsOptions, Pn as getProductsQueryKey, P as getReceipts, Fn as getReceiptsIdQueryKey, In as getReceiptsOptions, Ln as getReceiptsQueryKey, F as getReceivables, I as getReceivablesIdHistory, Rn as getReceivablesIdHistoryQueryKey, zn as getReceivablesIdMailsQueryKey, Bn as getReceivablesIdOptions, Vn as getReceivablesIdPdfLinkOptions, Hn as getReceivablesIdPdfLinkQueryKey, Un as getReceivablesIdQueryKey, Wn as getReceivablesOptions, Gn as getReceivablesQueryKey, Kn as getReceivablesRequiredFieldsOptions, qn as getRecurrencesIdOptions, Jn as getRecurrencesIdQueryKey, Yn as getRecurrencesQueryKey, Xn as getTransactionsIdExpenseHistoryOptions, Zn as getTransactionsIdExpenseHistoryQueryKey, Qn as getTransactionsIdOptions, $n as getTransactionsIdQueryKey, er as getTransactionsOptions, tr as getTransactionsQueryKey, nr as getTransactionsValidationsOptions, rr as getTransactionsValidationsQueryKey, L as getUsers, ir as getUsersOptions, ar as getUsersQueryKey, or as getVelocityControlsQueryKey, sr as grantBankAccountAccessMutation, cr as grantExternalBankAccountAccessMutation, ei as hasAnyScope, Br as invalidateAllClients, hi as isAllPagesResolving, ai as isApiConflictError, oi as isApiForbiddenError, si as isApiNotFoundError, ci as isApiUnprocessableError, Nr as isOrganizationOnItsWay, fi as isScope, lr as linkExternalBankAccountMutation, R as listDepartments, ur as listDepartmentsOptions, dr as listDepartmentsQueryKey, z as listLocations, fr as listLocationsOptions, pr as listLocationsQueryKey, B as listRoles, mr as listRolesQueryKey, V as manageBankAccountAccess, H as manageDebitCardAccess, hr as manageDebitCardAccessMutation, ti as myEntityInvalidationKey, Zr as optionalOrganizationHeaders, Qr as organizationHeaders, gr as patchApprovalPoliciesIdMutation, U as patchCounterpartsId, W as patchCounterpartsIdAddressesId, G as patchCounterpartsIdBankAccountsId, K as patchEntitiesIdSettings, _r as patchLedgerAccountsIdMutation, q as patchMeasureUnitsId, J as patchPayablesId, Y as patchProductsId, vr as patchReceiptsIdMutation, X as patchReceivablesId, Z as patchRecurrencesId, Q as patchTransactionsId, Di as personDisclosure, yr as postApprovalPoliciesMutation, $ as postApprovalRequestsIdApprove, ee as postApprovalRequestsIdReject, te as postBankDetails, ne as postCounterparts, re as postCounterpartsIdAddresses, ie as postCounterpartsIdBankAccounts, ae as postCounterpartsIdBankAccountsIdMakeDefault, oe as postFiles, br as postLedgerAccountsMutation, se as postMeasureUnits, ce as postOverdueReminders, le as postPayables, ue as postPayablesIdApprovePaymentOperation, de as postPayablesIdAttachFile, fe as postPayablesIdCancel, pe as postPayablesIdDuplicatesIdConfirm, me as postPayablesIdDuplicatesIdDismiss, he as postPayablesIdMarkAsPaid, ge as postPayablesIdReject, _e as postPayablesIdReopen, ve as postPayablesIdSchedulePayment, ye as postPayablesIdSubmitForApproval, be as postPayablesIdValidate, xe as postPayablesUploadFromFile, Se as postPaymentIntentsIdCancel, Ce as postPaymentReminders, we as postProducts, xr as postReceiptsUploadFromFileMutation, Te as postReceivables, Ee as postReceivablesIdAccept, De as postReceivablesIdCancel, Oe as postReceivablesIdClone, ke as postReceivablesIdDecline, Ae as postReceivablesIdIssue, je as postReceivablesIdMarkAsPaid, Me as postReceivablesIdMarkAsPartiallyPaid, Ne as postReceivablesIdMarkAsUncollectible, Pe as postReceivablesIdSend, Fe as postRecurrences, Ie as postRecurrencesIdCancel, Le as postRecurrencesIdPause, Re as postRecurrencesIdResume, ze as postTransactionsIdApprove, Be as postTransactionsIdReject, Ve as postTransactionsIdReopen, He as postTransactionsIdSubmit, Ue as putEntitiesIdLogo, We as putPayablesIdLineItems, Sr as putTransactionsValidationsMutation, Vr as registerQueryClient, Hr as removeInactiveFromAllClients, Ur as resetAllClients, Wr as setAllClientsQueriesData, Cr as setDebitCardLockStatusMutation, wr as submitApplicationMutation, Tr as unlinkExternalBankAccountMutation, Gr as unregisterQueryClient, Er as updateApplicationMutation, Dr as updateBankAccountMutation, Or as updateDebitCardMutation, Ge as updateDepartment, kr as updateExternalBankAccountMutation, Ke as updateLocation, qe as updateUser, Oi as useAcceptWidgetDisclosures, _i as useAllBankAccountsQuery, vi as useAllDebitCardsQuery, yi as useAllExternalBankAccountsQuery, xi as useAllLedgerAccountsQuery, bi as useAllMerchantCategoryGroupsQuery, wi as useAllOrganizationRolesQuery, Ei as useAllOrganizationUsersQuery, gi as useAutoFetchNextPage, ni as useCurrentUserQuery, ki as useDisclosuresQuery, Xr as useEmbedApi, li as useGetUserDataQuery, Si as useLedgerAccountsQuery, ii as useMailboxAddress, ri as useMyEntityQuery, Mi as useOrganizationApplicationStatus, ji as useOrganizationOnboardingSuppression, Ci as usePaymentTermsQuery, Ti as useRolePermissionsQueries, ui as useUpsertUserDataMutation, Ar as validateExternalBankAccountMutation, jr as verifyDebitCardMutation, Pr as withAuthEpoch, Fr as withAuthEpochInfinite };
|
package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/clientRegistry.js
CHANGED
|
@@ -14,16 +14,19 @@ function r(t) {
|
|
|
14
14
|
return Promise.all([...e].map((e) => e.invalidateQueries({ queryKey: t }))).then(() => void 0);
|
|
15
15
|
}
|
|
16
16
|
function i(t) {
|
|
17
|
-
return Promise.all([...e].map((e) => e.
|
|
17
|
+
return Promise.all([...e].map((e) => e.resetQueries({ queryKey: t }))).then(() => void 0);
|
|
18
18
|
}
|
|
19
19
|
function a(t) {
|
|
20
|
+
return Promise.all([...e].map((e) => e.cancelQueries({ queryKey: t }))).then(() => void 0);
|
|
21
|
+
}
|
|
22
|
+
function o(t) {
|
|
20
23
|
for (let n of e) n.removeQueries({
|
|
21
24
|
queryKey: t,
|
|
22
25
|
type: "inactive"
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
|
-
function
|
|
28
|
+
function s(t, n) {
|
|
26
29
|
for (let r of e) r.setQueriesData({ queryKey: t }, n);
|
|
27
30
|
}
|
|
28
31
|
//#endregion
|
|
29
|
-
export {
|
|
32
|
+
export { a as cancelAllClients, r as invalidateAllClients, t as registerQueryClient, o as removeInactiveFromAllClients, i as resetAllClients, s as setAllClientsQueriesData, n as unregisterQueryClient };
|