@bluecopa/react 0.1.108 → 0.1.110
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/hooks/useCancelInboxItem.d.ts +9 -0
- package/dist/hooks/useCancelInboxItem.d.ts.map +1 -0
- package/dist/hooks/useCancelInboxItemsByKey.d.ts +10 -0
- package/dist/hooks/useCancelInboxItemsByKey.d.ts.map +1 -0
- package/dist/hooks/useClaimInboxItem.d.ts +10 -0
- package/dist/hooks/useClaimInboxItem.d.ts.map +1 -0
- package/dist/hooks/useCompleteInboxItem.d.ts +9 -0
- package/dist/hooks/useCompleteInboxItem.d.ts.map +1 -0
- package/dist/hooks/useCompleteInboxItemsByKey.d.ts +10 -0
- package/dist/hooks/useCompleteInboxItemsByKey.d.ts.map +1 -0
- package/dist/hooks/useCreateInboxItem.d.ts +10 -0
- package/dist/hooks/useCreateInboxItem.d.ts.map +1 -0
- package/dist/hooks/useCreateInboxType.d.ts +9 -0
- package/dist/hooks/useCreateInboxType.d.ts.map +1 -0
- package/dist/hooks/useDeleteInboxType.d.ts +8 -0
- package/dist/hooks/useDeleteInboxType.d.ts.map +1 -0
- package/dist/hooks/useDismissInboxItem.d.ts +9 -0
- package/dist/hooks/useDismissInboxItem.d.ts.map +1 -0
- package/dist/hooks/useGetInboxItem.d.ts +11 -0
- package/dist/hooks/useGetInboxItem.d.ts.map +1 -0
- package/dist/hooks/useGetInboxType.d.ts +11 -0
- package/dist/hooks/useGetInboxType.d.ts.map +1 -0
- package/dist/hooks/useListInboxTypes.d.ts +9 -0
- package/dist/hooks/useListInboxTypes.d.ts.map +1 -0
- package/dist/hooks/useListMyInboxItems.d.ts +10 -0
- package/dist/hooks/useListMyInboxItems.d.ts.map +1 -0
- package/dist/hooks/useMarkInboxItemsRead.d.ts +9 -0
- package/dist/hooks/useMarkInboxItemsRead.d.ts.map +1 -0
- package/dist/hooks/useMarkInboxItemsUnread.d.ts +9 -0
- package/dist/hooks/useMarkInboxItemsUnread.d.ts.map +1 -0
- package/dist/hooks/useReassignInboxItem.d.ts +14 -0
- package/dist/hooks/useReassignInboxItem.d.ts.map +1 -0
- package/dist/hooks/useReleaseInboxItem.d.ts +10 -0
- package/dist/hooks/useReleaseInboxItem.d.ts.map +1 -0
- package/dist/hooks/useSnoozeInboxItem.d.ts +13 -0
- package/dist/hooks/useSnoozeInboxItem.d.ts.map +1 -0
- package/dist/hooks/useUpdateInboxItem.d.ts +14 -0
- package/dist/hooks/useUpdateInboxItem.d.ts.map +1 -0
- package/dist/hooks/useUpdateInboxType.d.ts +13 -0
- package/dist/hooks/useUpdateInboxType.d.ts.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +725 -571
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useQuery as
|
|
1
|
+
import { useQuery as o, useMutation as a, useQueryClient as f } from "@tanstack/react-query";
|
|
2
2
|
import * as H from "@tanstack/react-query";
|
|
3
|
-
import { copaApi as r, copaGetConfig as
|
|
3
|
+
import { copaApi as r, copaGetConfig as D, copaUtils as R } from "@bluecopa/core";
|
|
4
4
|
export * from "@bluecopa/core";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { ReactQueryDevtools as
|
|
7
|
-
const
|
|
5
|
+
import { useState as p, useRef as x, useEffect as I, useMemo as S } from "react";
|
|
6
|
+
import { ReactQueryDevtools as rr } from "@tanstack/react-query-devtools";
|
|
7
|
+
const k = {
|
|
8
8
|
enabled: !0,
|
|
9
9
|
staleTime: 1e3 * 60 * 5,
|
|
10
10
|
// 5 minutes
|
|
@@ -13,27 +13,27 @@ const x = {
|
|
|
13
13
|
retry: 2,
|
|
14
14
|
retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function C(e = {}) {
|
|
17
17
|
return {
|
|
18
|
-
...
|
|
18
|
+
...k,
|
|
19
19
|
...e
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function K(e = 5e3) {
|
|
23
23
|
return new Promise((t) => setTimeout(t, e));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const n = Object.entries(e).filter(([
|
|
25
|
+
function h(e, t) {
|
|
26
|
+
const n = Object.entries(e).filter(([u, s]) => !s).map(([u]) => u);
|
|
27
27
|
if (n.length > 0)
|
|
28
28
|
throw new Error(
|
|
29
29
|
t || `Missing required parameters: ${n.join(", ")}`
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
32
|
function c(e, t, n = 0) {
|
|
33
|
-
return async () => (await
|
|
33
|
+
return async () => (await K(n), await e());
|
|
34
34
|
}
|
|
35
35
|
function l(e) {
|
|
36
|
-
const t =
|
|
36
|
+
const t = C(e.options);
|
|
37
37
|
return {
|
|
38
38
|
queryKey: e.queryKey,
|
|
39
39
|
queryFn: e.queryFn,
|
|
@@ -47,7 +47,7 @@ function l(e) {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
function J(e, t = {}) {
|
|
50
|
-
const n = t.enabled !== !1 && !!e,
|
|
50
|
+
const n = t.enabled !== !1 && !!e, u = t.solutionBindings ?? null, s = c(async () => {
|
|
51
51
|
if (!e)
|
|
52
52
|
throw new Error("Metric ID is required");
|
|
53
53
|
return console.log("Fetching metric data..."), await r.metric.getData(e, {
|
|
@@ -55,31 +55,31 @@ function J(e, t = {}) {
|
|
|
55
55
|
limit: t.limit
|
|
56
56
|
});
|
|
57
57
|
}), i = l({
|
|
58
|
-
queryKey: ["metricData", e,
|
|
59
|
-
queryFn:
|
|
58
|
+
queryKey: ["metricData", e, u, t.limit ?? null],
|
|
59
|
+
queryFn: s,
|
|
60
60
|
enabled: n,
|
|
61
61
|
options: t
|
|
62
62
|
});
|
|
63
|
-
return
|
|
63
|
+
return o(i);
|
|
64
64
|
}
|
|
65
65
|
function Y(e, t = {}) {
|
|
66
|
-
const n = !!e,
|
|
66
|
+
const n = !!e, u = c(async () => {
|
|
67
67
|
if (!e)
|
|
68
68
|
throw new Error("Dataset ID is required");
|
|
69
69
|
return console.log("Fetching dataset data..."), await r.dataset.getSampleData({
|
|
70
70
|
datasetId: e,
|
|
71
71
|
dataFilter: "all_data"
|
|
72
72
|
});
|
|
73
|
-
}),
|
|
73
|
+
}), s = l({
|
|
74
74
|
queryKey: ["datasetData", e],
|
|
75
|
-
queryFn:
|
|
75
|
+
queryFn: u,
|
|
76
76
|
enabled: n,
|
|
77
77
|
options: t
|
|
78
78
|
});
|
|
79
|
-
return s
|
|
79
|
+
return o(s);
|
|
80
80
|
}
|
|
81
81
|
function $(e = {}) {
|
|
82
|
-
return
|
|
82
|
+
return a({
|
|
83
83
|
mutationFn: async (t) => await r.chat.createThread(t),
|
|
84
84
|
onSuccess: e.onSuccess,
|
|
85
85
|
onError: e.onError,
|
|
@@ -88,19 +88,19 @@ function $(e = {}) {
|
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
function X(e, t = {}) {
|
|
91
|
-
const n = t.enabled !== !1 && !!e,
|
|
91
|
+
const n = t.enabled !== !1 && !!e, u = c(async () => (h(
|
|
92
92
|
{ threadId: e },
|
|
93
93
|
"Thread ID is required to fetch comments"
|
|
94
|
-
), await r.chat.getCommentsByThreadId(e))),
|
|
94
|
+
), await r.chat.getCommentsByThreadId(e))), s = l({
|
|
95
95
|
queryKey: ["chat", "comments", e],
|
|
96
|
-
queryFn:
|
|
96
|
+
queryFn: u,
|
|
97
97
|
enabled: n,
|
|
98
98
|
options: t
|
|
99
99
|
});
|
|
100
|
-
return s
|
|
100
|
+
return o(s);
|
|
101
101
|
}
|
|
102
102
|
function Z(e = {}) {
|
|
103
|
-
return
|
|
103
|
+
return a({
|
|
104
104
|
mutationFn: async (t) => await r.chat.postComment(t),
|
|
105
105
|
onSuccess: e.onSuccess,
|
|
106
106
|
onError: e.onError,
|
|
@@ -109,7 +109,7 @@ function Z(e = {}) {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
function ee(e = {}) {
|
|
112
|
-
return
|
|
112
|
+
return a({
|
|
113
113
|
mutationFn: async (t) => await r.chat.updateComment(t),
|
|
114
114
|
onSuccess: e.onSuccess,
|
|
115
115
|
onError: e.onError,
|
|
@@ -118,7 +118,7 @@ function ee(e = {}) {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
function te(e = {}) {
|
|
121
|
-
return
|
|
121
|
+
return a({
|
|
122
122
|
mutationFn: async (t) => await r.chat.deleteComment(t),
|
|
123
123
|
onSuccess: e.onSuccess,
|
|
124
124
|
onError: e.onError,
|
|
@@ -127,7 +127,7 @@ function te(e = {}) {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
function ne(e = {}) {
|
|
130
|
-
return
|
|
130
|
+
return a({
|
|
131
131
|
mutationFn: async (t) => await r.chat.subscribeUser(t),
|
|
132
132
|
onSuccess: e.onSuccess,
|
|
133
133
|
onError: e.onError,
|
|
@@ -136,7 +136,7 @@ function ne(e = {}) {
|
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
138
|
function re(e = {}) {
|
|
139
|
-
return
|
|
139
|
+
return a({
|
|
140
140
|
mutationFn: async (t) => await r.chat.unsubscribeUser(t),
|
|
141
141
|
onSuccess: e.onSuccess,
|
|
142
142
|
onError: e.onError,
|
|
@@ -144,38 +144,38 @@ function re(e = {}) {
|
|
|
144
144
|
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
147
|
+
function ue(e, t, n = {}) {
|
|
148
|
+
const u = n.enabled !== !1 && !!e && !!t, s = c(async () => (h(
|
|
149
149
|
{ userId: e, threadId: t },
|
|
150
150
|
"User ID and Thread ID are required to check subscription status"
|
|
151
151
|
), await r.chat.checkSubscriptionStatus(e, t))), i = l({
|
|
152
152
|
queryKey: ["chat", "subscription", e, t],
|
|
153
|
-
queryFn:
|
|
154
|
-
enabled:
|
|
153
|
+
queryFn: s,
|
|
154
|
+
enabled: u,
|
|
155
155
|
options: n
|
|
156
156
|
});
|
|
157
|
-
return
|
|
157
|
+
return o(i);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
return
|
|
159
|
+
function ae(e = {}) {
|
|
160
|
+
return a({
|
|
161
161
|
mutationFn: async (t) => await r.statement.createNewRun(t),
|
|
162
162
|
...e
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function oe(e, t = {}) {
|
|
166
|
-
const n = !!e,
|
|
166
|
+
const n = !!e, u = c(async () => {
|
|
167
167
|
if (!e)
|
|
168
168
|
throw new Error("Dataset ID is required");
|
|
169
169
|
return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
|
|
170
170
|
limit: t.limit || 1e3
|
|
171
171
|
});
|
|
172
|
-
}),
|
|
172
|
+
}), s = l({
|
|
173
173
|
queryKey: ["datasetData", e],
|
|
174
|
-
queryFn:
|
|
174
|
+
queryFn: u,
|
|
175
175
|
enabled: n,
|
|
176
176
|
options: t
|
|
177
177
|
});
|
|
178
|
-
return s
|
|
178
|
+
return o(s);
|
|
179
179
|
}
|
|
180
180
|
function se() {
|
|
181
181
|
const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), t = l({
|
|
@@ -183,7 +183,7 @@ function se() {
|
|
|
183
183
|
queryFn: e,
|
|
184
184
|
enabled: !0
|
|
185
185
|
});
|
|
186
|
-
return
|
|
186
|
+
return o(t);
|
|
187
187
|
}
|
|
188
188
|
function ie() {
|
|
189
189
|
const e = c(async () => await r.dataset.getVirtualDatasets()), t = l({
|
|
@@ -191,10 +191,10 @@ function ie() {
|
|
|
191
191
|
queryFn: e,
|
|
192
192
|
enabled: !0
|
|
193
193
|
});
|
|
194
|
-
return
|
|
194
|
+
return o(t);
|
|
195
195
|
}
|
|
196
|
-
function ce(e, t, n,
|
|
197
|
-
const
|
|
196
|
+
function ce(e, t, n, u = {}) {
|
|
197
|
+
const s = !!e && !!t && !!n, i = c(async () => {
|
|
198
198
|
if (!e || !t || !n)
|
|
199
199
|
throw new Error("Key, contentType, and method are required");
|
|
200
200
|
return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
|
|
@@ -205,69 +205,69 @@ function ce(e, t, n, a = {}) {
|
|
|
205
205
|
}), y = l({
|
|
206
206
|
queryKey: ["file", "getFileUrlByFileId", e, t, n],
|
|
207
207
|
queryFn: i,
|
|
208
|
-
enabled:
|
|
209
|
-
options:
|
|
208
|
+
enabled: s,
|
|
209
|
+
options: u
|
|
210
210
|
});
|
|
211
|
-
return
|
|
211
|
+
return o(y);
|
|
212
212
|
}
|
|
213
213
|
function le(e, t, n = {}) {
|
|
214
|
-
const
|
|
215
|
-
folderId:
|
|
216
|
-
name:
|
|
214
|
+
const u = e?.trim(), s = t?.trim(), i = !!(u && s), y = c(async () => await r.files.getFileByFolderIdAndName({
|
|
215
|
+
folderId: u,
|
|
216
|
+
name: s
|
|
217
217
|
})), d = l({
|
|
218
218
|
queryKey: [
|
|
219
219
|
"file",
|
|
220
220
|
"getFileByFolderIdAndName",
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
u,
|
|
222
|
+
s
|
|
223
223
|
],
|
|
224
224
|
queryFn: y,
|
|
225
225
|
enabled: i,
|
|
226
226
|
options: n
|
|
227
227
|
});
|
|
228
|
-
return
|
|
228
|
+
return o(d);
|
|
229
229
|
}
|
|
230
230
|
function ye(e, t, n = {}) {
|
|
231
|
-
const
|
|
231
|
+
const u = !!e && !!t, s = c(async () => {
|
|
232
232
|
if (!e || !t)
|
|
233
233
|
throw new Error("Type and ID are required");
|
|
234
234
|
return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: t });
|
|
235
235
|
}), i = l({
|
|
236
236
|
queryKey: ["workbook", "getPublishedWorkbookById", e, t],
|
|
237
|
-
queryFn:
|
|
238
|
-
enabled:
|
|
237
|
+
queryFn: s,
|
|
238
|
+
enabled: u,
|
|
239
239
|
options: n
|
|
240
240
|
});
|
|
241
|
-
return
|
|
241
|
+
return o(i);
|
|
242
242
|
}
|
|
243
243
|
function de(e, t = {}) {
|
|
244
|
-
const n = !!e,
|
|
244
|
+
const n = !!e, u = c(async () => {
|
|
245
245
|
if (!e)
|
|
246
246
|
throw new Error("Run ID is required");
|
|
247
247
|
return await r.statement.getRunResultById(e);
|
|
248
|
-
}),
|
|
248
|
+
}), s = l({
|
|
249
249
|
queryKey: ["statement", "getRunResultById", e],
|
|
250
|
-
queryFn:
|
|
250
|
+
queryFn: u,
|
|
251
251
|
enabled: n,
|
|
252
252
|
options: t
|
|
253
253
|
});
|
|
254
|
-
return s
|
|
254
|
+
return o(s);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const n = !!e,
|
|
256
|
+
function fe(e, t = {}) {
|
|
257
|
+
const n = !!e, u = c(async () => {
|
|
258
258
|
if (!e)
|
|
259
259
|
throw new Error("View ID is required");
|
|
260
260
|
return await r.statement.getRunsByViewId(e);
|
|
261
|
-
}),
|
|
261
|
+
}), s = l({
|
|
262
262
|
queryKey: ["statement", "getRunsByViewId", e],
|
|
263
|
-
queryFn:
|
|
263
|
+
queryFn: u,
|
|
264
264
|
enabled: n,
|
|
265
265
|
options: t
|
|
266
266
|
});
|
|
267
|
-
return s
|
|
267
|
+
return o(s);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const
|
|
269
|
+
function me(e, t, n, u = {}) {
|
|
270
|
+
const s = !!e, i = c(async () => {
|
|
271
271
|
if (!e)
|
|
272
272
|
throw new Error("Statement ID is required");
|
|
273
273
|
return await r.statement.getData({
|
|
@@ -278,129 +278,129 @@ function fe(e, t, n, a = {}) {
|
|
|
278
278
|
}), y = l({
|
|
279
279
|
queryKey: ["statement", "getData", e, t, n],
|
|
280
280
|
queryFn: i,
|
|
281
|
-
enabled:
|
|
282
|
-
options:
|
|
281
|
+
enabled: s,
|
|
282
|
+
options: u
|
|
283
283
|
});
|
|
284
|
-
return
|
|
284
|
+
return o(y);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const n = !!e,
|
|
286
|
+
function ge(e, t = {}) {
|
|
287
|
+
const n = !!e, u = c(async () => {
|
|
288
288
|
if (!e)
|
|
289
289
|
throw new Error("Table ID is required");
|
|
290
290
|
return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
|
|
291
|
-
}),
|
|
291
|
+
}), s = l({
|
|
292
292
|
queryKey: ["inputTable", "getTableById", e],
|
|
293
|
-
queryFn:
|
|
293
|
+
queryFn: u,
|
|
294
294
|
enabled: n,
|
|
295
295
|
options: t
|
|
296
296
|
});
|
|
297
|
-
return s
|
|
297
|
+
return o(s);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const n = !!e,
|
|
299
|
+
function we(e, t = {}) {
|
|
300
|
+
const n = !!e, u = c(async () => {
|
|
301
301
|
if (!e)
|
|
302
302
|
throw new Error("View ID is required");
|
|
303
303
|
return await r.statement.getViewById(e);
|
|
304
|
-
}),
|
|
304
|
+
}), s = l({
|
|
305
305
|
queryKey: ["statement", "getViewById", e],
|
|
306
|
-
queryFn:
|
|
306
|
+
queryFn: u,
|
|
307
307
|
enabled: n,
|
|
308
308
|
options: t
|
|
309
309
|
});
|
|
310
|
-
return s
|
|
310
|
+
return o(s);
|
|
311
311
|
}
|
|
312
312
|
function Fe(e, t = {}) {
|
|
313
|
-
const n = !!e,
|
|
313
|
+
const n = !!e, u = c(async () => {
|
|
314
314
|
if (!e)
|
|
315
315
|
throw new Error("Sheet ID is required");
|
|
316
316
|
return await r.statement.getViewsBySheetId(e);
|
|
317
|
-
}),
|
|
317
|
+
}), s = l({
|
|
318
318
|
queryKey: ["statement", "getViewsBySheetId", e],
|
|
319
|
-
queryFn:
|
|
319
|
+
queryFn: u,
|
|
320
320
|
enabled: n,
|
|
321
321
|
options: t
|
|
322
322
|
});
|
|
323
|
-
return s
|
|
323
|
+
return o(s);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
const n = !!e,
|
|
325
|
+
function be(e, t = {}) {
|
|
326
|
+
const n = !!e, u = c(async () => {
|
|
327
327
|
if (!e)
|
|
328
328
|
throw new Error("Type is required");
|
|
329
329
|
return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
|
|
330
|
-
}),
|
|
330
|
+
}), s = l({
|
|
331
331
|
queryKey: ["workbook", "getWorkbooksByType", e],
|
|
332
|
-
queryFn:
|
|
332
|
+
queryFn: u,
|
|
333
333
|
enabled: n,
|
|
334
334
|
options: t
|
|
335
335
|
});
|
|
336
|
-
return s
|
|
336
|
+
return o(s);
|
|
337
337
|
}
|
|
338
|
-
var
|
|
339
|
-
function
|
|
340
|
-
return
|
|
338
|
+
var V = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(V || {});
|
|
339
|
+
function qe(e = {}) {
|
|
340
|
+
return a({
|
|
341
341
|
mutationFn: async (t) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(t)),
|
|
342
342
|
...e
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
const n = !!e && e.length > 0,
|
|
345
|
+
function pe(e, t = {}) {
|
|
346
|
+
const n = !!e && e.length > 0, u = c(async () => {
|
|
347
347
|
if (!e || e.length === 0)
|
|
348
348
|
throw new Error("Worksheet IDs are required");
|
|
349
349
|
return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
|
|
350
|
-
}),
|
|
350
|
+
}), s = l({
|
|
351
351
|
queryKey: ["worksheet", "getWorksheets", e],
|
|
352
|
-
queryFn:
|
|
352
|
+
queryFn: u,
|
|
353
353
|
enabled: n,
|
|
354
354
|
options: t
|
|
355
355
|
});
|
|
356
|
-
return s
|
|
356
|
+
return o(s);
|
|
357
357
|
}
|
|
358
358
|
function Te(e, t = {}) {
|
|
359
|
-
const n = !!e,
|
|
359
|
+
const n = !!e, u = c(async () => {
|
|
360
360
|
if (!e)
|
|
361
361
|
throw new Error("Type is required");
|
|
362
362
|
return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
|
|
363
|
-
}),
|
|
363
|
+
}), s = l({
|
|
364
364
|
queryKey: ["worksheet", "getWorksheetsByType", e],
|
|
365
|
-
queryFn:
|
|
365
|
+
queryFn: u,
|
|
366
366
|
enabled: n,
|
|
367
367
|
options: t
|
|
368
368
|
});
|
|
369
|
-
return s
|
|
369
|
+
return o(s);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function De(e, t, n = {}) {
|
|
372
372
|
const {
|
|
373
|
-
limitParams:
|
|
374
|
-
pageParams:
|
|
373
|
+
limitParams: u = { limit: 2e3, limitFrom: "top" },
|
|
374
|
+
pageParams: s,
|
|
375
375
|
sortParams: i,
|
|
376
376
|
offsetParam: y,
|
|
377
377
|
...d
|
|
378
|
-
} = n,
|
|
378
|
+
} = n, m = d.enabled !== !1 && !!e && !!t, g = c(async () => {
|
|
379
379
|
if (!e || !t)
|
|
380
380
|
throw new Error("Input table ID and view ID are required");
|
|
381
381
|
return console.log("Fetching input table data..."), await r.inputTable.getData({
|
|
382
382
|
inputTableId: e,
|
|
383
383
|
inputTableViewId: t,
|
|
384
|
-
pageParams:
|
|
385
|
-
limitParams:
|
|
384
|
+
pageParams: s,
|
|
385
|
+
limitParams: u,
|
|
386
386
|
sortParams: i,
|
|
387
387
|
offsetParam: y
|
|
388
388
|
});
|
|
389
|
-
}),
|
|
389
|
+
}), w = l({
|
|
390
390
|
queryKey: ["inputTableData", e, t],
|
|
391
|
-
queryFn:
|
|
392
|
-
enabled:
|
|
391
|
+
queryFn: g,
|
|
392
|
+
enabled: m,
|
|
393
393
|
options: d
|
|
394
394
|
});
|
|
395
|
-
return
|
|
395
|
+
return o(w);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function he() {
|
|
398
398
|
const e = c(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), t = l({
|
|
399
399
|
queryKey: ["inputTableData"],
|
|
400
400
|
queryFn: e,
|
|
401
401
|
enabled: !0
|
|
402
402
|
});
|
|
403
|
-
return
|
|
403
|
+
return o(t);
|
|
404
404
|
}
|
|
405
405
|
function Re(e, t = {}) {
|
|
406
406
|
const n = [
|
|
@@ -411,117 +411,117 @@ function Re(e, t = {}) {
|
|
|
411
411
|
"retryDelay",
|
|
412
412
|
"onSuccess",
|
|
413
413
|
"onError"
|
|
414
|
-
], { limit:
|
|
414
|
+
], { limit: u, offset: s, order: i, order_by: y, ...d } = t, m = {}, g = { limit: u, offset: s, order: i, order_by: y };
|
|
415
415
|
Object.keys(d).forEach((F) => {
|
|
416
|
-
n.includes(F) ?
|
|
416
|
+
n.includes(F) ? m[F] = d[F] : g[F] = d[F];
|
|
417
417
|
});
|
|
418
|
-
const
|
|
418
|
+
const w = m.enabled !== !1 && !!e, q = c(async () => {
|
|
419
419
|
if (!e)
|
|
420
420
|
throw new Error("Table ID is required");
|
|
421
|
-
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e,
|
|
422
|
-
}),
|
|
421
|
+
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, g);
|
|
422
|
+
}), b = l({
|
|
423
423
|
queryKey: ["inputTableRows", e, t],
|
|
424
|
-
queryFn:
|
|
425
|
-
enabled:
|
|
426
|
-
options:
|
|
424
|
+
queryFn: q,
|
|
425
|
+
enabled: w,
|
|
426
|
+
options: m
|
|
427
427
|
});
|
|
428
|
-
return
|
|
428
|
+
return o(b);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
const t =
|
|
432
|
-
return
|
|
430
|
+
function xe(e = {}) {
|
|
431
|
+
const t = f();
|
|
432
|
+
return a({
|
|
433
433
|
mutationFn: async (n) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(n.tableId, n.rowData)),
|
|
434
|
-
onSuccess: (n
|
|
434
|
+
onSuccess: (n) => {
|
|
435
435
|
t.invalidateQueries({
|
|
436
|
-
queryKey: ["inputTableRows",
|
|
436
|
+
queryKey: ["inputTableRows", variables.tableId]
|
|
437
437
|
}), e.onSuccess?.(n);
|
|
438
438
|
},
|
|
439
|
-
onError: (n
|
|
439
|
+
onError: (n) => {
|
|
440
440
|
e.onError?.(n);
|
|
441
441
|
},
|
|
442
442
|
...e
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
|
-
function
|
|
446
|
-
const t =
|
|
447
|
-
return
|
|
445
|
+
function Ie(e = {}) {
|
|
446
|
+
const t = f();
|
|
447
|
+
return a({
|
|
448
448
|
mutationFn: async (n) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
|
|
449
449
|
n.tableId,
|
|
450
450
|
n.updateData,
|
|
451
451
|
n.rowId
|
|
452
452
|
)),
|
|
453
|
-
onSuccess: (n
|
|
453
|
+
onSuccess: (n) => {
|
|
454
454
|
t.invalidateQueries({
|
|
455
|
-
queryKey: ["inputTableRows",
|
|
455
|
+
queryKey: ["inputTableRows", variables.tableId]
|
|
456
456
|
}), e.onSuccess?.(n);
|
|
457
457
|
},
|
|
458
|
-
onError: (n
|
|
458
|
+
onError: (n) => {
|
|
459
459
|
e.onError?.(n);
|
|
460
460
|
},
|
|
461
461
|
...e
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
function
|
|
465
|
-
const t =
|
|
466
|
-
return
|
|
464
|
+
function Se(e = {}) {
|
|
465
|
+
const t = f();
|
|
466
|
+
return a({
|
|
467
467
|
mutationFn: async (n) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
|
|
468
468
|
n.tableId,
|
|
469
469
|
n.rowId,
|
|
470
470
|
n.idField
|
|
471
471
|
)),
|
|
472
|
-
onSuccess: (n
|
|
472
|
+
onSuccess: (n) => {
|
|
473
473
|
t.invalidateQueries({
|
|
474
|
-
queryKey: ["inputTableRows",
|
|
474
|
+
queryKey: ["inputTableRows", variables.tableId]
|
|
475
475
|
}), e.onSuccess?.(n);
|
|
476
476
|
},
|
|
477
|
-
onError: (n
|
|
477
|
+
onError: (n) => {
|
|
478
478
|
e.onError?.(n);
|
|
479
479
|
},
|
|
480
480
|
...e
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
483
|
+
function ke(e = {}) {
|
|
484
|
+
return a({
|
|
485
485
|
mutationFn: async (t) => (console.log("Running definition..."), await r.definition.runDefinition(t)),
|
|
486
486
|
...e
|
|
487
487
|
});
|
|
488
488
|
}
|
|
489
|
-
function
|
|
490
|
-
return
|
|
489
|
+
function Ce(e = {}) {
|
|
490
|
+
return a({
|
|
491
491
|
mutationFn: async (t) => await r.definition.runPublishedDefinition(t),
|
|
492
492
|
...e
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
495
|
+
function Ke(e = {}) {
|
|
496
|
+
return a({
|
|
497
497
|
mutationFn: async (t) => await r.definition.runSampleDefinition(t),
|
|
498
498
|
...e
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
return
|
|
501
|
+
function Ve(e = {}) {
|
|
502
|
+
return a({
|
|
503
503
|
mutationFn: async (t) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(t)),
|
|
504
504
|
...e
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
function
|
|
508
|
-
return
|
|
507
|
+
function Pe(e = {}) {
|
|
508
|
+
return a({
|
|
509
509
|
mutationFn: async (t) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(t)),
|
|
510
510
|
...e
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
const t = e.enabled !== !1, n = c(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())),
|
|
513
|
+
function P(e = {}) {
|
|
514
|
+
const t = e.enabled !== !1, n = c(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), u = l({
|
|
515
515
|
queryKey: ["user"],
|
|
516
516
|
queryFn: n,
|
|
517
517
|
enabled: t,
|
|
518
518
|
options: e
|
|
519
519
|
});
|
|
520
|
-
return
|
|
520
|
+
return o(u);
|
|
521
521
|
}
|
|
522
|
-
const
|
|
523
|
-
function
|
|
524
|
-
const
|
|
522
|
+
const Ee = P, E = ["Owner", "Editor", "Viewer", "ReadOnly"], T = r.permissions?.getPermissions;
|
|
523
|
+
function Be(e, t, n = {}) {
|
|
524
|
+
const u = n.enabled !== !1 && !!e?.trim(), s = c(
|
|
525
525
|
async () => {
|
|
526
526
|
if (!e?.trim())
|
|
527
527
|
return {};
|
|
@@ -529,7 +529,7 @@ function Ge(e, t, n = {}) {
|
|
|
529
529
|
throw new Error(
|
|
530
530
|
"@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
|
|
531
531
|
);
|
|
532
|
-
const y =
|
|
532
|
+
const y = D();
|
|
533
533
|
if (!y.userId)
|
|
534
534
|
throw new Error(
|
|
535
535
|
"@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
|
|
@@ -539,21 +539,21 @@ function Ge(e, t, n = {}) {
|
|
|
539
539
|
objectType: t,
|
|
540
540
|
user: y.userId,
|
|
541
541
|
userType: "User",
|
|
542
|
-
relations: n.relations ??
|
|
542
|
+
relations: n.relations ?? E
|
|
543
543
|
});
|
|
544
544
|
},
|
|
545
545
|
void 0,
|
|
546
546
|
0
|
|
547
547
|
), i = l({
|
|
548
548
|
queryKey: ["documentPermissions", e ?? "", t, n.relations ?? []],
|
|
549
|
-
queryFn:
|
|
550
|
-
enabled:
|
|
549
|
+
queryFn: s,
|
|
550
|
+
enabled: u,
|
|
551
551
|
options: n
|
|
552
552
|
});
|
|
553
|
-
return
|
|
553
|
+
return o(i);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return
|
|
555
|
+
function Ge(e = {}) {
|
|
556
|
+
return a({
|
|
557
557
|
mutationFn: async (t) => (console.log("Uploading file..."), await r.files.fileUpload(t)),
|
|
558
558
|
...e
|
|
559
559
|
});
|
|
@@ -562,93 +562,93 @@ function Ae({
|
|
|
562
562
|
fileId: e,
|
|
563
563
|
contentType: t = "application/json",
|
|
564
564
|
method: n = "GET"
|
|
565
|
-
},
|
|
566
|
-
const
|
|
565
|
+
}, u = {}) {
|
|
566
|
+
const s = !!e, i = c(async () => {
|
|
567
567
|
if (!e)
|
|
568
568
|
throw new Error("File ID is required");
|
|
569
569
|
return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: t, method: n });
|
|
570
570
|
}), y = l({
|
|
571
571
|
queryKey: ["file", "fileDownload", e],
|
|
572
572
|
queryFn: i,
|
|
573
|
-
enabled:
|
|
574
|
-
options:
|
|
573
|
+
enabled: s,
|
|
574
|
+
options: u
|
|
575
575
|
});
|
|
576
|
-
return
|
|
576
|
+
return o(y);
|
|
577
577
|
}
|
|
578
578
|
function Oe(e, t = {}) {
|
|
579
|
-
const n = !!e,
|
|
579
|
+
const n = !!e, u = c(async () => {
|
|
580
580
|
if (!e)
|
|
581
581
|
throw new Error("Task ID is required");
|
|
582
582
|
return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
|
|
583
|
-
}),
|
|
583
|
+
}), s = l({
|
|
584
584
|
queryKey: ["task", "getTaskDetails", e],
|
|
585
|
-
queryFn:
|
|
585
|
+
queryFn: u,
|
|
586
586
|
enabled: n,
|
|
587
587
|
options: t
|
|
588
588
|
});
|
|
589
|
-
return s
|
|
589
|
+
return o(s);
|
|
590
590
|
}
|
|
591
591
|
function Ue(e, t = {}) {
|
|
592
|
-
const n = !!e,
|
|
592
|
+
const n = !!e, u = c(async () => {
|
|
593
593
|
if (!e)
|
|
594
594
|
throw new Error("Workbook ID is required");
|
|
595
595
|
return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
|
|
596
|
-
}),
|
|
596
|
+
}), s = l({
|
|
597
597
|
queryKey: ["workbook", "getWorkbookDetails", e],
|
|
598
|
-
queryFn:
|
|
598
|
+
queryFn: u,
|
|
599
599
|
enabled: n,
|
|
600
600
|
options: t
|
|
601
601
|
});
|
|
602
|
-
return s
|
|
602
|
+
return o(s);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
604
|
+
function Me(e = {}) {
|
|
605
|
+
return a({
|
|
606
606
|
mutationFn: async (t) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(t)),
|
|
607
607
|
...e
|
|
608
608
|
});
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
610
|
+
function ve(e = {}) {
|
|
611
|
+
return a({
|
|
612
612
|
mutationFn: async (t) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(t)),
|
|
613
613
|
...e
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
function Qe(e = {}) {
|
|
617
|
-
return
|
|
617
|
+
return a({
|
|
618
618
|
mutationFn: async (t) => (console.log("Running recon workflow..."), await r.recon.runRecon(t)),
|
|
619
619
|
...e
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
622
|
function We(e, t, n = {}) {
|
|
623
|
-
const
|
|
623
|
+
const u = !!e && !!t, s = c(async () => {
|
|
624
624
|
if (!e || !t)
|
|
625
625
|
throw new Error("Form instance ID and revision are required");
|
|
626
626
|
return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: t });
|
|
627
627
|
});
|
|
628
|
-
return
|
|
628
|
+
return o(
|
|
629
629
|
l({
|
|
630
630
|
queryKey: ["form", "getFormSchema", e, t],
|
|
631
|
-
queryFn:
|
|
632
|
-
enabled:
|
|
631
|
+
queryFn: s,
|
|
632
|
+
enabled: u,
|
|
633
633
|
options: n
|
|
634
634
|
})
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
const n = !!e,
|
|
637
|
+
function Le(e, t = {}) {
|
|
638
|
+
const n = !!e, u = c(async () => {
|
|
639
639
|
if (!e)
|
|
640
640
|
throw new Error("Form ID is required");
|
|
641
641
|
return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
|
|
642
|
-
}),
|
|
642
|
+
}), s = l({
|
|
643
643
|
queryKey: ["form", "getFormData", e],
|
|
644
|
-
queryFn:
|
|
644
|
+
queryFn: u,
|
|
645
645
|
enabled: n,
|
|
646
646
|
options: t
|
|
647
647
|
});
|
|
648
|
-
return s
|
|
648
|
+
return o(s);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
650
|
+
function _e(e, t = {}) {
|
|
651
|
+
return o({
|
|
652
652
|
queryKey: ["form", e],
|
|
653
653
|
queryFn: async () => {
|
|
654
654
|
if (!e)
|
|
@@ -660,63 +660,63 @@ function Le(e, t = {}) {
|
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
662
|
function ze(e = {}) {
|
|
663
|
-
return
|
|
663
|
+
return a({
|
|
664
664
|
mutationFn: async (t) => await r.form.createOrUpdateForm(t),
|
|
665
665
|
...e
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
668
|
function He(e = {}) {
|
|
669
|
-
return
|
|
669
|
+
return a({
|
|
670
670
|
mutationFn: async (t) => await r.audit.getAuditLogs(t),
|
|
671
671
|
...e
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
674
|
function Ne(e = {}) {
|
|
675
|
-
return
|
|
675
|
+
return a({
|
|
676
676
|
mutationFn: async (t) => await r.audit.createAuditLog(t),
|
|
677
677
|
...e
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
680
|
function je(e = {}) {
|
|
681
|
-
return
|
|
681
|
+
return o({
|
|
682
682
|
queryKey: ["templatedPipelines"],
|
|
683
683
|
queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
|
|
684
684
|
...e
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
function Je(e = {}) {
|
|
688
|
-
return
|
|
688
|
+
return o({
|
|
689
689
|
queryKey: ["reconWorkflows"],
|
|
690
690
|
queryFn: async () => await r.recon.getAllReconWorkflows(),
|
|
691
691
|
...e
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
694
|
+
function B(e = {}) {
|
|
695
|
+
return a({
|
|
696
696
|
mutationFn: async (t) => await r.reconV2.createReconV2(t),
|
|
697
697
|
...e
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
700
|
+
function G(e = {}) {
|
|
701
|
+
return a({
|
|
702
702
|
mutationFn: async (t) => await r.reconV2.updateReconV2(t),
|
|
703
703
|
...e
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
706
|
function Ye(e = {}) {
|
|
707
|
-
return
|
|
707
|
+
return a({
|
|
708
708
|
mutationFn: async (t) => await r.reconV2.deleteReconV2(t),
|
|
709
709
|
...e
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
function A(e = {}) {
|
|
713
|
-
return
|
|
713
|
+
return a({
|
|
714
714
|
mutationFn: async (t) => await r.reconV2.runReconV2(t),
|
|
715
715
|
...e
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
718
|
function O(e = {}) {
|
|
719
|
-
return
|
|
719
|
+
return o({
|
|
720
720
|
queryKey: ["reconV2Workflows"],
|
|
721
721
|
queryFn: async () => await r.reconV2.getAllReconV2Workflows(),
|
|
722
722
|
...e
|
|
@@ -724,7 +724,7 @@ function O(e = {}) {
|
|
|
724
724
|
}
|
|
725
725
|
function U(e, t = {}) {
|
|
726
726
|
const n = e?.trim();
|
|
727
|
-
return
|
|
727
|
+
return o({
|
|
728
728
|
queryKey: ["reconV2", "runs", n],
|
|
729
729
|
queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId: n }),
|
|
730
730
|
enabled: !!n,
|
|
@@ -732,22 +732,22 @@ function U(e, t = {}) {
|
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
function $e(e = {}) {
|
|
735
|
-
return
|
|
735
|
+
return o({
|
|
736
736
|
queryKey: ["reconV2", "templates"],
|
|
737
737
|
queryFn: async () => await r.reconV2.getReconV2Templates(),
|
|
738
738
|
...e
|
|
739
739
|
});
|
|
740
740
|
}
|
|
741
|
-
function
|
|
742
|
-
return
|
|
741
|
+
function M(e, t = {}) {
|
|
742
|
+
return o({
|
|
743
743
|
queryKey: ["reconV2", "runResult", e],
|
|
744
744
|
queryFn: async () => await r.reconV2.getReconV2RunResult({ runId: e }),
|
|
745
745
|
enabled: !!e,
|
|
746
746
|
...t
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
749
|
+
function v(e, t = {}) {
|
|
750
|
+
return o({
|
|
751
751
|
queryKey: [
|
|
752
752
|
"reconV2",
|
|
753
753
|
"smartResult",
|
|
@@ -765,13 +765,13 @@ function M(e, t = {}) {
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
function Xe(e = {}) {
|
|
768
|
-
return
|
|
768
|
+
return a({
|
|
769
769
|
mutationFn: async (t) => await r.reconV2.startReconV2Profile(t),
|
|
770
770
|
...e
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
773
|
function Ze(e, t = "left", n = {}) {
|
|
774
|
-
return
|
|
774
|
+
return o({
|
|
775
775
|
queryKey: ["reconV2", "profile", e, t],
|
|
776
776
|
queryFn: async () => await r.reconV2.getReconV2ProfileResult({
|
|
777
777
|
workflowId: e,
|
|
@@ -782,13 +782,13 @@ function Ze(e, t = "left", n = {}) {
|
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
784
|
function et(e = {}) {
|
|
785
|
-
return
|
|
785
|
+
return a({
|
|
786
786
|
mutationFn: async (t) => await r.reconV2.startReconV2Clean(t),
|
|
787
787
|
...e
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
function tt(e, t = "left", n = {}) {
|
|
791
|
-
return
|
|
791
|
+
return o({
|
|
792
792
|
queryKey: ["reconV2", "clean", e, t],
|
|
793
793
|
queryFn: async () => await r.reconV2.getReconV2CleanResult({
|
|
794
794
|
workflowId: e,
|
|
@@ -798,8 +798,8 @@ function tt(e, t = "left", n = {}) {
|
|
|
798
798
|
...n
|
|
799
799
|
});
|
|
800
800
|
}
|
|
801
|
-
function nt(e, t, n,
|
|
802
|
-
return
|
|
801
|
+
function nt(e, t, n, u = {}) {
|
|
802
|
+
return o({
|
|
803
803
|
queryKey: ["reconV2", "diff", e, n],
|
|
804
804
|
queryFn: async () => await r.reconV2.getReconV2Diff({
|
|
805
805
|
runId: e,
|
|
@@ -807,11 +807,11 @@ function nt(e, t, n, a = {}) {
|
|
|
807
807
|
prevRunId: n
|
|
808
808
|
}),
|
|
809
809
|
enabled: !!e && !!t && !!n,
|
|
810
|
-
...
|
|
810
|
+
...u
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
813
|
function rt(e, t, n = {}) {
|
|
814
|
-
return
|
|
814
|
+
return o({
|
|
815
815
|
queryKey: ["reconV2", "explanation", e],
|
|
816
816
|
queryFn: async () => await r.reconV2.getReconV2Explanation({
|
|
817
817
|
runId: e,
|
|
@@ -823,63 +823,63 @@ function rt(e, t, n = {}) {
|
|
|
823
823
|
}
|
|
824
824
|
const Q = ["SUCCEEDED", "FAILED"];
|
|
825
825
|
function W(e, t = {}) {
|
|
826
|
-
const [n,
|
|
826
|
+
const [n, u] = p(
|
|
827
827
|
void 0
|
|
828
|
-
), [
|
|
829
|
-
return y.current = t.onComplete,
|
|
828
|
+
), [s, i] = p(!1), y = x(t.onComplete);
|
|
829
|
+
return y.current = t.onComplete, I(() => {
|
|
830
830
|
if (!e)
|
|
831
831
|
return;
|
|
832
|
-
const d =
|
|
832
|
+
const d = D().websocketProvider;
|
|
833
833
|
if (!d)
|
|
834
834
|
return;
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
let
|
|
838
|
-
const
|
|
839
|
-
|
|
835
|
+
u(void 0), i(!1);
|
|
836
|
+
const m = R.websocketUtils.ReconResultChannel;
|
|
837
|
+
let g = !1;
|
|
838
|
+
const w = () => {
|
|
839
|
+
g || (g = !0, d.unbind(m, e));
|
|
840
840
|
};
|
|
841
|
-
return d.bind(
|
|
842
|
-
let
|
|
841
|
+
return d.bind(m, e, (q) => {
|
|
842
|
+
let b;
|
|
843
843
|
try {
|
|
844
|
-
|
|
844
|
+
b = typeof q == "string" ? JSON.parse(q) : q;
|
|
845
845
|
} catch {
|
|
846
|
-
|
|
846
|
+
b = { status: void 0 };
|
|
847
847
|
}
|
|
848
|
-
|
|
849
|
-
const F =
|
|
850
|
-
F && Q.includes(F) && (i(!0), y.current?.(
|
|
851
|
-
}),
|
|
852
|
-
}, [e]), { data: n, isTerminal:
|
|
848
|
+
u(b);
|
|
849
|
+
const F = b?.status?.toUpperCase();
|
|
850
|
+
F && Q.includes(F) && (i(!0), y.current?.(b), w());
|
|
851
|
+
}), w;
|
|
852
|
+
}, [e]), { data: n, isTerminal: s };
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function L(e, t = {}) {
|
|
855
855
|
const n = e?.trim();
|
|
856
|
-
return
|
|
856
|
+
return o({
|
|
857
857
|
queryKey: ["reconV2", "workflow", n],
|
|
858
858
|
queryFn: async () => await r.reconV2.getReconV2Workflow({ id: n }),
|
|
859
859
|
enabled: !!n,
|
|
860
860
|
...t
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function _(e, t) {
|
|
864
864
|
return t.split(".").reduce(
|
|
865
|
-
(n,
|
|
865
|
+
(n, u) => n && typeof n == "object" ? n[u] : void 0,
|
|
866
866
|
e
|
|
867
867
|
);
|
|
868
868
|
}
|
|
869
|
-
function
|
|
869
|
+
function ut(e, t = {}) {
|
|
870
870
|
const n = O(t);
|
|
871
871
|
return {
|
|
872
|
-
workflows:
|
|
873
|
-
const
|
|
874
|
-
return e?.key ?
|
|
872
|
+
workflows: S(() => {
|
|
873
|
+
const s = n.data ?? [];
|
|
874
|
+
return e?.key ? s.filter((i) => _(i, e.key) === e.value) : s;
|
|
875
875
|
}, [n.data, e?.key, e?.value]),
|
|
876
876
|
isLoading: n.isLoading,
|
|
877
877
|
error: n.error,
|
|
878
878
|
refetch: n.refetch
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
function
|
|
882
|
-
const n =
|
|
881
|
+
function at(e, t = {}) {
|
|
882
|
+
const n = L(e, t);
|
|
883
883
|
return {
|
|
884
884
|
workflow: n.data,
|
|
885
885
|
isLoading: n.isLoading,
|
|
@@ -888,7 +888,7 @@ function ut(e, t = {}) {
|
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
890
|
function ot() {
|
|
891
|
-
const e =
|
|
891
|
+
const e = B(), t = G();
|
|
892
892
|
return {
|
|
893
893
|
create: e.mutateAsync,
|
|
894
894
|
update: t.mutateAsync,
|
|
@@ -898,17 +898,17 @@ function ot() {
|
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
900
|
function st(e, t = {}) {
|
|
901
|
-
const n = e?.trim(), [
|
|
901
|
+
const n = e?.trim(), [u, s] = p(void 0), i = A(), y = W(u, { onComplete: t.onComplete }), d = U(n);
|
|
902
902
|
return {
|
|
903
|
-
startRun: async (
|
|
903
|
+
startRun: async (g = {}) => {
|
|
904
904
|
if (!n)
|
|
905
905
|
throw new Error("workflowId is required to start a run");
|
|
906
|
-
const
|
|
907
|
-
return
|
|
906
|
+
const w = await i.mutateAsync({ workflowId: n, ...g });
|
|
907
|
+
return s(w?.runId), w?.runId;
|
|
908
908
|
},
|
|
909
|
-
runId:
|
|
909
|
+
runId: u,
|
|
910
910
|
status: y.data,
|
|
911
|
-
isRunning: i.isPending || !!
|
|
911
|
+
isRunning: i.isPending || !!u && !y.isTerminal,
|
|
912
912
|
isTerminal: y.isTerminal,
|
|
913
913
|
runs: d.data,
|
|
914
914
|
refetchRuns: d.refetch
|
|
@@ -918,15 +918,15 @@ function it({
|
|
|
918
918
|
runId: e,
|
|
919
919
|
workflowId: t,
|
|
920
920
|
exceptionType: n,
|
|
921
|
-
ruleFilter:
|
|
922
|
-
orderBy:
|
|
921
|
+
ruleFilter: u,
|
|
922
|
+
orderBy: s
|
|
923
923
|
}) {
|
|
924
|
-
const i =
|
|
924
|
+
const i = M(e), y = v({
|
|
925
925
|
runId: e ?? void 0,
|
|
926
926
|
workflowId: t ?? void 0,
|
|
927
927
|
exceptionType: n,
|
|
928
|
-
ruleFilter:
|
|
929
|
-
orderBy:
|
|
928
|
+
ruleFilter: u,
|
|
929
|
+
orderBy: s
|
|
930
930
|
}), d = y.data?.result;
|
|
931
931
|
return {
|
|
932
932
|
runResult: i.data,
|
|
@@ -938,93 +938,93 @@ function it({
|
|
|
938
938
|
};
|
|
939
939
|
}
|
|
940
940
|
function ct(e = {}) {
|
|
941
|
-
return
|
|
941
|
+
return o({
|
|
942
942
|
queryKey: ["users"],
|
|
943
943
|
queryFn: async () => await r.user.getAllUsers(),
|
|
944
944
|
...e
|
|
945
945
|
});
|
|
946
946
|
}
|
|
947
947
|
function lt(e = {}) {
|
|
948
|
-
return
|
|
948
|
+
return o({
|
|
949
949
|
queryKey: ["httpTriggers"],
|
|
950
950
|
queryFn: async () => await r.workflow.getAllHttpTriggers(),
|
|
951
951
|
...e
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
954
|
function yt(e = {}) {
|
|
955
|
-
return
|
|
955
|
+
return a({
|
|
956
956
|
mutationFn: async (t) => await r.process.markTaskDone(t),
|
|
957
957
|
...e
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
function dt(e = {}) {
|
|
961
|
-
return
|
|
961
|
+
return a({
|
|
962
962
|
mutationFn: async (t) => await r.process.reassignTask(t),
|
|
963
963
|
...e
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
return
|
|
966
|
+
function ft(e, t = {}) {
|
|
967
|
+
return o({
|
|
968
968
|
queryKey: ["processTriggers", e],
|
|
969
969
|
queryFn: async () => await r.process.getTriggersBySheet(e),
|
|
970
970
|
enabled: !!e,
|
|
971
971
|
...t
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
const t =
|
|
976
|
-
return
|
|
974
|
+
function mt(e = {}) {
|
|
975
|
+
const t = f();
|
|
976
|
+
return a({
|
|
977
977
|
mutationFn: async (n) => await r.process.registerProcessTrigger(n),
|
|
978
|
-
onSuccess: (n,
|
|
978
|
+
onSuccess: (n, u) => {
|
|
979
979
|
t.invalidateQueries({
|
|
980
|
-
queryKey: ["processTriggers",
|
|
980
|
+
queryKey: ["processTriggers", u.process_sheet_id]
|
|
981
981
|
});
|
|
982
982
|
},
|
|
983
983
|
...e
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
|
-
function
|
|
987
|
-
const t =
|
|
988
|
-
return
|
|
986
|
+
function gt(e = {}) {
|
|
987
|
+
const t = f();
|
|
988
|
+
return a({
|
|
989
989
|
mutationFn: async ({ id: n }) => await r.process.deleteProcessTrigger(n),
|
|
990
|
-
onSuccess: (n,
|
|
990
|
+
onSuccess: (n, u) => {
|
|
991
991
|
t.invalidateQueries({
|
|
992
|
-
queryKey:
|
|
992
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
993
993
|
});
|
|
994
994
|
},
|
|
995
995
|
...e
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
|
-
function
|
|
999
|
-
const t =
|
|
1000
|
-
return
|
|
1001
|
-
mutationFn: async ({ triggerId: n, scheduleName:
|
|
1002
|
-
onSuccess: (n,
|
|
998
|
+
function wt(e = {}) {
|
|
999
|
+
const t = f();
|
|
1000
|
+
return a({
|
|
1001
|
+
mutationFn: async ({ triggerId: n, scheduleName: u }) => await r.process.pauseSchedule(n, u),
|
|
1002
|
+
onSuccess: (n, u) => {
|
|
1003
1003
|
t.invalidateQueries({
|
|
1004
|
-
queryKey:
|
|
1004
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
1005
1005
|
}), t.invalidateQueries({
|
|
1006
|
-
queryKey: ["scheduleStatus",
|
|
1006
|
+
queryKey: ["scheduleStatus", u.triggerId, u.scheduleName]
|
|
1007
1007
|
});
|
|
1008
1008
|
},
|
|
1009
1009
|
...e
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
function Ft(e = {}) {
|
|
1013
|
-
const t =
|
|
1014
|
-
return
|
|
1015
|
-
mutationFn: async ({ triggerId: n, scheduleName:
|
|
1016
|
-
onSuccess: (n,
|
|
1013
|
+
const t = f();
|
|
1014
|
+
return a({
|
|
1015
|
+
mutationFn: async ({ triggerId: n, scheduleName: u }) => await r.process.resumeSchedule(n, u),
|
|
1016
|
+
onSuccess: (n, u) => {
|
|
1017
1017
|
t.invalidateQueries({
|
|
1018
|
-
queryKey:
|
|
1018
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
1019
1019
|
}), t.invalidateQueries({
|
|
1020
|
-
queryKey: ["scheduleStatus",
|
|
1020
|
+
queryKey: ["scheduleStatus", u.triggerId, u.scheduleName]
|
|
1021
1021
|
});
|
|
1022
1022
|
},
|
|
1023
1023
|
...e
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return
|
|
1026
|
+
function bt(e, t, n = {}) {
|
|
1027
|
+
return o({
|
|
1028
1028
|
queryKey: ["scheduleStatus", e, t],
|
|
1029
1029
|
queryFn: async () => await r.process.getScheduleStatus(
|
|
1030
1030
|
e,
|
|
@@ -1034,128 +1034,128 @@ function qt(e, t, n = {}) {
|
|
|
1034
1034
|
...n
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1038
|
-
const t =
|
|
1039
|
-
return
|
|
1040
|
-
mutationFn: async ({ triggerId: n, scheduleName:
|
|
1041
|
-
onSuccess: (n,
|
|
1037
|
+
function qt(e = {}) {
|
|
1038
|
+
const t = f();
|
|
1039
|
+
return a({
|
|
1040
|
+
mutationFn: async ({ triggerId: n, scheduleName: u }) => await r.process.executeNow(n, u),
|
|
1041
|
+
onSuccess: (n, u) => {
|
|
1042
1042
|
t.invalidateQueries({
|
|
1043
|
-
queryKey:
|
|
1043
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
1044
1044
|
});
|
|
1045
1045
|
},
|
|
1046
1046
|
...e
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
const t =
|
|
1051
|
-
return
|
|
1049
|
+
function pt(e = {}) {
|
|
1050
|
+
const t = f();
|
|
1051
|
+
return a({
|
|
1052
1052
|
mutationFn: async (n) => await r.processTree.createOrUpdateProcessTreeTrigger(
|
|
1053
1053
|
n
|
|
1054
1054
|
),
|
|
1055
|
-
onSuccess: (n,
|
|
1055
|
+
onSuccess: (n, u) => {
|
|
1056
1056
|
t.invalidateQueries({
|
|
1057
|
-
queryKey: ["processTreeTriggers",
|
|
1057
|
+
queryKey: ["processTreeTriggers", u.sheetId]
|
|
1058
1058
|
});
|
|
1059
1059
|
},
|
|
1060
1060
|
...e
|
|
1061
1061
|
});
|
|
1062
1062
|
}
|
|
1063
1063
|
function Tt(e = {}) {
|
|
1064
|
-
const t =
|
|
1065
|
-
return
|
|
1064
|
+
const t = f();
|
|
1065
|
+
return a({
|
|
1066
1066
|
mutationFn: async (n) => await r.processTree.executeProcessTreeTrigger(n),
|
|
1067
|
-
onSuccess: (n,
|
|
1067
|
+
onSuccess: (n, u) => {
|
|
1068
1068
|
t.invalidateQueries({
|
|
1069
|
-
queryKey: ["processTreeRuns",
|
|
1069
|
+
queryKey: ["processTreeRuns", u.sheetId]
|
|
1070
1070
|
});
|
|
1071
1071
|
},
|
|
1072
1072
|
...e
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
|
-
function
|
|
1076
|
-
const t =
|
|
1077
|
-
return
|
|
1075
|
+
function Dt(e = {}) {
|
|
1076
|
+
const t = f();
|
|
1077
|
+
return a({
|
|
1078
1078
|
mutationFn: async ({ payload: n }) => await r.processTree.terminatePipelines(n),
|
|
1079
|
-
onSuccess: (n,
|
|
1080
|
-
|
|
1081
|
-
queryKey: ["processTreeRuns",
|
|
1082
|
-
}),
|
|
1083
|
-
queryKey: ["processTreeRun",
|
|
1079
|
+
onSuccess: (n, u) => {
|
|
1080
|
+
u.sheetId && t.invalidateQueries({
|
|
1081
|
+
queryKey: ["processTreeRuns", u.sheetId]
|
|
1082
|
+
}), u.instanceId && t.invalidateQueries({
|
|
1083
|
+
queryKey: ["processTreeRun", u.instanceId]
|
|
1084
1084
|
});
|
|
1085
1085
|
},
|
|
1086
1086
|
...e
|
|
1087
1087
|
});
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const t =
|
|
1091
|
-
return
|
|
1089
|
+
function ht(e = {}) {
|
|
1090
|
+
const t = f();
|
|
1091
|
+
return a({
|
|
1092
1092
|
mutationFn: async (n) => await r.processTree.logProcessTreeRun(n),
|
|
1093
|
-
onSuccess: (n,
|
|
1093
|
+
onSuccess: (n, u) => {
|
|
1094
1094
|
t.invalidateQueries({
|
|
1095
|
-
queryKey: ["processTreeRuns",
|
|
1095
|
+
queryKey: ["processTreeRuns", u.sheetId]
|
|
1096
1096
|
}), t.invalidateQueries({
|
|
1097
|
-
queryKey: ["processTreeRun",
|
|
1097
|
+
queryKey: ["processTreeRun", u.instanceId]
|
|
1098
1098
|
});
|
|
1099
1099
|
},
|
|
1100
1100
|
...e
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
1103
|
function Rt(e = {}) {
|
|
1104
|
-
const t =
|
|
1105
|
-
return
|
|
1104
|
+
const t = f();
|
|
1105
|
+
return a({
|
|
1106
1106
|
mutationFn: async ({
|
|
1107
1107
|
instanceId: n,
|
|
1108
|
-
context:
|
|
1108
|
+
context: u
|
|
1109
1109
|
}) => await r.processTree.updateProcessTreeRunContext(
|
|
1110
1110
|
n,
|
|
1111
|
-
|
|
1111
|
+
u
|
|
1112
1112
|
),
|
|
1113
|
-
onSuccess: (n,
|
|
1113
|
+
onSuccess: (n, u) => {
|
|
1114
1114
|
t.invalidateQueries({
|
|
1115
|
-
queryKey: ["processTreeRun",
|
|
1115
|
+
queryKey: ["processTreeRun", u.instanceId]
|
|
1116
1116
|
});
|
|
1117
1117
|
},
|
|
1118
1118
|
...e
|
|
1119
1119
|
});
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const t =
|
|
1123
|
-
return
|
|
1121
|
+
function xt(e = {}) {
|
|
1122
|
+
const t = f();
|
|
1123
|
+
return a({
|
|
1124
1124
|
mutationFn: async ({ id: n }) => await r.processTree.deleteProcessTreeTrigger(n),
|
|
1125
|
-
onSuccess: (n,
|
|
1125
|
+
onSuccess: (n, u) => {
|
|
1126
1126
|
t.invalidateQueries({
|
|
1127
|
-
queryKey:
|
|
1127
|
+
queryKey: u.sheetId ? ["processTreeTriggers", u.sheetId] : ["processTreeTriggers"]
|
|
1128
1128
|
});
|
|
1129
1129
|
},
|
|
1130
1130
|
...e
|
|
1131
1131
|
});
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1133
|
+
function It(e, t = {}) {
|
|
1134
|
+
return o({
|
|
1135
1135
|
queryKey: ["processTreeTrigger", e],
|
|
1136
1136
|
queryFn: async () => await r.processTree.getProcessTreeTrigger(e),
|
|
1137
1137
|
enabled: !!e,
|
|
1138
1138
|
...t
|
|
1139
1139
|
});
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return
|
|
1141
|
+
function St(e, t = {}) {
|
|
1142
|
+
return o({
|
|
1143
1143
|
queryKey: ["processTreeTriggers", e],
|
|
1144
1144
|
queryFn: async () => await r.processTree.getProcessTreeTriggersBySheetId(e),
|
|
1145
1145
|
enabled: !!e,
|
|
1146
1146
|
...t
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1149
|
+
function kt(e, t = {}) {
|
|
1150
|
+
return o({
|
|
1151
1151
|
queryKey: ["processTreeRuns", e],
|
|
1152
1152
|
queryFn: async () => await r.processTree.getProcessTreeRunsBySheetId(e),
|
|
1153
1153
|
enabled: !!e,
|
|
1154
1154
|
...t
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return
|
|
1157
|
+
function Ct(e, t, n = {}) {
|
|
1158
|
+
return o({
|
|
1159
1159
|
queryKey: [
|
|
1160
1160
|
"processTreeRuns",
|
|
1161
1161
|
e,
|
|
@@ -1172,8 +1172,8 @@ function Kt(e, t, n = {}) {
|
|
|
1172
1172
|
...n
|
|
1173
1173
|
});
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1175
|
+
function Kt(e, t = {}) {
|
|
1176
|
+
return o({
|
|
1177
1177
|
queryKey: ["processTreeRun", e],
|
|
1178
1178
|
queryFn: async () => await r.processTree.getProcessTreeRunByInstanceId(
|
|
1179
1179
|
e
|
|
@@ -1182,16 +1182,16 @@ function Et(e, t = {}) {
|
|
|
1182
1182
|
...t
|
|
1183
1183
|
});
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1185
|
+
function Vt(e = {}) {
|
|
1186
|
+
return o({
|
|
1187
1187
|
queryKey: ["customAuthzModel"],
|
|
1188
1188
|
queryFn: async () => await r.customAuthz.getCustomAuthzModel(),
|
|
1189
1189
|
...e
|
|
1190
1190
|
});
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1193
|
-
const t =
|
|
1194
|
-
return
|
|
1192
|
+
function Pt(e = {}) {
|
|
1193
|
+
const t = f();
|
|
1194
|
+
return a({
|
|
1195
1195
|
mutationFn: async (n) => await r.customAuthz.registerCustomAuthzModel(n),
|
|
1196
1196
|
onSuccess: () => {
|
|
1197
1197
|
t.invalidateQueries({ queryKey: ["customAuthzModel"] });
|
|
@@ -1199,66 +1199,200 @@ function Vt(e = {}) {
|
|
|
1199
1199
|
...e
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1202
|
+
function Et(e = {}) {
|
|
1203
|
+
return a({
|
|
1204
1204
|
mutationFn: async (t) => await r.customAuthz.updateCustomObjectPermissions(t),
|
|
1205
1205
|
...e
|
|
1206
1206
|
});
|
|
1207
1207
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return
|
|
1208
|
+
function Bt(e = {}) {
|
|
1209
|
+
return a({
|
|
1210
1210
|
mutationFn: async (t) => await r.customAuthz.bulkUpdateCustomObjectPermissions(
|
|
1211
1211
|
t
|
|
1212
1212
|
),
|
|
1213
1213
|
...e
|
|
1214
1214
|
});
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1216
|
+
function Gt(e = {}) {
|
|
1217
|
+
return a({
|
|
1218
1218
|
mutationFn: async (t) => await r.customAuthz.checkCustomPermissions(t),
|
|
1219
1219
|
...e
|
|
1220
1220
|
});
|
|
1221
1221
|
}
|
|
1222
1222
|
function At(e = {}) {
|
|
1223
|
-
return
|
|
1223
|
+
return a({
|
|
1224
1224
|
mutationFn: async (t) => await r.customAuthz.bulkCheckCustomPermissions(t),
|
|
1225
1225
|
...e
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
1228
1228
|
function Ot(e = {}, t = {}) {
|
|
1229
|
-
return
|
|
1229
|
+
return o({
|
|
1230
1230
|
queryKey: ["inboxItems", "all", e.page, e.perPage],
|
|
1231
1231
|
queryFn: async () => await r.inboxItems.getAllInboxItems(e),
|
|
1232
1232
|
...t
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
1235
|
function Ut(e = {}) {
|
|
1236
|
-
return
|
|
1236
|
+
return a({
|
|
1237
1237
|
mutationFn: async (t) => await r.inboxItems.markItemAsRead(t),
|
|
1238
1238
|
...e
|
|
1239
1239
|
});
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1241
|
+
function Mt(e = {}) {
|
|
1242
|
+
return a({
|
|
1243
1243
|
mutationFn: async (t) => await r.inboxItems.markItemAsUnread(t),
|
|
1244
1244
|
...e
|
|
1245
1245
|
});
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return
|
|
1247
|
+
function vt(e = {}) {
|
|
1248
|
+
return a({
|
|
1249
1249
|
mutationFn: async (t) => await r.inboxItems.createInboxItemPerUser(t),
|
|
1250
1250
|
...e
|
|
1251
1251
|
});
|
|
1252
1252
|
}
|
|
1253
|
-
function Qt(e
|
|
1254
|
-
return
|
|
1253
|
+
function Qt(e = {}) {
|
|
1254
|
+
return o({
|
|
1255
|
+
queryKey: ["inboxV2", "types"],
|
|
1256
|
+
queryFn: async () => await r.inboxV2.listTypes(),
|
|
1257
|
+
...e
|
|
1258
|
+
});
|
|
1259
|
+
}
|
|
1260
|
+
function Wt(e, t = {}) {
|
|
1261
|
+
return o({
|
|
1262
|
+
queryKey: ["inboxV2", "type", e],
|
|
1263
|
+
queryFn: async () => await r.inboxV2.getType(e),
|
|
1264
|
+
enabled: !!e,
|
|
1265
|
+
...t
|
|
1266
|
+
});
|
|
1267
|
+
}
|
|
1268
|
+
function Lt(e = {}) {
|
|
1269
|
+
return a({
|
|
1270
|
+
mutationFn: async (t) => await r.inboxV2.createType(t),
|
|
1271
|
+
...e
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
function _t(e = {}) {
|
|
1275
|
+
return a({
|
|
1276
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.updateType(t, n),
|
|
1277
|
+
...e
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
function zt(e = {}) {
|
|
1281
|
+
return a({
|
|
1282
|
+
mutationFn: async (t) => await r.inboxV2.deleteType(t),
|
|
1283
|
+
...e
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
function Ht(e = {}, t = {}) {
|
|
1287
|
+
return o({
|
|
1288
|
+
queryKey: [
|
|
1289
|
+
"inboxV2",
|
|
1290
|
+
"items",
|
|
1291
|
+
e.status,
|
|
1292
|
+
e.typeKey,
|
|
1293
|
+
e.dueBefore,
|
|
1294
|
+
e.page,
|
|
1295
|
+
e.perPage
|
|
1296
|
+
],
|
|
1297
|
+
queryFn: async () => await r.inboxV2.listMyItems(e),
|
|
1298
|
+
...t
|
|
1299
|
+
});
|
|
1300
|
+
}
|
|
1301
|
+
function Nt(e, t = {}) {
|
|
1302
|
+
return o({
|
|
1303
|
+
queryKey: ["inboxV2", "item", e],
|
|
1304
|
+
queryFn: async () => await r.inboxV2.getItem(e),
|
|
1305
|
+
enabled: !!e,
|
|
1306
|
+
...t
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
function jt(e = {}) {
|
|
1310
|
+
return a({
|
|
1311
|
+
mutationFn: async (t) => await r.inboxV2.createItem(t),
|
|
1312
|
+
...e
|
|
1313
|
+
});
|
|
1314
|
+
}
|
|
1315
|
+
function Jt(e = {}) {
|
|
1316
|
+
return a({
|
|
1317
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.updateItem(t, n),
|
|
1318
|
+
...e
|
|
1319
|
+
});
|
|
1320
|
+
}
|
|
1321
|
+
function Yt(e = {}) {
|
|
1322
|
+
return a({
|
|
1323
|
+
mutationFn: async (t) => await r.inboxV2.markRead(t),
|
|
1324
|
+
...e
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
function $t(e = {}) {
|
|
1328
|
+
return a({
|
|
1329
|
+
mutationFn: async (t) => await r.inboxV2.markUnread(t),
|
|
1330
|
+
...e
|
|
1331
|
+
});
|
|
1332
|
+
}
|
|
1333
|
+
function Xt(e = {}) {
|
|
1334
|
+
return a({
|
|
1335
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.snoozeItem(t, n),
|
|
1336
|
+
...e
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
function Zt(e = {}) {
|
|
1340
|
+
return a({
|
|
1341
|
+
mutationFn: async (t) => await r.inboxV2.dismissItem(t),
|
|
1342
|
+
...e
|
|
1343
|
+
});
|
|
1344
|
+
}
|
|
1345
|
+
function en(e = {}) {
|
|
1346
|
+
return a({
|
|
1347
|
+
mutationFn: async (t) => await r.inboxV2.claimItem(t),
|
|
1348
|
+
...e
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
function tn(e = {}) {
|
|
1352
|
+
return a({
|
|
1353
|
+
mutationFn: async (t) => await r.inboxV2.completeItem(t),
|
|
1354
|
+
...e
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
function nn(e = {}) {
|
|
1358
|
+
return a({
|
|
1359
|
+
mutationFn: async (t) => await r.inboxV2.releaseItem(t),
|
|
1360
|
+
...e
|
|
1361
|
+
});
|
|
1362
|
+
}
|
|
1363
|
+
function rn(e = {}) {
|
|
1364
|
+
return a({
|
|
1365
|
+
mutationFn: async (t) => await r.inboxV2.cancelItem(t),
|
|
1366
|
+
...e
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
function un(e = {}) {
|
|
1370
|
+
return a({
|
|
1371
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.reassignItem(t, n),
|
|
1372
|
+
...e
|
|
1373
|
+
});
|
|
1374
|
+
}
|
|
1375
|
+
function an(e = {}) {
|
|
1376
|
+
return a({
|
|
1377
|
+
mutationFn: async (t) => await r.inboxV2.completeByKey(t),
|
|
1378
|
+
...e
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
function on(e = {}) {
|
|
1382
|
+
return a({
|
|
1383
|
+
mutationFn: async (t) => await r.inboxV2.cancelByKey(t),
|
|
1384
|
+
...e
|
|
1385
|
+
});
|
|
1386
|
+
}
|
|
1387
|
+
function sn(e, t = {}) {
|
|
1388
|
+
return o({
|
|
1255
1389
|
queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
|
|
1256
1390
|
queryFn: async () => await r.emailEngine.getAllConversations(e),
|
|
1257
1391
|
...t
|
|
1258
1392
|
});
|
|
1259
1393
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return
|
|
1394
|
+
function cn(e, t = {}) {
|
|
1395
|
+
return o({
|
|
1262
1396
|
queryKey: ["emailConversation", e],
|
|
1263
1397
|
queryFn: async () => await r.emailEngine.getConversation({
|
|
1264
1398
|
conversationId: e
|
|
@@ -1267,9 +1401,9 @@ function Wt(e, t = {}) {
|
|
|
1267
1401
|
...t
|
|
1268
1402
|
});
|
|
1269
1403
|
}
|
|
1270
|
-
function
|
|
1271
|
-
const t =
|
|
1272
|
-
return
|
|
1404
|
+
function ln(e = {}) {
|
|
1405
|
+
const t = f();
|
|
1406
|
+
return a({
|
|
1273
1407
|
mutationFn: async (n) => await r.emailEngine.createConversation(n),
|
|
1274
1408
|
onSuccess: () => {
|
|
1275
1409
|
t.invalidateQueries({ queryKey: ["emailConversations"] });
|
|
@@ -1277,20 +1411,20 @@ function _t(e = {}) {
|
|
|
1277
1411
|
...e
|
|
1278
1412
|
});
|
|
1279
1413
|
}
|
|
1280
|
-
function
|
|
1281
|
-
const t =
|
|
1282
|
-
return
|
|
1414
|
+
function yn(e = {}) {
|
|
1415
|
+
const t = f();
|
|
1416
|
+
return a({
|
|
1283
1417
|
mutationFn: async (n) => await r.emailEngine.replyToConversation(n),
|
|
1284
|
-
onSuccess: (n,
|
|
1418
|
+
onSuccess: (n, u) => {
|
|
1285
1419
|
t.invalidateQueries({
|
|
1286
|
-
queryKey: ["emailConversation",
|
|
1420
|
+
queryKey: ["emailConversation", u.conversationId]
|
|
1287
1421
|
});
|
|
1288
1422
|
},
|
|
1289
1423
|
...e
|
|
1290
1424
|
});
|
|
1291
1425
|
}
|
|
1292
|
-
function
|
|
1293
|
-
return
|
|
1426
|
+
function dn(e, t = {}) {
|
|
1427
|
+
return o({
|
|
1294
1428
|
queryKey: [
|
|
1295
1429
|
"emailMessagesBySender",
|
|
1296
1430
|
e.senderId,
|
|
@@ -1304,149 +1438,149 @@ function zt(e, t = {}) {
|
|
|
1304
1438
|
...t
|
|
1305
1439
|
});
|
|
1306
1440
|
}
|
|
1307
|
-
function
|
|
1308
|
-
return
|
|
1441
|
+
function fn(e = {}) {
|
|
1442
|
+
return a({
|
|
1309
1443
|
mutationFn: async (t) => await r.emailEngine.searchMessages(t),
|
|
1310
1444
|
...e
|
|
1311
1445
|
});
|
|
1312
1446
|
}
|
|
1313
|
-
function
|
|
1447
|
+
function mn(e = {}) {
|
|
1314
1448
|
const t = c(async () => await r.tcn.getAuthUrl()), n = l({
|
|
1315
1449
|
queryKey: ["tcn", "authUrl"],
|
|
1316
1450
|
queryFn: t,
|
|
1317
1451
|
enabled: !0,
|
|
1318
1452
|
options: e
|
|
1319
1453
|
});
|
|
1320
|
-
return
|
|
1454
|
+
return o(n);
|
|
1321
1455
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return
|
|
1456
|
+
function gn(e = {}) {
|
|
1457
|
+
return a({
|
|
1324
1458
|
mutationFn: async ({ code: t }) => await r.tcn.exchangeCode(t),
|
|
1325
1459
|
...e
|
|
1326
1460
|
});
|
|
1327
1461
|
}
|
|
1328
|
-
function
|
|
1329
|
-
return
|
|
1462
|
+
function wn(e = {}) {
|
|
1463
|
+
return a({
|
|
1330
1464
|
mutationFn: async ({ refresh_token: t }) => await r.tcn.refreshToken(t),
|
|
1331
1465
|
...e
|
|
1332
1466
|
});
|
|
1333
1467
|
}
|
|
1334
|
-
function
|
|
1335
|
-
return
|
|
1468
|
+
function Fn(e = {}) {
|
|
1469
|
+
return a({
|
|
1336
1470
|
mutationFn: async ({ token: t }) => await r.tcn.getCurrentAgent(t),
|
|
1337
1471
|
...e
|
|
1338
1472
|
});
|
|
1339
1473
|
}
|
|
1340
|
-
function
|
|
1341
|
-
return
|
|
1474
|
+
function bn(e = {}) {
|
|
1475
|
+
return a({
|
|
1342
1476
|
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getAgentSkills(t, n),
|
|
1343
1477
|
...e
|
|
1344
1478
|
});
|
|
1345
1479
|
}
|
|
1346
|
-
function
|
|
1347
|
-
return
|
|
1348
|
-
mutationFn: async ({ token: t, huntGroupSid: n, skills:
|
|
1480
|
+
function qn(e = {}) {
|
|
1481
|
+
return a({
|
|
1482
|
+
mutationFn: async ({ token: t, huntGroupSid: n, skills: u }) => await r.tcn.createSession(t, n, u),
|
|
1349
1483
|
...e
|
|
1350
1484
|
});
|
|
1351
1485
|
}
|
|
1352
|
-
function
|
|
1353
|
-
return
|
|
1486
|
+
function pn(e = {}) {
|
|
1487
|
+
return a({
|
|
1354
1488
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.keepAlive(t, n),
|
|
1355
1489
|
...e
|
|
1356
1490
|
});
|
|
1357
1491
|
}
|
|
1358
|
-
function
|
|
1359
|
-
return
|
|
1492
|
+
function Tn(e = {}) {
|
|
1493
|
+
return a({
|
|
1360
1494
|
mutationFn: async ({ token: t }) => await r.tcn.agentGetStatus(t),
|
|
1361
1495
|
...e
|
|
1362
1496
|
});
|
|
1363
1497
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1498
|
+
function Dn(e = {}) {
|
|
1499
|
+
return a({
|
|
1366
1500
|
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getHuntGroupAgentSettings(t, n),
|
|
1367
1501
|
...e
|
|
1368
1502
|
});
|
|
1369
1503
|
}
|
|
1370
|
-
function
|
|
1371
|
-
return
|
|
1504
|
+
function hn(e = {}) {
|
|
1505
|
+
return a({
|
|
1372
1506
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.dialManualPrepare(t, n),
|
|
1373
1507
|
...e
|
|
1374
1508
|
});
|
|
1375
1509
|
}
|
|
1376
|
-
function
|
|
1377
|
-
return
|
|
1510
|
+
function Rn(e = {}) {
|
|
1511
|
+
return a({
|
|
1378
1512
|
mutationFn: async ({ token: t, call: n }) => await r.tcn.processManualDial(t, n),
|
|
1379
1513
|
...e
|
|
1380
1514
|
});
|
|
1381
1515
|
}
|
|
1382
|
-
function
|
|
1383
|
-
return
|
|
1384
|
-
mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid:
|
|
1516
|
+
function xn(e = {}) {
|
|
1517
|
+
return a({
|
|
1518
|
+
mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: u, simpleCallData: s }) => await r.tcn.manualDialStart(
|
|
1385
1519
|
t,
|
|
1386
1520
|
n,
|
|
1387
|
-
|
|
1388
|
-
|
|
1521
|
+
u,
|
|
1522
|
+
s
|
|
1389
1523
|
),
|
|
1390
1524
|
...e
|
|
1391
1525
|
});
|
|
1392
1526
|
}
|
|
1393
|
-
function
|
|
1394
|
-
return
|
|
1395
|
-
mutationFn: async ({ token: t, sessionSid: n, reason:
|
|
1527
|
+
function In(e = {}) {
|
|
1528
|
+
return a({
|
|
1529
|
+
mutationFn: async ({ token: t, sessionSid: n, reason: u }) => await r.tcn.agentDisconnect(t, n, u),
|
|
1396
1530
|
...e
|
|
1397
1531
|
});
|
|
1398
1532
|
}
|
|
1399
|
-
function
|
|
1400
|
-
return
|
|
1533
|
+
function Sn(e = {}) {
|
|
1534
|
+
return a({
|
|
1401
1535
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentPause(t, n),
|
|
1402
1536
|
...e
|
|
1403
1537
|
});
|
|
1404
1538
|
}
|
|
1405
|
-
function
|
|
1406
|
-
return
|
|
1539
|
+
function kn(e = {}) {
|
|
1540
|
+
return a({
|
|
1407
1541
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentSetReady(t, n),
|
|
1408
1542
|
...e
|
|
1409
1543
|
});
|
|
1410
1544
|
}
|
|
1411
|
-
function
|
|
1412
|
-
return
|
|
1545
|
+
function Cn(e = {}) {
|
|
1546
|
+
return a({
|
|
1413
1547
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentGetConnectedParty(t, n),
|
|
1414
1548
|
...e
|
|
1415
1549
|
});
|
|
1416
1550
|
}
|
|
1417
|
-
function
|
|
1418
|
-
return
|
|
1551
|
+
function Kn(e = {}) {
|
|
1552
|
+
return a({
|
|
1419
1553
|
mutationFn: async ({ token: t, callSid: n }) => await r.tcn.getCallData(t, n),
|
|
1420
1554
|
...e
|
|
1421
1555
|
});
|
|
1422
1556
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return
|
|
1425
|
-
mutationFn: async ({ token: t, sessionSid: n, holdType:
|
|
1557
|
+
function Vn(e = {}) {
|
|
1558
|
+
return a({
|
|
1559
|
+
mutationFn: async ({ token: t, sessionSid: n, holdType: u }) => await r.tcn.agentPutCallOnHold(t, n, u),
|
|
1426
1560
|
...e
|
|
1427
1561
|
});
|
|
1428
1562
|
}
|
|
1429
|
-
function
|
|
1430
|
-
return
|
|
1431
|
-
mutationFn: async ({ token: t, sessionSid: n, holdType:
|
|
1563
|
+
function Pn(e = {}) {
|
|
1564
|
+
return a({
|
|
1565
|
+
mutationFn: async ({ token: t, sessionSid: n, holdType: u }) => await r.tcn.agentGetCallFromHold(t, n, u),
|
|
1432
1566
|
...e
|
|
1433
1567
|
});
|
|
1434
1568
|
}
|
|
1435
|
-
function
|
|
1436
|
-
return
|
|
1569
|
+
function En(e = {}) {
|
|
1570
|
+
return a({
|
|
1437
1571
|
mutationFn: async (t) => await r.tcn.ftpManualDialReport(t),
|
|
1438
1572
|
...e
|
|
1439
1573
|
});
|
|
1440
1574
|
}
|
|
1441
|
-
function
|
|
1442
|
-
return
|
|
1575
|
+
function Bn(e = {}) {
|
|
1576
|
+
return a({
|
|
1443
1577
|
mutationFn: async (t) => await r.templates.renderTemplate(t),
|
|
1444
1578
|
...e
|
|
1445
1579
|
});
|
|
1446
1580
|
}
|
|
1447
|
-
function
|
|
1581
|
+
function Gn(e, t = {}) {
|
|
1448
1582
|
const n = e?.trim();
|
|
1449
|
-
return
|
|
1583
|
+
return o({
|
|
1450
1584
|
queryKey: ["databox", "folder", n],
|
|
1451
1585
|
queryFn: async () => {
|
|
1452
1586
|
if (!n)
|
|
@@ -1457,9 +1591,9 @@ function wn(e, t = {}) {
|
|
|
1457
1591
|
...t
|
|
1458
1592
|
});
|
|
1459
1593
|
}
|
|
1460
|
-
function
|
|
1594
|
+
function An(e, t = {}) {
|
|
1461
1595
|
const n = e?.trim();
|
|
1462
|
-
return
|
|
1596
|
+
return o({
|
|
1463
1597
|
queryKey: ["databox", "folder", n, "files"],
|
|
1464
1598
|
queryFn: async () => {
|
|
1465
1599
|
if (!n)
|
|
@@ -1470,9 +1604,9 @@ function mn(e, t = {}) {
|
|
|
1470
1604
|
...t
|
|
1471
1605
|
});
|
|
1472
1606
|
}
|
|
1473
|
-
function
|
|
1607
|
+
function On(e, t = {}) {
|
|
1474
1608
|
const n = e?.trim();
|
|
1475
|
-
return
|
|
1609
|
+
return o({
|
|
1476
1610
|
queryKey: ["databox", "folder", n, "datasets"],
|
|
1477
1611
|
queryFn: async () => {
|
|
1478
1612
|
if (!n)
|
|
@@ -1483,9 +1617,9 @@ function Fn(e, t = {}) {
|
|
|
1483
1617
|
...t
|
|
1484
1618
|
});
|
|
1485
1619
|
}
|
|
1486
|
-
function
|
|
1620
|
+
function Un(e, t = {}) {
|
|
1487
1621
|
const n = e?.trim();
|
|
1488
|
-
return
|
|
1622
|
+
return o({
|
|
1489
1623
|
queryKey: ["databox", "folder", n, "duplicates"],
|
|
1490
1624
|
queryFn: async () => {
|
|
1491
1625
|
if (!n)
|
|
@@ -1498,9 +1632,9 @@ function qn(e, t = {}) {
|
|
|
1498
1632
|
...t
|
|
1499
1633
|
});
|
|
1500
1634
|
}
|
|
1501
|
-
function
|
|
1635
|
+
function Mn(e, t = {}) {
|
|
1502
1636
|
const n = e?.trim();
|
|
1503
|
-
return
|
|
1637
|
+
return o({
|
|
1504
1638
|
queryKey: ["dataset", n, "exceptions"],
|
|
1505
1639
|
queryFn: async () => {
|
|
1506
1640
|
if (!n)
|
|
@@ -1511,25 +1645,25 @@ function bn(e, t = {}) {
|
|
|
1511
1645
|
...t
|
|
1512
1646
|
});
|
|
1513
1647
|
}
|
|
1514
|
-
function
|
|
1515
|
-
const
|
|
1516
|
-
return
|
|
1517
|
-
queryKey: ["dataset",
|
|
1648
|
+
function vn(e, t, n = {}) {
|
|
1649
|
+
const u = e?.trim();
|
|
1650
|
+
return o({
|
|
1651
|
+
queryKey: ["dataset", u, "duplicates", t ?? null],
|
|
1518
1652
|
queryFn: async () => {
|
|
1519
|
-
if (!
|
|
1653
|
+
if (!u)
|
|
1520
1654
|
throw new Error("Dataset ID is required");
|
|
1521
1655
|
return await r.dataset.getDatasetDuplicates({
|
|
1522
|
-
datasetId:
|
|
1656
|
+
datasetId: u,
|
|
1523
1657
|
group: t
|
|
1524
1658
|
});
|
|
1525
1659
|
},
|
|
1526
|
-
enabled: !!
|
|
1660
|
+
enabled: !!u,
|
|
1527
1661
|
...n
|
|
1528
1662
|
});
|
|
1529
1663
|
}
|
|
1530
|
-
function
|
|
1664
|
+
function Qn(e, t = {}) {
|
|
1531
1665
|
const n = e?.trim();
|
|
1532
|
-
return
|
|
1666
|
+
return o({
|
|
1533
1667
|
queryKey: ["databox", "folder", n, "schema"],
|
|
1534
1668
|
queryFn: async () => {
|
|
1535
1669
|
if (!n)
|
|
@@ -1540,9 +1674,9 @@ function Tn(e, t = {}) {
|
|
|
1540
1674
|
...t
|
|
1541
1675
|
});
|
|
1542
1676
|
}
|
|
1543
|
-
function
|
|
1677
|
+
function Wn(e, t = {}) {
|
|
1544
1678
|
const n = e?.trim();
|
|
1545
|
-
return
|
|
1679
|
+
return o({
|
|
1546
1680
|
queryKey: ["databox", "folder", n, "schema", "history"],
|
|
1547
1681
|
queryFn: async () => {
|
|
1548
1682
|
if (!n)
|
|
@@ -1553,9 +1687,9 @@ function hn(e, t = {}) {
|
|
|
1553
1687
|
...t
|
|
1554
1688
|
});
|
|
1555
1689
|
}
|
|
1556
|
-
function
|
|
1690
|
+
function Ln(e, t = {}) {
|
|
1557
1691
|
const n = e?.trim();
|
|
1558
|
-
return
|
|
1692
|
+
return o({
|
|
1559
1693
|
queryKey: ["databox", "folder", n, "trash"],
|
|
1560
1694
|
queryFn: async () => {
|
|
1561
1695
|
if (!n)
|
|
@@ -1566,9 +1700,9 @@ function pn(e, t = {}) {
|
|
|
1566
1700
|
...t
|
|
1567
1701
|
});
|
|
1568
1702
|
}
|
|
1569
|
-
function
|
|
1703
|
+
function _n(e, t = {}) {
|
|
1570
1704
|
const n = e?.trim();
|
|
1571
|
-
return
|
|
1705
|
+
return o({
|
|
1572
1706
|
queryKey: ["databox", "file", n],
|
|
1573
1707
|
queryFn: async () => {
|
|
1574
1708
|
if (!n)
|
|
@@ -1579,9 +1713,9 @@ function Rn(e, t = {}) {
|
|
|
1579
1713
|
...t
|
|
1580
1714
|
});
|
|
1581
1715
|
}
|
|
1582
|
-
function
|
|
1716
|
+
function zn(e, t = {}) {
|
|
1583
1717
|
const n = e?.trim();
|
|
1584
|
-
return
|
|
1718
|
+
return o({
|
|
1585
1719
|
queryKey: ["databox", "file", n, "status"],
|
|
1586
1720
|
queryFn: async () => {
|
|
1587
1721
|
if (!n)
|
|
@@ -1592,9 +1726,9 @@ function Sn(e, t = {}) {
|
|
|
1592
1726
|
...t
|
|
1593
1727
|
});
|
|
1594
1728
|
}
|
|
1595
|
-
function
|
|
1729
|
+
function Hn(e, t = {}) {
|
|
1596
1730
|
const n = e?.trim();
|
|
1597
|
-
return
|
|
1731
|
+
return o({
|
|
1598
1732
|
queryKey: ["databox", "file", n, "runs"],
|
|
1599
1733
|
queryFn: async () => {
|
|
1600
1734
|
if (!n)
|
|
@@ -1605,9 +1739,9 @@ function kn(e, t = {}) {
|
|
|
1605
1739
|
...t
|
|
1606
1740
|
});
|
|
1607
1741
|
}
|
|
1608
|
-
function
|
|
1742
|
+
function Nn(e, t = {}) {
|
|
1609
1743
|
const n = e?.trim();
|
|
1610
|
-
return
|
|
1744
|
+
return o({
|
|
1611
1745
|
queryKey: ["databox", "file", n, "download-url"],
|
|
1612
1746
|
queryFn: async () => {
|
|
1613
1747
|
if (!n)
|
|
@@ -1618,74 +1752,83 @@ function Cn(e, t = {}) {
|
|
|
1618
1752
|
...t
|
|
1619
1753
|
});
|
|
1620
1754
|
}
|
|
1621
|
-
function
|
|
1622
|
-
return
|
|
1755
|
+
function jn(e = {}) {
|
|
1756
|
+
return a({
|
|
1623
1757
|
mutationFn: async (t) => await r.databox.dropFileToDatabox(t),
|
|
1624
1758
|
...e
|
|
1625
1759
|
});
|
|
1626
1760
|
}
|
|
1627
|
-
function
|
|
1628
|
-
return
|
|
1761
|
+
function Jn(e = {}) {
|
|
1762
|
+
return a({
|
|
1629
1763
|
mutationFn: async (t) => await r.databox.runDataboxFolder(t),
|
|
1630
1764
|
...e
|
|
1631
1765
|
});
|
|
1632
1766
|
}
|
|
1633
|
-
function
|
|
1634
|
-
return
|
|
1767
|
+
function Yn(e = {}) {
|
|
1768
|
+
return a({
|
|
1635
1769
|
mutationFn: async (t) => await r.databox.updateDataboxFolderSchema(t),
|
|
1636
1770
|
...e
|
|
1637
1771
|
});
|
|
1638
1772
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1773
|
+
function $n(e = {}) {
|
|
1774
|
+
return a({
|
|
1641
1775
|
mutationFn: async (t) => await r.databox.trashDataboxFiles(t),
|
|
1642
1776
|
...e
|
|
1643
1777
|
});
|
|
1644
1778
|
}
|
|
1645
|
-
function
|
|
1646
|
-
return
|
|
1779
|
+
function Xn(e = {}) {
|
|
1780
|
+
return a({
|
|
1647
1781
|
mutationFn: async (t) => await r.databox.restoreDataboxFile(t),
|
|
1648
1782
|
...e
|
|
1649
1783
|
});
|
|
1650
1784
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return
|
|
1785
|
+
function Zn(e = {}) {
|
|
1786
|
+
return a({
|
|
1653
1787
|
mutationFn: async (t) => await r.databox.permanentDeleteDataboxFiles(t),
|
|
1654
1788
|
...e
|
|
1655
1789
|
});
|
|
1656
1790
|
}
|
|
1657
1791
|
export {
|
|
1658
|
-
|
|
1659
|
-
|
|
1792
|
+
rr as ReactQueryDevtools,
|
|
1793
|
+
V as WorkflowStatus,
|
|
1660
1794
|
H as reactQuery,
|
|
1661
1795
|
At as useBulkCheckCustomPermissions,
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1796
|
+
Bt as useBulkUpdateCustomObjectPermissions,
|
|
1797
|
+
rn as useCancelInboxItem,
|
|
1798
|
+
on as useCancelInboxItemsByKey,
|
|
1799
|
+
Gt as useCheckCustomPermissions,
|
|
1800
|
+
ue as useCheckSubscriptionStatus,
|
|
1801
|
+
en as useClaimInboxItem,
|
|
1802
|
+
tn as useCompleteInboxItem,
|
|
1803
|
+
an as useCompleteInboxItemsByKey,
|
|
1665
1804
|
Ne as useCreateAuditLog,
|
|
1666
|
-
|
|
1667
|
-
|
|
1805
|
+
ln as useCreateConversation,
|
|
1806
|
+
jt as useCreateInboxItem,
|
|
1807
|
+
vt as useCreateInboxItemPerUser,
|
|
1808
|
+
Lt as useCreateInboxType,
|
|
1668
1809
|
ze as useCreateOrUpdateForm,
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1810
|
+
pt as useCreateOrUpdateProcessTreeTrigger,
|
|
1811
|
+
B as useCreateReconV2,
|
|
1812
|
+
ae as useCreateStatementRun,
|
|
1672
1813
|
$ as useCreateThread,
|
|
1673
|
-
|
|
1814
|
+
Vt as useCustomAuthzModel,
|
|
1674
1815
|
oe as useDataset,
|
|
1675
1816
|
Y as useDatasetSample,
|
|
1676
1817
|
te as useDeleteComment,
|
|
1677
|
-
|
|
1678
|
-
|
|
1818
|
+
zt as useDeleteInboxType,
|
|
1819
|
+
xt as useDeleteProcessTreeTrigger,
|
|
1820
|
+
gt as useDeleteProcessTrigger,
|
|
1679
1821
|
Ye as useDeleteReconV2,
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1822
|
+
Se as useDeleteRow,
|
|
1823
|
+
Zt as useDismissInboxItem,
|
|
1824
|
+
Be as useDocumentPermissions,
|
|
1825
|
+
jn as useDropFileToDatabox,
|
|
1826
|
+
qt as useExecuteNow,
|
|
1684
1827
|
Tt as useExecuteProcessTreeTrigger,
|
|
1685
1828
|
Ae as useFileDownload,
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1829
|
+
Ge as useFileUpload,
|
|
1830
|
+
dn as useFilterMessagesBySenderId,
|
|
1831
|
+
sn as useGetAllConversations,
|
|
1689
1832
|
lt as useGetAllHttpTriggers,
|
|
1690
1833
|
Ot as useGetAllInboxItems,
|
|
1691
1834
|
Je as useGetAllRecon,
|
|
@@ -1694,124 +1837,135 @@ export {
|
|
|
1694
1837
|
ct as useGetAllUsers,
|
|
1695
1838
|
He as useGetAuditLogs,
|
|
1696
1839
|
X as useGetCommentsByThreadId,
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1840
|
+
cn as useGetConversation,
|
|
1841
|
+
_n as useGetDataboxFile,
|
|
1842
|
+
Nn as useGetDataboxFileDownloadUrl,
|
|
1843
|
+
Hn as useGetDataboxFileRuns,
|
|
1844
|
+
zn as useGetDataboxFileStatus,
|
|
1845
|
+
Gn as useGetDataboxFolder,
|
|
1846
|
+
On as useGetDataboxFolderDatasets,
|
|
1847
|
+
Un as useGetDataboxFolderDuplicates,
|
|
1848
|
+
An as useGetDataboxFolderFiles,
|
|
1849
|
+
Qn as useGetDataboxFolderSchema,
|
|
1850
|
+
Wn as useGetDataboxSchemaHistory,
|
|
1851
|
+
Ln as useGetDataboxTrashFiles,
|
|
1852
|
+
vn as useGetDatasetDuplicates,
|
|
1853
|
+
Mn as useGetDatasetExceptions,
|
|
1711
1854
|
se as useGetDatasets,
|
|
1712
1855
|
le as useGetFileByFolderIdAndName,
|
|
1713
1856
|
ce as useGetFileUrlByFileId,
|
|
1714
|
-
|
|
1715
|
-
|
|
1857
|
+
_e as useGetFormById,
|
|
1858
|
+
Le as useGetFormData,
|
|
1716
1859
|
We as useGetFormSchema,
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
Kt as
|
|
1721
|
-
kt as
|
|
1722
|
-
Ct as
|
|
1860
|
+
Nt as useGetInboxItem,
|
|
1861
|
+
Wt as useGetInboxType,
|
|
1862
|
+
he as useGetInputTables,
|
|
1863
|
+
Kt as useGetProcessTreeRunByInstanceId,
|
|
1864
|
+
kt as useGetProcessTreeRunsBySheetId,
|
|
1865
|
+
Ct as useGetProcessTreeRunsBySheetIdPaginated,
|
|
1866
|
+
It as useGetProcessTreeTrigger,
|
|
1867
|
+
St as useGetProcessTreeTriggersBySheetId,
|
|
1723
1868
|
ye as useGetPublishedWorkbookById,
|
|
1724
1869
|
tt as useGetReconV2CleanResult,
|
|
1725
1870
|
nt as useGetReconV2Diff,
|
|
1726
1871
|
rt as useGetReconV2Explanation,
|
|
1727
1872
|
Ze as useGetReconV2ProfileResult,
|
|
1728
|
-
|
|
1873
|
+
M as useGetReconV2RunResult,
|
|
1729
1874
|
U as useGetReconV2Runs,
|
|
1730
|
-
|
|
1731
|
-
|
|
1875
|
+
v as useGetReconV2SmartResult,
|
|
1876
|
+
L as useGetReconV2Workflow,
|
|
1732
1877
|
de as useGetRunResultById,
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1878
|
+
fe as useGetRunsByViewId,
|
|
1879
|
+
bt as useGetScheduleStatus,
|
|
1880
|
+
me as useGetStatementData,
|
|
1881
|
+
ge as useGetTableById,
|
|
1737
1882
|
Oe as useGetTaskDetails,
|
|
1738
|
-
|
|
1739
|
-
|
|
1883
|
+
ft as useGetTriggersBySheet,
|
|
1884
|
+
we as useGetViewById,
|
|
1740
1885
|
Fe as useGetViewsBySheetId,
|
|
1741
1886
|
ie as useGetVirtualDatasets,
|
|
1742
1887
|
Ue as useGetWorkbookDetails,
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1888
|
+
be as useGetWorkbooksByType,
|
|
1889
|
+
qe as useGetWorkflowInstanceStatusById,
|
|
1890
|
+
pe as useGetWorksheets,
|
|
1746
1891
|
Te as useGetWorksheetsByType,
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1892
|
+
De as useInputTable,
|
|
1893
|
+
xe as useInsertRow,
|
|
1894
|
+
Qt as useListInboxTypes,
|
|
1895
|
+
Ht as useListMyInboxItems,
|
|
1896
|
+
ht as useLogProcessTreeRun,
|
|
1897
|
+
Yt as useMarkInboxItemsRead,
|
|
1898
|
+
$t as useMarkInboxItemsUnread,
|
|
1750
1899
|
Ut as useMarkItemAsRead,
|
|
1751
|
-
|
|
1900
|
+
Mt as useMarkItemAsUnread,
|
|
1752
1901
|
yt as useMarkTaskDone,
|
|
1753
1902
|
J as useMetric,
|
|
1754
|
-
|
|
1755
|
-
|
|
1903
|
+
wt as usePauseSchedule,
|
|
1904
|
+
Zn as usePermanentDeleteDataboxFiles,
|
|
1756
1905
|
Z as usePostComment,
|
|
1757
|
-
|
|
1906
|
+
ve as usePublishWorkbook,
|
|
1907
|
+
un as useReassignInboxItem,
|
|
1758
1908
|
dt as useReassignTask,
|
|
1759
|
-
|
|
1909
|
+
at as useReconV2Detail,
|
|
1760
1910
|
ot as useReconV2Editor,
|
|
1761
|
-
|
|
1911
|
+
ut as useReconV2List,
|
|
1762
1912
|
it as useReconV2Results,
|
|
1763
1913
|
st as useReconV2RunController,
|
|
1764
1914
|
W as useReconV2RunStatus,
|
|
1765
1915
|
$e as useReconV2Templates,
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1916
|
+
Pt as useRegisterCustomAuthzModel,
|
|
1917
|
+
mt as useRegisterProcessTrigger,
|
|
1918
|
+
nn as useReleaseInboxItem,
|
|
1919
|
+
Bn as useRenderTemplate,
|
|
1920
|
+
yn as useReplyToConversation,
|
|
1921
|
+
Xn as useRestoreDataboxFile,
|
|
1771
1922
|
Ft as useResumeSchedule,
|
|
1772
1923
|
Re as useRows,
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1924
|
+
Jn as useRunDataboxFolder,
|
|
1925
|
+
ke as useRunDefinition,
|
|
1926
|
+
Ce as useRunPublishedDefinition,
|
|
1776
1927
|
Qe as useRunRecon,
|
|
1777
1928
|
A as useRunReconV2,
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1929
|
+
Ke as useRunSampleDefinition,
|
|
1930
|
+
Me as useSaveWorkbook,
|
|
1931
|
+
fn as useSearchMessages,
|
|
1932
|
+
Xt as useSnoozeInboxItem,
|
|
1781
1933
|
et as useStartReconV2Clean,
|
|
1782
1934
|
Xe as useStartReconV2Profile,
|
|
1783
1935
|
ne as useSubscribeUser,
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1936
|
+
In as useTcnAgentDisconnect,
|
|
1937
|
+
Pn as useTcnAgentGetCallFromHold,
|
|
1938
|
+
Tn as useTcnAgentGetStatus,
|
|
1939
|
+
Sn as useTcnAgentPause,
|
|
1940
|
+
Vn as useTcnAgentPutCallOnHold,
|
|
1941
|
+
kn as useTcnAgentSetReady,
|
|
1942
|
+
bn as useTcnAgentSkills,
|
|
1943
|
+
mn as useTcnAuthUrl,
|
|
1944
|
+
Kn as useTcnCallData,
|
|
1945
|
+
Cn as useTcnConnectedParty,
|
|
1946
|
+
qn as useTcnCreateSession,
|
|
1947
|
+
Fn as useTcnCurrentAgent,
|
|
1948
|
+
hn as useTcnDialManualPrepare,
|
|
1949
|
+
gn as useTcnExchangeCode,
|
|
1950
|
+
En as useTcnFtpManualDialReport,
|
|
1951
|
+
Dn as useTcnHuntGroupSettings,
|
|
1952
|
+
pn as useTcnKeepAlive,
|
|
1953
|
+
xn as useTcnManualDialStart,
|
|
1954
|
+
Rn as useTcnProcessManualDial,
|
|
1955
|
+
wn as useTcnRefreshToken,
|
|
1956
|
+
Dt as useTerminateProcessTreePipelines,
|
|
1957
|
+
$n as useTrashDataboxFiles,
|
|
1958
|
+
Ve as useTriggerHttpWorkflow,
|
|
1959
|
+
Pe as useTriggerWorkflow,
|
|
1808
1960
|
re as useUnsubscribeUser,
|
|
1809
1961
|
ee as useUpdateComment,
|
|
1810
|
-
|
|
1811
|
-
|
|
1962
|
+
Et as useUpdateCustomObjectPermissions,
|
|
1963
|
+
Yn as useUpdateDataboxFolderSchema,
|
|
1964
|
+
Jt as useUpdateInboxItem,
|
|
1965
|
+
_t as useUpdateInboxType,
|
|
1812
1966
|
Rt as useUpdateProcessTreeRunContext,
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1967
|
+
G as useUpdateReconV2,
|
|
1968
|
+
Ie as useUpdateRow,
|
|
1969
|
+
P as useUser,
|
|
1970
|
+
Ee as useUserDetails
|
|
1817
1971
|
};
|