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