@bluecopa/react 0.1.99 → 0.1.101
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/reconV2/useGetReconV2Workflow.d.ts +11 -0
- package/dist/hooks/reconV2/useGetReconV2Workflow.d.ts.map +1 -0
- package/dist/hooks/reconV2/useReconV2Detail.d.ts +15 -0
- package/dist/hooks/reconV2/useReconV2Detail.d.ts.map +1 -0
- package/dist/hooks/reconV2/useReconV2Editor.d.ts +17 -0
- package/dist/hooks/reconV2/useReconV2Editor.d.ts.map +1 -0
- package/dist/hooks/reconV2/useReconV2List.d.ts +23 -0
- package/dist/hooks/reconV2/useReconV2List.d.ts.map +1 -0
- package/dist/hooks/reconV2/useReconV2Results.d.ts +32 -0
- package/dist/hooks/reconV2/useReconV2Results.d.ts.map +1 -0
- package/dist/hooks/reconV2/useReconV2RunController.d.ts +35 -0
- package/dist/hooks/reconV2/useReconV2RunController.d.ts.map +1 -0
- package/dist/hooks/useReconV2Templates.d.ts +11 -0
- package/dist/hooks/useReconV2Templates.d.ts.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +571 -471
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useQuery as s, useMutation as
|
|
2
|
-
import * as
|
|
3
|
-
import { copaApi as r, copaGetConfig as p, copaUtils as
|
|
1
|
+
import { useQuery as s, useMutation as u, useQueryClient as f } from "@tanstack/react-query";
|
|
2
|
+
import * as N from "@tanstack/react-query";
|
|
3
|
+
import { copaApi as r, copaGetConfig as p, copaUtils as T } from "@bluecopa/core";
|
|
4
4
|
export * from "@bluecopa/core";
|
|
5
|
-
import { useState as D, useRef as S, useEffect as x } from "react";
|
|
6
|
-
import { ReactQueryDevtools as
|
|
7
|
-
const
|
|
5
|
+
import { useState as D, useRef as S, useEffect as k, useMemo as x } from "react";
|
|
6
|
+
import { ReactQueryDevtools as Dn } from "@tanstack/react-query-devtools";
|
|
7
|
+
const E = {
|
|
8
8
|
enabled: !0,
|
|
9
9
|
staleTime: 1e3 * 60 * 5,
|
|
10
10
|
// 5 minutes
|
|
@@ -13,27 +13,27 @@ const k = {
|
|
|
13
13
|
retry: 2,
|
|
14
14
|
retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function K(e = {}) {
|
|
17
17
|
return {
|
|
18
|
-
...
|
|
18
|
+
...E,
|
|
19
19
|
...e
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function V(e = 5e3) {
|
|
23
23
|
return new Promise((t) => setTimeout(t, e));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const n = Object.entries(e).filter(([a,
|
|
25
|
+
function R(e, t) {
|
|
26
|
+
const n = Object.entries(e).filter(([a, o]) => !o).map(([a]) => a);
|
|
27
27
|
if (n.length > 0)
|
|
28
28
|
throw new Error(
|
|
29
29
|
t || `Missing required parameters: ${n.join(", ")}`
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return async () => (await
|
|
32
|
+
function c(e, t, n = 0) {
|
|
33
|
+
return async () => (await V(n), await e());
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const t =
|
|
35
|
+
function l(e) {
|
|
36
|
+
const t = K(e.options);
|
|
37
37
|
return {
|
|
38
38
|
queryKey: e.queryKey,
|
|
39
39
|
queryFn: e.queryFn,
|
|
@@ -46,40 +46,40 @@ function c(e) {
|
|
|
46
46
|
onError: t.onError
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null,
|
|
49
|
+
function J(e, t = {}) {
|
|
50
|
+
const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, o = 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, {
|
|
54
54
|
solutionBindings: t.solutionBindings,
|
|
55
55
|
limit: t.limit
|
|
56
56
|
});
|
|
57
|
-
}),
|
|
57
|
+
}), i = l({
|
|
58
58
|
queryKey: ["metricData", e, a, t.limit ?? null],
|
|
59
|
-
queryFn:
|
|
59
|
+
queryFn: o,
|
|
60
60
|
enabled: n,
|
|
61
61
|
options: t
|
|
62
62
|
});
|
|
63
|
-
return s(
|
|
63
|
+
return s(i);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const n = !!e, a =
|
|
65
|
+
function Y(e, t = {}) {
|
|
66
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
74
74
|
queryKey: ["datasetData", e],
|
|
75
75
|
queryFn: a,
|
|
76
76
|
enabled: n,
|
|
77
77
|
options: t
|
|
78
78
|
});
|
|
79
|
-
return s(
|
|
79
|
+
return s(o);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function $(e = {}) {
|
|
82
|
+
return u({
|
|
83
83
|
mutationFn: async (t) => await r.chat.createThread(t),
|
|
84
84
|
onSuccess: e.onSuccess,
|
|
85
85
|
onError: e.onError,
|
|
@@ -87,20 +87,20 @@ function W(e = {}) {
|
|
|
87
87
|
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
const n = t.enabled !== !1 && !!e, a =
|
|
90
|
+
function X(e, t = {}) {
|
|
91
|
+
const n = t.enabled !== !1 && !!e, a = c(async () => (R(
|
|
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))), o = l({
|
|
95
95
|
queryKey: ["chat", "comments", e],
|
|
96
96
|
queryFn: a,
|
|
97
97
|
enabled: n,
|
|
98
98
|
options: t
|
|
99
99
|
});
|
|
100
|
-
return s(
|
|
100
|
+
return s(o);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
102
|
+
function Z(e = {}) {
|
|
103
|
+
return u({
|
|
104
104
|
mutationFn: async (t) => await r.chat.postComment(t),
|
|
105
105
|
onSuccess: e.onSuccess,
|
|
106
106
|
onError: e.onError,
|
|
@@ -108,8 +108,8 @@ function Q(e = {}) {
|
|
|
108
108
|
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function ee(e = {}) {
|
|
112
|
+
return u({
|
|
113
113
|
mutationFn: async (t) => await r.chat.updateComment(t),
|
|
114
114
|
onSuccess: e.onSuccess,
|
|
115
115
|
onError: e.onError,
|
|
@@ -117,8 +117,8 @@ function _(e = {}) {
|
|
|
117
117
|
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
120
|
+
function te(e = {}) {
|
|
121
|
+
return u({
|
|
122
122
|
mutationFn: async (t) => await r.chat.deleteComment(t),
|
|
123
123
|
onSuccess: e.onSuccess,
|
|
124
124
|
onError: e.onError,
|
|
@@ -126,8 +126,8 @@ function H(e = {}) {
|
|
|
126
126
|
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
129
|
+
function ne(e = {}) {
|
|
130
|
+
return u({
|
|
131
131
|
mutationFn: async (t) => await r.chat.subscribeUser(t),
|
|
132
132
|
onSuccess: e.onSuccess,
|
|
133
133
|
onError: e.onError,
|
|
@@ -135,8 +135,8 @@ function N(e = {}) {
|
|
|
135
135
|
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
return
|
|
138
|
+
function re(e = {}) {
|
|
139
|
+
return u({
|
|
140
140
|
mutationFn: async (t) => await r.chat.unsubscribeUser(t),
|
|
141
141
|
onSuccess: e.onSuccess,
|
|
142
142
|
onError: e.onError,
|
|
@@ -144,57 +144,57 @@ function L(e = {}) {
|
|
|
144
144
|
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
const a = n.enabled !== !1 && !!e && !!t,
|
|
147
|
+
function ae(e, t, n = {}) {
|
|
148
|
+
const a = n.enabled !== !1 && !!e && !!t, o = c(async () => (R(
|
|
149
149
|
{ userId: e, threadId: t },
|
|
150
150
|
"User ID and Thread ID are required to check subscription status"
|
|
151
|
-
), await r.chat.checkSubscriptionStatus(e, t))),
|
|
151
|
+
), await r.chat.checkSubscriptionStatus(e, t))), i = l({
|
|
152
152
|
queryKey: ["chat", "subscription", e, t],
|
|
153
|
-
queryFn:
|
|
153
|
+
queryFn: o,
|
|
154
154
|
enabled: a,
|
|
155
155
|
options: n
|
|
156
156
|
});
|
|
157
|
-
return s(
|
|
157
|
+
return s(i);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
160
|
-
return
|
|
159
|
+
function oe(e = {}) {
|
|
160
|
+
return u({
|
|
161
161
|
mutationFn: async (t) => await r.statement.createNewRun(t),
|
|
162
162
|
...e
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
const n = !!e, a =
|
|
165
|
+
function ue(e, t = {}) {
|
|
166
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
173
173
|
queryKey: ["datasetData", e],
|
|
174
174
|
queryFn: a,
|
|
175
175
|
enabled: n,
|
|
176
176
|
options: t
|
|
177
177
|
});
|
|
178
|
-
return s(
|
|
178
|
+
return s(o);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
181
|
-
const e =
|
|
180
|
+
function se() {
|
|
181
|
+
const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), t = l({
|
|
182
182
|
queryKey: ["datasetData"],
|
|
183
183
|
queryFn: e,
|
|
184
184
|
enabled: !0
|
|
185
185
|
});
|
|
186
186
|
return s(t);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
const e =
|
|
188
|
+
function ie() {
|
|
189
|
+
const e = c(async () => await r.dataset.getVirtualDatasets()), t = l({
|
|
190
190
|
queryKey: ["virtualDatasets"],
|
|
191
191
|
queryFn: e,
|
|
192
192
|
enabled: !0
|
|
193
193
|
});
|
|
194
194
|
return s(t);
|
|
195
195
|
}
|
|
196
|
-
function
|
|
197
|
-
const
|
|
196
|
+
function ce(e, t, n, a = {}) {
|
|
197
|
+
const o = !!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({
|
|
@@ -202,72 +202,72 @@ function X(e, t, n, a = {}) {
|
|
|
202
202
|
contentType: t,
|
|
203
203
|
method: n
|
|
204
204
|
});
|
|
205
|
-
}), y =
|
|
205
|
+
}), y = l({
|
|
206
206
|
queryKey: ["file", "getFileUrlByFileId", e, t, n],
|
|
207
|
-
queryFn:
|
|
208
|
-
enabled:
|
|
207
|
+
queryFn: i,
|
|
208
|
+
enabled: o,
|
|
209
209
|
options: a
|
|
210
210
|
});
|
|
211
211
|
return s(y);
|
|
212
212
|
}
|
|
213
|
-
function
|
|
214
|
-
const a = e?.trim(),
|
|
213
|
+
function le(e, t, n = {}) {
|
|
214
|
+
const a = e?.trim(), o = t?.trim(), i = !!(a && o), y = c(async () => await r.files.getFileByFolderIdAndName({
|
|
215
215
|
folderId: a,
|
|
216
|
-
name:
|
|
217
|
-
})), d =
|
|
216
|
+
name: o
|
|
217
|
+
})), d = l({
|
|
218
218
|
queryKey: [
|
|
219
219
|
"file",
|
|
220
220
|
"getFileByFolderIdAndName",
|
|
221
221
|
a,
|
|
222
|
-
|
|
222
|
+
o
|
|
223
223
|
],
|
|
224
224
|
queryFn: y,
|
|
225
|
-
enabled:
|
|
225
|
+
enabled: i,
|
|
226
226
|
options: n
|
|
227
227
|
});
|
|
228
228
|
return s(d);
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
const a = !!e && !!t,
|
|
230
|
+
function ye(e, t, n = {}) {
|
|
231
|
+
const a = !!e && !!t, o = 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:
|
|
237
|
+
queryFn: o,
|
|
238
238
|
enabled: a,
|
|
239
239
|
options: n
|
|
240
240
|
});
|
|
241
|
-
return s(
|
|
241
|
+
return s(i);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
const n = !!e, a =
|
|
243
|
+
function de(e, t = {}) {
|
|
244
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
249
249
|
queryKey: ["statement", "getRunResultById", e],
|
|
250
250
|
queryFn: a,
|
|
251
251
|
enabled: n,
|
|
252
252
|
options: t
|
|
253
253
|
});
|
|
254
|
-
return s(
|
|
254
|
+
return s(o);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
const n = !!e, a =
|
|
256
|
+
function fe(e, t = {}) {
|
|
257
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
262
262
|
queryKey: ["statement", "getRunsByViewId", e],
|
|
263
263
|
queryFn: a,
|
|
264
264
|
enabled: n,
|
|
265
265
|
options: t
|
|
266
266
|
});
|
|
267
|
-
return s(
|
|
267
|
+
return s(o);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const
|
|
269
|
+
function we(e, t, n, a = {}) {
|
|
270
|
+
const o = !!e, i = c(async () => {
|
|
271
271
|
if (!e)
|
|
272
272
|
throw new Error("Statement ID is required");
|
|
273
273
|
return await r.statement.getData({
|
|
@@ -275,134 +275,134 @@ function re(e, t, n, a = {}) {
|
|
|
275
275
|
viewId: t || void 0,
|
|
276
276
|
runId: n || void 0
|
|
277
277
|
});
|
|
278
|
-
}), y =
|
|
278
|
+
}), y = l({
|
|
279
279
|
queryKey: ["statement", "getData", e, t, n],
|
|
280
|
-
queryFn:
|
|
281
|
-
enabled:
|
|
280
|
+
queryFn: i,
|
|
281
|
+
enabled: o,
|
|
282
282
|
options: a
|
|
283
283
|
});
|
|
284
284
|
return s(y);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
287
|
-
const n = !!e, a =
|
|
286
|
+
function ge(e, t = {}) {
|
|
287
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
292
292
|
queryKey: ["inputTable", "getTableById", e],
|
|
293
293
|
queryFn: a,
|
|
294
294
|
enabled: n,
|
|
295
295
|
options: t
|
|
296
296
|
});
|
|
297
|
-
return s(
|
|
297
|
+
return s(o);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const n = !!e, a =
|
|
299
|
+
function me(e, t = {}) {
|
|
300
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
305
305
|
queryKey: ["statement", "getViewById", e],
|
|
306
306
|
queryFn: a,
|
|
307
307
|
enabled: n,
|
|
308
308
|
options: t
|
|
309
309
|
});
|
|
310
|
-
return s(
|
|
310
|
+
return s(o);
|
|
311
311
|
}
|
|
312
|
-
function
|
|
313
|
-
const n = !!e, a =
|
|
312
|
+
function Fe(e, t = {}) {
|
|
313
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
318
318
|
queryKey: ["statement", "getViewsBySheetId", e],
|
|
319
319
|
queryFn: a,
|
|
320
320
|
enabled: n,
|
|
321
321
|
options: t
|
|
322
322
|
});
|
|
323
|
-
return s(
|
|
323
|
+
return s(o);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
const n = !!e, a =
|
|
325
|
+
function qe(e, t = {}) {
|
|
326
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
331
331
|
queryKey: ["workbook", "getWorkbooksByType", e],
|
|
332
332
|
queryFn: a,
|
|
333
333
|
enabled: n,
|
|
334
334
|
options: t
|
|
335
335
|
});
|
|
336
|
-
return s(
|
|
336
|
+
return s(o);
|
|
337
337
|
}
|
|
338
338
|
var C = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(C || {});
|
|
339
|
-
function
|
|
340
|
-
return
|
|
339
|
+
function be(e = {}) {
|
|
340
|
+
return u({
|
|
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, a =
|
|
345
|
+
function De(e, t = {}) {
|
|
346
|
+
const n = !!e && e.length > 0, a = 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
|
+
}), o = l({
|
|
351
351
|
queryKey: ["worksheet", "getWorksheets", e],
|
|
352
352
|
queryFn: a,
|
|
353
353
|
enabled: n,
|
|
354
354
|
options: t
|
|
355
355
|
});
|
|
356
|
-
return s(
|
|
356
|
+
return s(o);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const n = !!e, a =
|
|
358
|
+
function he(e, t = {}) {
|
|
359
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
364
364
|
queryKey: ["worksheet", "getWorksheetsByType", e],
|
|
365
365
|
queryFn: a,
|
|
366
366
|
enabled: n,
|
|
367
367
|
options: t
|
|
368
368
|
});
|
|
369
|
-
return s(
|
|
369
|
+
return s(o);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function pe(e, t, n = {}) {
|
|
372
372
|
const {
|
|
373
373
|
limitParams: a = { limit: 2e3, limitFrom: "top" },
|
|
374
|
-
pageParams:
|
|
375
|
-
sortParams:
|
|
374
|
+
pageParams: o,
|
|
375
|
+
sortParams: i,
|
|
376
376
|
offsetParam: y,
|
|
377
377
|
...d
|
|
378
|
-
} = n, w = d.enabled !== !1 && !!e && !!t,
|
|
378
|
+
} = n, w = 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:
|
|
384
|
+
pageParams: o,
|
|
385
385
|
limitParams: a,
|
|
386
|
-
sortParams:
|
|
386
|
+
sortParams: i,
|
|
387
387
|
offsetParam: y
|
|
388
388
|
});
|
|
389
|
-
}),
|
|
389
|
+
}), m = l({
|
|
390
390
|
queryKey: ["inputTableData", e, t],
|
|
391
|
-
queryFn:
|
|
391
|
+
queryFn: g,
|
|
392
392
|
enabled: w,
|
|
393
393
|
options: d
|
|
394
394
|
});
|
|
395
|
-
return s(
|
|
395
|
+
return s(m);
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
const e =
|
|
397
|
+
function Re() {
|
|
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
403
|
return s(t);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Te(e, t = {}) {
|
|
406
406
|
const n = [
|
|
407
407
|
"enabled",
|
|
408
408
|
"staleTime",
|
|
@@ -411,107 +411,107 @@ function fe(e, t = {}) {
|
|
|
411
411
|
"retryDelay",
|
|
412
412
|
"onSuccess",
|
|
413
413
|
"onError"
|
|
414
|
-
], { limit: a, offset:
|
|
415
|
-
Object.keys(d).forEach((
|
|
416
|
-
n.includes(
|
|
414
|
+
], { limit: a, offset: o, order: i, order_by: y, ...d } = t, w = {}, g = { limit: a, offset: o, order: i, order_by: y };
|
|
415
|
+
Object.keys(d).forEach((F) => {
|
|
416
|
+
n.includes(F) ? w[F] = d[F] : g[F] = d[F];
|
|
417
417
|
});
|
|
418
|
-
const
|
|
418
|
+
const m = w.enabled !== !1 && !!e, b = 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
|
+
}), q = l({
|
|
423
423
|
queryKey: ["inputTableRows", e, t],
|
|
424
424
|
queryFn: b,
|
|
425
|
-
enabled:
|
|
425
|
+
enabled: m,
|
|
426
426
|
options: w
|
|
427
427
|
});
|
|
428
|
-
return s(
|
|
428
|
+
return s(q);
|
|
429
429
|
}
|
|
430
|
-
function
|
|
430
|
+
function Se(e = {}) {
|
|
431
431
|
const t = f();
|
|
432
|
-
return
|
|
432
|
+
return u({
|
|
433
433
|
mutationFn: async (n) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(n.tableId, n.rowData)),
|
|
434
|
-
onSuccess: (n, a,
|
|
434
|
+
onSuccess: (n, a, o) => {
|
|
435
435
|
t.invalidateQueries({
|
|
436
436
|
queryKey: ["inputTableRows", a.tableId]
|
|
437
437
|
}), e.onSuccess?.(n);
|
|
438
438
|
},
|
|
439
|
-
onError: (n, a,
|
|
439
|
+
onError: (n, a, o) => {
|
|
440
440
|
e.onError?.(n);
|
|
441
441
|
},
|
|
442
442
|
...e
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function ke(e = {}) {
|
|
446
446
|
const t = f();
|
|
447
|
-
return
|
|
447
|
+
return u({
|
|
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, a,
|
|
453
|
+
onSuccess: (n, a, o) => {
|
|
454
454
|
t.invalidateQueries({
|
|
455
455
|
queryKey: ["inputTableRows", a.tableId]
|
|
456
456
|
}), e.onSuccess?.(n);
|
|
457
457
|
},
|
|
458
|
-
onError: (n, a,
|
|
458
|
+
onError: (n, a, o) => {
|
|
459
459
|
e.onError?.(n);
|
|
460
460
|
},
|
|
461
461
|
...e
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function xe(e = {}) {
|
|
465
465
|
const t = f();
|
|
466
|
-
return
|
|
466
|
+
return u({
|
|
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, a,
|
|
472
|
+
onSuccess: (n, a, o) => {
|
|
473
473
|
t.invalidateQueries({
|
|
474
474
|
queryKey: ["inputTableRows", a.tableId]
|
|
475
475
|
}), e.onSuccess?.(n);
|
|
476
476
|
},
|
|
477
|
-
onError: (n, a,
|
|
477
|
+
onError: (n, a, o) => {
|
|
478
478
|
e.onError?.(n);
|
|
479
479
|
},
|
|
480
480
|
...e
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
483
|
+
function Ee(e = {}) {
|
|
484
|
+
return u({
|
|
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 Ke(e = {}) {
|
|
490
|
+
return u({
|
|
491
491
|
mutationFn: async (t) => await r.definition.runPublishedDefinition(t),
|
|
492
492
|
...e
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
495
|
+
function Ve(e = {}) {
|
|
496
|
+
return u({
|
|
497
497
|
mutationFn: async (t) => await r.definition.runSampleDefinition(t),
|
|
498
498
|
...e
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
return
|
|
501
|
+
function Ce(e = {}) {
|
|
502
|
+
return u({
|
|
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 Ge(e = {}) {
|
|
508
|
+
return u({
|
|
509
509
|
mutationFn: async (t) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(t)),
|
|
510
510
|
...e
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
513
|
function G(e = {}) {
|
|
514
|
-
const t = e.enabled !== !1, n =
|
|
514
|
+
const t = e.enabled !== !1, n = c(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), a = l({
|
|
515
515
|
queryKey: ["user"],
|
|
516
516
|
queryFn: n,
|
|
517
517
|
enabled: t,
|
|
@@ -519,9 +519,9 @@ function G(e = {}) {
|
|
|
519
519
|
});
|
|
520
520
|
return s(a);
|
|
521
521
|
}
|
|
522
|
-
const
|
|
523
|
-
function
|
|
524
|
-
const a = n.enabled !== !1 && !!e?.trim(),
|
|
522
|
+
const Ie = G, I = ["Owner", "Editor", "Viewer", "ReadOnly"], h = r.permissions?.getPermissions;
|
|
523
|
+
function Pe(e, t, n = {}) {
|
|
524
|
+
const a = n.enabled !== !1 && !!e?.trim(), o = c(
|
|
525
525
|
async () => {
|
|
526
526
|
if (!e?.trim())
|
|
527
527
|
return {};
|
|
@@ -539,115 +539,115 @@ function Te(e, t, n = {}) {
|
|
|
539
539
|
objectType: t,
|
|
540
540
|
user: y.userId,
|
|
541
541
|
userType: "User",
|
|
542
|
-
relations: n.relations ??
|
|
542
|
+
relations: n.relations ?? I
|
|
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:
|
|
549
|
+
queryFn: o,
|
|
550
550
|
enabled: a,
|
|
551
551
|
options: n
|
|
552
552
|
});
|
|
553
|
-
return s(
|
|
553
|
+
return s(i);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return
|
|
555
|
+
function Be(e = {}) {
|
|
556
|
+
return u({
|
|
557
557
|
mutationFn: async (t) => (console.log("Uploading file..."), await r.files.fileUpload(t)),
|
|
558
558
|
...e
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Ae({
|
|
562
562
|
fileId: e,
|
|
563
563
|
contentType: t = "application/json",
|
|
564
564
|
method: n = "GET"
|
|
565
565
|
}, a = {}) {
|
|
566
|
-
const
|
|
566
|
+
const o = !!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
|
-
}), y =
|
|
570
|
+
}), y = l({
|
|
571
571
|
queryKey: ["file", "fileDownload", e],
|
|
572
|
-
queryFn:
|
|
573
|
-
enabled:
|
|
572
|
+
queryFn: i,
|
|
573
|
+
enabled: o,
|
|
574
574
|
options: a
|
|
575
575
|
});
|
|
576
576
|
return s(y);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
579
|
-
const n = !!e, a =
|
|
578
|
+
function Oe(e, t = {}) {
|
|
579
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
584
584
|
queryKey: ["task", "getTaskDetails", e],
|
|
585
585
|
queryFn: a,
|
|
586
586
|
enabled: n,
|
|
587
587
|
options: t
|
|
588
588
|
});
|
|
589
|
-
return s(
|
|
589
|
+
return s(o);
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const n = !!e, a =
|
|
591
|
+
function Ue(e, t = {}) {
|
|
592
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
597
597
|
queryKey: ["workbook", "getWorkbookDetails", e],
|
|
598
598
|
queryFn: a,
|
|
599
599
|
enabled: n,
|
|
600
600
|
options: t
|
|
601
601
|
});
|
|
602
|
-
return s(
|
|
602
|
+
return s(o);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
604
|
+
function ve(e = {}) {
|
|
605
|
+
return u({
|
|
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 Me(e = {}) {
|
|
611
|
+
return u({
|
|
612
612
|
mutationFn: async (t) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(t)),
|
|
613
613
|
...e
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
616
|
+
function We(e = {}) {
|
|
617
|
+
return u({
|
|
618
618
|
mutationFn: async (t) => (console.log("Running recon workflow..."), await r.recon.runRecon(t)),
|
|
619
619
|
...e
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
const a = !!e && !!t,
|
|
622
|
+
function Qe(e, t, n = {}) {
|
|
623
|
+
const a = !!e && !!t, o = 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
628
|
return s(
|
|
629
|
-
|
|
629
|
+
l({
|
|
630
630
|
queryKey: ["form", "getFormSchema", e, t],
|
|
631
|
-
queryFn:
|
|
631
|
+
queryFn: o,
|
|
632
632
|
enabled: a,
|
|
633
633
|
options: n
|
|
634
634
|
})
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
const n = !!e, a =
|
|
637
|
+
function Le(e, t = {}) {
|
|
638
|
+
const n = !!e, a = 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
|
+
}), o = l({
|
|
643
643
|
queryKey: ["form", "getFormData", e],
|
|
644
644
|
queryFn: a,
|
|
645
645
|
enabled: n,
|
|
646
646
|
options: t
|
|
647
647
|
});
|
|
648
|
-
return s(
|
|
648
|
+
return s(o);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function _e(e, t = {}) {
|
|
651
651
|
return s({
|
|
652
652
|
queryKey: ["form", e],
|
|
653
653
|
queryFn: async () => {
|
|
@@ -659,70 +659,70 @@ function Be(e, t = {}) {
|
|
|
659
659
|
...t
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
return
|
|
662
|
+
function He(e = {}) {
|
|
663
|
+
return u({
|
|
664
664
|
mutationFn: async (t) => await r.form.createOrUpdateForm(t),
|
|
665
665
|
...e
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
668
|
+
function Ne(e = {}) {
|
|
669
|
+
return u({
|
|
670
670
|
mutationFn: async (t) => await r.audit.getAuditLogs(t),
|
|
671
671
|
...e
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
return
|
|
674
|
+
function ze(e = {}) {
|
|
675
|
+
return u({
|
|
676
676
|
mutationFn: async (t) => await r.audit.createAuditLog(t),
|
|
677
677
|
...e
|
|
678
678
|
});
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function je(e = {}) {
|
|
681
681
|
return s({
|
|
682
682
|
queryKey: ["templatedPipelines"],
|
|
683
683
|
queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
|
|
684
684
|
...e
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Je(e = {}) {
|
|
688
688
|
return s({
|
|
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 P(e = {}) {
|
|
695
|
+
return u({
|
|
696
696
|
mutationFn: async (t) => await r.reconV2.createReconV2(t),
|
|
697
697
|
...e
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
700
|
+
function B(e = {}) {
|
|
701
|
+
return u({
|
|
702
702
|
mutationFn: async (t) => await r.reconV2.updateReconV2(t),
|
|
703
703
|
...e
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
return
|
|
706
|
+
function Ye(e = {}) {
|
|
707
|
+
return u({
|
|
708
708
|
mutationFn: async (t) => await r.reconV2.deleteReconV2(t),
|
|
709
709
|
...e
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
return
|
|
712
|
+
function A(e = {}) {
|
|
713
|
+
return u({
|
|
714
714
|
mutationFn: async (t) => await r.reconV2.runReconV2(t),
|
|
715
715
|
...e
|
|
716
716
|
});
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function O(e = {}) {
|
|
719
719
|
return s({
|
|
720
720
|
queryKey: ["reconV2Workflows"],
|
|
721
721
|
queryFn: async () => await r.reconV2.getAllReconV2Workflows(),
|
|
722
722
|
...e
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function U(e, t = {}) {
|
|
726
726
|
const n = e?.trim();
|
|
727
727
|
return s({
|
|
728
728
|
queryKey: ["reconV2", "runs", n],
|
|
@@ -731,7 +731,14 @@ function He(e, t = {}) {
|
|
|
731
731
|
...t
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function $e(e = {}) {
|
|
735
|
+
return s({
|
|
736
|
+
queryKey: ["reconV2", "templates"],
|
|
737
|
+
queryFn: async () => await r.reconV2.getReconV2Templates(),
|
|
738
|
+
...e
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
function v(e, t = {}) {
|
|
735
742
|
return s({
|
|
736
743
|
queryKey: ["reconV2", "runResult", e],
|
|
737
744
|
queryFn: async () => await r.reconV2.getReconV2RunResult({ runId: e }),
|
|
@@ -739,7 +746,7 @@ function Ne(e, t = {}) {
|
|
|
739
746
|
...t
|
|
740
747
|
});
|
|
741
748
|
}
|
|
742
|
-
function
|
|
749
|
+
function M(e, t = {}) {
|
|
743
750
|
return s({
|
|
744
751
|
queryKey: [
|
|
745
752
|
"reconV2",
|
|
@@ -757,13 +764,13 @@ function Le(e, t = {}) {
|
|
|
757
764
|
...t
|
|
758
765
|
});
|
|
759
766
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
767
|
+
function Xe(e = {}) {
|
|
768
|
+
return u({
|
|
762
769
|
mutationFn: async (t) => await r.reconV2.startReconV2Profile(t),
|
|
763
770
|
...e
|
|
764
771
|
});
|
|
765
772
|
}
|
|
766
|
-
function
|
|
773
|
+
function Ze(e, t = "left", n = {}) {
|
|
767
774
|
return s({
|
|
768
775
|
queryKey: ["reconV2", "profile", e, t],
|
|
769
776
|
queryFn: async () => await r.reconV2.getReconV2ProfileResult({
|
|
@@ -774,13 +781,13 @@ function je(e, t = "left", n = {}) {
|
|
|
774
781
|
...n
|
|
775
782
|
});
|
|
776
783
|
}
|
|
777
|
-
function
|
|
778
|
-
return
|
|
784
|
+
function et(e = {}) {
|
|
785
|
+
return u({
|
|
779
786
|
mutationFn: async (t) => await r.reconV2.startReconV2Clean(t),
|
|
780
787
|
...e
|
|
781
788
|
});
|
|
782
789
|
}
|
|
783
|
-
function
|
|
790
|
+
function tt(e, t = "left", n = {}) {
|
|
784
791
|
return s({
|
|
785
792
|
queryKey: ["reconV2", "clean", e, t],
|
|
786
793
|
queryFn: async () => await r.reconV2.getReconV2CleanResult({
|
|
@@ -791,7 +798,7 @@ function Ye(e, t = "left", n = {}) {
|
|
|
791
798
|
...n
|
|
792
799
|
});
|
|
793
800
|
}
|
|
794
|
-
function
|
|
801
|
+
function nt(e, t, n, a = {}) {
|
|
795
802
|
return s({
|
|
796
803
|
queryKey: ["reconV2", "diff", e, n],
|
|
797
804
|
queryFn: async () => await r.reconV2.getReconV2Diff({
|
|
@@ -803,7 +810,7 @@ function $e(e, t, n, a = {}) {
|
|
|
803
810
|
...a
|
|
804
811
|
});
|
|
805
812
|
}
|
|
806
|
-
function
|
|
813
|
+
function rt(e, t, n = {}) {
|
|
807
814
|
return s({
|
|
808
815
|
queryKey: ["reconV2", "explanation", e],
|
|
809
816
|
queryFn: async () => await r.reconV2.getReconV2Explanation({
|
|
@@ -814,63 +821,149 @@ function Xe(e, t, n = {}) {
|
|
|
814
821
|
...n
|
|
815
822
|
});
|
|
816
823
|
}
|
|
817
|
-
const
|
|
818
|
-
function
|
|
824
|
+
const W = ["SUCCEEDED", "FAILED"];
|
|
825
|
+
function Q(e, t = {}) {
|
|
819
826
|
const [n, a] = D(
|
|
820
827
|
void 0
|
|
821
|
-
), [
|
|
822
|
-
return y.current = t.onComplete,
|
|
828
|
+
), [o, i] = D(!1), y = S(t.onComplete);
|
|
829
|
+
return y.current = t.onComplete, k(() => {
|
|
823
830
|
if (!e)
|
|
824
831
|
return;
|
|
825
832
|
const d = p().websocketProvider;
|
|
826
833
|
if (!d)
|
|
827
834
|
return;
|
|
828
|
-
a(void 0),
|
|
829
|
-
const w =
|
|
830
|
-
let
|
|
831
|
-
const
|
|
832
|
-
|
|
835
|
+
a(void 0), i(!1);
|
|
836
|
+
const w = T.websocketUtils.ReconResultChannel;
|
|
837
|
+
let g = !1;
|
|
838
|
+
const m = () => {
|
|
839
|
+
g || (g = !0, d.unbind(w, e));
|
|
833
840
|
};
|
|
834
841
|
return d.bind(w, e, (b) => {
|
|
835
|
-
let
|
|
842
|
+
let q;
|
|
836
843
|
try {
|
|
837
|
-
|
|
844
|
+
q = typeof b == "string" ? JSON.parse(b) : b;
|
|
838
845
|
} catch {
|
|
839
|
-
|
|
846
|
+
q = { status: void 0 };
|
|
840
847
|
}
|
|
841
|
-
a(
|
|
842
|
-
const
|
|
843
|
-
|
|
844
|
-
}),
|
|
845
|
-
}, [e]), { data: n, isTerminal:
|
|
848
|
+
a(q);
|
|
849
|
+
const F = q?.status?.toUpperCase();
|
|
850
|
+
F && W.includes(F) && (i(!0), y.current?.(q), m());
|
|
851
|
+
}), m;
|
|
852
|
+
}, [e]), { data: n, isTerminal: o };
|
|
846
853
|
}
|
|
847
|
-
function
|
|
854
|
+
function L(e, t = {}) {
|
|
855
|
+
const n = e?.trim();
|
|
856
|
+
return s({
|
|
857
|
+
queryKey: ["reconV2", "workflow", n],
|
|
858
|
+
queryFn: async () => await r.reconV2.getReconV2Workflow({ id: n }),
|
|
859
|
+
enabled: !!n,
|
|
860
|
+
...t
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
function _(e, t) {
|
|
864
|
+
return t.split(".").reduce(
|
|
865
|
+
(n, a) => n && typeof n == "object" ? n[a] : void 0,
|
|
866
|
+
e
|
|
867
|
+
);
|
|
868
|
+
}
|
|
869
|
+
function at(e, t = {}) {
|
|
870
|
+
const n = O(t);
|
|
871
|
+
return {
|
|
872
|
+
workflows: x(() => {
|
|
873
|
+
const o = n.data ?? [];
|
|
874
|
+
return e?.key ? o.filter((i) => _(i, e.key) === e.value) : o;
|
|
875
|
+
}, [n.data, e?.key, e?.value]),
|
|
876
|
+
isLoading: n.isLoading,
|
|
877
|
+
error: n.error,
|
|
878
|
+
refetch: n.refetch
|
|
879
|
+
};
|
|
880
|
+
}
|
|
881
|
+
function ot(e, t = {}) {
|
|
882
|
+
const n = L(e, t);
|
|
883
|
+
return {
|
|
884
|
+
workflow: n.data,
|
|
885
|
+
isLoading: n.isLoading,
|
|
886
|
+
error: n.error,
|
|
887
|
+
refetch: n.refetch
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
function ut() {
|
|
891
|
+
const e = P(), t = B();
|
|
892
|
+
return {
|
|
893
|
+
create: e.mutateAsync,
|
|
894
|
+
update: t.mutateAsync,
|
|
895
|
+
isSaving: e.isPending || t.isPending,
|
|
896
|
+
error: e.error ?? t.error,
|
|
897
|
+
data: t.data ?? e.data
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
function st(e, t = {}) {
|
|
901
|
+
const n = e?.trim(), [a, o] = D(void 0), i = A(), y = Q(a, { onComplete: t.onComplete }), d = U(n);
|
|
902
|
+
return {
|
|
903
|
+
startRun: async (g = {}) => {
|
|
904
|
+
if (!n)
|
|
905
|
+
throw new Error("workflowId is required to start a run");
|
|
906
|
+
const m = await i.mutateAsync({ workflowId: n, ...g });
|
|
907
|
+
return o(m?.runId), m?.runId;
|
|
908
|
+
},
|
|
909
|
+
runId: a,
|
|
910
|
+
status: y.data,
|
|
911
|
+
isRunning: i.isPending || !!a && !y.isTerminal,
|
|
912
|
+
isTerminal: y.isTerminal,
|
|
913
|
+
runs: d.data,
|
|
914
|
+
refetchRuns: d.refetch
|
|
915
|
+
};
|
|
916
|
+
}
|
|
917
|
+
function it({
|
|
918
|
+
runId: e,
|
|
919
|
+
workflowId: t,
|
|
920
|
+
exceptionType: n,
|
|
921
|
+
ruleFilter: a,
|
|
922
|
+
orderBy: o
|
|
923
|
+
}) {
|
|
924
|
+
const i = v(e), y = M({
|
|
925
|
+
runId: e ?? void 0,
|
|
926
|
+
workflowId: t ?? void 0,
|
|
927
|
+
exceptionType: n,
|
|
928
|
+
ruleFilter: a,
|
|
929
|
+
orderBy: o
|
|
930
|
+
}), d = y.data?.result;
|
|
931
|
+
return {
|
|
932
|
+
runResult: i.data,
|
|
933
|
+
records: d?.data ?? [],
|
|
934
|
+
description: d?.description ?? [],
|
|
935
|
+
isLoading: i.isLoading || y.isLoading,
|
|
936
|
+
error: i.error ?? y.error,
|
|
937
|
+
refetch: y.refetch
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
function ct(e = {}) {
|
|
848
941
|
return s({
|
|
849
942
|
queryKey: ["users"],
|
|
850
943
|
queryFn: async () => await r.user.getAllUsers(),
|
|
851
944
|
...e
|
|
852
945
|
});
|
|
853
946
|
}
|
|
854
|
-
function
|
|
947
|
+
function lt(e = {}) {
|
|
855
948
|
return s({
|
|
856
949
|
queryKey: ["httpTriggers"],
|
|
857
950
|
queryFn: async () => await r.workflow.getAllHttpTriggers(),
|
|
858
951
|
...e
|
|
859
952
|
});
|
|
860
953
|
}
|
|
861
|
-
function
|
|
862
|
-
return
|
|
954
|
+
function yt(e = {}) {
|
|
955
|
+
return u({
|
|
863
956
|
mutationFn: async (t) => await r.process.markTaskDone(t),
|
|
864
957
|
...e
|
|
865
958
|
});
|
|
866
959
|
}
|
|
867
|
-
function
|
|
868
|
-
return
|
|
960
|
+
function dt(e = {}) {
|
|
961
|
+
return u({
|
|
869
962
|
mutationFn: async (t) => await r.process.reassignTask(t),
|
|
870
963
|
...e
|
|
871
964
|
});
|
|
872
965
|
}
|
|
873
|
-
function
|
|
966
|
+
function ft(e, t = {}) {
|
|
874
967
|
return s({
|
|
875
968
|
queryKey: ["processTriggers", e],
|
|
876
969
|
queryFn: async () => await r.process.getTriggersBySheet(e),
|
|
@@ -878,9 +971,9 @@ function at(e, t = {}) {
|
|
|
878
971
|
...t
|
|
879
972
|
});
|
|
880
973
|
}
|
|
881
|
-
function
|
|
974
|
+
function wt(e = {}) {
|
|
882
975
|
const t = f();
|
|
883
|
-
return
|
|
976
|
+
return u({
|
|
884
977
|
mutationFn: async (n) => await r.process.registerProcessTrigger(n),
|
|
885
978
|
onSuccess: (n, a) => {
|
|
886
979
|
t.invalidateQueries({
|
|
@@ -890,9 +983,9 @@ function ot(e = {}) {
|
|
|
890
983
|
...e
|
|
891
984
|
});
|
|
892
985
|
}
|
|
893
|
-
function
|
|
986
|
+
function gt(e = {}) {
|
|
894
987
|
const t = f();
|
|
895
|
-
return
|
|
988
|
+
return u({
|
|
896
989
|
mutationFn: async ({ id: n }) => await r.process.deleteProcessTrigger(n),
|
|
897
990
|
onSuccess: (n, a) => {
|
|
898
991
|
t.invalidateQueries({
|
|
@@ -902,9 +995,9 @@ function ut(e = {}) {
|
|
|
902
995
|
...e
|
|
903
996
|
});
|
|
904
997
|
}
|
|
905
|
-
function
|
|
998
|
+
function mt(e = {}) {
|
|
906
999
|
const t = f();
|
|
907
|
-
return
|
|
1000
|
+
return u({
|
|
908
1001
|
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.pauseSchedule(n, a),
|
|
909
1002
|
onSuccess: (n, a) => {
|
|
910
1003
|
t.invalidateQueries({
|
|
@@ -916,9 +1009,9 @@ function st(e = {}) {
|
|
|
916
1009
|
...e
|
|
917
1010
|
});
|
|
918
1011
|
}
|
|
919
|
-
function
|
|
1012
|
+
function Ft(e = {}) {
|
|
920
1013
|
const t = f();
|
|
921
|
-
return
|
|
1014
|
+
return u({
|
|
922
1015
|
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.resumeSchedule(n, a),
|
|
923
1016
|
onSuccess: (n, a) => {
|
|
924
1017
|
t.invalidateQueries({
|
|
@@ -930,7 +1023,7 @@ function it(e = {}) {
|
|
|
930
1023
|
...e
|
|
931
1024
|
});
|
|
932
1025
|
}
|
|
933
|
-
function
|
|
1026
|
+
function qt(e, t, n = {}) {
|
|
934
1027
|
return s({
|
|
935
1028
|
queryKey: ["scheduleStatus", e, t],
|
|
936
1029
|
queryFn: async () => await r.process.getScheduleStatus(
|
|
@@ -941,9 +1034,9 @@ function ct(e, t, n = {}) {
|
|
|
941
1034
|
...n
|
|
942
1035
|
});
|
|
943
1036
|
}
|
|
944
|
-
function
|
|
1037
|
+
function bt(e = {}) {
|
|
945
1038
|
const t = f();
|
|
946
|
-
return
|
|
1039
|
+
return u({
|
|
947
1040
|
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.executeNow(n, a),
|
|
948
1041
|
onSuccess: (n, a) => {
|
|
949
1042
|
t.invalidateQueries({
|
|
@@ -953,39 +1046,39 @@ function lt(e = {}) {
|
|
|
953
1046
|
...e
|
|
954
1047
|
});
|
|
955
1048
|
}
|
|
956
|
-
function
|
|
1049
|
+
function Dt(e = {}, t = {}) {
|
|
957
1050
|
return s({
|
|
958
1051
|
queryKey: ["inboxItems", "all", e.page, e.perPage],
|
|
959
1052
|
queryFn: async () => await r.inboxItems.getAllInboxItems(e),
|
|
960
1053
|
...t
|
|
961
1054
|
});
|
|
962
1055
|
}
|
|
963
|
-
function
|
|
964
|
-
return
|
|
1056
|
+
function ht(e = {}) {
|
|
1057
|
+
return u({
|
|
965
1058
|
mutationFn: async (t) => await r.inboxItems.markItemAsRead(t),
|
|
966
1059
|
...e
|
|
967
1060
|
});
|
|
968
1061
|
}
|
|
969
|
-
function
|
|
970
|
-
return
|
|
1062
|
+
function pt(e = {}) {
|
|
1063
|
+
return u({
|
|
971
1064
|
mutationFn: async (t) => await r.inboxItems.markItemAsUnread(t),
|
|
972
1065
|
...e
|
|
973
1066
|
});
|
|
974
1067
|
}
|
|
975
|
-
function
|
|
976
|
-
return
|
|
1068
|
+
function Rt(e = {}) {
|
|
1069
|
+
return u({
|
|
977
1070
|
mutationFn: async (t) => await r.inboxItems.createInboxItemPerUser(t),
|
|
978
1071
|
...e
|
|
979
1072
|
});
|
|
980
1073
|
}
|
|
981
|
-
function
|
|
1074
|
+
function Tt(e, t = {}) {
|
|
982
1075
|
return s({
|
|
983
1076
|
queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
|
|
984
1077
|
queryFn: async () => await r.emailEngine.getAllConversations(e),
|
|
985
1078
|
...t
|
|
986
1079
|
});
|
|
987
1080
|
}
|
|
988
|
-
function
|
|
1081
|
+
function St(e, t = {}) {
|
|
989
1082
|
return s({
|
|
990
1083
|
queryKey: ["emailConversation", e],
|
|
991
1084
|
queryFn: async () => await r.emailEngine.getConversation({
|
|
@@ -995,9 +1088,9 @@ function Ft(e, t = {}) {
|
|
|
995
1088
|
...t
|
|
996
1089
|
});
|
|
997
1090
|
}
|
|
998
|
-
function
|
|
1091
|
+
function kt(e = {}) {
|
|
999
1092
|
const t = f();
|
|
1000
|
-
return
|
|
1093
|
+
return u({
|
|
1001
1094
|
mutationFn: async (n) => await r.emailEngine.createConversation(n),
|
|
1002
1095
|
onSuccess: () => {
|
|
1003
1096
|
t.invalidateQueries({ queryKey: ["emailConversations"] });
|
|
@@ -1005,9 +1098,9 @@ function mt(e = {}) {
|
|
|
1005
1098
|
...e
|
|
1006
1099
|
});
|
|
1007
1100
|
}
|
|
1008
|
-
function
|
|
1101
|
+
function xt(e = {}) {
|
|
1009
1102
|
const t = f();
|
|
1010
|
-
return
|
|
1103
|
+
return u({
|
|
1011
1104
|
mutationFn: async (n) => await r.emailEngine.replyToConversation(n),
|
|
1012
1105
|
onSuccess: (n, a) => {
|
|
1013
1106
|
t.invalidateQueries({
|
|
@@ -1017,7 +1110,7 @@ function qt(e = {}) {
|
|
|
1017
1110
|
...e
|
|
1018
1111
|
});
|
|
1019
1112
|
}
|
|
1020
|
-
function
|
|
1113
|
+
function Et(e, t = {}) {
|
|
1021
1114
|
return s({
|
|
1022
1115
|
queryKey: [
|
|
1023
1116
|
"emailMessagesBySender",
|
|
@@ -1032,14 +1125,14 @@ function bt(e, t = {}) {
|
|
|
1032
1125
|
...t
|
|
1033
1126
|
});
|
|
1034
1127
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return
|
|
1128
|
+
function Kt(e = {}) {
|
|
1129
|
+
return u({
|
|
1037
1130
|
mutationFn: async (t) => await r.emailEngine.searchMessages(t),
|
|
1038
1131
|
...e
|
|
1039
1132
|
});
|
|
1040
1133
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const t =
|
|
1134
|
+
function Vt(e = {}) {
|
|
1135
|
+
const t = c(async () => await r.tcn.getAuthUrl()), n = l({
|
|
1043
1136
|
queryKey: ["tcn", "authUrl"],
|
|
1044
1137
|
queryFn: t,
|
|
1045
1138
|
enabled: !0,
|
|
@@ -1047,132 +1140,132 @@ function ht(e = {}) {
|
|
|
1047
1140
|
});
|
|
1048
1141
|
return s(n);
|
|
1049
1142
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return
|
|
1143
|
+
function Ct(e = {}) {
|
|
1144
|
+
return u({
|
|
1052
1145
|
mutationFn: async ({ code: t }) => await r.tcn.exchangeCode(t),
|
|
1053
1146
|
...e
|
|
1054
1147
|
});
|
|
1055
1148
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1149
|
+
function Gt(e = {}) {
|
|
1150
|
+
return u({
|
|
1058
1151
|
mutationFn: async ({ refresh_token: t }) => await r.tcn.refreshToken(t),
|
|
1059
1152
|
...e
|
|
1060
1153
|
});
|
|
1061
1154
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1155
|
+
function It(e = {}) {
|
|
1156
|
+
return u({
|
|
1064
1157
|
mutationFn: async ({ token: t }) => await r.tcn.getCurrentAgent(t),
|
|
1065
1158
|
...e
|
|
1066
1159
|
});
|
|
1067
1160
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1161
|
+
function Pt(e = {}) {
|
|
1162
|
+
return u({
|
|
1070
1163
|
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getAgentSkills(t, n),
|
|
1071
1164
|
...e
|
|
1072
1165
|
});
|
|
1073
1166
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return
|
|
1167
|
+
function Bt(e = {}) {
|
|
1168
|
+
return u({
|
|
1076
1169
|
mutationFn: async ({ token: t, huntGroupSid: n, skills: a }) => await r.tcn.createSession(t, n, a),
|
|
1077
1170
|
...e
|
|
1078
1171
|
});
|
|
1079
1172
|
}
|
|
1080
|
-
function
|
|
1081
|
-
return
|
|
1173
|
+
function At(e = {}) {
|
|
1174
|
+
return u({
|
|
1082
1175
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.keepAlive(t, n),
|
|
1083
1176
|
...e
|
|
1084
1177
|
});
|
|
1085
1178
|
}
|
|
1086
|
-
function
|
|
1087
|
-
return
|
|
1179
|
+
function Ot(e = {}) {
|
|
1180
|
+
return u({
|
|
1088
1181
|
mutationFn: async ({ token: t }) => await r.tcn.agentGetStatus(t),
|
|
1089
1182
|
...e
|
|
1090
1183
|
});
|
|
1091
1184
|
}
|
|
1092
|
-
function
|
|
1093
|
-
return
|
|
1185
|
+
function Ut(e = {}) {
|
|
1186
|
+
return u({
|
|
1094
1187
|
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getHuntGroupAgentSettings(t, n),
|
|
1095
1188
|
...e
|
|
1096
1189
|
});
|
|
1097
1190
|
}
|
|
1098
|
-
function
|
|
1099
|
-
return
|
|
1191
|
+
function vt(e = {}) {
|
|
1192
|
+
return u({
|
|
1100
1193
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.dialManualPrepare(t, n),
|
|
1101
1194
|
...e
|
|
1102
1195
|
});
|
|
1103
1196
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return
|
|
1197
|
+
function Mt(e = {}) {
|
|
1198
|
+
return u({
|
|
1106
1199
|
mutationFn: async ({ token: t, call: n }) => await r.tcn.processManualDial(t, n),
|
|
1107
1200
|
...e
|
|
1108
1201
|
});
|
|
1109
1202
|
}
|
|
1110
|
-
function
|
|
1111
|
-
return
|
|
1112
|
-
mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData:
|
|
1203
|
+
function Wt(e = {}) {
|
|
1204
|
+
return u({
|
|
1205
|
+
mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: o }) => await r.tcn.manualDialStart(
|
|
1113
1206
|
t,
|
|
1114
1207
|
n,
|
|
1115
1208
|
a,
|
|
1116
|
-
|
|
1209
|
+
o
|
|
1117
1210
|
),
|
|
1118
1211
|
...e
|
|
1119
1212
|
});
|
|
1120
1213
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1214
|
+
function Qt(e = {}) {
|
|
1215
|
+
return u({
|
|
1123
1216
|
mutationFn: async ({ token: t, sessionSid: n, reason: a }) => await r.tcn.agentDisconnect(t, n, a),
|
|
1124
1217
|
...e
|
|
1125
1218
|
});
|
|
1126
1219
|
}
|
|
1127
|
-
function
|
|
1128
|
-
return
|
|
1220
|
+
function Lt(e = {}) {
|
|
1221
|
+
return u({
|
|
1129
1222
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentPause(t, n),
|
|
1130
1223
|
...e
|
|
1131
1224
|
});
|
|
1132
1225
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1226
|
+
function _t(e = {}) {
|
|
1227
|
+
return u({
|
|
1135
1228
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentSetReady(t, n),
|
|
1136
1229
|
...e
|
|
1137
1230
|
});
|
|
1138
1231
|
}
|
|
1139
|
-
function
|
|
1140
|
-
return
|
|
1232
|
+
function Ht(e = {}) {
|
|
1233
|
+
return u({
|
|
1141
1234
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentGetConnectedParty(t, n),
|
|
1142
1235
|
...e
|
|
1143
1236
|
});
|
|
1144
1237
|
}
|
|
1145
|
-
function
|
|
1146
|
-
return
|
|
1238
|
+
function Nt(e = {}) {
|
|
1239
|
+
return u({
|
|
1147
1240
|
mutationFn: async ({ token: t, callSid: n }) => await r.tcn.getCallData(t, n),
|
|
1148
1241
|
...e
|
|
1149
1242
|
});
|
|
1150
1243
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return
|
|
1244
|
+
function zt(e = {}) {
|
|
1245
|
+
return u({
|
|
1153
1246
|
mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentPutCallOnHold(t, n, a),
|
|
1154
1247
|
...e
|
|
1155
1248
|
});
|
|
1156
1249
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return
|
|
1250
|
+
function jt(e = {}) {
|
|
1251
|
+
return u({
|
|
1159
1252
|
mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentGetCallFromHold(t, n, a),
|
|
1160
1253
|
...e
|
|
1161
1254
|
});
|
|
1162
1255
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return
|
|
1256
|
+
function Jt(e = {}) {
|
|
1257
|
+
return u({
|
|
1165
1258
|
mutationFn: async ({ token: t, templateNumber: n, groupSid: a }) => await r.tcn.ftpManualDialReport(t, n, a),
|
|
1166
1259
|
...e
|
|
1167
1260
|
});
|
|
1168
1261
|
}
|
|
1169
|
-
function
|
|
1170
|
-
return
|
|
1262
|
+
function Yt(e = {}) {
|
|
1263
|
+
return u({
|
|
1171
1264
|
mutationFn: async (t) => await r.templates.renderTemplate(t),
|
|
1172
1265
|
...e
|
|
1173
1266
|
});
|
|
1174
1267
|
}
|
|
1175
|
-
function
|
|
1268
|
+
function $t(e, t = {}) {
|
|
1176
1269
|
const n = e?.trim();
|
|
1177
1270
|
return s({
|
|
1178
1271
|
queryKey: ["databox", "folder", n],
|
|
@@ -1185,7 +1278,7 @@ function Qt(e, t = {}) {
|
|
|
1185
1278
|
...t
|
|
1186
1279
|
});
|
|
1187
1280
|
}
|
|
1188
|
-
function
|
|
1281
|
+
function Xt(e, t = {}) {
|
|
1189
1282
|
const n = e?.trim();
|
|
1190
1283
|
return s({
|
|
1191
1284
|
queryKey: ["databox", "folder", n, "files"],
|
|
@@ -1198,7 +1291,7 @@ function _t(e, t = {}) {
|
|
|
1198
1291
|
...t
|
|
1199
1292
|
});
|
|
1200
1293
|
}
|
|
1201
|
-
function
|
|
1294
|
+
function Zt(e, t = {}) {
|
|
1202
1295
|
const n = e?.trim();
|
|
1203
1296
|
return s({
|
|
1204
1297
|
queryKey: ["databox", "folder", n, "datasets"],
|
|
@@ -1211,7 +1304,7 @@ function Ht(e, t = {}) {
|
|
|
1211
1304
|
...t
|
|
1212
1305
|
});
|
|
1213
1306
|
}
|
|
1214
|
-
function
|
|
1307
|
+
function en(e, t = {}) {
|
|
1215
1308
|
const n = e?.trim();
|
|
1216
1309
|
return s({
|
|
1217
1310
|
queryKey: ["databox", "folder", n, "duplicates"],
|
|
@@ -1226,7 +1319,7 @@ function Nt(e, t = {}) {
|
|
|
1226
1319
|
...t
|
|
1227
1320
|
});
|
|
1228
1321
|
}
|
|
1229
|
-
function
|
|
1322
|
+
function tn(e, t = {}) {
|
|
1230
1323
|
const n = e?.trim();
|
|
1231
1324
|
return s({
|
|
1232
1325
|
queryKey: ["dataset", n, "exceptions"],
|
|
@@ -1239,7 +1332,7 @@ function Lt(e, t = {}) {
|
|
|
1239
1332
|
...t
|
|
1240
1333
|
});
|
|
1241
1334
|
}
|
|
1242
|
-
function
|
|
1335
|
+
function nn(e, t, n = {}) {
|
|
1243
1336
|
const a = e?.trim();
|
|
1244
1337
|
return s({
|
|
1245
1338
|
queryKey: ["dataset", a, "duplicates", t ?? null],
|
|
@@ -1255,7 +1348,7 @@ function zt(e, t, n = {}) {
|
|
|
1255
1348
|
...n
|
|
1256
1349
|
});
|
|
1257
1350
|
}
|
|
1258
|
-
function
|
|
1351
|
+
function rn(e, t = {}) {
|
|
1259
1352
|
const n = e?.trim();
|
|
1260
1353
|
return s({
|
|
1261
1354
|
queryKey: ["databox", "folder", n, "schema"],
|
|
@@ -1268,7 +1361,7 @@ function jt(e, t = {}) {
|
|
|
1268
1361
|
...t
|
|
1269
1362
|
});
|
|
1270
1363
|
}
|
|
1271
|
-
function
|
|
1364
|
+
function an(e, t = {}) {
|
|
1272
1365
|
const n = e?.trim();
|
|
1273
1366
|
return s({
|
|
1274
1367
|
queryKey: ["databox", "folder", n, "schema", "history"],
|
|
@@ -1281,7 +1374,7 @@ function Jt(e, t = {}) {
|
|
|
1281
1374
|
...t
|
|
1282
1375
|
});
|
|
1283
1376
|
}
|
|
1284
|
-
function
|
|
1377
|
+
function on(e, t = {}) {
|
|
1285
1378
|
const n = e?.trim();
|
|
1286
1379
|
return s({
|
|
1287
1380
|
queryKey: ["databox", "folder", n, "trash"],
|
|
@@ -1294,7 +1387,7 @@ function Yt(e, t = {}) {
|
|
|
1294
1387
|
...t
|
|
1295
1388
|
});
|
|
1296
1389
|
}
|
|
1297
|
-
function
|
|
1390
|
+
function un(e, t = {}) {
|
|
1298
1391
|
const n = e?.trim();
|
|
1299
1392
|
return s({
|
|
1300
1393
|
queryKey: ["databox", "file", n],
|
|
@@ -1307,7 +1400,7 @@ function $t(e, t = {}) {
|
|
|
1307
1400
|
...t
|
|
1308
1401
|
});
|
|
1309
1402
|
}
|
|
1310
|
-
function
|
|
1403
|
+
function sn(e, t = {}) {
|
|
1311
1404
|
const n = e?.trim();
|
|
1312
1405
|
return s({
|
|
1313
1406
|
queryKey: ["databox", "file", n, "status"],
|
|
@@ -1320,7 +1413,7 @@ function Xt(e, t = {}) {
|
|
|
1320
1413
|
...t
|
|
1321
1414
|
});
|
|
1322
1415
|
}
|
|
1323
|
-
function
|
|
1416
|
+
function cn(e, t = {}) {
|
|
1324
1417
|
const n = e?.trim();
|
|
1325
1418
|
return s({
|
|
1326
1419
|
queryKey: ["databox", "file", n, "runs"],
|
|
@@ -1333,7 +1426,7 @@ function Zt(e, t = {}) {
|
|
|
1333
1426
|
...t
|
|
1334
1427
|
});
|
|
1335
1428
|
}
|
|
1336
|
-
function
|
|
1429
|
+
function ln(e, t = {}) {
|
|
1337
1430
|
const n = e?.trim();
|
|
1338
1431
|
return s({
|
|
1339
1432
|
queryKey: ["databox", "file", n, "download-url"],
|
|
@@ -1346,176 +1439,183 @@ function en(e, t = {}) {
|
|
|
1346
1439
|
...t
|
|
1347
1440
|
});
|
|
1348
1441
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1442
|
+
function yn(e = {}) {
|
|
1443
|
+
return u({
|
|
1351
1444
|
mutationFn: async (t) => await r.databox.dropFileToDatabox(t),
|
|
1352
1445
|
...e
|
|
1353
1446
|
});
|
|
1354
1447
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1448
|
+
function dn(e = {}) {
|
|
1449
|
+
return u({
|
|
1357
1450
|
mutationFn: async (t) => await r.databox.runDataboxFolder(t),
|
|
1358
1451
|
...e
|
|
1359
1452
|
});
|
|
1360
1453
|
}
|
|
1361
|
-
function
|
|
1362
|
-
return
|
|
1454
|
+
function fn(e = {}) {
|
|
1455
|
+
return u({
|
|
1363
1456
|
mutationFn: async (t) => await r.databox.updateDataboxFolderSchema(t),
|
|
1364
1457
|
...e
|
|
1365
1458
|
});
|
|
1366
1459
|
}
|
|
1367
|
-
function
|
|
1368
|
-
return
|
|
1460
|
+
function wn(e = {}) {
|
|
1461
|
+
return u({
|
|
1369
1462
|
mutationFn: async (t) => await r.databox.trashDataboxFiles(t),
|
|
1370
1463
|
...e
|
|
1371
1464
|
});
|
|
1372
1465
|
}
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1466
|
+
function gn(e = {}) {
|
|
1467
|
+
return u({
|
|
1375
1468
|
mutationFn: async (t) => await r.databox.restoreDataboxFile(t),
|
|
1376
1469
|
...e
|
|
1377
1470
|
});
|
|
1378
1471
|
}
|
|
1379
|
-
function
|
|
1380
|
-
return
|
|
1472
|
+
function mn(e = {}) {
|
|
1473
|
+
return u({
|
|
1381
1474
|
mutationFn: async (t) => await r.databox.permanentDeleteDataboxFiles(t),
|
|
1382
1475
|
...e
|
|
1383
1476
|
});
|
|
1384
1477
|
}
|
|
1385
1478
|
export {
|
|
1386
|
-
|
|
1479
|
+
Dn as ReactQueryDevtools,
|
|
1387
1480
|
C as WorkflowStatus,
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
ot as
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
Ot as
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1481
|
+
N as reactQuery,
|
|
1482
|
+
ae as useCheckSubscriptionStatus,
|
|
1483
|
+
ze as useCreateAuditLog,
|
|
1484
|
+
kt as useCreateConversation,
|
|
1485
|
+
Rt as useCreateInboxItemPerUser,
|
|
1486
|
+
He as useCreateOrUpdateForm,
|
|
1487
|
+
P as useCreateReconV2,
|
|
1488
|
+
oe as useCreateStatementRun,
|
|
1489
|
+
$ as useCreateThread,
|
|
1490
|
+
ue as useDataset,
|
|
1491
|
+
Y as useDatasetSample,
|
|
1492
|
+
te as useDeleteComment,
|
|
1493
|
+
gt as useDeleteProcessTrigger,
|
|
1494
|
+
Ye as useDeleteReconV2,
|
|
1495
|
+
xe as useDeleteRow,
|
|
1496
|
+
Pe as useDocumentPermissions,
|
|
1497
|
+
yn as useDropFileToDatabox,
|
|
1498
|
+
bt as useExecuteNow,
|
|
1499
|
+
Ae as useFileDownload,
|
|
1500
|
+
Be as useFileUpload,
|
|
1501
|
+
Et as useFilterMessagesBySenderId,
|
|
1502
|
+
Tt as useGetAllConversations,
|
|
1503
|
+
lt as useGetAllHttpTriggers,
|
|
1504
|
+
Dt as useGetAllInboxItems,
|
|
1505
|
+
Je as useGetAllRecon,
|
|
1506
|
+
O as useGetAllReconV2,
|
|
1507
|
+
je as useGetAllTemplatedPipelines,
|
|
1508
|
+
ct as useGetAllUsers,
|
|
1509
|
+
Ne as useGetAuditLogs,
|
|
1510
|
+
X as useGetCommentsByThreadId,
|
|
1511
|
+
St as useGetConversation,
|
|
1512
|
+
un as useGetDataboxFile,
|
|
1513
|
+
ln as useGetDataboxFileDownloadUrl,
|
|
1514
|
+
cn as useGetDataboxFileRuns,
|
|
1515
|
+
sn as useGetDataboxFileStatus,
|
|
1516
|
+
$t as useGetDataboxFolder,
|
|
1517
|
+
Zt as useGetDataboxFolderDatasets,
|
|
1518
|
+
en as useGetDataboxFolderDuplicates,
|
|
1519
|
+
Xt as useGetDataboxFolderFiles,
|
|
1520
|
+
rn as useGetDataboxFolderSchema,
|
|
1521
|
+
an as useGetDataboxSchemaHistory,
|
|
1522
|
+
on as useGetDataboxTrashFiles,
|
|
1523
|
+
nn as useGetDatasetDuplicates,
|
|
1524
|
+
tn as useGetDatasetExceptions,
|
|
1525
|
+
se as useGetDatasets,
|
|
1526
|
+
le as useGetFileByFolderIdAndName,
|
|
1527
|
+
ce as useGetFileUrlByFileId,
|
|
1528
|
+
_e as useGetFormById,
|
|
1529
|
+
Le as useGetFormData,
|
|
1530
|
+
Qe as useGetFormSchema,
|
|
1531
|
+
Re as useGetInputTables,
|
|
1532
|
+
ye as useGetPublishedWorkbookById,
|
|
1533
|
+
tt as useGetReconV2CleanResult,
|
|
1534
|
+
nt as useGetReconV2Diff,
|
|
1535
|
+
rt as useGetReconV2Explanation,
|
|
1536
|
+
Ze as useGetReconV2ProfileResult,
|
|
1537
|
+
v as useGetReconV2RunResult,
|
|
1538
|
+
U as useGetReconV2Runs,
|
|
1539
|
+
M as useGetReconV2SmartResult,
|
|
1540
|
+
L as useGetReconV2Workflow,
|
|
1541
|
+
de as useGetRunResultById,
|
|
1542
|
+
fe as useGetRunsByViewId,
|
|
1543
|
+
qt as useGetScheduleStatus,
|
|
1544
|
+
we as useGetStatementData,
|
|
1545
|
+
ge as useGetTableById,
|
|
1546
|
+
Oe as useGetTaskDetails,
|
|
1547
|
+
ft as useGetTriggersBySheet,
|
|
1548
|
+
me as useGetViewById,
|
|
1549
|
+
Fe as useGetViewsBySheetId,
|
|
1550
|
+
ie as useGetVirtualDatasets,
|
|
1551
|
+
Ue as useGetWorkbookDetails,
|
|
1552
|
+
qe as useGetWorkbooksByType,
|
|
1553
|
+
be as useGetWorkflowInstanceStatusById,
|
|
1554
|
+
De as useGetWorksheets,
|
|
1555
|
+
he as useGetWorksheetsByType,
|
|
1556
|
+
pe as useInputTable,
|
|
1557
|
+
Se as useInsertRow,
|
|
1558
|
+
ht as useMarkItemAsRead,
|
|
1559
|
+
pt as useMarkItemAsUnread,
|
|
1560
|
+
yt as useMarkTaskDone,
|
|
1561
|
+
J as useMetric,
|
|
1562
|
+
mt as usePauseSchedule,
|
|
1563
|
+
mn as usePermanentDeleteDataboxFiles,
|
|
1564
|
+
Z as usePostComment,
|
|
1565
|
+
Me as usePublishWorkbook,
|
|
1566
|
+
dt as useReassignTask,
|
|
1567
|
+
ot as useReconV2Detail,
|
|
1568
|
+
ut as useReconV2Editor,
|
|
1569
|
+
at as useReconV2List,
|
|
1570
|
+
it as useReconV2Results,
|
|
1571
|
+
st as useReconV2RunController,
|
|
1572
|
+
Q as useReconV2RunStatus,
|
|
1573
|
+
$e as useReconV2Templates,
|
|
1574
|
+
wt as useRegisterProcessTrigger,
|
|
1575
|
+
Yt as useRenderTemplate,
|
|
1576
|
+
xt as useReplyToConversation,
|
|
1577
|
+
gn as useRestoreDataboxFile,
|
|
1578
|
+
Ft as useResumeSchedule,
|
|
1579
|
+
Te as useRows,
|
|
1580
|
+
dn as useRunDataboxFolder,
|
|
1581
|
+
Ee as useRunDefinition,
|
|
1582
|
+
Ke as useRunPublishedDefinition,
|
|
1583
|
+
We as useRunRecon,
|
|
1584
|
+
A as useRunReconV2,
|
|
1585
|
+
Ve as useRunSampleDefinition,
|
|
1586
|
+
ve as useSaveWorkbook,
|
|
1587
|
+
Kt as useSearchMessages,
|
|
1588
|
+
et as useStartReconV2Clean,
|
|
1589
|
+
Xe as useStartReconV2Profile,
|
|
1590
|
+
ne as useSubscribeUser,
|
|
1591
|
+
Qt as useTcnAgentDisconnect,
|
|
1592
|
+
jt as useTcnAgentGetCallFromHold,
|
|
1593
|
+
Ot as useTcnAgentGetStatus,
|
|
1594
|
+
Lt as useTcnAgentPause,
|
|
1595
|
+
zt as useTcnAgentPutCallOnHold,
|
|
1596
|
+
_t as useTcnAgentSetReady,
|
|
1597
|
+
Pt as useTcnAgentSkills,
|
|
1598
|
+
Vt as useTcnAuthUrl,
|
|
1599
|
+
Nt as useTcnCallData,
|
|
1600
|
+
Ht as useTcnConnectedParty,
|
|
1601
|
+
Bt as useTcnCreateSession,
|
|
1602
|
+
It as useTcnCurrentAgent,
|
|
1603
|
+
vt as useTcnDialManualPrepare,
|
|
1604
|
+
Ct as useTcnExchangeCode,
|
|
1605
|
+
Jt as useTcnFtpManualDialReport,
|
|
1606
|
+
Ut as useTcnHuntGroupSettings,
|
|
1607
|
+
At as useTcnKeepAlive,
|
|
1608
|
+
Wt as useTcnManualDialStart,
|
|
1609
|
+
Mt as useTcnProcessManualDial,
|
|
1610
|
+
Gt as useTcnRefreshToken,
|
|
1611
|
+
wn as useTrashDataboxFiles,
|
|
1612
|
+
Ce as useTriggerHttpWorkflow,
|
|
1613
|
+
Ge as useTriggerWorkflow,
|
|
1614
|
+
re as useUnsubscribeUser,
|
|
1615
|
+
ee as useUpdateComment,
|
|
1616
|
+
fn as useUpdateDataboxFolderSchema,
|
|
1617
|
+
B as useUpdateReconV2,
|
|
1618
|
+
ke as useUpdateRow,
|
|
1519
1619
|
G as useUser,
|
|
1520
|
-
|
|
1620
|
+
Ie as useUserDetails
|
|
1521
1621
|
};
|