@bluecopa/react 0.1.117 → 0.1.119
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/README.md +465 -1260
- package/dist/hooks/pipeline/useGetPipeline.d.ts +9 -0
- package/dist/hooks/pipeline/useGetPipeline.d.ts.map +1 -0
- package/dist/hooks/pipeline/useGetPipelineRunStatus.d.ts +9 -0
- package/dist/hooks/pipeline/useGetPipelineRunStatus.d.ts.map +1 -0
- package/dist/hooks/pipeline/useRunPipeline.d.ts +9 -0
- package/dist/hooks/pipeline/useRunPipeline.d.ts.map +1 -0
- package/dist/hooks/pipeline/useSavePipeline.d.ts +8 -0
- package/dist/hooks/pipeline/useSavePipeline.d.ts.map +1 -0
- package/dist/hooks/solutions/useSolutionSeedData.d.ts +10 -0
- package/dist/hooks/solutions/useSolutionSeedData.d.ts.map +1 -0
- package/dist/hooks/solutions/useSolutionsPackaging.d.ts +36 -0
- package/dist/hooks/solutions/useSolutionsPackaging.d.ts.map +1 -0
- package/dist/hooks/useConnectionsAuthoring.d.ts +20 -0
- package/dist/hooks/useConnectionsAuthoring.d.ts.map +1 -0
- package/dist/hooks/useCreateWorkbook.d.ts +4 -0
- package/dist/hooks/useCreateWorkbook.d.ts.map +1 -0
- package/dist/hooks/useCustomObjects.d.ts +12 -0
- package/dist/hooks/useCustomObjects.d.ts.map +1 -0
- package/dist/hooks/useCustomObjectsOfType.d.ts +12 -0
- package/dist/hooks/useCustomObjectsOfType.d.ts.map +1 -0
- package/dist/hooks/useCustomTypeMetadata.d.ts +12 -0
- package/dist/hooks/useCustomTypeMetadata.d.ts.map +1 -0
- package/dist/hooks/useCustomTypeMetadataList.d.ts +10 -0
- package/dist/hooks/useCustomTypeMetadataList.d.ts.map +1 -0
- package/dist/hooks/useDashboardsHub.d.ts +26 -0
- package/dist/hooks/useDashboardsHub.d.ts.map +1 -0
- package/dist/hooks/useDatasetsHub.d.ts +9 -0
- package/dist/hooks/useDatasetsHub.d.ts.map +1 -0
- package/dist/hooks/useDeleteCustomTypeMetadata.d.ts +8 -0
- package/dist/hooks/useDeleteCustomTypeMetadata.d.ts.map +1 -0
- package/dist/hooks/useExportConfigsHub.d.ts +19 -0
- package/dist/hooks/useExportConfigsHub.d.ts.map +1 -0
- package/dist/hooks/useExternalAppsAuthoring.d.ts +28 -0
- package/dist/hooks/useExternalAppsAuthoring.d.ts.map +1 -0
- package/dist/hooks/useHttpTriggersHub.d.ts +7 -0
- package/dist/hooks/useHttpTriggersHub.d.ts.map +1 -0
- package/dist/hooks/useIngestionAuthoring.d.ts +11 -0
- package/dist/hooks/useIngestionAuthoring.d.ts.map +1 -0
- package/dist/hooks/useInputTablesHub.d.ts +26 -0
- package/dist/hooks/useInputTablesHub.d.ts.map +1 -0
- package/dist/hooks/usePolicies.d.ts +11 -0
- package/dist/hooks/usePolicies.d.ts.map +1 -0
- package/dist/hooks/usePolicyMutations.d.ts +22 -0
- package/dist/hooks/usePolicyMutations.d.ts.map +1 -0
- package/dist/hooks/useProcessSheetsHub.d.ts +7 -0
- package/dist/hooks/useProcessSheetsHub.d.ts.map +1 -0
- package/dist/hooks/useProcessTriggersHub.d.ts +41 -0
- package/dist/hooks/useProcessTriggersHub.d.ts.map +1 -0
- package/dist/hooks/useRegisterCustomTypeMetadata.d.ts +9 -0
- package/dist/hooks/useRegisterCustomTypeMetadata.d.ts.map +1 -0
- package/dist/hooks/useTriggerWorkflow.d.ts +2 -0
- package/dist/hooks/useTriggerWorkflow.d.ts.map +1 -1
- package/dist/hooks/useVirtualDatasetsHub.d.ts +16 -0
- package/dist/hooks/useVirtualDatasetsHub.d.ts.map +1 -0
- package/dist/hooks/useWorkbooksHub.d.ts +7 -0
- package/dist/hooks/useWorkbooksHub.d.ts.map +1 -0
- package/dist/hooks/useWorkflowsHub.d.ts +9 -0
- package/dist/hooks/useWorkflowsHub.d.ts.map +1 -0
- package/dist/hooks/versioning/useCommitChanges.d.ts +5 -0
- package/dist/hooks/versioning/useCommitChanges.d.ts.map +1 -0
- package/dist/hooks/versioning/useCreateBranch.d.ts +5 -0
- package/dist/hooks/versioning/useCreateBranch.d.ts.map +1 -0
- package/dist/hooks/versioning/useListCommits.d.ts +9 -0
- package/dist/hooks/versioning/useListCommits.d.ts.map +1 -0
- package/dist/hooks/versioning/useListTags.d.ts +7 -0
- package/dist/hooks/versioning/useListTags.d.ts.map +1 -0
- package/dist/hooks/versioning/useMergeBranches.d.ts +5 -0
- package/dist/hooks/versioning/useMergeBranches.d.ts.map +1 -0
- package/dist/hooks/versioning/usePushBranch.d.ts +5 -0
- package/dist/hooks/versioning/usePushBranch.d.ts.map +1 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +1742 -998
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useQuery as s, useMutation as u, useQueryClient as
|
|
2
|
-
import * as
|
|
3
|
-
import { copaApi as r, copaGetConfig as
|
|
1
|
+
import { useQuery as s, useMutation as u, useQueryClient as p } from "@tanstack/react-query";
|
|
2
|
+
import * as oe from "@tanstack/react-query";
|
|
3
|
+
import { copaApi as r, copaGetConfig as x, 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 q, useRef as B, useEffect as K, useMemo as h, useCallback as G } from "react";
|
|
6
|
+
import { ReactQueryDevtools as ku } from "@tanstack/react-query-devtools";
|
|
7
|
+
const M = {
|
|
8
8
|
enabled: !0,
|
|
9
9
|
staleTime: 1e3 * 60 * 5,
|
|
10
10
|
// 5 minutes
|
|
@@ -13,56 +13,56 @@ const O = {
|
|
|
13
13
|
retry: 2,
|
|
14
14
|
retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
|
|
15
15
|
};
|
|
16
|
-
function
|
|
16
|
+
function O(e = {}) {
|
|
17
17
|
return {
|
|
18
|
-
...
|
|
18
|
+
...M,
|
|
19
19
|
...e
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
function L(e = 5e3) {
|
|
23
|
-
return new Promise((
|
|
23
|
+
return new Promise((t) => setTimeout(t, e));
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
25
|
+
function P(e, t) {
|
|
26
|
+
const n = Object.entries(e).filter(([a, o]) => !o).map(([a]) => a);
|
|
27
|
+
if (n.length > 0)
|
|
28
28
|
throw new Error(
|
|
29
|
-
|
|
29
|
+
t || `Missing required parameters: ${n.join(", ")}`
|
|
30
30
|
);
|
|
31
31
|
}
|
|
32
|
-
function y(e,
|
|
33
|
-
return async () => (await L(
|
|
32
|
+
function y(e, t, n = 0) {
|
|
33
|
+
return async () => (await L(n), await e());
|
|
34
34
|
}
|
|
35
35
|
function d(e) {
|
|
36
|
-
const
|
|
36
|
+
const t = O(e.options);
|
|
37
37
|
return {
|
|
38
38
|
queryKey: e.queryKey,
|
|
39
39
|
queryFn: e.queryFn,
|
|
40
|
-
enabled: e.enabled !== void 0 ? e.enabled :
|
|
41
|
-
staleTime:
|
|
42
|
-
gcTime:
|
|
43
|
-
retry:
|
|
44
|
-
retryDelay:
|
|
45
|
-
onSuccess:
|
|
46
|
-
onError:
|
|
40
|
+
enabled: e.enabled !== void 0 ? e.enabled : t.enabled,
|
|
41
|
+
staleTime: t.staleTime,
|
|
42
|
+
gcTime: t.gcTime,
|
|
43
|
+
retry: t.retry,
|
|
44
|
+
retryDelay: t.retryDelay,
|
|
45
|
+
onSuccess: t.onSuccess,
|
|
46
|
+
onError: t.onError
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
function ce(e,
|
|
50
|
-
const
|
|
49
|
+
function ce(e, t = {}) {
|
|
50
|
+
const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, o = 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
|
-
limit:
|
|
54
|
+
limit: t.limit
|
|
55
55
|
});
|
|
56
56
|
}), i = d({
|
|
57
|
-
queryKey: ["metricData", e, a,
|
|
57
|
+
queryKey: ["metricData", e, a, t.limit ?? null],
|
|
58
58
|
queryFn: o,
|
|
59
|
-
enabled:
|
|
60
|
-
options:
|
|
59
|
+
enabled: n,
|
|
60
|
+
options: t
|
|
61
61
|
});
|
|
62
62
|
return s(i);
|
|
63
63
|
}
|
|
64
|
-
function le(e,
|
|
65
|
-
const
|
|
64
|
+
function le(e, t = {}) {
|
|
65
|
+
const n = !!e, a = y(async () => {
|
|
66
66
|
if (!e)
|
|
67
67
|
throw new Error("Dataset ID is required");
|
|
68
68
|
return console.log("Fetching dataset data..."), await r.dataset.getSampleData({
|
|
@@ -72,145 +72,145 @@ function le(e, n = {}) {
|
|
|
72
72
|
}), o = d({
|
|
73
73
|
queryKey: ["datasetData", e],
|
|
74
74
|
queryFn: a,
|
|
75
|
-
enabled:
|
|
76
|
-
options:
|
|
75
|
+
enabled: n,
|
|
76
|
+
options: t
|
|
77
77
|
});
|
|
78
78
|
return s(o);
|
|
79
79
|
}
|
|
80
80
|
function ye(e = {}) {
|
|
81
81
|
return u({
|
|
82
|
-
mutationFn: async (
|
|
82
|
+
mutationFn: async (t) => await r.chat.createThread(t),
|
|
83
83
|
onSuccess: e.onSuccess,
|
|
84
84
|
onError: e.onError,
|
|
85
85
|
retry: e.retry ?? 2,
|
|
86
|
-
retryDelay: e.retryDelay ?? ((
|
|
86
|
+
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
function de(e,
|
|
90
|
-
const
|
|
89
|
+
function de(e, t = {}) {
|
|
90
|
+
const n = t.enabled !== !1 && !!e, a = y(async () => (P(
|
|
91
91
|
{ threadId: e },
|
|
92
92
|
"Thread ID is required to fetch comments"
|
|
93
93
|
), await r.chat.getCommentsByThreadId(e))), o = d({
|
|
94
94
|
queryKey: ["chat", "comments", e],
|
|
95
95
|
queryFn: a,
|
|
96
|
-
enabled:
|
|
97
|
-
options:
|
|
96
|
+
enabled: n,
|
|
97
|
+
options: t
|
|
98
98
|
});
|
|
99
99
|
return s(o);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function pe(e = {}) {
|
|
102
102
|
return u({
|
|
103
|
-
mutationFn: async (
|
|
103
|
+
mutationFn: async (t) => await r.chat.postComment(t),
|
|
104
104
|
onSuccess: e.onSuccess,
|
|
105
105
|
onError: e.onError,
|
|
106
106
|
retry: e.retry ?? 2,
|
|
107
|
-
retryDelay: e.retryDelay ?? ((
|
|
107
|
+
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ge(e = {}) {
|
|
111
111
|
return u({
|
|
112
|
-
mutationFn: async (
|
|
112
|
+
mutationFn: async (t) => await r.chat.updateComment(t),
|
|
113
113
|
onSuccess: e.onSuccess,
|
|
114
114
|
onError: e.onError,
|
|
115
115
|
retry: e.retry ?? 2,
|
|
116
|
-
retryDelay: e.retryDelay ?? ((
|
|
116
|
+
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function fe(e = {}) {
|
|
120
120
|
return u({
|
|
121
|
-
mutationFn: async (
|
|
121
|
+
mutationFn: async (t) => await r.chat.deleteComment(t),
|
|
122
122
|
onSuccess: e.onSuccess,
|
|
123
123
|
onError: e.onError,
|
|
124
124
|
retry: e.retry ?? 2,
|
|
125
|
-
retryDelay: e.retryDelay ?? ((
|
|
125
|
+
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function me(e = {}) {
|
|
129
129
|
return u({
|
|
130
|
-
mutationFn: async (
|
|
130
|
+
mutationFn: async (t) => await r.chat.subscribeUser(t),
|
|
131
131
|
onSuccess: e.onSuccess,
|
|
132
132
|
onError: e.onError,
|
|
133
133
|
retry: e.retry ?? 2,
|
|
134
|
-
retryDelay: e.retryDelay ?? ((
|
|
134
|
+
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function be(e = {}) {
|
|
138
138
|
return u({
|
|
139
|
-
mutationFn: async (
|
|
139
|
+
mutationFn: async (t) => await r.chat.unsubscribeUser(t),
|
|
140
140
|
onSuccess: e.onSuccess,
|
|
141
141
|
onError: e.onError,
|
|
142
142
|
retry: e.retry ?? 2,
|
|
143
|
-
retryDelay: e.retryDelay ?? ((
|
|
143
|
+
retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
147
|
-
const a =
|
|
148
|
-
{ userId: e, threadId:
|
|
146
|
+
function we(e, t, n = {}) {
|
|
147
|
+
const a = n.enabled !== !1 && !!e && !!t, o = y(async () => (P(
|
|
148
|
+
{ userId: e, threadId: t },
|
|
149
149
|
"User ID and Thread ID are required to check subscription status"
|
|
150
|
-
), await r.chat.checkSubscriptionStatus(e,
|
|
151
|
-
queryKey: ["chat", "subscription", e,
|
|
150
|
+
), await r.chat.checkSubscriptionStatus(e, t))), i = d({
|
|
151
|
+
queryKey: ["chat", "subscription", e, t],
|
|
152
152
|
queryFn: o,
|
|
153
153
|
enabled: a,
|
|
154
|
-
options:
|
|
154
|
+
options: n
|
|
155
155
|
});
|
|
156
156
|
return s(i);
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function Fe(e = {}) {
|
|
159
159
|
return u({
|
|
160
|
-
mutationFn: async (
|
|
160
|
+
mutationFn: async (t) => await r.statement.createNewRun(t),
|
|
161
161
|
...e
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
|
-
function
|
|
165
|
-
const
|
|
164
|
+
function qe(e, t = {}) {
|
|
165
|
+
const n = !!e, a = y(async () => {
|
|
166
166
|
if (!e)
|
|
167
167
|
throw new Error("Dataset ID is required");
|
|
168
168
|
return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
|
|
169
|
-
limit:
|
|
169
|
+
limit: t.limit || 1e3
|
|
170
170
|
});
|
|
171
171
|
}), o = d({
|
|
172
172
|
queryKey: ["datasetData", e],
|
|
173
173
|
queryFn: a,
|
|
174
|
-
enabled:
|
|
175
|
-
options:
|
|
174
|
+
enabled: n,
|
|
175
|
+
options: t
|
|
176
176
|
});
|
|
177
177
|
return s(o);
|
|
178
178
|
}
|
|
179
179
|
function he() {
|
|
180
|
-
const e = y(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())),
|
|
180
|
+
const e = y(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), t = d({
|
|
181
181
|
queryKey: ["datasetData"],
|
|
182
182
|
queryFn: e,
|
|
183
183
|
enabled: !0
|
|
184
184
|
});
|
|
185
|
-
return s(
|
|
185
|
+
return s(t);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
const e = y(async () => await r.dataset.getVirtualDatasets()),
|
|
187
|
+
function Te() {
|
|
188
|
+
const e = y(async () => await r.dataset.getVirtualDatasets()), t = d({
|
|
189
189
|
queryKey: ["virtualDatasets"],
|
|
190
190
|
queryFn: e,
|
|
191
191
|
enabled: !0
|
|
192
192
|
});
|
|
193
|
-
return s(
|
|
193
|
+
return s(t);
|
|
194
194
|
}
|
|
195
|
-
function
|
|
196
|
-
const o = !!e && !!
|
|
197
|
-
if (!e || !
|
|
195
|
+
function De(e, t, n, a = {}) {
|
|
196
|
+
const o = !!e && !!t && !!n, i = y(async () => {
|
|
197
|
+
if (!e || !t || !n)
|
|
198
198
|
throw new Error("Key, contentType, and method are required");
|
|
199
199
|
return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
|
|
200
200
|
key: e,
|
|
201
|
-
contentType:
|
|
202
|
-
method:
|
|
201
|
+
contentType: t,
|
|
202
|
+
method: n
|
|
203
203
|
});
|
|
204
204
|
}), c = d({
|
|
205
|
-
queryKey: ["file", "getFileUrlByFileId", e,
|
|
205
|
+
queryKey: ["file", "getFileUrlByFileId", e, t, n],
|
|
206
206
|
queryFn: i,
|
|
207
207
|
enabled: o,
|
|
208
208
|
options: a
|
|
209
209
|
});
|
|
210
210
|
return s(c);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
const a = e?.trim(), o =
|
|
212
|
+
function Ce(e, t, n = {}) {
|
|
213
|
+
const a = e?.trim(), o = t?.trim(), i = !!(a && o), c = y(async () => await r.files.getFileByFolderIdAndName({
|
|
214
214
|
folderId: a,
|
|
215
215
|
name: o
|
|
216
216
|
})), l = d({
|
|
@@ -222,196 +222,196 @@ function Re(e, n, t = {}) {
|
|
|
222
222
|
],
|
|
223
223
|
queryFn: c,
|
|
224
224
|
enabled: i,
|
|
225
|
-
options:
|
|
225
|
+
options: n
|
|
226
226
|
});
|
|
227
227
|
return s(l);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
const
|
|
231
|
-
queryKey: ["file", "getFileById",
|
|
229
|
+
function Se(e, t = {}) {
|
|
230
|
+
const n = e?.trim(), a = !!n, o = y(async () => await r.files.getFileById({ id: n })), i = d({
|
|
231
|
+
queryKey: ["file", "getFileById", n],
|
|
232
232
|
queryFn: o,
|
|
233
233
|
enabled: a,
|
|
234
|
-
options:
|
|
234
|
+
options: t
|
|
235
235
|
});
|
|
236
236
|
return s(i);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const a = !!e && !!
|
|
240
|
-
if (!e || !
|
|
238
|
+
function ke(e, t, n = {}) {
|
|
239
|
+
const a = !!e && !!t, o = y(async () => {
|
|
240
|
+
if (!e || !t)
|
|
241
241
|
throw new Error("Type and ID are required");
|
|
242
|
-
return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id:
|
|
242
|
+
return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: t });
|
|
243
243
|
}), i = d({
|
|
244
|
-
queryKey: ["workbook", "getPublishedWorkbookById", e,
|
|
244
|
+
queryKey: ["workbook", "getPublishedWorkbookById", e, t],
|
|
245
245
|
queryFn: o,
|
|
246
246
|
enabled: a,
|
|
247
|
-
options:
|
|
247
|
+
options: n
|
|
248
248
|
});
|
|
249
249
|
return s(i);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const
|
|
251
|
+
function Re(e, t = {}) {
|
|
252
|
+
const n = !!e, a = y(async () => {
|
|
253
253
|
if (!e)
|
|
254
254
|
throw new Error("Run ID is required");
|
|
255
255
|
return await r.statement.getRunResultById(e);
|
|
256
256
|
}), o = d({
|
|
257
257
|
queryKey: ["statement", "getRunResultById", e],
|
|
258
258
|
queryFn: a,
|
|
259
|
-
enabled:
|
|
260
|
-
options:
|
|
259
|
+
enabled: n,
|
|
260
|
+
options: t
|
|
261
261
|
});
|
|
262
262
|
return s(o);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
const
|
|
264
|
+
function xe(e, t = {}) {
|
|
265
|
+
const n = !!e, a = y(async () => {
|
|
266
266
|
if (!e)
|
|
267
267
|
throw new Error("View ID is required");
|
|
268
268
|
return await r.statement.getRunsByViewId(e);
|
|
269
269
|
}), o = d({
|
|
270
270
|
queryKey: ["statement", "getRunsByViewId", e],
|
|
271
271
|
queryFn: a,
|
|
272
|
-
enabled:
|
|
273
|
-
options:
|
|
272
|
+
enabled: n,
|
|
273
|
+
options: t
|
|
274
274
|
});
|
|
275
275
|
return s(o);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Ke(e, t, n, a = {}) {
|
|
278
278
|
const o = !!e, i = y(async () => {
|
|
279
279
|
if (!e)
|
|
280
280
|
throw new Error("Statement ID is required");
|
|
281
281
|
return await r.statement.getData({
|
|
282
282
|
statementId: e,
|
|
283
|
-
viewId:
|
|
284
|
-
runId:
|
|
283
|
+
viewId: t || void 0,
|
|
284
|
+
runId: n || void 0
|
|
285
285
|
});
|
|
286
286
|
}), c = d({
|
|
287
|
-
queryKey: ["statement", "getData", e,
|
|
287
|
+
queryKey: ["statement", "getData", e, t, n],
|
|
288
288
|
queryFn: i,
|
|
289
289
|
enabled: o,
|
|
290
290
|
options: a
|
|
291
291
|
});
|
|
292
292
|
return s(c);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
295
|
-
const
|
|
294
|
+
function Pe(e, t = {}) {
|
|
295
|
+
const n = !!e, a = y(async () => {
|
|
296
296
|
if (!e)
|
|
297
297
|
throw new Error("Table ID is required");
|
|
298
298
|
return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
|
|
299
299
|
}), o = d({
|
|
300
300
|
queryKey: ["inputTable", "getTableById", e],
|
|
301
301
|
queryFn: a,
|
|
302
|
-
enabled:
|
|
303
|
-
options:
|
|
302
|
+
enabled: n,
|
|
303
|
+
options: t
|
|
304
304
|
});
|
|
305
305
|
return s(o);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
308
|
-
const
|
|
307
|
+
function Ie(e, t = {}) {
|
|
308
|
+
const n = !!e, a = y(async () => {
|
|
309
309
|
if (!e)
|
|
310
310
|
throw new Error("View ID is required");
|
|
311
311
|
return await r.statement.getViewById(e);
|
|
312
312
|
}), o = d({
|
|
313
313
|
queryKey: ["statement", "getViewById", e],
|
|
314
314
|
queryFn: a,
|
|
315
|
-
enabled:
|
|
316
|
-
options:
|
|
315
|
+
enabled: n,
|
|
316
|
+
options: t
|
|
317
317
|
});
|
|
318
318
|
return s(o);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
321
|
-
const
|
|
320
|
+
function ve(e, t = {}) {
|
|
321
|
+
const n = !!e, a = y(async () => {
|
|
322
322
|
if (!e)
|
|
323
323
|
throw new Error("Sheet ID is required");
|
|
324
324
|
return await r.statement.getViewsBySheetId(e);
|
|
325
325
|
}), o = d({
|
|
326
326
|
queryKey: ["statement", "getViewsBySheetId", e],
|
|
327
327
|
queryFn: a,
|
|
328
|
-
enabled:
|
|
329
|
-
options:
|
|
328
|
+
enabled: n,
|
|
329
|
+
options: t
|
|
330
330
|
});
|
|
331
331
|
return s(o);
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
const
|
|
333
|
+
function Ve(e, t = {}) {
|
|
334
|
+
const n = !!e, a = y(async () => {
|
|
335
335
|
if (!e)
|
|
336
336
|
throw new Error("Type is required");
|
|
337
337
|
return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
|
|
338
338
|
}), o = d({
|
|
339
339
|
queryKey: ["workbook", "getWorkbooksByType", e],
|
|
340
340
|
queryFn: a,
|
|
341
|
-
enabled:
|
|
342
|
-
options:
|
|
341
|
+
enabled: n,
|
|
342
|
+
options: t
|
|
343
343
|
});
|
|
344
344
|
return s(o);
|
|
345
345
|
}
|
|
346
346
|
var U = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(U || {});
|
|
347
|
-
function
|
|
347
|
+
function Ee(e = {}) {
|
|
348
348
|
return u({
|
|
349
|
-
mutationFn: async (
|
|
349
|
+
mutationFn: async (t) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(t)),
|
|
350
350
|
...e
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
|
-
function
|
|
354
|
-
const
|
|
353
|
+
function Ae(e, t = {}) {
|
|
354
|
+
const n = !!e && e.length > 0, a = y(async () => {
|
|
355
355
|
if (!e || e.length === 0)
|
|
356
356
|
throw new Error("Worksheet IDs are required");
|
|
357
357
|
return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
|
|
358
358
|
}), o = d({
|
|
359
359
|
queryKey: ["worksheet", "getWorksheets", e],
|
|
360
360
|
queryFn: a,
|
|
361
|
-
enabled:
|
|
362
|
-
options:
|
|
361
|
+
enabled: n,
|
|
362
|
+
options: t
|
|
363
363
|
});
|
|
364
364
|
return s(o);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
367
|
-
const
|
|
366
|
+
function Be(e, t = {}) {
|
|
367
|
+
const n = !!e, a = y(async () => {
|
|
368
368
|
if (!e)
|
|
369
369
|
throw new Error("Type is required");
|
|
370
370
|
return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
|
|
371
371
|
}), o = d({
|
|
372
372
|
queryKey: ["worksheet", "getWorksheetsByType", e],
|
|
373
373
|
queryFn: a,
|
|
374
|
-
enabled:
|
|
375
|
-
options:
|
|
374
|
+
enabled: n,
|
|
375
|
+
options: t
|
|
376
376
|
});
|
|
377
377
|
return s(o);
|
|
378
378
|
}
|
|
379
|
-
function Ge(e,
|
|
379
|
+
function Ge(e, t, n = {}) {
|
|
380
380
|
const {
|
|
381
381
|
limitParams: a = { limit: 2e3, limitFrom: "top" },
|
|
382
382
|
pageParams: o,
|
|
383
383
|
sortParams: i,
|
|
384
384
|
offsetParam: c,
|
|
385
385
|
...l
|
|
386
|
-
} =
|
|
387
|
-
if (!e || !
|
|
386
|
+
} = n, g = l.enabled !== !1 && !!e && !!t, f = y(async () => {
|
|
387
|
+
if (!e || !t)
|
|
388
388
|
throw new Error("Input table ID and view ID are required");
|
|
389
389
|
return console.log("Fetching input table data..."), await r.inputTable.getData({
|
|
390
390
|
inputTableId: e,
|
|
391
|
-
inputTableViewId:
|
|
391
|
+
inputTableViewId: t,
|
|
392
392
|
pageParams: o,
|
|
393
393
|
limitParams: a,
|
|
394
394
|
sortParams: i,
|
|
395
395
|
offsetParam: c
|
|
396
396
|
});
|
|
397
397
|
}), m = d({
|
|
398
|
-
queryKey: ["inputTableData", e,
|
|
398
|
+
queryKey: ["inputTableData", e, t],
|
|
399
399
|
queryFn: f,
|
|
400
400
|
enabled: g,
|
|
401
401
|
options: l
|
|
402
402
|
});
|
|
403
403
|
return s(m);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
406
|
-
const e = y(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())),
|
|
405
|
+
function Me() {
|
|
406
|
+
const e = y(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), t = d({
|
|
407
407
|
queryKey: ["inputTableData"],
|
|
408
408
|
queryFn: e,
|
|
409
409
|
enabled: !0
|
|
410
410
|
});
|
|
411
|
-
return s(
|
|
411
|
+
return s(t);
|
|
412
412
|
}
|
|
413
|
-
function
|
|
414
|
-
const
|
|
413
|
+
function Oe(e, t = {}) {
|
|
414
|
+
const n = [
|
|
415
415
|
"enabled",
|
|
416
416
|
"staleTime",
|
|
417
417
|
"gcTime",
|
|
@@ -419,162 +419,162 @@ function Me(e, n = {}) {
|
|
|
419
419
|
"retryDelay",
|
|
420
420
|
"onSuccess",
|
|
421
421
|
"onError"
|
|
422
|
-
], { limit: a, offset: o, order: i, order_by: c, ...l } =
|
|
423
|
-
Object.keys(l).forEach((
|
|
424
|
-
|
|
422
|
+
], { limit: a, offset: o, order: i, order_by: c, ...l } = t, g = {}, f = { limit: a, offset: o, order: i, order_by: c };
|
|
423
|
+
Object.keys(l).forEach((w) => {
|
|
424
|
+
n.includes(w) ? g[w] = l[w] : f[w] = l[w];
|
|
425
425
|
});
|
|
426
|
-
const m = g.enabled !== !1 && !!e,
|
|
426
|
+
const m = g.enabled !== !1 && !!e, F = y(async () => {
|
|
427
427
|
if (!e)
|
|
428
428
|
throw new Error("Table ID is required");
|
|
429
429
|
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, f);
|
|
430
|
-
}),
|
|
431
|
-
queryKey: ["inputTableRows", e,
|
|
432
|
-
queryFn:
|
|
430
|
+
}), b = d({
|
|
431
|
+
queryKey: ["inputTableRows", e, t],
|
|
432
|
+
queryFn: F,
|
|
433
433
|
enabled: m,
|
|
434
434
|
options: g
|
|
435
435
|
});
|
|
436
|
-
return s(
|
|
436
|
+
return s(b);
|
|
437
437
|
}
|
|
438
438
|
function Le(e = {}) {
|
|
439
|
-
const
|
|
439
|
+
const t = p();
|
|
440
440
|
return u({
|
|
441
|
-
mutationFn: async (
|
|
442
|
-
onSuccess: (
|
|
443
|
-
|
|
441
|
+
mutationFn: async (n) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(n.tableId, n.rowData)),
|
|
442
|
+
onSuccess: (n, a) => {
|
|
443
|
+
t.invalidateQueries({
|
|
444
444
|
queryKey: ["inputTableRows", a.tableId]
|
|
445
|
-
}), e.onSuccess?.(
|
|
445
|
+
}), e.onSuccess?.(n);
|
|
446
446
|
},
|
|
447
|
-
onError: (
|
|
448
|
-
e.onError?.(
|
|
447
|
+
onError: (n) => {
|
|
448
|
+
e.onError?.(n);
|
|
449
449
|
},
|
|
450
450
|
...e
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
453
|
function Ue(e = {}) {
|
|
454
|
-
const
|
|
454
|
+
const t = p();
|
|
455
455
|
return u({
|
|
456
|
-
mutationFn: async (
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
456
|
+
mutationFn: async (n) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
|
|
457
|
+
n.tableId,
|
|
458
|
+
n.updateData,
|
|
459
|
+
n.rowId
|
|
460
460
|
)),
|
|
461
|
-
onSuccess: (
|
|
462
|
-
|
|
461
|
+
onSuccess: (n, a) => {
|
|
462
|
+
t.invalidateQueries({
|
|
463
463
|
queryKey: ["inputTableRows", a.tableId]
|
|
464
|
-
}), e.onSuccess?.(
|
|
464
|
+
}), e.onSuccess?.(n);
|
|
465
465
|
},
|
|
466
|
-
onError: (
|
|
467
|
-
e.onError?.(
|
|
466
|
+
onError: (n) => {
|
|
467
|
+
e.onError?.(n);
|
|
468
468
|
},
|
|
469
469
|
...e
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
const
|
|
472
|
+
function He(e = {}) {
|
|
473
|
+
const t = p();
|
|
474
474
|
return u({
|
|
475
|
-
mutationFn: async (
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
475
|
+
mutationFn: async (n) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
|
|
476
|
+
n.tableId,
|
|
477
|
+
n.rowId,
|
|
478
|
+
n.idField
|
|
479
479
|
)),
|
|
480
|
-
onSuccess: (
|
|
481
|
-
|
|
480
|
+
onSuccess: (n, a) => {
|
|
481
|
+
t.invalidateQueries({
|
|
482
482
|
queryKey: ["inputTableRows", a.tableId]
|
|
483
|
-
}), e.onSuccess?.(
|
|
483
|
+
}), e.onSuccess?.(n);
|
|
484
484
|
},
|
|
485
|
-
onError: (
|
|
486
|
-
e.onError?.(
|
|
485
|
+
onError: (n) => {
|
|
486
|
+
e.onError?.(n);
|
|
487
487
|
},
|
|
488
488
|
...e
|
|
489
489
|
});
|
|
490
490
|
}
|
|
491
491
|
function We(e = {}) {
|
|
492
492
|
return u({
|
|
493
|
-
mutationFn: async (
|
|
493
|
+
mutationFn: async (t) => (console.log("Running definition..."), await r.definition.runDefinition(t)),
|
|
494
494
|
...e
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Qe(e = {}) {
|
|
498
498
|
return u({
|
|
499
|
-
mutationFn: async (
|
|
499
|
+
mutationFn: async (t) => await r.definition.runPublishedDefinition(t),
|
|
500
500
|
...e
|
|
501
501
|
});
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function ze(e = {}) {
|
|
504
504
|
return u({
|
|
505
|
-
mutationFn: async (
|
|
505
|
+
mutationFn: async (t) => await r.definition.runSampleDefinition(t),
|
|
506
506
|
...e
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Ne(e = {}) {
|
|
510
510
|
return u({
|
|
511
|
-
mutationFn: async (
|
|
511
|
+
mutationFn: async (t) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(t)),
|
|
512
512
|
...e
|
|
513
513
|
});
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function _e(e = {}) {
|
|
516
516
|
return u({
|
|
517
|
-
mutationFn: async (
|
|
517
|
+
mutationFn: async (t) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(t)),
|
|
518
518
|
...e
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
|
-
function
|
|
522
|
-
const
|
|
521
|
+
function H(e = {}) {
|
|
522
|
+
const t = e.enabled !== !1, n = y(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), a = d({
|
|
523
523
|
queryKey: ["user"],
|
|
524
|
-
queryFn:
|
|
525
|
-
enabled:
|
|
524
|
+
queryFn: n,
|
|
525
|
+
enabled: t,
|
|
526
526
|
options: e
|
|
527
527
|
});
|
|
528
528
|
return s(a);
|
|
529
529
|
}
|
|
530
|
-
const je =
|
|
531
|
-
function
|
|
532
|
-
const a =
|
|
530
|
+
const je = H, W = ["Owner", "Editor", "Viewer", "ReadOnly"], R = r.permissions?.getPermissions;
|
|
531
|
+
function Je(e, t, n = {}) {
|
|
532
|
+
const a = n.enabled !== !1 && !!e?.trim(), o = y(
|
|
533
533
|
async () => {
|
|
534
534
|
if (!e?.trim())
|
|
535
535
|
return {};
|
|
536
|
-
if (!
|
|
536
|
+
if (!R)
|
|
537
537
|
throw new Error(
|
|
538
538
|
"@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
|
|
539
539
|
);
|
|
540
|
-
const c =
|
|
540
|
+
const c = x();
|
|
541
541
|
if (!c.userId)
|
|
542
542
|
throw new Error(
|
|
543
543
|
"@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
|
|
544
544
|
);
|
|
545
|
-
return await
|
|
545
|
+
return await R({
|
|
546
546
|
objectId: e.trim(),
|
|
547
|
-
objectType:
|
|
547
|
+
objectType: t,
|
|
548
548
|
user: c.userId,
|
|
549
549
|
userType: "User",
|
|
550
|
-
relations:
|
|
550
|
+
relations: n.relations ?? W
|
|
551
551
|
});
|
|
552
552
|
},
|
|
553
553
|
void 0,
|
|
554
554
|
0
|
|
555
555
|
), i = d({
|
|
556
|
-
queryKey: ["documentPermissions", e ?? "",
|
|
556
|
+
queryKey: ["documentPermissions", e ?? "", t, n.relations ?? []],
|
|
557
557
|
queryFn: o,
|
|
558
558
|
enabled: a,
|
|
559
|
-
options:
|
|
559
|
+
options: n
|
|
560
560
|
});
|
|
561
561
|
return s(i);
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function $e(e = {}) {
|
|
564
564
|
return u({
|
|
565
|
-
mutationFn: async (
|
|
565
|
+
mutationFn: async (t) => (console.log("Uploading file..."), await r.files.fileUpload(t)),
|
|
566
566
|
...e
|
|
567
567
|
});
|
|
568
568
|
}
|
|
569
569
|
function Xe({
|
|
570
570
|
fileId: e,
|
|
571
|
-
contentType:
|
|
572
|
-
method:
|
|
571
|
+
contentType: t = "application/json",
|
|
572
|
+
method: n = "GET"
|
|
573
573
|
}, a = {}) {
|
|
574
574
|
const o = !!e, i = y(async () => {
|
|
575
575
|
if (!e)
|
|
576
576
|
throw new Error("File ID is required");
|
|
577
|
-
return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType:
|
|
577
|
+
return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: t, method: n });
|
|
578
578
|
}), c = d({
|
|
579
579
|
queryKey: ["file", "fileDownload", e],
|
|
580
580
|
queryFn: i,
|
|
@@ -583,85 +583,85 @@ function Xe({
|
|
|
583
583
|
});
|
|
584
584
|
return s(c);
|
|
585
585
|
}
|
|
586
|
-
function Ye(e,
|
|
587
|
-
const
|
|
586
|
+
function Ye(e, t = {}) {
|
|
587
|
+
const n = !!e, a = y(async () => {
|
|
588
588
|
if (!e)
|
|
589
589
|
throw new Error("Task ID is required");
|
|
590
590
|
return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
|
|
591
591
|
}), o = d({
|
|
592
592
|
queryKey: ["task", "getTaskDetails", e],
|
|
593
593
|
queryFn: a,
|
|
594
|
-
enabled:
|
|
595
|
-
options:
|
|
594
|
+
enabled: n,
|
|
595
|
+
options: t
|
|
596
596
|
});
|
|
597
597
|
return s(o);
|
|
598
598
|
}
|
|
599
|
-
function Ze(e,
|
|
600
|
-
const
|
|
599
|
+
function Ze(e, t = {}) {
|
|
600
|
+
const n = !!e, a = y(async () => {
|
|
601
601
|
if (!e)
|
|
602
602
|
throw new Error("Workbook ID is required");
|
|
603
603
|
return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
|
|
604
604
|
}), o = d({
|
|
605
605
|
queryKey: ["workbook", "getWorkbookDetails", e],
|
|
606
606
|
queryFn: a,
|
|
607
|
-
enabled:
|
|
608
|
-
options:
|
|
607
|
+
enabled: n,
|
|
608
|
+
options: t
|
|
609
609
|
});
|
|
610
610
|
return s(o);
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function et(e = {}) {
|
|
613
613
|
return u({
|
|
614
|
-
mutationFn: async (
|
|
614
|
+
mutationFn: async (t) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(t)),
|
|
615
615
|
...e
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function tt(e = {}) {
|
|
619
619
|
return u({
|
|
620
|
-
mutationFn: async (
|
|
620
|
+
mutationFn: async (t) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(t)),
|
|
621
621
|
...e
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function nt(e = {}) {
|
|
625
625
|
return u({
|
|
626
|
-
mutationFn: async (
|
|
626
|
+
mutationFn: async (t) => (console.log("Deleting workbook..."), await r.workbook.deleteWorkbook(t)),
|
|
627
627
|
...e
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function rt(e = {}) {
|
|
631
631
|
return u({
|
|
632
|
-
mutationFn: async (
|
|
632
|
+
mutationFn: async (t) => (console.log("Running recon workflow..."), await r.recon.runRecon(t)),
|
|
633
633
|
...e
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
const a = !!e && !!
|
|
638
|
-
if (!e || !
|
|
636
|
+
function at(e, t, n = {}) {
|
|
637
|
+
const a = !!e && !!t, o = y(async () => {
|
|
638
|
+
if (!e || !t)
|
|
639
639
|
throw new Error("Form instance ID and revision are required");
|
|
640
|
-
return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision:
|
|
640
|
+
return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: t });
|
|
641
641
|
});
|
|
642
642
|
return s(
|
|
643
643
|
d({
|
|
644
|
-
queryKey: ["form", "getFormSchema", e,
|
|
644
|
+
queryKey: ["form", "getFormSchema", e, t],
|
|
645
645
|
queryFn: o,
|
|
646
646
|
enabled: a,
|
|
647
|
-
options:
|
|
647
|
+
options: n
|
|
648
648
|
})
|
|
649
649
|
);
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
const
|
|
651
|
+
function ut(e, t = {}) {
|
|
652
|
+
const n = !!e, a = y(async () => {
|
|
653
653
|
if (!e)
|
|
654
654
|
throw new Error("Form ID is required");
|
|
655
655
|
return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
|
|
656
656
|
}), o = d({
|
|
657
657
|
queryKey: ["form", "getFormData", e],
|
|
658
658
|
queryFn: a,
|
|
659
|
-
enabled:
|
|
660
|
-
options:
|
|
659
|
+
enabled: n,
|
|
660
|
+
options: t
|
|
661
661
|
});
|
|
662
662
|
return s(o);
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function ot(e, t = {}) {
|
|
665
665
|
return s({
|
|
666
666
|
queryKey: ["form", e],
|
|
667
667
|
queryFn: async () => {
|
|
@@ -670,97 +670,97 @@ function un(e, n = {}) {
|
|
|
670
670
|
return await r.form.getFormById({ formId: e });
|
|
671
671
|
},
|
|
672
672
|
enabled: !!e,
|
|
673
|
-
...
|
|
673
|
+
...t
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function st(e = {}) {
|
|
677
677
|
return u({
|
|
678
|
-
mutationFn: async (
|
|
678
|
+
mutationFn: async (t) => await r.form.createOrUpdateForm(t),
|
|
679
679
|
...e
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
function
|
|
682
|
+
function it(e = {}) {
|
|
683
683
|
return u({
|
|
684
|
-
mutationFn: async (
|
|
684
|
+
mutationFn: async (t) => await r.audit.getAuditLogs(t),
|
|
685
685
|
...e
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
|
-
function
|
|
688
|
+
function ct(e = {}) {
|
|
689
689
|
return u({
|
|
690
|
-
mutationFn: async (
|
|
690
|
+
mutationFn: async (t) => await r.audit.createAuditLog(t),
|
|
691
691
|
...e
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function lt(e = {}) {
|
|
695
695
|
return s({
|
|
696
696
|
queryKey: ["templatedPipelines"],
|
|
697
697
|
queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
|
|
698
698
|
...e
|
|
699
699
|
});
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function yt(e = {}) {
|
|
702
702
|
return s({
|
|
703
703
|
queryKey: ["reconWorkflows"],
|
|
704
704
|
queryFn: async () => await r.recon.getAllReconWorkflows(),
|
|
705
705
|
...e
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function Q(e = {}) {
|
|
709
709
|
return u({
|
|
710
|
-
mutationFn: async (
|
|
710
|
+
mutationFn: async (t) => await r.reconV2.createReconV2(t),
|
|
711
711
|
...e
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function z(e = {}) {
|
|
715
715
|
return u({
|
|
716
|
-
mutationFn: async (
|
|
716
|
+
mutationFn: async (t) => await r.reconV2.updateReconV2(t),
|
|
717
717
|
...e
|
|
718
718
|
});
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function dt(e = {}) {
|
|
721
721
|
return u({
|
|
722
|
-
mutationFn: async (
|
|
722
|
+
mutationFn: async (t) => await r.reconV2.deleteReconV2(t),
|
|
723
723
|
...e
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function N(e = {}) {
|
|
727
727
|
return u({
|
|
728
|
-
mutationFn: async (
|
|
728
|
+
mutationFn: async (t) => await r.reconV2.runReconV2(t),
|
|
729
729
|
...e
|
|
730
730
|
});
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function _(e = {}) {
|
|
733
733
|
return s({
|
|
734
734
|
queryKey: ["reconV2Workflows"],
|
|
735
735
|
queryFn: async () => await r.reconV2.getAllReconV2Workflows(),
|
|
736
736
|
...e
|
|
737
737
|
});
|
|
738
738
|
}
|
|
739
|
-
function j(e,
|
|
740
|
-
const
|
|
739
|
+
function j(e, t = {}) {
|
|
740
|
+
const n = e?.trim();
|
|
741
741
|
return s({
|
|
742
|
-
queryKey: ["reconV2", "runs",
|
|
743
|
-
queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId:
|
|
744
|
-
enabled: !!
|
|
745
|
-
...
|
|
742
|
+
queryKey: ["reconV2", "runs", n],
|
|
743
|
+
queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId: n }),
|
|
744
|
+
enabled: !!n,
|
|
745
|
+
...t
|
|
746
746
|
});
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function pt(e = {}) {
|
|
749
749
|
return s({
|
|
750
750
|
queryKey: ["reconV2", "templates"],
|
|
751
751
|
queryFn: async () => await r.reconV2.getReconV2Templates(),
|
|
752
752
|
...e
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function J(e, t = {}) {
|
|
756
756
|
return s({
|
|
757
757
|
queryKey: ["reconV2", "runResult", e],
|
|
758
758
|
queryFn: async () => await r.reconV2.getReconV2RunResult({ runId: e }),
|
|
759
759
|
enabled: !!e,
|
|
760
|
-
...
|
|
760
|
+
...t
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function $(e, t = {}) {
|
|
764
764
|
return s({
|
|
765
765
|
queryKey: [
|
|
766
766
|
"reconV2",
|
|
@@ -775,149 +775,149 @@ function J(e, n = {}) {
|
|
|
775
775
|
e
|
|
776
776
|
),
|
|
777
777
|
enabled: !!e.runId && !!e.workflowId,
|
|
778
|
-
...
|
|
778
|
+
...t
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function gt(e = {}) {
|
|
782
782
|
return u({
|
|
783
|
-
mutationFn: async (
|
|
783
|
+
mutationFn: async (t) => await r.reconV2.startReconV2Profile(t),
|
|
784
784
|
...e
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function ft(e, t = "left", n = {}) {
|
|
788
788
|
return s({
|
|
789
|
-
queryKey: ["reconV2", "profile", e,
|
|
789
|
+
queryKey: ["reconV2", "profile", e, t],
|
|
790
790
|
queryFn: async () => await r.reconV2.getReconV2ProfileResult({
|
|
791
791
|
workflowId: e,
|
|
792
|
-
side:
|
|
792
|
+
side: t
|
|
793
793
|
}),
|
|
794
794
|
enabled: !!e,
|
|
795
|
-
...
|
|
795
|
+
...n
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function mt(e = {}) {
|
|
799
799
|
return u({
|
|
800
|
-
mutationFn: async (
|
|
800
|
+
mutationFn: async (t) => await r.reconV2.startReconV2Clean(t),
|
|
801
801
|
...e
|
|
802
802
|
});
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function bt(e, t = "left", n = {}) {
|
|
805
805
|
return s({
|
|
806
|
-
queryKey: ["reconV2", "clean", e,
|
|
806
|
+
queryKey: ["reconV2", "clean", e, t],
|
|
807
807
|
queryFn: async () => await r.reconV2.getReconV2CleanResult({
|
|
808
808
|
workflowId: e,
|
|
809
|
-
side:
|
|
809
|
+
side: t
|
|
810
810
|
}),
|
|
811
811
|
enabled: !!e,
|
|
812
|
-
...
|
|
812
|
+
...n
|
|
813
813
|
});
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function wt(e, t, n, a = {}) {
|
|
816
816
|
return s({
|
|
817
|
-
queryKey: ["reconV2", "diff", e,
|
|
817
|
+
queryKey: ["reconV2", "diff", e, n],
|
|
818
818
|
queryFn: async () => await r.reconV2.getReconV2Diff({
|
|
819
819
|
runId: e,
|
|
820
|
-
workflowId:
|
|
821
|
-
prevRunId:
|
|
820
|
+
workflowId: t,
|
|
821
|
+
prevRunId: n
|
|
822
822
|
}),
|
|
823
|
-
enabled: !!e && !!
|
|
823
|
+
enabled: !!e && !!t && !!n,
|
|
824
824
|
...a
|
|
825
825
|
});
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function Ft(e, t, n = {}) {
|
|
828
828
|
return s({
|
|
829
829
|
queryKey: ["reconV2", "explanation", e],
|
|
830
830
|
queryFn: async () => await r.reconV2.getReconV2Explanation({
|
|
831
831
|
runId: e,
|
|
832
|
-
workflowId:
|
|
832
|
+
workflowId: t
|
|
833
833
|
}),
|
|
834
|
-
enabled: !!e && !!
|
|
835
|
-
...
|
|
834
|
+
enabled: !!e && !!t,
|
|
835
|
+
...n
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
838
|
const X = ["SUCCEEDED", "FAILED"];
|
|
839
|
-
function Y(e,
|
|
840
|
-
const [
|
|
839
|
+
function Y(e, t = {}) {
|
|
840
|
+
const [n, a] = q(
|
|
841
841
|
void 0
|
|
842
|
-
), [o, i] =
|
|
843
|
-
return c.current =
|
|
842
|
+
), [o, i] = q(!1), c = B(t.onComplete);
|
|
843
|
+
return c.current = t.onComplete, K(() => {
|
|
844
844
|
if (!e)
|
|
845
845
|
return;
|
|
846
|
-
const l =
|
|
846
|
+
const l = x().websocketProvider;
|
|
847
847
|
if (!l)
|
|
848
848
|
return;
|
|
849
849
|
a(void 0), i(!1);
|
|
850
|
-
const g =
|
|
850
|
+
const g = A.websocketUtils.ReconResultChannel;
|
|
851
851
|
let f = !1;
|
|
852
852
|
const m = () => {
|
|
853
853
|
f || (f = !0, l.unbind(g, e));
|
|
854
854
|
};
|
|
855
|
-
return l.bind(g, e, (
|
|
856
|
-
let
|
|
855
|
+
return l.bind(g, e, (F) => {
|
|
856
|
+
let b;
|
|
857
857
|
try {
|
|
858
|
-
|
|
858
|
+
b = typeof F == "string" ? JSON.parse(F) : F;
|
|
859
859
|
} catch {
|
|
860
|
-
|
|
860
|
+
b = { status: void 0 };
|
|
861
861
|
}
|
|
862
|
-
a(
|
|
863
|
-
const
|
|
864
|
-
|
|
862
|
+
a(b);
|
|
863
|
+
const w = b?.status?.toUpperCase();
|
|
864
|
+
w && X.includes(w) && (i(!0), c.current?.(b), m());
|
|
865
865
|
}), m;
|
|
866
|
-
}, [e]), { data:
|
|
866
|
+
}, [e]), { data: n, isTerminal: o };
|
|
867
867
|
}
|
|
868
|
-
function Z(e,
|
|
869
|
-
const
|
|
868
|
+
function Z(e, t = {}) {
|
|
869
|
+
const n = e?.trim();
|
|
870
870
|
return s({
|
|
871
|
-
queryKey: ["reconV2", "workflow",
|
|
872
|
-
queryFn: async () => await r.reconV2.getReconV2Workflow({ id:
|
|
873
|
-
enabled: !!
|
|
874
|
-
...
|
|
871
|
+
queryKey: ["reconV2", "workflow", n],
|
|
872
|
+
queryFn: async () => await r.reconV2.getReconV2Workflow({ id: n }),
|
|
873
|
+
enabled: !!n,
|
|
874
|
+
...t
|
|
875
875
|
});
|
|
876
876
|
}
|
|
877
|
-
function ee(e,
|
|
878
|
-
return
|
|
879
|
-
(
|
|
877
|
+
function ee(e, t) {
|
|
878
|
+
return t.split(".").reduce(
|
|
879
|
+
(n, a) => n && typeof n == "object" ? n[a] : void 0,
|
|
880
880
|
e
|
|
881
881
|
);
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
const
|
|
883
|
+
function qt(e, t = {}) {
|
|
884
|
+
const n = _(t);
|
|
885
885
|
return {
|
|
886
886
|
workflows: h(() => {
|
|
887
|
-
const o =
|
|
887
|
+
const o = n.data ?? [];
|
|
888
888
|
return e?.key ? o.filter((i) => ee(i, e.key) === e.value) : o;
|
|
889
|
-
}, [
|
|
890
|
-
isLoading:
|
|
891
|
-
error:
|
|
892
|
-
refetch:
|
|
889
|
+
}, [n.data, e?.key, e?.value]),
|
|
890
|
+
isLoading: n.isLoading,
|
|
891
|
+
error: n.error,
|
|
892
|
+
refetch: n.refetch
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
const
|
|
895
|
+
function ht(e, t = {}) {
|
|
896
|
+
const n = Z(e, t);
|
|
897
897
|
return {
|
|
898
|
-
workflow:
|
|
899
|
-
isLoading:
|
|
900
|
-
error:
|
|
901
|
-
refetch:
|
|
898
|
+
workflow: n.data,
|
|
899
|
+
isLoading: n.isLoading,
|
|
900
|
+
error: n.error,
|
|
901
|
+
refetch: n.refetch
|
|
902
902
|
};
|
|
903
903
|
}
|
|
904
|
-
function
|
|
905
|
-
const e =
|
|
904
|
+
function Tt() {
|
|
905
|
+
const e = Q(), t = z();
|
|
906
906
|
return {
|
|
907
907
|
create: e.mutateAsync,
|
|
908
|
-
update:
|
|
909
|
-
isSaving: e.isPending ||
|
|
910
|
-
error: e.error ??
|
|
911
|
-
data:
|
|
908
|
+
update: t.mutateAsync,
|
|
909
|
+
isSaving: e.isPending || t.isPending,
|
|
910
|
+
error: e.error ?? t.error,
|
|
911
|
+
data: t.data ?? e.data
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
const
|
|
914
|
+
function Dt(e, t = {}) {
|
|
915
|
+
const n = e?.trim(), [a, o] = q(void 0), i = N(), c = Y(a, { onComplete: t.onComplete }), l = j(n);
|
|
916
916
|
return {
|
|
917
917
|
startRun: async (f = {}) => {
|
|
918
|
-
if (!
|
|
918
|
+
if (!n)
|
|
919
919
|
throw new Error("workflowId is required to start a run");
|
|
920
|
-
const m = await i.mutateAsync({ workflowId:
|
|
920
|
+
const m = await i.mutateAsync({ workflowId: n, ...f });
|
|
921
921
|
return o(m?.runId), m?.runId;
|
|
922
922
|
},
|
|
923
923
|
runId: a,
|
|
@@ -928,17 +928,17 @@ function Rn(e, n = {}) {
|
|
|
928
928
|
refetchRuns: l.refetch
|
|
929
929
|
};
|
|
930
930
|
}
|
|
931
|
-
function
|
|
931
|
+
function Ct({
|
|
932
932
|
runId: e,
|
|
933
|
-
workflowId:
|
|
934
|
-
exceptionType:
|
|
933
|
+
workflowId: t,
|
|
934
|
+
exceptionType: n,
|
|
935
935
|
ruleFilter: a,
|
|
936
936
|
orderBy: o
|
|
937
937
|
}) {
|
|
938
|
-
const i =
|
|
938
|
+
const i = J(e), c = $({
|
|
939
939
|
runId: e ?? void 0,
|
|
940
|
-
workflowId:
|
|
941
|
-
exceptionType:
|
|
940
|
+
workflowId: t ?? void 0,
|
|
941
|
+
exceptionType: n,
|
|
942
942
|
ruleFilter: a,
|
|
943
943
|
orderBy: o
|
|
944
944
|
}), l = c.data?.result;
|
|
@@ -951,363 +951,423 @@ function kn({
|
|
|
951
951
|
refetch: c.refetch
|
|
952
952
|
};
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function St(e = {}) {
|
|
955
955
|
return s({
|
|
956
956
|
queryKey: ["users"],
|
|
957
957
|
queryFn: async () => await r.user.getAllUsers(),
|
|
958
958
|
...e
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function kt(e = {}) {
|
|
962
962
|
return s({
|
|
963
963
|
queryKey: ["teams"],
|
|
964
964
|
queryFn: async () => await r.team.getAllTeams(),
|
|
965
965
|
...e
|
|
966
966
|
});
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Rt(e = {}) {
|
|
969
969
|
return s({
|
|
970
970
|
queryKey: ["httpTriggers"],
|
|
971
971
|
queryFn: async () => await r.workflow.getAllHttpTriggers(),
|
|
972
972
|
...e
|
|
973
973
|
});
|
|
974
974
|
}
|
|
975
|
-
function
|
|
975
|
+
function xt(e = {}) {
|
|
976
976
|
return u({
|
|
977
|
-
mutationFn: async (
|
|
977
|
+
mutationFn: async (t) => await r.process.markTaskDone(t),
|
|
978
978
|
...e
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Kt(e = {}) {
|
|
982
982
|
return u({
|
|
983
|
-
mutationFn: async (
|
|
983
|
+
mutationFn: async (t) => await r.process.reassignTask(t),
|
|
984
984
|
...e
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function Pt(e, t = {}) {
|
|
988
988
|
return s({
|
|
989
989
|
queryKey: ["processTriggers", e],
|
|
990
990
|
queryFn: async () => await r.process.getTriggersBySheet(e),
|
|
991
991
|
enabled: !!e,
|
|
992
|
-
...
|
|
992
|
+
...t
|
|
993
993
|
});
|
|
994
994
|
}
|
|
995
|
-
function
|
|
996
|
-
const
|
|
995
|
+
function It(e = {}) {
|
|
996
|
+
const t = p();
|
|
997
997
|
return u({
|
|
998
|
-
mutationFn: async (
|
|
999
|
-
onSuccess: (
|
|
1000
|
-
|
|
998
|
+
mutationFn: async (n) => await r.process.registerProcessTrigger(n),
|
|
999
|
+
onSuccess: (n, a) => {
|
|
1000
|
+
t.invalidateQueries({
|
|
1001
1001
|
queryKey: ["processTriggers", a.process_sheet_id]
|
|
1002
1002
|
});
|
|
1003
1003
|
},
|
|
1004
1004
|
...e
|
|
1005
1005
|
});
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const
|
|
1007
|
+
function vt(e = {}) {
|
|
1008
|
+
const t = p();
|
|
1009
1009
|
return u({
|
|
1010
|
-
mutationFn: async ({ id:
|
|
1011
|
-
onSuccess: (
|
|
1012
|
-
|
|
1010
|
+
mutationFn: async ({ id: n }) => await r.process.deleteProcessTrigger(n),
|
|
1011
|
+
onSuccess: (n, a) => {
|
|
1012
|
+
t.invalidateQueries({
|
|
1013
1013
|
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
1014
1014
|
});
|
|
1015
1015
|
},
|
|
1016
1016
|
...e
|
|
1017
1017
|
});
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
const
|
|
1019
|
+
function Vt(e = {}) {
|
|
1020
|
+
const t = p();
|
|
1021
1021
|
return u({
|
|
1022
|
-
mutationFn: async ({ triggerId:
|
|
1023
|
-
onSuccess: (
|
|
1024
|
-
|
|
1022
|
+
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.pauseSchedule(n, a),
|
|
1023
|
+
onSuccess: (n, a) => {
|
|
1024
|
+
t.invalidateQueries({
|
|
1025
1025
|
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
1026
|
-
}),
|
|
1026
|
+
}), t.invalidateQueries({
|
|
1027
1027
|
queryKey: ["scheduleStatus", a.triggerId, a.scheduleName]
|
|
1028
1028
|
});
|
|
1029
1029
|
},
|
|
1030
1030
|
...e
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1034
|
-
const
|
|
1033
|
+
function Et(e = {}) {
|
|
1034
|
+
const t = p();
|
|
1035
1035
|
return u({
|
|
1036
|
-
mutationFn: async ({ triggerId:
|
|
1037
|
-
onSuccess: (
|
|
1038
|
-
|
|
1036
|
+
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.resumeSchedule(n, a),
|
|
1037
|
+
onSuccess: (n, a) => {
|
|
1038
|
+
t.invalidateQueries({
|
|
1039
1039
|
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
1040
|
-
}),
|
|
1040
|
+
}), t.invalidateQueries({
|
|
1041
1041
|
queryKey: ["scheduleStatus", a.triggerId, a.scheduleName]
|
|
1042
1042
|
});
|
|
1043
1043
|
},
|
|
1044
1044
|
...e
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function At(e, t, n = {}) {
|
|
1048
1048
|
return s({
|
|
1049
|
-
queryKey: ["scheduleStatus", e,
|
|
1049
|
+
queryKey: ["scheduleStatus", e, t],
|
|
1050
1050
|
queryFn: async () => await r.process.getScheduleStatus(
|
|
1051
1051
|
e,
|
|
1052
|
-
|
|
1052
|
+
t
|
|
1053
1053
|
),
|
|
1054
|
-
enabled: !!e && !!
|
|
1055
|
-
...
|
|
1054
|
+
enabled: !!e && !!t,
|
|
1055
|
+
...n
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1059
|
-
const
|
|
1058
|
+
function Bt(e = {}) {
|
|
1059
|
+
const t = p();
|
|
1060
1060
|
return u({
|
|
1061
|
-
mutationFn: async ({ triggerId:
|
|
1062
|
-
onSuccess: (
|
|
1063
|
-
|
|
1061
|
+
mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.executeNow(n, a),
|
|
1062
|
+
onSuccess: (n, a) => {
|
|
1063
|
+
t.invalidateQueries({
|
|
1064
1064
|
queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
|
|
1065
1065
|
});
|
|
1066
1066
|
},
|
|
1067
1067
|
...e
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const
|
|
1070
|
+
function Gt(e = {}) {
|
|
1071
|
+
const t = p();
|
|
1072
1072
|
return u({
|
|
1073
|
-
mutationFn: async (
|
|
1074
|
-
|
|
1073
|
+
mutationFn: async (n) => await r.processTree.createOrUpdateProcessTreeTrigger(
|
|
1074
|
+
n
|
|
1075
1075
|
),
|
|
1076
|
-
onSuccess: (
|
|
1077
|
-
|
|
1076
|
+
onSuccess: (n, a) => {
|
|
1077
|
+
t.invalidateQueries({
|
|
1078
1078
|
queryKey: ["processTreeTriggers", a.sheetId]
|
|
1079
1079
|
});
|
|
1080
1080
|
},
|
|
1081
1081
|
...e
|
|
1082
1082
|
});
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const
|
|
1084
|
+
function Mt(e = {}) {
|
|
1085
|
+
const t = p();
|
|
1086
1086
|
return u({
|
|
1087
|
-
mutationFn: async (
|
|
1088
|
-
onSuccess: (
|
|
1089
|
-
|
|
1087
|
+
mutationFn: async (n) => await r.processTree.executeProcessTreeTrigger(n),
|
|
1088
|
+
onSuccess: (n, a) => {
|
|
1089
|
+
t.invalidateQueries({
|
|
1090
1090
|
queryKey: ["processTreeRuns", a.sheetId]
|
|
1091
1091
|
});
|
|
1092
1092
|
},
|
|
1093
1093
|
...e
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1097
|
-
const
|
|
1096
|
+
function Ot(e = {}) {
|
|
1097
|
+
const t = p();
|
|
1098
1098
|
return u({
|
|
1099
|
-
mutationFn: async ({ payload:
|
|
1100
|
-
onSuccess: (
|
|
1101
|
-
a.sheetId &&
|
|
1099
|
+
mutationFn: async ({ payload: n }) => await r.processTree.terminatePipelines(n),
|
|
1100
|
+
onSuccess: (n, a) => {
|
|
1101
|
+
a.sheetId && t.invalidateQueries({
|
|
1102
1102
|
queryKey: ["processTreeRuns", a.sheetId]
|
|
1103
|
-
}), a.instanceId &&
|
|
1103
|
+
}), a.instanceId && t.invalidateQueries({
|
|
1104
1104
|
queryKey: ["processTreeRun", a.instanceId]
|
|
1105
1105
|
});
|
|
1106
1106
|
},
|
|
1107
1107
|
...e
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1111
|
-
const
|
|
1110
|
+
function Lt(e = {}) {
|
|
1111
|
+
const t = p();
|
|
1112
1112
|
return u({
|
|
1113
|
-
mutationFn: async (
|
|
1114
|
-
onSuccess: (
|
|
1115
|
-
|
|
1113
|
+
mutationFn: async (n) => await r.processTree.logProcessTreeRun(n),
|
|
1114
|
+
onSuccess: (n, a) => {
|
|
1115
|
+
t.invalidateQueries({
|
|
1116
1116
|
queryKey: ["processTreeRuns", a.sheetId]
|
|
1117
|
-
}),
|
|
1117
|
+
}), t.invalidateQueries({
|
|
1118
1118
|
queryKey: ["processTreeRun", a.instanceId]
|
|
1119
1119
|
});
|
|
1120
1120
|
},
|
|
1121
1121
|
...e
|
|
1122
1122
|
});
|
|
1123
1123
|
}
|
|
1124
|
-
function
|
|
1125
|
-
const
|
|
1124
|
+
function Ut(e = {}) {
|
|
1125
|
+
const t = p();
|
|
1126
1126
|
return u({
|
|
1127
1127
|
mutationFn: async ({
|
|
1128
|
-
instanceId:
|
|
1128
|
+
instanceId: n,
|
|
1129
1129
|
context: a
|
|
1130
1130
|
}) => await r.processTree.updateProcessTreeRunContext(
|
|
1131
|
-
|
|
1131
|
+
n,
|
|
1132
1132
|
a
|
|
1133
1133
|
),
|
|
1134
|
-
onSuccess: (
|
|
1135
|
-
|
|
1134
|
+
onSuccess: (n, a) => {
|
|
1135
|
+
t.invalidateQueries({
|
|
1136
1136
|
queryKey: ["processTreeRun", a.instanceId]
|
|
1137
1137
|
});
|
|
1138
1138
|
},
|
|
1139
1139
|
...e
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1143
|
-
const
|
|
1142
|
+
function Ht(e = {}) {
|
|
1143
|
+
const t = p();
|
|
1144
1144
|
return u({
|
|
1145
|
-
mutationFn: async ({ id:
|
|
1146
|
-
onSuccess: (
|
|
1147
|
-
|
|
1145
|
+
mutationFn: async ({ id: n }) => await r.processTree.deleteProcessTreeTrigger(n),
|
|
1146
|
+
onSuccess: (n, a) => {
|
|
1147
|
+
t.invalidateQueries({
|
|
1148
1148
|
queryKey: a.sheetId ? ["processTreeTriggers", a.sheetId] : ["processTreeTriggers"]
|
|
1149
1149
|
});
|
|
1150
1150
|
},
|
|
1151
1151
|
...e
|
|
1152
1152
|
});
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function Wt(e, t = {}) {
|
|
1155
1155
|
return s({
|
|
1156
1156
|
queryKey: ["processTreeTrigger", e],
|
|
1157
1157
|
queryFn: async () => await r.processTree.getProcessTreeTrigger(e),
|
|
1158
1158
|
enabled: !!e,
|
|
1159
|
-
...
|
|
1159
|
+
...t
|
|
1160
1160
|
});
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function Qt(e, t = {}) {
|
|
1163
1163
|
return s({
|
|
1164
1164
|
queryKey: ["processTreeTriggers", e],
|
|
1165
1165
|
queryFn: async () => await r.processTree.getProcessTreeTriggersBySheetId(e),
|
|
1166
1166
|
enabled: !!e,
|
|
1167
|
-
...
|
|
1167
|
+
...t
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function zt(e, t = {}) {
|
|
1171
1171
|
return s({
|
|
1172
1172
|
queryKey: ["processTreeRuns", e],
|
|
1173
1173
|
queryFn: async () => await r.processTree.getProcessTreeRunsBySheetId(e),
|
|
1174
1174
|
enabled: !!e,
|
|
1175
|
-
...
|
|
1175
|
+
...t
|
|
1176
1176
|
});
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function Nt(e, t, n = {}) {
|
|
1179
1179
|
return s({
|
|
1180
1180
|
queryKey: [
|
|
1181
1181
|
"processTreeRuns",
|
|
1182
1182
|
e,
|
|
1183
1183
|
"paginated",
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1184
|
+
t?.page,
|
|
1185
|
+
t?.pageSize,
|
|
1186
|
+
t?.orderByCreatedDate
|
|
1187
1187
|
],
|
|
1188
1188
|
queryFn: async () => await r.processTree.getProcessTreeRunsBySheetIdPaginated(
|
|
1189
1189
|
e,
|
|
1190
|
-
|
|
1190
|
+
t
|
|
1191
1191
|
),
|
|
1192
1192
|
enabled: !!e,
|
|
1193
|
-
...
|
|
1193
|
+
...n
|
|
1194
1194
|
});
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function _t(e, t = {}) {
|
|
1197
1197
|
return s({
|
|
1198
1198
|
queryKey: ["processTreeRun", e],
|
|
1199
1199
|
queryFn: async () => await r.processTree.getProcessTreeRunByInstanceId(
|
|
1200
1200
|
e
|
|
1201
1201
|
),
|
|
1202
1202
|
enabled: !!e,
|
|
1203
|
-
...
|
|
1203
|
+
...t
|
|
1204
1204
|
});
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function jt(e = {}) {
|
|
1207
1207
|
return s({
|
|
1208
1208
|
queryKey: ["customAuthzModel"],
|
|
1209
1209
|
queryFn: async () => await r.customAuthz.getCustomAuthzModel(),
|
|
1210
1210
|
...e
|
|
1211
1211
|
});
|
|
1212
1212
|
}
|
|
1213
|
-
function
|
|
1214
|
-
const
|
|
1213
|
+
function Jt(e = {}) {
|
|
1214
|
+
const t = p();
|
|
1215
1215
|
return u({
|
|
1216
|
-
mutationFn: async (
|
|
1216
|
+
mutationFn: async (n) => await r.customAuthz.registerCustomAuthzModel(n),
|
|
1217
1217
|
onSuccess: () => {
|
|
1218
|
-
|
|
1218
|
+
t.invalidateQueries({ queryKey: ["customAuthzModel"] });
|
|
1219
1219
|
},
|
|
1220
1220
|
...e
|
|
1221
1221
|
});
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function $t(e = {}) {
|
|
1224
1224
|
return u({
|
|
1225
|
-
mutationFn: async (
|
|
1225
|
+
mutationFn: async (t) => await r.customAuthz.updateCustomObjectPermissions(t),
|
|
1226
1226
|
...e
|
|
1227
1227
|
});
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function Xt(e = {}) {
|
|
1230
1230
|
return u({
|
|
1231
|
-
mutationFn: async (
|
|
1232
|
-
|
|
1231
|
+
mutationFn: async (t) => await r.customAuthz.bulkUpdateCustomObjectPermissions(
|
|
1232
|
+
t
|
|
1233
1233
|
),
|
|
1234
1234
|
...e
|
|
1235
1235
|
});
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function Yt(e = {}) {
|
|
1238
1238
|
return u({
|
|
1239
|
-
mutationFn: async (
|
|
1239
|
+
mutationFn: async (t) => await r.customAuthz.checkCustomPermissions(t),
|
|
1240
1240
|
...e
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function Zt(e = {}) {
|
|
1244
1244
|
return u({
|
|
1245
|
-
mutationFn: async (
|
|
1245
|
+
mutationFn: async (t) => await r.customAuthz.bulkCheckCustomPermissions(t),
|
|
1246
1246
|
...e
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function en(e = {}) {
|
|
1250
1250
|
return s({
|
|
1251
|
-
queryKey: ["
|
|
1252
|
-
queryFn: async () => await r.
|
|
1253
|
-
...
|
|
1251
|
+
queryKey: ["customTypeMetadata"],
|
|
1252
|
+
queryFn: async () => await r.customAuthz.listCustomTypeMetadata(),
|
|
1253
|
+
...e
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1256
|
+
function tn(e, t = {}) {
|
|
1257
|
+
const n = e?.trim(), { enabled: a, ...o } = t;
|
|
1258
|
+
return s({
|
|
1259
|
+
queryKey: ["customTypeMetadata", n],
|
|
1260
|
+
queryFn: async () => await r.customAuthz.getCustomTypeMetadata(e),
|
|
1261
|
+
...o,
|
|
1262
|
+
// Combine the caller's setting with the gate: callers may disable the query
|
|
1263
|
+
// but must not enable it with an empty type (would 400).
|
|
1264
|
+
enabled: (a ?? !0) && !!n
|
|
1260
1265
|
});
|
|
1261
1266
|
}
|
|
1262
|
-
function
|
|
1267
|
+
function nn(e = {}) {
|
|
1268
|
+
const t = p();
|
|
1263
1269
|
return u({
|
|
1264
|
-
mutationFn: async (n) => await r.
|
|
1270
|
+
mutationFn: async (n) => await r.customAuthz.registerCustomTypeMetadata(n),
|
|
1271
|
+
onSuccess: () => {
|
|
1272
|
+
t.invalidateQueries({ queryKey: ["customTypeMetadata"] });
|
|
1273
|
+
},
|
|
1265
1274
|
...e
|
|
1266
1275
|
});
|
|
1267
1276
|
}
|
|
1268
|
-
function
|
|
1277
|
+
function rn(e = {}) {
|
|
1278
|
+
const t = p();
|
|
1269
1279
|
return u({
|
|
1270
|
-
mutationFn: async (n) => await r.
|
|
1280
|
+
mutationFn: async (n) => await r.customAuthz.deleteCustomTypeMetadata(n),
|
|
1281
|
+
onSuccess: () => {
|
|
1282
|
+
t.invalidateQueries({ queryKey: ["customTypeMetadata"] });
|
|
1283
|
+
},
|
|
1271
1284
|
...e
|
|
1272
1285
|
});
|
|
1273
1286
|
}
|
|
1274
|
-
function
|
|
1287
|
+
function an(e, t = {}) {
|
|
1288
|
+
const n = e?.type?.trim(), a = e?.relation?.trim(), { enabled: o, ...i } = t;
|
|
1275
1289
|
return s({
|
|
1276
|
-
queryKey: ["
|
|
1277
|
-
queryFn: async () => await r.
|
|
1278
|
-
...
|
|
1290
|
+
queryKey: ["customObjects", n, a],
|
|
1291
|
+
queryFn: async () => await r.customAuthz.listCustomObjects(e),
|
|
1292
|
+
...i,
|
|
1293
|
+
// Combine the caller's setting with the gate: callers may disable the query
|
|
1294
|
+
// but must not enable it with an empty type/relation (would 400).
|
|
1295
|
+
enabled: (o ?? !0) && !!n && !!a
|
|
1279
1296
|
});
|
|
1280
1297
|
}
|
|
1281
|
-
function
|
|
1298
|
+
function un(e, t = {}) {
|
|
1299
|
+
const n = e?.trim(), { enabled: a, ...o } = t;
|
|
1282
1300
|
return s({
|
|
1283
|
-
queryKey: ["
|
|
1284
|
-
queryFn: async () => await r.
|
|
1285
|
-
|
|
1286
|
-
|
|
1301
|
+
queryKey: ["customObjectsOfType", n],
|
|
1302
|
+
queryFn: async () => await r.customAuthz.listCustomObjectsOfType(e),
|
|
1303
|
+
...o,
|
|
1304
|
+
// Combine the caller's setting with the gate: callers may disable the query
|
|
1305
|
+
// but must not enable it with an empty type (would 400).
|
|
1306
|
+
enabled: (a ?? !0) && !!n
|
|
1287
1307
|
});
|
|
1288
1308
|
}
|
|
1289
|
-
function
|
|
1309
|
+
function on(e = {}, t = {}) {
|
|
1310
|
+
return s({
|
|
1311
|
+
queryKey: ["inboxItems", "all", e.page, e.perPage],
|
|
1312
|
+
queryFn: async () => await r.inboxItems.getAllInboxItems(e),
|
|
1313
|
+
...t
|
|
1314
|
+
});
|
|
1315
|
+
}
|
|
1316
|
+
function sn(e = {}) {
|
|
1290
1317
|
return u({
|
|
1291
|
-
mutationFn: async (
|
|
1318
|
+
mutationFn: async (t) => await r.inboxItems.markItemAsRead(t),
|
|
1292
1319
|
...e
|
|
1293
1320
|
});
|
|
1294
1321
|
}
|
|
1295
|
-
function
|
|
1322
|
+
function cn(e = {}) {
|
|
1296
1323
|
return u({
|
|
1297
|
-
mutationFn: async (
|
|
1324
|
+
mutationFn: async (t) => await r.inboxItems.markItemAsUnread(t),
|
|
1298
1325
|
...e
|
|
1299
1326
|
});
|
|
1300
1327
|
}
|
|
1301
|
-
function
|
|
1328
|
+
function ln(e = {}) {
|
|
1302
1329
|
return u({
|
|
1303
|
-
mutationFn: async (
|
|
1330
|
+
mutationFn: async (t) => await r.inboxItems.createInboxItemPerUser(t),
|
|
1304
1331
|
...e
|
|
1305
1332
|
});
|
|
1306
1333
|
}
|
|
1307
|
-
function
|
|
1334
|
+
function yn(e = {}) {
|
|
1308
1335
|
return s({
|
|
1309
|
-
queryKey: [
|
|
1310
|
-
|
|
1336
|
+
queryKey: ["inboxV2", "types"],
|
|
1337
|
+
queryFn: async () => await r.inboxV2.listTypes(),
|
|
1338
|
+
...e
|
|
1339
|
+
});
|
|
1340
|
+
}
|
|
1341
|
+
function dn(e, t = {}) {
|
|
1342
|
+
return s({
|
|
1343
|
+
queryKey: ["inboxV2", "type", e],
|
|
1344
|
+
queryFn: async () => await r.inboxV2.getType(e),
|
|
1345
|
+
enabled: !!e,
|
|
1346
|
+
...t
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
function pn(e = {}) {
|
|
1350
|
+
return u({
|
|
1351
|
+
mutationFn: async (t) => await r.inboxV2.createType(t),
|
|
1352
|
+
...e
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
1355
|
+
function gn(e = {}) {
|
|
1356
|
+
return u({
|
|
1357
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.updateType(t, n),
|
|
1358
|
+
...e
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
function fn(e = {}) {
|
|
1362
|
+
return u({
|
|
1363
|
+
mutationFn: async (t) => await r.inboxV2.deleteType(t),
|
|
1364
|
+
...e
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
function mn(e = {}, t = {}) {
|
|
1368
|
+
return s({
|
|
1369
|
+
queryKey: [
|
|
1370
|
+
"inboxV2",
|
|
1311
1371
|
"items",
|
|
1312
1372
|
e.status,
|
|
1313
1373
|
e.typeKey,
|
|
@@ -1316,135 +1376,135 @@ function lt(e = {}, n = {}) {
|
|
|
1316
1376
|
e.perPage
|
|
1317
1377
|
],
|
|
1318
1378
|
queryFn: async () => await r.inboxV2.listMyItems(e),
|
|
1319
|
-
...
|
|
1379
|
+
...t
|
|
1320
1380
|
});
|
|
1321
1381
|
}
|
|
1322
|
-
function
|
|
1382
|
+
function bn(e, t = {}) {
|
|
1323
1383
|
return s({
|
|
1324
1384
|
queryKey: ["inboxV2", "item", e],
|
|
1325
1385
|
queryFn: async () => await r.inboxV2.getItem(e),
|
|
1326
1386
|
enabled: !!e,
|
|
1327
|
-
...
|
|
1387
|
+
...t
|
|
1328
1388
|
});
|
|
1329
1389
|
}
|
|
1330
|
-
function
|
|
1390
|
+
function wn(e = {}) {
|
|
1331
1391
|
return u({
|
|
1332
|
-
mutationFn: async (
|
|
1392
|
+
mutationFn: async (t) => await r.inboxV2.createItem(t),
|
|
1333
1393
|
...e
|
|
1334
1394
|
});
|
|
1335
1395
|
}
|
|
1336
|
-
function
|
|
1396
|
+
function Fn(e = {}) {
|
|
1337
1397
|
return u({
|
|
1338
|
-
mutationFn: async ({ id:
|
|
1398
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.updateItem(t, n),
|
|
1339
1399
|
...e
|
|
1340
1400
|
});
|
|
1341
1401
|
}
|
|
1342
|
-
function
|
|
1402
|
+
function qn(e = {}) {
|
|
1343
1403
|
return u({
|
|
1344
|
-
mutationFn: async (
|
|
1404
|
+
mutationFn: async (t) => await r.inboxV2.markRead(t),
|
|
1345
1405
|
...e
|
|
1346
1406
|
});
|
|
1347
1407
|
}
|
|
1348
|
-
function
|
|
1408
|
+
function hn(e = {}) {
|
|
1349
1409
|
return u({
|
|
1350
|
-
mutationFn: async (
|
|
1410
|
+
mutationFn: async (t) => await r.inboxV2.markUnread(t),
|
|
1351
1411
|
...e
|
|
1352
1412
|
});
|
|
1353
1413
|
}
|
|
1354
|
-
function
|
|
1414
|
+
function Tn(e = {}) {
|
|
1355
1415
|
return u({
|
|
1356
|
-
mutationFn: async ({ id:
|
|
1416
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.snoozeItem(t, n),
|
|
1357
1417
|
...e
|
|
1358
1418
|
});
|
|
1359
1419
|
}
|
|
1360
|
-
function
|
|
1420
|
+
function Dn(e = {}) {
|
|
1361
1421
|
return u({
|
|
1362
|
-
mutationFn: async (
|
|
1422
|
+
mutationFn: async (t) => await r.inboxV2.dismissItem(t),
|
|
1363
1423
|
...e
|
|
1364
1424
|
});
|
|
1365
1425
|
}
|
|
1366
|
-
function
|
|
1426
|
+
function Cn(e = {}) {
|
|
1367
1427
|
return u({
|
|
1368
|
-
mutationFn: async (
|
|
1428
|
+
mutationFn: async (t) => await r.inboxV2.claimItem(t),
|
|
1369
1429
|
...e
|
|
1370
1430
|
});
|
|
1371
1431
|
}
|
|
1372
|
-
function
|
|
1432
|
+
function Sn(e = {}) {
|
|
1373
1433
|
return u({
|
|
1374
|
-
mutationFn: async (
|
|
1434
|
+
mutationFn: async (t) => await r.inboxV2.completeItem(t),
|
|
1375
1435
|
...e
|
|
1376
1436
|
});
|
|
1377
1437
|
}
|
|
1378
|
-
function
|
|
1438
|
+
function kn(e = {}) {
|
|
1379
1439
|
return u({
|
|
1380
|
-
mutationFn: async (
|
|
1440
|
+
mutationFn: async (t) => await r.inboxV2.releaseItem(t),
|
|
1381
1441
|
...e
|
|
1382
1442
|
});
|
|
1383
1443
|
}
|
|
1384
|
-
function
|
|
1444
|
+
function Rn(e = {}) {
|
|
1385
1445
|
return u({
|
|
1386
|
-
mutationFn: async (
|
|
1446
|
+
mutationFn: async (t) => await r.inboxV2.cancelItem(t),
|
|
1387
1447
|
...e
|
|
1388
1448
|
});
|
|
1389
1449
|
}
|
|
1390
|
-
function
|
|
1450
|
+
function xn(e = {}) {
|
|
1391
1451
|
return u({
|
|
1392
|
-
mutationFn: async ({ id:
|
|
1452
|
+
mutationFn: async ({ id: t, data: n }) => await r.inboxV2.reassignItem(t, n),
|
|
1393
1453
|
...e
|
|
1394
1454
|
});
|
|
1395
1455
|
}
|
|
1396
|
-
function
|
|
1456
|
+
function Kn(e = {}) {
|
|
1397
1457
|
return u({
|
|
1398
|
-
mutationFn: async (
|
|
1458
|
+
mutationFn: async (t) => await r.inboxV2.completeByKey(t),
|
|
1399
1459
|
...e
|
|
1400
1460
|
});
|
|
1401
1461
|
}
|
|
1402
|
-
function
|
|
1462
|
+
function Pn(e = {}) {
|
|
1403
1463
|
return u({
|
|
1404
|
-
mutationFn: async (
|
|
1464
|
+
mutationFn: async (t) => await r.inboxV2.cancelByKey(t),
|
|
1405
1465
|
...e
|
|
1406
1466
|
});
|
|
1407
1467
|
}
|
|
1408
|
-
function
|
|
1468
|
+
function In(e, t = {}) {
|
|
1409
1469
|
return s({
|
|
1410
1470
|
queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
|
|
1411
1471
|
queryFn: async () => await r.emailEngine.getAllConversations(e),
|
|
1412
|
-
...
|
|
1472
|
+
...t
|
|
1413
1473
|
});
|
|
1414
1474
|
}
|
|
1415
|
-
function
|
|
1475
|
+
function vn(e, t = {}) {
|
|
1416
1476
|
return s({
|
|
1417
1477
|
queryKey: ["emailConversation", e],
|
|
1418
1478
|
queryFn: async () => await r.emailEngine.getConversation({
|
|
1419
1479
|
conversationId: e
|
|
1420
1480
|
}),
|
|
1421
1481
|
enabled: !!e,
|
|
1422
|
-
...
|
|
1482
|
+
...t
|
|
1423
1483
|
});
|
|
1424
1484
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const
|
|
1485
|
+
function Vn(e = {}) {
|
|
1486
|
+
const t = p();
|
|
1427
1487
|
return u({
|
|
1428
|
-
mutationFn: async (
|
|
1488
|
+
mutationFn: async (n) => await r.emailEngine.createConversation(n),
|
|
1429
1489
|
onSuccess: () => {
|
|
1430
|
-
|
|
1490
|
+
t.invalidateQueries({ queryKey: ["emailConversations"] });
|
|
1431
1491
|
},
|
|
1432
1492
|
...e
|
|
1433
1493
|
});
|
|
1434
1494
|
}
|
|
1435
|
-
function
|
|
1436
|
-
const
|
|
1495
|
+
function En(e = {}) {
|
|
1496
|
+
const t = p();
|
|
1437
1497
|
return u({
|
|
1438
|
-
mutationFn: async (
|
|
1439
|
-
onSuccess: (
|
|
1440
|
-
|
|
1498
|
+
mutationFn: async (n) => await r.emailEngine.replyToConversation(n),
|
|
1499
|
+
onSuccess: (n, a) => {
|
|
1500
|
+
t.invalidateQueries({
|
|
1441
1501
|
queryKey: ["emailConversation", a.conversationId]
|
|
1442
1502
|
});
|
|
1443
1503
|
},
|
|
1444
1504
|
...e
|
|
1445
1505
|
});
|
|
1446
1506
|
}
|
|
1447
|
-
function
|
|
1507
|
+
function An(e, t = {}) {
|
|
1448
1508
|
return s({
|
|
1449
1509
|
queryKey: [
|
|
1450
1510
|
"emailMessagesBySender",
|
|
@@ -1456,484 +1516,484 @@ function Pt(e, n = {}) {
|
|
|
1456
1516
|
],
|
|
1457
1517
|
queryFn: async () => await r.emailEngine.getMessageBySenderId(e),
|
|
1458
1518
|
enabled: !!e.senderId,
|
|
1459
|
-
...
|
|
1519
|
+
...t
|
|
1460
1520
|
});
|
|
1461
1521
|
}
|
|
1462
|
-
function
|
|
1522
|
+
function Bn(e = {}) {
|
|
1463
1523
|
return u({
|
|
1464
|
-
mutationFn: async (
|
|
1524
|
+
mutationFn: async (t) => await r.emailEngine.searchMessages(t),
|
|
1465
1525
|
...e
|
|
1466
1526
|
});
|
|
1467
1527
|
}
|
|
1468
|
-
function
|
|
1469
|
-
const
|
|
1528
|
+
function Gn(e = {}) {
|
|
1529
|
+
const t = y(async () => await r.tcn.getAuthUrl()), n = d({
|
|
1470
1530
|
queryKey: ["tcn", "authUrl"],
|
|
1471
|
-
queryFn:
|
|
1531
|
+
queryFn: t,
|
|
1472
1532
|
enabled: !0,
|
|
1473
1533
|
options: e
|
|
1474
1534
|
});
|
|
1475
|
-
return s(
|
|
1535
|
+
return s(n);
|
|
1476
1536
|
}
|
|
1477
|
-
function
|
|
1537
|
+
function Mn(e = {}) {
|
|
1478
1538
|
return u({
|
|
1479
|
-
mutationFn: async ({ code:
|
|
1539
|
+
mutationFn: async ({ code: t }) => await r.tcn.exchangeCode(t),
|
|
1480
1540
|
...e
|
|
1481
1541
|
});
|
|
1482
1542
|
}
|
|
1483
|
-
function
|
|
1543
|
+
function On(e = {}) {
|
|
1484
1544
|
return u({
|
|
1485
|
-
mutationFn: async ({ refresh_token:
|
|
1545
|
+
mutationFn: async ({ refresh_token: t }) => await r.tcn.refreshToken(t),
|
|
1486
1546
|
...e
|
|
1487
1547
|
});
|
|
1488
1548
|
}
|
|
1489
|
-
function
|
|
1549
|
+
function Ln(e = {}) {
|
|
1490
1550
|
return u({
|
|
1491
|
-
mutationFn: async ({ token:
|
|
1551
|
+
mutationFn: async ({ token: t }) => await r.tcn.getCurrentAgent(t),
|
|
1492
1552
|
...e
|
|
1493
1553
|
});
|
|
1494
1554
|
}
|
|
1495
|
-
function
|
|
1555
|
+
function Un(e = {}) {
|
|
1496
1556
|
return u({
|
|
1497
|
-
mutationFn: async ({ token:
|
|
1557
|
+
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getAgentSkills(t, n),
|
|
1498
1558
|
...e
|
|
1499
1559
|
});
|
|
1500
1560
|
}
|
|
1501
|
-
function
|
|
1561
|
+
function Hn(e = {}) {
|
|
1502
1562
|
return u({
|
|
1503
|
-
mutationFn: async ({ token:
|
|
1563
|
+
mutationFn: async ({ token: t, huntGroupSid: n, skills: a }) => await r.tcn.createSession(t, n, a),
|
|
1504
1564
|
...e
|
|
1505
1565
|
});
|
|
1506
1566
|
}
|
|
1507
|
-
function
|
|
1567
|
+
function Wn(e = {}) {
|
|
1508
1568
|
return u({
|
|
1509
|
-
mutationFn: async ({ token:
|
|
1569
|
+
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.keepAlive(t, n),
|
|
1510
1570
|
...e
|
|
1511
1571
|
});
|
|
1512
1572
|
}
|
|
1513
|
-
function
|
|
1573
|
+
function Qn(e = {}) {
|
|
1514
1574
|
return u({
|
|
1515
|
-
mutationFn: async ({ token:
|
|
1575
|
+
mutationFn: async ({ token: t }) => await r.tcn.agentGetStatus(t),
|
|
1516
1576
|
...e
|
|
1517
1577
|
});
|
|
1518
1578
|
}
|
|
1519
|
-
function
|
|
1579
|
+
function zn(e = {}) {
|
|
1520
1580
|
return u({
|
|
1521
|
-
mutationFn: async ({ token:
|
|
1581
|
+
mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getHuntGroupAgentSettings(t, n),
|
|
1522
1582
|
...e
|
|
1523
1583
|
});
|
|
1524
1584
|
}
|
|
1525
|
-
function
|
|
1585
|
+
function Nn(e = {}) {
|
|
1526
1586
|
return u({
|
|
1527
|
-
mutationFn: async ({ token:
|
|
1587
|
+
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.dialManualPrepare(t, n),
|
|
1528
1588
|
...e
|
|
1529
1589
|
});
|
|
1530
1590
|
}
|
|
1531
|
-
function
|
|
1591
|
+
function _n(e = {}) {
|
|
1532
1592
|
return u({
|
|
1533
|
-
mutationFn: async ({ token:
|
|
1593
|
+
mutationFn: async ({ token: t, call: n }) => await r.tcn.processManualDial(t, n),
|
|
1534
1594
|
...e
|
|
1535
1595
|
});
|
|
1536
1596
|
}
|
|
1537
|
-
function
|
|
1597
|
+
function jn(e = {}) {
|
|
1538
1598
|
return u({
|
|
1539
|
-
mutationFn: async ({ token:
|
|
1540
|
-
n,
|
|
1599
|
+
mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: o }) => await r.tcn.manualDialStart(
|
|
1541
1600
|
t,
|
|
1601
|
+
n,
|
|
1542
1602
|
a,
|
|
1543
1603
|
o
|
|
1544
1604
|
),
|
|
1545
1605
|
...e
|
|
1546
1606
|
});
|
|
1547
1607
|
}
|
|
1548
|
-
function
|
|
1608
|
+
function Jn(e = {}) {
|
|
1549
1609
|
return u({
|
|
1550
|
-
mutationFn: async ({ token:
|
|
1610
|
+
mutationFn: async ({ token: t, sessionSid: n, reason: a }) => await r.tcn.agentDisconnect(t, n, a),
|
|
1551
1611
|
...e
|
|
1552
1612
|
});
|
|
1553
1613
|
}
|
|
1554
|
-
function
|
|
1614
|
+
function $n(e = {}) {
|
|
1555
1615
|
return u({
|
|
1556
|
-
mutationFn: async ({ token:
|
|
1616
|
+
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentPause(t, n),
|
|
1557
1617
|
...e
|
|
1558
1618
|
});
|
|
1559
1619
|
}
|
|
1560
|
-
function
|
|
1620
|
+
function Xn(e = {}) {
|
|
1561
1621
|
return u({
|
|
1562
|
-
mutationFn: async ({ token:
|
|
1622
|
+
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentSetReady(t, n),
|
|
1563
1623
|
...e
|
|
1564
1624
|
});
|
|
1565
1625
|
}
|
|
1566
|
-
function
|
|
1626
|
+
function Yn(e = {}) {
|
|
1567
1627
|
return u({
|
|
1568
|
-
mutationFn: async ({ token:
|
|
1628
|
+
mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentGetConnectedParty(t, n),
|
|
1569
1629
|
...e
|
|
1570
1630
|
});
|
|
1571
1631
|
}
|
|
1572
|
-
function
|
|
1632
|
+
function Zn(e = {}) {
|
|
1573
1633
|
return u({
|
|
1574
|
-
mutationFn: async ({ token:
|
|
1634
|
+
mutationFn: async ({ token: t, callSid: n }) => await r.tcn.getCallData(t, n),
|
|
1575
1635
|
...e
|
|
1576
1636
|
});
|
|
1577
1637
|
}
|
|
1578
|
-
function
|
|
1638
|
+
function er(e = {}) {
|
|
1579
1639
|
return u({
|
|
1580
|
-
mutationFn: async ({ token:
|
|
1640
|
+
mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentPutCallOnHold(t, n, a),
|
|
1581
1641
|
...e
|
|
1582
1642
|
});
|
|
1583
1643
|
}
|
|
1584
|
-
function
|
|
1644
|
+
function tr(e = {}) {
|
|
1585
1645
|
return u({
|
|
1586
|
-
mutationFn: async ({ token:
|
|
1646
|
+
mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentGetCallFromHold(t, n, a),
|
|
1587
1647
|
...e
|
|
1588
1648
|
});
|
|
1589
1649
|
}
|
|
1590
|
-
function
|
|
1650
|
+
function nr(e = {}) {
|
|
1591
1651
|
return u({
|
|
1592
|
-
mutationFn: async (
|
|
1652
|
+
mutationFn: async (t) => await r.tcn.ftpManualDialReport(t),
|
|
1593
1653
|
...e
|
|
1594
1654
|
});
|
|
1595
1655
|
}
|
|
1596
|
-
function
|
|
1656
|
+
function rr(e = {}) {
|
|
1597
1657
|
return u({
|
|
1598
|
-
mutationFn: async (
|
|
1658
|
+
mutationFn: async (t) => await r.templates.renderTemplate(t),
|
|
1599
1659
|
...e
|
|
1600
1660
|
});
|
|
1601
1661
|
}
|
|
1602
|
-
function
|
|
1603
|
-
const
|
|
1662
|
+
function ar(e, t = {}) {
|
|
1663
|
+
const n = e?.trim();
|
|
1604
1664
|
return s({
|
|
1605
|
-
queryKey: ["databox", "folder",
|
|
1665
|
+
queryKey: ["databox", "folder", n],
|
|
1606
1666
|
queryFn: async () => {
|
|
1607
|
-
if (!
|
|
1667
|
+
if (!n)
|
|
1608
1668
|
throw new Error("Folder ID is required");
|
|
1609
|
-
return await r.databox.getDataboxFolder({ folderId:
|
|
1669
|
+
return await r.databox.getDataboxFolder({ folderId: n });
|
|
1610
1670
|
},
|
|
1611
|
-
enabled: !!
|
|
1612
|
-
...
|
|
1671
|
+
enabled: !!n,
|
|
1672
|
+
...t
|
|
1613
1673
|
});
|
|
1614
1674
|
}
|
|
1615
|
-
function
|
|
1616
|
-
const
|
|
1675
|
+
function ur(e, t = {}) {
|
|
1676
|
+
const n = e?.trim();
|
|
1617
1677
|
return s({
|
|
1618
|
-
queryKey: ["databox", "folder",
|
|
1678
|
+
queryKey: ["databox", "folder", n, "files"],
|
|
1619
1679
|
queryFn: async () => {
|
|
1620
|
-
if (!
|
|
1680
|
+
if (!n)
|
|
1621
1681
|
throw new Error("Folder ID is required");
|
|
1622
|
-
return await r.databox.getDataboxFolderFiles({ folderId:
|
|
1682
|
+
return await r.databox.getDataboxFolderFiles({ folderId: n });
|
|
1623
1683
|
},
|
|
1624
|
-
enabled: !!
|
|
1625
|
-
...
|
|
1684
|
+
enabled: !!n,
|
|
1685
|
+
...t
|
|
1626
1686
|
});
|
|
1627
1687
|
}
|
|
1628
|
-
function
|
|
1629
|
-
const
|
|
1688
|
+
function or(e, t = {}) {
|
|
1689
|
+
const n = e?.trim();
|
|
1630
1690
|
return s({
|
|
1631
|
-
queryKey: ["databox", "folder",
|
|
1691
|
+
queryKey: ["databox", "folder", n, "datasets"],
|
|
1632
1692
|
queryFn: async () => {
|
|
1633
|
-
if (!
|
|
1693
|
+
if (!n)
|
|
1634
1694
|
throw new Error("Folder ID is required");
|
|
1635
|
-
return await r.databox.getDataboxFolderDatasets({ folderId:
|
|
1695
|
+
return await r.databox.getDataboxFolderDatasets({ folderId: n });
|
|
1636
1696
|
},
|
|
1637
|
-
enabled: !!
|
|
1638
|
-
...
|
|
1697
|
+
enabled: !!n,
|
|
1698
|
+
...t
|
|
1639
1699
|
});
|
|
1640
1700
|
}
|
|
1641
|
-
function
|
|
1642
|
-
const
|
|
1701
|
+
function sr(e, t = {}) {
|
|
1702
|
+
const n = e?.trim();
|
|
1643
1703
|
return s({
|
|
1644
|
-
queryKey: ["databox", "folder",
|
|
1704
|
+
queryKey: ["databox", "folder", n, "duplicates"],
|
|
1645
1705
|
queryFn: async () => {
|
|
1646
|
-
if (!
|
|
1706
|
+
if (!n)
|
|
1647
1707
|
throw new Error("Folder ID is required");
|
|
1648
1708
|
return await r.databox.getDataboxFolderDuplicates({
|
|
1649
|
-
folderId:
|
|
1709
|
+
folderId: n
|
|
1650
1710
|
});
|
|
1651
1711
|
},
|
|
1652
|
-
enabled: !!
|
|
1653
|
-
...
|
|
1712
|
+
enabled: !!n,
|
|
1713
|
+
...t
|
|
1654
1714
|
});
|
|
1655
1715
|
}
|
|
1656
|
-
function
|
|
1657
|
-
const
|
|
1716
|
+
function ir(e, t = {}) {
|
|
1717
|
+
const n = e?.trim();
|
|
1658
1718
|
return s({
|
|
1659
|
-
queryKey: ["dataset",
|
|
1719
|
+
queryKey: ["dataset", n, "exceptions"],
|
|
1660
1720
|
queryFn: async () => {
|
|
1661
|
-
if (!
|
|
1721
|
+
if (!n)
|
|
1662
1722
|
throw new Error("Dataset ID is required");
|
|
1663
|
-
return await r.dataset.getDatasetExceptions({ datasetId:
|
|
1723
|
+
return await r.dataset.getDatasetExceptions({ datasetId: n });
|
|
1664
1724
|
},
|
|
1665
|
-
enabled: !!
|
|
1666
|
-
...
|
|
1725
|
+
enabled: !!n,
|
|
1726
|
+
...t
|
|
1667
1727
|
});
|
|
1668
1728
|
}
|
|
1669
|
-
function
|
|
1729
|
+
function cr(e, t, n = {}) {
|
|
1670
1730
|
const a = e?.trim();
|
|
1671
1731
|
return s({
|
|
1672
|
-
queryKey: ["dataset", a, "duplicates",
|
|
1732
|
+
queryKey: ["dataset", a, "duplicates", t ?? null],
|
|
1673
1733
|
queryFn: async () => {
|
|
1674
1734
|
if (!a)
|
|
1675
1735
|
throw new Error("Dataset ID is required");
|
|
1676
1736
|
return await r.dataset.getDatasetDuplicates({
|
|
1677
1737
|
datasetId: a,
|
|
1678
|
-
group:
|
|
1738
|
+
group: t
|
|
1679
1739
|
});
|
|
1680
1740
|
},
|
|
1681
1741
|
enabled: !!a,
|
|
1682
|
-
...
|
|
1742
|
+
...n
|
|
1683
1743
|
});
|
|
1684
1744
|
}
|
|
1685
|
-
function
|
|
1686
|
-
const
|
|
1745
|
+
function lr(e, t = {}) {
|
|
1746
|
+
const n = e?.trim();
|
|
1687
1747
|
return s({
|
|
1688
|
-
queryKey: ["databox", "folder",
|
|
1748
|
+
queryKey: ["databox", "folder", n, "schema"],
|
|
1689
1749
|
queryFn: async () => {
|
|
1690
|
-
if (!
|
|
1750
|
+
if (!n)
|
|
1691
1751
|
throw new Error("Folder ID is required");
|
|
1692
|
-
return await r.databox.getDataboxFolderSchema({ folderId:
|
|
1752
|
+
return await r.databox.getDataboxFolderSchema({ folderId: n });
|
|
1693
1753
|
},
|
|
1694
|
-
enabled: !!
|
|
1695
|
-
...
|
|
1754
|
+
enabled: !!n,
|
|
1755
|
+
...t
|
|
1696
1756
|
});
|
|
1697
1757
|
}
|
|
1698
|
-
function
|
|
1699
|
-
const
|
|
1758
|
+
function yr(e, t = {}) {
|
|
1759
|
+
const n = e?.trim();
|
|
1700
1760
|
return s({
|
|
1701
|
-
queryKey: ["databox", "folder",
|
|
1761
|
+
queryKey: ["databox", "folder", n, "schema", "history"],
|
|
1702
1762
|
queryFn: async () => {
|
|
1703
|
-
if (!
|
|
1763
|
+
if (!n)
|
|
1704
1764
|
throw new Error("Folder ID is required");
|
|
1705
|
-
return await r.databox.getDataboxSchemaHistory({ folderId:
|
|
1765
|
+
return await r.databox.getDataboxSchemaHistory({ folderId: n });
|
|
1706
1766
|
},
|
|
1707
|
-
enabled: !!
|
|
1708
|
-
...
|
|
1767
|
+
enabled: !!n,
|
|
1768
|
+
...t
|
|
1709
1769
|
});
|
|
1710
1770
|
}
|
|
1711
|
-
function
|
|
1712
|
-
const
|
|
1771
|
+
function dr(e, t = {}) {
|
|
1772
|
+
const n = e?.trim();
|
|
1713
1773
|
return s({
|
|
1714
|
-
queryKey: ["databox", "folder",
|
|
1774
|
+
queryKey: ["databox", "folder", n, "trash"],
|
|
1715
1775
|
queryFn: async () => {
|
|
1716
|
-
if (!
|
|
1776
|
+
if (!n)
|
|
1717
1777
|
throw new Error("Folder ID is required");
|
|
1718
|
-
return await r.databox.getDataboxTrashFiles({ folderId:
|
|
1778
|
+
return await r.databox.getDataboxTrashFiles({ folderId: n });
|
|
1719
1779
|
},
|
|
1720
|
-
enabled: !!
|
|
1721
|
-
...
|
|
1780
|
+
enabled: !!n,
|
|
1781
|
+
...t
|
|
1722
1782
|
});
|
|
1723
1783
|
}
|
|
1724
|
-
function
|
|
1725
|
-
const
|
|
1784
|
+
function pr(e, t = {}) {
|
|
1785
|
+
const n = e?.trim();
|
|
1726
1786
|
return s({
|
|
1727
|
-
queryKey: ["databox", "file",
|
|
1787
|
+
queryKey: ["databox", "file", n],
|
|
1728
1788
|
queryFn: async () => {
|
|
1729
|
-
if (!
|
|
1789
|
+
if (!n)
|
|
1730
1790
|
throw new Error("File ID is required");
|
|
1731
|
-
return await r.databox.getDataboxFile({ fileId:
|
|
1791
|
+
return await r.databox.getDataboxFile({ fileId: n });
|
|
1732
1792
|
},
|
|
1733
|
-
enabled: !!
|
|
1734
|
-
...
|
|
1793
|
+
enabled: !!n,
|
|
1794
|
+
...t
|
|
1735
1795
|
});
|
|
1736
1796
|
}
|
|
1737
|
-
function
|
|
1738
|
-
const
|
|
1797
|
+
function gr(e, t = {}) {
|
|
1798
|
+
const n = e?.trim();
|
|
1739
1799
|
return s({
|
|
1740
|
-
queryKey: ["databox", "file",
|
|
1800
|
+
queryKey: ["databox", "file", n, "status"],
|
|
1741
1801
|
queryFn: async () => {
|
|
1742
|
-
if (!
|
|
1802
|
+
if (!n)
|
|
1743
1803
|
throw new Error("File ID is required");
|
|
1744
|
-
return await r.databox.getDataboxFileStatus({ fileId:
|
|
1804
|
+
return await r.databox.getDataboxFileStatus({ fileId: n });
|
|
1745
1805
|
},
|
|
1746
|
-
enabled: !!
|
|
1747
|
-
...
|
|
1806
|
+
enabled: !!n,
|
|
1807
|
+
...t
|
|
1748
1808
|
});
|
|
1749
1809
|
}
|
|
1750
|
-
function
|
|
1751
|
-
const
|
|
1810
|
+
function fr(e, t = {}) {
|
|
1811
|
+
const n = e?.trim();
|
|
1752
1812
|
return s({
|
|
1753
|
-
queryKey: ["databox", "file",
|
|
1813
|
+
queryKey: ["databox", "file", n, "runs"],
|
|
1754
1814
|
queryFn: async () => {
|
|
1755
|
-
if (!
|
|
1815
|
+
if (!n)
|
|
1756
1816
|
throw new Error("File ID is required");
|
|
1757
|
-
return await r.databox.getDataboxFileRuns({ fileId:
|
|
1817
|
+
return await r.databox.getDataboxFileRuns({ fileId: n });
|
|
1758
1818
|
},
|
|
1759
|
-
enabled: !!
|
|
1760
|
-
...
|
|
1819
|
+
enabled: !!n,
|
|
1820
|
+
...t
|
|
1761
1821
|
});
|
|
1762
1822
|
}
|
|
1763
|
-
function
|
|
1764
|
-
const
|
|
1823
|
+
function mr(e, t = {}) {
|
|
1824
|
+
const n = e?.trim();
|
|
1765
1825
|
return s({
|
|
1766
|
-
queryKey: ["databox", "file",
|
|
1826
|
+
queryKey: ["databox", "file", n, "download-url"],
|
|
1767
1827
|
queryFn: async () => {
|
|
1768
|
-
if (!
|
|
1828
|
+
if (!n)
|
|
1769
1829
|
throw new Error("File ID is required");
|
|
1770
|
-
return await r.databox.getDataboxFileDownloadUrl({ fileId:
|
|
1830
|
+
return await r.databox.getDataboxFileDownloadUrl({ fileId: n });
|
|
1771
1831
|
},
|
|
1772
|
-
enabled: !!
|
|
1773
|
-
...
|
|
1832
|
+
enabled: !!n,
|
|
1833
|
+
...t
|
|
1774
1834
|
});
|
|
1775
1835
|
}
|
|
1776
|
-
function
|
|
1836
|
+
function br(e = {}) {
|
|
1777
1837
|
return u({
|
|
1778
|
-
mutationFn: async (
|
|
1838
|
+
mutationFn: async (t) => await r.databox.dropFileToDatabox(t),
|
|
1779
1839
|
...e
|
|
1780
1840
|
});
|
|
1781
1841
|
}
|
|
1782
|
-
function
|
|
1842
|
+
function wr(e = {}) {
|
|
1783
1843
|
return u({
|
|
1784
|
-
mutationFn: async (
|
|
1844
|
+
mutationFn: async (t) => await r.databox.runDataboxFolder(t),
|
|
1785
1845
|
...e
|
|
1786
1846
|
});
|
|
1787
1847
|
}
|
|
1788
|
-
function
|
|
1848
|
+
function Fr(e = {}) {
|
|
1789
1849
|
return u({
|
|
1790
|
-
mutationFn: async (
|
|
1850
|
+
mutationFn: async (t) => await r.databox.updateDataboxFolderSchema(t),
|
|
1791
1851
|
...e
|
|
1792
1852
|
});
|
|
1793
1853
|
}
|
|
1794
|
-
function
|
|
1854
|
+
function qr(e = {}) {
|
|
1795
1855
|
return u({
|
|
1796
|
-
mutationFn: async (
|
|
1856
|
+
mutationFn: async (t) => await r.databox.trashDataboxFiles(t),
|
|
1797
1857
|
...e
|
|
1798
1858
|
});
|
|
1799
1859
|
}
|
|
1800
|
-
function
|
|
1860
|
+
function hr(e = {}) {
|
|
1801
1861
|
return u({
|
|
1802
|
-
mutationFn: async (
|
|
1862
|
+
mutationFn: async (t) => await r.databox.restoreDataboxFile(t),
|
|
1803
1863
|
...e
|
|
1804
1864
|
});
|
|
1805
1865
|
}
|
|
1806
|
-
function
|
|
1866
|
+
function Tr(e = {}) {
|
|
1807
1867
|
return u({
|
|
1808
|
-
mutationFn: async (
|
|
1868
|
+
mutationFn: async (t) => await r.databox.permanentDeleteDataboxFiles(t),
|
|
1809
1869
|
...e
|
|
1810
1870
|
});
|
|
1811
1871
|
}
|
|
1812
|
-
function
|
|
1813
|
-
const
|
|
1872
|
+
function Dr(e, t = {}) {
|
|
1873
|
+
const n = y(async () => await r.periodManagement.listFiscalCalendars(e)), a = d({
|
|
1814
1874
|
queryKey: ["periodManagement", "fiscalCalendars", e ?? "all"],
|
|
1815
|
-
queryFn:
|
|
1816
|
-
options:
|
|
1875
|
+
queryFn: n,
|
|
1876
|
+
options: t
|
|
1817
1877
|
});
|
|
1818
1878
|
return s(a);
|
|
1819
1879
|
}
|
|
1820
|
-
function
|
|
1821
|
-
const
|
|
1880
|
+
function Cr(e, t = {}) {
|
|
1881
|
+
const n = !!e, a = y(async () => {
|
|
1822
1882
|
if (!e)
|
|
1823
1883
|
throw new Error("Fiscal calendar id is required");
|
|
1824
1884
|
return await r.periodManagement.getFiscalCalendar(e);
|
|
1825
1885
|
}), o = d({
|
|
1826
1886
|
queryKey: ["periodManagement", "fiscalCalendar", e],
|
|
1827
1887
|
queryFn: a,
|
|
1828
|
-
enabled:
|
|
1829
|
-
options:
|
|
1888
|
+
enabled: n,
|
|
1889
|
+
options: t
|
|
1830
1890
|
});
|
|
1831
1891
|
return s(o);
|
|
1832
1892
|
}
|
|
1833
|
-
function
|
|
1893
|
+
function Sr(e = {}) {
|
|
1834
1894
|
return u({
|
|
1835
|
-
mutationFn: async (
|
|
1895
|
+
mutationFn: async (t) => await r.periodManagement.createFiscalCalendar(t),
|
|
1836
1896
|
...e
|
|
1837
1897
|
});
|
|
1838
1898
|
}
|
|
1839
|
-
function
|
|
1899
|
+
function kr(e = {}) {
|
|
1840
1900
|
return u({
|
|
1841
|
-
mutationFn: async ({ id:
|
|
1901
|
+
mutationFn: async ({ id: t, params: n }) => await r.periodManagement.updateFiscalCalendar(t, n),
|
|
1842
1902
|
...e
|
|
1843
1903
|
});
|
|
1844
1904
|
}
|
|
1845
|
-
function
|
|
1905
|
+
function Rr(e = {}) {
|
|
1846
1906
|
return u({
|
|
1847
|
-
mutationFn: async (
|
|
1907
|
+
mutationFn: async (t) => await r.periodManagement.deleteFiscalCalendar(t),
|
|
1848
1908
|
...e
|
|
1849
1909
|
});
|
|
1850
1910
|
}
|
|
1851
|
-
function
|
|
1852
|
-
const
|
|
1911
|
+
function xr(e, t = {}) {
|
|
1912
|
+
const n = y(async () => await r.periodManagement.listHolidayCalendars(e)), a = d({
|
|
1853
1913
|
queryKey: ["periodManagement", "holidayCalendars", e ?? "all"],
|
|
1854
|
-
queryFn:
|
|
1855
|
-
options:
|
|
1914
|
+
queryFn: n,
|
|
1915
|
+
options: t
|
|
1856
1916
|
});
|
|
1857
1917
|
return s(a);
|
|
1858
1918
|
}
|
|
1859
|
-
function
|
|
1860
|
-
const
|
|
1919
|
+
function Kr(e, t = {}) {
|
|
1920
|
+
const n = !!e, a = y(async () => {
|
|
1861
1921
|
if (!e)
|
|
1862
1922
|
throw new Error("Holiday calendar id is required");
|
|
1863
1923
|
return await r.periodManagement.getHolidayCalendar(e);
|
|
1864
1924
|
}), o = d({
|
|
1865
1925
|
queryKey: ["periodManagement", "holidayCalendar", e],
|
|
1866
1926
|
queryFn: a,
|
|
1867
|
-
enabled:
|
|
1868
|
-
options:
|
|
1927
|
+
enabled: n,
|
|
1928
|
+
options: t
|
|
1869
1929
|
});
|
|
1870
1930
|
return s(o);
|
|
1871
1931
|
}
|
|
1872
|
-
function
|
|
1932
|
+
function Pr(e = {}) {
|
|
1873
1933
|
return u({
|
|
1874
|
-
mutationFn: async (
|
|
1934
|
+
mutationFn: async (t) => await r.periodManagement.createHolidayCalendar(t),
|
|
1875
1935
|
...e
|
|
1876
1936
|
});
|
|
1877
1937
|
}
|
|
1878
|
-
function
|
|
1938
|
+
function Ir(e = {}) {
|
|
1879
1939
|
return u({
|
|
1880
|
-
mutationFn: async ({ id:
|
|
1940
|
+
mutationFn: async ({ id: t, params: n }) => await r.periodManagement.updateHolidayCalendar(t, n),
|
|
1881
1941
|
...e
|
|
1882
1942
|
});
|
|
1883
1943
|
}
|
|
1884
|
-
function
|
|
1944
|
+
function vr(e = {}) {
|
|
1885
1945
|
return u({
|
|
1886
|
-
mutationFn: async (
|
|
1946
|
+
mutationFn: async (t) => await r.periodManagement.deleteHolidayCalendar(t),
|
|
1887
1947
|
...e
|
|
1888
1948
|
});
|
|
1889
1949
|
}
|
|
1890
|
-
function
|
|
1891
|
-
const
|
|
1950
|
+
function Vr(e, t = {}) {
|
|
1951
|
+
const n = !!e, a = y(async () => {
|
|
1892
1952
|
if (!e)
|
|
1893
1953
|
throw new Error("Holiday calendar id is required");
|
|
1894
1954
|
return await r.periodManagement.listHolidays(e);
|
|
1895
1955
|
}), o = d({
|
|
1896
1956
|
queryKey: ["periodManagement", "holidayCalendar", e, "holidays"],
|
|
1897
1957
|
queryFn: a,
|
|
1898
|
-
enabled:
|
|
1899
|
-
options:
|
|
1958
|
+
enabled: n,
|
|
1959
|
+
options: t
|
|
1900
1960
|
});
|
|
1901
1961
|
return s(o);
|
|
1902
1962
|
}
|
|
1903
|
-
function
|
|
1963
|
+
function Er(e = {}) {
|
|
1904
1964
|
return u({
|
|
1905
|
-
mutationFn: async ({ id:
|
|
1965
|
+
mutationFn: async ({ id: t, items: n }) => await r.periodManagement.importHolidays(t, n),
|
|
1906
1966
|
...e
|
|
1907
1967
|
});
|
|
1908
1968
|
}
|
|
1909
|
-
function
|
|
1910
|
-
return
|
|
1911
|
-
(
|
|
1969
|
+
function te(e, t) {
|
|
1970
|
+
return t.split(".").reduce(
|
|
1971
|
+
(n, a) => n && typeof n == "object" ? n[a] : void 0,
|
|
1912
1972
|
e
|
|
1913
1973
|
);
|
|
1914
1974
|
}
|
|
1915
|
-
function
|
|
1916
|
-
const
|
|
1917
|
-
...
|
|
1975
|
+
function Ar(e, t = {}) {
|
|
1976
|
+
const n = s({
|
|
1977
|
+
...t,
|
|
1918
1978
|
queryKey: ["pipeline", "list"],
|
|
1919
1979
|
queryFn: async () => r.pipeline.getPipelineList()
|
|
1920
1980
|
});
|
|
1921
1981
|
return {
|
|
1922
1982
|
pipelines: h(() => {
|
|
1923
|
-
const o =
|
|
1924
|
-
return e?.key ? o.filter((i) =>
|
|
1925
|
-
}, [
|
|
1926
|
-
isLoading:
|
|
1927
|
-
error:
|
|
1928
|
-
refetch:
|
|
1983
|
+
const o = n.data ?? [];
|
|
1984
|
+
return e?.key ? o.filter((i) => te(i, e.key) === e.value) : o;
|
|
1985
|
+
}, [n.data, e?.key, e?.value]),
|
|
1986
|
+
isLoading: n.isLoading,
|
|
1987
|
+
error: n.error,
|
|
1988
|
+
refetch: n.refetch
|
|
1929
1989
|
};
|
|
1930
1990
|
}
|
|
1931
|
-
function
|
|
1932
|
-
const
|
|
1933
|
-
...
|
|
1934
|
-
queryKey: ["pipeline", "runs",
|
|
1935
|
-
queryFn: async () => r.pipeline.getPipelineRunStatus(
|
|
1936
|
-
enabled: !!
|
|
1991
|
+
function ne(e, t = {}) {
|
|
1992
|
+
const n = e?.trim(), a = s({
|
|
1993
|
+
...t,
|
|
1994
|
+
queryKey: ["pipeline", "runs", n],
|
|
1995
|
+
queryFn: async () => r.pipeline.getPipelineRunStatus(n),
|
|
1996
|
+
enabled: !!n && (t.enabled ?? !0)
|
|
1937
1997
|
});
|
|
1938
1998
|
return {
|
|
1939
1999
|
runs: a.data ?? [],
|
|
@@ -1942,18 +2002,18 @@ function te(e, n = {}) {
|
|
|
1942
2002
|
refetch: a.refetch
|
|
1943
2003
|
};
|
|
1944
2004
|
}
|
|
1945
|
-
function
|
|
1946
|
-
const { runs:
|
|
2005
|
+
function Br(e, t = {}) {
|
|
2006
|
+
const { runs: n, isLoading: a, error: o, refetch: i } = ne(e, t);
|
|
1947
2007
|
return { run: h(() => {
|
|
1948
|
-
const l =
|
|
2008
|
+
const l = n.filter((g) => g.status === "SUCCEEDED");
|
|
1949
2009
|
if (l.length)
|
|
1950
2010
|
return l.reduce(
|
|
1951
2011
|
(g, f) => (f.startedAt ?? "") > (g.startedAt ?? "") ? f : g
|
|
1952
2012
|
);
|
|
1953
|
-
}, [
|
|
2013
|
+
}, [n]), isLoading: a, error: o, refetch: i };
|
|
1954
2014
|
}
|
|
1955
|
-
function
|
|
1956
|
-
const a = e?.trim(), o =
|
|
2015
|
+
function Gr(e, t, n = {}) {
|
|
2016
|
+
const a = e?.trim(), o = t?.trim(), i = (n.enabled ?? !0) && !!a && !!o, c = s({
|
|
1957
2017
|
queryKey: ["pipeline", "definition", a],
|
|
1958
2018
|
queryFn: async () => r.pipeline.getPipelineDefinition(a),
|
|
1959
2019
|
enabled: i
|
|
@@ -1963,77 +2023,77 @@ function Kr(e, n, t = {}) {
|
|
|
1963
2023
|
), g = h(
|
|
1964
2024
|
() => c.data?.edges ?? [],
|
|
1965
2025
|
[c.data]
|
|
1966
|
-
), f = (
|
|
2026
|
+
), f = (D) => l.find((S) => S.id === D)?.data, m = s({
|
|
1967
2027
|
queryKey: ["pipeline", "runs", a],
|
|
1968
2028
|
queryFn: async () => r.pipeline.getPipelineRunStatus(a),
|
|
1969
2029
|
enabled: i
|
|
1970
|
-
}),
|
|
1971
|
-
() => (m.data ?? []).find((
|
|
2030
|
+
}), F = h(
|
|
2031
|
+
() => (m.data ?? []).find((D) => D.id === o),
|
|
1972
2032
|
[m.data, o]
|
|
1973
|
-
), [
|
|
1974
|
-
queryKey: ["pipeline", "output", o,
|
|
2033
|
+
), [b, w] = q(!1), T = F?.datasetId, C = s({
|
|
2034
|
+
queryKey: ["pipeline", "output", o, T],
|
|
1975
2035
|
queryFn: async () => {
|
|
1976
|
-
const
|
|
1977
|
-
r.definition.runDefinition({ inputs: {}, definition:
|
|
1978
|
-
r.definition.getDescription({ inputs: {}, definition:
|
|
1979
|
-
]),
|
|
2036
|
+
const D = r.pipeline.buildDatasetDefinition(T), [S, k] = await Promise.all([
|
|
2037
|
+
r.definition.runDefinition({ inputs: {}, definition: D, variable: T }),
|
|
2038
|
+
r.definition.getDescription({ inputs: {}, definition: D, variable: T })
|
|
2039
|
+
]), E = Array.isArray(k) ? k : k?.data ?? [];
|
|
1980
2040
|
return {
|
|
1981
|
-
rows:
|
|
1982
|
-
columns:
|
|
2041
|
+
rows: S ?? [],
|
|
2042
|
+
columns: E
|
|
1983
2043
|
};
|
|
1984
2044
|
},
|
|
1985
|
-
enabled: i &&
|
|
1986
|
-
}),
|
|
1987
|
-
c.refetch(), m.refetch(),
|
|
2045
|
+
enabled: i && b && !!T
|
|
2046
|
+
}), I = c.isLoading || m.isLoading, v = c.error ?? m.error, V = () => {
|
|
2047
|
+
c.refetch(), m.refetch(), b && T && C.refetch();
|
|
1988
2048
|
};
|
|
1989
2049
|
return {
|
|
1990
|
-
run:
|
|
2050
|
+
run: F,
|
|
1991
2051
|
nodes: l,
|
|
1992
2052
|
edges: g,
|
|
1993
2053
|
isCurrentDefinition: !0,
|
|
1994
2054
|
// run carries no snapshot; graph reflects the current definition
|
|
1995
|
-
isLoading:
|
|
1996
|
-
error:
|
|
2055
|
+
isLoading: I,
|
|
2056
|
+
error: v,
|
|
1997
2057
|
getNodeProperties: f,
|
|
1998
|
-
output:
|
|
1999
|
-
isOutputLoading:
|
|
2000
|
-
outputError:
|
|
2001
|
-
loadOutput: () =>
|
|
2002
|
-
refetch:
|
|
2058
|
+
output: C.data,
|
|
2059
|
+
isOutputLoading: C.isLoading && b,
|
|
2060
|
+
outputError: C.error,
|
|
2061
|
+
loadOutput: () => w(!0),
|
|
2062
|
+
refetch: V
|
|
2003
2063
|
};
|
|
2004
2064
|
}
|
|
2005
|
-
function
|
|
2006
|
-
const
|
|
2065
|
+
function Mr(e, t = {}) {
|
|
2066
|
+
const n = e?.trim();
|
|
2007
2067
|
return s({
|
|
2008
|
-
...
|
|
2009
|
-
queryKey: ["pipeline", "overview",
|
|
2010
|
-
queryFn: async () => r.pipeline.getPipelineOverview(
|
|
2011
|
-
enabled: !!
|
|
2068
|
+
...t,
|
|
2069
|
+
queryKey: ["pipeline", "overview", n],
|
|
2070
|
+
queryFn: async () => r.pipeline.getPipelineOverview(n),
|
|
2071
|
+
enabled: !!n
|
|
2012
2072
|
});
|
|
2013
2073
|
}
|
|
2014
|
-
function
|
|
2015
|
-
const
|
|
2074
|
+
function Or(e) {
|
|
2075
|
+
const t = e?.trim(), [n, a] = q(
|
|
2016
2076
|
void 0
|
|
2017
2077
|
), o = u({
|
|
2018
|
-
mutationFn: async () => r.pipeline.startOutputSample(
|
|
2078
|
+
mutationFn: async () => r.pipeline.startOutputSample(t),
|
|
2019
2079
|
onSuccess: (g) => a(g)
|
|
2020
2080
|
});
|
|
2021
|
-
|
|
2022
|
-
a(void 0),
|
|
2023
|
-
}, [
|
|
2081
|
+
K(() => {
|
|
2082
|
+
a(void 0), t && o.mutate();
|
|
2083
|
+
}, [t]);
|
|
2024
2084
|
const i = s({
|
|
2025
|
-
queryKey: ["pipeline", "outputSample",
|
|
2085
|
+
queryKey: ["pipeline", "outputSample", t, n?.runId],
|
|
2026
2086
|
queryFn: async () => r.pipeline.getOutputSampleResult({
|
|
2027
|
-
pipelineId:
|
|
2028
|
-
runId:
|
|
2029
|
-
nodeId:
|
|
2030
|
-
sheetId:
|
|
2087
|
+
pipelineId: t,
|
|
2088
|
+
runId: n.runId,
|
|
2089
|
+
nodeId: n.outputNodeId,
|
|
2090
|
+
sheetId: n.sheetId
|
|
2031
2091
|
}),
|
|
2032
|
-
enabled: !!
|
|
2092
|
+
enabled: !!t && !!n?.runId,
|
|
2033
2093
|
refetchInterval: (g) => g.state.data?.status === "running" ? 1500 : !1
|
|
2034
|
-
}), c = o.isError ? "failed" : i.data?.status ?? (o.isPending ||
|
|
2035
|
-
a(void 0),
|
|
2036
|
-
}, [
|
|
2094
|
+
}), c = o.isError ? "failed" : i.data?.status ?? (o.isPending || n ? "running" : "idle"), l = G(() => {
|
|
2095
|
+
a(void 0), t && o.mutate();
|
|
2096
|
+
}, [t]);
|
|
2037
2097
|
return {
|
|
2038
2098
|
status: c,
|
|
2039
2099
|
rows: i.data?.rows,
|
|
@@ -2043,32 +2103,58 @@ function Er(e) {
|
|
|
2043
2103
|
refetch: l
|
|
2044
2104
|
};
|
|
2045
2105
|
}
|
|
2046
|
-
function
|
|
2047
|
-
|
|
2106
|
+
function Lr(e, t = {}) {
|
|
2107
|
+
return s({
|
|
2108
|
+
...t,
|
|
2109
|
+
queryKey: ["pipeline", "definition", e],
|
|
2110
|
+
queryFn: async () => r.pipeline.getPipelineDefinition(e)
|
|
2111
|
+
});
|
|
2112
|
+
}
|
|
2113
|
+
function Ur(e, t = {}) {
|
|
2114
|
+
return s({
|
|
2115
|
+
...t,
|
|
2116
|
+
queryKey: ["pipeline", "runStatus", e],
|
|
2117
|
+
queryFn: async () => r.pipeline.getPipelineRunStatus(e)
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
function Hr(e = {}) {
|
|
2121
|
+
return u({
|
|
2122
|
+
mutationFn: async (t) => r.pipeline.savePipeline(t, { approve: !0 }),
|
|
2123
|
+
...e
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
function Wr(e = {}) {
|
|
2127
|
+
return u({
|
|
2128
|
+
mutationFn: async (t) => r.pipeline.runPipeline(t, { approve: !0 }),
|
|
2129
|
+
...e
|
|
2130
|
+
});
|
|
2131
|
+
}
|
|
2132
|
+
function Qr(e = {}) {
|
|
2133
|
+
const t = s({
|
|
2048
2134
|
...e,
|
|
2049
2135
|
queryKey: ["workingPaper", "list"],
|
|
2050
2136
|
queryFn: async () => r.workingPaper.getWorkingPapers()
|
|
2051
2137
|
});
|
|
2052
2138
|
return {
|
|
2053
|
-
workingPapers:
|
|
2054
|
-
isLoading:
|
|
2055
|
-
error:
|
|
2056
|
-
refetch:
|
|
2139
|
+
workingPapers: t.data ?? [],
|
|
2140
|
+
isLoading: t.isLoading,
|
|
2141
|
+
error: t.error,
|
|
2142
|
+
refetch: t.refetch
|
|
2057
2143
|
};
|
|
2058
2144
|
}
|
|
2059
|
-
function
|
|
2060
|
-
const
|
|
2061
|
-
...
|
|
2062
|
-
queryKey: ["workingPaper", "detail",
|
|
2063
|
-
queryFn: async () => r.workingPaper.getWorkingPaper(
|
|
2064
|
-
enabled: !!
|
|
2145
|
+
function zr(e, t = {}) {
|
|
2146
|
+
const n = e?.trim(), a = p(), o = s({
|
|
2147
|
+
...t,
|
|
2148
|
+
queryKey: ["workingPaper", "detail", n],
|
|
2149
|
+
queryFn: async () => r.workingPaper.getWorkingPaper(n),
|
|
2150
|
+
enabled: !!n && (t.enabled ?? !0)
|
|
2065
2151
|
}), i = u({
|
|
2066
|
-
mutationFn: async (l) => r.workingPaper.updateWorkingPaper(
|
|
2152
|
+
mutationFn: async (l) => r.workingPaper.updateWorkingPaper(n, l),
|
|
2067
2153
|
onSuccess: () => {
|
|
2068
|
-
a.invalidateQueries({ queryKey: ["workingPaper", "detail",
|
|
2154
|
+
a.invalidateQueries({ queryKey: ["workingPaper", "detail", n] }), a.invalidateQueries({ queryKey: ["workingPaper", "list"] });
|
|
2069
2155
|
}
|
|
2070
2156
|
}), c = u({
|
|
2071
|
-
mutationFn: async () => r.workingPaper.deleteWorkingPaper(
|
|
2157
|
+
mutationFn: async () => r.workingPaper.deleteWorkingPaper(n),
|
|
2072
2158
|
onSuccess: () => {
|
|
2073
2159
|
a.invalidateQueries({ queryKey: ["workingPaper", "list"] });
|
|
2074
2160
|
}
|
|
@@ -2085,27 +2171,27 @@ function vr(e, n = {}) {
|
|
|
2085
2171
|
isDeleting: c.isPending
|
|
2086
2172
|
};
|
|
2087
2173
|
}
|
|
2088
|
-
function
|
|
2089
|
-
const e =
|
|
2174
|
+
function Nr() {
|
|
2175
|
+
const e = p();
|
|
2090
2176
|
return u({
|
|
2091
|
-
mutationFn: async (
|
|
2177
|
+
mutationFn: async (t) => r.workingPaper.createWorkingPaper(t),
|
|
2092
2178
|
onSuccess: () => e.invalidateQueries({ queryKey: ["workingPaper", "list"] })
|
|
2093
2179
|
});
|
|
2094
2180
|
}
|
|
2095
|
-
function
|
|
2181
|
+
function _r(e, t = {}, n = {}) {
|
|
2096
2182
|
const a = e?.inputTableId?.trim(), o = e?.viewId, i = e?.limit, c = s({
|
|
2097
|
-
...
|
|
2183
|
+
...t,
|
|
2098
2184
|
queryKey: ["workingPaper", "inputTableSheet", "views", a],
|
|
2099
2185
|
queryFn: async () => r.statement.getViewsBySheetId(a),
|
|
2100
|
-
enabled: !!a && (
|
|
2186
|
+
enabled: !!a && (t.enabled ?? !0)
|
|
2101
2187
|
}), l = s({
|
|
2102
|
-
...
|
|
2188
|
+
...n,
|
|
2103
2189
|
queryKey: ["workingPaper", "inputTableSheet", "rows", a, o, i],
|
|
2104
2190
|
queryFn: async () => r.inputTable.getRows(a, {
|
|
2105
2191
|
...o ? { view_id: o } : {},
|
|
2106
2192
|
...i ? { limit: i } : {}
|
|
2107
2193
|
}),
|
|
2108
|
-
enabled: !!a && (
|
|
2194
|
+
enabled: !!a && (n.enabled ?? !0)
|
|
2109
2195
|
}), g = c.data ?? [], f = l.data;
|
|
2110
2196
|
return {
|
|
2111
2197
|
views: g,
|
|
@@ -2118,28 +2204,28 @@ function Gr(e, n = {}, t = {}) {
|
|
|
2118
2204
|
}
|
|
2119
2205
|
};
|
|
2120
2206
|
}
|
|
2121
|
-
function
|
|
2122
|
-
const [
|
|
2207
|
+
function jr(e) {
|
|
2208
|
+
const [t, n] = q(
|
|
2123
2209
|
() => e?.definition ?? (e?.datasetId ? r.workingPaper.createFxDatasetDefinition(e.datasetId, e.columns ?? []) : void 0)
|
|
2124
2210
|
), a = u({
|
|
2125
2211
|
mutationFn: async () => {
|
|
2126
|
-
if (!
|
|
2212
|
+
if (!t) throw { message: "No fx definition to run", status: 400 };
|
|
2127
2213
|
const o = r.workingPaper.FX_RESULT_VARIABLE, [i, c] = await Promise.all([
|
|
2128
|
-
r.definition.runDefinition({ inputs: {}, definition:
|
|
2129
|
-
r.definition.getDescription({ inputs: {}, definition:
|
|
2214
|
+
r.definition.runDefinition({ inputs: {}, definition: t, variable: o }),
|
|
2215
|
+
r.definition.getDescription({ inputs: {}, definition: t, variable: o })
|
|
2130
2216
|
]), l = Array.isArray(c) ? c : c?.data ?? [];
|
|
2131
2217
|
return { rows: i ?? [], columns: l };
|
|
2132
2218
|
}
|
|
2133
2219
|
});
|
|
2134
2220
|
return {
|
|
2135
|
-
definition:
|
|
2136
|
-
setDefinition:
|
|
2137
|
-
reset: (o, i) =>
|
|
2138
|
-
addFilter: (o, i) =>
|
|
2139
|
-
addSort: (o, i, c) =>
|
|
2140
|
-
addMetric: (o, i, c) =>
|
|
2141
|
-
addPivot: (o, i) =>
|
|
2142
|
-
addColumn: (o, i, c) =>
|
|
2221
|
+
definition: t,
|
|
2222
|
+
setDefinition: n,
|
|
2223
|
+
reset: (o, i) => n(r.workingPaper.createFxDatasetDefinition(o, i ?? [])),
|
|
2224
|
+
addFilter: (o, i) => n((c) => r.workingPaper.addRuleFilter(c, o, i)),
|
|
2225
|
+
addSort: (o, i, c) => n((l) => r.workingPaper.addSort(l, o, i, c)),
|
|
2226
|
+
addMetric: (o, i, c) => n((l) => r.workingPaper.addMetric(l, o, i, c)),
|
|
2227
|
+
addPivot: (o, i) => n((c) => r.workingPaper.addPivot(c, o, i)),
|
|
2228
|
+
addColumn: (o, i, c) => n((l) => r.workingPaper.addColumn(l, o, i, c)),
|
|
2143
2229
|
run: () => a.mutateAsync(),
|
|
2144
2230
|
result: a.data,
|
|
2145
2231
|
isRunning: a.isPending,
|
|
@@ -2147,255 +2233,913 @@ function Or(e) {
|
|
|
2147
2233
|
};
|
|
2148
2234
|
}
|
|
2149
2235
|
function re(e = {}) {
|
|
2150
|
-
const
|
|
2236
|
+
const t = s({
|
|
2151
2237
|
...e,
|
|
2152
2238
|
queryKey: ["solutions", "list"],
|
|
2153
2239
|
queryFn: async () => r.solutions.getSolutionList()
|
|
2154
2240
|
});
|
|
2155
2241
|
return {
|
|
2156
|
-
solutions:
|
|
2157
|
-
isLoading:
|
|
2158
|
-
error:
|
|
2159
|
-
refetch:
|
|
2242
|
+
solutions: t.data ?? [],
|
|
2243
|
+
isLoading: t.isLoading,
|
|
2244
|
+
error: t.error,
|
|
2245
|
+
refetch: t.refetch
|
|
2160
2246
|
};
|
|
2161
2247
|
}
|
|
2162
|
-
function ae(e,
|
|
2248
|
+
function ae(e, t, n = {}) {
|
|
2163
2249
|
const a = e?.trim();
|
|
2164
2250
|
return s({
|
|
2165
|
-
...
|
|
2166
|
-
queryKey: ["versioning", "branches", a,
|
|
2167
|
-
queryFn: async () => r.versioning.getBranches({ solutionId: a, branchType:
|
|
2251
|
+
...n,
|
|
2252
|
+
queryKey: ["versioning", "branches", a, t],
|
|
2253
|
+
queryFn: async () => r.versioning.getBranches({ solutionId: a, branchType: t }),
|
|
2168
2254
|
enabled: !!a
|
|
2169
2255
|
});
|
|
2170
2256
|
}
|
|
2171
|
-
function
|
|
2172
|
-
const { solutions: e, isLoading:
|
|
2257
|
+
function Jr() {
|
|
2258
|
+
const { solutions: e, isLoading: t } = re(), [n, a] = q(void 0), [o, i] = q(
|
|
2173
2259
|
void 0
|
|
2174
|
-
), c = ae(
|
|
2260
|
+
), c = ae(n), l = c.data ?? [], g = (m) => {
|
|
2175
2261
|
a(m), i(void 0);
|
|
2176
2262
|
}, f = h(
|
|
2177
|
-
() => e.find((m) => m.id ===
|
|
2178
|
-
[e,
|
|
2263
|
+
() => e.find((m) => m.id === n),
|
|
2264
|
+
[e, n]
|
|
2179
2265
|
);
|
|
2180
2266
|
return {
|
|
2181
2267
|
solutions: e,
|
|
2182
2268
|
selectedSolution: f,
|
|
2183
|
-
selectedSolutionId:
|
|
2269
|
+
selectedSolutionId: n,
|
|
2184
2270
|
selectSolution: g,
|
|
2185
2271
|
branches: l,
|
|
2186
2272
|
selectedBranch: o,
|
|
2187
2273
|
selectBranch: i,
|
|
2188
|
-
isLoadingSolutions:
|
|
2274
|
+
isLoadingSolutions: t,
|
|
2189
2275
|
isLoadingBranches: c.isLoading
|
|
2190
2276
|
};
|
|
2191
2277
|
}
|
|
2278
|
+
function $r(e, t, n, a = {}) {
|
|
2279
|
+
const o = e?.trim(), i = t?.trim();
|
|
2280
|
+
return s({
|
|
2281
|
+
...a,
|
|
2282
|
+
queryKey: ["versioning", "commits", o, i, n],
|
|
2283
|
+
queryFn: async () => r.versioning.listCommits({
|
|
2284
|
+
solutionId: o,
|
|
2285
|
+
branch: i,
|
|
2286
|
+
branchType: n
|
|
2287
|
+
}),
|
|
2288
|
+
enabled: !!o && !!i
|
|
2289
|
+
});
|
|
2290
|
+
}
|
|
2291
|
+
function Xr(e, t = {}) {
|
|
2292
|
+
const n = e?.trim();
|
|
2293
|
+
return s({
|
|
2294
|
+
...t,
|
|
2295
|
+
queryKey: ["versioning", "tags", n],
|
|
2296
|
+
queryFn: async () => r.versioning.listTags({ solutionId: n }),
|
|
2297
|
+
enabled: !!n
|
|
2298
|
+
});
|
|
2299
|
+
}
|
|
2300
|
+
function Yr(e = {}) {
|
|
2301
|
+
return u({
|
|
2302
|
+
mutationFn: async (t) => r.versioning.commitChanges(t, { approve: !0 }),
|
|
2303
|
+
...e
|
|
2304
|
+
});
|
|
2305
|
+
}
|
|
2306
|
+
function Zr(e = {}) {
|
|
2307
|
+
return u({
|
|
2308
|
+
mutationFn: async (t) => r.versioning.mergeBranches(t, { approve: !0 }),
|
|
2309
|
+
...e
|
|
2310
|
+
});
|
|
2311
|
+
}
|
|
2312
|
+
function ea(e = {}) {
|
|
2313
|
+
return u({
|
|
2314
|
+
mutationFn: async (t) => r.versioning.pushBranch(t, { approve: !0 }),
|
|
2315
|
+
...e
|
|
2316
|
+
});
|
|
2317
|
+
}
|
|
2318
|
+
function ta(e = {}) {
|
|
2319
|
+
return u({
|
|
2320
|
+
mutationFn: async (t) => r.versioning.createBranch(t, { approve: !0 }),
|
|
2321
|
+
...e
|
|
2322
|
+
});
|
|
2323
|
+
}
|
|
2324
|
+
function na(e = {}) {
|
|
2325
|
+
return u({
|
|
2326
|
+
mutationFn: async (t) => r.externalApps.create(t, { approve: !0 }),
|
|
2327
|
+
...e
|
|
2328
|
+
});
|
|
2329
|
+
}
|
|
2330
|
+
function ra(e, t = {}) {
|
|
2331
|
+
return u({
|
|
2332
|
+
mutationFn: async (n) => r.externalApps.setEnv(e, n, { approve: !0 }),
|
|
2333
|
+
...t
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
function aa(e, t = {}) {
|
|
2337
|
+
return u({
|
|
2338
|
+
mutationFn: async (n) => r.externalApps.setSchemaMap(e, n, { approve: !0 }),
|
|
2339
|
+
...t
|
|
2340
|
+
});
|
|
2341
|
+
}
|
|
2342
|
+
function ua(e, t = {}) {
|
|
2343
|
+
return u({
|
|
2344
|
+
mutationFn: async (n) => r.externalApps.setAccessControl(e, n, { approve: !0 }),
|
|
2345
|
+
...t
|
|
2346
|
+
});
|
|
2347
|
+
}
|
|
2348
|
+
function oa(e = {}) {
|
|
2349
|
+
return u({
|
|
2350
|
+
mutationFn: async (t) => r.externalApps.validateUrl(t),
|
|
2351
|
+
...e
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
function sa(e = {}) {
|
|
2355
|
+
return u({
|
|
2356
|
+
mutationFn: async (t) => r.solutions.create(t, { approve: !0 }),
|
|
2357
|
+
...e
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2360
|
+
function ia(e = {}) {
|
|
2361
|
+
return s({
|
|
2362
|
+
...e,
|
|
2363
|
+
queryKey: ["solutions", "packagableComponents"],
|
|
2364
|
+
queryFn: async () => r.solutions.packagableComponents()
|
|
2365
|
+
});
|
|
2366
|
+
}
|
|
2367
|
+
function ca(e, t = {}) {
|
|
2368
|
+
return u({
|
|
2369
|
+
mutationFn: async (n) => r.solutions.addObjects(e, n, { approve: !0 }),
|
|
2370
|
+
...t
|
|
2371
|
+
});
|
|
2372
|
+
}
|
|
2373
|
+
function la(e, t = {}) {
|
|
2374
|
+
return u({
|
|
2375
|
+
mutationFn: async (n = {}) => r.solutions.validate(e, n),
|
|
2376
|
+
...t
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2379
|
+
function ya(e, t = {}) {
|
|
2380
|
+
return u({
|
|
2381
|
+
mutationFn: async (n) => r.solutions.publish(e, n, { approve: !0 }),
|
|
2382
|
+
...t
|
|
2383
|
+
});
|
|
2384
|
+
}
|
|
2385
|
+
function da(e, t = {}) {
|
|
2386
|
+
const n = e?.trim();
|
|
2387
|
+
return s({
|
|
2388
|
+
...t,
|
|
2389
|
+
queryKey: ["solutions", "publishJob", n],
|
|
2390
|
+
queryFn: async () => r.solutions.publishJob(n),
|
|
2391
|
+
enabled: !!n
|
|
2392
|
+
});
|
|
2393
|
+
}
|
|
2394
|
+
function pa(e = {}) {
|
|
2395
|
+
return u({
|
|
2396
|
+
mutationFn: async (t) => r.workbooks.create(t, { approve: !0 }),
|
|
2397
|
+
...e
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2400
|
+
function ga(e = {}) {
|
|
2401
|
+
return u({
|
|
2402
|
+
mutationFn: async (t) => r.connections.createSftpConnection(t, { approve: !0 }),
|
|
2403
|
+
...e
|
|
2404
|
+
});
|
|
2405
|
+
}
|
|
2406
|
+
function fa(e = {}) {
|
|
2407
|
+
return u({
|
|
2408
|
+
mutationFn: async (t) => r.connections.createEmailConnection(t, { approve: !0 }),
|
|
2409
|
+
...e
|
|
2410
|
+
});
|
|
2411
|
+
}
|
|
2412
|
+
function ma(e = {}) {
|
|
2413
|
+
return u({
|
|
2414
|
+
mutationFn: async (t) => r.connections.createBlobConnection(t, { approve: !0 }),
|
|
2415
|
+
...e
|
|
2416
|
+
});
|
|
2417
|
+
}
|
|
2418
|
+
function ba(e, t, n = {}) {
|
|
2419
|
+
return s({
|
|
2420
|
+
...n,
|
|
2421
|
+
queryKey: ["connections", "test", e, t],
|
|
2422
|
+
queryFn: async () => r.connections.testConnection(e, t)
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
function wa(e, t = {}) {
|
|
2426
|
+
return s({
|
|
2427
|
+
...t,
|
|
2428
|
+
queryKey: ["connections", "list", e],
|
|
2429
|
+
queryFn: async () => r.connections.listConnections(e)
|
|
2430
|
+
});
|
|
2431
|
+
}
|
|
2432
|
+
function Fa(e = {}) {
|
|
2433
|
+
return u({
|
|
2434
|
+
mutationFn: async (t) => r.ingestion.createDatabox(t, { approve: !0 }),
|
|
2435
|
+
...e
|
|
2436
|
+
});
|
|
2437
|
+
}
|
|
2438
|
+
function qa(e = {}) {
|
|
2439
|
+
return u({
|
|
2440
|
+
mutationFn: async (t) => r.ingestion.createFileboxFolder(t, { approve: !0 }),
|
|
2441
|
+
...e
|
|
2442
|
+
});
|
|
2443
|
+
}
|
|
2444
|
+
function ha(e = {}) {
|
|
2445
|
+
return s({
|
|
2446
|
+
...e,
|
|
2447
|
+
queryKey: ["ingestion", "databoxes"],
|
|
2448
|
+
queryFn: async () => r.ingestion.listDataboxes()
|
|
2449
|
+
});
|
|
2450
|
+
}
|
|
2451
|
+
function Ta(e = {}) {
|
|
2452
|
+
return s({
|
|
2453
|
+
...e,
|
|
2454
|
+
queryKey: ["ingestion", "fileboxFolders"],
|
|
2455
|
+
queryFn: async () => r.ingestion.listFileboxFolders()
|
|
2456
|
+
});
|
|
2457
|
+
}
|
|
2458
|
+
function Da(e = {}, t = {}) {
|
|
2459
|
+
return s({
|
|
2460
|
+
...t,
|
|
2461
|
+
queryKey: ["inputTablesV2", "list", e.name],
|
|
2462
|
+
queryFn: async () => r.inputTableV2.listInputTables(e)
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2465
|
+
function Ca(e, t = {}) {
|
|
2466
|
+
return s({
|
|
2467
|
+
...t,
|
|
2468
|
+
queryKey: ["inputTablesV2", "get", e],
|
|
2469
|
+
queryFn: async () => r.inputTableV2.getInputTable(e)
|
|
2470
|
+
});
|
|
2471
|
+
}
|
|
2472
|
+
function Sa(e, t = {}) {
|
|
2473
|
+
return u({
|
|
2474
|
+
mutationFn: async (n) => r.inputTableV2.insertInputTableRows(e.solutionId, e.tableName, n, {
|
|
2475
|
+
approve: !0
|
|
2476
|
+
}),
|
|
2477
|
+
...t
|
|
2478
|
+
});
|
|
2479
|
+
}
|
|
2480
|
+
function ka(e, t = {}) {
|
|
2481
|
+
return u({
|
|
2482
|
+
mutationFn: async (n) => r.inputTableV2.updateInputTableRows(e.solutionId, e.tableName, n, {
|
|
2483
|
+
approve: !0
|
|
2484
|
+
}),
|
|
2485
|
+
...t
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
function Ra(e, t = {}) {
|
|
2489
|
+
return u({
|
|
2490
|
+
mutationFn: async (n) => r.inputTableV2.deleteInputTableRows(e.solutionId, e.tableName, n, {
|
|
2491
|
+
approve: !0
|
|
2492
|
+
}),
|
|
2493
|
+
...t
|
|
2494
|
+
});
|
|
2495
|
+
}
|
|
2496
|
+
function xa(e = {}) {
|
|
2497
|
+
return u({
|
|
2498
|
+
mutationFn: async (t) => r.inputTableV2.createInputTable(t, { approve: !0 }),
|
|
2499
|
+
...e
|
|
2500
|
+
});
|
|
2501
|
+
}
|
|
2502
|
+
function Ka(e, t = {}) {
|
|
2503
|
+
return u({
|
|
2504
|
+
mutationFn: async () => r.inputTableV2.deleteInputTable(e.solutionId, e.tableName, { approve: !0 }),
|
|
2505
|
+
...t
|
|
2506
|
+
});
|
|
2507
|
+
}
|
|
2508
|
+
function Pa(e, t = {}) {
|
|
2509
|
+
return s({
|
|
2510
|
+
...t,
|
|
2511
|
+
queryKey: ["inputTablesV2", "schema", e.solutionId, e.tableName],
|
|
2512
|
+
queryFn: async () => r.inputTableV2.getInputTableSchema(e.solutionId, e.tableName)
|
|
2513
|
+
});
|
|
2514
|
+
}
|
|
2515
|
+
function Ia(e, t = {}) {
|
|
2516
|
+
const { solutionId: n, tableName: a, filter: o, limit: i } = e;
|
|
2517
|
+
return s({
|
|
2518
|
+
...t,
|
|
2519
|
+
queryKey: ["inputTablesV2", "rows", n, a, o, i],
|
|
2520
|
+
queryFn: async () => r.inputTableV2.readInputTableRows(n, a, { filter: o, limit: i })
|
|
2521
|
+
});
|
|
2522
|
+
}
|
|
2523
|
+
function va(e = {}, t = {}) {
|
|
2524
|
+
return s({
|
|
2525
|
+
...t,
|
|
2526
|
+
queryKey: ["workflowsV2", "list", e.name],
|
|
2527
|
+
queryFn: async () => r.workflowV2.listWorkflows(e)
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2530
|
+
function Va(e, t = {}) {
|
|
2531
|
+
return s({
|
|
2532
|
+
...t,
|
|
2533
|
+
queryKey: ["workflowsV2", "get", e],
|
|
2534
|
+
queryFn: async () => r.workflowV2.getWorkflow(e)
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2537
|
+
function Ea(e = {}) {
|
|
2538
|
+
return u({
|
|
2539
|
+
mutationFn: async (t) => r.workflowV2.saveWorkflow(t, { approve: !0 }),
|
|
2540
|
+
...e
|
|
2541
|
+
});
|
|
2542
|
+
}
|
|
2543
|
+
function Aa(e = {}) {
|
|
2544
|
+
return u({
|
|
2545
|
+
mutationFn: async (t) => r.processHub.registerTrigger(t, { approve: !0 }),
|
|
2546
|
+
...e
|
|
2547
|
+
});
|
|
2548
|
+
}
|
|
2549
|
+
function Ba(e = {}) {
|
|
2550
|
+
return u({
|
|
2551
|
+
mutationFn: async ({ triggerId: t }) => r.processHub.deleteTrigger(t, { approve: !0 }),
|
|
2552
|
+
...e
|
|
2553
|
+
});
|
|
2554
|
+
}
|
|
2555
|
+
function Ga(e = {}) {
|
|
2556
|
+
return u({
|
|
2557
|
+
mutationFn: async ({ triggerId: t, ...n }) => r.processHub.executeTriggerNow(t, n, { approve: !0 }),
|
|
2558
|
+
...e
|
|
2559
|
+
});
|
|
2560
|
+
}
|
|
2561
|
+
function Ma(e = {}) {
|
|
2562
|
+
return u({
|
|
2563
|
+
mutationFn: async ({ triggerId: t }) => r.processHub.pauseTrigger(t, { approve: !0 }),
|
|
2564
|
+
...e
|
|
2565
|
+
});
|
|
2566
|
+
}
|
|
2567
|
+
function Oa(e = {}) {
|
|
2568
|
+
return u({
|
|
2569
|
+
mutationFn: async ({ triggerId: t }) => r.processHub.resumeTrigger(t, { approve: !0 }),
|
|
2570
|
+
...e
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
function La(e = {}) {
|
|
2574
|
+
return u({
|
|
2575
|
+
mutationFn: async ({ triggerId: t }) => r.processHub.skipTrigger(t, { approve: !0 }),
|
|
2576
|
+
...e
|
|
2577
|
+
});
|
|
2578
|
+
}
|
|
2579
|
+
function Ua(e, t = {}) {
|
|
2580
|
+
return s({
|
|
2581
|
+
...t,
|
|
2582
|
+
queryKey: ["processHub", "triggerScheduleStatus", e],
|
|
2583
|
+
queryFn: async () => r.processHub.triggerScheduleStatus(e)
|
|
2584
|
+
});
|
|
2585
|
+
}
|
|
2586
|
+
function Ha(e, t = {}) {
|
|
2587
|
+
return s({
|
|
2588
|
+
...t,
|
|
2589
|
+
queryKey: ["processHub", "upcomingSchedules", e],
|
|
2590
|
+
queryFn: async () => r.processHub.upcomingSchedules(e)
|
|
2591
|
+
});
|
|
2592
|
+
}
|
|
2593
|
+
function Wa(e, t = {}) {
|
|
2594
|
+
return s({
|
|
2595
|
+
...t,
|
|
2596
|
+
queryKey: ["processHub", "triggersBySheet", e],
|
|
2597
|
+
queryFn: async () => r.processHub.triggersBySheet(e)
|
|
2598
|
+
});
|
|
2599
|
+
}
|
|
2600
|
+
function Qa(e, t = {}) {
|
|
2601
|
+
return s({
|
|
2602
|
+
...t,
|
|
2603
|
+
queryKey: ["processHub", "sheetRuns", e],
|
|
2604
|
+
queryFn: async () => r.processHub.sheetRuns(e)
|
|
2605
|
+
});
|
|
2606
|
+
}
|
|
2607
|
+
function za(e, t = {}) {
|
|
2608
|
+
return s({
|
|
2609
|
+
...t,
|
|
2610
|
+
queryKey: ["processHub", "sheetRunStatus", e],
|
|
2611
|
+
queryFn: async () => r.processHub.sheetRunStatus(e)
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
function Na(e, t = {}) {
|
|
2615
|
+
return s({
|
|
2616
|
+
...t,
|
|
2617
|
+
queryKey: ["datasetsHub", "schema", e],
|
|
2618
|
+
queryFn: async () => r.datasetsHub.getDatasetSchema(e)
|
|
2619
|
+
});
|
|
2620
|
+
}
|
|
2621
|
+
function _a(e, t = {}) {
|
|
2622
|
+
return s({
|
|
2623
|
+
...t,
|
|
2624
|
+
queryKey: ["datasetsHub", "search", e],
|
|
2625
|
+
queryFn: async () => r.datasetsHub.searchDatasets(e),
|
|
2626
|
+
enabled: (t.enabled ?? !0) && !!e
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
function ja(e, t, n = {}) {
|
|
2630
|
+
return s({
|
|
2631
|
+
...n,
|
|
2632
|
+
queryKey: ["datasetsHub", "stats", e, t],
|
|
2633
|
+
queryFn: async () => r.datasetsHub.getDatasetStats(e, t)
|
|
2634
|
+
});
|
|
2635
|
+
}
|
|
2636
|
+
function Ja(e = {}, t = {}) {
|
|
2637
|
+
return s({
|
|
2638
|
+
...t,
|
|
2639
|
+
queryKey: ["virtualDatasets", "list", e.name],
|
|
2640
|
+
queryFn: async () => r.virtualDatasets.listVirtualDatasets(e)
|
|
2641
|
+
});
|
|
2642
|
+
}
|
|
2643
|
+
function $a(e, t = {}) {
|
|
2644
|
+
return s({
|
|
2645
|
+
...t,
|
|
2646
|
+
queryKey: ["virtualDatasets", "get", e],
|
|
2647
|
+
queryFn: async () => r.virtualDatasets.getVirtualDataset(e)
|
|
2648
|
+
});
|
|
2649
|
+
}
|
|
2650
|
+
function Xa(e = {}) {
|
|
2651
|
+
return u({
|
|
2652
|
+
mutationFn: async (t) => r.virtualDatasets.createVirtualDataset(t, { approve: !0 }),
|
|
2653
|
+
...e
|
|
2654
|
+
});
|
|
2655
|
+
}
|
|
2656
|
+
function Ya(e = {}) {
|
|
2657
|
+
const t = p();
|
|
2658
|
+
return u({
|
|
2659
|
+
mutationFn: async (n) => r.virtualDatasets.deleteVirtualDataset(n, {
|
|
2660
|
+
approve: !0
|
|
2661
|
+
}),
|
|
2662
|
+
...e,
|
|
2663
|
+
onSuccess: (n, a, o) => {
|
|
2664
|
+
t.invalidateQueries({ queryKey: ["virtualDatasets"] }), e.onSuccess?.(n, a, o);
|
|
2665
|
+
}
|
|
2666
|
+
});
|
|
2667
|
+
}
|
|
2668
|
+
function Za(e = {}) {
|
|
2669
|
+
const t = p();
|
|
2670
|
+
return u({
|
|
2671
|
+
mutationFn: async (n) => r.virtualDatasets.ensureVirtualDatasets(n, {
|
|
2672
|
+
approve: !0
|
|
2673
|
+
}),
|
|
2674
|
+
...e,
|
|
2675
|
+
onSuccess: (n, a, o) => {
|
|
2676
|
+
t.invalidateQueries({ queryKey: ["virtualDatasets"] }), e.onSuccess?.(n, a, o);
|
|
2677
|
+
}
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2680
|
+
function eu(e = {}, t = {}) {
|
|
2681
|
+
return s({
|
|
2682
|
+
...t,
|
|
2683
|
+
queryKey: ["workbooksHub", "list", e.name, e.type],
|
|
2684
|
+
queryFn: async () => r.workbooks.listWorkbooks(e)
|
|
2685
|
+
});
|
|
2686
|
+
}
|
|
2687
|
+
function tu(e, t = {}) {
|
|
2688
|
+
return s({
|
|
2689
|
+
...t,
|
|
2690
|
+
queryKey: ["workbooksHub", "get", e],
|
|
2691
|
+
queryFn: async () => r.workbooks.getWorkbook(e)
|
|
2692
|
+
});
|
|
2693
|
+
}
|
|
2694
|
+
function nu(e = {}, t = {}) {
|
|
2695
|
+
return s({
|
|
2696
|
+
...t,
|
|
2697
|
+
queryKey: ["exportConfigs", "list", e.name],
|
|
2698
|
+
queryFn: async () => r.exportConfig.listExportConfigs(e)
|
|
2699
|
+
});
|
|
2700
|
+
}
|
|
2701
|
+
function ru(e, t = {}) {
|
|
2702
|
+
return s({
|
|
2703
|
+
...t,
|
|
2704
|
+
queryKey: ["exportConfigs", "get", e],
|
|
2705
|
+
queryFn: async () => r.exportConfig.getExportConfig(e)
|
|
2706
|
+
});
|
|
2707
|
+
}
|
|
2708
|
+
function au(e = {}) {
|
|
2709
|
+
return u({
|
|
2710
|
+
mutationFn: async (t) => r.exportConfig.createExportConfig(t, { approve: !0 }),
|
|
2711
|
+
...e
|
|
2712
|
+
});
|
|
2713
|
+
}
|
|
2714
|
+
function uu(e, t = {}) {
|
|
2715
|
+
return u({
|
|
2716
|
+
mutationFn: async (n) => r.exportConfig.updateExportConfig(e, n, { approve: !0 }),
|
|
2717
|
+
...t
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2720
|
+
function ou(e, t = {}) {
|
|
2721
|
+
return u({
|
|
2722
|
+
mutationFn: async (n = {}) => r.exportConfig.runExportConfig(e, n, { approve: !0 }),
|
|
2723
|
+
...t
|
|
2724
|
+
});
|
|
2725
|
+
}
|
|
2726
|
+
function su(e = {}, t = {}) {
|
|
2727
|
+
return s({
|
|
2728
|
+
...t,
|
|
2729
|
+
queryKey: ["dashboards", "list", e.name],
|
|
2730
|
+
queryFn: async () => r.dashboards.listDashboards(e)
|
|
2731
|
+
});
|
|
2732
|
+
}
|
|
2733
|
+
function iu(e, t = {}) {
|
|
2734
|
+
return s({
|
|
2735
|
+
...t,
|
|
2736
|
+
queryKey: ["dashboards", "get", e],
|
|
2737
|
+
queryFn: async () => r.dashboards.getDashboard(e)
|
|
2738
|
+
});
|
|
2739
|
+
}
|
|
2740
|
+
function cu(e = {}) {
|
|
2741
|
+
return u({
|
|
2742
|
+
mutationFn: async (t) => r.dashboards.createDashboard(t, { approve: !0 }),
|
|
2743
|
+
...e
|
|
2744
|
+
});
|
|
2745
|
+
}
|
|
2746
|
+
function lu(e, t = {}) {
|
|
2747
|
+
return u({
|
|
2748
|
+
mutationFn: async (n) => r.dashboards.addDashboardWidget(e, n, { approve: !0 }),
|
|
2749
|
+
...t
|
|
2750
|
+
});
|
|
2751
|
+
}
|
|
2752
|
+
function yu(e, t, n = {}) {
|
|
2753
|
+
return u({
|
|
2754
|
+
mutationFn: async (a) => r.dashboards.updateDashboardWidget(e, t, a, { approve: !0 }),
|
|
2755
|
+
...n
|
|
2756
|
+
});
|
|
2757
|
+
}
|
|
2758
|
+
function du(e, t, n = {}) {
|
|
2759
|
+
return u({
|
|
2760
|
+
mutationFn: async () => r.dashboards.removeDashboardWidget(e, t, { approve: !0 }),
|
|
2761
|
+
...n
|
|
2762
|
+
});
|
|
2763
|
+
}
|
|
2764
|
+
function pu(e = {}, t = {}) {
|
|
2765
|
+
return s({
|
|
2766
|
+
...t,
|
|
2767
|
+
queryKey: ["httpTriggersHub", "list", e.name],
|
|
2768
|
+
queryFn: async () => r.httpTriggersHub.listHttpTriggers(e)
|
|
2769
|
+
});
|
|
2770
|
+
}
|
|
2771
|
+
function gu(e, t = {}) {
|
|
2772
|
+
return s({
|
|
2773
|
+
...t,
|
|
2774
|
+
queryKey: ["httpTriggersHub", "get", e],
|
|
2775
|
+
queryFn: async () => r.httpTriggersHub.getHttpTrigger(e)
|
|
2776
|
+
});
|
|
2777
|
+
}
|
|
2778
|
+
function fu(e = {}) {
|
|
2779
|
+
return s({
|
|
2780
|
+
...e,
|
|
2781
|
+
queryKey: ["policies", "list"],
|
|
2782
|
+
queryFn: async () => r.policies.listPolicies()
|
|
2783
|
+
});
|
|
2784
|
+
}
|
|
2785
|
+
function mu(e, t = {}) {
|
|
2786
|
+
return s({
|
|
2787
|
+
...t,
|
|
2788
|
+
enabled: (t.enabled ?? !0) && !!e,
|
|
2789
|
+
queryKey: ["policies", "get", e],
|
|
2790
|
+
queryFn: async () => r.policies.getPolicy(e)
|
|
2791
|
+
});
|
|
2792
|
+
}
|
|
2793
|
+
function bu(e = {}) {
|
|
2794
|
+
const t = p();
|
|
2795
|
+
return u({
|
|
2796
|
+
mutationFn: async ({ formData: n, existing: a }) => r.policies.savePolicy(n, a),
|
|
2797
|
+
...e,
|
|
2798
|
+
onSuccess: (n, a, o) => {
|
|
2799
|
+
t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
|
|
2800
|
+
}
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2803
|
+
function wu(e = {}) {
|
|
2804
|
+
const t = p();
|
|
2805
|
+
return u({
|
|
2806
|
+
mutationFn: async (n) => r.policies.publishPolicy(n),
|
|
2807
|
+
...e,
|
|
2808
|
+
onSuccess: (n, a, o) => {
|
|
2809
|
+
t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
|
|
2810
|
+
}
|
|
2811
|
+
});
|
|
2812
|
+
}
|
|
2813
|
+
function Fu(e = {}) {
|
|
2814
|
+
const t = p();
|
|
2815
|
+
return u({
|
|
2816
|
+
mutationFn: async (n) => r.policies.deletePolicy(n),
|
|
2817
|
+
...e,
|
|
2818
|
+
onSuccess: (n, a, o) => {
|
|
2819
|
+
t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
|
|
2820
|
+
}
|
|
2821
|
+
});
|
|
2822
|
+
}
|
|
2823
|
+
function qu(e = {}) {
|
|
2824
|
+
const t = p();
|
|
2825
|
+
return u({
|
|
2826
|
+
mutationFn: async (n) => r.policies.duplicatePolicy(n),
|
|
2827
|
+
...e,
|
|
2828
|
+
onSuccess: (n, a, o) => {
|
|
2829
|
+
t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
|
|
2830
|
+
}
|
|
2831
|
+
});
|
|
2832
|
+
}
|
|
2833
|
+
function hu(e = {}) {
|
|
2834
|
+
return u({
|
|
2835
|
+
mutationFn: async ({ policyId: t, request: n }) => r.policies.evaluatePolicy(t, n),
|
|
2836
|
+
...e
|
|
2837
|
+
});
|
|
2838
|
+
}
|
|
2839
|
+
function Tu(e, t = {}) {
|
|
2840
|
+
return u({
|
|
2841
|
+
mutationFn: async (n) => r.solutions.setSolutionSeedData(e, n, { approve: !0 }),
|
|
2842
|
+
...t
|
|
2843
|
+
});
|
|
2844
|
+
}
|
|
2192
2845
|
export {
|
|
2193
|
-
|
|
2846
|
+
ku as ReactQueryDevtools,
|
|
2194
2847
|
U as WorkflowStatus,
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2848
|
+
oe as reactQuery,
|
|
2849
|
+
lu as useAddDashboardWidget,
|
|
2850
|
+
ca as useAddSolutionObjects,
|
|
2851
|
+
Zt as useBulkCheckCustomPermissions,
|
|
2852
|
+
Xt as useBulkUpdateCustomObjectPermissions,
|
|
2853
|
+
Rn as useCancelInboxItem,
|
|
2854
|
+
Pn as useCancelInboxItemsByKey,
|
|
2855
|
+
Yt as useCheckCustomPermissions,
|
|
2856
|
+
we as useCheckSubscriptionStatus,
|
|
2857
|
+
Cn as useClaimInboxItem,
|
|
2858
|
+
Yr as useCommitChanges,
|
|
2859
|
+
Sn as useCompleteInboxItem,
|
|
2860
|
+
Kn as useCompleteInboxItemsByKey,
|
|
2861
|
+
ct as useCreateAuditLog,
|
|
2862
|
+
ma as useCreateBlobConnection,
|
|
2863
|
+
ta as useCreateBranch,
|
|
2864
|
+
Vn as useCreateConversation,
|
|
2865
|
+
cu as useCreateDashboard,
|
|
2866
|
+
Fa as useCreateDatabox,
|
|
2867
|
+
fa as useCreateEmailConnection,
|
|
2868
|
+
au as useCreateExportConfig,
|
|
2869
|
+
na as useCreateExternalApp,
|
|
2870
|
+
qa as useCreateFileboxFolder,
|
|
2871
|
+
Sr as useCreateFiscalCalendar,
|
|
2872
|
+
Pr as useCreateHolidayCalendar,
|
|
2873
|
+
wn as useCreateInboxItem,
|
|
2874
|
+
ln as useCreateInboxItemPerUser,
|
|
2875
|
+
pn as useCreateInboxType,
|
|
2876
|
+
xa as useCreateInputTable,
|
|
2877
|
+
st as useCreateOrUpdateForm,
|
|
2878
|
+
Gt as useCreateOrUpdateProcessTreeTrigger,
|
|
2879
|
+
Q as useCreateReconV2,
|
|
2880
|
+
ga as useCreateSftpConnection,
|
|
2881
|
+
sa as useCreateSolution,
|
|
2882
|
+
Fe as useCreateStatementRun,
|
|
2216
2883
|
ye as useCreateThread,
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2884
|
+
Xa as useCreateVirtualDataset,
|
|
2885
|
+
pa as useCreateWorkbook,
|
|
2886
|
+
Nr as useCreateWorkingPaper,
|
|
2887
|
+
jt as useCustomAuthzModel,
|
|
2888
|
+
an as useCustomObjects,
|
|
2889
|
+
un as useCustomObjectsOfType,
|
|
2890
|
+
tn as useCustomTypeMetadata,
|
|
2891
|
+
en as useCustomTypeMetadataList,
|
|
2892
|
+
qe as useDataset,
|
|
2220
2893
|
le as useDatasetSample,
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2894
|
+
Na as useDatasetSchema,
|
|
2895
|
+
ja as useDatasetStats,
|
|
2896
|
+
fe as useDeleteComment,
|
|
2897
|
+
rn as useDeleteCustomTypeMetadata,
|
|
2898
|
+
Rr as useDeleteFiscalCalendar,
|
|
2899
|
+
vr as useDeleteHolidayCalendar,
|
|
2900
|
+
fn as useDeleteInboxType,
|
|
2901
|
+
Ka as useDeleteInputTable,
|
|
2902
|
+
Ra as useDeleteInputTableRows,
|
|
2903
|
+
Fu as useDeletePolicy,
|
|
2904
|
+
Ht as useDeleteProcessTreeTrigger,
|
|
2905
|
+
vt as useDeleteProcessTrigger,
|
|
2906
|
+
dt as useDeleteReconV2,
|
|
2907
|
+
He as useDeleteRow,
|
|
2908
|
+
Ba as useDeleteTrigger,
|
|
2909
|
+
Ya as useDeleteVirtualDataset,
|
|
2910
|
+
nt as useDeleteWorkbook,
|
|
2911
|
+
Dn as useDismissInboxItem,
|
|
2912
|
+
Je as useDocumentPermissions,
|
|
2913
|
+
br as useDropFileToDatabox,
|
|
2914
|
+
qu as useDuplicatePolicy,
|
|
2915
|
+
Za as useEnsureVirtualDatasets,
|
|
2916
|
+
hu as useEvaluatePolicy,
|
|
2917
|
+
Bt as useExecuteNow,
|
|
2918
|
+
Mt as useExecuteProcessTreeTrigger,
|
|
2919
|
+
Ga as useExecuteTriggerNow,
|
|
2235
2920
|
Xe as useFileDownload,
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2921
|
+
$e as useFileUpload,
|
|
2922
|
+
An as useFilterMessagesBySenderId,
|
|
2923
|
+
jr as useFxDefinitionSheet,
|
|
2924
|
+
In as useGetAllConversations,
|
|
2925
|
+
Rt as useGetAllHttpTriggers,
|
|
2926
|
+
on as useGetAllInboxItems,
|
|
2927
|
+
yt as useGetAllRecon,
|
|
2928
|
+
_ as useGetAllReconV2,
|
|
2929
|
+
kt as useGetAllTeams,
|
|
2930
|
+
lt as useGetAllTemplatedPipelines,
|
|
2931
|
+
St as useGetAllUsers,
|
|
2932
|
+
it as useGetAuditLogs,
|
|
2248
2933
|
de as useGetCommentsByThreadId,
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2934
|
+
vn as useGetConversation,
|
|
2935
|
+
iu as useGetDashboard,
|
|
2936
|
+
pr as useGetDataboxFile,
|
|
2937
|
+
mr as useGetDataboxFileDownloadUrl,
|
|
2938
|
+
fr as useGetDataboxFileRuns,
|
|
2939
|
+
gr as useGetDataboxFileStatus,
|
|
2940
|
+
ar as useGetDataboxFolder,
|
|
2941
|
+
or as useGetDataboxFolderDatasets,
|
|
2942
|
+
sr as useGetDataboxFolderDuplicates,
|
|
2943
|
+
ur as useGetDataboxFolderFiles,
|
|
2944
|
+
lr as useGetDataboxFolderSchema,
|
|
2945
|
+
yr as useGetDataboxSchemaHistory,
|
|
2946
|
+
dr as useGetDataboxTrashFiles,
|
|
2947
|
+
cr as useGetDatasetDuplicates,
|
|
2948
|
+
ir as useGetDatasetExceptions,
|
|
2263
2949
|
he as useGetDatasets,
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2950
|
+
ru as useGetExportConfig,
|
|
2951
|
+
Ce as useGetFileByFolderIdAndName,
|
|
2952
|
+
Se as useGetFileById,
|
|
2953
|
+
De as useGetFileUrlByFileId,
|
|
2954
|
+
Cr as useGetFiscalCalendar,
|
|
2955
|
+
ot as useGetFormById,
|
|
2956
|
+
ut as useGetFormData,
|
|
2957
|
+
at as useGetFormSchema,
|
|
2958
|
+
Kr as useGetHolidayCalendar,
|
|
2959
|
+
gu as useGetHttpTrigger,
|
|
2960
|
+
bn as useGetInboxItem,
|
|
2961
|
+
dn as useGetInboxType,
|
|
2962
|
+
Ca as useGetInputTable,
|
|
2963
|
+
Me as useGetInputTables,
|
|
2964
|
+
Lr as useGetPipeline,
|
|
2965
|
+
Ur as useGetPipelineRunStatus,
|
|
2966
|
+
_t as useGetProcessTreeRunByInstanceId,
|
|
2967
|
+
zt as useGetProcessTreeRunsBySheetId,
|
|
2968
|
+
Nt as useGetProcessTreeRunsBySheetIdPaginated,
|
|
2969
|
+
Wt as useGetProcessTreeTrigger,
|
|
2970
|
+
Qt as useGetProcessTreeTriggersBySheetId,
|
|
2971
|
+
ke as useGetPublishedWorkbookById,
|
|
2972
|
+
bt as useGetReconV2CleanResult,
|
|
2973
|
+
wt as useGetReconV2Diff,
|
|
2974
|
+
Ft as useGetReconV2Explanation,
|
|
2975
|
+
ft as useGetReconV2ProfileResult,
|
|
2976
|
+
J as useGetReconV2RunResult,
|
|
2286
2977
|
j as useGetReconV2Runs,
|
|
2287
|
-
|
|
2978
|
+
$ as useGetReconV2SmartResult,
|
|
2288
2979
|
Z as useGetReconV2Workflow,
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2980
|
+
Re as useGetRunResultById,
|
|
2981
|
+
xe as useGetRunsByViewId,
|
|
2982
|
+
At as useGetScheduleStatus,
|
|
2983
|
+
Ke as useGetStatementData,
|
|
2984
|
+
Pe as useGetTableById,
|
|
2294
2985
|
Ye as useGetTaskDetails,
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2986
|
+
Pt as useGetTriggersBySheet,
|
|
2987
|
+
Ie as useGetViewById,
|
|
2988
|
+
ve as useGetViewsBySheetId,
|
|
2989
|
+
$a as useGetVirtualDataset,
|
|
2990
|
+
Te as useGetVirtualDatasets,
|
|
2991
|
+
tu as useGetWorkbook,
|
|
2299
2992
|
Ze as useGetWorkbookDetails,
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
Ae as
|
|
2304
|
-
|
|
2993
|
+
Ve as useGetWorkbooksByType,
|
|
2994
|
+
Va as useGetWorkflow,
|
|
2995
|
+
Ee as useGetWorkflowInstanceStatusById,
|
|
2996
|
+
Ae as useGetWorksheets,
|
|
2997
|
+
Be as useGetWorksheetsByType,
|
|
2998
|
+
Er as useImportHolidays,
|
|
2305
2999
|
Ge as useInputTable,
|
|
3000
|
+
Pa as useInputTableSchema,
|
|
3001
|
+
Sa as useInsertInputTableRows,
|
|
2306
3002
|
Le as useInsertRow,
|
|
2307
|
-
|
|
3003
|
+
Br as useLastSuccessfulPipelineRun,
|
|
2308
3004
|
ae as useListBranches,
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
3005
|
+
$r as useListCommits,
|
|
3006
|
+
wa as useListConnections,
|
|
3007
|
+
su as useListDashboards,
|
|
3008
|
+
ha as useListDataboxes,
|
|
3009
|
+
nu as useListExportConfigs,
|
|
3010
|
+
Ta as useListFileboxFolders,
|
|
3011
|
+
Dr as useListFiscalCalendars,
|
|
3012
|
+
xr as useListHolidayCalendars,
|
|
3013
|
+
Vr as useListHolidays,
|
|
3014
|
+
pu as useListHttpTriggers,
|
|
3015
|
+
yn as useListInboxTypes,
|
|
3016
|
+
Da as useListInputTables,
|
|
3017
|
+
mn as useListMyInboxItems,
|
|
3018
|
+
Xr as useListTags,
|
|
3019
|
+
Ja as useListVirtualDatasets,
|
|
3020
|
+
eu as useListWorkbooks,
|
|
3021
|
+
va as useListWorkflows,
|
|
3022
|
+
Lt as useLogProcessTreeRun,
|
|
3023
|
+
qn as useMarkInboxItemsRead,
|
|
3024
|
+
hn as useMarkInboxItemsUnread,
|
|
3025
|
+
sn as useMarkItemAsRead,
|
|
3026
|
+
cn as useMarkItemAsUnread,
|
|
3027
|
+
xt as useMarkTaskDone,
|
|
3028
|
+
Zr as useMergeBranches,
|
|
2320
3029
|
ce as useMetric,
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
3030
|
+
ia as usePackagableComponents,
|
|
3031
|
+
Vt as usePauseSchedule,
|
|
3032
|
+
Ma as usePauseTrigger,
|
|
3033
|
+
Tr as usePermanentDeleteDataboxFiles,
|
|
3034
|
+
Ar as usePipelineList,
|
|
3035
|
+
Or as usePipelineOutputSample,
|
|
3036
|
+
Mr as usePipelineOverview,
|
|
3037
|
+
Gr as usePipelineRunDetail,
|
|
3038
|
+
ne as usePipelineRuns,
|
|
3039
|
+
fu as usePolicies,
|
|
3040
|
+
mu as usePolicy,
|
|
3041
|
+
pe as usePostComment,
|
|
3042
|
+
da as usePublishJob,
|
|
3043
|
+
wu as usePublishPolicy,
|
|
3044
|
+
ya as usePublishSolution,
|
|
3045
|
+
tt as usePublishWorkbook,
|
|
3046
|
+
ea as usePushBranch,
|
|
3047
|
+
Ia as useReadInputTableRows,
|
|
3048
|
+
xn as useReassignInboxItem,
|
|
3049
|
+
Kt as useReassignTask,
|
|
3050
|
+
ht as useReconV2Detail,
|
|
3051
|
+
Tt as useReconV2Editor,
|
|
3052
|
+
qt as useReconV2List,
|
|
3053
|
+
Ct as useReconV2Results,
|
|
3054
|
+
Dt as useReconV2RunController,
|
|
2337
3055
|
Y as useReconV2RunStatus,
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
3056
|
+
pt as useReconV2Templates,
|
|
3057
|
+
Jt as useRegisterCustomAuthzModel,
|
|
3058
|
+
nn as useRegisterCustomTypeMetadata,
|
|
3059
|
+
It as useRegisterProcessTrigger,
|
|
3060
|
+
Aa as useRegisterTrigger,
|
|
3061
|
+
kn as useReleaseInboxItem,
|
|
3062
|
+
du as useRemoveDashboardWidget,
|
|
3063
|
+
rr as useRenderTemplate,
|
|
3064
|
+
En as useReplyToConversation,
|
|
3065
|
+
hr as useRestoreDataboxFile,
|
|
3066
|
+
Et as useResumeSchedule,
|
|
3067
|
+
Oa as useResumeTrigger,
|
|
3068
|
+
Oe as useRows,
|
|
3069
|
+
wr as useRunDataboxFolder,
|
|
2348
3070
|
We as useRunDefinition,
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
3071
|
+
ou as useRunExportConfig,
|
|
3072
|
+
Wr as useRunPipeline,
|
|
3073
|
+
Qe as useRunPublishedDefinition,
|
|
3074
|
+
rt as useRunRecon,
|
|
3075
|
+
N as useRunReconV2,
|
|
3076
|
+
ze as useRunSampleDefinition,
|
|
3077
|
+
Hr as useSavePipeline,
|
|
3078
|
+
bu as useSavePolicy,
|
|
3079
|
+
et as useSaveWorkbook,
|
|
3080
|
+
Ea as useSaveWorkflow,
|
|
3081
|
+
_a as useSearchDatasets,
|
|
3082
|
+
Bn as useSearchMessages,
|
|
3083
|
+
ua as useSetExternalAppAccessControl,
|
|
3084
|
+
ra as useSetExternalAppEnv,
|
|
3085
|
+
aa as useSetExternalAppSchemaMap,
|
|
3086
|
+
Tu as useSetSolutionSeedData,
|
|
3087
|
+
za as useSheetRunStatus,
|
|
3088
|
+
Qa as useSheetRuns,
|
|
3089
|
+
La as useSkipTrigger,
|
|
3090
|
+
Tn as useSnoozeInboxItem,
|
|
2356
3091
|
re as useSolutionList,
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
Ne as
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
3092
|
+
Jr as useSolutionPicker,
|
|
3093
|
+
mt as useStartReconV2Clean,
|
|
3094
|
+
gt as useStartReconV2Profile,
|
|
3095
|
+
me as useSubscribeUser,
|
|
3096
|
+
Jn as useTcnAgentDisconnect,
|
|
3097
|
+
tr as useTcnAgentGetCallFromHold,
|
|
3098
|
+
Qn as useTcnAgentGetStatus,
|
|
3099
|
+
$n as useTcnAgentPause,
|
|
3100
|
+
er as useTcnAgentPutCallOnHold,
|
|
3101
|
+
Xn as useTcnAgentSetReady,
|
|
3102
|
+
Un as useTcnAgentSkills,
|
|
3103
|
+
Gn as useTcnAuthUrl,
|
|
3104
|
+
Zn as useTcnCallData,
|
|
3105
|
+
Yn as useTcnConnectedParty,
|
|
3106
|
+
Hn as useTcnCreateSession,
|
|
3107
|
+
Ln as useTcnCurrentAgent,
|
|
3108
|
+
Nn as useTcnDialManualPrepare,
|
|
3109
|
+
Mn as useTcnExchangeCode,
|
|
3110
|
+
nr as useTcnFtpManualDialReport,
|
|
3111
|
+
zn as useTcnHuntGroupSettings,
|
|
3112
|
+
Wn as useTcnKeepAlive,
|
|
3113
|
+
jn as useTcnManualDialStart,
|
|
3114
|
+
_n as useTcnProcessManualDial,
|
|
3115
|
+
On as useTcnRefreshToken,
|
|
3116
|
+
Ot as useTerminateProcessTreePipelines,
|
|
3117
|
+
ba as useTestConnection,
|
|
3118
|
+
qr as useTrashDataboxFiles,
|
|
3119
|
+
Ne as useTriggerHttpWorkflow,
|
|
3120
|
+
Ua as useTriggerScheduleStatus,
|
|
3121
|
+
_e as useTriggerWorkflow,
|
|
3122
|
+
Wa as useTriggersBySheet,
|
|
3123
|
+
be as useUnsubscribeUser,
|
|
3124
|
+
Ha as useUpcomingSchedules,
|
|
3125
|
+
ge as useUpdateComment,
|
|
3126
|
+
$t as useUpdateCustomObjectPermissions,
|
|
3127
|
+
yu as useUpdateDashboardWidget,
|
|
3128
|
+
Fr as useUpdateDataboxFolderSchema,
|
|
3129
|
+
uu as useUpdateExportConfig,
|
|
3130
|
+
kr as useUpdateFiscalCalendar,
|
|
3131
|
+
Ir as useUpdateHolidayCalendar,
|
|
3132
|
+
Fn as useUpdateInboxItem,
|
|
3133
|
+
gn as useUpdateInboxType,
|
|
3134
|
+
ka as useUpdateInputTableRows,
|
|
3135
|
+
Ut as useUpdateProcessTreeRunContext,
|
|
3136
|
+
z as useUpdateReconV2,
|
|
2395
3137
|
Ue as useUpdateRow,
|
|
2396
|
-
|
|
3138
|
+
H as useUser,
|
|
2397
3139
|
je as useUserDetails,
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
3140
|
+
oa as useValidateExternalAppUrl,
|
|
3141
|
+
la as useValidateSolution,
|
|
3142
|
+
zr as useWorkingPaper,
|
|
3143
|
+
_r as useWorkingPaperInputTableSheet,
|
|
3144
|
+
Qr as useWorkingPaperList
|
|
2401
3145
|
};
|