@bluecopa/react 0.1.105 → 0.1.107
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/useCreateOrUpdateProcessTreeTrigger.d.ts +10 -0
- package/dist/hooks/useCreateOrUpdateProcessTreeTrigger.d.ts.map +1 -0
- package/dist/hooks/useDeleteProcessTreeTrigger.d.ts +14 -0
- package/dist/hooks/useDeleteProcessTreeTrigger.d.ts.map +1 -0
- package/dist/hooks/useExecuteProcessTreeTrigger.d.ts +9 -0
- package/dist/hooks/useExecuteProcessTreeTrigger.d.ts.map +1 -0
- package/dist/hooks/useGetProcessTreeRunByInstanceId.d.ts +10 -0
- package/dist/hooks/useGetProcessTreeRunByInstanceId.d.ts.map +1 -0
- package/dist/hooks/useGetProcessTreeRunsBySheetId.d.ts +10 -0
- package/dist/hooks/useGetProcessTreeRunsBySheetId.d.ts.map +1 -0
- package/dist/hooks/useGetProcessTreeRunsBySheetIdPaginated.d.ts +11 -0
- package/dist/hooks/useGetProcessTreeRunsBySheetIdPaginated.d.ts.map +1 -0
- package/dist/hooks/useGetProcessTreeTrigger.d.ts +10 -0
- package/dist/hooks/useGetProcessTreeTrigger.d.ts.map +1 -0
- package/dist/hooks/useGetProcessTreeTriggersBySheetId.d.ts +10 -0
- package/dist/hooks/useGetProcessTreeTriggersBySheetId.d.ts.map +1 -0
- package/dist/hooks/useLogProcessTreeRun.d.ts +9 -0
- package/dist/hooks/useLogProcessTreeRun.d.ts.map +1 -0
- package/dist/hooks/useTerminateProcessTreePipelines.d.ts +17 -0
- package/dist/hooks/useTerminateProcessTreePipelines.d.ts.map +1 -0
- package/dist/hooks/useUpdateProcessTreeRunContext.d.ts +15 -0
- package/dist/hooks/useUpdateProcessTreeRunContext.d.ts.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +478 -331
- package/package.json +3 -2
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useQuery as s, useMutation as
|
|
1
|
+
import { useQuery as s, useMutation as o, useQueryClient as g } from "@tanstack/react-query";
|
|
2
2
|
import * as N from "@tanstack/react-query";
|
|
3
|
-
import { copaApi as r, copaGetConfig as p, copaUtils as
|
|
3
|
+
import { copaApi as r, copaGetConfig as p, copaUtils as R } from "@bluecopa/core";
|
|
4
4
|
export * from "@bluecopa/core";
|
|
5
5
|
import { useState as D, useRef as S, useEffect as k, useMemo as x } from "react";
|
|
6
|
-
import { ReactQueryDevtools as
|
|
7
|
-
const
|
|
6
|
+
import { ReactQueryDevtools as Pn } 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 E = {
|
|
|
13
13
|
retry: 2,
|
|
14
14
|
retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function E(e = {}) {
|
|
17
17
|
return {
|
|
18
|
-
...
|
|
18
|
+
...K,
|
|
19
19
|
...e
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function C(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 h(e, t) {
|
|
26
|
+
const n = Object.entries(e).filter(([a, u]) => !u).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
32
|
function c(e, t, n = 0) {
|
|
33
|
-
return async () => (await
|
|
33
|
+
return async () => (await C(n), await e());
|
|
34
34
|
}
|
|
35
35
|
function l(e) {
|
|
36
|
-
const t =
|
|
36
|
+
const t = E(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, a = t.solutionBindings ?? null,
|
|
50
|
+
const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, u = 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, {
|
|
@@ -56,7 +56,7 @@ function J(e, t = {}) {
|
|
|
56
56
|
});
|
|
57
57
|
}), i = l({
|
|
58
58
|
queryKey: ["metricData", e, a, t.limit ?? null],
|
|
59
|
-
queryFn:
|
|
59
|
+
queryFn: u,
|
|
60
60
|
enabled: n,
|
|
61
61
|
options: t
|
|
62
62
|
});
|
|
@@ -70,16 +70,16 @@ function Y(e, t = {}) {
|
|
|
70
70
|
datasetId: e,
|
|
71
71
|
dataFilter: "all_data"
|
|
72
72
|
});
|
|
73
|
-
}),
|
|
73
|
+
}), u = 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(u);
|
|
80
80
|
}
|
|
81
81
|
function $(e = {}) {
|
|
82
|
-
return
|
|
82
|
+
return o({
|
|
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, a = c(async () => (
|
|
91
|
+
const n = t.enabled !== !1 && !!e, a = 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))), u = 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(u);
|
|
101
101
|
}
|
|
102
102
|
function Z(e = {}) {
|
|
103
|
-
return
|
|
103
|
+
return o({
|
|
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 o({
|
|
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 o({
|
|
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 o({
|
|
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 o({
|
|
140
140
|
mutationFn: async (t) => await r.chat.unsubscribeUser(t),
|
|
141
141
|
onSuccess: e.onSuccess,
|
|
142
142
|
onError: e.onError,
|
|
@@ -145,19 +145,19 @@ function re(e = {}) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function ae(e, t, n = {}) {
|
|
148
|
-
const a = n.enabled !== !1 && !!e && !!t,
|
|
148
|
+
const a = n.enabled !== !1 && !!e && !!t, u = 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:
|
|
153
|
+
queryFn: u,
|
|
154
154
|
enabled: a,
|
|
155
155
|
options: n
|
|
156
156
|
});
|
|
157
157
|
return s(i);
|
|
158
158
|
}
|
|
159
159
|
function oe(e = {}) {
|
|
160
|
-
return
|
|
160
|
+
return o({
|
|
161
161
|
mutationFn: async (t) => await r.statement.createNewRun(t),
|
|
162
162
|
...e
|
|
163
163
|
});
|
|
@@ -169,13 +169,13 @@ function ue(e, t = {}) {
|
|
|
169
169
|
return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
|
|
170
170
|
limit: t.limit || 1e3
|
|
171
171
|
});
|
|
172
|
-
}),
|
|
172
|
+
}), u = 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(u);
|
|
179
179
|
}
|
|
180
180
|
function se() {
|
|
181
181
|
const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), t = l({
|
|
@@ -194,7 +194,7 @@ function ie() {
|
|
|
194
194
|
return s(t);
|
|
195
195
|
}
|
|
196
196
|
function ce(e, t, n, a = {}) {
|
|
197
|
-
const
|
|
197
|
+
const u = !!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,21 +205,21 @@ function ce(e, t, n, a = {}) {
|
|
|
205
205
|
}), y = l({
|
|
206
206
|
queryKey: ["file", "getFileUrlByFileId", e, t, n],
|
|
207
207
|
queryFn: i,
|
|
208
|
-
enabled:
|
|
208
|
+
enabled: u,
|
|
209
209
|
options: a
|
|
210
210
|
});
|
|
211
211
|
return s(y);
|
|
212
212
|
}
|
|
213
213
|
function le(e, t, n = {}) {
|
|
214
|
-
const a = e?.trim(),
|
|
214
|
+
const a = e?.trim(), u = t?.trim(), i = !!(a && u), y = c(async () => await r.files.getFileByFolderIdAndName({
|
|
215
215
|
folderId: a,
|
|
216
|
-
name:
|
|
216
|
+
name: u
|
|
217
217
|
})), d = l({
|
|
218
218
|
queryKey: [
|
|
219
219
|
"file",
|
|
220
220
|
"getFileByFolderIdAndName",
|
|
221
221
|
a,
|
|
222
|
-
|
|
222
|
+
u
|
|
223
223
|
],
|
|
224
224
|
queryFn: y,
|
|
225
225
|
enabled: i,
|
|
@@ -228,13 +228,13 @@ function le(e, t, n = {}) {
|
|
|
228
228
|
return s(d);
|
|
229
229
|
}
|
|
230
230
|
function ye(e, t, n = {}) {
|
|
231
|
-
const a = !!e && !!t,
|
|
231
|
+
const a = !!e && !!t, u = 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: u,
|
|
238
238
|
enabled: a,
|
|
239
239
|
options: n
|
|
240
240
|
});
|
|
@@ -245,29 +245,29 @@ function de(e, t = {}) {
|
|
|
245
245
|
if (!e)
|
|
246
246
|
throw new Error("Run ID is required");
|
|
247
247
|
return await r.statement.getRunResultById(e);
|
|
248
|
-
}),
|
|
248
|
+
}), u = 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(u);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function ge(e, t = {}) {
|
|
257
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
|
+
}), u = 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(u);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const
|
|
269
|
+
function fe(e, t, n, a = {}) {
|
|
270
|
+
const u = !!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,66 +278,66 @@ function we(e, t, n, a = {}) {
|
|
|
278
278
|
}), y = l({
|
|
279
279
|
queryKey: ["statement", "getData", e, t, n],
|
|
280
280
|
queryFn: i,
|
|
281
|
-
enabled:
|
|
281
|
+
enabled: u,
|
|
282
282
|
options: a
|
|
283
283
|
});
|
|
284
284
|
return s(y);
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function we(e, t = {}) {
|
|
287
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
|
+
}), u = 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(u);
|
|
298
298
|
}
|
|
299
299
|
function me(e, t = {}) {
|
|
300
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
|
+
}), u = 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(u);
|
|
311
311
|
}
|
|
312
312
|
function Fe(e, t = {}) {
|
|
313
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
|
+
}), u = 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(u);
|
|
324
324
|
}
|
|
325
325
|
function qe(e, t = {}) {
|
|
326
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
|
+
}), u = 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(u);
|
|
337
337
|
}
|
|
338
|
-
var
|
|
338
|
+
var P = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(P || {});
|
|
339
339
|
function be(e = {}) {
|
|
340
|
-
return
|
|
340
|
+
return o({
|
|
341
341
|
mutationFn: async (t) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(t)),
|
|
342
342
|
...e
|
|
343
343
|
});
|
|
@@ -347,54 +347,54 @@ function De(e, t = {}) {
|
|
|
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
|
+
}), u = 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(u);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Te(e, t = {}) {
|
|
359
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
|
+
}), u = 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(u);
|
|
370
370
|
}
|
|
371
371
|
function pe(e, t, n = {}) {
|
|
372
372
|
const {
|
|
373
373
|
limitParams: a = { limit: 2e3, limitFrom: "top" },
|
|
374
|
-
pageParams:
|
|
374
|
+
pageParams: u,
|
|
375
375
|
sortParams: i,
|
|
376
376
|
offsetParam: y,
|
|
377
377
|
...d
|
|
378
|
-
} = n,
|
|
378
|
+
} = n, f = d.enabled !== !1 && !!e && !!t, w = 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: u,
|
|
385
385
|
limitParams: a,
|
|
386
386
|
sortParams: i,
|
|
387
387
|
offsetParam: y
|
|
388
388
|
});
|
|
389
389
|
}), m = l({
|
|
390
390
|
queryKey: ["inputTableData", e, t],
|
|
391
|
-
queryFn:
|
|
392
|
-
enabled:
|
|
391
|
+
queryFn: w,
|
|
392
|
+
enabled: f,
|
|
393
393
|
options: d
|
|
394
394
|
});
|
|
395
395
|
return s(m);
|
|
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,
|
|
@@ -402,7 +402,7 @@ function Re() {
|
|
|
402
402
|
});
|
|
403
403
|
return s(t);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Re(e, t = {}) {
|
|
406
406
|
const n = [
|
|
407
407
|
"enabled",
|
|
408
408
|
"staleTime",
|
|
@@ -411,106 +411,106 @@ function Te(e, t = {}) {
|
|
|
411
411
|
"retryDelay",
|
|
412
412
|
"onSuccess",
|
|
413
413
|
"onError"
|
|
414
|
-
], { limit: a, offset:
|
|
414
|
+
], { limit: a, offset: u, order: i, order_by: y, ...d } = t, f = {}, w = { limit: a, offset: u, order: i, order_by: y };
|
|
415
415
|
Object.keys(d).forEach((F) => {
|
|
416
|
-
n.includes(F) ?
|
|
416
|
+
n.includes(F) ? f[F] = d[F] : w[F] = d[F];
|
|
417
417
|
});
|
|
418
|
-
const m =
|
|
418
|
+
const m = f.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,
|
|
421
|
+
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, w);
|
|
422
422
|
}), q = l({
|
|
423
423
|
queryKey: ["inputTableRows", e, t],
|
|
424
424
|
queryFn: b,
|
|
425
425
|
enabled: m,
|
|
426
|
-
options:
|
|
426
|
+
options: f
|
|
427
427
|
});
|
|
428
428
|
return s(q);
|
|
429
429
|
}
|
|
430
430
|
function Se(e = {}) {
|
|
431
|
-
const t =
|
|
432
|
-
return
|
|
431
|
+
const t = g();
|
|
432
|
+
return o({
|
|
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, u) => {
|
|
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, u) => {
|
|
440
440
|
e.onError?.(n);
|
|
441
441
|
},
|
|
442
442
|
...e
|
|
443
443
|
});
|
|
444
444
|
}
|
|
445
445
|
function ke(e = {}) {
|
|
446
|
-
const t =
|
|
447
|
-
return
|
|
446
|
+
const t = g();
|
|
447
|
+
return o({
|
|
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, u) => {
|
|
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, u) => {
|
|
459
459
|
e.onError?.(n);
|
|
460
460
|
},
|
|
461
461
|
...e
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
function xe(e = {}) {
|
|
465
|
-
const t =
|
|
466
|
-
return
|
|
465
|
+
const t = g();
|
|
466
|
+
return o({
|
|
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, u) => {
|
|
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, u) => {
|
|
478
478
|
e.onError?.(n);
|
|
479
479
|
},
|
|
480
480
|
...e
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
483
|
+
function Ke(e = {}) {
|
|
484
|
+
return o({
|
|
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 Ee(e = {}) {
|
|
490
|
+
return o({
|
|
491
491
|
mutationFn: async (t) => await r.definition.runPublishedDefinition(t),
|
|
492
492
|
...e
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
495
|
+
function Ce(e = {}) {
|
|
496
|
+
return o({
|
|
497
497
|
mutationFn: async (t) => await r.definition.runSampleDefinition(t),
|
|
498
498
|
...e
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
|
-
function
|
|
502
|
-
return
|
|
501
|
+
function Pe(e = {}) {
|
|
502
|
+
return o({
|
|
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 Ve(e = {}) {
|
|
508
|
+
return o({
|
|
509
509
|
mutationFn: async (t) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(t)),
|
|
510
510
|
...e
|
|
511
511
|
});
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function V(e = {}) {
|
|
514
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,
|
|
@@ -519,13 +519,13 @@ function G(e = {}) {
|
|
|
519
519
|
});
|
|
520
520
|
return s(a);
|
|
521
521
|
}
|
|
522
|
-
const Ie =
|
|
523
|
-
function
|
|
524
|
-
const a = n.enabled !== !1 && !!e?.trim(),
|
|
522
|
+
const Ie = V, I = ["Owner", "Editor", "Viewer", "ReadOnly"], T = r.permissions?.getPermissions;
|
|
523
|
+
function Ge(e, t, n = {}) {
|
|
524
|
+
const a = n.enabled !== !1 && !!e?.trim(), u = c(
|
|
525
525
|
async () => {
|
|
526
526
|
if (!e?.trim())
|
|
527
527
|
return {};
|
|
528
|
-
if (!
|
|
528
|
+
if (!T)
|
|
529
529
|
throw new Error(
|
|
530
530
|
"@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
|
|
531
531
|
);
|
|
@@ -534,7 +534,7 @@ function Pe(e, t, n = {}) {
|
|
|
534
534
|
throw new Error(
|
|
535
535
|
"@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
|
|
536
536
|
);
|
|
537
|
-
return await
|
|
537
|
+
return await T({
|
|
538
538
|
objectId: e.trim(),
|
|
539
539
|
objectType: t,
|
|
540
540
|
user: y.userId,
|
|
@@ -546,14 +546,14 @@ function Pe(e, t, n = {}) {
|
|
|
546
546
|
0
|
|
547
547
|
), i = l({
|
|
548
548
|
queryKey: ["documentPermissions", e ?? "", t, n.relations ?? []],
|
|
549
|
-
queryFn:
|
|
549
|
+
queryFn: u,
|
|
550
550
|
enabled: a,
|
|
551
551
|
options: n
|
|
552
552
|
});
|
|
553
553
|
return s(i);
|
|
554
554
|
}
|
|
555
555
|
function Be(e = {}) {
|
|
556
|
-
return
|
|
556
|
+
return o({
|
|
557
557
|
mutationFn: async (t) => (console.log("Uploading file..."), await r.files.fileUpload(t)),
|
|
558
558
|
...e
|
|
559
559
|
});
|
|
@@ -563,14 +563,14 @@ function Ae({
|
|
|
563
563
|
contentType: t = "application/json",
|
|
564
564
|
method: n = "GET"
|
|
565
565
|
}, a = {}) {
|
|
566
|
-
const
|
|
566
|
+
const u = !!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:
|
|
573
|
+
enabled: u,
|
|
574
574
|
options: a
|
|
575
575
|
});
|
|
576
576
|
return s(y);
|
|
@@ -580,47 +580,47 @@ function Oe(e, t = {}) {
|
|
|
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
|
+
}), u = 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(u);
|
|
590
590
|
}
|
|
591
591
|
function Ue(e, t = {}) {
|
|
592
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
|
+
}), u = 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(u);
|
|
603
603
|
}
|
|
604
604
|
function ve(e = {}) {
|
|
605
|
-
return
|
|
605
|
+
return o({
|
|
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 Qe(e = {}) {
|
|
611
|
+
return o({
|
|
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 Me(e = {}) {
|
|
617
|
+
return o({
|
|
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 We(e, t, n = {}) {
|
|
623
|
+
const a = !!e && !!t, u = 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 });
|
|
@@ -628,26 +628,26 @@ function Qe(e, t, n = {}) {
|
|
|
628
628
|
return s(
|
|
629
629
|
l({
|
|
630
630
|
queryKey: ["form", "getFormSchema", e, t],
|
|
631
|
-
queryFn:
|
|
631
|
+
queryFn: u,
|
|
632
632
|
enabled: a,
|
|
633
633
|
options: n
|
|
634
634
|
})
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function _e(e, t = {}) {
|
|
638
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
|
+
}), u = 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(u);
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Le(e, t = {}) {
|
|
651
651
|
return s({
|
|
652
652
|
queryKey: ["form", e],
|
|
653
653
|
queryFn: async () => {
|
|
@@ -660,19 +660,19 @@ function _e(e, t = {}) {
|
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
662
|
function He(e = {}) {
|
|
663
|
-
return
|
|
663
|
+
return o({
|
|
664
664
|
mutationFn: async (t) => await r.form.createOrUpdateForm(t),
|
|
665
665
|
...e
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
668
|
function Ne(e = {}) {
|
|
669
|
-
return
|
|
669
|
+
return o({
|
|
670
670
|
mutationFn: async (t) => await r.audit.getAuditLogs(t),
|
|
671
671
|
...e
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
674
|
function ze(e = {}) {
|
|
675
|
-
return
|
|
675
|
+
return o({
|
|
676
676
|
mutationFn: async (t) => await r.audit.createAuditLog(t),
|
|
677
677
|
...e
|
|
678
678
|
});
|
|
@@ -691,26 +691,26 @@ function Je(e = {}) {
|
|
|
691
691
|
...e
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
694
|
+
function G(e = {}) {
|
|
695
|
+
return o({
|
|
696
696
|
mutationFn: async (t) => await r.reconV2.createReconV2(t),
|
|
697
697
|
...e
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
700
|
function B(e = {}) {
|
|
701
|
-
return
|
|
701
|
+
return o({
|
|
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 o({
|
|
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 o({
|
|
714
714
|
mutationFn: async (t) => await r.reconV2.runReconV2(t),
|
|
715
715
|
...e
|
|
716
716
|
});
|
|
@@ -746,7 +746,7 @@ function v(e, t = {}) {
|
|
|
746
746
|
...t
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function Q(e, t = {}) {
|
|
750
750
|
return s({
|
|
751
751
|
queryKey: [
|
|
752
752
|
"reconV2",
|
|
@@ -765,7 +765,7 @@ function M(e, t = {}) {
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
function Xe(e = {}) {
|
|
768
|
-
return
|
|
768
|
+
return o({
|
|
769
769
|
mutationFn: async (t) => await r.reconV2.startReconV2Profile(t),
|
|
770
770
|
...e
|
|
771
771
|
});
|
|
@@ -782,7 +782,7 @@ function Ze(e, t = "left", n = {}) {
|
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
784
|
function et(e = {}) {
|
|
785
|
-
return
|
|
785
|
+
return o({
|
|
786
786
|
mutationFn: async (t) => await r.reconV2.startReconV2Clean(t),
|
|
787
787
|
...e
|
|
788
788
|
});
|
|
@@ -821,11 +821,11 @@ function rt(e, t, n = {}) {
|
|
|
821
821
|
...n
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
|
-
const
|
|
825
|
-
function
|
|
824
|
+
const M = ["SUCCEEDED", "FAILED"];
|
|
825
|
+
function W(e, t = {}) {
|
|
826
826
|
const [n, a] = D(
|
|
827
827
|
void 0
|
|
828
|
-
), [
|
|
828
|
+
), [u, i] = D(!1), y = S(t.onComplete);
|
|
829
829
|
return y.current = t.onComplete, k(() => {
|
|
830
830
|
if (!e)
|
|
831
831
|
return;
|
|
@@ -833,12 +833,12 @@ function Q(e, t = {}) {
|
|
|
833
833
|
if (!d)
|
|
834
834
|
return;
|
|
835
835
|
a(void 0), i(!1);
|
|
836
|
-
const
|
|
837
|
-
let
|
|
836
|
+
const f = R.websocketUtils.ReconResultChannel;
|
|
837
|
+
let w = !1;
|
|
838
838
|
const m = () => {
|
|
839
|
-
|
|
839
|
+
w || (w = !0, d.unbind(f, e));
|
|
840
840
|
};
|
|
841
|
-
return d.bind(
|
|
841
|
+
return d.bind(f, e, (b) => {
|
|
842
842
|
let q;
|
|
843
843
|
try {
|
|
844
844
|
q = typeof b == "string" ? JSON.parse(b) : b;
|
|
@@ -847,11 +847,11 @@ function Q(e, t = {}) {
|
|
|
847
847
|
}
|
|
848
848
|
a(q);
|
|
849
849
|
const F = q?.status?.toUpperCase();
|
|
850
|
-
F &&
|
|
850
|
+
F && M.includes(F) && (i(!0), y.current?.(q), m());
|
|
851
851
|
}), m;
|
|
852
|
-
}, [e]), { data: n, isTerminal:
|
|
852
|
+
}, [e]), { data: n, isTerminal: u };
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function _(e, t = {}) {
|
|
855
855
|
const n = e?.trim();
|
|
856
856
|
return s({
|
|
857
857
|
queryKey: ["reconV2", "workflow", n],
|
|
@@ -860,7 +860,7 @@ function L(e, t = {}) {
|
|
|
860
860
|
...t
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function L(e, t) {
|
|
864
864
|
return t.split(".").reduce(
|
|
865
865
|
(n, a) => n && typeof n == "object" ? n[a] : void 0,
|
|
866
866
|
e
|
|
@@ -870,8 +870,8 @@ function at(e, t = {}) {
|
|
|
870
870
|
const n = O(t);
|
|
871
871
|
return {
|
|
872
872
|
workflows: x(() => {
|
|
873
|
-
const
|
|
874
|
-
return e?.key ?
|
|
873
|
+
const u = n.data ?? [];
|
|
874
|
+
return e?.key ? u.filter((i) => L(i, e.key) === e.value) : u;
|
|
875
875
|
}, [n.data, e?.key, e?.value]),
|
|
876
876
|
isLoading: n.isLoading,
|
|
877
877
|
error: n.error,
|
|
@@ -879,7 +879,7 @@ function at(e, t = {}) {
|
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
881
|
function ot(e, t = {}) {
|
|
882
|
-
const n =
|
|
882
|
+
const n = _(e, t);
|
|
883
883
|
return {
|
|
884
884
|
workflow: n.data,
|
|
885
885
|
isLoading: n.isLoading,
|
|
@@ -888,7 +888,7 @@ function ot(e, t = {}) {
|
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
890
|
function ut() {
|
|
891
|
-
const e =
|
|
891
|
+
const e = G(), t = B();
|
|
892
892
|
return {
|
|
893
893
|
create: e.mutateAsync,
|
|
894
894
|
update: t.mutateAsync,
|
|
@@ -898,13 +898,13 @@ function ut() {
|
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
900
|
function st(e, t = {}) {
|
|
901
|
-
const n = e?.trim(), [a,
|
|
901
|
+
const n = e?.trim(), [a, u] = D(void 0), i = A(), y = W(a, { onComplete: t.onComplete }), d = U(n);
|
|
902
902
|
return {
|
|
903
|
-
startRun: async (
|
|
903
|
+
startRun: async (w = {}) => {
|
|
904
904
|
if (!n)
|
|
905
905
|
throw new Error("workflowId is required to start a run");
|
|
906
|
-
const m = await i.mutateAsync({ workflowId: n, ...
|
|
907
|
-
return
|
|
906
|
+
const m = await i.mutateAsync({ workflowId: n, ...w });
|
|
907
|
+
return u(m?.runId), m?.runId;
|
|
908
908
|
},
|
|
909
909
|
runId: a,
|
|
910
910
|
status: y.data,
|
|
@@ -919,14 +919,14 @@ function it({
|
|
|
919
919
|
workflowId: t,
|
|
920
920
|
exceptionType: n,
|
|
921
921
|
ruleFilter: a,
|
|
922
|
-
orderBy:
|
|
922
|
+
orderBy: u
|
|
923
923
|
}) {
|
|
924
|
-
const i = v(e), y =
|
|
924
|
+
const i = v(e), y = Q({
|
|
925
925
|
runId: e ?? void 0,
|
|
926
926
|
workflowId: t ?? void 0,
|
|
927
927
|
exceptionType: n,
|
|
928
928
|
ruleFilter: a,
|
|
929
|
-
orderBy:
|
|
929
|
+
orderBy: u
|
|
930
930
|
}), d = y.data?.result;
|
|
931
931
|
return {
|
|
932
932
|
runResult: i.data,
|
|
@@ -952,18 +952,18 @@ function lt(e = {}) {
|
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
954
|
function yt(e = {}) {
|
|
955
|
-
return
|
|
955
|
+
return o({
|
|
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 o({
|
|
962
962
|
mutationFn: async (t) => await r.process.reassignTask(t),
|
|
963
963
|
...e
|
|
964
964
|
});
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function gt(e, t = {}) {
|
|
967
967
|
return s({
|
|
968
968
|
queryKey: ["processTriggers", e],
|
|
969
969
|
queryFn: async () => await r.process.getTriggersBySheet(e),
|
|
@@ -971,9 +971,9 @@ function ft(e, t = {}) {
|
|
|
971
971
|
...t
|
|
972
972
|
});
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
const t =
|
|
976
|
-
return
|
|
974
|
+
function ft(e = {}) {
|
|
975
|
+
const t = g();
|
|
976
|
+
return o({
|
|
977
977
|
mutationFn: async (n) => await r.process.registerProcessTrigger(n),
|
|
978
978
|
onSuccess: (n, a) => {
|
|
979
979
|
t.invalidateQueries({
|
|
@@ -983,9 +983,9 @@ function wt(e = {}) {
|
|
|
983
983
|
...e
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
|
-
function
|
|
987
|
-
const t =
|
|
988
|
-
return
|
|
986
|
+
function wt(e = {}) {
|
|
987
|
+
const t = g();
|
|
988
|
+
return o({
|
|
989
989
|
mutationFn: async ({ id: n }) => await r.process.deleteProcessTrigger(n),
|
|
990
990
|
onSuccess: (n, a) => {
|
|
991
991
|
t.invalidateQueries({
|
|
@@ -996,8 +996,8 @@ function gt(e = {}) {
|
|
|
996
996
|
});
|
|
997
997
|
}
|
|
998
998
|
function mt(e = {}) {
|
|
999
|
-
const t =
|
|
1000
|
-
return
|
|
999
|
+
const t = g();
|
|
1000
|
+
return o({
|
|
1001
1001
|
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.pauseSchedule(n, a),
|
|
1002
1002
|
onSuccess: (n, a) => {
|
|
1003
1003
|
t.invalidateQueries({
|
|
@@ -1010,8 +1010,8 @@ function mt(e = {}) {
|
|
|
1010
1010
|
});
|
|
1011
1011
|
}
|
|
1012
1012
|
function Ft(e = {}) {
|
|
1013
|
-
const t =
|
|
1014
|
-
return
|
|
1013
|
+
const t = g();
|
|
1014
|
+
return o({
|
|
1015
1015
|
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.resumeSchedule(n, a),
|
|
1016
1016
|
onSuccess: (n, a) => {
|
|
1017
1017
|
t.invalidateQueries({
|
|
@@ -1035,8 +1035,8 @@ function qt(e, t, n = {}) {
|
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
function bt(e = {}) {
|
|
1038
|
-
const t =
|
|
1039
|
-
return
|
|
1038
|
+
const t = g();
|
|
1039
|
+
return o({
|
|
1040
1040
|
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.executeNow(n, a),
|
|
1041
1041
|
onSuccess: (n, a) => {
|
|
1042
1042
|
t.invalidateQueries({
|
|
@@ -1046,39 +1046,175 @@ function bt(e = {}) {
|
|
|
1046
1046
|
...e
|
|
1047
1047
|
});
|
|
1048
1048
|
}
|
|
1049
|
-
function Dt(e = {}
|
|
1049
|
+
function Dt(e = {}) {
|
|
1050
|
+
const t = g();
|
|
1051
|
+
return o({
|
|
1052
|
+
mutationFn: async (n) => await r.processTree.createOrUpdateProcessTreeTrigger(
|
|
1053
|
+
n
|
|
1054
|
+
),
|
|
1055
|
+
onSuccess: (n, a) => {
|
|
1056
|
+
t.invalidateQueries({
|
|
1057
|
+
queryKey: ["processTreeTriggers", a.sheetId]
|
|
1058
|
+
});
|
|
1059
|
+
},
|
|
1060
|
+
...e
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
function Tt(e = {}) {
|
|
1064
|
+
const t = g();
|
|
1065
|
+
return o({
|
|
1066
|
+
mutationFn: async (n) => await r.processTree.executeProcessTreeTrigger(n),
|
|
1067
|
+
onSuccess: (n, a) => {
|
|
1068
|
+
t.invalidateQueries({
|
|
1069
|
+
queryKey: ["processTreeRuns", a.sheetId]
|
|
1070
|
+
});
|
|
1071
|
+
},
|
|
1072
|
+
...e
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
function pt(e = {}) {
|
|
1076
|
+
const t = g();
|
|
1077
|
+
return o({
|
|
1078
|
+
mutationFn: async ({ payload: n }) => await r.processTree.terminatePipelines(n),
|
|
1079
|
+
onSuccess: (n, a) => {
|
|
1080
|
+
a.sheetId && t.invalidateQueries({
|
|
1081
|
+
queryKey: ["processTreeRuns", a.sheetId]
|
|
1082
|
+
}), a.instanceId && t.invalidateQueries({
|
|
1083
|
+
queryKey: ["processTreeRun", a.instanceId]
|
|
1084
|
+
});
|
|
1085
|
+
},
|
|
1086
|
+
...e
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
function ht(e = {}) {
|
|
1090
|
+
const t = g();
|
|
1091
|
+
return o({
|
|
1092
|
+
mutationFn: async (n) => await r.processTree.logProcessTreeRun(n),
|
|
1093
|
+
onSuccess: (n, a) => {
|
|
1094
|
+
t.invalidateQueries({
|
|
1095
|
+
queryKey: ["processTreeRuns", a.sheetId]
|
|
1096
|
+
}), t.invalidateQueries({
|
|
1097
|
+
queryKey: ["processTreeRun", a.instanceId]
|
|
1098
|
+
});
|
|
1099
|
+
},
|
|
1100
|
+
...e
|
|
1101
|
+
});
|
|
1102
|
+
}
|
|
1103
|
+
function Rt(e = {}) {
|
|
1104
|
+
const t = g();
|
|
1105
|
+
return o({
|
|
1106
|
+
mutationFn: async ({
|
|
1107
|
+
instanceId: n,
|
|
1108
|
+
context: a
|
|
1109
|
+
}) => await r.processTree.updateProcessTreeRunContext(
|
|
1110
|
+
n,
|
|
1111
|
+
a
|
|
1112
|
+
),
|
|
1113
|
+
onSuccess: (n, a) => {
|
|
1114
|
+
t.invalidateQueries({
|
|
1115
|
+
queryKey: ["processTreeRun", a.instanceId]
|
|
1116
|
+
});
|
|
1117
|
+
},
|
|
1118
|
+
...e
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
function St(e = {}) {
|
|
1122
|
+
const t = g();
|
|
1123
|
+
return o({
|
|
1124
|
+
mutationFn: async ({ id: n }) => await r.processTree.deleteProcessTreeTrigger(n),
|
|
1125
|
+
onSuccess: (n, a) => {
|
|
1126
|
+
t.invalidateQueries({
|
|
1127
|
+
queryKey: a.sheetId ? ["processTreeTriggers", a.sheetId] : ["processTreeTriggers"]
|
|
1128
|
+
});
|
|
1129
|
+
},
|
|
1130
|
+
...e
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
function kt(e, t = {}) {
|
|
1134
|
+
return s({
|
|
1135
|
+
queryKey: ["processTreeTrigger", e],
|
|
1136
|
+
queryFn: async () => await r.processTree.getProcessTreeTrigger(e),
|
|
1137
|
+
enabled: !!e,
|
|
1138
|
+
...t
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
function xt(e, t = {}) {
|
|
1142
|
+
return s({
|
|
1143
|
+
queryKey: ["processTreeTriggers", e],
|
|
1144
|
+
queryFn: async () => await r.processTree.getProcessTreeTriggersBySheetId(e),
|
|
1145
|
+
enabled: !!e,
|
|
1146
|
+
...t
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
function Kt(e, t = {}) {
|
|
1150
|
+
return s({
|
|
1151
|
+
queryKey: ["processTreeRuns", e],
|
|
1152
|
+
queryFn: async () => await r.processTree.getProcessTreeRunsBySheetId(e),
|
|
1153
|
+
enabled: !!e,
|
|
1154
|
+
...t
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
function Et(e, t, n = {}) {
|
|
1158
|
+
return s({
|
|
1159
|
+
queryKey: [
|
|
1160
|
+
"processTreeRuns",
|
|
1161
|
+
e,
|
|
1162
|
+
"paginated",
|
|
1163
|
+
t?.page,
|
|
1164
|
+
t?.pageSize,
|
|
1165
|
+
t?.orderByCreatedDate
|
|
1166
|
+
],
|
|
1167
|
+
queryFn: async () => await r.processTree.getProcessTreeRunsBySheetIdPaginated(
|
|
1168
|
+
e,
|
|
1169
|
+
t
|
|
1170
|
+
),
|
|
1171
|
+
enabled: !!e,
|
|
1172
|
+
...n
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
function Ct(e, t = {}) {
|
|
1176
|
+
return s({
|
|
1177
|
+
queryKey: ["processTreeRun", e],
|
|
1178
|
+
queryFn: async () => await r.processTree.getProcessTreeRunByInstanceId(
|
|
1179
|
+
e
|
|
1180
|
+
),
|
|
1181
|
+
enabled: !!e,
|
|
1182
|
+
...t
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
function Pt(e = {}, t = {}) {
|
|
1050
1186
|
return s({
|
|
1051
1187
|
queryKey: ["inboxItems", "all", e.page, e.perPage],
|
|
1052
1188
|
queryFn: async () => await r.inboxItems.getAllInboxItems(e),
|
|
1053
1189
|
...t
|
|
1054
1190
|
});
|
|
1055
1191
|
}
|
|
1056
|
-
function
|
|
1057
|
-
return
|
|
1192
|
+
function Vt(e = {}) {
|
|
1193
|
+
return o({
|
|
1058
1194
|
mutationFn: async (t) => await r.inboxItems.markItemAsRead(t),
|
|
1059
1195
|
...e
|
|
1060
1196
|
});
|
|
1061
1197
|
}
|
|
1062
|
-
function
|
|
1063
|
-
return
|
|
1198
|
+
function It(e = {}) {
|
|
1199
|
+
return o({
|
|
1064
1200
|
mutationFn: async (t) => await r.inboxItems.markItemAsUnread(t),
|
|
1065
1201
|
...e
|
|
1066
1202
|
});
|
|
1067
1203
|
}
|
|
1068
|
-
function
|
|
1069
|
-
return
|
|
1204
|
+
function Gt(e = {}) {
|
|
1205
|
+
return o({
|
|
1070
1206
|
mutationFn: async (t) => await r.inboxItems.createInboxItemPerUser(t),
|
|
1071
1207
|
...e
|
|
1072
1208
|
});
|
|
1073
1209
|
}
|
|
1074
|
-
function
|
|
1210
|
+
function Bt(e, t = {}) {
|
|
1075
1211
|
return s({
|
|
1076
1212
|
queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
|
|
1077
1213
|
queryFn: async () => await r.emailEngine.getAllConversations(e),
|
|
1078
1214
|
...t
|
|
1079
1215
|
});
|
|
1080
1216
|
}
|
|
1081
|
-
function
|
|
1217
|
+
function At(e, t = {}) {
|
|
1082
1218
|
return s({
|
|
1083
1219
|
queryKey: ["emailConversation", e],
|
|
1084
1220
|
queryFn: async () => await r.emailEngine.getConversation({
|
|
@@ -1088,9 +1224,9 @@ function St(e, t = {}) {
|
|
|
1088
1224
|
...t
|
|
1089
1225
|
});
|
|
1090
1226
|
}
|
|
1091
|
-
function
|
|
1092
|
-
const t =
|
|
1093
|
-
return
|
|
1227
|
+
function Ot(e = {}) {
|
|
1228
|
+
const t = g();
|
|
1229
|
+
return o({
|
|
1094
1230
|
mutationFn: async (n) => await r.emailEngine.createConversation(n),
|
|
1095
1231
|
onSuccess: () => {
|
|
1096
1232
|
t.invalidateQueries({ queryKey: ["emailConversations"] });
|
|
@@ -1098,9 +1234,9 @@ function kt(e = {}) {
|
|
|
1098
1234
|
...e
|
|
1099
1235
|
});
|
|
1100
1236
|
}
|
|
1101
|
-
function
|
|
1102
|
-
const t =
|
|
1103
|
-
return
|
|
1237
|
+
function Ut(e = {}) {
|
|
1238
|
+
const t = g();
|
|
1239
|
+
return o({
|
|
1104
1240
|
mutationFn: async (n) => await r.emailEngine.replyToConversation(n),
|
|
1105
1241
|
onSuccess: (n, a) => {
|
|
1106
1242
|
t.invalidateQueries({
|
|
@@ -1110,7 +1246,7 @@ function xt(e = {}) {
|
|
|
1110
1246
|
...e
|
|
1111
1247
|
});
|
|
1112
1248
|
}
|
|
1113
|
-
function
|
|
1249
|
+
function vt(e, t = {}) {
|
|
1114
1250
|
return s({
|
|
1115
1251
|
queryKey: [
|
|
1116
1252
|
"emailMessagesBySender",
|
|
@@ -1125,13 +1261,13 @@ function Et(e, t = {}) {
|
|
|
1125
1261
|
...t
|
|
1126
1262
|
});
|
|
1127
1263
|
}
|
|
1128
|
-
function
|
|
1129
|
-
return
|
|
1264
|
+
function Qt(e = {}) {
|
|
1265
|
+
return o({
|
|
1130
1266
|
mutationFn: async (t) => await r.emailEngine.searchMessages(t),
|
|
1131
1267
|
...e
|
|
1132
1268
|
});
|
|
1133
1269
|
}
|
|
1134
|
-
function
|
|
1270
|
+
function Mt(e = {}) {
|
|
1135
1271
|
const t = c(async () => await r.tcn.getAuthUrl()), n = l({
|
|
1136
1272
|
queryKey: ["tcn", "authUrl"],
|
|
1137
1273
|
queryFn: t,
|
|
@@ -1140,132 +1276,132 @@ function Vt(e = {}) {
|
|
|
1140
1276
|
});
|
|
1141
1277
|
return s(n);
|
|
1142
1278
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
1279
|
+
function Wt(e = {}) {
|
|
1280
|
+
return o({
|
|
1145
1281
|
mutationFn: async ({ code: t }) => await r.tcn.exchangeCode(t),
|
|
1146
1282
|
...e
|
|
1147
1283
|
});
|
|
1148
1284
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1285
|
+
function _t(e = {}) {
|
|
1286
|
+
return o({
|
|
1151
1287
|
mutationFn: async ({ refresh_token: t }) => await r.tcn.refreshToken(t),
|
|
1152
1288
|
...e
|
|
1153
1289
|
});
|
|
1154
1290
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return
|
|
1291
|
+
function Lt(e = {}) {
|
|
1292
|
+
return o({
|
|
1157
1293
|
mutationFn: async ({ token: t }) => await r.tcn.getCurrentAgent(t),
|
|
1158
1294
|
...e
|
|
1159
1295
|
});
|
|
1160
1296
|
}
|
|
1161
|
-
function
|
|
1162
|
-
return
|
|
1297
|
+
function Ht(e = {}) {
|
|
1298
|
+
return o({
|
|
1163
1299
|
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getAgentSkills(t, n),
|
|
1164
1300
|
...e
|
|
1165
1301
|
});
|
|
1166
1302
|
}
|
|
1167
|
-
function
|
|
1168
|
-
return
|
|
1303
|
+
function Nt(e = {}) {
|
|
1304
|
+
return o({
|
|
1169
1305
|
mutationFn: async ({ token: t, huntGroupSid: n, skills: a }) => await r.tcn.createSession(t, n, a),
|
|
1170
1306
|
...e
|
|
1171
1307
|
});
|
|
1172
1308
|
}
|
|
1173
|
-
function
|
|
1174
|
-
return
|
|
1309
|
+
function zt(e = {}) {
|
|
1310
|
+
return o({
|
|
1175
1311
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.keepAlive(t, n),
|
|
1176
1312
|
...e
|
|
1177
1313
|
});
|
|
1178
1314
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return
|
|
1315
|
+
function jt(e = {}) {
|
|
1316
|
+
return o({
|
|
1181
1317
|
mutationFn: async ({ token: t }) => await r.tcn.agentGetStatus(t),
|
|
1182
1318
|
...e
|
|
1183
1319
|
});
|
|
1184
1320
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1321
|
+
function Jt(e = {}) {
|
|
1322
|
+
return o({
|
|
1187
1323
|
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getHuntGroupAgentSettings(t, n),
|
|
1188
1324
|
...e
|
|
1189
1325
|
});
|
|
1190
1326
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return
|
|
1327
|
+
function Yt(e = {}) {
|
|
1328
|
+
return o({
|
|
1193
1329
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.dialManualPrepare(t, n),
|
|
1194
1330
|
...e
|
|
1195
1331
|
});
|
|
1196
1332
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return
|
|
1333
|
+
function $t(e = {}) {
|
|
1334
|
+
return o({
|
|
1199
1335
|
mutationFn: async ({ token: t, call: n }) => await r.tcn.processManualDial(t, n),
|
|
1200
1336
|
...e
|
|
1201
1337
|
});
|
|
1202
1338
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return
|
|
1205
|
-
mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData:
|
|
1339
|
+
function Xt(e = {}) {
|
|
1340
|
+
return o({
|
|
1341
|
+
mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: u }) => await r.tcn.manualDialStart(
|
|
1206
1342
|
t,
|
|
1207
1343
|
n,
|
|
1208
1344
|
a,
|
|
1209
|
-
|
|
1345
|
+
u
|
|
1210
1346
|
),
|
|
1211
1347
|
...e
|
|
1212
1348
|
});
|
|
1213
1349
|
}
|
|
1214
|
-
function
|
|
1215
|
-
return
|
|
1350
|
+
function Zt(e = {}) {
|
|
1351
|
+
return o({
|
|
1216
1352
|
mutationFn: async ({ token: t, sessionSid: n, reason: a }) => await r.tcn.agentDisconnect(t, n, a),
|
|
1217
1353
|
...e
|
|
1218
1354
|
});
|
|
1219
1355
|
}
|
|
1220
|
-
function
|
|
1221
|
-
return
|
|
1356
|
+
function en(e = {}) {
|
|
1357
|
+
return o({
|
|
1222
1358
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentPause(t, n),
|
|
1223
1359
|
...e
|
|
1224
1360
|
});
|
|
1225
1361
|
}
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1362
|
+
function tn(e = {}) {
|
|
1363
|
+
return o({
|
|
1228
1364
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentSetReady(t, n),
|
|
1229
1365
|
...e
|
|
1230
1366
|
});
|
|
1231
1367
|
}
|
|
1232
|
-
function
|
|
1233
|
-
return
|
|
1368
|
+
function nn(e = {}) {
|
|
1369
|
+
return o({
|
|
1234
1370
|
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentGetConnectedParty(t, n),
|
|
1235
1371
|
...e
|
|
1236
1372
|
});
|
|
1237
1373
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return
|
|
1374
|
+
function rn(e = {}) {
|
|
1375
|
+
return o({
|
|
1240
1376
|
mutationFn: async ({ token: t, callSid: n }) => await r.tcn.getCallData(t, n),
|
|
1241
1377
|
...e
|
|
1242
1378
|
});
|
|
1243
1379
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return
|
|
1380
|
+
function an(e = {}) {
|
|
1381
|
+
return o({
|
|
1246
1382
|
mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentPutCallOnHold(t, n, a),
|
|
1247
1383
|
...e
|
|
1248
1384
|
});
|
|
1249
1385
|
}
|
|
1250
|
-
function
|
|
1251
|
-
return
|
|
1386
|
+
function on(e = {}) {
|
|
1387
|
+
return o({
|
|
1252
1388
|
mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentGetCallFromHold(t, n, a),
|
|
1253
1389
|
...e
|
|
1254
1390
|
});
|
|
1255
1391
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1392
|
+
function un(e = {}) {
|
|
1393
|
+
return o({
|
|
1258
1394
|
mutationFn: async (t) => await r.tcn.ftpManualDialReport(t),
|
|
1259
1395
|
...e
|
|
1260
1396
|
});
|
|
1261
1397
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return
|
|
1398
|
+
function sn(e = {}) {
|
|
1399
|
+
return o({
|
|
1264
1400
|
mutationFn: async (t) => await r.templates.renderTemplate(t),
|
|
1265
1401
|
...e
|
|
1266
1402
|
});
|
|
1267
1403
|
}
|
|
1268
|
-
function
|
|
1404
|
+
function cn(e, t = {}) {
|
|
1269
1405
|
const n = e?.trim();
|
|
1270
1406
|
return s({
|
|
1271
1407
|
queryKey: ["databox", "folder", n],
|
|
@@ -1278,7 +1414,7 @@ function $t(e, t = {}) {
|
|
|
1278
1414
|
...t
|
|
1279
1415
|
});
|
|
1280
1416
|
}
|
|
1281
|
-
function
|
|
1417
|
+
function ln(e, t = {}) {
|
|
1282
1418
|
const n = e?.trim();
|
|
1283
1419
|
return s({
|
|
1284
1420
|
queryKey: ["databox", "folder", n, "files"],
|
|
@@ -1291,7 +1427,7 @@ function Xt(e, t = {}) {
|
|
|
1291
1427
|
...t
|
|
1292
1428
|
});
|
|
1293
1429
|
}
|
|
1294
|
-
function
|
|
1430
|
+
function yn(e, t = {}) {
|
|
1295
1431
|
const n = e?.trim();
|
|
1296
1432
|
return s({
|
|
1297
1433
|
queryKey: ["databox", "folder", n, "datasets"],
|
|
@@ -1304,7 +1440,7 @@ function Zt(e, t = {}) {
|
|
|
1304
1440
|
...t
|
|
1305
1441
|
});
|
|
1306
1442
|
}
|
|
1307
|
-
function
|
|
1443
|
+
function dn(e, t = {}) {
|
|
1308
1444
|
const n = e?.trim();
|
|
1309
1445
|
return s({
|
|
1310
1446
|
queryKey: ["databox", "folder", n, "duplicates"],
|
|
@@ -1319,7 +1455,7 @@ function en(e, t = {}) {
|
|
|
1319
1455
|
...t
|
|
1320
1456
|
});
|
|
1321
1457
|
}
|
|
1322
|
-
function
|
|
1458
|
+
function gn(e, t = {}) {
|
|
1323
1459
|
const n = e?.trim();
|
|
1324
1460
|
return s({
|
|
1325
1461
|
queryKey: ["dataset", n, "exceptions"],
|
|
@@ -1332,7 +1468,7 @@ function tn(e, t = {}) {
|
|
|
1332
1468
|
...t
|
|
1333
1469
|
});
|
|
1334
1470
|
}
|
|
1335
|
-
function
|
|
1471
|
+
function fn(e, t, n = {}) {
|
|
1336
1472
|
const a = e?.trim();
|
|
1337
1473
|
return s({
|
|
1338
1474
|
queryKey: ["dataset", a, "duplicates", t ?? null],
|
|
@@ -1348,7 +1484,7 @@ function nn(e, t, n = {}) {
|
|
|
1348
1484
|
...n
|
|
1349
1485
|
});
|
|
1350
1486
|
}
|
|
1351
|
-
function
|
|
1487
|
+
function wn(e, t = {}) {
|
|
1352
1488
|
const n = e?.trim();
|
|
1353
1489
|
return s({
|
|
1354
1490
|
queryKey: ["databox", "folder", n, "schema"],
|
|
@@ -1361,7 +1497,7 @@ function rn(e, t = {}) {
|
|
|
1361
1497
|
...t
|
|
1362
1498
|
});
|
|
1363
1499
|
}
|
|
1364
|
-
function
|
|
1500
|
+
function mn(e, t = {}) {
|
|
1365
1501
|
const n = e?.trim();
|
|
1366
1502
|
return s({
|
|
1367
1503
|
queryKey: ["databox", "folder", n, "schema", "history"],
|
|
@@ -1374,7 +1510,7 @@ function an(e, t = {}) {
|
|
|
1374
1510
|
...t
|
|
1375
1511
|
});
|
|
1376
1512
|
}
|
|
1377
|
-
function
|
|
1513
|
+
function Fn(e, t = {}) {
|
|
1378
1514
|
const n = e?.trim();
|
|
1379
1515
|
return s({
|
|
1380
1516
|
queryKey: ["databox", "folder", n, "trash"],
|
|
@@ -1387,7 +1523,7 @@ function on(e, t = {}) {
|
|
|
1387
1523
|
...t
|
|
1388
1524
|
});
|
|
1389
1525
|
}
|
|
1390
|
-
function
|
|
1526
|
+
function qn(e, t = {}) {
|
|
1391
1527
|
const n = e?.trim();
|
|
1392
1528
|
return s({
|
|
1393
1529
|
queryKey: ["databox", "file", n],
|
|
@@ -1400,7 +1536,7 @@ function un(e, t = {}) {
|
|
|
1400
1536
|
...t
|
|
1401
1537
|
});
|
|
1402
1538
|
}
|
|
1403
|
-
function
|
|
1539
|
+
function bn(e, t = {}) {
|
|
1404
1540
|
const n = e?.trim();
|
|
1405
1541
|
return s({
|
|
1406
1542
|
queryKey: ["databox", "file", n, "status"],
|
|
@@ -1413,7 +1549,7 @@ function sn(e, t = {}) {
|
|
|
1413
1549
|
...t
|
|
1414
1550
|
});
|
|
1415
1551
|
}
|
|
1416
|
-
function
|
|
1552
|
+
function Dn(e, t = {}) {
|
|
1417
1553
|
const n = e?.trim();
|
|
1418
1554
|
return s({
|
|
1419
1555
|
queryKey: ["databox", "file", n, "runs"],
|
|
@@ -1426,7 +1562,7 @@ function cn(e, t = {}) {
|
|
|
1426
1562
|
...t
|
|
1427
1563
|
});
|
|
1428
1564
|
}
|
|
1429
|
-
function
|
|
1565
|
+
function Tn(e, t = {}) {
|
|
1430
1566
|
const n = e?.trim();
|
|
1431
1567
|
return s({
|
|
1432
1568
|
queryKey: ["databox", "file", n, "download-url"],
|
|
@@ -1439,96 +1575,104 @@ function ln(e, t = {}) {
|
|
|
1439
1575
|
...t
|
|
1440
1576
|
});
|
|
1441
1577
|
}
|
|
1442
|
-
function
|
|
1443
|
-
return
|
|
1578
|
+
function pn(e = {}) {
|
|
1579
|
+
return o({
|
|
1444
1580
|
mutationFn: async (t) => await r.databox.dropFileToDatabox(t),
|
|
1445
1581
|
...e
|
|
1446
1582
|
});
|
|
1447
1583
|
}
|
|
1448
|
-
function
|
|
1449
|
-
return
|
|
1584
|
+
function hn(e = {}) {
|
|
1585
|
+
return o({
|
|
1450
1586
|
mutationFn: async (t) => await r.databox.runDataboxFolder(t),
|
|
1451
1587
|
...e
|
|
1452
1588
|
});
|
|
1453
1589
|
}
|
|
1454
|
-
function
|
|
1455
|
-
return
|
|
1590
|
+
function Rn(e = {}) {
|
|
1591
|
+
return o({
|
|
1456
1592
|
mutationFn: async (t) => await r.databox.updateDataboxFolderSchema(t),
|
|
1457
1593
|
...e
|
|
1458
1594
|
});
|
|
1459
1595
|
}
|
|
1460
|
-
function
|
|
1461
|
-
return
|
|
1596
|
+
function Sn(e = {}) {
|
|
1597
|
+
return o({
|
|
1462
1598
|
mutationFn: async (t) => await r.databox.trashDataboxFiles(t),
|
|
1463
1599
|
...e
|
|
1464
1600
|
});
|
|
1465
1601
|
}
|
|
1466
|
-
function
|
|
1467
|
-
return
|
|
1602
|
+
function kn(e = {}) {
|
|
1603
|
+
return o({
|
|
1468
1604
|
mutationFn: async (t) => await r.databox.restoreDataboxFile(t),
|
|
1469
1605
|
...e
|
|
1470
1606
|
});
|
|
1471
1607
|
}
|
|
1472
|
-
function
|
|
1473
|
-
return
|
|
1608
|
+
function xn(e = {}) {
|
|
1609
|
+
return o({
|
|
1474
1610
|
mutationFn: async (t) => await r.databox.permanentDeleteDataboxFiles(t),
|
|
1475
1611
|
...e
|
|
1476
1612
|
});
|
|
1477
1613
|
}
|
|
1478
1614
|
export {
|
|
1479
|
-
|
|
1480
|
-
|
|
1615
|
+
Pn as ReactQueryDevtools,
|
|
1616
|
+
P as WorkflowStatus,
|
|
1481
1617
|
N as reactQuery,
|
|
1482
1618
|
ae as useCheckSubscriptionStatus,
|
|
1483
1619
|
ze as useCreateAuditLog,
|
|
1484
|
-
|
|
1485
|
-
|
|
1620
|
+
Ot as useCreateConversation,
|
|
1621
|
+
Gt as useCreateInboxItemPerUser,
|
|
1486
1622
|
He as useCreateOrUpdateForm,
|
|
1487
|
-
|
|
1623
|
+
Dt as useCreateOrUpdateProcessTreeTrigger,
|
|
1624
|
+
G as useCreateReconV2,
|
|
1488
1625
|
oe as useCreateStatementRun,
|
|
1489
1626
|
$ as useCreateThread,
|
|
1490
1627
|
ue as useDataset,
|
|
1491
1628
|
Y as useDatasetSample,
|
|
1492
1629
|
te as useDeleteComment,
|
|
1493
|
-
|
|
1630
|
+
St as useDeleteProcessTreeTrigger,
|
|
1631
|
+
wt as useDeleteProcessTrigger,
|
|
1494
1632
|
Ye as useDeleteReconV2,
|
|
1495
1633
|
xe as useDeleteRow,
|
|
1496
|
-
|
|
1497
|
-
|
|
1634
|
+
Ge as useDocumentPermissions,
|
|
1635
|
+
pn as useDropFileToDatabox,
|
|
1498
1636
|
bt as useExecuteNow,
|
|
1637
|
+
Tt as useExecuteProcessTreeTrigger,
|
|
1499
1638
|
Ae as useFileDownload,
|
|
1500
1639
|
Be as useFileUpload,
|
|
1501
|
-
|
|
1502
|
-
|
|
1640
|
+
vt as useFilterMessagesBySenderId,
|
|
1641
|
+
Bt as useGetAllConversations,
|
|
1503
1642
|
lt as useGetAllHttpTriggers,
|
|
1504
|
-
|
|
1643
|
+
Pt as useGetAllInboxItems,
|
|
1505
1644
|
Je as useGetAllRecon,
|
|
1506
1645
|
O as useGetAllReconV2,
|
|
1507
1646
|
je as useGetAllTemplatedPipelines,
|
|
1508
1647
|
ct as useGetAllUsers,
|
|
1509
1648
|
Ne as useGetAuditLogs,
|
|
1510
1649
|
X as useGetCommentsByThreadId,
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1650
|
+
At as useGetConversation,
|
|
1651
|
+
qn as useGetDataboxFile,
|
|
1652
|
+
Tn as useGetDataboxFileDownloadUrl,
|
|
1653
|
+
Dn as useGetDataboxFileRuns,
|
|
1654
|
+
bn as useGetDataboxFileStatus,
|
|
1655
|
+
cn as useGetDataboxFolder,
|
|
1656
|
+
yn as useGetDataboxFolderDatasets,
|
|
1657
|
+
dn as useGetDataboxFolderDuplicates,
|
|
1658
|
+
ln as useGetDataboxFolderFiles,
|
|
1659
|
+
wn as useGetDataboxFolderSchema,
|
|
1660
|
+
mn as useGetDataboxSchemaHistory,
|
|
1661
|
+
Fn as useGetDataboxTrashFiles,
|
|
1662
|
+
fn as useGetDatasetDuplicates,
|
|
1663
|
+
gn as useGetDatasetExceptions,
|
|
1525
1664
|
se as useGetDatasets,
|
|
1526
1665
|
le as useGetFileByFolderIdAndName,
|
|
1527
1666
|
ce as useGetFileUrlByFileId,
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1667
|
+
Le as useGetFormById,
|
|
1668
|
+
_e as useGetFormData,
|
|
1669
|
+
We as useGetFormSchema,
|
|
1670
|
+
he as useGetInputTables,
|
|
1671
|
+
Ct as useGetProcessTreeRunByInstanceId,
|
|
1672
|
+
Kt as useGetProcessTreeRunsBySheetId,
|
|
1673
|
+
Et as useGetProcessTreeRunsBySheetIdPaginated,
|
|
1674
|
+
kt as useGetProcessTreeTrigger,
|
|
1675
|
+
xt as useGetProcessTreeTriggersBySheetId,
|
|
1532
1676
|
ye as useGetPublishedWorkbookById,
|
|
1533
1677
|
tt as useGetReconV2CleanResult,
|
|
1534
1678
|
nt as useGetReconV2Diff,
|
|
@@ -1536,15 +1680,15 @@ export {
|
|
|
1536
1680
|
Ze as useGetReconV2ProfileResult,
|
|
1537
1681
|
v as useGetReconV2RunResult,
|
|
1538
1682
|
U as useGetReconV2Runs,
|
|
1539
|
-
|
|
1540
|
-
|
|
1683
|
+
Q as useGetReconV2SmartResult,
|
|
1684
|
+
_ as useGetReconV2Workflow,
|
|
1541
1685
|
de as useGetRunResultById,
|
|
1542
|
-
|
|
1686
|
+
ge as useGetRunsByViewId,
|
|
1543
1687
|
qt as useGetScheduleStatus,
|
|
1544
|
-
|
|
1545
|
-
|
|
1688
|
+
fe as useGetStatementData,
|
|
1689
|
+
we as useGetTableById,
|
|
1546
1690
|
Oe as useGetTaskDetails,
|
|
1547
|
-
|
|
1691
|
+
gt as useGetTriggersBySheet,
|
|
1548
1692
|
me as useGetViewById,
|
|
1549
1693
|
Fe as useGetViewsBySheetId,
|
|
1550
1694
|
ie as useGetVirtualDatasets,
|
|
@@ -1552,70 +1696,73 @@ export {
|
|
|
1552
1696
|
qe as useGetWorkbooksByType,
|
|
1553
1697
|
be as useGetWorkflowInstanceStatusById,
|
|
1554
1698
|
De as useGetWorksheets,
|
|
1555
|
-
|
|
1699
|
+
Te as useGetWorksheetsByType,
|
|
1556
1700
|
pe as useInputTable,
|
|
1557
1701
|
Se as useInsertRow,
|
|
1558
|
-
ht as
|
|
1559
|
-
|
|
1702
|
+
ht as useLogProcessTreeRun,
|
|
1703
|
+
Vt as useMarkItemAsRead,
|
|
1704
|
+
It as useMarkItemAsUnread,
|
|
1560
1705
|
yt as useMarkTaskDone,
|
|
1561
1706
|
J as useMetric,
|
|
1562
1707
|
mt as usePauseSchedule,
|
|
1563
|
-
|
|
1708
|
+
xn as usePermanentDeleteDataboxFiles,
|
|
1564
1709
|
Z as usePostComment,
|
|
1565
|
-
|
|
1710
|
+
Qe as usePublishWorkbook,
|
|
1566
1711
|
dt as useReassignTask,
|
|
1567
1712
|
ot as useReconV2Detail,
|
|
1568
1713
|
ut as useReconV2Editor,
|
|
1569
1714
|
at as useReconV2List,
|
|
1570
1715
|
it as useReconV2Results,
|
|
1571
1716
|
st as useReconV2RunController,
|
|
1572
|
-
|
|
1717
|
+
W as useReconV2RunStatus,
|
|
1573
1718
|
$e as useReconV2Templates,
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1719
|
+
ft as useRegisterProcessTrigger,
|
|
1720
|
+
sn as useRenderTemplate,
|
|
1721
|
+
Ut as useReplyToConversation,
|
|
1722
|
+
kn as useRestoreDataboxFile,
|
|
1578
1723
|
Ft as useResumeSchedule,
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1724
|
+
Re as useRows,
|
|
1725
|
+
hn as useRunDataboxFolder,
|
|
1726
|
+
Ke as useRunDefinition,
|
|
1727
|
+
Ee as useRunPublishedDefinition,
|
|
1728
|
+
Me as useRunRecon,
|
|
1584
1729
|
A as useRunReconV2,
|
|
1585
|
-
|
|
1730
|
+
Ce as useRunSampleDefinition,
|
|
1586
1731
|
ve as useSaveWorkbook,
|
|
1587
|
-
|
|
1732
|
+
Qt as useSearchMessages,
|
|
1588
1733
|
et as useStartReconV2Clean,
|
|
1589
1734
|
Xe as useStartReconV2Profile,
|
|
1590
1735
|
ne as useSubscribeUser,
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1736
|
+
Zt as useTcnAgentDisconnect,
|
|
1737
|
+
on as useTcnAgentGetCallFromHold,
|
|
1738
|
+
jt as useTcnAgentGetStatus,
|
|
1739
|
+
en as useTcnAgentPause,
|
|
1740
|
+
an as useTcnAgentPutCallOnHold,
|
|
1741
|
+
tn as useTcnAgentSetReady,
|
|
1742
|
+
Ht as useTcnAgentSkills,
|
|
1743
|
+
Mt as useTcnAuthUrl,
|
|
1744
|
+
rn as useTcnCallData,
|
|
1745
|
+
nn as useTcnConnectedParty,
|
|
1746
|
+
Nt as useTcnCreateSession,
|
|
1747
|
+
Lt as useTcnCurrentAgent,
|
|
1748
|
+
Yt as useTcnDialManualPrepare,
|
|
1749
|
+
Wt as useTcnExchangeCode,
|
|
1750
|
+
un as useTcnFtpManualDialReport,
|
|
1751
|
+
Jt as useTcnHuntGroupSettings,
|
|
1752
|
+
zt as useTcnKeepAlive,
|
|
1753
|
+
Xt as useTcnManualDialStart,
|
|
1754
|
+
$t as useTcnProcessManualDial,
|
|
1755
|
+
_t as useTcnRefreshToken,
|
|
1756
|
+
pt as useTerminateProcessTreePipelines,
|
|
1757
|
+
Sn as useTrashDataboxFiles,
|
|
1758
|
+
Pe as useTriggerHttpWorkflow,
|
|
1759
|
+
Ve as useTriggerWorkflow,
|
|
1614
1760
|
re as useUnsubscribeUser,
|
|
1615
1761
|
ee as useUpdateComment,
|
|
1616
|
-
|
|
1762
|
+
Rn as useUpdateDataboxFolderSchema,
|
|
1763
|
+
Rt as useUpdateProcessTreeRunContext,
|
|
1617
1764
|
B as useUpdateReconV2,
|
|
1618
1765
|
ke as useUpdateRow,
|
|
1619
|
-
|
|
1766
|
+
V as useUser,
|
|
1620
1767
|
Ie as useUserDetails
|
|
1621
1768
|
};
|