@bluecopa/react 0.1.95 → 0.1.97
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/useCreateReconV2.d.ts +10 -0
- package/dist/hooks/useCreateReconV2.d.ts.map +1 -0
- package/dist/hooks/useDeleteReconV2.d.ts +9 -0
- package/dist/hooks/useDeleteReconV2.d.ts.map +1 -0
- package/dist/hooks/useGetAllReconV2.d.ts +10 -0
- package/dist/hooks/useGetAllReconV2.d.ts.map +1 -0
- package/dist/hooks/useGetReconV2CleanResult.d.ts +14 -0
- package/dist/hooks/useGetReconV2CleanResult.d.ts.map +1 -0
- package/dist/hooks/useGetReconV2Diff.d.ts +13 -0
- package/dist/hooks/useGetReconV2Diff.d.ts.map +1 -0
- package/dist/hooks/useGetReconV2Explanation.d.ts +13 -0
- package/dist/hooks/useGetReconV2Explanation.d.ts.map +1 -0
- package/dist/hooks/useGetReconV2ProfileResult.d.ts +14 -0
- package/dist/hooks/useGetReconV2ProfileResult.d.ts.map +1 -0
- package/dist/hooks/useGetReconV2RunResult.d.ts +12 -0
- package/dist/hooks/useGetReconV2RunResult.d.ts.map +1 -0
- package/dist/hooks/useGetReconV2Runs.d.ts +11 -0
- package/dist/hooks/useGetReconV2Runs.d.ts.map +1 -0
- package/dist/hooks/useGetReconV2SmartResult.d.ts +11 -0
- package/dist/hooks/useGetReconV2SmartResult.d.ts.map +1 -0
- package/dist/hooks/useGetVirtualDatasets.d.ts +5 -0
- package/dist/hooks/useGetVirtualDatasets.d.ts.map +1 -0
- package/dist/hooks/useReconV2RunStatus.d.ts +34 -0
- package/dist/hooks/useReconV2RunStatus.d.ts.map +1 -0
- package/dist/hooks/useRunReconV2.d.ts +12 -0
- package/dist/hooks/useRunReconV2.d.ts.map +1 -0
- package/dist/hooks/useStartReconV2Clean.d.ts +10 -0
- package/dist/hooks/useStartReconV2Clean.d.ts.map +1 -0
- package/dist/hooks/useStartReconV2Profile.d.ts +10 -0
- package/dist/hooks/useStartReconV2Profile.d.ts.map +1 -0
- package/dist/hooks/useUpdateReconV2.d.ts +10 -0
- package/dist/hooks/useUpdateReconV2.d.ts.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +711 -541
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { useQuery as s, useMutation as
|
|
2
|
-
import * as
|
|
3
|
-
import { copaApi as
|
|
1
|
+
import { useQuery as s, useMutation as a, useQueryClient as f } from "@tanstack/react-query";
|
|
2
|
+
import * as A from "@tanstack/react-query";
|
|
3
|
+
import { copaApi as r, copaGetConfig as p, copaUtils as R } from "@bluecopa/core";
|
|
4
4
|
export * from "@bluecopa/core";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { useState as h, useRef as S, useEffect as k } from "react";
|
|
6
|
+
import { ReactQueryDevtools as Ln } from "@tanstack/react-query-devtools";
|
|
7
|
+
const C = {
|
|
7
8
|
enabled: !0,
|
|
8
9
|
staleTime: 1e3 * 60 * 5,
|
|
9
10
|
// 5 minutes
|
|
@@ -12,27 +13,27 @@ const S = {
|
|
|
12
13
|
retry: 2,
|
|
13
14
|
retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
|
|
14
15
|
};
|
|
15
|
-
function
|
|
16
|
+
function E(e = {}) {
|
|
16
17
|
return {
|
|
17
|
-
...
|
|
18
|
+
...C,
|
|
18
19
|
...e
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function K(e = 5e3) {
|
|
22
23
|
return new Promise((n) => setTimeout(n, e));
|
|
23
24
|
}
|
|
24
|
-
function
|
|
25
|
-
const t = Object.entries(e).filter(([
|
|
25
|
+
function T(e, n) {
|
|
26
|
+
const t = Object.entries(e).filter(([u, o]) => !o).map(([u]) => u);
|
|
26
27
|
if (t.length > 0)
|
|
27
28
|
throw new Error(
|
|
28
29
|
n || `Missing required parameters: ${t.join(", ")}`
|
|
29
30
|
);
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
return async () => (await
|
|
32
|
+
function i(e, n, t = 0) {
|
|
33
|
+
return async () => (await K(t), await e());
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
const n =
|
|
35
|
+
function c(e) {
|
|
36
|
+
const n = E(e.options);
|
|
36
37
|
return {
|
|
37
38
|
queryKey: e.queryKey,
|
|
38
39
|
queryFn: e.queryFn,
|
|
@@ -45,354 +46,362 @@ function l(e) {
|
|
|
45
46
|
onError: n.onError
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
const t = n.enabled !== !1 && !!e,
|
|
49
|
+
function W(e, n = {}) {
|
|
50
|
+
const t = n.enabled !== !1 && !!e, u = n.solutionBindings ?? null, o = i(async () => {
|
|
50
51
|
if (!e)
|
|
51
52
|
throw new Error("Metric ID is required");
|
|
52
|
-
return console.log("Fetching metric data..."), await
|
|
53
|
+
return console.log("Fetching metric data..."), await r.metric.getData(e, {
|
|
53
54
|
solutionBindings: n.solutionBindings
|
|
54
55
|
});
|
|
55
|
-
}),
|
|
56
|
-
queryKey: ["metricData", e,
|
|
57
|
-
queryFn:
|
|
56
|
+
}), l = c({
|
|
57
|
+
queryKey: ["metricData", e, u],
|
|
58
|
+
queryFn: o,
|
|
58
59
|
enabled: t,
|
|
59
60
|
options: n
|
|
60
61
|
});
|
|
61
|
-
return s(
|
|
62
|
+
return s(l);
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
-
const t = !!e,
|
|
64
|
+
function x(e, n = {}) {
|
|
65
|
+
const t = !!e, u = i(async () => {
|
|
65
66
|
if (!e)
|
|
66
67
|
throw new Error("Dataset ID is required");
|
|
67
|
-
return console.log("Fetching dataset data..."), await
|
|
68
|
+
return console.log("Fetching dataset data..."), await r.dataset.getSampleData({
|
|
68
69
|
datasetId: e,
|
|
69
70
|
dataFilter: "all_data"
|
|
70
71
|
});
|
|
71
|
-
}),
|
|
72
|
+
}), o = c({
|
|
72
73
|
queryKey: ["datasetData", e],
|
|
73
|
-
queryFn:
|
|
74
|
+
queryFn: u,
|
|
74
75
|
enabled: t,
|
|
75
76
|
options: n
|
|
76
77
|
});
|
|
77
|
-
return s(
|
|
78
|
+
return s(o);
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
81
|
-
mutationFn: async (n) => await
|
|
80
|
+
function M(e = {}) {
|
|
81
|
+
return a({
|
|
82
|
+
mutationFn: async (n) => await r.chat.createThread(n),
|
|
82
83
|
onSuccess: e.onSuccess,
|
|
83
84
|
onError: e.onError,
|
|
84
85
|
retry: e.retry ?? 2,
|
|
85
86
|
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
const t = n.enabled !== !1 && !!e,
|
|
89
|
+
function I(e, n = {}) {
|
|
90
|
+
const t = n.enabled !== !1 && !!e, u = i(async () => (T(
|
|
90
91
|
{ threadId: e },
|
|
91
92
|
"Thread ID is required to fetch comments"
|
|
92
|
-
), await
|
|
93
|
+
), await r.chat.getCommentsByThreadId(e))), o = c({
|
|
93
94
|
queryKey: ["chat", "comments", e],
|
|
94
|
-
queryFn:
|
|
95
|
+
queryFn: u,
|
|
95
96
|
enabled: t,
|
|
96
97
|
options: n
|
|
97
98
|
});
|
|
98
|
-
return s(
|
|
99
|
+
return s(o);
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
102
|
-
mutationFn: async (n) => await
|
|
101
|
+
function Q(e = {}) {
|
|
102
|
+
return a({
|
|
103
|
+
mutationFn: async (n) => await r.chat.postComment(n),
|
|
103
104
|
onSuccess: e.onSuccess,
|
|
104
105
|
onError: e.onError,
|
|
105
106
|
retry: e.retry ?? 2,
|
|
106
107
|
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
-
return
|
|
111
|
-
mutationFn: async (n) => await
|
|
110
|
+
function _(e = {}) {
|
|
111
|
+
return a({
|
|
112
|
+
mutationFn: async (n) => await r.chat.updateComment(n),
|
|
112
113
|
onSuccess: e.onSuccess,
|
|
113
114
|
onError: e.onError,
|
|
114
115
|
retry: e.retry ?? 2,
|
|
115
116
|
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
-
return
|
|
120
|
-
mutationFn: async (n) => await
|
|
119
|
+
function N(e = {}) {
|
|
120
|
+
return a({
|
|
121
|
+
mutationFn: async (n) => await r.chat.deleteComment(n),
|
|
121
122
|
onSuccess: e.onSuccess,
|
|
122
123
|
onError: e.onError,
|
|
123
124
|
retry: e.retry ?? 2,
|
|
124
125
|
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
125
126
|
});
|
|
126
127
|
}
|
|
127
|
-
function
|
|
128
|
-
return
|
|
129
|
-
mutationFn: async (n) => await
|
|
128
|
+
function H(e = {}) {
|
|
129
|
+
return a({
|
|
130
|
+
mutationFn: async (n) => await r.chat.subscribeUser(n),
|
|
130
131
|
onSuccess: e.onSuccess,
|
|
131
132
|
onError: e.onError,
|
|
132
133
|
retry: e.retry ?? 2,
|
|
133
134
|
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
-
return
|
|
138
|
-
mutationFn: async (n) => await
|
|
137
|
+
function L(e = {}) {
|
|
138
|
+
return a({
|
|
139
|
+
mutationFn: async (n) => await r.chat.unsubscribeUser(n),
|
|
139
140
|
onSuccess: e.onSuccess,
|
|
140
141
|
onError: e.onError,
|
|
141
142
|
retry: e.retry ?? 2,
|
|
142
143
|
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
143
144
|
});
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
-
const
|
|
146
|
+
function z(e, n, t = {}) {
|
|
147
|
+
const u = t.enabled !== !1 && !!e && !!n, o = i(async () => (T(
|
|
147
148
|
{ userId: e, threadId: n },
|
|
148
149
|
"User ID and Thread ID are required to check subscription status"
|
|
149
|
-
), await
|
|
150
|
+
), await r.chat.checkSubscriptionStatus(e, n))), l = c({
|
|
150
151
|
queryKey: ["chat", "subscription", e, n],
|
|
151
|
-
queryFn:
|
|
152
|
-
enabled:
|
|
152
|
+
queryFn: o,
|
|
153
|
+
enabled: u,
|
|
153
154
|
options: t
|
|
154
155
|
});
|
|
155
|
-
return s(
|
|
156
|
+
return s(l);
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
return
|
|
159
|
-
mutationFn: async (n) => await
|
|
158
|
+
function j(e = {}) {
|
|
159
|
+
return a({
|
|
160
|
+
mutationFn: async (n) => await r.statement.createNewRun(n),
|
|
160
161
|
...e
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
|
-
function
|
|
164
|
-
const t = !!e,
|
|
164
|
+
function J(e, n = {}) {
|
|
165
|
+
const t = !!e, u = i(async () => {
|
|
165
166
|
if (!e)
|
|
166
167
|
throw new Error("Dataset ID is required");
|
|
167
|
-
return console.log("Fetching dataset data..."), await
|
|
168
|
+
return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
|
|
168
169
|
limit: n.limit || 1e3
|
|
169
170
|
});
|
|
170
|
-
}),
|
|
171
|
+
}), o = c({
|
|
171
172
|
queryKey: ["datasetData", e],
|
|
172
|
-
queryFn:
|
|
173
|
+
queryFn: u,
|
|
173
174
|
enabled: t,
|
|
174
175
|
options: n
|
|
175
176
|
});
|
|
176
|
-
return s(
|
|
177
|
+
return s(o);
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
-
const e =
|
|
179
|
+
function Y() {
|
|
180
|
+
const e = i(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), n = c({
|
|
180
181
|
queryKey: ["datasetData"],
|
|
181
182
|
queryFn: e,
|
|
182
183
|
enabled: !0
|
|
183
184
|
});
|
|
184
185
|
return s(n);
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
-
const
|
|
187
|
+
function $() {
|
|
188
|
+
const e = i(async () => await r.dataset.getVirtualDatasets()), n = c({
|
|
189
|
+
queryKey: ["virtualDatasets"],
|
|
190
|
+
queryFn: e,
|
|
191
|
+
enabled: !0
|
|
192
|
+
});
|
|
193
|
+
return s(n);
|
|
194
|
+
}
|
|
195
|
+
function X(e, n, t, u = {}) {
|
|
196
|
+
const o = !!e && !!n && !!t, l = i(async () => {
|
|
188
197
|
if (!e || !n || !t)
|
|
189
198
|
throw new Error("Key, contentType, and method are required");
|
|
190
|
-
return console.log("Getting signed file URL..."), await
|
|
199
|
+
return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
|
|
191
200
|
key: e,
|
|
192
201
|
contentType: n,
|
|
193
202
|
method: t
|
|
194
203
|
});
|
|
195
|
-
}), y =
|
|
204
|
+
}), y = c({
|
|
196
205
|
queryKey: ["file", "getFileUrlByFileId", e, n, t],
|
|
197
|
-
queryFn:
|
|
198
|
-
enabled:
|
|
199
|
-
options:
|
|
206
|
+
queryFn: l,
|
|
207
|
+
enabled: o,
|
|
208
|
+
options: u
|
|
200
209
|
});
|
|
201
210
|
return s(y);
|
|
202
211
|
}
|
|
203
|
-
function
|
|
204
|
-
const
|
|
205
|
-
folderId:
|
|
206
|
-
name:
|
|
207
|
-
})),
|
|
212
|
+
function Z(e, n, t = {}) {
|
|
213
|
+
const u = e?.trim(), o = n?.trim(), l = !!(u && o), y = i(async () => await r.files.getFileByFolderIdAndName({
|
|
214
|
+
folderId: u,
|
|
215
|
+
name: o
|
|
216
|
+
})), g = c({
|
|
208
217
|
queryKey: [
|
|
209
218
|
"file",
|
|
210
219
|
"getFileByFolderIdAndName",
|
|
211
|
-
|
|
212
|
-
|
|
220
|
+
u,
|
|
221
|
+
o
|
|
213
222
|
],
|
|
214
223
|
queryFn: y,
|
|
215
|
-
enabled:
|
|
224
|
+
enabled: l,
|
|
216
225
|
options: t
|
|
217
226
|
});
|
|
218
|
-
return s(
|
|
227
|
+
return s(g);
|
|
219
228
|
}
|
|
220
|
-
function
|
|
221
|
-
const
|
|
229
|
+
function ee(e, n, t = {}) {
|
|
230
|
+
const u = !!e && !!n, o = i(async () => {
|
|
222
231
|
if (!e || !n)
|
|
223
232
|
throw new Error("Type and ID are required");
|
|
224
|
-
return console.log("Fetching published workbook by ID..."), await
|
|
225
|
-
}),
|
|
233
|
+
return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: n });
|
|
234
|
+
}), l = c({
|
|
226
235
|
queryKey: ["workbook", "getPublishedWorkbookById", e, n],
|
|
227
|
-
queryFn:
|
|
228
|
-
enabled:
|
|
236
|
+
queryFn: o,
|
|
237
|
+
enabled: u,
|
|
229
238
|
options: t
|
|
230
239
|
});
|
|
231
|
-
return s(
|
|
240
|
+
return s(l);
|
|
232
241
|
}
|
|
233
|
-
function
|
|
234
|
-
const t = !!e,
|
|
242
|
+
function ne(e, n = {}) {
|
|
243
|
+
const t = !!e, u = i(async () => {
|
|
235
244
|
if (!e)
|
|
236
245
|
throw new Error("Run ID is required");
|
|
237
|
-
return await
|
|
238
|
-
}),
|
|
246
|
+
return await r.statement.getRunResultById(e);
|
|
247
|
+
}), o = c({
|
|
239
248
|
queryKey: ["statement", "getRunResultById", e],
|
|
240
|
-
queryFn:
|
|
249
|
+
queryFn: u,
|
|
241
250
|
enabled: t,
|
|
242
251
|
options: n
|
|
243
252
|
});
|
|
244
|
-
return s(
|
|
253
|
+
return s(o);
|
|
245
254
|
}
|
|
246
|
-
function
|
|
247
|
-
const t = !!e,
|
|
255
|
+
function te(e, n = {}) {
|
|
256
|
+
const t = !!e, u = i(async () => {
|
|
248
257
|
if (!e)
|
|
249
258
|
throw new Error("View ID is required");
|
|
250
|
-
return await
|
|
251
|
-
}),
|
|
259
|
+
return await r.statement.getRunsByViewId(e);
|
|
260
|
+
}), o = c({
|
|
252
261
|
queryKey: ["statement", "getRunsByViewId", e],
|
|
253
|
-
queryFn:
|
|
262
|
+
queryFn: u,
|
|
254
263
|
enabled: t,
|
|
255
264
|
options: n
|
|
256
265
|
});
|
|
257
|
-
return s(
|
|
266
|
+
return s(o);
|
|
258
267
|
}
|
|
259
|
-
function
|
|
260
|
-
const
|
|
268
|
+
function re(e, n, t, u = {}) {
|
|
269
|
+
const o = !!e, l = i(async () => {
|
|
261
270
|
if (!e)
|
|
262
271
|
throw new Error("Statement ID is required");
|
|
263
|
-
return await
|
|
272
|
+
return await r.statement.getData({
|
|
264
273
|
statementId: e,
|
|
265
274
|
viewId: n || void 0,
|
|
266
275
|
runId: t || void 0
|
|
267
276
|
});
|
|
268
|
-
}), y =
|
|
277
|
+
}), y = c({
|
|
269
278
|
queryKey: ["statement", "getData", e, n, t],
|
|
270
|
-
queryFn:
|
|
271
|
-
enabled:
|
|
272
|
-
options:
|
|
279
|
+
queryFn: l,
|
|
280
|
+
enabled: o,
|
|
281
|
+
options: u
|
|
273
282
|
});
|
|
274
283
|
return s(y);
|
|
275
284
|
}
|
|
276
|
-
function
|
|
277
|
-
const t = !!e,
|
|
285
|
+
function ue(e, n = {}) {
|
|
286
|
+
const t = !!e, u = i(async () => {
|
|
278
287
|
if (!e)
|
|
279
288
|
throw new Error("Table ID is required");
|
|
280
|
-
return console.log("Fetching table by ID..."), await
|
|
281
|
-
}),
|
|
289
|
+
return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
|
|
290
|
+
}), o = c({
|
|
282
291
|
queryKey: ["inputTable", "getTableById", e],
|
|
283
|
-
queryFn:
|
|
292
|
+
queryFn: u,
|
|
284
293
|
enabled: t,
|
|
285
294
|
options: n
|
|
286
295
|
});
|
|
287
|
-
return s(
|
|
296
|
+
return s(o);
|
|
288
297
|
}
|
|
289
|
-
function
|
|
290
|
-
const t = !!e,
|
|
298
|
+
function oe(e, n = {}) {
|
|
299
|
+
const t = !!e, u = i(async () => {
|
|
291
300
|
if (!e)
|
|
292
301
|
throw new Error("View ID is required");
|
|
293
|
-
return await
|
|
294
|
-
}),
|
|
302
|
+
return await r.statement.getViewById(e);
|
|
303
|
+
}), o = c({
|
|
295
304
|
queryKey: ["statement", "getViewById", e],
|
|
296
|
-
queryFn:
|
|
305
|
+
queryFn: u,
|
|
297
306
|
enabled: t,
|
|
298
307
|
options: n
|
|
299
308
|
});
|
|
300
|
-
return s(
|
|
309
|
+
return s(o);
|
|
301
310
|
}
|
|
302
|
-
function
|
|
303
|
-
const t = !!e,
|
|
311
|
+
function ae(e, n = {}) {
|
|
312
|
+
const t = !!e, u = i(async () => {
|
|
304
313
|
if (!e)
|
|
305
314
|
throw new Error("Sheet ID is required");
|
|
306
|
-
return await
|
|
307
|
-
}),
|
|
315
|
+
return await r.statement.getViewsBySheetId(e);
|
|
316
|
+
}), o = c({
|
|
308
317
|
queryKey: ["statement", "getViewsBySheetId", e],
|
|
309
|
-
queryFn:
|
|
318
|
+
queryFn: u,
|
|
310
319
|
enabled: t,
|
|
311
320
|
options: n
|
|
312
321
|
});
|
|
313
|
-
return s(
|
|
322
|
+
return s(o);
|
|
314
323
|
}
|
|
315
|
-
function
|
|
316
|
-
const t = !!e,
|
|
324
|
+
function se(e, n = {}) {
|
|
325
|
+
const t = !!e, u = i(async () => {
|
|
317
326
|
if (!e)
|
|
318
327
|
throw new Error("Type is required");
|
|
319
|
-
return console.log("Fetching workbooks by type..."), await
|
|
320
|
-
}),
|
|
328
|
+
return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
|
|
329
|
+
}), o = c({
|
|
321
330
|
queryKey: ["workbook", "getWorkbooksByType", e],
|
|
322
|
-
queryFn:
|
|
331
|
+
queryFn: u,
|
|
323
332
|
enabled: t,
|
|
324
333
|
options: n
|
|
325
334
|
});
|
|
326
|
-
return s(
|
|
335
|
+
return s(o);
|
|
327
336
|
}
|
|
328
|
-
var
|
|
329
|
-
function
|
|
330
|
-
return
|
|
331
|
-
mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await
|
|
337
|
+
var V = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(V || {});
|
|
338
|
+
function ie(e = {}) {
|
|
339
|
+
return a({
|
|
340
|
+
mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(n)),
|
|
332
341
|
...e
|
|
333
342
|
});
|
|
334
343
|
}
|
|
335
|
-
function
|
|
336
|
-
const t = !!e && e.length > 0,
|
|
344
|
+
function ce(e, n = {}) {
|
|
345
|
+
const t = !!e && e.length > 0, u = i(async () => {
|
|
337
346
|
if (!e || e.length === 0)
|
|
338
347
|
throw new Error("Worksheet IDs are required");
|
|
339
|
-
return console.log("Fetching worksheets..."), await
|
|
340
|
-
}),
|
|
348
|
+
return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
|
|
349
|
+
}), o = c({
|
|
341
350
|
queryKey: ["worksheet", "getWorksheets", e],
|
|
342
|
-
queryFn:
|
|
351
|
+
queryFn: u,
|
|
343
352
|
enabled: t,
|
|
344
353
|
options: n
|
|
345
354
|
});
|
|
346
|
-
return s(
|
|
355
|
+
return s(o);
|
|
347
356
|
}
|
|
348
|
-
function
|
|
349
|
-
const t = !!e,
|
|
357
|
+
function le(e, n = {}) {
|
|
358
|
+
const t = !!e, u = i(async () => {
|
|
350
359
|
if (!e)
|
|
351
360
|
throw new Error("Type is required");
|
|
352
|
-
return console.log("Fetching worksheets by type..."), await
|
|
353
|
-
}),
|
|
361
|
+
return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
|
|
362
|
+
}), o = c({
|
|
354
363
|
queryKey: ["worksheet", "getWorksheetsByType", e],
|
|
355
|
-
queryFn:
|
|
364
|
+
queryFn: u,
|
|
356
365
|
enabled: t,
|
|
357
366
|
options: n
|
|
358
367
|
});
|
|
359
|
-
return s(
|
|
368
|
+
return s(o);
|
|
360
369
|
}
|
|
361
|
-
function
|
|
370
|
+
function ye(e, n, t = {}) {
|
|
362
371
|
const {
|
|
363
|
-
limitParams:
|
|
364
|
-
pageParams:
|
|
365
|
-
sortParams:
|
|
372
|
+
limitParams: u = { limit: 2e3, limitFrom: "top" },
|
|
373
|
+
pageParams: o,
|
|
374
|
+
sortParams: l,
|
|
366
375
|
offsetParam: y,
|
|
367
|
-
...
|
|
368
|
-
} = t,
|
|
376
|
+
...g
|
|
377
|
+
} = t, w = g.enabled !== !1 && !!e && !!n, m = i(async () => {
|
|
369
378
|
if (!e || !n)
|
|
370
379
|
throw new Error("Input table ID and view ID are required");
|
|
371
|
-
return console.log("Fetching input table data..."), await
|
|
380
|
+
return console.log("Fetching input table data..."), await r.inputTable.getData({
|
|
372
381
|
inputTableId: e,
|
|
373
382
|
inputTableViewId: n,
|
|
374
|
-
pageParams:
|
|
375
|
-
limitParams:
|
|
376
|
-
sortParams:
|
|
383
|
+
pageParams: o,
|
|
384
|
+
limitParams: u,
|
|
385
|
+
sortParams: l,
|
|
377
386
|
offsetParam: y
|
|
378
387
|
});
|
|
379
|
-
}),
|
|
388
|
+
}), F = c({
|
|
380
389
|
queryKey: ["inputTableData", e, n],
|
|
381
390
|
queryFn: m,
|
|
382
|
-
enabled:
|
|
383
|
-
options:
|
|
391
|
+
enabled: w,
|
|
392
|
+
options: g
|
|
384
393
|
});
|
|
385
|
-
return s(
|
|
394
|
+
return s(F);
|
|
386
395
|
}
|
|
387
|
-
function
|
|
388
|
-
const e =
|
|
396
|
+
function ge() {
|
|
397
|
+
const e = i(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), n = c({
|
|
389
398
|
queryKey: ["inputTableData"],
|
|
390
399
|
queryFn: e,
|
|
391
400
|
enabled: !0
|
|
392
401
|
});
|
|
393
402
|
return s(n);
|
|
394
403
|
}
|
|
395
|
-
function
|
|
404
|
+
function fe(e, n = {}) {
|
|
396
405
|
const t = [
|
|
397
406
|
"enabled",
|
|
398
407
|
"staleTime",
|
|
@@ -401,384 +410,529 @@ function se(e, n = {}) {
|
|
|
401
410
|
"retryDelay",
|
|
402
411
|
"onSuccess",
|
|
403
412
|
"onError"
|
|
404
|
-
], { limit:
|
|
405
|
-
Object.keys(
|
|
406
|
-
t.includes(
|
|
413
|
+
], { limit: u, offset: o, order: l, order_by: y, ...g } = n, w = {}, m = { limit: u, offset: o, order: l, order_by: y };
|
|
414
|
+
Object.keys(g).forEach((d) => {
|
|
415
|
+
t.includes(d) ? w[d] = g[d] : m[d] = g[d];
|
|
407
416
|
});
|
|
408
|
-
const
|
|
417
|
+
const F = w.enabled !== !1 && !!e, b = i(async () => {
|
|
409
418
|
if (!e)
|
|
410
419
|
throw new Error("Table ID is required");
|
|
411
|
-
return console.log("Fetching input table rows..."), await
|
|
412
|
-
}),
|
|
420
|
+
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, m);
|
|
421
|
+
}), q = c({
|
|
413
422
|
queryKey: ["inputTableRows", e, n],
|
|
414
|
-
queryFn:
|
|
415
|
-
enabled:
|
|
416
|
-
options:
|
|
423
|
+
queryFn: b,
|
|
424
|
+
enabled: F,
|
|
425
|
+
options: w
|
|
417
426
|
});
|
|
418
|
-
return s(
|
|
427
|
+
return s(q);
|
|
419
428
|
}
|
|
420
|
-
function
|
|
421
|
-
const n =
|
|
422
|
-
return
|
|
423
|
-
mutationFn: async (t) => (console.log("Inserting row into input table..."), await
|
|
424
|
-
onSuccess: (t,
|
|
425
|
-
var i;
|
|
429
|
+
function we(e = {}) {
|
|
430
|
+
const n = f();
|
|
431
|
+
return a({
|
|
432
|
+
mutationFn: async (t) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(t.tableId, t.rowData)),
|
|
433
|
+
onSuccess: (t, u, o) => {
|
|
426
434
|
n.invalidateQueries({
|
|
427
|
-
queryKey: ["inputTableRows",
|
|
428
|
-
}),
|
|
435
|
+
queryKey: ["inputTableRows", u.tableId]
|
|
436
|
+
}), e.onSuccess?.(t);
|
|
429
437
|
},
|
|
430
|
-
onError: (t,
|
|
431
|
-
|
|
432
|
-
(i = e.onError) == null || i.call(e, t);
|
|
438
|
+
onError: (t, u, o) => {
|
|
439
|
+
e.onError?.(t);
|
|
433
440
|
},
|
|
434
441
|
...e
|
|
435
442
|
});
|
|
436
443
|
}
|
|
437
|
-
function
|
|
438
|
-
const n =
|
|
439
|
-
return
|
|
440
|
-
mutationFn: async (t) => (console.log("Updating input table row..."), await
|
|
444
|
+
function de(e = {}) {
|
|
445
|
+
const n = f();
|
|
446
|
+
return a({
|
|
447
|
+
mutationFn: async (t) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
|
|
441
448
|
t.tableId,
|
|
442
449
|
t.updateData,
|
|
443
450
|
t.rowId
|
|
444
451
|
)),
|
|
445
|
-
onSuccess: (t,
|
|
446
|
-
var i;
|
|
452
|
+
onSuccess: (t, u, o) => {
|
|
447
453
|
n.invalidateQueries({
|
|
448
|
-
queryKey: ["inputTableRows",
|
|
449
|
-
}),
|
|
454
|
+
queryKey: ["inputTableRows", u.tableId]
|
|
455
|
+
}), e.onSuccess?.(t);
|
|
450
456
|
},
|
|
451
|
-
onError: (t,
|
|
452
|
-
|
|
453
|
-
(i = e.onError) == null || i.call(e, t);
|
|
457
|
+
onError: (t, u, o) => {
|
|
458
|
+
e.onError?.(t);
|
|
454
459
|
},
|
|
455
460
|
...e
|
|
456
461
|
});
|
|
457
462
|
}
|
|
458
|
-
function
|
|
459
|
-
const n =
|
|
460
|
-
return
|
|
461
|
-
mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await
|
|
463
|
+
function me(e = {}) {
|
|
464
|
+
const n = f();
|
|
465
|
+
return a({
|
|
466
|
+
mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
|
|
462
467
|
t.tableId,
|
|
463
468
|
t.rowId,
|
|
464
469
|
t.idField
|
|
465
470
|
)),
|
|
466
|
-
onSuccess: (t,
|
|
467
|
-
var i;
|
|
471
|
+
onSuccess: (t, u, o) => {
|
|
468
472
|
n.invalidateQueries({
|
|
469
|
-
queryKey: ["inputTableRows",
|
|
470
|
-
}),
|
|
473
|
+
queryKey: ["inputTableRows", u.tableId]
|
|
474
|
+
}), e.onSuccess?.(t);
|
|
471
475
|
},
|
|
472
|
-
onError: (t,
|
|
473
|
-
|
|
474
|
-
(i = e.onError) == null || i.call(e, t);
|
|
476
|
+
onError: (t, u, o) => {
|
|
477
|
+
e.onError?.(t);
|
|
475
478
|
},
|
|
476
479
|
...e
|
|
477
480
|
});
|
|
478
481
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
481
|
-
mutationFn: async (n) => (console.log("Running definition..."), await
|
|
482
|
+
function qe(e = {}) {
|
|
483
|
+
return a({
|
|
484
|
+
mutationFn: async (n) => (console.log("Running definition..."), await r.definition.runDefinition(n)),
|
|
482
485
|
...e
|
|
483
486
|
});
|
|
484
487
|
}
|
|
485
|
-
function
|
|
486
|
-
return
|
|
487
|
-
mutationFn: async (n) => await
|
|
488
|
+
function Fe(e = {}) {
|
|
489
|
+
return a({
|
|
490
|
+
mutationFn: async (n) => await r.definition.runPublishedDefinition(n),
|
|
488
491
|
...e
|
|
489
492
|
});
|
|
490
493
|
}
|
|
491
|
-
function
|
|
492
|
-
return
|
|
493
|
-
mutationFn: async (n) => await
|
|
494
|
+
function be(e = {}) {
|
|
495
|
+
return a({
|
|
496
|
+
mutationFn: async (n) => await r.definition.runSampleDefinition(n),
|
|
494
497
|
...e
|
|
495
498
|
});
|
|
496
499
|
}
|
|
497
|
-
function
|
|
498
|
-
return
|
|
499
|
-
mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await
|
|
500
|
+
function he(e = {}) {
|
|
501
|
+
return a({
|
|
502
|
+
mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(n)),
|
|
500
503
|
...e
|
|
501
504
|
});
|
|
502
505
|
}
|
|
503
|
-
function
|
|
504
|
-
return
|
|
505
|
-
mutationFn: async (n) => (console.log("Triggering workflow..."), await
|
|
506
|
+
function De(e = {}) {
|
|
507
|
+
return a({
|
|
508
|
+
mutationFn: async (n) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(n)),
|
|
506
509
|
...e
|
|
507
510
|
});
|
|
508
511
|
}
|
|
509
|
-
function
|
|
510
|
-
const n = e.enabled !== !1, t =
|
|
512
|
+
function B(e = {}) {
|
|
513
|
+
const n = e.enabled !== !1, t = i(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), u = c({
|
|
511
514
|
queryKey: ["user"],
|
|
512
515
|
queryFn: t,
|
|
513
516
|
enabled: n,
|
|
514
517
|
options: e
|
|
515
518
|
});
|
|
516
|
-
return s(
|
|
519
|
+
return s(u);
|
|
517
520
|
}
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
const
|
|
521
|
-
function qe(e, n, t = {}) {
|
|
522
|
-
const r = t.enabled !== !1 && !!(e != null && e.trim()), a = c(
|
|
521
|
+
const pe = B, G = ["Owner", "Editor", "Viewer", "ReadOnly"], D = r.permissions?.getPermissions;
|
|
522
|
+
function Te(e, n, t = {}) {
|
|
523
|
+
const u = t.enabled !== !1 && !!e?.trim(), o = i(
|
|
523
524
|
async () => {
|
|
524
|
-
if (!
|
|
525
|
+
if (!e?.trim())
|
|
525
526
|
return {};
|
|
526
|
-
if (!
|
|
527
|
+
if (!D)
|
|
527
528
|
throw new Error(
|
|
528
529
|
"@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
|
|
529
530
|
);
|
|
530
|
-
const y =
|
|
531
|
+
const y = p();
|
|
531
532
|
if (!y.userId)
|
|
532
533
|
throw new Error(
|
|
533
534
|
"@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
|
|
534
535
|
);
|
|
535
|
-
return await
|
|
536
|
+
return await D({
|
|
536
537
|
objectId: e.trim(),
|
|
537
538
|
objectType: n,
|
|
538
539
|
user: y.userId,
|
|
539
540
|
userType: "User",
|
|
540
|
-
relations: t.relations ??
|
|
541
|
+
relations: t.relations ?? G
|
|
541
542
|
});
|
|
542
543
|
},
|
|
543
544
|
void 0,
|
|
544
545
|
0
|
|
545
|
-
),
|
|
546
|
+
), l = c({
|
|
546
547
|
queryKey: ["documentPermissions", e ?? "", n, t.relations ?? []],
|
|
547
|
-
queryFn:
|
|
548
|
-
enabled:
|
|
548
|
+
queryFn: o,
|
|
549
|
+
enabled: u,
|
|
549
550
|
options: t
|
|
550
551
|
});
|
|
551
|
-
return s(
|
|
552
|
+
return s(l);
|
|
552
553
|
}
|
|
553
|
-
function
|
|
554
|
-
return
|
|
555
|
-
mutationFn: async (n) => (console.log("Uploading file..."), await
|
|
554
|
+
function Re(e = {}) {
|
|
555
|
+
return a({
|
|
556
|
+
mutationFn: async (n) => (console.log("Uploading file..."), await r.files.fileUpload(n)),
|
|
556
557
|
...e
|
|
557
558
|
});
|
|
558
559
|
}
|
|
559
|
-
function
|
|
560
|
+
function Se({
|
|
560
561
|
fileId: e,
|
|
561
562
|
contentType: n = "application/json",
|
|
562
563
|
method: t = "GET"
|
|
563
|
-
},
|
|
564
|
-
const
|
|
564
|
+
}, u = {}) {
|
|
565
|
+
const o = !!e, l = i(async () => {
|
|
565
566
|
if (!e)
|
|
566
567
|
throw new Error("File ID is required");
|
|
567
|
-
return console.log("Downloading file..."), await
|
|
568
|
-
}), y =
|
|
568
|
+
return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: n, method: t });
|
|
569
|
+
}), y = c({
|
|
569
570
|
queryKey: ["file", "fileDownload", e],
|
|
570
|
-
queryFn:
|
|
571
|
-
enabled:
|
|
572
|
-
options:
|
|
571
|
+
queryFn: l,
|
|
572
|
+
enabled: o,
|
|
573
|
+
options: u
|
|
573
574
|
});
|
|
574
575
|
return s(y);
|
|
575
576
|
}
|
|
576
|
-
function
|
|
577
|
-
const t = !!e,
|
|
577
|
+
function ke(e, n = {}) {
|
|
578
|
+
const t = !!e, u = i(async () => {
|
|
578
579
|
if (!e)
|
|
579
580
|
throw new Error("Task ID is required");
|
|
580
|
-
return console.log("Fetching task details..."), await
|
|
581
|
-
}),
|
|
581
|
+
return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
|
|
582
|
+
}), o = c({
|
|
582
583
|
queryKey: ["task", "getTaskDetails", e],
|
|
583
|
-
queryFn:
|
|
584
|
+
queryFn: u,
|
|
584
585
|
enabled: t,
|
|
585
586
|
options: n
|
|
586
587
|
});
|
|
587
|
-
return s(
|
|
588
|
+
return s(o);
|
|
588
589
|
}
|
|
589
|
-
function
|
|
590
|
-
const t = !!e,
|
|
590
|
+
function Ce(e, n = {}) {
|
|
591
|
+
const t = !!e, u = i(async () => {
|
|
591
592
|
if (!e)
|
|
592
593
|
throw new Error("Workbook ID is required");
|
|
593
|
-
return console.log("Fetching workbook details..."), await
|
|
594
|
-
}),
|
|
594
|
+
return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
|
|
595
|
+
}), o = c({
|
|
595
596
|
queryKey: ["workbook", "getWorkbookDetails", e],
|
|
596
|
-
queryFn:
|
|
597
|
+
queryFn: u,
|
|
597
598
|
enabled: t,
|
|
598
599
|
options: n
|
|
599
600
|
});
|
|
600
|
-
return s(
|
|
601
|
+
return s(o);
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
-
return
|
|
604
|
-
mutationFn: async (n) => (console.log("Saving workbook..."), await
|
|
603
|
+
function Ee(e = {}) {
|
|
604
|
+
return a({
|
|
605
|
+
mutationFn: async (n) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(n)),
|
|
605
606
|
...e
|
|
606
607
|
});
|
|
607
608
|
}
|
|
608
|
-
function
|
|
609
|
-
return
|
|
610
|
-
mutationFn: async (n) => (console.log("Publishing workbook..."), await
|
|
609
|
+
function Ke(e = {}) {
|
|
610
|
+
return a({
|
|
611
|
+
mutationFn: async (n) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(n)),
|
|
611
612
|
...e
|
|
612
613
|
});
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
-
return
|
|
616
|
-
mutationFn: async (n) => (console.log("Running recon workflow..."), await
|
|
615
|
+
function Ve(e = {}) {
|
|
616
|
+
return a({
|
|
617
|
+
mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
|
|
617
618
|
...e
|
|
618
619
|
});
|
|
619
620
|
}
|
|
620
|
-
function
|
|
621
|
-
const
|
|
621
|
+
function Be(e, n, t = {}) {
|
|
622
|
+
const u = !!e && !!n, o = i(async () => {
|
|
622
623
|
if (!e || !n)
|
|
623
624
|
throw new Error("Form instance ID and revision are required");
|
|
624
|
-
return console.log("Fetching form schema..."), await
|
|
625
|
+
return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: n });
|
|
625
626
|
});
|
|
626
627
|
return s(
|
|
627
|
-
|
|
628
|
+
c({
|
|
628
629
|
queryKey: ["form", "getFormSchema", e, n],
|
|
629
|
-
queryFn:
|
|
630
|
-
enabled:
|
|
630
|
+
queryFn: o,
|
|
631
|
+
enabled: u,
|
|
631
632
|
options: t
|
|
632
633
|
})
|
|
633
634
|
);
|
|
634
635
|
}
|
|
635
|
-
function
|
|
636
|
-
const t = !!e,
|
|
636
|
+
function Ge(e, n = {}) {
|
|
637
|
+
const t = !!e, u = i(async () => {
|
|
637
638
|
if (!e)
|
|
638
639
|
throw new Error("Form ID is required");
|
|
639
|
-
return console.log("Fetching form data..."), await
|
|
640
|
-
}),
|
|
640
|
+
return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
|
|
641
|
+
}), o = c({
|
|
641
642
|
queryKey: ["form", "getFormData", e],
|
|
642
|
-
queryFn:
|
|
643
|
+
queryFn: u,
|
|
643
644
|
enabled: t,
|
|
644
645
|
options: n
|
|
645
646
|
});
|
|
646
|
-
return s(
|
|
647
|
+
return s(o);
|
|
647
648
|
}
|
|
648
|
-
function
|
|
649
|
+
function Pe(e, n = {}) {
|
|
649
650
|
return s({
|
|
650
651
|
queryKey: ["form", e],
|
|
651
652
|
queryFn: async () => {
|
|
652
653
|
if (!e)
|
|
653
654
|
throw new Error("Form ID is required");
|
|
654
|
-
return await
|
|
655
|
+
return await r.form.getFormById({ formId: e });
|
|
655
656
|
},
|
|
656
657
|
enabled: !!e,
|
|
657
658
|
...n
|
|
658
659
|
});
|
|
659
660
|
}
|
|
660
|
-
function
|
|
661
|
-
return
|
|
662
|
-
mutationFn: async (n) => await
|
|
661
|
+
function Oe(e = {}) {
|
|
662
|
+
return a({
|
|
663
|
+
mutationFn: async (n) => await r.form.createOrUpdateForm(n),
|
|
663
664
|
...e
|
|
664
665
|
});
|
|
665
666
|
}
|
|
666
|
-
function
|
|
667
|
-
return
|
|
668
|
-
mutationFn: async (n) => await
|
|
667
|
+
function Ae(e = {}) {
|
|
668
|
+
return a({
|
|
669
|
+
mutationFn: async (n) => await r.audit.getAuditLogs(n),
|
|
669
670
|
...e
|
|
670
671
|
});
|
|
671
672
|
}
|
|
672
|
-
function
|
|
673
|
-
return
|
|
674
|
-
mutationFn: async (n) => await
|
|
673
|
+
function Ue(e = {}) {
|
|
674
|
+
return a({
|
|
675
|
+
mutationFn: async (n) => await r.audit.createAuditLog(n),
|
|
675
676
|
...e
|
|
676
677
|
});
|
|
677
678
|
}
|
|
678
|
-
function
|
|
679
|
+
function ve(e = {}) {
|
|
679
680
|
return s({
|
|
680
681
|
queryKey: ["templatedPipelines"],
|
|
681
|
-
queryFn: async () => await
|
|
682
|
+
queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
|
|
682
683
|
...e
|
|
683
684
|
});
|
|
684
685
|
}
|
|
685
|
-
function
|
|
686
|
+
function We(e = {}) {
|
|
686
687
|
return s({
|
|
687
688
|
queryKey: ["reconWorkflows"],
|
|
688
|
-
queryFn: async () => await
|
|
689
|
+
queryFn: async () => await r.recon.getAllReconWorkflows(),
|
|
689
690
|
...e
|
|
690
691
|
});
|
|
691
692
|
}
|
|
692
|
-
function
|
|
693
|
+
function xe(e = {}) {
|
|
694
|
+
return a({
|
|
695
|
+
mutationFn: async (n) => await r.reconV2.createReconV2(n),
|
|
696
|
+
...e
|
|
697
|
+
});
|
|
698
|
+
}
|
|
699
|
+
function Me(e = {}) {
|
|
700
|
+
return a({
|
|
701
|
+
mutationFn: async (n) => await r.reconV2.updateReconV2(n),
|
|
702
|
+
...e
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
function Ie(e = {}) {
|
|
706
|
+
return a({
|
|
707
|
+
mutationFn: async (n) => await r.reconV2.deleteReconV2(n),
|
|
708
|
+
...e
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
function Qe(e = {}) {
|
|
712
|
+
return a({
|
|
713
|
+
mutationFn: async (n) => await r.reconV2.runReconV2(n),
|
|
714
|
+
...e
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
function _e(e = {}) {
|
|
718
|
+
return s({
|
|
719
|
+
queryKey: ["reconV2Workflows"],
|
|
720
|
+
queryFn: async () => await r.reconV2.getAllReconV2Workflows(),
|
|
721
|
+
...e
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
function Ne(e, n = {}) {
|
|
725
|
+
const t = e?.trim();
|
|
726
|
+
return s({
|
|
727
|
+
queryKey: ["reconV2", "runs", t],
|
|
728
|
+
queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId: t }),
|
|
729
|
+
enabled: !!t,
|
|
730
|
+
...n
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
function He(e, n = {}) {
|
|
734
|
+
return s({
|
|
735
|
+
queryKey: ["reconV2", "runResult", e],
|
|
736
|
+
queryFn: async () => await r.reconV2.getReconV2RunResult({ runId: e }),
|
|
737
|
+
enabled: !!e,
|
|
738
|
+
...n
|
|
739
|
+
});
|
|
740
|
+
}
|
|
741
|
+
function Le(e, n = {}) {
|
|
742
|
+
return s({
|
|
743
|
+
queryKey: [
|
|
744
|
+
"reconV2",
|
|
745
|
+
"smartResult",
|
|
746
|
+
e.runId,
|
|
747
|
+
e.workflowId,
|
|
748
|
+
e.exceptionType,
|
|
749
|
+
e.ruleFilter,
|
|
750
|
+
e.orderBy
|
|
751
|
+
],
|
|
752
|
+
queryFn: async () => await r.reconV2.getReconV2SmartResult(
|
|
753
|
+
e
|
|
754
|
+
),
|
|
755
|
+
enabled: !!e.runId && !!e.workflowId,
|
|
756
|
+
...n
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
function ze(e = {}) {
|
|
760
|
+
return a({
|
|
761
|
+
mutationFn: async (n) => await r.reconV2.startReconV2Profile(n),
|
|
762
|
+
...e
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
function je(e, n = "left", t = {}) {
|
|
766
|
+
return s({
|
|
767
|
+
queryKey: ["reconV2", "profile", e, n],
|
|
768
|
+
queryFn: async () => await r.reconV2.getReconV2ProfileResult({
|
|
769
|
+
workflowId: e,
|
|
770
|
+
side: n
|
|
771
|
+
}),
|
|
772
|
+
enabled: !!e,
|
|
773
|
+
...t
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
function Je(e = {}) {
|
|
777
|
+
return a({
|
|
778
|
+
mutationFn: async (n) => await r.reconV2.startReconV2Clean(n),
|
|
779
|
+
...e
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
function Ye(e, n = "left", t = {}) {
|
|
783
|
+
return s({
|
|
784
|
+
queryKey: ["reconV2", "clean", e, n],
|
|
785
|
+
queryFn: async () => await r.reconV2.getReconV2CleanResult({
|
|
786
|
+
workflowId: e,
|
|
787
|
+
side: n
|
|
788
|
+
}),
|
|
789
|
+
enabled: !!e,
|
|
790
|
+
...t
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
function $e(e, n, t, u = {}) {
|
|
794
|
+
return s({
|
|
795
|
+
queryKey: ["reconV2", "diff", e, t],
|
|
796
|
+
queryFn: async () => await r.reconV2.getReconV2Diff({
|
|
797
|
+
runId: e,
|
|
798
|
+
workflowId: n,
|
|
799
|
+
prevRunId: t
|
|
800
|
+
}),
|
|
801
|
+
enabled: !!e && !!n && !!t,
|
|
802
|
+
...u
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
function Xe(e, n, t = {}) {
|
|
806
|
+
return s({
|
|
807
|
+
queryKey: ["reconV2", "explanation", e],
|
|
808
|
+
queryFn: async () => await r.reconV2.getReconV2Explanation({
|
|
809
|
+
runId: e,
|
|
810
|
+
workflowId: n
|
|
811
|
+
}),
|
|
812
|
+
enabled: !!e && !!n,
|
|
813
|
+
...t
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
const P = ["SUCCEEDED", "FAILED"];
|
|
817
|
+
function Ze(e, n = {}) {
|
|
818
|
+
const [t, u] = h(
|
|
819
|
+
void 0
|
|
820
|
+
), [o, l] = h(!1), y = S(n.onComplete);
|
|
821
|
+
return y.current = n.onComplete, k(() => {
|
|
822
|
+
if (!e)
|
|
823
|
+
return;
|
|
824
|
+
const g = p().websocketProvider;
|
|
825
|
+
if (!g)
|
|
826
|
+
return;
|
|
827
|
+
u(void 0), l(!1);
|
|
828
|
+
const w = R.websocketUtils.ReconResultChannel;
|
|
829
|
+
let m = !1;
|
|
830
|
+
const F = () => {
|
|
831
|
+
m || (m = !0, g.unbind(w, e));
|
|
832
|
+
};
|
|
833
|
+
return g.bind(w, e, (b) => {
|
|
834
|
+
let q;
|
|
835
|
+
try {
|
|
836
|
+
q = typeof b == "string" ? JSON.parse(b) : b;
|
|
837
|
+
} catch {
|
|
838
|
+
q = { status: void 0 };
|
|
839
|
+
}
|
|
840
|
+
u(q);
|
|
841
|
+
const d = q?.status?.toUpperCase();
|
|
842
|
+
d && P.includes(d) && (l(!0), y.current?.(q), F());
|
|
843
|
+
}), F;
|
|
844
|
+
}, [e]), { data: t, isTerminal: o };
|
|
845
|
+
}
|
|
846
|
+
function en(e = {}) {
|
|
693
847
|
return s({
|
|
694
848
|
queryKey: ["users"],
|
|
695
|
-
queryFn: async () => await
|
|
849
|
+
queryFn: async () => await r.user.getAllUsers(),
|
|
696
850
|
...e
|
|
697
851
|
});
|
|
698
852
|
}
|
|
699
|
-
function
|
|
853
|
+
function nn(e = {}) {
|
|
700
854
|
return s({
|
|
701
855
|
queryKey: ["httpTriggers"],
|
|
702
|
-
queryFn: async () => await
|
|
856
|
+
queryFn: async () => await r.workflow.getAllHttpTriggers(),
|
|
703
857
|
...e
|
|
704
858
|
});
|
|
705
859
|
}
|
|
706
|
-
function
|
|
707
|
-
return
|
|
708
|
-
mutationFn: async (n) => await
|
|
860
|
+
function tn(e = {}) {
|
|
861
|
+
return a({
|
|
862
|
+
mutationFn: async (n) => await r.process.markTaskDone(n),
|
|
709
863
|
...e
|
|
710
864
|
});
|
|
711
865
|
}
|
|
712
|
-
function
|
|
713
|
-
return
|
|
714
|
-
mutationFn: async (n) => await
|
|
866
|
+
function rn(e = {}) {
|
|
867
|
+
return a({
|
|
868
|
+
mutationFn: async (n) => await r.process.reassignTask(n),
|
|
715
869
|
...e
|
|
716
870
|
});
|
|
717
871
|
}
|
|
718
|
-
function
|
|
872
|
+
function un(e, n = {}) {
|
|
719
873
|
return s({
|
|
720
874
|
queryKey: ["processTriggers", e],
|
|
721
|
-
queryFn: async () => await
|
|
875
|
+
queryFn: async () => await r.process.getTriggersBySheet(e),
|
|
722
876
|
enabled: !!e,
|
|
723
877
|
...n
|
|
724
878
|
});
|
|
725
879
|
}
|
|
726
|
-
function
|
|
727
|
-
const n =
|
|
728
|
-
return
|
|
729
|
-
mutationFn: async (t) => await
|
|
730
|
-
onSuccess: (t,
|
|
880
|
+
function on(e = {}) {
|
|
881
|
+
const n = f();
|
|
882
|
+
return a({
|
|
883
|
+
mutationFn: async (t) => await r.process.registerProcessTrigger(t),
|
|
884
|
+
onSuccess: (t, u) => {
|
|
731
885
|
n.invalidateQueries({
|
|
732
|
-
queryKey: ["processTriggers",
|
|
886
|
+
queryKey: ["processTriggers", u.process_sheet_id]
|
|
733
887
|
});
|
|
734
888
|
},
|
|
735
889
|
...e
|
|
736
890
|
});
|
|
737
891
|
}
|
|
738
|
-
function
|
|
739
|
-
const n =
|
|
740
|
-
return
|
|
741
|
-
mutationFn: async ({ id: t }) => await
|
|
742
|
-
onSuccess: (t,
|
|
892
|
+
function an(e = {}) {
|
|
893
|
+
const n = f();
|
|
894
|
+
return a({
|
|
895
|
+
mutationFn: async ({ id: t }) => await r.process.deleteProcessTrigger(t),
|
|
896
|
+
onSuccess: (t, u) => {
|
|
743
897
|
n.invalidateQueries({
|
|
744
|
-
queryKey:
|
|
898
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
745
899
|
});
|
|
746
900
|
},
|
|
747
901
|
...e
|
|
748
902
|
});
|
|
749
903
|
}
|
|
750
|
-
function
|
|
751
|
-
const n =
|
|
752
|
-
return
|
|
753
|
-
mutationFn: async ({ triggerId: t, scheduleName:
|
|
754
|
-
onSuccess: (t,
|
|
904
|
+
function sn(e = {}) {
|
|
905
|
+
const n = f();
|
|
906
|
+
return a({
|
|
907
|
+
mutationFn: async ({ triggerId: t, scheduleName: u }) => await r.process.pauseSchedule(t, u),
|
|
908
|
+
onSuccess: (t, u) => {
|
|
755
909
|
n.invalidateQueries({
|
|
756
|
-
queryKey:
|
|
910
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
757
911
|
}), n.invalidateQueries({
|
|
758
|
-
queryKey: ["scheduleStatus",
|
|
912
|
+
queryKey: ["scheduleStatus", u.triggerId, u.scheduleName]
|
|
759
913
|
});
|
|
760
914
|
},
|
|
761
915
|
...e
|
|
762
916
|
});
|
|
763
917
|
}
|
|
764
|
-
function
|
|
765
|
-
const n =
|
|
766
|
-
return
|
|
767
|
-
mutationFn: async ({ triggerId: t, scheduleName:
|
|
768
|
-
onSuccess: (t,
|
|
918
|
+
function cn(e = {}) {
|
|
919
|
+
const n = f();
|
|
920
|
+
return a({
|
|
921
|
+
mutationFn: async ({ triggerId: t, scheduleName: u }) => await r.process.resumeSchedule(t, u),
|
|
922
|
+
onSuccess: (t, u) => {
|
|
769
923
|
n.invalidateQueries({
|
|
770
|
-
queryKey:
|
|
924
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
771
925
|
}), n.invalidateQueries({
|
|
772
|
-
queryKey: ["scheduleStatus",
|
|
926
|
+
queryKey: ["scheduleStatus", u.triggerId, u.scheduleName]
|
|
773
927
|
});
|
|
774
928
|
},
|
|
775
929
|
...e
|
|
776
930
|
});
|
|
777
931
|
}
|
|
778
|
-
function
|
|
932
|
+
function ln(e, n, t = {}) {
|
|
779
933
|
return s({
|
|
780
934
|
queryKey: ["scheduleStatus", e, n],
|
|
781
|
-
queryFn: async () => await
|
|
935
|
+
queryFn: async () => await r.process.getScheduleStatus(
|
|
782
936
|
e,
|
|
783
937
|
n
|
|
784
938
|
),
|
|
@@ -786,83 +940,83 @@ function _e(e, n, t = {}) {
|
|
|
786
940
|
...t
|
|
787
941
|
});
|
|
788
942
|
}
|
|
789
|
-
function
|
|
790
|
-
const n =
|
|
791
|
-
return
|
|
792
|
-
mutationFn: async ({ triggerId: t, scheduleName:
|
|
793
|
-
onSuccess: (t,
|
|
943
|
+
function yn(e = {}) {
|
|
944
|
+
const n = f();
|
|
945
|
+
return a({
|
|
946
|
+
mutationFn: async ({ triggerId: t, scheduleName: u }) => await r.process.executeNow(t, u),
|
|
947
|
+
onSuccess: (t, u) => {
|
|
794
948
|
n.invalidateQueries({
|
|
795
|
-
queryKey:
|
|
949
|
+
queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
|
|
796
950
|
});
|
|
797
951
|
},
|
|
798
952
|
...e
|
|
799
953
|
});
|
|
800
954
|
}
|
|
801
|
-
function
|
|
955
|
+
function gn(e = {}, n = {}) {
|
|
802
956
|
return s({
|
|
803
957
|
queryKey: ["inboxItems", "all", e.page, e.perPage],
|
|
804
|
-
queryFn: async () => await
|
|
958
|
+
queryFn: async () => await r.inboxItems.getAllInboxItems(e),
|
|
805
959
|
...n
|
|
806
960
|
});
|
|
807
961
|
}
|
|
808
|
-
function
|
|
809
|
-
return
|
|
810
|
-
mutationFn: async (n) => await
|
|
962
|
+
function fn(e = {}) {
|
|
963
|
+
return a({
|
|
964
|
+
mutationFn: async (n) => await r.inboxItems.markItemAsRead(n),
|
|
811
965
|
...e
|
|
812
966
|
});
|
|
813
967
|
}
|
|
814
|
-
function
|
|
815
|
-
return
|
|
816
|
-
mutationFn: async (n) => await
|
|
968
|
+
function wn(e = {}) {
|
|
969
|
+
return a({
|
|
970
|
+
mutationFn: async (n) => await r.inboxItems.markItemAsUnread(n),
|
|
817
971
|
...e
|
|
818
972
|
});
|
|
819
973
|
}
|
|
820
|
-
function
|
|
821
|
-
return
|
|
822
|
-
mutationFn: async (n) => await
|
|
974
|
+
function dn(e = {}) {
|
|
975
|
+
return a({
|
|
976
|
+
mutationFn: async (n) => await r.inboxItems.createInboxItemPerUser(n),
|
|
823
977
|
...e
|
|
824
978
|
});
|
|
825
979
|
}
|
|
826
|
-
function
|
|
980
|
+
function mn(e, n = {}) {
|
|
827
981
|
return s({
|
|
828
|
-
queryKey: ["emailConversations", e
|
|
829
|
-
queryFn: async () => await
|
|
982
|
+
queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
|
|
983
|
+
queryFn: async () => await r.emailEngine.getAllConversations(e),
|
|
830
984
|
...n
|
|
831
985
|
});
|
|
832
986
|
}
|
|
833
|
-
function
|
|
987
|
+
function qn(e, n = {}) {
|
|
834
988
|
return s({
|
|
835
989
|
queryKey: ["emailConversation", e],
|
|
836
|
-
queryFn: async () => await
|
|
990
|
+
queryFn: async () => await r.emailEngine.getConversation({
|
|
837
991
|
conversationId: e
|
|
838
992
|
}),
|
|
839
993
|
enabled: !!e,
|
|
840
994
|
...n
|
|
841
995
|
});
|
|
842
996
|
}
|
|
843
|
-
function
|
|
844
|
-
const n =
|
|
845
|
-
return
|
|
846
|
-
mutationFn: async (t) => await
|
|
997
|
+
function Fn(e = {}) {
|
|
998
|
+
const n = f();
|
|
999
|
+
return a({
|
|
1000
|
+
mutationFn: async (t) => await r.emailEngine.createConversation(t),
|
|
847
1001
|
onSuccess: () => {
|
|
848
1002
|
n.invalidateQueries({ queryKey: ["emailConversations"] });
|
|
849
1003
|
},
|
|
850
1004
|
...e
|
|
851
1005
|
});
|
|
852
1006
|
}
|
|
853
|
-
function
|
|
854
|
-
const n =
|
|
855
|
-
return
|
|
856
|
-
mutationFn: async (t) => await
|
|
857
|
-
onSuccess: (t,
|
|
1007
|
+
function bn(e = {}) {
|
|
1008
|
+
const n = f();
|
|
1009
|
+
return a({
|
|
1010
|
+
mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
|
|
1011
|
+
onSuccess: (t, u) => {
|
|
858
1012
|
n.invalidateQueries({
|
|
859
|
-
queryKey: ["emailConversation",
|
|
1013
|
+
queryKey: ["emailConversation", u.conversationId]
|
|
860
1014
|
});
|
|
861
1015
|
},
|
|
862
1016
|
...e
|
|
863
1017
|
});
|
|
864
1018
|
}
|
|
865
|
-
function
|
|
1019
|
+
function hn(e, n = {}) {
|
|
866
1020
|
return s({
|
|
867
1021
|
queryKey: [
|
|
868
1022
|
"emailMessagesBySender",
|
|
@@ -872,19 +1026,19 @@ function Ze(e, n = {}) {
|
|
|
872
1026
|
e.pageSize,
|
|
873
1027
|
e.orderByCreatedDate
|
|
874
1028
|
],
|
|
875
|
-
queryFn: async () => await
|
|
1029
|
+
queryFn: async () => await r.emailEngine.getMessageBySenderId(e),
|
|
876
1030
|
enabled: !!e.senderId,
|
|
877
1031
|
...n
|
|
878
1032
|
});
|
|
879
1033
|
}
|
|
880
|
-
function
|
|
881
|
-
return
|
|
882
|
-
mutationFn: async (n) => await
|
|
1034
|
+
function Dn(e = {}) {
|
|
1035
|
+
return a({
|
|
1036
|
+
mutationFn: async (n) => await r.emailEngine.searchMessages(n),
|
|
883
1037
|
...e
|
|
884
1038
|
});
|
|
885
1039
|
}
|
|
886
|
-
function
|
|
887
|
-
const n =
|
|
1040
|
+
function pn(e = {}) {
|
|
1041
|
+
const n = i(async () => await r.tcn.getAuthUrl()), t = c({
|
|
888
1042
|
queryKey: ["tcn", "authUrl"],
|
|
889
1043
|
queryFn: n,
|
|
890
1044
|
enabled: !0,
|
|
@@ -892,230 +1046,246 @@ function en(e = {}) {
|
|
|
892
1046
|
});
|
|
893
1047
|
return s(t);
|
|
894
1048
|
}
|
|
895
|
-
function
|
|
896
|
-
return
|
|
897
|
-
mutationFn: async ({ code: n }) => await
|
|
1049
|
+
function Tn(e = {}) {
|
|
1050
|
+
return a({
|
|
1051
|
+
mutationFn: async ({ code: n }) => await r.tcn.exchangeCode(n),
|
|
898
1052
|
...e
|
|
899
1053
|
});
|
|
900
1054
|
}
|
|
901
|
-
function
|
|
902
|
-
return
|
|
903
|
-
mutationFn: async ({ refresh_token: n }) => await
|
|
1055
|
+
function Rn(e = {}) {
|
|
1056
|
+
return a({
|
|
1057
|
+
mutationFn: async ({ refresh_token: n }) => await r.tcn.refreshToken(n),
|
|
904
1058
|
...e
|
|
905
1059
|
});
|
|
906
1060
|
}
|
|
907
|
-
function
|
|
908
|
-
return
|
|
909
|
-
mutationFn: async ({ token: n }) => await
|
|
1061
|
+
function Sn(e = {}) {
|
|
1062
|
+
return a({
|
|
1063
|
+
mutationFn: async ({ token: n }) => await r.tcn.getCurrentAgent(n),
|
|
910
1064
|
...e
|
|
911
1065
|
});
|
|
912
1066
|
}
|
|
913
|
-
function
|
|
914
|
-
return
|
|
915
|
-
mutationFn: async ({ token: n, huntGroupSid: t }) => await
|
|
1067
|
+
function kn(e = {}) {
|
|
1068
|
+
return a({
|
|
1069
|
+
mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getAgentSkills(n, t),
|
|
916
1070
|
...e
|
|
917
1071
|
});
|
|
918
1072
|
}
|
|
919
|
-
function
|
|
920
|
-
return
|
|
921
|
-
mutationFn: async ({ token: n, huntGroupSid: t, skills:
|
|
1073
|
+
function Cn(e = {}) {
|
|
1074
|
+
return a({
|
|
1075
|
+
mutationFn: async ({ token: n, huntGroupSid: t, skills: u }) => await r.tcn.createSession(n, t, u),
|
|
922
1076
|
...e
|
|
923
1077
|
});
|
|
924
1078
|
}
|
|
925
|
-
function
|
|
926
|
-
return
|
|
927
|
-
mutationFn: async ({ token: n, sessionSid: t }) => await
|
|
1079
|
+
function En(e = {}) {
|
|
1080
|
+
return a({
|
|
1081
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.keepAlive(n, t),
|
|
928
1082
|
...e
|
|
929
1083
|
});
|
|
930
1084
|
}
|
|
931
|
-
function
|
|
932
|
-
return
|
|
933
|
-
mutationFn: async ({ token: n }) => await
|
|
1085
|
+
function Kn(e = {}) {
|
|
1086
|
+
return a({
|
|
1087
|
+
mutationFn: async ({ token: n }) => await r.tcn.agentGetStatus(n),
|
|
934
1088
|
...e
|
|
935
1089
|
});
|
|
936
1090
|
}
|
|
937
|
-
function
|
|
938
|
-
return
|
|
939
|
-
mutationFn: async ({ token: n, huntGroupSid: t }) => await
|
|
1091
|
+
function Vn(e = {}) {
|
|
1092
|
+
return a({
|
|
1093
|
+
mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getHuntGroupAgentSettings(n, t),
|
|
940
1094
|
...e
|
|
941
1095
|
});
|
|
942
1096
|
}
|
|
943
|
-
function
|
|
944
|
-
return
|
|
945
|
-
mutationFn: async ({ token: n, sessionSid: t }) => await
|
|
1097
|
+
function Bn(e = {}) {
|
|
1098
|
+
return a({
|
|
1099
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.dialManualPrepare(n, t),
|
|
946
1100
|
...e
|
|
947
1101
|
});
|
|
948
1102
|
}
|
|
949
|
-
function
|
|
950
|
-
return
|
|
951
|
-
mutationFn: async ({ token: n, call: t }) => await
|
|
1103
|
+
function Gn(e = {}) {
|
|
1104
|
+
return a({
|
|
1105
|
+
mutationFn: async ({ token: n, call: t }) => await r.tcn.processManualDial(n, t),
|
|
952
1106
|
...e
|
|
953
1107
|
});
|
|
954
1108
|
}
|
|
955
|
-
function
|
|
956
|
-
return
|
|
957
|
-
mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid:
|
|
1109
|
+
function Pn(e = {}) {
|
|
1110
|
+
return a({
|
|
1111
|
+
mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: u, simpleCallData: o }) => await r.tcn.manualDialStart(
|
|
958
1112
|
n,
|
|
959
1113
|
t,
|
|
960
|
-
|
|
961
|
-
|
|
1114
|
+
u,
|
|
1115
|
+
o
|
|
962
1116
|
),
|
|
963
1117
|
...e
|
|
964
1118
|
});
|
|
965
1119
|
}
|
|
966
|
-
function
|
|
967
|
-
return
|
|
968
|
-
mutationFn: async ({ token: n, sessionSid: t, reason:
|
|
1120
|
+
function On(e = {}) {
|
|
1121
|
+
return a({
|
|
1122
|
+
mutationFn: async ({ token: n, sessionSid: t, reason: u }) => await r.tcn.agentDisconnect(n, t, u),
|
|
969
1123
|
...e
|
|
970
1124
|
});
|
|
971
1125
|
}
|
|
972
|
-
function
|
|
973
|
-
return
|
|
974
|
-
mutationFn: async ({ token: n, sessionSid: t }) => await
|
|
1126
|
+
function An(e = {}) {
|
|
1127
|
+
return a({
|
|
1128
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentPause(n, t),
|
|
975
1129
|
...e
|
|
976
1130
|
});
|
|
977
1131
|
}
|
|
978
|
-
function
|
|
979
|
-
return
|
|
980
|
-
mutationFn: async ({ token: n, sessionSid: t }) => await
|
|
1132
|
+
function Un(e = {}) {
|
|
1133
|
+
return a({
|
|
1134
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentSetReady(n, t),
|
|
981
1135
|
...e
|
|
982
1136
|
});
|
|
983
1137
|
}
|
|
984
|
-
function
|
|
985
|
-
return
|
|
986
|
-
mutationFn: async ({ token: n, sessionSid: t }) => await
|
|
1138
|
+
function vn(e = {}) {
|
|
1139
|
+
return a({
|
|
1140
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentGetConnectedParty(n, t),
|
|
987
1141
|
...e
|
|
988
1142
|
});
|
|
989
1143
|
}
|
|
990
|
-
function
|
|
991
|
-
return
|
|
992
|
-
mutationFn: async ({ token: n, callSid: t }) => await
|
|
1144
|
+
function Wn(e = {}) {
|
|
1145
|
+
return a({
|
|
1146
|
+
mutationFn: async ({ token: n, callSid: t }) => await r.tcn.getCallData(n, t),
|
|
993
1147
|
...e
|
|
994
1148
|
});
|
|
995
1149
|
}
|
|
996
|
-
function
|
|
997
|
-
return
|
|
998
|
-
mutationFn: async ({ token: n, sessionSid: t, holdType:
|
|
1150
|
+
function xn(e = {}) {
|
|
1151
|
+
return a({
|
|
1152
|
+
mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentPutCallOnHold(n, t, u),
|
|
999
1153
|
...e
|
|
1000
1154
|
});
|
|
1001
1155
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
1004
|
-
mutationFn: async ({ token: n, sessionSid: t, holdType:
|
|
1156
|
+
function Mn(e = {}) {
|
|
1157
|
+
return a({
|
|
1158
|
+
mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentGetCallFromHold(n, t, u),
|
|
1005
1159
|
...e
|
|
1006
1160
|
});
|
|
1007
1161
|
}
|
|
1008
|
-
function
|
|
1009
|
-
return
|
|
1010
|
-
mutationFn: async ({ token: n, templateNumber: t, groupSid:
|
|
1162
|
+
function In(e = {}) {
|
|
1163
|
+
return a({
|
|
1164
|
+
mutationFn: async ({ token: n, templateNumber: t, groupSid: u }) => await r.tcn.ftpManualDialReport(n, t, u),
|
|
1011
1165
|
...e
|
|
1012
1166
|
});
|
|
1013
1167
|
}
|
|
1014
|
-
function
|
|
1015
|
-
return
|
|
1016
|
-
mutationFn: async (n) => await
|
|
1168
|
+
function Qn(e = {}) {
|
|
1169
|
+
return a({
|
|
1170
|
+
mutationFn: async (n) => await r.templates.renderTemplate(n),
|
|
1017
1171
|
...e
|
|
1018
1172
|
});
|
|
1019
1173
|
}
|
|
1020
1174
|
export {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
x as
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
ne as
|
|
1069
|
-
te as
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1175
|
+
Ln as ReactQueryDevtools,
|
|
1176
|
+
V as WorkflowStatus,
|
|
1177
|
+
A as reactQuery,
|
|
1178
|
+
z as useCheckSubscriptionStatus,
|
|
1179
|
+
Ue as useCreateAuditLog,
|
|
1180
|
+
Fn as useCreateConversation,
|
|
1181
|
+
dn as useCreateInboxItemPerUser,
|
|
1182
|
+
Oe as useCreateOrUpdateForm,
|
|
1183
|
+
xe as useCreateReconV2,
|
|
1184
|
+
j as useCreateStatementRun,
|
|
1185
|
+
M as useCreateThread,
|
|
1186
|
+
J as useDataset,
|
|
1187
|
+
x as useDatasetSample,
|
|
1188
|
+
N as useDeleteComment,
|
|
1189
|
+
an as useDeleteProcessTrigger,
|
|
1190
|
+
Ie as useDeleteReconV2,
|
|
1191
|
+
me as useDeleteRow,
|
|
1192
|
+
Te as useDocumentPermissions,
|
|
1193
|
+
yn as useExecuteNow,
|
|
1194
|
+
Se as useFileDownload,
|
|
1195
|
+
Re as useFileUpload,
|
|
1196
|
+
hn as useFilterMessagesBySenderId,
|
|
1197
|
+
mn as useGetAllConversations,
|
|
1198
|
+
nn as useGetAllHttpTriggers,
|
|
1199
|
+
gn as useGetAllInboxItems,
|
|
1200
|
+
We as useGetAllRecon,
|
|
1201
|
+
_e as useGetAllReconV2,
|
|
1202
|
+
ve as useGetAllTemplatedPipelines,
|
|
1203
|
+
en as useGetAllUsers,
|
|
1204
|
+
Ae as useGetAuditLogs,
|
|
1205
|
+
I as useGetCommentsByThreadId,
|
|
1206
|
+
qn as useGetConversation,
|
|
1207
|
+
Y as useGetDatasets,
|
|
1208
|
+
Z as useGetFileByFolderIdAndName,
|
|
1209
|
+
X as useGetFileUrlByFileId,
|
|
1210
|
+
Pe as useGetFormById,
|
|
1211
|
+
Ge as useGetFormData,
|
|
1212
|
+
Be as useGetFormSchema,
|
|
1213
|
+
ge as useGetInputTables,
|
|
1214
|
+
ee as useGetPublishedWorkbookById,
|
|
1215
|
+
Ye as useGetReconV2CleanResult,
|
|
1216
|
+
$e as useGetReconV2Diff,
|
|
1217
|
+
Xe as useGetReconV2Explanation,
|
|
1218
|
+
je as useGetReconV2ProfileResult,
|
|
1219
|
+
He as useGetReconV2RunResult,
|
|
1220
|
+
Ne as useGetReconV2Runs,
|
|
1221
|
+
Le as useGetReconV2SmartResult,
|
|
1222
|
+
ne as useGetRunResultById,
|
|
1223
|
+
te as useGetRunsByViewId,
|
|
1224
|
+
ln as useGetScheduleStatus,
|
|
1225
|
+
re as useGetStatementData,
|
|
1226
|
+
ue as useGetTableById,
|
|
1227
|
+
ke as useGetTaskDetails,
|
|
1228
|
+
un as useGetTriggersBySheet,
|
|
1229
|
+
oe as useGetViewById,
|
|
1230
|
+
ae as useGetViewsBySheetId,
|
|
1231
|
+
$ as useGetVirtualDatasets,
|
|
1232
|
+
Ce as useGetWorkbookDetails,
|
|
1233
|
+
se as useGetWorkbooksByType,
|
|
1234
|
+
ie as useGetWorkflowInstanceStatusById,
|
|
1235
|
+
ce as useGetWorksheets,
|
|
1236
|
+
le as useGetWorksheetsByType,
|
|
1237
|
+
ye as useInputTable,
|
|
1238
|
+
we as useInsertRow,
|
|
1239
|
+
fn as useMarkItemAsRead,
|
|
1240
|
+
wn as useMarkItemAsUnread,
|
|
1241
|
+
tn as useMarkTaskDone,
|
|
1242
|
+
W as useMetric,
|
|
1243
|
+
sn as usePauseSchedule,
|
|
1244
|
+
Q as usePostComment,
|
|
1245
|
+
Ke as usePublishWorkbook,
|
|
1246
|
+
rn as useReassignTask,
|
|
1247
|
+
Ze as useReconV2RunStatus,
|
|
1248
|
+
on as useRegisterProcessTrigger,
|
|
1249
|
+
Qn as useRenderTemplate,
|
|
1250
|
+
bn as useReplyToConversation,
|
|
1251
|
+
cn as useResumeSchedule,
|
|
1252
|
+
fe as useRows,
|
|
1253
|
+
qe as useRunDefinition,
|
|
1254
|
+
Fe as useRunPublishedDefinition,
|
|
1255
|
+
Ve as useRunRecon,
|
|
1256
|
+
Qe as useRunReconV2,
|
|
1257
|
+
be as useRunSampleDefinition,
|
|
1258
|
+
Ee as useSaveWorkbook,
|
|
1259
|
+
Dn as useSearchMessages,
|
|
1260
|
+
Je as useStartReconV2Clean,
|
|
1261
|
+
ze as useStartReconV2Profile,
|
|
1262
|
+
H as useSubscribeUser,
|
|
1263
|
+
On as useTcnAgentDisconnect,
|
|
1264
|
+
Mn as useTcnAgentGetCallFromHold,
|
|
1265
|
+
Kn as useTcnAgentGetStatus,
|
|
1266
|
+
An as useTcnAgentPause,
|
|
1267
|
+
xn as useTcnAgentPutCallOnHold,
|
|
1268
|
+
Un as useTcnAgentSetReady,
|
|
1269
|
+
kn as useTcnAgentSkills,
|
|
1270
|
+
pn as useTcnAuthUrl,
|
|
1271
|
+
Wn as useTcnCallData,
|
|
1272
|
+
vn as useTcnConnectedParty,
|
|
1273
|
+
Cn as useTcnCreateSession,
|
|
1274
|
+
Sn as useTcnCurrentAgent,
|
|
1275
|
+
Bn as useTcnDialManualPrepare,
|
|
1276
|
+
Tn as useTcnExchangeCode,
|
|
1277
|
+
In as useTcnFtpManualDialReport,
|
|
1278
|
+
Vn as useTcnHuntGroupSettings,
|
|
1279
|
+
En as useTcnKeepAlive,
|
|
1280
|
+
Pn as useTcnManualDialStart,
|
|
1281
|
+
Gn as useTcnProcessManualDial,
|
|
1282
|
+
Rn as useTcnRefreshToken,
|
|
1283
|
+
he as useTriggerHttpWorkflow,
|
|
1284
|
+
De as useTriggerWorkflow,
|
|
1285
|
+
L as useUnsubscribeUser,
|
|
1286
|
+
_ as useUpdateComment,
|
|
1287
|
+
Me as useUpdateReconV2,
|
|
1288
|
+
de as useUpdateRow,
|
|
1289
|
+
B as useUser,
|
|
1290
|
+
pe as useUserDetails
|
|
1121
1291
|
};
|