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