@bluecopa/react 0.1.110 → 0.1.112

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