@bluecopa/react 0.1.110 → 0.1.112
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/pipeline/types.d.ts +32 -0
- package/dist/hooks/pipeline/types.d.ts.map +1 -0
- package/dist/hooks/pipeline/useLastSuccessfulPipelineRun.d.ts +16 -0
- package/dist/hooks/pipeline/useLastSuccessfulPipelineRun.d.ts.map +1 -0
- package/dist/hooks/pipeline/usePipelineList.d.ts +23 -0
- package/dist/hooks/pipeline/usePipelineList.d.ts.map +1 -0
- package/dist/hooks/pipeline/usePipelineRunDetail.d.ts +3 -0
- package/dist/hooks/pipeline/usePipelineRunDetail.d.ts.map +1 -0
- package/dist/hooks/pipeline/usePipelineRuns.d.ts +16 -0
- package/dist/hooks/pipeline/usePipelineRuns.d.ts.map +1 -0
- package/dist/hooks/useCreateFiscalCalendar.d.ts +11 -0
- package/dist/hooks/useCreateFiscalCalendar.d.ts.map +1 -0
- package/dist/hooks/useCreateHolidayCalendar.d.ts +12 -0
- package/dist/hooks/useCreateHolidayCalendar.d.ts.map +1 -0
- package/dist/hooks/useDeleteFiscalCalendar.d.ts +11 -0
- package/dist/hooks/useDeleteFiscalCalendar.d.ts.map +1 -0
- package/dist/hooks/useDeleteHolidayCalendar.d.ts +9 -0
- package/dist/hooks/useDeleteHolidayCalendar.d.ts.map +1 -0
- package/dist/hooks/useGetFiscalCalendar.d.ts +13 -0
- package/dist/hooks/useGetFiscalCalendar.d.ts.map +1 -0
- package/dist/hooks/useGetHolidayCalendar.d.ts +12 -0
- package/dist/hooks/useGetHolidayCalendar.d.ts.map +1 -0
- package/dist/hooks/useImportHolidays.d.ts +17 -0
- package/dist/hooks/useImportHolidays.d.ts.map +1 -0
- package/dist/hooks/useListFiscalCalendars.d.ts +12 -0
- package/dist/hooks/useListFiscalCalendars.d.ts.map +1 -0
- package/dist/hooks/useListHolidayCalendars.d.ts +12 -0
- package/dist/hooks/useListHolidayCalendars.d.ts.map +1 -0
- package/dist/hooks/useListHolidays.d.ts +13 -0
- package/dist/hooks/useListHolidays.d.ts.map +1 -0
- package/dist/hooks/useMetric.d.ts.map +1 -1
- package/dist/hooks/useUpdateFiscalCalendar.d.ts +16 -0
- package/dist/hooks/useUpdateFiscalCalendar.d.ts.map +1 -0
- package/dist/hooks/useUpdateHolidayCalendar.d.ts +16 -0
- package/dist/hooks/useUpdateHolidayCalendar.d.ts.map +1 -0
- package/dist/hooks/workingPaper/types.d.ts +21 -0
- package/dist/hooks/workingPaper/types.d.ts.map +1 -0
- package/dist/hooks/workingPaper/useFxDefinitionSheet.d.ts +42 -0
- package/dist/hooks/workingPaper/useFxDefinitionSheet.d.ts.map +1 -0
- package/dist/hooks/workingPaper/useInputTableSheet.d.ts +37 -0
- package/dist/hooks/workingPaper/useInputTableSheet.d.ts.map +1 -0
- package/dist/hooks/workingPaper/useWorkingPaper.d.ts +14 -0
- package/dist/hooks/workingPaper/useWorkingPaper.d.ts.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1436 -1120
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useQuery as
|
|
2
|
-
import * as
|
|
3
|
-
import { copaApi as r, copaGetConfig as
|
|
1
|
+
import { useQuery as s, useMutation as o, useQueryClient as g } from "@tanstack/react-query";
|
|
2
|
+
import * as re from "@tanstack/react-query";
|
|
3
|
+
import { copaApi as r, copaGetConfig as P, copaUtils as A } from "@bluecopa/core";
|
|
4
4
|
export * from "@bluecopa/core";
|
|
5
|
-
import { useState as
|
|
6
|
-
import { ReactQueryDevtools as
|
|
7
|
-
const
|
|
5
|
+
import { useState as T, useRef as G, useEffect as B, useMemo as D } from "react";
|
|
6
|
+
import { ReactQueryDevtools as Ar } from "@tanstack/react-query-devtools";
|
|
7
|
+
const M = {
|
|
8
8
|
enabled: !0,
|
|
9
9
|
staleTime: 1e3 * 60 * 5,
|
|
10
10
|
// 5 minutes
|
|
@@ -13,397 +13,396 @@ const k = {
|
|
|
13
13
|
retry: 2,
|
|
14
14
|
retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function v(e = {}) {
|
|
17
17
|
return {
|
|
18
|
-
...
|
|
18
|
+
...M,
|
|
19
19
|
...e
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return new Promise((
|
|
22
|
+
function O(e = 5e3) {
|
|
23
|
+
return new Promise((n) => setTimeout(n, e));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
25
|
+
function S(e, n) {
|
|
26
|
+
const t = Object.entries(e).filter(([a, u]) => !u).map(([a]) => a);
|
|
27
|
+
if (t.length > 0)
|
|
28
28
|
throw new Error(
|
|
29
|
-
|
|
29
|
+
n || `Missing required parameters: ${t.join(", ")}`
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return async () => (await
|
|
32
|
+
function y(e, n, t = 0) {
|
|
33
|
+
return async () => (await O(t), await e());
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const
|
|
35
|
+
function d(e) {
|
|
36
|
+
const n = v(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 : n.enabled,
|
|
41
|
+
staleTime: n.staleTime,
|
|
42
|
+
gcTime: n.gcTime,
|
|
43
|
+
retry: n.retry,
|
|
44
|
+
retryDelay: n.retryDelay,
|
|
45
|
+
onSuccess: n.onSuccess,
|
|
46
|
+
onError: n.onError
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const
|
|
49
|
+
function ue(e, n = {}) {
|
|
50
|
+
const t = n.enabled !== !1 && !!e, a = n.solutionBindings ?? null, u = y(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
|
-
|
|
55
|
-
limit: t.limit
|
|
54
|
+
limit: n.limit
|
|
56
55
|
});
|
|
57
|
-
}), i =
|
|
58
|
-
queryKey: ["metricData", e,
|
|
59
|
-
queryFn:
|
|
60
|
-
enabled:
|
|
61
|
-
options:
|
|
56
|
+
}), i = d({
|
|
57
|
+
queryKey: ["metricData", e, a, n.limit ?? null],
|
|
58
|
+
queryFn: u,
|
|
59
|
+
enabled: t,
|
|
60
|
+
options: n
|
|
62
61
|
});
|
|
63
|
-
return
|
|
62
|
+
return s(i);
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
const
|
|
64
|
+
function se(e, n = {}) {
|
|
65
|
+
const t = !!e, a = y(async () => {
|
|
67
66
|
if (!e)
|
|
68
67
|
throw new Error("Dataset ID is required");
|
|
69
68
|
return console.log("Fetching dataset data..."), await r.dataset.getSampleData({
|
|
70
69
|
datasetId: e,
|
|
71
70
|
dataFilter: "all_data"
|
|
72
71
|
});
|
|
73
|
-
}),
|
|
72
|
+
}), u = d({
|
|
74
73
|
queryKey: ["datasetData", e],
|
|
75
|
-
queryFn:
|
|
76
|
-
enabled:
|
|
77
|
-
options:
|
|
74
|
+
queryFn: a,
|
|
75
|
+
enabled: t,
|
|
76
|
+
options: n
|
|
78
77
|
});
|
|
79
|
-
return
|
|
78
|
+
return s(u);
|
|
80
79
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
83
|
-
mutationFn: async (
|
|
80
|
+
function ie(e = {}) {
|
|
81
|
+
return o({
|
|
82
|
+
mutationFn: async (n) => await r.chat.createThread(n),
|
|
84
83
|
onSuccess: e.onSuccess,
|
|
85
84
|
onError: e.onError,
|
|
86
85
|
retry: e.retry ?? 2,
|
|
87
|
-
retryDelay: e.retryDelay ?? ((
|
|
86
|
+
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
88
87
|
});
|
|
89
88
|
}
|
|
90
|
-
function
|
|
91
|
-
const
|
|
89
|
+
function ce(e, n = {}) {
|
|
90
|
+
const t = n.enabled !== !1 && !!e, a = y(async () => (S(
|
|
92
91
|
{ threadId: e },
|
|
93
92
|
"Thread ID is required to fetch comments"
|
|
94
|
-
), await r.chat.getCommentsByThreadId(e))),
|
|
93
|
+
), await r.chat.getCommentsByThreadId(e))), u = d({
|
|
95
94
|
queryKey: ["chat", "comments", e],
|
|
96
|
-
queryFn:
|
|
97
|
-
enabled:
|
|
98
|
-
options:
|
|
95
|
+
queryFn: a,
|
|
96
|
+
enabled: t,
|
|
97
|
+
options: n
|
|
99
98
|
});
|
|
100
|
-
return
|
|
99
|
+
return s(u);
|
|
101
100
|
}
|
|
102
|
-
function
|
|
103
|
-
return
|
|
104
|
-
mutationFn: async (
|
|
101
|
+
function le(e = {}) {
|
|
102
|
+
return o({
|
|
103
|
+
mutationFn: async (n) => await r.chat.postComment(n),
|
|
105
104
|
onSuccess: e.onSuccess,
|
|
106
105
|
onError: e.onError,
|
|
107
106
|
retry: e.retry ?? 2,
|
|
108
|
-
retryDelay: e.retryDelay ?? ((
|
|
107
|
+
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
109
108
|
});
|
|
110
109
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
113
|
-
mutationFn: async (
|
|
110
|
+
function ye(e = {}) {
|
|
111
|
+
return o({
|
|
112
|
+
mutationFn: async (n) => await r.chat.updateComment(n),
|
|
114
113
|
onSuccess: e.onSuccess,
|
|
115
114
|
onError: e.onError,
|
|
116
115
|
retry: e.retry ?? 2,
|
|
117
|
-
retryDelay: e.retryDelay ?? ((
|
|
116
|
+
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
118
117
|
});
|
|
119
118
|
}
|
|
120
|
-
function
|
|
121
|
-
return
|
|
122
|
-
mutationFn: async (
|
|
119
|
+
function de(e = {}) {
|
|
120
|
+
return o({
|
|
121
|
+
mutationFn: async (n) => await r.chat.deleteComment(n),
|
|
123
122
|
onSuccess: e.onSuccess,
|
|
124
123
|
onError: e.onError,
|
|
125
124
|
retry: e.retry ?? 2,
|
|
126
|
-
retryDelay: e.retryDelay ?? ((
|
|
125
|
+
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
127
126
|
});
|
|
128
127
|
}
|
|
129
|
-
function
|
|
130
|
-
return
|
|
131
|
-
mutationFn: async (
|
|
128
|
+
function ge(e = {}) {
|
|
129
|
+
return o({
|
|
130
|
+
mutationFn: async (n) => await r.chat.subscribeUser(n),
|
|
132
131
|
onSuccess: e.onSuccess,
|
|
133
132
|
onError: e.onError,
|
|
134
133
|
retry: e.retry ?? 2,
|
|
135
|
-
retryDelay: e.retryDelay ?? ((
|
|
134
|
+
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
136
135
|
});
|
|
137
136
|
}
|
|
138
|
-
function
|
|
139
|
-
return
|
|
140
|
-
mutationFn: async (
|
|
137
|
+
function fe(e = {}) {
|
|
138
|
+
return o({
|
|
139
|
+
mutationFn: async (n) => await r.chat.unsubscribeUser(n),
|
|
141
140
|
onSuccess: e.onSuccess,
|
|
142
141
|
onError: e.onError,
|
|
143
142
|
retry: e.retry ?? 2,
|
|
144
|
-
retryDelay: e.retryDelay ?? ((
|
|
143
|
+
retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
|
|
145
144
|
});
|
|
146
145
|
}
|
|
147
|
-
function
|
|
148
|
-
const
|
|
149
|
-
{ userId: e, threadId:
|
|
146
|
+
function me(e, n, t = {}) {
|
|
147
|
+
const a = t.enabled !== !1 && !!e && !!n, u = y(async () => (S(
|
|
148
|
+
{ userId: e, threadId: n },
|
|
150
149
|
"User ID and Thread ID are required to check subscription status"
|
|
151
|
-
), await r.chat.checkSubscriptionStatus(e,
|
|
152
|
-
queryKey: ["chat", "subscription", e,
|
|
153
|
-
queryFn:
|
|
154
|
-
enabled:
|
|
155
|
-
options:
|
|
150
|
+
), await r.chat.checkSubscriptionStatus(e, n))), i = d({
|
|
151
|
+
queryKey: ["chat", "subscription", e, n],
|
|
152
|
+
queryFn: u,
|
|
153
|
+
enabled: a,
|
|
154
|
+
options: t
|
|
156
155
|
});
|
|
157
|
-
return
|
|
156
|
+
return s(i);
|
|
158
157
|
}
|
|
159
|
-
function
|
|
160
|
-
return
|
|
161
|
-
mutationFn: async (
|
|
158
|
+
function we(e = {}) {
|
|
159
|
+
return o({
|
|
160
|
+
mutationFn: async (n) => await r.statement.createNewRun(n),
|
|
162
161
|
...e
|
|
163
162
|
});
|
|
164
163
|
}
|
|
165
|
-
function
|
|
166
|
-
const
|
|
164
|
+
function Fe(e, n = {}) {
|
|
165
|
+
const t = !!e, a = y(async () => {
|
|
167
166
|
if (!e)
|
|
168
167
|
throw new Error("Dataset ID is required");
|
|
169
168
|
return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
|
|
170
|
-
limit:
|
|
169
|
+
limit: n.limit || 1e3
|
|
171
170
|
});
|
|
172
|
-
}),
|
|
171
|
+
}), u = d({
|
|
173
172
|
queryKey: ["datasetData", e],
|
|
174
|
-
queryFn:
|
|
175
|
-
enabled:
|
|
176
|
-
options:
|
|
173
|
+
queryFn: a,
|
|
174
|
+
enabled: t,
|
|
175
|
+
options: n
|
|
177
176
|
});
|
|
178
|
-
return
|
|
177
|
+
return s(u);
|
|
179
178
|
}
|
|
180
|
-
function
|
|
181
|
-
const e =
|
|
179
|
+
function pe() {
|
|
180
|
+
const e = y(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), n = d({
|
|
182
181
|
queryKey: ["datasetData"],
|
|
183
182
|
queryFn: e,
|
|
184
183
|
enabled: !0
|
|
185
184
|
});
|
|
186
|
-
return
|
|
185
|
+
return s(n);
|
|
187
186
|
}
|
|
188
|
-
function
|
|
189
|
-
const e =
|
|
187
|
+
function qe() {
|
|
188
|
+
const e = y(async () => await r.dataset.getVirtualDatasets()), n = d({
|
|
190
189
|
queryKey: ["virtualDatasets"],
|
|
191
190
|
queryFn: e,
|
|
192
191
|
enabled: !0
|
|
193
192
|
});
|
|
194
|
-
return
|
|
193
|
+
return s(n);
|
|
195
194
|
}
|
|
196
|
-
function
|
|
197
|
-
const
|
|
198
|
-
if (!e || !
|
|
195
|
+
function be(e, n, t, a = {}) {
|
|
196
|
+
const u = !!e && !!n && !!t, i = y(async () => {
|
|
197
|
+
if (!e || !n || !t)
|
|
199
198
|
throw new Error("Key, contentType, and method are required");
|
|
200
199
|
return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
|
|
201
200
|
key: e,
|
|
202
|
-
contentType:
|
|
203
|
-
method:
|
|
201
|
+
contentType: n,
|
|
202
|
+
method: t
|
|
204
203
|
});
|
|
205
|
-
}),
|
|
206
|
-
queryKey: ["file", "getFileUrlByFileId", e,
|
|
204
|
+
}), c = d({
|
|
205
|
+
queryKey: ["file", "getFileUrlByFileId", e, n, t],
|
|
207
206
|
queryFn: i,
|
|
208
|
-
enabled:
|
|
209
|
-
options:
|
|
207
|
+
enabled: u,
|
|
208
|
+
options: a
|
|
210
209
|
});
|
|
211
|
-
return
|
|
210
|
+
return s(c);
|
|
212
211
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
folderId:
|
|
216
|
-
name:
|
|
217
|
-
})),
|
|
212
|
+
function he(e, n, t = {}) {
|
|
213
|
+
const a = e?.trim(), u = n?.trim(), i = !!(a && u), c = y(async () => await r.files.getFileByFolderIdAndName({
|
|
214
|
+
folderId: a,
|
|
215
|
+
name: u
|
|
216
|
+
})), l = d({
|
|
218
217
|
queryKey: [
|
|
219
218
|
"file",
|
|
220
219
|
"getFileByFolderIdAndName",
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
a,
|
|
221
|
+
u
|
|
223
222
|
],
|
|
224
|
-
queryFn:
|
|
223
|
+
queryFn: c,
|
|
225
224
|
enabled: i,
|
|
226
|
-
options:
|
|
225
|
+
options: t
|
|
227
226
|
});
|
|
228
|
-
return
|
|
227
|
+
return s(l);
|
|
229
228
|
}
|
|
230
|
-
function
|
|
231
|
-
const
|
|
232
|
-
if (!e || !
|
|
229
|
+
function De(e, n, t = {}) {
|
|
230
|
+
const a = !!e && !!n, u = y(async () => {
|
|
231
|
+
if (!e || !n)
|
|
233
232
|
throw new Error("Type and ID are required");
|
|
234
|
-
return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id:
|
|
235
|
-
}), i =
|
|
236
|
-
queryKey: ["workbook", "getPublishedWorkbookById", e,
|
|
237
|
-
queryFn:
|
|
238
|
-
enabled:
|
|
239
|
-
options:
|
|
233
|
+
return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: n });
|
|
234
|
+
}), i = d({
|
|
235
|
+
queryKey: ["workbook", "getPublishedWorkbookById", e, n],
|
|
236
|
+
queryFn: u,
|
|
237
|
+
enabled: a,
|
|
238
|
+
options: t
|
|
240
239
|
});
|
|
241
|
-
return
|
|
240
|
+
return s(i);
|
|
242
241
|
}
|
|
243
|
-
function
|
|
244
|
-
const
|
|
242
|
+
function Te(e, n = {}) {
|
|
243
|
+
const t = !!e, a = y(async () => {
|
|
245
244
|
if (!e)
|
|
246
245
|
throw new Error("Run ID is required");
|
|
247
246
|
return await r.statement.getRunResultById(e);
|
|
248
|
-
}),
|
|
247
|
+
}), u = d({
|
|
249
248
|
queryKey: ["statement", "getRunResultById", e],
|
|
250
|
-
queryFn:
|
|
251
|
-
enabled:
|
|
252
|
-
options:
|
|
249
|
+
queryFn: a,
|
|
250
|
+
enabled: t,
|
|
251
|
+
options: n
|
|
253
252
|
});
|
|
254
|
-
return
|
|
253
|
+
return s(u);
|
|
255
254
|
}
|
|
256
|
-
function
|
|
257
|
-
const
|
|
255
|
+
function Re(e, n = {}) {
|
|
256
|
+
const t = !!e, a = y(async () => {
|
|
258
257
|
if (!e)
|
|
259
258
|
throw new Error("View ID is required");
|
|
260
259
|
return await r.statement.getRunsByViewId(e);
|
|
261
|
-
}),
|
|
260
|
+
}), u = d({
|
|
262
261
|
queryKey: ["statement", "getRunsByViewId", e],
|
|
263
|
-
queryFn:
|
|
264
|
-
enabled:
|
|
265
|
-
options:
|
|
262
|
+
queryFn: a,
|
|
263
|
+
enabled: t,
|
|
264
|
+
options: n
|
|
266
265
|
});
|
|
267
|
-
return
|
|
266
|
+
return s(u);
|
|
268
267
|
}
|
|
269
|
-
function
|
|
270
|
-
const
|
|
268
|
+
function ke(e, n, t, a = {}) {
|
|
269
|
+
const u = !!e, i = y(async () => {
|
|
271
270
|
if (!e)
|
|
272
271
|
throw new Error("Statement ID is required");
|
|
273
272
|
return await r.statement.getData({
|
|
274
273
|
statementId: e,
|
|
275
|
-
viewId:
|
|
276
|
-
runId:
|
|
274
|
+
viewId: n || void 0,
|
|
275
|
+
runId: t || void 0
|
|
277
276
|
});
|
|
278
|
-
}),
|
|
279
|
-
queryKey: ["statement", "getData", e,
|
|
277
|
+
}), c = d({
|
|
278
|
+
queryKey: ["statement", "getData", e, n, t],
|
|
280
279
|
queryFn: i,
|
|
281
|
-
enabled:
|
|
282
|
-
options:
|
|
280
|
+
enabled: u,
|
|
281
|
+
options: a
|
|
283
282
|
});
|
|
284
|
-
return
|
|
283
|
+
return s(c);
|
|
285
284
|
}
|
|
286
|
-
function
|
|
287
|
-
const
|
|
285
|
+
function Ce(e, n = {}) {
|
|
286
|
+
const t = !!e, a = y(async () => {
|
|
288
287
|
if (!e)
|
|
289
288
|
throw new Error("Table ID is required");
|
|
290
289
|
return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
|
|
291
|
-
}),
|
|
290
|
+
}), u = d({
|
|
292
291
|
queryKey: ["inputTable", "getTableById", e],
|
|
293
|
-
queryFn:
|
|
294
|
-
enabled:
|
|
295
|
-
options:
|
|
292
|
+
queryFn: a,
|
|
293
|
+
enabled: t,
|
|
294
|
+
options: n
|
|
296
295
|
});
|
|
297
|
-
return
|
|
296
|
+
return s(u);
|
|
298
297
|
}
|
|
299
|
-
function
|
|
300
|
-
const
|
|
298
|
+
function xe(e, n = {}) {
|
|
299
|
+
const t = !!e, a = y(async () => {
|
|
301
300
|
if (!e)
|
|
302
301
|
throw new Error("View ID is required");
|
|
303
302
|
return await r.statement.getViewById(e);
|
|
304
|
-
}),
|
|
303
|
+
}), u = d({
|
|
305
304
|
queryKey: ["statement", "getViewById", e],
|
|
306
|
-
queryFn:
|
|
307
|
-
enabled:
|
|
308
|
-
options:
|
|
305
|
+
queryFn: a,
|
|
306
|
+
enabled: t,
|
|
307
|
+
options: n
|
|
309
308
|
});
|
|
310
|
-
return
|
|
309
|
+
return s(u);
|
|
311
310
|
}
|
|
312
|
-
function
|
|
313
|
-
const
|
|
311
|
+
function Pe(e, n = {}) {
|
|
312
|
+
const t = !!e, a = y(async () => {
|
|
314
313
|
if (!e)
|
|
315
314
|
throw new Error("Sheet ID is required");
|
|
316
315
|
return await r.statement.getViewsBySheetId(e);
|
|
317
|
-
}),
|
|
316
|
+
}), u = d({
|
|
318
317
|
queryKey: ["statement", "getViewsBySheetId", e],
|
|
319
|
-
queryFn:
|
|
320
|
-
enabled:
|
|
321
|
-
options:
|
|
318
|
+
queryFn: a,
|
|
319
|
+
enabled: t,
|
|
320
|
+
options: n
|
|
322
321
|
});
|
|
323
|
-
return
|
|
322
|
+
return s(u);
|
|
324
323
|
}
|
|
325
|
-
function
|
|
326
|
-
const
|
|
324
|
+
function Se(e, n = {}) {
|
|
325
|
+
const t = !!e, a = y(async () => {
|
|
327
326
|
if (!e)
|
|
328
327
|
throw new Error("Type is required");
|
|
329
328
|
return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
|
|
330
|
-
}),
|
|
329
|
+
}), u = d({
|
|
331
330
|
queryKey: ["workbook", "getWorkbooksByType", e],
|
|
332
|
-
queryFn:
|
|
333
|
-
enabled:
|
|
334
|
-
options:
|
|
331
|
+
queryFn: a,
|
|
332
|
+
enabled: t,
|
|
333
|
+
options: n
|
|
335
334
|
});
|
|
336
|
-
return
|
|
335
|
+
return s(u);
|
|
337
336
|
}
|
|
338
|
-
var
|
|
339
|
-
function
|
|
340
|
-
return
|
|
341
|
-
mutationFn: async (
|
|
337
|
+
var U = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(U || {});
|
|
338
|
+
function Ie(e = {}) {
|
|
339
|
+
return o({
|
|
340
|
+
mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(n)),
|
|
342
341
|
...e
|
|
343
342
|
});
|
|
344
343
|
}
|
|
345
|
-
function
|
|
346
|
-
const
|
|
344
|
+
function Ke(e, n = {}) {
|
|
345
|
+
const t = !!e && e.length > 0, a = y(async () => {
|
|
347
346
|
if (!e || e.length === 0)
|
|
348
347
|
throw new Error("Worksheet IDs are required");
|
|
349
348
|
return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
|
|
350
|
-
}),
|
|
349
|
+
}), u = d({
|
|
351
350
|
queryKey: ["worksheet", "getWorksheets", e],
|
|
352
|
-
queryFn:
|
|
353
|
-
enabled:
|
|
354
|
-
options:
|
|
351
|
+
queryFn: a,
|
|
352
|
+
enabled: t,
|
|
353
|
+
options: n
|
|
355
354
|
});
|
|
356
|
-
return
|
|
355
|
+
return s(u);
|
|
357
356
|
}
|
|
358
|
-
function
|
|
359
|
-
const
|
|
357
|
+
function Ve(e, n = {}) {
|
|
358
|
+
const t = !!e, a = y(async () => {
|
|
360
359
|
if (!e)
|
|
361
360
|
throw new Error("Type is required");
|
|
362
361
|
return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
|
|
363
|
-
}),
|
|
362
|
+
}), u = d({
|
|
364
363
|
queryKey: ["worksheet", "getWorksheetsByType", e],
|
|
365
|
-
queryFn:
|
|
366
|
-
enabled:
|
|
367
|
-
options:
|
|
364
|
+
queryFn: a,
|
|
365
|
+
enabled: t,
|
|
366
|
+
options: n
|
|
368
367
|
});
|
|
369
|
-
return
|
|
368
|
+
return s(u);
|
|
370
369
|
}
|
|
371
|
-
function
|
|
370
|
+
function Ee(e, n, t = {}) {
|
|
372
371
|
const {
|
|
373
|
-
limitParams:
|
|
374
|
-
pageParams:
|
|
372
|
+
limitParams: a = { limit: 2e3, limitFrom: "top" },
|
|
373
|
+
pageParams: u,
|
|
375
374
|
sortParams: i,
|
|
376
|
-
offsetParam:
|
|
377
|
-
...
|
|
378
|
-
} =
|
|
379
|
-
if (!e || !
|
|
375
|
+
offsetParam: c,
|
|
376
|
+
...l
|
|
377
|
+
} = t, f = l.enabled !== !1 && !!e && !!n, m = y(async () => {
|
|
378
|
+
if (!e || !n)
|
|
380
379
|
throw new Error("Input table ID and view ID are required");
|
|
381
380
|
return console.log("Fetching input table data..."), await r.inputTable.getData({
|
|
382
381
|
inputTableId: e,
|
|
383
|
-
inputTableViewId:
|
|
384
|
-
pageParams:
|
|
385
|
-
limitParams:
|
|
382
|
+
inputTableViewId: n,
|
|
383
|
+
pageParams: u,
|
|
384
|
+
limitParams: a,
|
|
386
385
|
sortParams: i,
|
|
387
|
-
offsetParam:
|
|
386
|
+
offsetParam: c
|
|
388
387
|
});
|
|
389
|
-
}), w =
|
|
390
|
-
queryKey: ["inputTableData", e,
|
|
391
|
-
queryFn:
|
|
392
|
-
enabled:
|
|
393
|
-
options:
|
|
388
|
+
}), w = d({
|
|
389
|
+
queryKey: ["inputTableData", e, n],
|
|
390
|
+
queryFn: m,
|
|
391
|
+
enabled: f,
|
|
392
|
+
options: l
|
|
394
393
|
});
|
|
395
|
-
return
|
|
394
|
+
return s(w);
|
|
396
395
|
}
|
|
397
|
-
function
|
|
398
|
-
const e =
|
|
396
|
+
function Ae() {
|
|
397
|
+
const e = y(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), n = d({
|
|
399
398
|
queryKey: ["inputTableData"],
|
|
400
399
|
queryFn: e,
|
|
401
400
|
enabled: !0
|
|
402
401
|
});
|
|
403
|
-
return
|
|
402
|
+
return s(n);
|
|
404
403
|
}
|
|
405
|
-
function
|
|
406
|
-
const
|
|
404
|
+
function Ge(e, n = {}) {
|
|
405
|
+
const t = [
|
|
407
406
|
"enabled",
|
|
408
407
|
"staleTime",
|
|
409
408
|
"gcTime",
|
|
@@ -411,244 +410,244 @@ function Re(e, t = {}) {
|
|
|
411
410
|
"retryDelay",
|
|
412
411
|
"onSuccess",
|
|
413
412
|
"onError"
|
|
414
|
-
], { limit:
|
|
415
|
-
Object.keys(
|
|
416
|
-
|
|
413
|
+
], { limit: a, offset: u, order: i, order_by: c, ...l } = n, f = {}, m = { limit: a, offset: u, order: i, order_by: c };
|
|
414
|
+
Object.keys(l).forEach((p) => {
|
|
415
|
+
t.includes(p) ? f[p] = l[p] : m[p] = l[p];
|
|
417
416
|
});
|
|
418
|
-
const w =
|
|
417
|
+
const w = f.enabled !== !1 && !!e, q = y(async () => {
|
|
419
418
|
if (!e)
|
|
420
419
|
throw new Error("Table ID is required");
|
|
421
|
-
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e,
|
|
422
|
-
}),
|
|
423
|
-
queryKey: ["inputTableRows", e,
|
|
420
|
+
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, m);
|
|
421
|
+
}), F = d({
|
|
422
|
+
queryKey: ["inputTableRows", e, n],
|
|
424
423
|
queryFn: q,
|
|
425
424
|
enabled: w,
|
|
426
|
-
options:
|
|
427
|
-
});
|
|
428
|
-
return
|
|
429
|
-
}
|
|
430
|
-
function
|
|
431
|
-
const
|
|
432
|
-
return
|
|
433
|
-
mutationFn: async (
|
|
434
|
-
onSuccess: (
|
|
435
|
-
|
|
436
|
-
queryKey: ["inputTableRows",
|
|
437
|
-
}), e.onSuccess?.(
|
|
425
|
+
options: f
|
|
426
|
+
});
|
|
427
|
+
return s(F);
|
|
428
|
+
}
|
|
429
|
+
function Be(e = {}) {
|
|
430
|
+
const n = g();
|
|
431
|
+
return o({
|
|
432
|
+
mutationFn: async (t) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(t.tableId, t.rowData)),
|
|
433
|
+
onSuccess: (t, a) => {
|
|
434
|
+
n.invalidateQueries({
|
|
435
|
+
queryKey: ["inputTableRows", a.tableId]
|
|
436
|
+
}), e.onSuccess?.(t);
|
|
438
437
|
},
|
|
439
|
-
onError: (
|
|
440
|
-
e.onError?.(
|
|
438
|
+
onError: (t) => {
|
|
439
|
+
e.onError?.(t);
|
|
441
440
|
},
|
|
442
441
|
...e
|
|
443
442
|
});
|
|
444
443
|
}
|
|
445
|
-
function
|
|
446
|
-
const
|
|
447
|
-
return
|
|
448
|
-
mutationFn: async (
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
444
|
+
function Me(e = {}) {
|
|
445
|
+
const n = g();
|
|
446
|
+
return o({
|
|
447
|
+
mutationFn: async (t) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
|
|
448
|
+
t.tableId,
|
|
449
|
+
t.updateData,
|
|
450
|
+
t.rowId
|
|
452
451
|
)),
|
|
453
|
-
onSuccess: (
|
|
454
|
-
|
|
455
|
-
queryKey: ["inputTableRows",
|
|
456
|
-
}), e.onSuccess?.(
|
|
452
|
+
onSuccess: (t, a) => {
|
|
453
|
+
n.invalidateQueries({
|
|
454
|
+
queryKey: ["inputTableRows", a.tableId]
|
|
455
|
+
}), e.onSuccess?.(t);
|
|
457
456
|
},
|
|
458
|
-
onError: (
|
|
459
|
-
e.onError?.(
|
|
457
|
+
onError: (t) => {
|
|
458
|
+
e.onError?.(t);
|
|
460
459
|
},
|
|
461
460
|
...e
|
|
462
461
|
});
|
|
463
462
|
}
|
|
464
|
-
function
|
|
465
|
-
const
|
|
466
|
-
return
|
|
467
|
-
mutationFn: async (
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
463
|
+
function ve(e = {}) {
|
|
464
|
+
const n = g();
|
|
465
|
+
return o({
|
|
466
|
+
mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
|
|
467
|
+
t.tableId,
|
|
468
|
+
t.rowId,
|
|
469
|
+
t.idField
|
|
471
470
|
)),
|
|
472
|
-
onSuccess: (
|
|
473
|
-
|
|
474
|
-
queryKey: ["inputTableRows",
|
|
475
|
-
}), e.onSuccess?.(
|
|
471
|
+
onSuccess: (t, a) => {
|
|
472
|
+
n.invalidateQueries({
|
|
473
|
+
queryKey: ["inputTableRows", a.tableId]
|
|
474
|
+
}), e.onSuccess?.(t);
|
|
476
475
|
},
|
|
477
|
-
onError: (
|
|
478
|
-
e.onError?.(
|
|
476
|
+
onError: (t) => {
|
|
477
|
+
e.onError?.(t);
|
|
479
478
|
},
|
|
480
479
|
...e
|
|
481
480
|
});
|
|
482
481
|
}
|
|
483
|
-
function
|
|
484
|
-
return
|
|
485
|
-
mutationFn: async (
|
|
482
|
+
function Oe(e = {}) {
|
|
483
|
+
return o({
|
|
484
|
+
mutationFn: async (n) => (console.log("Running definition..."), await r.definition.runDefinition(n)),
|
|
486
485
|
...e
|
|
487
486
|
});
|
|
488
487
|
}
|
|
489
|
-
function
|
|
490
|
-
return
|
|
491
|
-
mutationFn: async (
|
|
488
|
+
function Ue(e = {}) {
|
|
489
|
+
return o({
|
|
490
|
+
mutationFn: async (n) => await r.definition.runPublishedDefinition(n),
|
|
492
491
|
...e
|
|
493
492
|
});
|
|
494
493
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
497
|
-
mutationFn: async (
|
|
494
|
+
function Le(e = {}) {
|
|
495
|
+
return o({
|
|
496
|
+
mutationFn: async (n) => await r.definition.runSampleDefinition(n),
|
|
498
497
|
...e
|
|
499
498
|
});
|
|
500
499
|
}
|
|
501
|
-
function
|
|
502
|
-
return
|
|
503
|
-
mutationFn: async (
|
|
500
|
+
function Qe(e = {}) {
|
|
501
|
+
return o({
|
|
502
|
+
mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(n)),
|
|
504
503
|
...e
|
|
505
504
|
});
|
|
506
505
|
}
|
|
507
|
-
function
|
|
508
|
-
return
|
|
509
|
-
mutationFn: async (
|
|
506
|
+
function We(e = {}) {
|
|
507
|
+
return o({
|
|
508
|
+
mutationFn: async (n) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(n)),
|
|
510
509
|
...e
|
|
511
510
|
});
|
|
512
511
|
}
|
|
513
|
-
function
|
|
514
|
-
const
|
|
512
|
+
function L(e = {}) {
|
|
513
|
+
const n = e.enabled !== !1, t = y(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), a = d({
|
|
515
514
|
queryKey: ["user"],
|
|
516
|
-
queryFn:
|
|
517
|
-
enabled:
|
|
515
|
+
queryFn: t,
|
|
516
|
+
enabled: n,
|
|
518
517
|
options: e
|
|
519
518
|
});
|
|
520
|
-
return
|
|
519
|
+
return s(a);
|
|
521
520
|
}
|
|
522
|
-
const
|
|
523
|
-
function
|
|
524
|
-
const
|
|
521
|
+
const He = L, Q = ["Owner", "Editor", "Viewer", "ReadOnly"], x = r.permissions?.getPermissions;
|
|
522
|
+
function _e(e, n, t = {}) {
|
|
523
|
+
const a = t.enabled !== !1 && !!e?.trim(), u = y(
|
|
525
524
|
async () => {
|
|
526
525
|
if (!e?.trim())
|
|
527
526
|
return {};
|
|
528
|
-
if (!
|
|
527
|
+
if (!x)
|
|
529
528
|
throw new Error(
|
|
530
529
|
"@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
|
|
531
530
|
);
|
|
532
|
-
const
|
|
533
|
-
if (!
|
|
531
|
+
const c = P();
|
|
532
|
+
if (!c.userId)
|
|
534
533
|
throw new Error(
|
|
535
534
|
"@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
|
|
536
535
|
);
|
|
537
|
-
return await
|
|
536
|
+
return await x({
|
|
538
537
|
objectId: e.trim(),
|
|
539
|
-
objectType:
|
|
540
|
-
user:
|
|
538
|
+
objectType: n,
|
|
539
|
+
user: c.userId,
|
|
541
540
|
userType: "User",
|
|
542
|
-
relations:
|
|
541
|
+
relations: t.relations ?? Q
|
|
543
542
|
});
|
|
544
543
|
},
|
|
545
544
|
void 0,
|
|
546
545
|
0
|
|
547
|
-
), i =
|
|
548
|
-
queryKey: ["documentPermissions", e ?? "",
|
|
549
|
-
queryFn:
|
|
550
|
-
enabled:
|
|
551
|
-
options:
|
|
546
|
+
), i = d({
|
|
547
|
+
queryKey: ["documentPermissions", e ?? "", n, t.relations ?? []],
|
|
548
|
+
queryFn: u,
|
|
549
|
+
enabled: a,
|
|
550
|
+
options: t
|
|
552
551
|
});
|
|
553
|
-
return
|
|
552
|
+
return s(i);
|
|
554
553
|
}
|
|
555
|
-
function
|
|
556
|
-
return
|
|
557
|
-
mutationFn: async (
|
|
554
|
+
function ze(e = {}) {
|
|
555
|
+
return o({
|
|
556
|
+
mutationFn: async (n) => (console.log("Uploading file..."), await r.files.fileUpload(n)),
|
|
558
557
|
...e
|
|
559
558
|
});
|
|
560
559
|
}
|
|
561
|
-
function
|
|
560
|
+
function Ne({
|
|
562
561
|
fileId: e,
|
|
563
|
-
contentType:
|
|
564
|
-
method:
|
|
565
|
-
},
|
|
566
|
-
const
|
|
562
|
+
contentType: n = "application/json",
|
|
563
|
+
method: t = "GET"
|
|
564
|
+
}, a = {}) {
|
|
565
|
+
const u = !!e, i = y(async () => {
|
|
567
566
|
if (!e)
|
|
568
567
|
throw new Error("File ID is required");
|
|
569
|
-
return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType:
|
|
570
|
-
}),
|
|
568
|
+
return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: n, method: t });
|
|
569
|
+
}), c = d({
|
|
571
570
|
queryKey: ["file", "fileDownload", e],
|
|
572
571
|
queryFn: i,
|
|
573
|
-
enabled:
|
|
574
|
-
options:
|
|
572
|
+
enabled: u,
|
|
573
|
+
options: a
|
|
575
574
|
});
|
|
576
|
-
return
|
|
575
|
+
return s(c);
|
|
577
576
|
}
|
|
578
|
-
function
|
|
579
|
-
const
|
|
577
|
+
function je(e, n = {}) {
|
|
578
|
+
const t = !!e, a = y(async () => {
|
|
580
579
|
if (!e)
|
|
581
580
|
throw new Error("Task ID is required");
|
|
582
581
|
return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
|
|
583
|
-
}),
|
|
582
|
+
}), u = d({
|
|
584
583
|
queryKey: ["task", "getTaskDetails", e],
|
|
585
|
-
queryFn:
|
|
586
|
-
enabled:
|
|
587
|
-
options:
|
|
584
|
+
queryFn: a,
|
|
585
|
+
enabled: t,
|
|
586
|
+
options: n
|
|
588
587
|
});
|
|
589
|
-
return
|
|
588
|
+
return s(u);
|
|
590
589
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
590
|
+
function $e(e, n = {}) {
|
|
591
|
+
const t = !!e, a = y(async () => {
|
|
593
592
|
if (!e)
|
|
594
593
|
throw new Error("Workbook ID is required");
|
|
595
594
|
return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
|
|
596
|
-
}),
|
|
595
|
+
}), u = d({
|
|
597
596
|
queryKey: ["workbook", "getWorkbookDetails", e],
|
|
598
|
-
queryFn:
|
|
599
|
-
enabled:
|
|
600
|
-
options:
|
|
597
|
+
queryFn: a,
|
|
598
|
+
enabled: t,
|
|
599
|
+
options: n
|
|
601
600
|
});
|
|
602
|
-
return
|
|
601
|
+
return s(u);
|
|
603
602
|
}
|
|
604
|
-
function
|
|
605
|
-
return
|
|
606
|
-
mutationFn: async (
|
|
603
|
+
function Je(e = {}) {
|
|
604
|
+
return o({
|
|
605
|
+
mutationFn: async (n) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(n)),
|
|
607
606
|
...e
|
|
608
607
|
});
|
|
609
608
|
}
|
|
610
|
-
function
|
|
611
|
-
return
|
|
612
|
-
mutationFn: async (
|
|
609
|
+
function Xe(e = {}) {
|
|
610
|
+
return o({
|
|
611
|
+
mutationFn: async (n) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(n)),
|
|
613
612
|
...e
|
|
614
613
|
});
|
|
615
614
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
618
|
-
mutationFn: async (
|
|
615
|
+
function Ye(e = {}) {
|
|
616
|
+
return o({
|
|
617
|
+
mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
|
|
619
618
|
...e
|
|
620
619
|
});
|
|
621
620
|
}
|
|
622
|
-
function
|
|
623
|
-
const
|
|
624
|
-
if (!e || !
|
|
621
|
+
function Ze(e, n, t = {}) {
|
|
622
|
+
const a = !!e && !!n, u = y(async () => {
|
|
623
|
+
if (!e || !n)
|
|
625
624
|
throw new Error("Form instance ID and revision are required");
|
|
626
|
-
return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision:
|
|
627
|
-
});
|
|
628
|
-
return
|
|
629
|
-
|
|
630
|
-
queryKey: ["form", "getFormSchema", e,
|
|
631
|
-
queryFn:
|
|
632
|
-
enabled:
|
|
633
|
-
options:
|
|
625
|
+
return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: n });
|
|
626
|
+
});
|
|
627
|
+
return s(
|
|
628
|
+
d({
|
|
629
|
+
queryKey: ["form", "getFormSchema", e, n],
|
|
630
|
+
queryFn: u,
|
|
631
|
+
enabled: a,
|
|
632
|
+
options: t
|
|
634
633
|
})
|
|
635
634
|
);
|
|
636
635
|
}
|
|
637
|
-
function
|
|
638
|
-
const
|
|
636
|
+
function en(e, n = {}) {
|
|
637
|
+
const t = !!e, a = y(async () => {
|
|
639
638
|
if (!e)
|
|
640
639
|
throw new Error("Form ID is required");
|
|
641
640
|
return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
|
|
642
|
-
}),
|
|
641
|
+
}), u = d({
|
|
643
642
|
queryKey: ["form", "getFormData", e],
|
|
644
|
-
queryFn:
|
|
645
|
-
enabled:
|
|
646
|
-
options:
|
|
643
|
+
queryFn: a,
|
|
644
|
+
enabled: t,
|
|
645
|
+
options: n
|
|
647
646
|
});
|
|
648
|
-
return
|
|
647
|
+
return s(u);
|
|
649
648
|
}
|
|
650
|
-
function
|
|
651
|
-
return
|
|
649
|
+
function nn(e, n = {}) {
|
|
650
|
+
return s({
|
|
652
651
|
queryKey: ["form", e],
|
|
653
652
|
queryFn: async () => {
|
|
654
653
|
if (!e)
|
|
@@ -656,98 +655,98 @@ function _e(e, t = {}) {
|
|
|
656
655
|
return await r.form.getFormById({ formId: e });
|
|
657
656
|
},
|
|
658
657
|
enabled: !!e,
|
|
659
|
-
...
|
|
658
|
+
...n
|
|
660
659
|
});
|
|
661
660
|
}
|
|
662
|
-
function
|
|
663
|
-
return
|
|
664
|
-
mutationFn: async (
|
|
661
|
+
function tn(e = {}) {
|
|
662
|
+
return o({
|
|
663
|
+
mutationFn: async (n) => await r.form.createOrUpdateForm(n),
|
|
665
664
|
...e
|
|
666
665
|
});
|
|
667
666
|
}
|
|
668
|
-
function
|
|
669
|
-
return
|
|
670
|
-
mutationFn: async (
|
|
667
|
+
function rn(e = {}) {
|
|
668
|
+
return o({
|
|
669
|
+
mutationFn: async (n) => await r.audit.getAuditLogs(n),
|
|
671
670
|
...e
|
|
672
671
|
});
|
|
673
672
|
}
|
|
674
|
-
function
|
|
675
|
-
return
|
|
676
|
-
mutationFn: async (
|
|
673
|
+
function an(e = {}) {
|
|
674
|
+
return o({
|
|
675
|
+
mutationFn: async (n) => await r.audit.createAuditLog(n),
|
|
677
676
|
...e
|
|
678
677
|
});
|
|
679
678
|
}
|
|
680
|
-
function
|
|
681
|
-
return
|
|
679
|
+
function on(e = {}) {
|
|
680
|
+
return s({
|
|
682
681
|
queryKey: ["templatedPipelines"],
|
|
683
682
|
queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
|
|
684
683
|
...e
|
|
685
684
|
});
|
|
686
685
|
}
|
|
687
|
-
function
|
|
688
|
-
return
|
|
686
|
+
function un(e = {}) {
|
|
687
|
+
return s({
|
|
689
688
|
queryKey: ["reconWorkflows"],
|
|
690
689
|
queryFn: async () => await r.recon.getAllReconWorkflows(),
|
|
691
690
|
...e
|
|
692
691
|
});
|
|
693
692
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
696
|
-
mutationFn: async (
|
|
693
|
+
function W(e = {}) {
|
|
694
|
+
return o({
|
|
695
|
+
mutationFn: async (n) => await r.reconV2.createReconV2(n),
|
|
697
696
|
...e
|
|
698
697
|
});
|
|
699
698
|
}
|
|
700
|
-
function
|
|
701
|
-
return
|
|
702
|
-
mutationFn: async (
|
|
699
|
+
function H(e = {}) {
|
|
700
|
+
return o({
|
|
701
|
+
mutationFn: async (n) => await r.reconV2.updateReconV2(n),
|
|
703
702
|
...e
|
|
704
703
|
});
|
|
705
704
|
}
|
|
706
|
-
function
|
|
707
|
-
return
|
|
708
|
-
mutationFn: async (
|
|
705
|
+
function sn(e = {}) {
|
|
706
|
+
return o({
|
|
707
|
+
mutationFn: async (n) => await r.reconV2.deleteReconV2(n),
|
|
709
708
|
...e
|
|
710
709
|
});
|
|
711
710
|
}
|
|
712
|
-
function
|
|
713
|
-
return
|
|
714
|
-
mutationFn: async (
|
|
711
|
+
function _(e = {}) {
|
|
712
|
+
return o({
|
|
713
|
+
mutationFn: async (n) => await r.reconV2.runReconV2(n),
|
|
715
714
|
...e
|
|
716
715
|
});
|
|
717
716
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
717
|
+
function z(e = {}) {
|
|
718
|
+
return s({
|
|
720
719
|
queryKey: ["reconV2Workflows"],
|
|
721
720
|
queryFn: async () => await r.reconV2.getAllReconV2Workflows(),
|
|
722
721
|
...e
|
|
723
722
|
});
|
|
724
723
|
}
|
|
725
|
-
function
|
|
726
|
-
const
|
|
727
|
-
return
|
|
728
|
-
queryKey: ["reconV2", "runs",
|
|
729
|
-
queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId:
|
|
730
|
-
enabled: !!
|
|
731
|
-
...
|
|
724
|
+
function N(e, n = {}) {
|
|
725
|
+
const t = e?.trim();
|
|
726
|
+
return s({
|
|
727
|
+
queryKey: ["reconV2", "runs", t],
|
|
728
|
+
queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId: t }),
|
|
729
|
+
enabled: !!t,
|
|
730
|
+
...n
|
|
732
731
|
});
|
|
733
732
|
}
|
|
734
|
-
function
|
|
735
|
-
return
|
|
733
|
+
function cn(e = {}) {
|
|
734
|
+
return s({
|
|
736
735
|
queryKey: ["reconV2", "templates"],
|
|
737
736
|
queryFn: async () => await r.reconV2.getReconV2Templates(),
|
|
738
737
|
...e
|
|
739
738
|
});
|
|
740
739
|
}
|
|
741
|
-
function
|
|
742
|
-
return
|
|
740
|
+
function j(e, n = {}) {
|
|
741
|
+
return s({
|
|
743
742
|
queryKey: ["reconV2", "runResult", e],
|
|
744
743
|
queryFn: async () => await r.reconV2.getReconV2RunResult({ runId: e }),
|
|
745
744
|
enabled: !!e,
|
|
746
|
-
...
|
|
745
|
+
...n
|
|
747
746
|
});
|
|
748
747
|
}
|
|
749
|
-
function
|
|
750
|
-
return
|
|
748
|
+
function $(e, n = {}) {
|
|
749
|
+
return s({
|
|
751
750
|
queryKey: [
|
|
752
751
|
"reconV2",
|
|
753
752
|
"smartResult",
|
|
@@ -761,530 +760,530 @@ function v(e, t = {}) {
|
|
|
761
760
|
e
|
|
762
761
|
),
|
|
763
762
|
enabled: !!e.runId && !!e.workflowId,
|
|
764
|
-
...
|
|
763
|
+
...n
|
|
765
764
|
});
|
|
766
765
|
}
|
|
767
|
-
function
|
|
768
|
-
return
|
|
769
|
-
mutationFn: async (
|
|
766
|
+
function ln(e = {}) {
|
|
767
|
+
return o({
|
|
768
|
+
mutationFn: async (n) => await r.reconV2.startReconV2Profile(n),
|
|
770
769
|
...e
|
|
771
770
|
});
|
|
772
771
|
}
|
|
773
|
-
function
|
|
774
|
-
return
|
|
775
|
-
queryKey: ["reconV2", "profile", e,
|
|
772
|
+
function yn(e, n = "left", t = {}) {
|
|
773
|
+
return s({
|
|
774
|
+
queryKey: ["reconV2", "profile", e, n],
|
|
776
775
|
queryFn: async () => await r.reconV2.getReconV2ProfileResult({
|
|
777
776
|
workflowId: e,
|
|
778
|
-
side:
|
|
777
|
+
side: n
|
|
779
778
|
}),
|
|
780
779
|
enabled: !!e,
|
|
781
|
-
...
|
|
780
|
+
...t
|
|
782
781
|
});
|
|
783
782
|
}
|
|
784
|
-
function
|
|
785
|
-
return
|
|
786
|
-
mutationFn: async (
|
|
783
|
+
function dn(e = {}) {
|
|
784
|
+
return o({
|
|
785
|
+
mutationFn: async (n) => await r.reconV2.startReconV2Clean(n),
|
|
787
786
|
...e
|
|
788
787
|
});
|
|
789
788
|
}
|
|
790
|
-
function
|
|
791
|
-
return
|
|
792
|
-
queryKey: ["reconV2", "clean", e,
|
|
789
|
+
function gn(e, n = "left", t = {}) {
|
|
790
|
+
return s({
|
|
791
|
+
queryKey: ["reconV2", "clean", e, n],
|
|
793
792
|
queryFn: async () => await r.reconV2.getReconV2CleanResult({
|
|
794
793
|
workflowId: e,
|
|
795
|
-
side:
|
|
794
|
+
side: n
|
|
796
795
|
}),
|
|
797
796
|
enabled: !!e,
|
|
798
|
-
...
|
|
797
|
+
...t
|
|
799
798
|
});
|
|
800
799
|
}
|
|
801
|
-
function
|
|
802
|
-
return
|
|
803
|
-
queryKey: ["reconV2", "diff", e,
|
|
800
|
+
function fn(e, n, t, a = {}) {
|
|
801
|
+
return s({
|
|
802
|
+
queryKey: ["reconV2", "diff", e, t],
|
|
804
803
|
queryFn: async () => await r.reconV2.getReconV2Diff({
|
|
805
804
|
runId: e,
|
|
806
|
-
workflowId:
|
|
807
|
-
prevRunId:
|
|
805
|
+
workflowId: n,
|
|
806
|
+
prevRunId: t
|
|
808
807
|
}),
|
|
809
|
-
enabled: !!e && !!
|
|
810
|
-
...
|
|
808
|
+
enabled: !!e && !!n && !!t,
|
|
809
|
+
...a
|
|
811
810
|
});
|
|
812
811
|
}
|
|
813
|
-
function
|
|
814
|
-
return
|
|
812
|
+
function mn(e, n, t = {}) {
|
|
813
|
+
return s({
|
|
815
814
|
queryKey: ["reconV2", "explanation", e],
|
|
816
815
|
queryFn: async () => await r.reconV2.getReconV2Explanation({
|
|
817
816
|
runId: e,
|
|
818
|
-
workflowId:
|
|
817
|
+
workflowId: n
|
|
819
818
|
}),
|
|
820
|
-
enabled: !!e && !!
|
|
821
|
-
...
|
|
819
|
+
enabled: !!e && !!n,
|
|
820
|
+
...t
|
|
822
821
|
});
|
|
823
822
|
}
|
|
824
|
-
const
|
|
825
|
-
function
|
|
826
|
-
const [
|
|
823
|
+
const J = ["SUCCEEDED", "FAILED"];
|
|
824
|
+
function X(e, n = {}) {
|
|
825
|
+
const [t, a] = T(
|
|
827
826
|
void 0
|
|
828
|
-
), [
|
|
829
|
-
return
|
|
827
|
+
), [u, i] = T(!1), c = G(n.onComplete);
|
|
828
|
+
return c.current = n.onComplete, B(() => {
|
|
830
829
|
if (!e)
|
|
831
830
|
return;
|
|
832
|
-
const
|
|
833
|
-
if (!
|
|
831
|
+
const l = P().websocketProvider;
|
|
832
|
+
if (!l)
|
|
834
833
|
return;
|
|
835
|
-
|
|
836
|
-
const
|
|
837
|
-
let
|
|
834
|
+
a(void 0), i(!1);
|
|
835
|
+
const f = A.websocketUtils.ReconResultChannel;
|
|
836
|
+
let m = !1;
|
|
838
837
|
const w = () => {
|
|
839
|
-
|
|
838
|
+
m || (m = !0, l.unbind(f, e));
|
|
840
839
|
};
|
|
841
|
-
return
|
|
842
|
-
let
|
|
840
|
+
return l.bind(f, e, (q) => {
|
|
841
|
+
let F;
|
|
843
842
|
try {
|
|
844
|
-
|
|
843
|
+
F = typeof q == "string" ? JSON.parse(q) : q;
|
|
845
844
|
} catch {
|
|
846
|
-
|
|
845
|
+
F = { status: void 0 };
|
|
847
846
|
}
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
|
|
847
|
+
a(F);
|
|
848
|
+
const p = F?.status?.toUpperCase();
|
|
849
|
+
p && J.includes(p) && (i(!0), c.current?.(F), w());
|
|
851
850
|
}), w;
|
|
852
|
-
}, [e]), { data:
|
|
853
|
-
}
|
|
854
|
-
function
|
|
855
|
-
const
|
|
856
|
-
return
|
|
857
|
-
queryKey: ["reconV2", "workflow",
|
|
858
|
-
queryFn: async () => await r.reconV2.getReconV2Workflow({ id:
|
|
859
|
-
enabled: !!
|
|
860
|
-
...
|
|
851
|
+
}, [e]), { data: t, isTerminal: u };
|
|
852
|
+
}
|
|
853
|
+
function Y(e, n = {}) {
|
|
854
|
+
const t = e?.trim();
|
|
855
|
+
return s({
|
|
856
|
+
queryKey: ["reconV2", "workflow", t],
|
|
857
|
+
queryFn: async () => await r.reconV2.getReconV2Workflow({ id: t }),
|
|
858
|
+
enabled: !!t,
|
|
859
|
+
...n
|
|
861
860
|
});
|
|
862
861
|
}
|
|
863
|
-
function
|
|
864
|
-
return
|
|
865
|
-
(
|
|
862
|
+
function Z(e, n) {
|
|
863
|
+
return n.split(".").reduce(
|
|
864
|
+
(t, a) => t && typeof t == "object" ? t[a] : void 0,
|
|
866
865
|
e
|
|
867
866
|
);
|
|
868
867
|
}
|
|
869
|
-
function
|
|
870
|
-
const
|
|
868
|
+
function wn(e, n = {}) {
|
|
869
|
+
const t = z(n);
|
|
871
870
|
return {
|
|
872
|
-
workflows:
|
|
873
|
-
const
|
|
874
|
-
return e?.key ?
|
|
875
|
-
}, [
|
|
876
|
-
isLoading:
|
|
877
|
-
error:
|
|
878
|
-
refetch:
|
|
871
|
+
workflows: D(() => {
|
|
872
|
+
const u = t.data ?? [];
|
|
873
|
+
return e?.key ? u.filter((i) => Z(i, e.key) === e.value) : u;
|
|
874
|
+
}, [t.data, e?.key, e?.value]),
|
|
875
|
+
isLoading: t.isLoading,
|
|
876
|
+
error: t.error,
|
|
877
|
+
refetch: t.refetch
|
|
879
878
|
};
|
|
880
879
|
}
|
|
881
|
-
function
|
|
882
|
-
const
|
|
880
|
+
function Fn(e, n = {}) {
|
|
881
|
+
const t = Y(e, n);
|
|
883
882
|
return {
|
|
884
|
-
workflow:
|
|
885
|
-
isLoading:
|
|
886
|
-
error:
|
|
887
|
-
refetch:
|
|
883
|
+
workflow: t.data,
|
|
884
|
+
isLoading: t.isLoading,
|
|
885
|
+
error: t.error,
|
|
886
|
+
refetch: t.refetch
|
|
888
887
|
};
|
|
889
888
|
}
|
|
890
|
-
function
|
|
891
|
-
const e =
|
|
889
|
+
function pn() {
|
|
890
|
+
const e = W(), n = H();
|
|
892
891
|
return {
|
|
893
892
|
create: e.mutateAsync,
|
|
894
|
-
update:
|
|
895
|
-
isSaving: e.isPending ||
|
|
896
|
-
error: e.error ??
|
|
897
|
-
data:
|
|
893
|
+
update: n.mutateAsync,
|
|
894
|
+
isSaving: e.isPending || n.isPending,
|
|
895
|
+
error: e.error ?? n.error,
|
|
896
|
+
data: n.data ?? e.data
|
|
898
897
|
};
|
|
899
898
|
}
|
|
900
|
-
function
|
|
901
|
-
const
|
|
899
|
+
function qn(e, n = {}) {
|
|
900
|
+
const t = e?.trim(), [a, u] = T(void 0), i = _(), c = X(a, { onComplete: n.onComplete }), l = N(t);
|
|
902
901
|
return {
|
|
903
|
-
startRun: async (
|
|
904
|
-
if (!
|
|
902
|
+
startRun: async (m = {}) => {
|
|
903
|
+
if (!t)
|
|
905
904
|
throw new Error("workflowId is required to start a run");
|
|
906
|
-
const w = await i.mutateAsync({ workflowId:
|
|
907
|
-
return
|
|
905
|
+
const w = await i.mutateAsync({ workflowId: t, ...m });
|
|
906
|
+
return u(w?.runId), w?.runId;
|
|
908
907
|
},
|
|
909
|
-
runId:
|
|
910
|
-
status:
|
|
911
|
-
isRunning: i.isPending || !!
|
|
912
|
-
isTerminal:
|
|
913
|
-
runs:
|
|
914
|
-
refetchRuns:
|
|
908
|
+
runId: a,
|
|
909
|
+
status: c.data,
|
|
910
|
+
isRunning: i.isPending || !!a && !c.isTerminal,
|
|
911
|
+
isTerminal: c.isTerminal,
|
|
912
|
+
runs: l.data,
|
|
913
|
+
refetchRuns: l.refetch
|
|
915
914
|
};
|
|
916
915
|
}
|
|
917
|
-
function
|
|
916
|
+
function bn({
|
|
918
917
|
runId: e,
|
|
919
|
-
workflowId:
|
|
920
|
-
exceptionType:
|
|
921
|
-
ruleFilter:
|
|
922
|
-
orderBy:
|
|
918
|
+
workflowId: n,
|
|
919
|
+
exceptionType: t,
|
|
920
|
+
ruleFilter: a,
|
|
921
|
+
orderBy: u
|
|
923
922
|
}) {
|
|
924
|
-
const i =
|
|
923
|
+
const i = j(e), c = $({
|
|
925
924
|
runId: e ?? void 0,
|
|
926
|
-
workflowId:
|
|
927
|
-
exceptionType:
|
|
928
|
-
ruleFilter:
|
|
929
|
-
orderBy:
|
|
930
|
-
}),
|
|
925
|
+
workflowId: n ?? void 0,
|
|
926
|
+
exceptionType: t,
|
|
927
|
+
ruleFilter: a,
|
|
928
|
+
orderBy: u
|
|
929
|
+
}), l = c.data?.result;
|
|
931
930
|
return {
|
|
932
931
|
runResult: i.data,
|
|
933
|
-
records:
|
|
934
|
-
description:
|
|
935
|
-
isLoading: i.isLoading ||
|
|
936
|
-
error: i.error ??
|
|
937
|
-
refetch:
|
|
932
|
+
records: l?.data ?? [],
|
|
933
|
+
description: l?.description ?? [],
|
|
934
|
+
isLoading: i.isLoading || c.isLoading,
|
|
935
|
+
error: i.error ?? c.error,
|
|
936
|
+
refetch: c.refetch
|
|
938
937
|
};
|
|
939
938
|
}
|
|
940
|
-
function
|
|
941
|
-
return
|
|
939
|
+
function hn(e = {}) {
|
|
940
|
+
return s({
|
|
942
941
|
queryKey: ["users"],
|
|
943
942
|
queryFn: async () => await r.user.getAllUsers(),
|
|
944
943
|
...e
|
|
945
944
|
});
|
|
946
945
|
}
|
|
947
|
-
function
|
|
948
|
-
return
|
|
946
|
+
function Dn(e = {}) {
|
|
947
|
+
return s({
|
|
949
948
|
queryKey: ["httpTriggers"],
|
|
950
949
|
queryFn: async () => await r.workflow.getAllHttpTriggers(),
|
|
951
950
|
...e
|
|
952
951
|
});
|
|
953
952
|
}
|
|
954
|
-
function
|
|
955
|
-
return
|
|
956
|
-
mutationFn: async (
|
|
953
|
+
function Tn(e = {}) {
|
|
954
|
+
return o({
|
|
955
|
+
mutationFn: async (n) => await r.process.markTaskDone(n),
|
|
957
956
|
...e
|
|
958
957
|
});
|
|
959
958
|
}
|
|
960
|
-
function
|
|
961
|
-
return
|
|
962
|
-
mutationFn: async (
|
|
959
|
+
function Rn(e = {}) {
|
|
960
|
+
return o({
|
|
961
|
+
mutationFn: async (n) => await r.process.reassignTask(n),
|
|
963
962
|
...e
|
|
964
963
|
});
|
|
965
964
|
}
|
|
966
|
-
function
|
|
967
|
-
return
|
|
965
|
+
function kn(e, n = {}) {
|
|
966
|
+
return s({
|
|
968
967
|
queryKey: ["processTriggers", e],
|
|
969
968
|
queryFn: async () => await r.process.getTriggersBySheet(e),
|
|
970
969
|
enabled: !!e,
|
|
971
|
-
...
|
|
970
|
+
...n
|
|
972
971
|
});
|
|
973
972
|
}
|
|
974
|
-
function
|
|
975
|
-
const
|
|
976
|
-
return
|
|
977
|
-
mutationFn: async (
|
|
978
|
-
onSuccess: (
|
|
979
|
-
|
|
980
|
-
queryKey: ["processTriggers",
|
|
973
|
+
function Cn(e = {}) {
|
|
974
|
+
const n = g();
|
|
975
|
+
return o({
|
|
976
|
+
mutationFn: async (t) => await r.process.registerProcessTrigger(t),
|
|
977
|
+
onSuccess: (t, a) => {
|
|
978
|
+
n.invalidateQueries({
|
|
979
|
+
queryKey: ["processTriggers", a.process_sheet_id]
|
|
981
980
|
});
|
|
982
981
|
},
|
|
983
982
|
...e
|
|
984
983
|
});
|
|
985
984
|
}
|
|
986
|
-
function
|
|
987
|
-
const
|
|
988
|
-
return
|
|
989
|
-
mutationFn: async ({ id:
|
|
990
|
-
onSuccess: (
|
|
991
|
-
|
|
992
|
-
queryKey:
|
|
985
|
+
function xn(e = {}) {
|
|
986
|
+
const n = g();
|
|
987
|
+
return o({
|
|
988
|
+
mutationFn: async ({ id: t }) => await r.process.deleteProcessTrigger(t),
|
|
989
|
+
onSuccess: (t, a) => {
|
|
990
|
+
n.invalidateQueries({
|
|
991
|
+
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
993
992
|
});
|
|
994
993
|
},
|
|
995
994
|
...e
|
|
996
995
|
});
|
|
997
996
|
}
|
|
998
|
-
function
|
|
999
|
-
const
|
|
1000
|
-
return
|
|
1001
|
-
mutationFn: async ({ triggerId:
|
|
1002
|
-
onSuccess: (
|
|
1003
|
-
|
|
1004
|
-
queryKey:
|
|
1005
|
-
}),
|
|
1006
|
-
queryKey: ["scheduleStatus",
|
|
997
|
+
function Pn(e = {}) {
|
|
998
|
+
const n = g();
|
|
999
|
+
return o({
|
|
1000
|
+
mutationFn: async ({ triggerId: t, scheduleName: a }) => await r.process.pauseSchedule(t, a),
|
|
1001
|
+
onSuccess: (t, a) => {
|
|
1002
|
+
n.invalidateQueries({
|
|
1003
|
+
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
1004
|
+
}), n.invalidateQueries({
|
|
1005
|
+
queryKey: ["scheduleStatus", a.triggerId, a.scheduleName]
|
|
1007
1006
|
});
|
|
1008
1007
|
},
|
|
1009
1008
|
...e
|
|
1010
1009
|
});
|
|
1011
1010
|
}
|
|
1012
|
-
function
|
|
1013
|
-
const
|
|
1014
|
-
return
|
|
1015
|
-
mutationFn: async ({ triggerId:
|
|
1016
|
-
onSuccess: (
|
|
1017
|
-
|
|
1018
|
-
queryKey:
|
|
1019
|
-
}),
|
|
1020
|
-
queryKey: ["scheduleStatus",
|
|
1011
|
+
function Sn(e = {}) {
|
|
1012
|
+
const n = g();
|
|
1013
|
+
return o({
|
|
1014
|
+
mutationFn: async ({ triggerId: t, scheduleName: a }) => await r.process.resumeSchedule(t, a),
|
|
1015
|
+
onSuccess: (t, a) => {
|
|
1016
|
+
n.invalidateQueries({
|
|
1017
|
+
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
1018
|
+
}), n.invalidateQueries({
|
|
1019
|
+
queryKey: ["scheduleStatus", a.triggerId, a.scheduleName]
|
|
1021
1020
|
});
|
|
1022
1021
|
},
|
|
1023
1022
|
...e
|
|
1024
1023
|
});
|
|
1025
1024
|
}
|
|
1026
|
-
function
|
|
1027
|
-
return
|
|
1028
|
-
queryKey: ["scheduleStatus", e,
|
|
1025
|
+
function In(e, n, t = {}) {
|
|
1026
|
+
return s({
|
|
1027
|
+
queryKey: ["scheduleStatus", e, n],
|
|
1029
1028
|
queryFn: async () => await r.process.getScheduleStatus(
|
|
1030
1029
|
e,
|
|
1031
|
-
|
|
1030
|
+
n
|
|
1032
1031
|
),
|
|
1033
|
-
enabled: !!e && !!
|
|
1034
|
-
...
|
|
1032
|
+
enabled: !!e && !!n,
|
|
1033
|
+
...t
|
|
1035
1034
|
});
|
|
1036
1035
|
}
|
|
1037
|
-
function
|
|
1038
|
-
const
|
|
1039
|
-
return
|
|
1040
|
-
mutationFn: async ({ triggerId:
|
|
1041
|
-
onSuccess: (
|
|
1042
|
-
|
|
1043
|
-
queryKey:
|
|
1036
|
+
function Kn(e = {}) {
|
|
1037
|
+
const n = g();
|
|
1038
|
+
return o({
|
|
1039
|
+
mutationFn: async ({ triggerId: t, scheduleName: a }) => await r.process.executeNow(t, a),
|
|
1040
|
+
onSuccess: (t, a) => {
|
|
1041
|
+
n.invalidateQueries({
|
|
1042
|
+
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
1044
1043
|
});
|
|
1045
1044
|
},
|
|
1046
1045
|
...e
|
|
1047
1046
|
});
|
|
1048
1047
|
}
|
|
1049
|
-
function
|
|
1050
|
-
const
|
|
1051
|
-
return
|
|
1052
|
-
mutationFn: async (
|
|
1053
|
-
|
|
1048
|
+
function Vn(e = {}) {
|
|
1049
|
+
const n = g();
|
|
1050
|
+
return o({
|
|
1051
|
+
mutationFn: async (t) => await r.processTree.createOrUpdateProcessTreeTrigger(
|
|
1052
|
+
t
|
|
1054
1053
|
),
|
|
1055
|
-
onSuccess: (
|
|
1056
|
-
|
|
1057
|
-
queryKey: ["processTreeTriggers",
|
|
1054
|
+
onSuccess: (t, a) => {
|
|
1055
|
+
n.invalidateQueries({
|
|
1056
|
+
queryKey: ["processTreeTriggers", a.sheetId]
|
|
1058
1057
|
});
|
|
1059
1058
|
},
|
|
1060
1059
|
...e
|
|
1061
1060
|
});
|
|
1062
1061
|
}
|
|
1063
|
-
function
|
|
1064
|
-
const
|
|
1065
|
-
return
|
|
1066
|
-
mutationFn: async (
|
|
1067
|
-
onSuccess: (
|
|
1068
|
-
|
|
1069
|
-
queryKey: ["processTreeRuns",
|
|
1062
|
+
function En(e = {}) {
|
|
1063
|
+
const n = g();
|
|
1064
|
+
return o({
|
|
1065
|
+
mutationFn: async (t) => await r.processTree.executeProcessTreeTrigger(t),
|
|
1066
|
+
onSuccess: (t, a) => {
|
|
1067
|
+
n.invalidateQueries({
|
|
1068
|
+
queryKey: ["processTreeRuns", a.sheetId]
|
|
1070
1069
|
});
|
|
1071
1070
|
},
|
|
1072
1071
|
...e
|
|
1073
1072
|
});
|
|
1074
1073
|
}
|
|
1075
|
-
function
|
|
1076
|
-
const
|
|
1077
|
-
return
|
|
1078
|
-
mutationFn: async ({ payload:
|
|
1079
|
-
onSuccess: (
|
|
1080
|
-
|
|
1081
|
-
queryKey: ["processTreeRuns",
|
|
1082
|
-
}),
|
|
1083
|
-
queryKey: ["processTreeRun",
|
|
1074
|
+
function An(e = {}) {
|
|
1075
|
+
const n = g();
|
|
1076
|
+
return o({
|
|
1077
|
+
mutationFn: async ({ payload: t }) => await r.processTree.terminatePipelines(t),
|
|
1078
|
+
onSuccess: (t, a) => {
|
|
1079
|
+
a.sheetId && n.invalidateQueries({
|
|
1080
|
+
queryKey: ["processTreeRuns", a.sheetId]
|
|
1081
|
+
}), a.instanceId && n.invalidateQueries({
|
|
1082
|
+
queryKey: ["processTreeRun", a.instanceId]
|
|
1084
1083
|
});
|
|
1085
1084
|
},
|
|
1086
1085
|
...e
|
|
1087
1086
|
});
|
|
1088
1087
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const
|
|
1091
|
-
return
|
|
1092
|
-
mutationFn: async (
|
|
1093
|
-
onSuccess: (
|
|
1094
|
-
|
|
1095
|
-
queryKey: ["processTreeRuns",
|
|
1096
|
-
}),
|
|
1097
|
-
queryKey: ["processTreeRun",
|
|
1088
|
+
function Gn(e = {}) {
|
|
1089
|
+
const n = g();
|
|
1090
|
+
return o({
|
|
1091
|
+
mutationFn: async (t) => await r.processTree.logProcessTreeRun(t),
|
|
1092
|
+
onSuccess: (t, a) => {
|
|
1093
|
+
n.invalidateQueries({
|
|
1094
|
+
queryKey: ["processTreeRuns", a.sheetId]
|
|
1095
|
+
}), n.invalidateQueries({
|
|
1096
|
+
queryKey: ["processTreeRun", a.instanceId]
|
|
1098
1097
|
});
|
|
1099
1098
|
},
|
|
1100
1099
|
...e
|
|
1101
1100
|
});
|
|
1102
1101
|
}
|
|
1103
|
-
function
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1102
|
+
function Bn(e = {}) {
|
|
1103
|
+
const n = g();
|
|
1104
|
+
return o({
|
|
1106
1105
|
mutationFn: async ({
|
|
1107
|
-
instanceId:
|
|
1108
|
-
context:
|
|
1106
|
+
instanceId: t,
|
|
1107
|
+
context: a
|
|
1109
1108
|
}) => await r.processTree.updateProcessTreeRunContext(
|
|
1110
|
-
|
|
1111
|
-
|
|
1109
|
+
t,
|
|
1110
|
+
a
|
|
1112
1111
|
),
|
|
1113
|
-
onSuccess: (
|
|
1114
|
-
|
|
1115
|
-
queryKey: ["processTreeRun",
|
|
1112
|
+
onSuccess: (t, a) => {
|
|
1113
|
+
n.invalidateQueries({
|
|
1114
|
+
queryKey: ["processTreeRun", a.instanceId]
|
|
1116
1115
|
});
|
|
1117
1116
|
},
|
|
1118
1117
|
...e
|
|
1119
1118
|
});
|
|
1120
1119
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const
|
|
1123
|
-
return
|
|
1124
|
-
mutationFn: async ({ id:
|
|
1125
|
-
onSuccess: (
|
|
1126
|
-
|
|
1127
|
-
queryKey:
|
|
1120
|
+
function Mn(e = {}) {
|
|
1121
|
+
const n = g();
|
|
1122
|
+
return o({
|
|
1123
|
+
mutationFn: async ({ id: t }) => await r.processTree.deleteProcessTreeTrigger(t),
|
|
1124
|
+
onSuccess: (t, a) => {
|
|
1125
|
+
n.invalidateQueries({
|
|
1126
|
+
queryKey: a.sheetId ? ["processTreeTriggers", a.sheetId] : ["processTreeTriggers"]
|
|
1128
1127
|
});
|
|
1129
1128
|
},
|
|
1130
1129
|
...e
|
|
1131
1130
|
});
|
|
1132
1131
|
}
|
|
1133
|
-
function
|
|
1134
|
-
return
|
|
1132
|
+
function vn(e, n = {}) {
|
|
1133
|
+
return s({
|
|
1135
1134
|
queryKey: ["processTreeTrigger", e],
|
|
1136
1135
|
queryFn: async () => await r.processTree.getProcessTreeTrigger(e),
|
|
1137
1136
|
enabled: !!e,
|
|
1138
|
-
...
|
|
1137
|
+
...n
|
|
1139
1138
|
});
|
|
1140
1139
|
}
|
|
1141
|
-
function
|
|
1142
|
-
return
|
|
1140
|
+
function On(e, n = {}) {
|
|
1141
|
+
return s({
|
|
1143
1142
|
queryKey: ["processTreeTriggers", e],
|
|
1144
1143
|
queryFn: async () => await r.processTree.getProcessTreeTriggersBySheetId(e),
|
|
1145
1144
|
enabled: !!e,
|
|
1146
|
-
...
|
|
1145
|
+
...n
|
|
1147
1146
|
});
|
|
1148
1147
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return
|
|
1148
|
+
function Un(e, n = {}) {
|
|
1149
|
+
return s({
|
|
1151
1150
|
queryKey: ["processTreeRuns", e],
|
|
1152
1151
|
queryFn: async () => await r.processTree.getProcessTreeRunsBySheetId(e),
|
|
1153
1152
|
enabled: !!e,
|
|
1154
|
-
...
|
|
1153
|
+
...n
|
|
1155
1154
|
});
|
|
1156
1155
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return
|
|
1156
|
+
function Ln(e, n, t = {}) {
|
|
1157
|
+
return s({
|
|
1159
1158
|
queryKey: [
|
|
1160
1159
|
"processTreeRuns",
|
|
1161
1160
|
e,
|
|
1162
1161
|
"paginated",
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1162
|
+
n?.page,
|
|
1163
|
+
n?.pageSize,
|
|
1164
|
+
n?.orderByCreatedDate
|
|
1166
1165
|
],
|
|
1167
1166
|
queryFn: async () => await r.processTree.getProcessTreeRunsBySheetIdPaginated(
|
|
1168
1167
|
e,
|
|
1169
|
-
|
|
1168
|
+
n
|
|
1170
1169
|
),
|
|
1171
1170
|
enabled: !!e,
|
|
1172
|
-
...
|
|
1171
|
+
...t
|
|
1173
1172
|
});
|
|
1174
1173
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1174
|
+
function Qn(e, n = {}) {
|
|
1175
|
+
return s({
|
|
1177
1176
|
queryKey: ["processTreeRun", e],
|
|
1178
1177
|
queryFn: async () => await r.processTree.getProcessTreeRunByInstanceId(
|
|
1179
1178
|
e
|
|
1180
1179
|
),
|
|
1181
1180
|
enabled: !!e,
|
|
1182
|
-
...
|
|
1181
|
+
...n
|
|
1183
1182
|
});
|
|
1184
1183
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1184
|
+
function Wn(e = {}) {
|
|
1185
|
+
return s({
|
|
1187
1186
|
queryKey: ["customAuthzModel"],
|
|
1188
1187
|
queryFn: async () => await r.customAuthz.getCustomAuthzModel(),
|
|
1189
1188
|
...e
|
|
1190
1189
|
});
|
|
1191
1190
|
}
|
|
1192
|
-
function
|
|
1193
|
-
const
|
|
1194
|
-
return
|
|
1195
|
-
mutationFn: async (
|
|
1191
|
+
function Hn(e = {}) {
|
|
1192
|
+
const n = g();
|
|
1193
|
+
return o({
|
|
1194
|
+
mutationFn: async (t) => await r.customAuthz.registerCustomAuthzModel(t),
|
|
1196
1195
|
onSuccess: () => {
|
|
1197
|
-
|
|
1196
|
+
n.invalidateQueries({ queryKey: ["customAuthzModel"] });
|
|
1198
1197
|
},
|
|
1199
1198
|
...e
|
|
1200
1199
|
});
|
|
1201
1200
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1204
|
-
mutationFn: async (
|
|
1201
|
+
function _n(e = {}) {
|
|
1202
|
+
return o({
|
|
1203
|
+
mutationFn: async (n) => await r.customAuthz.updateCustomObjectPermissions(n),
|
|
1205
1204
|
...e
|
|
1206
1205
|
});
|
|
1207
1206
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return
|
|
1210
|
-
mutationFn: async (
|
|
1211
|
-
|
|
1207
|
+
function zn(e = {}) {
|
|
1208
|
+
return o({
|
|
1209
|
+
mutationFn: async (n) => await r.customAuthz.bulkUpdateCustomObjectPermissions(
|
|
1210
|
+
n
|
|
1212
1211
|
),
|
|
1213
1212
|
...e
|
|
1214
1213
|
});
|
|
1215
1214
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1218
|
-
mutationFn: async (
|
|
1215
|
+
function Nn(e = {}) {
|
|
1216
|
+
return o({
|
|
1217
|
+
mutationFn: async (n) => await r.customAuthz.checkCustomPermissions(n),
|
|
1219
1218
|
...e
|
|
1220
1219
|
});
|
|
1221
1220
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1224
|
-
mutationFn: async (
|
|
1221
|
+
function jn(e = {}) {
|
|
1222
|
+
return o({
|
|
1223
|
+
mutationFn: async (n) => await r.customAuthz.bulkCheckCustomPermissions(n),
|
|
1225
1224
|
...e
|
|
1226
1225
|
});
|
|
1227
1226
|
}
|
|
1228
|
-
function
|
|
1229
|
-
return
|
|
1227
|
+
function $n(e = {}, n = {}) {
|
|
1228
|
+
return s({
|
|
1230
1229
|
queryKey: ["inboxItems", "all", e.page, e.perPage],
|
|
1231
1230
|
queryFn: async () => await r.inboxItems.getAllInboxItems(e),
|
|
1232
|
-
...
|
|
1231
|
+
...n
|
|
1233
1232
|
});
|
|
1234
1233
|
}
|
|
1235
|
-
function
|
|
1236
|
-
return
|
|
1237
|
-
mutationFn: async (
|
|
1234
|
+
function Jn(e = {}) {
|
|
1235
|
+
return o({
|
|
1236
|
+
mutationFn: async (n) => await r.inboxItems.markItemAsRead(n),
|
|
1238
1237
|
...e
|
|
1239
1238
|
});
|
|
1240
1239
|
}
|
|
1241
|
-
function
|
|
1242
|
-
return
|
|
1243
|
-
mutationFn: async (
|
|
1240
|
+
function Xn(e = {}) {
|
|
1241
|
+
return o({
|
|
1242
|
+
mutationFn: async (n) => await r.inboxItems.markItemAsUnread(n),
|
|
1244
1243
|
...e
|
|
1245
1244
|
});
|
|
1246
1245
|
}
|
|
1247
|
-
function
|
|
1248
|
-
return
|
|
1249
|
-
mutationFn: async (
|
|
1246
|
+
function Yn(e = {}) {
|
|
1247
|
+
return o({
|
|
1248
|
+
mutationFn: async (n) => await r.inboxItems.createInboxItemPerUser(n),
|
|
1250
1249
|
...e
|
|
1251
1250
|
});
|
|
1252
1251
|
}
|
|
1253
|
-
function
|
|
1254
|
-
return
|
|
1252
|
+
function Zn(e = {}) {
|
|
1253
|
+
return s({
|
|
1255
1254
|
queryKey: ["inboxV2", "types"],
|
|
1256
1255
|
queryFn: async () => await r.inboxV2.listTypes(),
|
|
1257
1256
|
...e
|
|
1258
1257
|
});
|
|
1259
1258
|
}
|
|
1260
|
-
function
|
|
1261
|
-
return
|
|
1259
|
+
function et(e, n = {}) {
|
|
1260
|
+
return s({
|
|
1262
1261
|
queryKey: ["inboxV2", "type", e],
|
|
1263
1262
|
queryFn: async () => await r.inboxV2.getType(e),
|
|
1264
1263
|
enabled: !!e,
|
|
1265
|
-
...
|
|
1264
|
+
...n
|
|
1266
1265
|
});
|
|
1267
1266
|
}
|
|
1268
|
-
function
|
|
1269
|
-
return
|
|
1270
|
-
mutationFn: async (
|
|
1267
|
+
function nt(e = {}) {
|
|
1268
|
+
return o({
|
|
1269
|
+
mutationFn: async (n) => await r.inboxV2.createType(n),
|
|
1271
1270
|
...e
|
|
1272
1271
|
});
|
|
1273
1272
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return
|
|
1276
|
-
mutationFn: async ({ id:
|
|
1273
|
+
function tt(e = {}) {
|
|
1274
|
+
return o({
|
|
1275
|
+
mutationFn: async ({ id: n, data: t }) => await r.inboxV2.updateType(n, t),
|
|
1277
1276
|
...e
|
|
1278
1277
|
});
|
|
1279
1278
|
}
|
|
1280
|
-
function
|
|
1281
|
-
return
|
|
1282
|
-
mutationFn: async (
|
|
1279
|
+
function rt(e = {}) {
|
|
1280
|
+
return o({
|
|
1281
|
+
mutationFn: async (n) => await r.inboxV2.deleteType(n),
|
|
1283
1282
|
...e
|
|
1284
1283
|
});
|
|
1285
1284
|
}
|
|
1286
|
-
function
|
|
1287
|
-
return
|
|
1285
|
+
function at(e = {}, n = {}) {
|
|
1286
|
+
return s({
|
|
1288
1287
|
queryKey: [
|
|
1289
1288
|
"inboxV2",
|
|
1290
1289
|
"items",
|
|
@@ -1295,136 +1294,136 @@ function Ht(e = {}, t = {}) {
|
|
|
1295
1294
|
e.perPage
|
|
1296
1295
|
],
|
|
1297
1296
|
queryFn: async () => await r.inboxV2.listMyItems(e),
|
|
1298
|
-
...
|
|
1297
|
+
...n
|
|
1299
1298
|
});
|
|
1300
1299
|
}
|
|
1301
|
-
function
|
|
1302
|
-
return
|
|
1300
|
+
function ot(e, n = {}) {
|
|
1301
|
+
return s({
|
|
1303
1302
|
queryKey: ["inboxV2", "item", e],
|
|
1304
1303
|
queryFn: async () => await r.inboxV2.getItem(e),
|
|
1305
1304
|
enabled: !!e,
|
|
1306
|
-
...
|
|
1305
|
+
...n
|
|
1307
1306
|
});
|
|
1308
1307
|
}
|
|
1309
|
-
function
|
|
1310
|
-
return
|
|
1311
|
-
mutationFn: async (
|
|
1308
|
+
function ut(e = {}) {
|
|
1309
|
+
return o({
|
|
1310
|
+
mutationFn: async (n) => await r.inboxV2.createItem(n),
|
|
1312
1311
|
...e
|
|
1313
1312
|
});
|
|
1314
1313
|
}
|
|
1315
|
-
function
|
|
1316
|
-
return
|
|
1317
|
-
mutationFn: async ({ id:
|
|
1314
|
+
function st(e = {}) {
|
|
1315
|
+
return o({
|
|
1316
|
+
mutationFn: async ({ id: n, data: t }) => await r.inboxV2.updateItem(n, t),
|
|
1318
1317
|
...e
|
|
1319
1318
|
});
|
|
1320
1319
|
}
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1323
|
-
mutationFn: async (
|
|
1320
|
+
function it(e = {}) {
|
|
1321
|
+
return o({
|
|
1322
|
+
mutationFn: async (n) => await r.inboxV2.markRead(n),
|
|
1324
1323
|
...e
|
|
1325
1324
|
});
|
|
1326
1325
|
}
|
|
1327
|
-
function
|
|
1328
|
-
return
|
|
1329
|
-
mutationFn: async (
|
|
1326
|
+
function ct(e = {}) {
|
|
1327
|
+
return o({
|
|
1328
|
+
mutationFn: async (n) => await r.inboxV2.markUnread(n),
|
|
1330
1329
|
...e
|
|
1331
1330
|
});
|
|
1332
1331
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return
|
|
1335
|
-
mutationFn: async ({ id:
|
|
1332
|
+
function lt(e = {}) {
|
|
1333
|
+
return o({
|
|
1334
|
+
mutationFn: async ({ id: n, data: t }) => await r.inboxV2.snoozeItem(n, t),
|
|
1336
1335
|
...e
|
|
1337
1336
|
});
|
|
1338
1337
|
}
|
|
1339
|
-
function
|
|
1340
|
-
return
|
|
1341
|
-
mutationFn: async (
|
|
1338
|
+
function yt(e = {}) {
|
|
1339
|
+
return o({
|
|
1340
|
+
mutationFn: async (n) => await r.inboxV2.dismissItem(n),
|
|
1342
1341
|
...e
|
|
1343
1342
|
});
|
|
1344
1343
|
}
|
|
1345
|
-
function
|
|
1346
|
-
return
|
|
1347
|
-
mutationFn: async (
|
|
1344
|
+
function dt(e = {}) {
|
|
1345
|
+
return o({
|
|
1346
|
+
mutationFn: async (n) => await r.inboxV2.claimItem(n),
|
|
1348
1347
|
...e
|
|
1349
1348
|
});
|
|
1350
1349
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1353
|
-
mutationFn: async (
|
|
1350
|
+
function gt(e = {}) {
|
|
1351
|
+
return o({
|
|
1352
|
+
mutationFn: async (n) => await r.inboxV2.completeItem(n),
|
|
1354
1353
|
...e
|
|
1355
1354
|
});
|
|
1356
1355
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return
|
|
1359
|
-
mutationFn: async (
|
|
1356
|
+
function ft(e = {}) {
|
|
1357
|
+
return o({
|
|
1358
|
+
mutationFn: async (n) => await r.inboxV2.releaseItem(n),
|
|
1360
1359
|
...e
|
|
1361
1360
|
});
|
|
1362
1361
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return
|
|
1365
|
-
mutationFn: async (
|
|
1362
|
+
function mt(e = {}) {
|
|
1363
|
+
return o({
|
|
1364
|
+
mutationFn: async (n) => await r.inboxV2.cancelItem(n),
|
|
1366
1365
|
...e
|
|
1367
1366
|
});
|
|
1368
1367
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1371
|
-
mutationFn: async ({ id:
|
|
1368
|
+
function wt(e = {}) {
|
|
1369
|
+
return o({
|
|
1370
|
+
mutationFn: async ({ id: n, data: t }) => await r.inboxV2.reassignItem(n, t),
|
|
1372
1371
|
...e
|
|
1373
1372
|
});
|
|
1374
1373
|
}
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1377
|
-
mutationFn: async (
|
|
1374
|
+
function Ft(e = {}) {
|
|
1375
|
+
return o({
|
|
1376
|
+
mutationFn: async (n) => await r.inboxV2.completeByKey(n),
|
|
1378
1377
|
...e
|
|
1379
1378
|
});
|
|
1380
1379
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1383
|
-
mutationFn: async (
|
|
1380
|
+
function pt(e = {}) {
|
|
1381
|
+
return o({
|
|
1382
|
+
mutationFn: async (n) => await r.inboxV2.cancelByKey(n),
|
|
1384
1383
|
...e
|
|
1385
1384
|
});
|
|
1386
1385
|
}
|
|
1387
|
-
function
|
|
1388
|
-
return
|
|
1386
|
+
function qt(e, n = {}) {
|
|
1387
|
+
return s({
|
|
1389
1388
|
queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
|
|
1390
1389
|
queryFn: async () => await r.emailEngine.getAllConversations(e),
|
|
1391
|
-
...
|
|
1390
|
+
...n
|
|
1392
1391
|
});
|
|
1393
1392
|
}
|
|
1394
|
-
function
|
|
1395
|
-
return
|
|
1393
|
+
function bt(e, n = {}) {
|
|
1394
|
+
return s({
|
|
1396
1395
|
queryKey: ["emailConversation", e],
|
|
1397
1396
|
queryFn: async () => await r.emailEngine.getConversation({
|
|
1398
1397
|
conversationId: e
|
|
1399
1398
|
}),
|
|
1400
1399
|
enabled: !!e,
|
|
1401
|
-
...
|
|
1400
|
+
...n
|
|
1402
1401
|
});
|
|
1403
1402
|
}
|
|
1404
|
-
function
|
|
1405
|
-
const
|
|
1406
|
-
return
|
|
1407
|
-
mutationFn: async (
|
|
1403
|
+
function ht(e = {}) {
|
|
1404
|
+
const n = g();
|
|
1405
|
+
return o({
|
|
1406
|
+
mutationFn: async (t) => await r.emailEngine.createConversation(t),
|
|
1408
1407
|
onSuccess: () => {
|
|
1409
|
-
|
|
1408
|
+
n.invalidateQueries({ queryKey: ["emailConversations"] });
|
|
1410
1409
|
},
|
|
1411
1410
|
...e
|
|
1412
1411
|
});
|
|
1413
1412
|
}
|
|
1414
|
-
function
|
|
1415
|
-
const
|
|
1416
|
-
return
|
|
1417
|
-
mutationFn: async (
|
|
1418
|
-
onSuccess: (
|
|
1419
|
-
|
|
1420
|
-
queryKey: ["emailConversation",
|
|
1413
|
+
function Dt(e = {}) {
|
|
1414
|
+
const n = g();
|
|
1415
|
+
return o({
|
|
1416
|
+
mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
|
|
1417
|
+
onSuccess: (t, a) => {
|
|
1418
|
+
n.invalidateQueries({
|
|
1419
|
+
queryKey: ["emailConversation", a.conversationId]
|
|
1421
1420
|
});
|
|
1422
1421
|
},
|
|
1423
1422
|
...e
|
|
1424
1423
|
});
|
|
1425
1424
|
}
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1425
|
+
function Tt(e, n = {}) {
|
|
1426
|
+
return s({
|
|
1428
1427
|
queryKey: [
|
|
1429
1428
|
"emailMessagesBySender",
|
|
1430
1429
|
e.senderId,
|
|
@@ -1435,537 +1434,854 @@ function dn(e, t = {}) {
|
|
|
1435
1434
|
],
|
|
1436
1435
|
queryFn: async () => await r.emailEngine.getMessageBySenderId(e),
|
|
1437
1436
|
enabled: !!e.senderId,
|
|
1438
|
-
...
|
|
1437
|
+
...n
|
|
1439
1438
|
});
|
|
1440
1439
|
}
|
|
1441
|
-
function
|
|
1442
|
-
return
|
|
1443
|
-
mutationFn: async (
|
|
1440
|
+
function Rt(e = {}) {
|
|
1441
|
+
return o({
|
|
1442
|
+
mutationFn: async (n) => await r.emailEngine.searchMessages(n),
|
|
1444
1443
|
...e
|
|
1445
1444
|
});
|
|
1446
1445
|
}
|
|
1447
|
-
function
|
|
1448
|
-
const
|
|
1446
|
+
function kt(e = {}) {
|
|
1447
|
+
const n = y(async () => await r.tcn.getAuthUrl()), t = d({
|
|
1449
1448
|
queryKey: ["tcn", "authUrl"],
|
|
1450
|
-
queryFn:
|
|
1449
|
+
queryFn: n,
|
|
1451
1450
|
enabled: !0,
|
|
1452
1451
|
options: e
|
|
1453
1452
|
});
|
|
1454
|
-
return
|
|
1453
|
+
return s(t);
|
|
1455
1454
|
}
|
|
1456
|
-
function
|
|
1457
|
-
return
|
|
1458
|
-
mutationFn: async ({ code:
|
|
1455
|
+
function Ct(e = {}) {
|
|
1456
|
+
return o({
|
|
1457
|
+
mutationFn: async ({ code: n }) => await r.tcn.exchangeCode(n),
|
|
1459
1458
|
...e
|
|
1460
1459
|
});
|
|
1461
1460
|
}
|
|
1462
|
-
function
|
|
1463
|
-
return
|
|
1464
|
-
mutationFn: async ({ refresh_token:
|
|
1461
|
+
function xt(e = {}) {
|
|
1462
|
+
return o({
|
|
1463
|
+
mutationFn: async ({ refresh_token: n }) => await r.tcn.refreshToken(n),
|
|
1465
1464
|
...e
|
|
1466
1465
|
});
|
|
1467
1466
|
}
|
|
1468
|
-
function
|
|
1469
|
-
return
|
|
1470
|
-
mutationFn: async ({ token:
|
|
1467
|
+
function Pt(e = {}) {
|
|
1468
|
+
return o({
|
|
1469
|
+
mutationFn: async ({ token: n }) => await r.tcn.getCurrentAgent(n),
|
|
1471
1470
|
...e
|
|
1472
1471
|
});
|
|
1473
1472
|
}
|
|
1474
|
-
function
|
|
1475
|
-
return
|
|
1476
|
-
mutationFn: async ({ token:
|
|
1473
|
+
function St(e = {}) {
|
|
1474
|
+
return o({
|
|
1475
|
+
mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getAgentSkills(n, t),
|
|
1477
1476
|
...e
|
|
1478
1477
|
});
|
|
1479
1478
|
}
|
|
1480
|
-
function
|
|
1481
|
-
return
|
|
1482
|
-
mutationFn: async ({ token:
|
|
1479
|
+
function It(e = {}) {
|
|
1480
|
+
return o({
|
|
1481
|
+
mutationFn: async ({ token: n, huntGroupSid: t, skills: a }) => await r.tcn.createSession(n, t, a),
|
|
1483
1482
|
...e
|
|
1484
1483
|
});
|
|
1485
1484
|
}
|
|
1486
|
-
function
|
|
1487
|
-
return
|
|
1488
|
-
mutationFn: async ({ token:
|
|
1485
|
+
function Kt(e = {}) {
|
|
1486
|
+
return o({
|
|
1487
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.keepAlive(n, t),
|
|
1489
1488
|
...e
|
|
1490
1489
|
});
|
|
1491
1490
|
}
|
|
1492
|
-
function
|
|
1493
|
-
return
|
|
1494
|
-
mutationFn: async ({ token:
|
|
1491
|
+
function Vt(e = {}) {
|
|
1492
|
+
return o({
|
|
1493
|
+
mutationFn: async ({ token: n }) => await r.tcn.agentGetStatus(n),
|
|
1495
1494
|
...e
|
|
1496
1495
|
});
|
|
1497
1496
|
}
|
|
1498
|
-
function
|
|
1499
|
-
return
|
|
1500
|
-
mutationFn: async ({ token:
|
|
1497
|
+
function Et(e = {}) {
|
|
1498
|
+
return o({
|
|
1499
|
+
mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getHuntGroupAgentSettings(n, t),
|
|
1501
1500
|
...e
|
|
1502
1501
|
});
|
|
1503
1502
|
}
|
|
1504
|
-
function
|
|
1505
|
-
return
|
|
1506
|
-
mutationFn: async ({ token:
|
|
1503
|
+
function At(e = {}) {
|
|
1504
|
+
return o({
|
|
1505
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.dialManualPrepare(n, t),
|
|
1507
1506
|
...e
|
|
1508
1507
|
});
|
|
1509
1508
|
}
|
|
1510
|
-
function
|
|
1511
|
-
return
|
|
1512
|
-
mutationFn: async ({ token:
|
|
1509
|
+
function Gt(e = {}) {
|
|
1510
|
+
return o({
|
|
1511
|
+
mutationFn: async ({ token: n, call: t }) => await r.tcn.processManualDial(n, t),
|
|
1513
1512
|
...e
|
|
1514
1513
|
});
|
|
1515
1514
|
}
|
|
1516
|
-
function
|
|
1517
|
-
return
|
|
1518
|
-
mutationFn: async ({ token:
|
|
1519
|
-
t,
|
|
1515
|
+
function Bt(e = {}) {
|
|
1516
|
+
return o({
|
|
1517
|
+
mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: a, simpleCallData: u }) => await r.tcn.manualDialStart(
|
|
1520
1518
|
n,
|
|
1521
|
-
|
|
1522
|
-
|
|
1519
|
+
t,
|
|
1520
|
+
a,
|
|
1521
|
+
u
|
|
1523
1522
|
),
|
|
1524
1523
|
...e
|
|
1525
1524
|
});
|
|
1526
1525
|
}
|
|
1527
|
-
function
|
|
1528
|
-
return
|
|
1529
|
-
mutationFn: async ({ token:
|
|
1526
|
+
function Mt(e = {}) {
|
|
1527
|
+
return o({
|
|
1528
|
+
mutationFn: async ({ token: n, sessionSid: t, reason: a }) => await r.tcn.agentDisconnect(n, t, a),
|
|
1530
1529
|
...e
|
|
1531
1530
|
});
|
|
1532
1531
|
}
|
|
1533
|
-
function
|
|
1534
|
-
return
|
|
1535
|
-
mutationFn: async ({ token:
|
|
1532
|
+
function vt(e = {}) {
|
|
1533
|
+
return o({
|
|
1534
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentPause(n, t),
|
|
1536
1535
|
...e
|
|
1537
1536
|
});
|
|
1538
1537
|
}
|
|
1539
|
-
function
|
|
1540
|
-
return
|
|
1541
|
-
mutationFn: async ({ token:
|
|
1538
|
+
function Ot(e = {}) {
|
|
1539
|
+
return o({
|
|
1540
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentSetReady(n, t),
|
|
1542
1541
|
...e
|
|
1543
1542
|
});
|
|
1544
1543
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return
|
|
1547
|
-
mutationFn: async ({ token:
|
|
1544
|
+
function Ut(e = {}) {
|
|
1545
|
+
return o({
|
|
1546
|
+
mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentGetConnectedParty(n, t),
|
|
1548
1547
|
...e
|
|
1549
1548
|
});
|
|
1550
1549
|
}
|
|
1551
|
-
function
|
|
1552
|
-
return
|
|
1553
|
-
mutationFn: async ({ token:
|
|
1550
|
+
function Lt(e = {}) {
|
|
1551
|
+
return o({
|
|
1552
|
+
mutationFn: async ({ token: n, callSid: t }) => await r.tcn.getCallData(n, t),
|
|
1554
1553
|
...e
|
|
1555
1554
|
});
|
|
1556
1555
|
}
|
|
1557
|
-
function
|
|
1558
|
-
return
|
|
1559
|
-
mutationFn: async ({ token:
|
|
1556
|
+
function Qt(e = {}) {
|
|
1557
|
+
return o({
|
|
1558
|
+
mutationFn: async ({ token: n, sessionSid: t, holdType: a }) => await r.tcn.agentPutCallOnHold(n, t, a),
|
|
1560
1559
|
...e
|
|
1561
1560
|
});
|
|
1562
1561
|
}
|
|
1563
|
-
function
|
|
1564
|
-
return
|
|
1565
|
-
mutationFn: async ({ token:
|
|
1562
|
+
function Wt(e = {}) {
|
|
1563
|
+
return o({
|
|
1564
|
+
mutationFn: async ({ token: n, sessionSid: t, holdType: a }) => await r.tcn.agentGetCallFromHold(n, t, a),
|
|
1566
1565
|
...e
|
|
1567
1566
|
});
|
|
1568
1567
|
}
|
|
1569
|
-
function
|
|
1570
|
-
return
|
|
1571
|
-
mutationFn: async (
|
|
1568
|
+
function Ht(e = {}) {
|
|
1569
|
+
return o({
|
|
1570
|
+
mutationFn: async (n) => await r.tcn.ftpManualDialReport(n),
|
|
1572
1571
|
...e
|
|
1573
1572
|
});
|
|
1574
1573
|
}
|
|
1575
|
-
function
|
|
1576
|
-
return
|
|
1577
|
-
mutationFn: async (
|
|
1574
|
+
function _t(e = {}) {
|
|
1575
|
+
return o({
|
|
1576
|
+
mutationFn: async (n) => await r.templates.renderTemplate(n),
|
|
1578
1577
|
...e
|
|
1579
1578
|
});
|
|
1580
1579
|
}
|
|
1581
|
-
function
|
|
1582
|
-
const
|
|
1583
|
-
return
|
|
1584
|
-
queryKey: ["databox", "folder",
|
|
1580
|
+
function zt(e, n = {}) {
|
|
1581
|
+
const t = e?.trim();
|
|
1582
|
+
return s({
|
|
1583
|
+
queryKey: ["databox", "folder", t],
|
|
1585
1584
|
queryFn: async () => {
|
|
1586
|
-
if (!
|
|
1585
|
+
if (!t)
|
|
1587
1586
|
throw new Error("Folder ID is required");
|
|
1588
|
-
return await r.databox.getDataboxFolder({ folderId:
|
|
1587
|
+
return await r.databox.getDataboxFolder({ folderId: t });
|
|
1589
1588
|
},
|
|
1590
|
-
enabled: !!
|
|
1591
|
-
...
|
|
1589
|
+
enabled: !!t,
|
|
1590
|
+
...n
|
|
1592
1591
|
});
|
|
1593
1592
|
}
|
|
1594
|
-
function
|
|
1595
|
-
const
|
|
1596
|
-
return
|
|
1597
|
-
queryKey: ["databox", "folder",
|
|
1593
|
+
function Nt(e, n = {}) {
|
|
1594
|
+
const t = e?.trim();
|
|
1595
|
+
return s({
|
|
1596
|
+
queryKey: ["databox", "folder", t, "files"],
|
|
1598
1597
|
queryFn: async () => {
|
|
1599
|
-
if (!
|
|
1598
|
+
if (!t)
|
|
1600
1599
|
throw new Error("Folder ID is required");
|
|
1601
|
-
return await r.databox.getDataboxFolderFiles({ folderId:
|
|
1600
|
+
return await r.databox.getDataboxFolderFiles({ folderId: t });
|
|
1602
1601
|
},
|
|
1603
|
-
enabled: !!
|
|
1604
|
-
...
|
|
1602
|
+
enabled: !!t,
|
|
1603
|
+
...n
|
|
1605
1604
|
});
|
|
1606
1605
|
}
|
|
1607
|
-
function
|
|
1608
|
-
const
|
|
1609
|
-
return
|
|
1610
|
-
queryKey: ["databox", "folder",
|
|
1606
|
+
function jt(e, n = {}) {
|
|
1607
|
+
const t = e?.trim();
|
|
1608
|
+
return s({
|
|
1609
|
+
queryKey: ["databox", "folder", t, "datasets"],
|
|
1611
1610
|
queryFn: async () => {
|
|
1612
|
-
if (!
|
|
1611
|
+
if (!t)
|
|
1613
1612
|
throw new Error("Folder ID is required");
|
|
1614
|
-
return await r.databox.getDataboxFolderDatasets({ folderId:
|
|
1613
|
+
return await r.databox.getDataboxFolderDatasets({ folderId: t });
|
|
1615
1614
|
},
|
|
1616
|
-
enabled: !!
|
|
1617
|
-
...
|
|
1615
|
+
enabled: !!t,
|
|
1616
|
+
...n
|
|
1618
1617
|
});
|
|
1619
1618
|
}
|
|
1620
|
-
function
|
|
1621
|
-
const
|
|
1622
|
-
return
|
|
1623
|
-
queryKey: ["databox", "folder",
|
|
1619
|
+
function $t(e, n = {}) {
|
|
1620
|
+
const t = e?.trim();
|
|
1621
|
+
return s({
|
|
1622
|
+
queryKey: ["databox", "folder", t, "duplicates"],
|
|
1624
1623
|
queryFn: async () => {
|
|
1625
|
-
if (!
|
|
1624
|
+
if (!t)
|
|
1626
1625
|
throw new Error("Folder ID is required");
|
|
1627
1626
|
return await r.databox.getDataboxFolderDuplicates({
|
|
1628
|
-
folderId:
|
|
1627
|
+
folderId: t
|
|
1629
1628
|
});
|
|
1630
1629
|
},
|
|
1631
|
-
enabled: !!
|
|
1632
|
-
...
|
|
1630
|
+
enabled: !!t,
|
|
1631
|
+
...n
|
|
1633
1632
|
});
|
|
1634
1633
|
}
|
|
1635
|
-
function
|
|
1636
|
-
const
|
|
1637
|
-
return
|
|
1638
|
-
queryKey: ["dataset",
|
|
1634
|
+
function Jt(e, n = {}) {
|
|
1635
|
+
const t = e?.trim();
|
|
1636
|
+
return s({
|
|
1637
|
+
queryKey: ["dataset", t, "exceptions"],
|
|
1639
1638
|
queryFn: async () => {
|
|
1640
|
-
if (!
|
|
1639
|
+
if (!t)
|
|
1641
1640
|
throw new Error("Dataset ID is required");
|
|
1642
|
-
return await r.dataset.getDatasetExceptions({ datasetId:
|
|
1641
|
+
return await r.dataset.getDatasetExceptions({ datasetId: t });
|
|
1643
1642
|
},
|
|
1644
|
-
enabled: !!
|
|
1645
|
-
...
|
|
1643
|
+
enabled: !!t,
|
|
1644
|
+
...n
|
|
1646
1645
|
});
|
|
1647
1646
|
}
|
|
1648
|
-
function
|
|
1649
|
-
const
|
|
1650
|
-
return
|
|
1651
|
-
queryKey: ["dataset",
|
|
1647
|
+
function Xt(e, n, t = {}) {
|
|
1648
|
+
const a = e?.trim();
|
|
1649
|
+
return s({
|
|
1650
|
+
queryKey: ["dataset", a, "duplicates", n ?? null],
|
|
1652
1651
|
queryFn: async () => {
|
|
1653
|
-
if (!
|
|
1652
|
+
if (!a)
|
|
1654
1653
|
throw new Error("Dataset ID is required");
|
|
1655
1654
|
return await r.dataset.getDatasetDuplicates({
|
|
1656
|
-
datasetId:
|
|
1657
|
-
group:
|
|
1655
|
+
datasetId: a,
|
|
1656
|
+
group: n
|
|
1658
1657
|
});
|
|
1659
1658
|
},
|
|
1660
|
-
enabled: !!
|
|
1661
|
-
...
|
|
1659
|
+
enabled: !!a,
|
|
1660
|
+
...t
|
|
1662
1661
|
});
|
|
1663
1662
|
}
|
|
1664
|
-
function
|
|
1665
|
-
const
|
|
1666
|
-
return
|
|
1667
|
-
queryKey: ["databox", "folder",
|
|
1663
|
+
function Yt(e, n = {}) {
|
|
1664
|
+
const t = e?.trim();
|
|
1665
|
+
return s({
|
|
1666
|
+
queryKey: ["databox", "folder", t, "schema"],
|
|
1668
1667
|
queryFn: async () => {
|
|
1669
|
-
if (!
|
|
1668
|
+
if (!t)
|
|
1670
1669
|
throw new Error("Folder ID is required");
|
|
1671
|
-
return await r.databox.getDataboxFolderSchema({ folderId:
|
|
1670
|
+
return await r.databox.getDataboxFolderSchema({ folderId: t });
|
|
1672
1671
|
},
|
|
1673
|
-
enabled: !!
|
|
1674
|
-
...
|
|
1672
|
+
enabled: !!t,
|
|
1673
|
+
...n
|
|
1675
1674
|
});
|
|
1676
1675
|
}
|
|
1677
|
-
function
|
|
1678
|
-
const
|
|
1679
|
-
return
|
|
1680
|
-
queryKey: ["databox", "folder",
|
|
1676
|
+
function Zt(e, n = {}) {
|
|
1677
|
+
const t = e?.trim();
|
|
1678
|
+
return s({
|
|
1679
|
+
queryKey: ["databox", "folder", t, "schema", "history"],
|
|
1681
1680
|
queryFn: async () => {
|
|
1682
|
-
if (!
|
|
1681
|
+
if (!t)
|
|
1683
1682
|
throw new Error("Folder ID is required");
|
|
1684
|
-
return await r.databox.getDataboxSchemaHistory({ folderId:
|
|
1683
|
+
return await r.databox.getDataboxSchemaHistory({ folderId: t });
|
|
1685
1684
|
},
|
|
1686
|
-
enabled: !!
|
|
1687
|
-
...
|
|
1685
|
+
enabled: !!t,
|
|
1686
|
+
...n
|
|
1688
1687
|
});
|
|
1689
1688
|
}
|
|
1690
|
-
function
|
|
1691
|
-
const
|
|
1692
|
-
return
|
|
1693
|
-
queryKey: ["databox", "folder",
|
|
1689
|
+
function er(e, n = {}) {
|
|
1690
|
+
const t = e?.trim();
|
|
1691
|
+
return s({
|
|
1692
|
+
queryKey: ["databox", "folder", t, "trash"],
|
|
1694
1693
|
queryFn: async () => {
|
|
1695
|
-
if (!
|
|
1694
|
+
if (!t)
|
|
1696
1695
|
throw new Error("Folder ID is required");
|
|
1697
|
-
return await r.databox.getDataboxTrashFiles({ folderId:
|
|
1696
|
+
return await r.databox.getDataboxTrashFiles({ folderId: t });
|
|
1698
1697
|
},
|
|
1699
|
-
enabled: !!
|
|
1700
|
-
...
|
|
1698
|
+
enabled: !!t,
|
|
1699
|
+
...n
|
|
1701
1700
|
});
|
|
1702
1701
|
}
|
|
1703
|
-
function
|
|
1704
|
-
const
|
|
1705
|
-
return
|
|
1706
|
-
queryKey: ["databox", "file",
|
|
1702
|
+
function nr(e, n = {}) {
|
|
1703
|
+
const t = e?.trim();
|
|
1704
|
+
return s({
|
|
1705
|
+
queryKey: ["databox", "file", t],
|
|
1707
1706
|
queryFn: async () => {
|
|
1708
|
-
if (!
|
|
1707
|
+
if (!t)
|
|
1709
1708
|
throw new Error("File ID is required");
|
|
1710
|
-
return await r.databox.getDataboxFile({ fileId:
|
|
1709
|
+
return await r.databox.getDataboxFile({ fileId: t });
|
|
1711
1710
|
},
|
|
1712
|
-
enabled: !!
|
|
1713
|
-
...
|
|
1711
|
+
enabled: !!t,
|
|
1712
|
+
...n
|
|
1714
1713
|
});
|
|
1715
1714
|
}
|
|
1716
|
-
function
|
|
1717
|
-
const
|
|
1718
|
-
return
|
|
1719
|
-
queryKey: ["databox", "file",
|
|
1715
|
+
function tr(e, n = {}) {
|
|
1716
|
+
const t = e?.trim();
|
|
1717
|
+
return s({
|
|
1718
|
+
queryKey: ["databox", "file", t, "status"],
|
|
1720
1719
|
queryFn: async () => {
|
|
1721
|
-
if (!
|
|
1720
|
+
if (!t)
|
|
1722
1721
|
throw new Error("File ID is required");
|
|
1723
|
-
return await r.databox.getDataboxFileStatus({ fileId:
|
|
1722
|
+
return await r.databox.getDataboxFileStatus({ fileId: t });
|
|
1724
1723
|
},
|
|
1725
|
-
enabled: !!
|
|
1726
|
-
...
|
|
1724
|
+
enabled: !!t,
|
|
1725
|
+
...n
|
|
1727
1726
|
});
|
|
1728
1727
|
}
|
|
1729
|
-
function
|
|
1730
|
-
const
|
|
1731
|
-
return
|
|
1732
|
-
queryKey: ["databox", "file",
|
|
1728
|
+
function rr(e, n = {}) {
|
|
1729
|
+
const t = e?.trim();
|
|
1730
|
+
return s({
|
|
1731
|
+
queryKey: ["databox", "file", t, "runs"],
|
|
1733
1732
|
queryFn: async () => {
|
|
1734
|
-
if (!
|
|
1733
|
+
if (!t)
|
|
1735
1734
|
throw new Error("File ID is required");
|
|
1736
|
-
return await r.databox.getDataboxFileRuns({ fileId:
|
|
1735
|
+
return await r.databox.getDataboxFileRuns({ fileId: t });
|
|
1737
1736
|
},
|
|
1738
|
-
enabled: !!
|
|
1739
|
-
...
|
|
1737
|
+
enabled: !!t,
|
|
1738
|
+
...n
|
|
1740
1739
|
});
|
|
1741
1740
|
}
|
|
1742
|
-
function
|
|
1743
|
-
const
|
|
1744
|
-
return
|
|
1745
|
-
queryKey: ["databox", "file",
|
|
1741
|
+
function ar(e, n = {}) {
|
|
1742
|
+
const t = e?.trim();
|
|
1743
|
+
return s({
|
|
1744
|
+
queryKey: ["databox", "file", t, "download-url"],
|
|
1746
1745
|
queryFn: async () => {
|
|
1747
|
-
if (!
|
|
1746
|
+
if (!t)
|
|
1748
1747
|
throw new Error("File ID is required");
|
|
1749
|
-
return await r.databox.getDataboxFileDownloadUrl({ fileId:
|
|
1748
|
+
return await r.databox.getDataboxFileDownloadUrl({ fileId: t });
|
|
1750
1749
|
},
|
|
1751
|
-
enabled: !!
|
|
1752
|
-
...
|
|
1750
|
+
enabled: !!t,
|
|
1751
|
+
...n
|
|
1753
1752
|
});
|
|
1754
1753
|
}
|
|
1755
|
-
function
|
|
1756
|
-
return
|
|
1757
|
-
mutationFn: async (
|
|
1754
|
+
function or(e = {}) {
|
|
1755
|
+
return o({
|
|
1756
|
+
mutationFn: async (n) => await r.databox.dropFileToDatabox(n),
|
|
1758
1757
|
...e
|
|
1759
1758
|
});
|
|
1760
1759
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1763
|
-
mutationFn: async (
|
|
1760
|
+
function ur(e = {}) {
|
|
1761
|
+
return o({
|
|
1762
|
+
mutationFn: async (n) => await r.databox.runDataboxFolder(n),
|
|
1764
1763
|
...e
|
|
1765
1764
|
});
|
|
1766
1765
|
}
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1769
|
-
mutationFn: async (
|
|
1766
|
+
function sr(e = {}) {
|
|
1767
|
+
return o({
|
|
1768
|
+
mutationFn: async (n) => await r.databox.updateDataboxFolderSchema(n),
|
|
1770
1769
|
...e
|
|
1771
1770
|
});
|
|
1772
1771
|
}
|
|
1773
|
-
function
|
|
1774
|
-
return
|
|
1775
|
-
mutationFn: async (
|
|
1772
|
+
function ir(e = {}) {
|
|
1773
|
+
return o({
|
|
1774
|
+
mutationFn: async (n) => await r.databox.trashDataboxFiles(n),
|
|
1776
1775
|
...e
|
|
1777
1776
|
});
|
|
1778
1777
|
}
|
|
1779
|
-
function
|
|
1780
|
-
return
|
|
1781
|
-
mutationFn: async (
|
|
1778
|
+
function cr(e = {}) {
|
|
1779
|
+
return o({
|
|
1780
|
+
mutationFn: async (n) => await r.databox.restoreDataboxFile(n),
|
|
1782
1781
|
...e
|
|
1783
1782
|
});
|
|
1784
1783
|
}
|
|
1785
|
-
function
|
|
1786
|
-
return
|
|
1787
|
-
mutationFn: async (
|
|
1784
|
+
function lr(e = {}) {
|
|
1785
|
+
return o({
|
|
1786
|
+
mutationFn: async (n) => await r.databox.permanentDeleteDataboxFiles(n),
|
|
1787
|
+
...e
|
|
1788
|
+
});
|
|
1789
|
+
}
|
|
1790
|
+
function yr(e, n = {}) {
|
|
1791
|
+
const t = y(async () => await r.periodManagement.listFiscalCalendars(e)), a = d({
|
|
1792
|
+
queryKey: ["periodManagement", "fiscalCalendars", e ?? "all"],
|
|
1793
|
+
queryFn: t,
|
|
1794
|
+
options: n
|
|
1795
|
+
});
|
|
1796
|
+
return s(a);
|
|
1797
|
+
}
|
|
1798
|
+
function dr(e, n = {}) {
|
|
1799
|
+
const t = !!e, a = y(async () => {
|
|
1800
|
+
if (!e)
|
|
1801
|
+
throw new Error("Fiscal calendar id is required");
|
|
1802
|
+
return await r.periodManagement.getFiscalCalendar(e);
|
|
1803
|
+
}), u = d({
|
|
1804
|
+
queryKey: ["periodManagement", "fiscalCalendar", e],
|
|
1805
|
+
queryFn: a,
|
|
1806
|
+
enabled: t,
|
|
1807
|
+
options: n
|
|
1808
|
+
});
|
|
1809
|
+
return s(u);
|
|
1810
|
+
}
|
|
1811
|
+
function gr(e = {}) {
|
|
1812
|
+
return o({
|
|
1813
|
+
mutationFn: async (n) => await r.periodManagement.createFiscalCalendar(n),
|
|
1814
|
+
...e
|
|
1815
|
+
});
|
|
1816
|
+
}
|
|
1817
|
+
function fr(e = {}) {
|
|
1818
|
+
return o({
|
|
1819
|
+
mutationFn: async ({ id: n, params: t }) => await r.periodManagement.updateFiscalCalendar(n, t),
|
|
1820
|
+
...e
|
|
1821
|
+
});
|
|
1822
|
+
}
|
|
1823
|
+
function mr(e = {}) {
|
|
1824
|
+
return o({
|
|
1825
|
+
mutationFn: async (n) => await r.periodManagement.deleteFiscalCalendar(n),
|
|
1788
1826
|
...e
|
|
1789
1827
|
});
|
|
1790
1828
|
}
|
|
1829
|
+
function wr(e, n = {}) {
|
|
1830
|
+
const t = y(async () => await r.periodManagement.listHolidayCalendars(e)), a = d({
|
|
1831
|
+
queryKey: ["periodManagement", "holidayCalendars", e ?? "all"],
|
|
1832
|
+
queryFn: t,
|
|
1833
|
+
options: n
|
|
1834
|
+
});
|
|
1835
|
+
return s(a);
|
|
1836
|
+
}
|
|
1837
|
+
function Fr(e, n = {}) {
|
|
1838
|
+
const t = !!e, a = y(async () => {
|
|
1839
|
+
if (!e)
|
|
1840
|
+
throw new Error("Holiday calendar id is required");
|
|
1841
|
+
return await r.periodManagement.getHolidayCalendar(e);
|
|
1842
|
+
}), u = d({
|
|
1843
|
+
queryKey: ["periodManagement", "holidayCalendar", e],
|
|
1844
|
+
queryFn: a,
|
|
1845
|
+
enabled: t,
|
|
1846
|
+
options: n
|
|
1847
|
+
});
|
|
1848
|
+
return s(u);
|
|
1849
|
+
}
|
|
1850
|
+
function pr(e = {}) {
|
|
1851
|
+
return o({
|
|
1852
|
+
mutationFn: async (n) => await r.periodManagement.createHolidayCalendar(n),
|
|
1853
|
+
...e
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
function qr(e = {}) {
|
|
1857
|
+
return o({
|
|
1858
|
+
mutationFn: async ({ id: n, params: t }) => await r.periodManagement.updateHolidayCalendar(n, t),
|
|
1859
|
+
...e
|
|
1860
|
+
});
|
|
1861
|
+
}
|
|
1862
|
+
function br(e = {}) {
|
|
1863
|
+
return o({
|
|
1864
|
+
mutationFn: async (n) => await r.periodManagement.deleteHolidayCalendar(n),
|
|
1865
|
+
...e
|
|
1866
|
+
});
|
|
1867
|
+
}
|
|
1868
|
+
function hr(e, n = {}) {
|
|
1869
|
+
const t = !!e, a = y(async () => {
|
|
1870
|
+
if (!e)
|
|
1871
|
+
throw new Error("Holiday calendar id is required");
|
|
1872
|
+
return await r.periodManagement.listHolidays(e);
|
|
1873
|
+
}), u = d({
|
|
1874
|
+
queryKey: ["periodManagement", "holidayCalendar", e, "holidays"],
|
|
1875
|
+
queryFn: a,
|
|
1876
|
+
enabled: t,
|
|
1877
|
+
options: n
|
|
1878
|
+
});
|
|
1879
|
+
return s(u);
|
|
1880
|
+
}
|
|
1881
|
+
function Dr(e = {}) {
|
|
1882
|
+
return o({
|
|
1883
|
+
mutationFn: async ({ id: n, items: t }) => await r.periodManagement.importHolidays(n, t),
|
|
1884
|
+
...e
|
|
1885
|
+
});
|
|
1886
|
+
}
|
|
1887
|
+
function ee(e, n) {
|
|
1888
|
+
return n.split(".").reduce(
|
|
1889
|
+
(t, a) => t && typeof t == "object" ? t[a] : void 0,
|
|
1890
|
+
e
|
|
1891
|
+
);
|
|
1892
|
+
}
|
|
1893
|
+
function Tr(e, n = {}) {
|
|
1894
|
+
const t = s({
|
|
1895
|
+
...n,
|
|
1896
|
+
queryKey: ["pipeline", "list"],
|
|
1897
|
+
queryFn: async () => r.pipeline.getPipelineList()
|
|
1898
|
+
});
|
|
1899
|
+
return {
|
|
1900
|
+
pipelines: D(() => {
|
|
1901
|
+
const u = t.data ?? [];
|
|
1902
|
+
return e?.key ? u.filter((i) => ee(i, e.key) === e.value) : u;
|
|
1903
|
+
}, [t.data, e?.key, e?.value]),
|
|
1904
|
+
isLoading: t.isLoading,
|
|
1905
|
+
error: t.error,
|
|
1906
|
+
refetch: t.refetch
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
function ne(e, n = {}) {
|
|
1910
|
+
const t = e?.trim(), a = s({
|
|
1911
|
+
...n,
|
|
1912
|
+
queryKey: ["pipeline", "runs", t],
|
|
1913
|
+
queryFn: async () => r.pipeline.getPipelineRunStatus(t),
|
|
1914
|
+
enabled: !!t && (n.enabled ?? !0)
|
|
1915
|
+
});
|
|
1916
|
+
return {
|
|
1917
|
+
runs: a.data ?? [],
|
|
1918
|
+
isLoading: a.isLoading,
|
|
1919
|
+
error: a.error,
|
|
1920
|
+
refetch: a.refetch
|
|
1921
|
+
};
|
|
1922
|
+
}
|
|
1923
|
+
function Rr(e, n = {}) {
|
|
1924
|
+
const { runs: t, isLoading: a, error: u, refetch: i } = ne(e, n);
|
|
1925
|
+
return { run: D(() => {
|
|
1926
|
+
const l = t.filter((f) => f.status === "SUCCEEDED");
|
|
1927
|
+
if (l.length)
|
|
1928
|
+
return l.reduce(
|
|
1929
|
+
(f, m) => (m.startedAt ?? "") > (f.startedAt ?? "") ? m : f
|
|
1930
|
+
);
|
|
1931
|
+
}, [t]), isLoading: a, error: u, refetch: i };
|
|
1932
|
+
}
|
|
1933
|
+
function kr(e, n, t = {}) {
|
|
1934
|
+
const a = e?.trim(), u = n?.trim(), i = (t.enabled ?? !0) && !!a && !!u, c = s({
|
|
1935
|
+
queryKey: ["pipeline", "definition", a],
|
|
1936
|
+
queryFn: async () => r.pipeline.getPipelineDefinition(a),
|
|
1937
|
+
enabled: i
|
|
1938
|
+
}), l = D(
|
|
1939
|
+
() => c.data?.nodes ?? [],
|
|
1940
|
+
[c.data]
|
|
1941
|
+
), f = D(
|
|
1942
|
+
() => c.data?.edges ?? [],
|
|
1943
|
+
[c.data]
|
|
1944
|
+
), m = (h) => l.find((k) => k.id === h)?.data, w = s({
|
|
1945
|
+
queryKey: ["pipeline", "runs", a],
|
|
1946
|
+
queryFn: async () => r.pipeline.getPipelineRunStatus(a),
|
|
1947
|
+
enabled: i
|
|
1948
|
+
}), q = D(
|
|
1949
|
+
() => (w.data ?? []).find((h) => h.id === u),
|
|
1950
|
+
[w.data, u]
|
|
1951
|
+
), [F, p] = T(!1), b = q?.datasetId, R = s({
|
|
1952
|
+
queryKey: ["pipeline", "output", u, b],
|
|
1953
|
+
queryFn: async () => {
|
|
1954
|
+
const h = r.pipeline.buildDatasetDefinition(b), [k, C] = await Promise.all([
|
|
1955
|
+
r.definition.runDefinition({ inputs: {}, definition: h, variable: b }),
|
|
1956
|
+
r.definition.getDescription({ inputs: {}, definition: h, variable: b })
|
|
1957
|
+
]), E = Array.isArray(C) ? C : C?.data ?? [];
|
|
1958
|
+
return {
|
|
1959
|
+
rows: k ?? [],
|
|
1960
|
+
columns: E
|
|
1961
|
+
};
|
|
1962
|
+
},
|
|
1963
|
+
enabled: i && F && !!b
|
|
1964
|
+
}), I = c.isLoading || w.isLoading, K = c.error ?? w.error, V = () => {
|
|
1965
|
+
c.refetch(), w.refetch(), F && b && R.refetch();
|
|
1966
|
+
};
|
|
1967
|
+
return {
|
|
1968
|
+
run: q,
|
|
1969
|
+
nodes: l,
|
|
1970
|
+
edges: f,
|
|
1971
|
+
isCurrentDefinition: !0,
|
|
1972
|
+
// run carries no snapshot; graph reflects the current definition
|
|
1973
|
+
isLoading: I,
|
|
1974
|
+
error: K,
|
|
1975
|
+
getNodeProperties: m,
|
|
1976
|
+
output: R.data,
|
|
1977
|
+
isOutputLoading: R.isLoading && F,
|
|
1978
|
+
outputError: R.error,
|
|
1979
|
+
loadOutput: () => p(!0),
|
|
1980
|
+
refetch: V
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1983
|
+
function Cr(e = {}) {
|
|
1984
|
+
const n = s({
|
|
1985
|
+
...e,
|
|
1986
|
+
queryKey: ["workingPaper", "list"],
|
|
1987
|
+
queryFn: async () => r.workingPaper.getWorkingPapers()
|
|
1988
|
+
});
|
|
1989
|
+
return {
|
|
1990
|
+
workingPapers: n.data ?? [],
|
|
1991
|
+
isLoading: n.isLoading,
|
|
1992
|
+
error: n.error,
|
|
1993
|
+
refetch: n.refetch
|
|
1994
|
+
};
|
|
1995
|
+
}
|
|
1996
|
+
function xr(e, n = {}) {
|
|
1997
|
+
const t = e?.trim(), a = g(), u = s({
|
|
1998
|
+
...n,
|
|
1999
|
+
queryKey: ["workingPaper", "detail", t],
|
|
2000
|
+
queryFn: async () => r.workingPaper.getWorkingPaper(t),
|
|
2001
|
+
enabled: !!t && (n.enabled ?? !0)
|
|
2002
|
+
}), i = o({
|
|
2003
|
+
mutationFn: async (l) => r.workingPaper.updateWorkingPaper(t, l),
|
|
2004
|
+
onSuccess: () => {
|
|
2005
|
+
a.invalidateQueries({ queryKey: ["workingPaper", "detail", t] }), a.invalidateQueries({ queryKey: ["workingPaper", "list"] });
|
|
2006
|
+
}
|
|
2007
|
+
}), c = o({
|
|
2008
|
+
mutationFn: async () => r.workingPaper.deleteWorkingPaper(t),
|
|
2009
|
+
onSuccess: () => {
|
|
2010
|
+
a.invalidateQueries({ queryKey: ["workingPaper", "list"] });
|
|
2011
|
+
}
|
|
2012
|
+
});
|
|
2013
|
+
return {
|
|
2014
|
+
paper: u.data,
|
|
2015
|
+
sheets: u.data?.sheets ?? [],
|
|
2016
|
+
isLoading: u.isLoading,
|
|
2017
|
+
error: u.error,
|
|
2018
|
+
refetch: u.refetch,
|
|
2019
|
+
save: (l) => i.mutateAsync(l),
|
|
2020
|
+
isSaving: i.isPending,
|
|
2021
|
+
remove: () => c.mutateAsync(),
|
|
2022
|
+
isDeleting: c.isPending
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2025
|
+
function Pr() {
|
|
2026
|
+
const e = g();
|
|
2027
|
+
return o({
|
|
2028
|
+
mutationFn: async (n) => r.workingPaper.createWorkingPaper(n),
|
|
2029
|
+
onSuccess: () => e.invalidateQueries({ queryKey: ["workingPaper", "list"] })
|
|
2030
|
+
});
|
|
2031
|
+
}
|
|
2032
|
+
function Sr(e, n = {}, t = {}) {
|
|
2033
|
+
const a = e?.inputTableId?.trim(), u = e?.viewId, i = e?.limit, c = s({
|
|
2034
|
+
...n,
|
|
2035
|
+
queryKey: ["workingPaper", "inputTableSheet", "views", a],
|
|
2036
|
+
queryFn: async () => r.statement.getViewsBySheetId(a),
|
|
2037
|
+
enabled: !!a && (n.enabled ?? !0)
|
|
2038
|
+
}), l = s({
|
|
2039
|
+
...t,
|
|
2040
|
+
queryKey: ["workingPaper", "inputTableSheet", "rows", a, u, i],
|
|
2041
|
+
queryFn: async () => r.inputTable.getRows(a, {
|
|
2042
|
+
...u ? { view_id: u } : {},
|
|
2043
|
+
...i ? { limit: i } : {}
|
|
2044
|
+
}),
|
|
2045
|
+
enabled: !!a && (t.enabled ?? !0)
|
|
2046
|
+
}), f = c.data ?? [], m = l.data;
|
|
2047
|
+
return {
|
|
2048
|
+
views: f,
|
|
2049
|
+
rows: m?.data ?? [],
|
|
2050
|
+
totalCount: m?.total_count ?? 0,
|
|
2051
|
+
isLoading: c.isLoading || l.isLoading,
|
|
2052
|
+
error: c.error ?? l.error,
|
|
2053
|
+
refetch: () => {
|
|
2054
|
+
c.refetch(), l.refetch();
|
|
2055
|
+
}
|
|
2056
|
+
};
|
|
2057
|
+
}
|
|
2058
|
+
function Ir(e) {
|
|
2059
|
+
const [n, t] = T(
|
|
2060
|
+
() => e?.definition ?? (e?.datasetId ? r.workingPaper.createFxDatasetDefinition(e.datasetId, e.columns ?? []) : void 0)
|
|
2061
|
+
), a = o({
|
|
2062
|
+
mutationFn: async () => {
|
|
2063
|
+
if (!n) throw { message: "No fx definition to run", status: 400 };
|
|
2064
|
+
const u = r.workingPaper.FX_RESULT_VARIABLE, [i, c] = await Promise.all([
|
|
2065
|
+
r.definition.runDefinition({ inputs: {}, definition: n, variable: u }),
|
|
2066
|
+
r.definition.getDescription({ inputs: {}, definition: n, variable: u })
|
|
2067
|
+
]), l = Array.isArray(c) ? c : c?.data ?? [];
|
|
2068
|
+
return { rows: i ?? [], columns: l };
|
|
2069
|
+
}
|
|
2070
|
+
});
|
|
2071
|
+
return {
|
|
2072
|
+
definition: n,
|
|
2073
|
+
setDefinition: t,
|
|
2074
|
+
reset: (u, i) => t(r.workingPaper.createFxDatasetDefinition(u, i ?? [])),
|
|
2075
|
+
addFilter: (u, i) => t((c) => r.workingPaper.addRuleFilter(c, u, i)),
|
|
2076
|
+
addSort: (u, i, c) => t((l) => r.workingPaper.addSort(l, u, i, c)),
|
|
2077
|
+
addMetric: (u, i, c) => t((l) => r.workingPaper.addMetric(l, u, i, c)),
|
|
2078
|
+
addPivot: (u, i) => t((c) => r.workingPaper.addPivot(c, u, i)),
|
|
2079
|
+
addColumn: (u, i, c) => t((l) => r.workingPaper.addColumn(l, u, i, c)),
|
|
2080
|
+
run: () => a.mutateAsync(),
|
|
2081
|
+
result: a.data,
|
|
2082
|
+
isRunning: a.isPending,
|
|
2083
|
+
runError: a.error
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
1791
2086
|
export {
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
2087
|
+
Ar as ReactQueryDevtools,
|
|
2088
|
+
U as WorkflowStatus,
|
|
2089
|
+
re as reactQuery,
|
|
2090
|
+
jn as useBulkCheckCustomPermissions,
|
|
2091
|
+
zn as useBulkUpdateCustomObjectPermissions,
|
|
2092
|
+
mt as useCancelInboxItem,
|
|
2093
|
+
pt as useCancelInboxItemsByKey,
|
|
2094
|
+
Nn as useCheckCustomPermissions,
|
|
2095
|
+
me as useCheckSubscriptionStatus,
|
|
2096
|
+
dt as useClaimInboxItem,
|
|
2097
|
+
gt as useCompleteInboxItem,
|
|
2098
|
+
Ft as useCompleteInboxItemsByKey,
|
|
2099
|
+
an as useCreateAuditLog,
|
|
2100
|
+
ht as useCreateConversation,
|
|
2101
|
+
gr as useCreateFiscalCalendar,
|
|
2102
|
+
pr as useCreateHolidayCalendar,
|
|
2103
|
+
ut as useCreateInboxItem,
|
|
2104
|
+
Yn as useCreateInboxItemPerUser,
|
|
2105
|
+
nt as useCreateInboxType,
|
|
2106
|
+
tn as useCreateOrUpdateForm,
|
|
2107
|
+
Vn as useCreateOrUpdateProcessTreeTrigger,
|
|
2108
|
+
W as useCreateReconV2,
|
|
2109
|
+
we as useCreateStatementRun,
|
|
2110
|
+
ie as useCreateThread,
|
|
2111
|
+
Pr as useCreateWorkingPaper,
|
|
2112
|
+
Wn as useCustomAuthzModel,
|
|
2113
|
+
Fe as useDataset,
|
|
2114
|
+
se as useDatasetSample,
|
|
2115
|
+
de as useDeleteComment,
|
|
2116
|
+
mr as useDeleteFiscalCalendar,
|
|
2117
|
+
br as useDeleteHolidayCalendar,
|
|
2118
|
+
rt as useDeleteInboxType,
|
|
2119
|
+
Mn as useDeleteProcessTreeTrigger,
|
|
2120
|
+
xn as useDeleteProcessTrigger,
|
|
2121
|
+
sn as useDeleteReconV2,
|
|
2122
|
+
ve as useDeleteRow,
|
|
2123
|
+
yt as useDismissInboxItem,
|
|
2124
|
+
_e as useDocumentPermissions,
|
|
2125
|
+
or as useDropFileToDatabox,
|
|
2126
|
+
Kn as useExecuteNow,
|
|
2127
|
+
En as useExecuteProcessTreeTrigger,
|
|
2128
|
+
Ne as useFileDownload,
|
|
2129
|
+
ze as useFileUpload,
|
|
2130
|
+
Tt as useFilterMessagesBySenderId,
|
|
2131
|
+
Ir as useFxDefinitionSheet,
|
|
2132
|
+
qt as useGetAllConversations,
|
|
2133
|
+
Dn as useGetAllHttpTriggers,
|
|
2134
|
+
$n as useGetAllInboxItems,
|
|
2135
|
+
un as useGetAllRecon,
|
|
2136
|
+
z as useGetAllReconV2,
|
|
2137
|
+
on as useGetAllTemplatedPipelines,
|
|
2138
|
+
hn as useGetAllUsers,
|
|
2139
|
+
rn as useGetAuditLogs,
|
|
2140
|
+
ce as useGetCommentsByThreadId,
|
|
2141
|
+
bt as useGetConversation,
|
|
2142
|
+
nr as useGetDataboxFile,
|
|
2143
|
+
ar as useGetDataboxFileDownloadUrl,
|
|
2144
|
+
rr as useGetDataboxFileRuns,
|
|
2145
|
+
tr as useGetDataboxFileStatus,
|
|
2146
|
+
zt as useGetDataboxFolder,
|
|
2147
|
+
jt as useGetDataboxFolderDatasets,
|
|
2148
|
+
$t as useGetDataboxFolderDuplicates,
|
|
2149
|
+
Nt as useGetDataboxFolderFiles,
|
|
2150
|
+
Yt as useGetDataboxFolderSchema,
|
|
2151
|
+
Zt as useGetDataboxSchemaHistory,
|
|
2152
|
+
er as useGetDataboxTrashFiles,
|
|
2153
|
+
Xt as useGetDatasetDuplicates,
|
|
2154
|
+
Jt as useGetDatasetExceptions,
|
|
2155
|
+
pe as useGetDatasets,
|
|
2156
|
+
he as useGetFileByFolderIdAndName,
|
|
2157
|
+
be as useGetFileUrlByFileId,
|
|
2158
|
+
dr as useGetFiscalCalendar,
|
|
2159
|
+
nn as useGetFormById,
|
|
2160
|
+
en as useGetFormData,
|
|
2161
|
+
Ze as useGetFormSchema,
|
|
2162
|
+
Fr as useGetHolidayCalendar,
|
|
2163
|
+
ot as useGetInboxItem,
|
|
2164
|
+
et as useGetInboxType,
|
|
2165
|
+
Ae as useGetInputTables,
|
|
2166
|
+
Qn as useGetProcessTreeRunByInstanceId,
|
|
2167
|
+
Un as useGetProcessTreeRunsBySheetId,
|
|
2168
|
+
Ln as useGetProcessTreeRunsBySheetIdPaginated,
|
|
2169
|
+
vn as useGetProcessTreeTrigger,
|
|
2170
|
+
On as useGetProcessTreeTriggersBySheetId,
|
|
2171
|
+
De as useGetPublishedWorkbookById,
|
|
2172
|
+
gn as useGetReconV2CleanResult,
|
|
2173
|
+
fn as useGetReconV2Diff,
|
|
2174
|
+
mn as useGetReconV2Explanation,
|
|
2175
|
+
yn as useGetReconV2ProfileResult,
|
|
2176
|
+
j as useGetReconV2RunResult,
|
|
2177
|
+
N as useGetReconV2Runs,
|
|
2178
|
+
$ as useGetReconV2SmartResult,
|
|
2179
|
+
Y as useGetReconV2Workflow,
|
|
2180
|
+
Te as useGetRunResultById,
|
|
2181
|
+
Re as useGetRunsByViewId,
|
|
2182
|
+
In as useGetScheduleStatus,
|
|
2183
|
+
ke as useGetStatementData,
|
|
2184
|
+
Ce as useGetTableById,
|
|
2185
|
+
je as useGetTaskDetails,
|
|
2186
|
+
kn as useGetTriggersBySheet,
|
|
2187
|
+
xe as useGetViewById,
|
|
2188
|
+
Pe as useGetViewsBySheetId,
|
|
2189
|
+
qe as useGetVirtualDatasets,
|
|
2190
|
+
$e as useGetWorkbookDetails,
|
|
2191
|
+
Se as useGetWorkbooksByType,
|
|
2192
|
+
Ie as useGetWorkflowInstanceStatusById,
|
|
2193
|
+
Ke as useGetWorksheets,
|
|
2194
|
+
Ve as useGetWorksheetsByType,
|
|
2195
|
+
Dr as useImportHolidays,
|
|
2196
|
+
Ee as useInputTable,
|
|
2197
|
+
Be as useInsertRow,
|
|
2198
|
+
Rr as useLastSuccessfulPipelineRun,
|
|
2199
|
+
yr as useListFiscalCalendars,
|
|
2200
|
+
wr as useListHolidayCalendars,
|
|
2201
|
+
hr as useListHolidays,
|
|
2202
|
+
Zn as useListInboxTypes,
|
|
2203
|
+
at as useListMyInboxItems,
|
|
2204
|
+
Gn as useLogProcessTreeRun,
|
|
2205
|
+
it as useMarkInboxItemsRead,
|
|
2206
|
+
ct as useMarkInboxItemsUnread,
|
|
2207
|
+
Jn as useMarkItemAsRead,
|
|
2208
|
+
Xn as useMarkItemAsUnread,
|
|
2209
|
+
Tn as useMarkTaskDone,
|
|
2210
|
+
ue as useMetric,
|
|
2211
|
+
Pn as usePauseSchedule,
|
|
2212
|
+
lr as usePermanentDeleteDataboxFiles,
|
|
2213
|
+
Tr as usePipelineList,
|
|
2214
|
+
kr as usePipelineRunDetail,
|
|
2215
|
+
ne as usePipelineRuns,
|
|
2216
|
+
le as usePostComment,
|
|
2217
|
+
Xe as usePublishWorkbook,
|
|
2218
|
+
wt as useReassignInboxItem,
|
|
2219
|
+
Rn as useReassignTask,
|
|
2220
|
+
Fn as useReconV2Detail,
|
|
2221
|
+
pn as useReconV2Editor,
|
|
2222
|
+
wn as useReconV2List,
|
|
2223
|
+
bn as useReconV2Results,
|
|
2224
|
+
qn as useReconV2RunController,
|
|
2225
|
+
X as useReconV2RunStatus,
|
|
2226
|
+
cn as useReconV2Templates,
|
|
2227
|
+
Hn as useRegisterCustomAuthzModel,
|
|
2228
|
+
Cn as useRegisterProcessTrigger,
|
|
2229
|
+
ft as useReleaseInboxItem,
|
|
2230
|
+
_t as useRenderTemplate,
|
|
2231
|
+
Dt as useReplyToConversation,
|
|
2232
|
+
cr as useRestoreDataboxFile,
|
|
2233
|
+
Sn as useResumeSchedule,
|
|
2234
|
+
Ge as useRows,
|
|
2235
|
+
ur as useRunDataboxFolder,
|
|
2236
|
+
Oe as useRunDefinition,
|
|
2237
|
+
Ue as useRunPublishedDefinition,
|
|
2238
|
+
Ye as useRunRecon,
|
|
2239
|
+
_ as useRunReconV2,
|
|
2240
|
+
Le as useRunSampleDefinition,
|
|
2241
|
+
Je as useSaveWorkbook,
|
|
2242
|
+
Rt as useSearchMessages,
|
|
2243
|
+
lt as useSnoozeInboxItem,
|
|
2244
|
+
dn as useStartReconV2Clean,
|
|
2245
|
+
ln as useStartReconV2Profile,
|
|
2246
|
+
ge as useSubscribeUser,
|
|
2247
|
+
Mt as useTcnAgentDisconnect,
|
|
2248
|
+
Wt as useTcnAgentGetCallFromHold,
|
|
2249
|
+
Vt as useTcnAgentGetStatus,
|
|
2250
|
+
vt as useTcnAgentPause,
|
|
2251
|
+
Qt as useTcnAgentPutCallOnHold,
|
|
2252
|
+
Ot as useTcnAgentSetReady,
|
|
2253
|
+
St as useTcnAgentSkills,
|
|
2254
|
+
kt as useTcnAuthUrl,
|
|
2255
|
+
Lt as useTcnCallData,
|
|
2256
|
+
Ut as useTcnConnectedParty,
|
|
2257
|
+
It as useTcnCreateSession,
|
|
2258
|
+
Pt as useTcnCurrentAgent,
|
|
2259
|
+
At as useTcnDialManualPrepare,
|
|
2260
|
+
Ct as useTcnExchangeCode,
|
|
2261
|
+
Ht as useTcnFtpManualDialReport,
|
|
2262
|
+
Et as useTcnHuntGroupSettings,
|
|
2263
|
+
Kt as useTcnKeepAlive,
|
|
2264
|
+
Bt as useTcnManualDialStart,
|
|
2265
|
+
Gt as useTcnProcessManualDial,
|
|
2266
|
+
xt as useTcnRefreshToken,
|
|
2267
|
+
An as useTerminateProcessTreePipelines,
|
|
2268
|
+
ir as useTrashDataboxFiles,
|
|
2269
|
+
Qe as useTriggerHttpWorkflow,
|
|
2270
|
+
We as useTriggerWorkflow,
|
|
2271
|
+
fe as useUnsubscribeUser,
|
|
2272
|
+
ye as useUpdateComment,
|
|
2273
|
+
_n as useUpdateCustomObjectPermissions,
|
|
2274
|
+
sr as useUpdateDataboxFolderSchema,
|
|
2275
|
+
fr as useUpdateFiscalCalendar,
|
|
2276
|
+
qr as useUpdateHolidayCalendar,
|
|
2277
|
+
st as useUpdateInboxItem,
|
|
2278
|
+
tt as useUpdateInboxType,
|
|
2279
|
+
Bn as useUpdateProcessTreeRunContext,
|
|
2280
|
+
H as useUpdateReconV2,
|
|
2281
|
+
Me as useUpdateRow,
|
|
2282
|
+
L as useUser,
|
|
2283
|
+
He as useUserDetails,
|
|
2284
|
+
xr as useWorkingPaper,
|
|
2285
|
+
Sr as useWorkingPaperInputTableSheet,
|
|
2286
|
+
Cr as useWorkingPaperList
|
|
1971
2287
|
};
|