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