@bluecopa/react 0.1.126 → 0.1.127

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