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