@bluecopa/react 0.1.118 → 0.1.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
- import { useQuery as o, useMutation as u, useQueryClient as g } from "@tanstack/react-query";
1
+ import { useQuery as s, useMutation as u, useQueryClient as p } from "@tanstack/react-query";
2
2
  import * as oe from "@tanstack/react-query";
3
3
  import { copaApi as r, copaGetConfig as x, copaUtils as A } from "@bluecopa/core";
4
4
  export * from "@bluecopa/core";
5
5
  import { useState as q, useRef as B, useEffect as K, useMemo as h, useCallback as G } from "react";
6
- import { ReactQueryDevtools as bu } from "@tanstack/react-query-devtools";
6
+ import { ReactQueryDevtools as ku } from "@tanstack/react-query-devtools";
7
7
  const M = {
8
8
  enabled: !0,
9
9
  staleTime: 1e3 * 60 * 5,
@@ -22,8 +22,8 @@ function O(e = {}) {
22
22
  function L(e = 5e3) {
23
23
  return new Promise((t) => setTimeout(t, e));
24
24
  }
25
- function I(e, t) {
26
- const n = Object.entries(e).filter(([a, s]) => !s).map(([a]) => a);
25
+ function P(e, t) {
26
+ const n = Object.entries(e).filter(([a, o]) => !o).map(([a]) => a);
27
27
  if (n.length > 0)
28
28
  throw new Error(
29
29
  t || `Missing required parameters: ${n.join(", ")}`
@@ -47,7 +47,7 @@ function d(e) {
47
47
  };
48
48
  }
49
49
  function ce(e, t = {}) {
50
- const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, s = y(async () => {
50
+ const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, o = y(async () => {
51
51
  if (!e)
52
52
  throw new Error("Metric ID is required");
53
53
  return console.log("Fetching metric data..."), await r.metric.getData(e, {
@@ -55,11 +55,11 @@ function ce(e, t = {}) {
55
55
  });
56
56
  }), i = d({
57
57
  queryKey: ["metricData", e, a, t.limit ?? null],
58
- queryFn: s,
58
+ queryFn: o,
59
59
  enabled: n,
60
60
  options: t
61
61
  });
62
- return o(i);
62
+ return s(i);
63
63
  }
64
64
  function le(e, t = {}) {
65
65
  const n = !!e, a = y(async () => {
@@ -69,13 +69,13 @@ function le(e, t = {}) {
69
69
  datasetId: e,
70
70
  dataFilter: "all_data"
71
71
  });
72
- }), s = d({
72
+ }), o = d({
73
73
  queryKey: ["datasetData", e],
74
74
  queryFn: a,
75
75
  enabled: n,
76
76
  options: t
77
77
  });
78
- return o(s);
78
+ return s(o);
79
79
  }
80
80
  function ye(e = {}) {
81
81
  return u({
@@ -87,16 +87,16 @@ function ye(e = {}) {
87
87
  });
88
88
  }
89
89
  function de(e, t = {}) {
90
- const n = t.enabled !== !1 && !!e, a = y(async () => (I(
90
+ const n = t.enabled !== !1 && !!e, a = y(async () => (P(
91
91
  { threadId: e },
92
92
  "Thread ID is required to fetch comments"
93
- ), await r.chat.getCommentsByThreadId(e))), s = d({
93
+ ), await r.chat.getCommentsByThreadId(e))), o = d({
94
94
  queryKey: ["chat", "comments", e],
95
95
  queryFn: a,
96
96
  enabled: n,
97
97
  options: t
98
98
  });
99
- return o(s);
99
+ return s(o);
100
100
  }
101
101
  function pe(e = {}) {
102
102
  return u({
@@ -144,16 +144,16 @@ function be(e = {}) {
144
144
  });
145
145
  }
146
146
  function we(e, t, n = {}) {
147
- const a = n.enabled !== !1 && !!e && !!t, s = y(async () => (I(
147
+ const a = n.enabled !== !1 && !!e && !!t, o = y(async () => (P(
148
148
  { userId: e, threadId: t },
149
149
  "User ID and Thread ID are required to check subscription status"
150
150
  ), await r.chat.checkSubscriptionStatus(e, t))), i = d({
151
151
  queryKey: ["chat", "subscription", e, t],
152
- queryFn: s,
152
+ queryFn: o,
153
153
  enabled: a,
154
154
  options: n
155
155
  });
156
- return o(i);
156
+ return s(i);
157
157
  }
158
158
  function Fe(e = {}) {
159
159
  return u({
@@ -168,13 +168,13 @@ function qe(e, t = {}) {
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
+ }), o = d({
172
172
  queryKey: ["datasetData", e],
173
173
  queryFn: a,
174
174
  enabled: n,
175
175
  options: t
176
176
  });
177
- return o(s);
177
+ return s(o);
178
178
  }
179
179
  function he() {
180
180
  const e = y(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), t = d({
@@ -182,7 +182,7 @@ function he() {
182
182
  queryFn: e,
183
183
  enabled: !0
184
184
  });
185
- return o(t);
185
+ return s(t);
186
186
  }
187
187
  function Te() {
188
188
  const e = y(async () => await r.dataset.getVirtualDatasets()), t = d({
@@ -190,10 +190,10 @@ function Te() {
190
190
  queryFn: e,
191
191
  enabled: !0
192
192
  });
193
- return o(t);
193
+ return s(t);
194
194
  }
195
195
  function De(e, t, n, a = {}) {
196
- const s = !!e && !!t && !!n, i = y(async () => {
196
+ const o = !!e && !!t && !!n, i = y(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({
@@ -204,78 +204,78 @@ function De(e, t, n, a = {}) {
204
204
  }), c = d({
205
205
  queryKey: ["file", "getFileUrlByFileId", e, t, n],
206
206
  queryFn: i,
207
- enabled: s,
207
+ enabled: o,
208
208
  options: a
209
209
  });
210
- return o(c);
210
+ return s(c);
211
211
  }
212
212
  function Ce(e, t, n = {}) {
213
- const a = e?.trim(), s = t?.trim(), i = !!(a && s), c = y(async () => await r.files.getFileByFolderIdAndName({
213
+ const a = e?.trim(), o = t?.trim(), i = !!(a && o), c = y(async () => await r.files.getFileByFolderIdAndName({
214
214
  folderId: a,
215
- name: s
215
+ name: o
216
216
  })), l = d({
217
217
  queryKey: [
218
218
  "file",
219
219
  "getFileByFolderIdAndName",
220
220
  a,
221
- s
221
+ o
222
222
  ],
223
223
  queryFn: c,
224
224
  enabled: i,
225
225
  options: n
226
226
  });
227
- return o(l);
227
+ return s(l);
228
228
  }
229
229
  function Se(e, t = {}) {
230
- const n = e?.trim(), a = !!n, s = y(async () => await r.files.getFileById({ id: n })), i = d({
230
+ const n = e?.trim(), a = !!n, o = y(async () => await r.files.getFileById({ id: n })), i = d({
231
231
  queryKey: ["file", "getFileById", n],
232
- queryFn: s,
232
+ queryFn: o,
233
233
  enabled: a,
234
234
  options: t
235
235
  });
236
- return o(i);
236
+ return s(i);
237
237
  }
238
238
  function ke(e, t, n = {}) {
239
- const a = !!e && !!t, s = y(async () => {
239
+ const a = !!e && !!t, o = y(async () => {
240
240
  if (!e || !t)
241
241
  throw new Error("Type and ID are required");
242
242
  return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: t });
243
243
  }), i = d({
244
244
  queryKey: ["workbook", "getPublishedWorkbookById", e, t],
245
- queryFn: s,
245
+ queryFn: o,
246
246
  enabled: a,
247
247
  options: n
248
248
  });
249
- return o(i);
249
+ return s(i);
250
250
  }
251
251
  function Re(e, t = {}) {
252
252
  const n = !!e, a = y(async () => {
253
253
  if (!e)
254
254
  throw new Error("Run ID is required");
255
255
  return await r.statement.getRunResultById(e);
256
- }), s = d({
256
+ }), o = d({
257
257
  queryKey: ["statement", "getRunResultById", e],
258
258
  queryFn: a,
259
259
  enabled: n,
260
260
  options: t
261
261
  });
262
- return o(s);
262
+ return s(o);
263
263
  }
264
264
  function xe(e, t = {}) {
265
265
  const n = !!e, a = y(async () => {
266
266
  if (!e)
267
267
  throw new Error("View ID is required");
268
268
  return await r.statement.getRunsByViewId(e);
269
- }), s = d({
269
+ }), o = d({
270
270
  queryKey: ["statement", "getRunsByViewId", e],
271
271
  queryFn: a,
272
272
  enabled: n,
273
273
  options: t
274
274
  });
275
- return o(s);
275
+ return s(o);
276
276
  }
277
277
  function Ke(e, t, n, a = {}) {
278
- const s = !!e, i = y(async () => {
278
+ const o = !!e, i = y(async () => {
279
279
  if (!e)
280
280
  throw new Error("Statement ID is required");
281
281
  return await r.statement.getData({
@@ -286,62 +286,62 @@ function Ke(e, t, n, a = {}) {
286
286
  }), c = d({
287
287
  queryKey: ["statement", "getData", e, t, n],
288
288
  queryFn: i,
289
- enabled: s,
289
+ enabled: o,
290
290
  options: a
291
291
  });
292
- return o(c);
292
+ return s(c);
293
293
  }
294
- function Ie(e, t = {}) {
294
+ function Pe(e, t = {}) {
295
295
  const n = !!e, a = y(async () => {
296
296
  if (!e)
297
297
  throw new Error("Table ID is required");
298
298
  return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
299
- }), s = d({
299
+ }), o = d({
300
300
  queryKey: ["inputTable", "getTableById", e],
301
301
  queryFn: a,
302
302
  enabled: n,
303
303
  options: t
304
304
  });
305
- return o(s);
305
+ return s(o);
306
306
  }
307
- function Pe(e, t = {}) {
307
+ function Ie(e, t = {}) {
308
308
  const n = !!e, a = y(async () => {
309
309
  if (!e)
310
310
  throw new Error("View ID is required");
311
311
  return await r.statement.getViewById(e);
312
- }), s = d({
312
+ }), o = d({
313
313
  queryKey: ["statement", "getViewById", e],
314
314
  queryFn: a,
315
315
  enabled: n,
316
316
  options: t
317
317
  });
318
- return o(s);
318
+ return s(o);
319
319
  }
320
320
  function ve(e, t = {}) {
321
321
  const n = !!e, a = y(async () => {
322
322
  if (!e)
323
323
  throw new Error("Sheet ID is required");
324
324
  return await r.statement.getViewsBySheetId(e);
325
- }), s = d({
325
+ }), o = d({
326
326
  queryKey: ["statement", "getViewsBySheetId", e],
327
327
  queryFn: a,
328
328
  enabled: n,
329
329
  options: t
330
330
  });
331
- return o(s);
331
+ return s(o);
332
332
  }
333
333
  function Ve(e, t = {}) {
334
334
  const n = !!e, a = y(async () => {
335
335
  if (!e)
336
336
  throw new Error("Type is required");
337
337
  return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
338
- }), s = d({
338
+ }), o = d({
339
339
  queryKey: ["workbook", "getWorkbooksByType", e],
340
340
  queryFn: a,
341
341
  enabled: n,
342
342
  options: t
343
343
  });
344
- return o(s);
344
+ return s(o);
345
345
  }
346
346
  var U = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(U || {});
347
347
  function Ee(e = {}) {
@@ -355,41 +355,41 @@ function Ae(e, t = {}) {
355
355
  if (!e || e.length === 0)
356
356
  throw new Error("Worksheet IDs are required");
357
357
  return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
358
- }), s = d({
358
+ }), o = d({
359
359
  queryKey: ["worksheet", "getWorksheets", e],
360
360
  queryFn: a,
361
361
  enabled: n,
362
362
  options: t
363
363
  });
364
- return o(s);
364
+ return s(o);
365
365
  }
366
366
  function Be(e, t = {}) {
367
367
  const n = !!e, a = y(async () => {
368
368
  if (!e)
369
369
  throw new Error("Type is required");
370
370
  return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
371
- }), s = d({
371
+ }), o = d({
372
372
  queryKey: ["worksheet", "getWorksheetsByType", e],
373
373
  queryFn: a,
374
374
  enabled: n,
375
375
  options: t
376
376
  });
377
- return o(s);
377
+ return s(o);
378
378
  }
379
379
  function Ge(e, t, n = {}) {
380
380
  const {
381
381
  limitParams: a = { limit: 2e3, limitFrom: "top" },
382
- pageParams: s,
382
+ pageParams: o,
383
383
  sortParams: i,
384
384
  offsetParam: c,
385
385
  ...l
386
- } = n, p = l.enabled !== !1 && !!e && !!t, f = y(async () => {
386
+ } = n, g = l.enabled !== !1 && !!e && !!t, f = y(async () => {
387
387
  if (!e || !t)
388
388
  throw new Error("Input table ID and view ID are required");
389
389
  return console.log("Fetching input table data..."), await r.inputTable.getData({
390
390
  inputTableId: e,
391
391
  inputTableViewId: t,
392
- pageParams: s,
392
+ pageParams: o,
393
393
  limitParams: a,
394
394
  sortParams: i,
395
395
  offsetParam: c
@@ -397,10 +397,10 @@ function Ge(e, t, n = {}) {
397
397
  }), m = d({
398
398
  queryKey: ["inputTableData", e, t],
399
399
  queryFn: f,
400
- enabled: p,
400
+ enabled: g,
401
401
  options: l
402
402
  });
403
- return o(m);
403
+ return s(m);
404
404
  }
405
405
  function Me() {
406
406
  const e = y(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), t = d({
@@ -408,7 +408,7 @@ function Me() {
408
408
  queryFn: e,
409
409
  enabled: !0
410
410
  });
411
- return o(t);
411
+ return s(t);
412
412
  }
413
413
  function Oe(e, t = {}) {
414
414
  const n = [
@@ -419,11 +419,11 @@ function Oe(e, t = {}) {
419
419
  "retryDelay",
420
420
  "onSuccess",
421
421
  "onError"
422
- ], { limit: a, offset: s, order: i, order_by: c, ...l } = t, p = {}, f = { limit: a, offset: s, order: i, order_by: c };
422
+ ], { limit: a, offset: o, order: i, order_by: c, ...l } = t, g = {}, f = { limit: a, offset: o, order: i, order_by: c };
423
423
  Object.keys(l).forEach((w) => {
424
- n.includes(w) ? p[w] = l[w] : f[w] = l[w];
424
+ n.includes(w) ? g[w] = l[w] : f[w] = l[w];
425
425
  });
426
- const m = p.enabled !== !1 && !!e, F = y(async () => {
426
+ const m = g.enabled !== !1 && !!e, F = y(async () => {
427
427
  if (!e)
428
428
  throw new Error("Table ID is required");
429
429
  return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, f);
@@ -431,12 +431,12 @@ function Oe(e, t = {}) {
431
431
  queryKey: ["inputTableRows", e, t],
432
432
  queryFn: F,
433
433
  enabled: m,
434
- options: p
434
+ options: g
435
435
  });
436
- return o(b);
436
+ return s(b);
437
437
  }
438
438
  function Le(e = {}) {
439
- const t = g();
439
+ const t = p();
440
440
  return u({
441
441
  mutationFn: async (n) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(n.tableId, n.rowData)),
442
442
  onSuccess: (n, a) => {
@@ -451,7 +451,7 @@ function Le(e = {}) {
451
451
  });
452
452
  }
453
453
  function Ue(e = {}) {
454
- const t = g();
454
+ const t = p();
455
455
  return u({
456
456
  mutationFn: async (n) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
457
457
  n.tableId,
@@ -470,7 +470,7 @@ function Ue(e = {}) {
470
470
  });
471
471
  }
472
472
  function He(e = {}) {
473
- const t = g();
473
+ const t = p();
474
474
  return u({
475
475
  mutationFn: async (n) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
476
476
  n.tableId,
@@ -525,11 +525,11 @@ function H(e = {}) {
525
525
  enabled: t,
526
526
  options: e
527
527
  });
528
- return o(a);
528
+ return s(a);
529
529
  }
530
530
  const je = H, W = ["Owner", "Editor", "Viewer", "ReadOnly"], R = r.permissions?.getPermissions;
531
531
  function Je(e, t, n = {}) {
532
- const a = n.enabled !== !1 && !!e?.trim(), s = y(
532
+ const a = n.enabled !== !1 && !!e?.trim(), o = y(
533
533
  async () => {
534
534
  if (!e?.trim())
535
535
  return {};
@@ -554,11 +554,11 @@ function Je(e, t, n = {}) {
554
554
  0
555
555
  ), i = d({
556
556
  queryKey: ["documentPermissions", e ?? "", t, n.relations ?? []],
557
- queryFn: s,
557
+ queryFn: o,
558
558
  enabled: a,
559
559
  options: n
560
560
  });
561
- return o(i);
561
+ return s(i);
562
562
  }
563
563
  function $e(e = {}) {
564
564
  return u({
@@ -571,43 +571,43 @@ function Xe({
571
571
  contentType: t = "application/json",
572
572
  method: n = "GET"
573
573
  }, a = {}) {
574
- const s = !!e, i = y(async () => {
574
+ const o = !!e, i = y(async () => {
575
575
  if (!e)
576
576
  throw new Error("File ID is required");
577
577
  return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: t, method: n });
578
578
  }), c = d({
579
579
  queryKey: ["file", "fileDownload", e],
580
580
  queryFn: i,
581
- enabled: s,
581
+ enabled: o,
582
582
  options: a
583
583
  });
584
- return o(c);
584
+ return s(c);
585
585
  }
586
586
  function Ye(e, t = {}) {
587
587
  const n = !!e, a = y(async () => {
588
588
  if (!e)
589
589
  throw new Error("Task ID is required");
590
590
  return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
591
- }), s = d({
591
+ }), o = d({
592
592
  queryKey: ["task", "getTaskDetails", e],
593
593
  queryFn: a,
594
594
  enabled: n,
595
595
  options: t
596
596
  });
597
- return o(s);
597
+ return s(o);
598
598
  }
599
599
  function Ze(e, t = {}) {
600
600
  const n = !!e, a = y(async () => {
601
601
  if (!e)
602
602
  throw new Error("Workbook ID is required");
603
603
  return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
604
- }), s = d({
604
+ }), o = d({
605
605
  queryKey: ["workbook", "getWorkbookDetails", e],
606
606
  queryFn: a,
607
607
  enabled: n,
608
608
  options: t
609
609
  });
610
- return o(s);
610
+ return s(o);
611
611
  }
612
612
  function et(e = {}) {
613
613
  return u({
@@ -634,15 +634,15 @@ function rt(e = {}) {
634
634
  });
635
635
  }
636
636
  function at(e, t, n = {}) {
637
- const a = !!e && !!t, s = y(async () => {
637
+ const a = !!e && !!t, o = y(async () => {
638
638
  if (!e || !t)
639
639
  throw new Error("Form instance ID and revision are required");
640
640
  return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: t });
641
641
  });
642
- return o(
642
+ return s(
643
643
  d({
644
644
  queryKey: ["form", "getFormSchema", e, t],
645
- queryFn: s,
645
+ queryFn: o,
646
646
  enabled: a,
647
647
  options: n
648
648
  })
@@ -653,16 +653,16 @@ function ut(e, t = {}) {
653
653
  if (!e)
654
654
  throw new Error("Form ID is required");
655
655
  return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
656
- }), s = d({
656
+ }), o = d({
657
657
  queryKey: ["form", "getFormData", e],
658
658
  queryFn: a,
659
659
  enabled: n,
660
660
  options: t
661
661
  });
662
- return o(s);
662
+ return s(o);
663
663
  }
664
664
  function ot(e, t = {}) {
665
- return o({
665
+ return s({
666
666
  queryKey: ["form", e],
667
667
  queryFn: async () => {
668
668
  if (!e)
@@ -692,14 +692,14 @@ function ct(e = {}) {
692
692
  });
693
693
  }
694
694
  function lt(e = {}) {
695
- return o({
695
+ return s({
696
696
  queryKey: ["templatedPipelines"],
697
697
  queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
698
698
  ...e
699
699
  });
700
700
  }
701
701
  function yt(e = {}) {
702
- return o({
702
+ return s({
703
703
  queryKey: ["reconWorkflows"],
704
704
  queryFn: async () => await r.recon.getAllReconWorkflows(),
705
705
  ...e
@@ -730,7 +730,7 @@ function N(e = {}) {
730
730
  });
731
731
  }
732
732
  function _(e = {}) {
733
- return o({
733
+ return s({
734
734
  queryKey: ["reconV2Workflows"],
735
735
  queryFn: async () => await r.reconV2.getAllReconV2Workflows(),
736
736
  ...e
@@ -738,7 +738,7 @@ function _(e = {}) {
738
738
  }
739
739
  function j(e, t = {}) {
740
740
  const n = e?.trim();
741
- return o({
741
+ return s({
742
742
  queryKey: ["reconV2", "runs", n],
743
743
  queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId: n }),
744
744
  enabled: !!n,
@@ -746,14 +746,14 @@ function j(e, t = {}) {
746
746
  });
747
747
  }
748
748
  function pt(e = {}) {
749
- return o({
749
+ return s({
750
750
  queryKey: ["reconV2", "templates"],
751
751
  queryFn: async () => await r.reconV2.getReconV2Templates(),
752
752
  ...e
753
753
  });
754
754
  }
755
755
  function J(e, t = {}) {
756
- return o({
756
+ return s({
757
757
  queryKey: ["reconV2", "runResult", e],
758
758
  queryFn: async () => await r.reconV2.getReconV2RunResult({ runId: e }),
759
759
  enabled: !!e,
@@ -761,7 +761,7 @@ function J(e, t = {}) {
761
761
  });
762
762
  }
763
763
  function $(e, t = {}) {
764
- return o({
764
+ return s({
765
765
  queryKey: [
766
766
  "reconV2",
767
767
  "smartResult",
@@ -785,7 +785,7 @@ function gt(e = {}) {
785
785
  });
786
786
  }
787
787
  function ft(e, t = "left", n = {}) {
788
- return o({
788
+ return s({
789
789
  queryKey: ["reconV2", "profile", e, t],
790
790
  queryFn: async () => await r.reconV2.getReconV2ProfileResult({
791
791
  workflowId: e,
@@ -802,7 +802,7 @@ function mt(e = {}) {
802
802
  });
803
803
  }
804
804
  function bt(e, t = "left", n = {}) {
805
- return o({
805
+ return s({
806
806
  queryKey: ["reconV2", "clean", e, t],
807
807
  queryFn: async () => await r.reconV2.getReconV2CleanResult({
808
808
  workflowId: e,
@@ -813,7 +813,7 @@ function bt(e, t = "left", n = {}) {
813
813
  });
814
814
  }
815
815
  function wt(e, t, n, a = {}) {
816
- return o({
816
+ return s({
817
817
  queryKey: ["reconV2", "diff", e, n],
818
818
  queryFn: async () => await r.reconV2.getReconV2Diff({
819
819
  runId: e,
@@ -825,7 +825,7 @@ function wt(e, t, n, a = {}) {
825
825
  });
826
826
  }
827
827
  function Ft(e, t, n = {}) {
828
- return o({
828
+ return s({
829
829
  queryKey: ["reconV2", "explanation", e],
830
830
  queryFn: async () => await r.reconV2.getReconV2Explanation({
831
831
  runId: e,
@@ -839,7 +839,7 @@ const X = ["SUCCEEDED", "FAILED"];
839
839
  function Y(e, t = {}) {
840
840
  const [n, a] = q(
841
841
  void 0
842
- ), [s, i] = q(!1), c = B(t.onComplete);
842
+ ), [o, i] = q(!1), c = B(t.onComplete);
843
843
  return c.current = t.onComplete, K(() => {
844
844
  if (!e)
845
845
  return;
@@ -847,12 +847,12 @@ function Y(e, t = {}) {
847
847
  if (!l)
848
848
  return;
849
849
  a(void 0), i(!1);
850
- const p = A.websocketUtils.ReconResultChannel;
850
+ const g = A.websocketUtils.ReconResultChannel;
851
851
  let f = !1;
852
852
  const m = () => {
853
- f || (f = !0, l.unbind(p, e));
853
+ f || (f = !0, l.unbind(g, e));
854
854
  };
855
- return l.bind(p, e, (F) => {
855
+ return l.bind(g, e, (F) => {
856
856
  let b;
857
857
  try {
858
858
  b = typeof F == "string" ? JSON.parse(F) : F;
@@ -863,11 +863,11 @@ function Y(e, t = {}) {
863
863
  const w = b?.status?.toUpperCase();
864
864
  w && X.includes(w) && (i(!0), c.current?.(b), m());
865
865
  }), m;
866
- }, [e]), { data: n, isTerminal: s };
866
+ }, [e]), { data: n, isTerminal: o };
867
867
  }
868
868
  function Z(e, t = {}) {
869
869
  const n = e?.trim();
870
- return o({
870
+ return s({
871
871
  queryKey: ["reconV2", "workflow", n],
872
872
  queryFn: async () => await r.reconV2.getReconV2Workflow({ id: n }),
873
873
  enabled: !!n,
@@ -884,8 +884,8 @@ function qt(e, t = {}) {
884
884
  const n = _(t);
885
885
  return {
886
886
  workflows: h(() => {
887
- const s = n.data ?? [];
888
- return e?.key ? s.filter((i) => ee(i, e.key) === e.value) : s;
887
+ const o = n.data ?? [];
888
+ return e?.key ? o.filter((i) => ee(i, e.key) === e.value) : o;
889
889
  }, [n.data, e?.key, e?.value]),
890
890
  isLoading: n.isLoading,
891
891
  error: n.error,
@@ -912,13 +912,13 @@ function Tt() {
912
912
  };
913
913
  }
914
914
  function Dt(e, t = {}) {
915
- const n = e?.trim(), [a, s] = q(void 0), i = N(), c = Y(a, { onComplete: t.onComplete }), l = j(n);
915
+ const n = e?.trim(), [a, o] = q(void 0), i = N(), c = Y(a, { onComplete: t.onComplete }), l = j(n);
916
916
  return {
917
917
  startRun: async (f = {}) => {
918
918
  if (!n)
919
919
  throw new Error("workflowId is required to start a run");
920
920
  const m = await i.mutateAsync({ workflowId: n, ...f });
921
- return s(m?.runId), m?.runId;
921
+ return o(m?.runId), m?.runId;
922
922
  },
923
923
  runId: a,
924
924
  status: c.data,
@@ -933,14 +933,14 @@ function Ct({
933
933
  workflowId: t,
934
934
  exceptionType: n,
935
935
  ruleFilter: a,
936
- orderBy: s
936
+ orderBy: o
937
937
  }) {
938
938
  const i = J(e), c = $({
939
939
  runId: e ?? void 0,
940
940
  workflowId: t ?? void 0,
941
941
  exceptionType: n,
942
942
  ruleFilter: a,
943
- orderBy: s
943
+ orderBy: o
944
944
  }), l = c.data?.result;
945
945
  return {
946
946
  runResult: i.data,
@@ -952,21 +952,21 @@ function Ct({
952
952
  };
953
953
  }
954
954
  function St(e = {}) {
955
- return o({
955
+ return s({
956
956
  queryKey: ["users"],
957
957
  queryFn: async () => await r.user.getAllUsers(),
958
958
  ...e
959
959
  });
960
960
  }
961
961
  function kt(e = {}) {
962
- return o({
962
+ return s({
963
963
  queryKey: ["teams"],
964
964
  queryFn: async () => await r.team.getAllTeams(),
965
965
  ...e
966
966
  });
967
967
  }
968
968
  function Rt(e = {}) {
969
- return o({
969
+ return s({
970
970
  queryKey: ["httpTriggers"],
971
971
  queryFn: async () => await r.workflow.getAllHttpTriggers(),
972
972
  ...e
@@ -984,16 +984,16 @@ function Kt(e = {}) {
984
984
  ...e
985
985
  });
986
986
  }
987
- function It(e, t = {}) {
988
- return o({
987
+ function Pt(e, t = {}) {
988
+ return s({
989
989
  queryKey: ["processTriggers", e],
990
990
  queryFn: async () => await r.process.getTriggersBySheet(e),
991
991
  enabled: !!e,
992
992
  ...t
993
993
  });
994
994
  }
995
- function Pt(e = {}) {
996
- const t = g();
995
+ function It(e = {}) {
996
+ const t = p();
997
997
  return u({
998
998
  mutationFn: async (n) => await r.process.registerProcessTrigger(n),
999
999
  onSuccess: (n, a) => {
@@ -1005,7 +1005,7 @@ function Pt(e = {}) {
1005
1005
  });
1006
1006
  }
1007
1007
  function vt(e = {}) {
1008
- const t = g();
1008
+ const t = p();
1009
1009
  return u({
1010
1010
  mutationFn: async ({ id: n }) => await r.process.deleteProcessTrigger(n),
1011
1011
  onSuccess: (n, a) => {
@@ -1017,7 +1017,7 @@ function vt(e = {}) {
1017
1017
  });
1018
1018
  }
1019
1019
  function Vt(e = {}) {
1020
- const t = g();
1020
+ const t = p();
1021
1021
  return u({
1022
1022
  mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.pauseSchedule(n, a),
1023
1023
  onSuccess: (n, a) => {
@@ -1031,7 +1031,7 @@ function Vt(e = {}) {
1031
1031
  });
1032
1032
  }
1033
1033
  function Et(e = {}) {
1034
- const t = g();
1034
+ const t = p();
1035
1035
  return u({
1036
1036
  mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.resumeSchedule(n, a),
1037
1037
  onSuccess: (n, a) => {
@@ -1045,7 +1045,7 @@ function Et(e = {}) {
1045
1045
  });
1046
1046
  }
1047
1047
  function At(e, t, n = {}) {
1048
- return o({
1048
+ return s({
1049
1049
  queryKey: ["scheduleStatus", e, t],
1050
1050
  queryFn: async () => await r.process.getScheduleStatus(
1051
1051
  e,
@@ -1056,7 +1056,7 @@ function At(e, t, n = {}) {
1056
1056
  });
1057
1057
  }
1058
1058
  function Bt(e = {}) {
1059
- const t = g();
1059
+ const t = p();
1060
1060
  return u({
1061
1061
  mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.executeNow(n, a),
1062
1062
  onSuccess: (n, a) => {
@@ -1068,7 +1068,7 @@ function Bt(e = {}) {
1068
1068
  });
1069
1069
  }
1070
1070
  function Gt(e = {}) {
1071
- const t = g();
1071
+ const t = p();
1072
1072
  return u({
1073
1073
  mutationFn: async (n) => await r.processTree.createOrUpdateProcessTreeTrigger(
1074
1074
  n
@@ -1082,7 +1082,7 @@ function Gt(e = {}) {
1082
1082
  });
1083
1083
  }
1084
1084
  function Mt(e = {}) {
1085
- const t = g();
1085
+ const t = p();
1086
1086
  return u({
1087
1087
  mutationFn: async (n) => await r.processTree.executeProcessTreeTrigger(n),
1088
1088
  onSuccess: (n, a) => {
@@ -1094,7 +1094,7 @@ function Mt(e = {}) {
1094
1094
  });
1095
1095
  }
1096
1096
  function Ot(e = {}) {
1097
- const t = g();
1097
+ const t = p();
1098
1098
  return u({
1099
1099
  mutationFn: async ({ payload: n }) => await r.processTree.terminatePipelines(n),
1100
1100
  onSuccess: (n, a) => {
@@ -1108,7 +1108,7 @@ function Ot(e = {}) {
1108
1108
  });
1109
1109
  }
1110
1110
  function Lt(e = {}) {
1111
- const t = g();
1111
+ const t = p();
1112
1112
  return u({
1113
1113
  mutationFn: async (n) => await r.processTree.logProcessTreeRun(n),
1114
1114
  onSuccess: (n, a) => {
@@ -1122,7 +1122,7 @@ function Lt(e = {}) {
1122
1122
  });
1123
1123
  }
1124
1124
  function Ut(e = {}) {
1125
- const t = g();
1125
+ const t = p();
1126
1126
  return u({
1127
1127
  mutationFn: async ({
1128
1128
  instanceId: n,
@@ -1140,7 +1140,7 @@ function Ut(e = {}) {
1140
1140
  });
1141
1141
  }
1142
1142
  function Ht(e = {}) {
1143
- const t = g();
1143
+ const t = p();
1144
1144
  return u({
1145
1145
  mutationFn: async ({ id: n }) => await r.processTree.deleteProcessTreeTrigger(n),
1146
1146
  onSuccess: (n, a) => {
@@ -1152,7 +1152,7 @@ function Ht(e = {}) {
1152
1152
  });
1153
1153
  }
1154
1154
  function Wt(e, t = {}) {
1155
- return o({
1155
+ return s({
1156
1156
  queryKey: ["processTreeTrigger", e],
1157
1157
  queryFn: async () => await r.processTree.getProcessTreeTrigger(e),
1158
1158
  enabled: !!e,
@@ -1160,7 +1160,7 @@ function Wt(e, t = {}) {
1160
1160
  });
1161
1161
  }
1162
1162
  function Qt(e, t = {}) {
1163
- return o({
1163
+ return s({
1164
1164
  queryKey: ["processTreeTriggers", e],
1165
1165
  queryFn: async () => await r.processTree.getProcessTreeTriggersBySheetId(e),
1166
1166
  enabled: !!e,
@@ -1168,7 +1168,7 @@ function Qt(e, t = {}) {
1168
1168
  });
1169
1169
  }
1170
1170
  function zt(e, t = {}) {
1171
- return o({
1171
+ return s({
1172
1172
  queryKey: ["processTreeRuns", e],
1173
1173
  queryFn: async () => await r.processTree.getProcessTreeRunsBySheetId(e),
1174
1174
  enabled: !!e,
@@ -1176,7 +1176,7 @@ function zt(e, t = {}) {
1176
1176
  });
1177
1177
  }
1178
1178
  function Nt(e, t, n = {}) {
1179
- return o({
1179
+ return s({
1180
1180
  queryKey: [
1181
1181
  "processTreeRuns",
1182
1182
  e,
@@ -1194,7 +1194,7 @@ function Nt(e, t, n = {}) {
1194
1194
  });
1195
1195
  }
1196
1196
  function _t(e, t = {}) {
1197
- return o({
1197
+ return s({
1198
1198
  queryKey: ["processTreeRun", e],
1199
1199
  queryFn: async () => await r.processTree.getProcessTreeRunByInstanceId(
1200
1200
  e
@@ -1204,14 +1204,14 @@ function _t(e, t = {}) {
1204
1204
  });
1205
1205
  }
1206
1206
  function jt(e = {}) {
1207
- return o({
1207
+ return s({
1208
1208
  queryKey: ["customAuthzModel"],
1209
1209
  queryFn: async () => await r.customAuthz.getCustomAuthzModel(),
1210
1210
  ...e
1211
1211
  });
1212
1212
  }
1213
1213
  function Jt(e = {}) {
1214
- const t = g();
1214
+ const t = p();
1215
1215
  return u({
1216
1216
  mutationFn: async (n) => await r.customAuthz.registerCustomAuthzModel(n),
1217
1217
  onSuccess: () => {
@@ -1247,22 +1247,25 @@ function Zt(e = {}) {
1247
1247
  });
1248
1248
  }
1249
1249
  function en(e = {}) {
1250
- return o({
1250
+ return s({
1251
1251
  queryKey: ["customTypeMetadata"],
1252
1252
  queryFn: async () => await r.customAuthz.listCustomTypeMetadata(),
1253
1253
  ...e
1254
1254
  });
1255
1255
  }
1256
1256
  function tn(e, t = {}) {
1257
- return o({
1258
- queryKey: ["customTypeMetadata", e],
1257
+ const n = e?.trim(), { enabled: a, ...o } = t;
1258
+ return s({
1259
+ queryKey: ["customTypeMetadata", n],
1259
1260
  queryFn: async () => await r.customAuthz.getCustomTypeMetadata(e),
1260
- enabled: !!e?.trim(),
1261
- ...t
1261
+ ...o,
1262
+ // Combine the caller's setting with the gate: callers may disable the query
1263
+ // but must not enable it with an empty type (would 400).
1264
+ enabled: (a ?? !0) && !!n
1262
1265
  });
1263
1266
  }
1264
1267
  function nn(e = {}) {
1265
- const t = g();
1268
+ const t = p();
1266
1269
  return u({
1267
1270
  mutationFn: async (n) => await r.customAuthz.registerCustomTypeMetadata(n),
1268
1271
  onSuccess: () => {
@@ -1272,7 +1275,7 @@ function nn(e = {}) {
1272
1275
  });
1273
1276
  }
1274
1277
  function rn(e = {}) {
1275
- const t = g();
1278
+ const t = p();
1276
1279
  return u({
1277
1280
  mutationFn: async (n) => await r.customAuthz.deleteCustomTypeMetadata(n),
1278
1281
  onSuccess: () => {
@@ -1282,23 +1285,29 @@ function rn(e = {}) {
1282
1285
  });
1283
1286
  }
1284
1287
  function an(e, t = {}) {
1285
- return o({
1286
- queryKey: ["customObjects", e?.type, e?.relation],
1288
+ const n = e?.type?.trim(), a = e?.relation?.trim(), { enabled: o, ...i } = t;
1289
+ return s({
1290
+ queryKey: ["customObjects", n, a],
1287
1291
  queryFn: async () => await r.customAuthz.listCustomObjects(e),
1288
- enabled: !!e?.type?.trim() && !!e?.relation?.trim(),
1289
- ...t
1292
+ ...i,
1293
+ // Combine the caller's setting with the gate: callers may disable the query
1294
+ // but must not enable it with an empty type/relation (would 400).
1295
+ enabled: (o ?? !0) && !!n && !!a
1290
1296
  });
1291
1297
  }
1292
1298
  function un(e, t = {}) {
1293
- return o({
1294
- queryKey: ["customObjectsOfType", e],
1299
+ const n = e?.trim(), { enabled: a, ...o } = t;
1300
+ return s({
1301
+ queryKey: ["customObjectsOfType", n],
1295
1302
  queryFn: async () => await r.customAuthz.listCustomObjectsOfType(e),
1296
- enabled: !!e?.trim(),
1297
- ...t
1303
+ ...o,
1304
+ // Combine the caller's setting with the gate: callers may disable the query
1305
+ // but must not enable it with an empty type (would 400).
1306
+ enabled: (a ?? !0) && !!n
1298
1307
  });
1299
1308
  }
1300
1309
  function on(e = {}, t = {}) {
1301
- return o({
1310
+ return s({
1302
1311
  queryKey: ["inboxItems", "all", e.page, e.perPage],
1303
1312
  queryFn: async () => await r.inboxItems.getAllInboxItems(e),
1304
1313
  ...t
@@ -1323,14 +1332,14 @@ function ln(e = {}) {
1323
1332
  });
1324
1333
  }
1325
1334
  function yn(e = {}) {
1326
- return o({
1335
+ return s({
1327
1336
  queryKey: ["inboxV2", "types"],
1328
1337
  queryFn: async () => await r.inboxV2.listTypes(),
1329
1338
  ...e
1330
1339
  });
1331
1340
  }
1332
1341
  function dn(e, t = {}) {
1333
- return o({
1342
+ return s({
1334
1343
  queryKey: ["inboxV2", "type", e],
1335
1344
  queryFn: async () => await r.inboxV2.getType(e),
1336
1345
  enabled: !!e,
@@ -1356,7 +1365,7 @@ function fn(e = {}) {
1356
1365
  });
1357
1366
  }
1358
1367
  function mn(e = {}, t = {}) {
1359
- return o({
1368
+ return s({
1360
1369
  queryKey: [
1361
1370
  "inboxV2",
1362
1371
  "items",
@@ -1371,7 +1380,7 @@ function mn(e = {}, t = {}) {
1371
1380
  });
1372
1381
  }
1373
1382
  function bn(e, t = {}) {
1374
- return o({
1383
+ return s({
1375
1384
  queryKey: ["inboxV2", "item", e],
1376
1385
  queryFn: async () => await r.inboxV2.getItem(e),
1377
1386
  enabled: !!e,
@@ -1450,21 +1459,21 @@ function Kn(e = {}) {
1450
1459
  ...e
1451
1460
  });
1452
1461
  }
1453
- function In(e = {}) {
1462
+ function Pn(e = {}) {
1454
1463
  return u({
1455
1464
  mutationFn: async (t) => await r.inboxV2.cancelByKey(t),
1456
1465
  ...e
1457
1466
  });
1458
1467
  }
1459
- function Pn(e, t = {}) {
1460
- return o({
1468
+ function In(e, t = {}) {
1469
+ return s({
1461
1470
  queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
1462
1471
  queryFn: async () => await r.emailEngine.getAllConversations(e),
1463
1472
  ...t
1464
1473
  });
1465
1474
  }
1466
1475
  function vn(e, t = {}) {
1467
- return o({
1476
+ return s({
1468
1477
  queryKey: ["emailConversation", e],
1469
1478
  queryFn: async () => await r.emailEngine.getConversation({
1470
1479
  conversationId: e
@@ -1474,7 +1483,7 @@ function vn(e, t = {}) {
1474
1483
  });
1475
1484
  }
1476
1485
  function Vn(e = {}) {
1477
- const t = g();
1486
+ const t = p();
1478
1487
  return u({
1479
1488
  mutationFn: async (n) => await r.emailEngine.createConversation(n),
1480
1489
  onSuccess: () => {
@@ -1484,7 +1493,7 @@ function Vn(e = {}) {
1484
1493
  });
1485
1494
  }
1486
1495
  function En(e = {}) {
1487
- const t = g();
1496
+ const t = p();
1488
1497
  return u({
1489
1498
  mutationFn: async (n) => await r.emailEngine.replyToConversation(n),
1490
1499
  onSuccess: (n, a) => {
@@ -1496,7 +1505,7 @@ function En(e = {}) {
1496
1505
  });
1497
1506
  }
1498
1507
  function An(e, t = {}) {
1499
- return o({
1508
+ return s({
1500
1509
  queryKey: [
1501
1510
  "emailMessagesBySender",
1502
1511
  e.senderId,
@@ -1523,7 +1532,7 @@ function Gn(e = {}) {
1523
1532
  enabled: !0,
1524
1533
  options: e
1525
1534
  });
1526
- return o(n);
1535
+ return s(n);
1527
1536
  }
1528
1537
  function Mn(e = {}) {
1529
1538
  return u({
@@ -1587,11 +1596,11 @@ function _n(e = {}) {
1587
1596
  }
1588
1597
  function jn(e = {}) {
1589
1598
  return u({
1590
- mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: s }) => await r.tcn.manualDialStart(
1599
+ mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: o }) => await r.tcn.manualDialStart(
1591
1600
  t,
1592
1601
  n,
1593
1602
  a,
1594
- s
1603
+ o
1595
1604
  ),
1596
1605
  ...e
1597
1606
  });
@@ -1652,7 +1661,7 @@ function rr(e = {}) {
1652
1661
  }
1653
1662
  function ar(e, t = {}) {
1654
1663
  const n = e?.trim();
1655
- return o({
1664
+ return s({
1656
1665
  queryKey: ["databox", "folder", n],
1657
1666
  queryFn: async () => {
1658
1667
  if (!n)
@@ -1665,7 +1674,7 @@ function ar(e, t = {}) {
1665
1674
  }
1666
1675
  function ur(e, t = {}) {
1667
1676
  const n = e?.trim();
1668
- return o({
1677
+ return s({
1669
1678
  queryKey: ["databox", "folder", n, "files"],
1670
1679
  queryFn: async () => {
1671
1680
  if (!n)
@@ -1678,7 +1687,7 @@ function ur(e, t = {}) {
1678
1687
  }
1679
1688
  function or(e, t = {}) {
1680
1689
  const n = e?.trim();
1681
- return o({
1690
+ return s({
1682
1691
  queryKey: ["databox", "folder", n, "datasets"],
1683
1692
  queryFn: async () => {
1684
1693
  if (!n)
@@ -1691,7 +1700,7 @@ function or(e, t = {}) {
1691
1700
  }
1692
1701
  function sr(e, t = {}) {
1693
1702
  const n = e?.trim();
1694
- return o({
1703
+ return s({
1695
1704
  queryKey: ["databox", "folder", n, "duplicates"],
1696
1705
  queryFn: async () => {
1697
1706
  if (!n)
@@ -1706,7 +1715,7 @@ function sr(e, t = {}) {
1706
1715
  }
1707
1716
  function ir(e, t = {}) {
1708
1717
  const n = e?.trim();
1709
- return o({
1718
+ return s({
1710
1719
  queryKey: ["dataset", n, "exceptions"],
1711
1720
  queryFn: async () => {
1712
1721
  if (!n)
@@ -1719,7 +1728,7 @@ function ir(e, t = {}) {
1719
1728
  }
1720
1729
  function cr(e, t, n = {}) {
1721
1730
  const a = e?.trim();
1722
- return o({
1731
+ return s({
1723
1732
  queryKey: ["dataset", a, "duplicates", t ?? null],
1724
1733
  queryFn: async () => {
1725
1734
  if (!a)
@@ -1735,7 +1744,7 @@ function cr(e, t, n = {}) {
1735
1744
  }
1736
1745
  function lr(e, t = {}) {
1737
1746
  const n = e?.trim();
1738
- return o({
1747
+ return s({
1739
1748
  queryKey: ["databox", "folder", n, "schema"],
1740
1749
  queryFn: async () => {
1741
1750
  if (!n)
@@ -1748,7 +1757,7 @@ function lr(e, t = {}) {
1748
1757
  }
1749
1758
  function yr(e, t = {}) {
1750
1759
  const n = e?.trim();
1751
- return o({
1760
+ return s({
1752
1761
  queryKey: ["databox", "folder", n, "schema", "history"],
1753
1762
  queryFn: async () => {
1754
1763
  if (!n)
@@ -1761,7 +1770,7 @@ function yr(e, t = {}) {
1761
1770
  }
1762
1771
  function dr(e, t = {}) {
1763
1772
  const n = e?.trim();
1764
- return o({
1773
+ return s({
1765
1774
  queryKey: ["databox", "folder", n, "trash"],
1766
1775
  queryFn: async () => {
1767
1776
  if (!n)
@@ -1774,7 +1783,7 @@ function dr(e, t = {}) {
1774
1783
  }
1775
1784
  function pr(e, t = {}) {
1776
1785
  const n = e?.trim();
1777
- return o({
1786
+ return s({
1778
1787
  queryKey: ["databox", "file", n],
1779
1788
  queryFn: async () => {
1780
1789
  if (!n)
@@ -1787,7 +1796,7 @@ function pr(e, t = {}) {
1787
1796
  }
1788
1797
  function gr(e, t = {}) {
1789
1798
  const n = e?.trim();
1790
- return o({
1799
+ return s({
1791
1800
  queryKey: ["databox", "file", n, "status"],
1792
1801
  queryFn: async () => {
1793
1802
  if (!n)
@@ -1800,7 +1809,7 @@ function gr(e, t = {}) {
1800
1809
  }
1801
1810
  function fr(e, t = {}) {
1802
1811
  const n = e?.trim();
1803
- return o({
1812
+ return s({
1804
1813
  queryKey: ["databox", "file", n, "runs"],
1805
1814
  queryFn: async () => {
1806
1815
  if (!n)
@@ -1813,7 +1822,7 @@ function fr(e, t = {}) {
1813
1822
  }
1814
1823
  function mr(e, t = {}) {
1815
1824
  const n = e?.trim();
1816
- return o({
1825
+ return s({
1817
1826
  queryKey: ["databox", "file", n, "download-url"],
1818
1827
  queryFn: async () => {
1819
1828
  if (!n)
@@ -1866,20 +1875,20 @@ function Dr(e, t = {}) {
1866
1875
  queryFn: n,
1867
1876
  options: t
1868
1877
  });
1869
- return o(a);
1878
+ return s(a);
1870
1879
  }
1871
1880
  function Cr(e, t = {}) {
1872
1881
  const n = !!e, a = y(async () => {
1873
1882
  if (!e)
1874
1883
  throw new Error("Fiscal calendar id is required");
1875
1884
  return await r.periodManagement.getFiscalCalendar(e);
1876
- }), s = d({
1885
+ }), o = d({
1877
1886
  queryKey: ["periodManagement", "fiscalCalendar", e],
1878
1887
  queryFn: a,
1879
1888
  enabled: n,
1880
1889
  options: t
1881
1890
  });
1882
- return o(s);
1891
+ return s(o);
1883
1892
  }
1884
1893
  function Sr(e = {}) {
1885
1894
  return u({
@@ -1905,28 +1914,28 @@ function xr(e, t = {}) {
1905
1914
  queryFn: n,
1906
1915
  options: t
1907
1916
  });
1908
- return o(a);
1917
+ return s(a);
1909
1918
  }
1910
1919
  function Kr(e, t = {}) {
1911
1920
  const n = !!e, a = y(async () => {
1912
1921
  if (!e)
1913
1922
  throw new Error("Holiday calendar id is required");
1914
1923
  return await r.periodManagement.getHolidayCalendar(e);
1915
- }), s = d({
1924
+ }), o = d({
1916
1925
  queryKey: ["periodManagement", "holidayCalendar", e],
1917
1926
  queryFn: a,
1918
1927
  enabled: n,
1919
1928
  options: t
1920
1929
  });
1921
- return o(s);
1930
+ return s(o);
1922
1931
  }
1923
- function Ir(e = {}) {
1932
+ function Pr(e = {}) {
1924
1933
  return u({
1925
1934
  mutationFn: async (t) => await r.periodManagement.createHolidayCalendar(t),
1926
1935
  ...e
1927
1936
  });
1928
1937
  }
1929
- function Pr(e = {}) {
1938
+ function Ir(e = {}) {
1930
1939
  return u({
1931
1940
  mutationFn: async ({ id: t, params: n }) => await r.periodManagement.updateHolidayCalendar(t, n),
1932
1941
  ...e
@@ -1943,13 +1952,13 @@ function Vr(e, t = {}) {
1943
1952
  if (!e)
1944
1953
  throw new Error("Holiday calendar id is required");
1945
1954
  return await r.periodManagement.listHolidays(e);
1946
- }), s = d({
1955
+ }), o = d({
1947
1956
  queryKey: ["periodManagement", "holidayCalendar", e, "holidays"],
1948
1957
  queryFn: a,
1949
1958
  enabled: n,
1950
1959
  options: t
1951
1960
  });
1952
- return o(s);
1961
+ return s(o);
1953
1962
  }
1954
1963
  function Er(e = {}) {
1955
1964
  return u({
@@ -1964,15 +1973,15 @@ function te(e, t) {
1964
1973
  );
1965
1974
  }
1966
1975
  function Ar(e, t = {}) {
1967
- const n = o({
1976
+ const n = s({
1968
1977
  ...t,
1969
1978
  queryKey: ["pipeline", "list"],
1970
1979
  queryFn: async () => r.pipeline.getPipelineList()
1971
1980
  });
1972
1981
  return {
1973
1982
  pipelines: h(() => {
1974
- const s = n.data ?? [];
1975
- return e?.key ? s.filter((i) => te(i, e.key) === e.value) : s;
1983
+ const o = n.data ?? [];
1984
+ return e?.key ? o.filter((i) => te(i, e.key) === e.value) : o;
1976
1985
  }, [n.data, e?.key, e?.value]),
1977
1986
  isLoading: n.isLoading,
1978
1987
  error: n.error,
@@ -1980,7 +1989,7 @@ function Ar(e, t = {}) {
1980
1989
  };
1981
1990
  }
1982
1991
  function ne(e, t = {}) {
1983
- const n = e?.trim(), a = o({
1992
+ const n = e?.trim(), a = s({
1984
1993
  ...t,
1985
1994
  queryKey: ["pipeline", "runs", n],
1986
1995
  queryFn: async () => r.pipeline.getPipelineRunStatus(n),
@@ -1994,35 +2003,35 @@ function ne(e, t = {}) {
1994
2003
  };
1995
2004
  }
1996
2005
  function Br(e, t = {}) {
1997
- const { runs: n, isLoading: a, error: s, refetch: i } = ne(e, t);
2006
+ const { runs: n, isLoading: a, error: o, refetch: i } = ne(e, t);
1998
2007
  return { run: h(() => {
1999
- const l = n.filter((p) => p.status === "SUCCEEDED");
2008
+ const l = n.filter((g) => g.status === "SUCCEEDED");
2000
2009
  if (l.length)
2001
2010
  return l.reduce(
2002
- (p, f) => (f.startedAt ?? "") > (p.startedAt ?? "") ? f : p
2011
+ (g, f) => (f.startedAt ?? "") > (g.startedAt ?? "") ? f : g
2003
2012
  );
2004
- }, [n]), isLoading: a, error: s, refetch: i };
2013
+ }, [n]), isLoading: a, error: o, refetch: i };
2005
2014
  }
2006
2015
  function Gr(e, t, n = {}) {
2007
- const a = e?.trim(), s = t?.trim(), i = (n.enabled ?? !0) && !!a && !!s, c = o({
2016
+ const a = e?.trim(), o = t?.trim(), i = (n.enabled ?? !0) && !!a && !!o, c = s({
2008
2017
  queryKey: ["pipeline", "definition", a],
2009
2018
  queryFn: async () => r.pipeline.getPipelineDefinition(a),
2010
2019
  enabled: i
2011
2020
  }), l = h(
2012
2021
  () => c.data?.nodes ?? [],
2013
2022
  [c.data]
2014
- ), p = h(
2023
+ ), g = h(
2015
2024
  () => c.data?.edges ?? [],
2016
2025
  [c.data]
2017
- ), f = (D) => l.find((S) => S.id === D)?.data, m = o({
2026
+ ), f = (D) => l.find((S) => S.id === D)?.data, m = s({
2018
2027
  queryKey: ["pipeline", "runs", a],
2019
2028
  queryFn: async () => r.pipeline.getPipelineRunStatus(a),
2020
2029
  enabled: i
2021
2030
  }), F = h(
2022
- () => (m.data ?? []).find((D) => D.id === s),
2023
- [m.data, s]
2024
- ), [b, w] = q(!1), T = F?.datasetId, C = o({
2025
- queryKey: ["pipeline", "output", s, T],
2031
+ () => (m.data ?? []).find((D) => D.id === o),
2032
+ [m.data, o]
2033
+ ), [b, w] = q(!1), T = F?.datasetId, C = s({
2034
+ queryKey: ["pipeline", "output", o, T],
2026
2035
  queryFn: async () => {
2027
2036
  const D = r.pipeline.buildDatasetDefinition(T), [S, k] = await Promise.all([
2028
2037
  r.definition.runDefinition({ inputs: {}, definition: D, variable: T }),
@@ -2034,16 +2043,16 @@ function Gr(e, t, n = {}) {
2034
2043
  };
2035
2044
  },
2036
2045
  enabled: i && b && !!T
2037
- }), P = c.isLoading || m.isLoading, v = c.error ?? m.error, V = () => {
2046
+ }), I = c.isLoading || m.isLoading, v = c.error ?? m.error, V = () => {
2038
2047
  c.refetch(), m.refetch(), b && T && C.refetch();
2039
2048
  };
2040
2049
  return {
2041
2050
  run: F,
2042
2051
  nodes: l,
2043
- edges: p,
2052
+ edges: g,
2044
2053
  isCurrentDefinition: !0,
2045
2054
  // run carries no snapshot; graph reflects the current definition
2046
- isLoading: P,
2055
+ isLoading: I,
2047
2056
  error: v,
2048
2057
  getNodeProperties: f,
2049
2058
  output: C.data,
@@ -2055,7 +2064,7 @@ function Gr(e, t, n = {}) {
2055
2064
  }
2056
2065
  function Mr(e, t = {}) {
2057
2066
  const n = e?.trim();
2058
- return o({
2067
+ return s({
2059
2068
  ...t,
2060
2069
  queryKey: ["pipeline", "overview", n],
2061
2070
  queryFn: async () => r.pipeline.getPipelineOverview(n),
@@ -2065,14 +2074,14 @@ function Mr(e, t = {}) {
2065
2074
  function Or(e) {
2066
2075
  const t = e?.trim(), [n, a] = q(
2067
2076
  void 0
2068
- ), s = u({
2077
+ ), o = u({
2069
2078
  mutationFn: async () => r.pipeline.startOutputSample(t),
2070
- onSuccess: (p) => a(p)
2079
+ onSuccess: (g) => a(g)
2071
2080
  });
2072
2081
  K(() => {
2073
- a(void 0), t && s.mutate();
2082
+ a(void 0), t && o.mutate();
2074
2083
  }, [t]);
2075
- const i = o({
2084
+ const i = s({
2076
2085
  queryKey: ["pipeline", "outputSample", t, n?.runId],
2077
2086
  queryFn: async () => r.pipeline.getOutputSampleResult({
2078
2087
  pipelineId: t,
@@ -2081,28 +2090,28 @@ function Or(e) {
2081
2090
  sheetId: n.sheetId
2082
2091
  }),
2083
2092
  enabled: !!t && !!n?.runId,
2084
- refetchInterval: (p) => p.state.data?.status === "running" ? 1500 : !1
2085
- }), c = s.isError ? "failed" : i.data?.status ?? (s.isPending || n ? "running" : "idle"), l = G(() => {
2086
- a(void 0), t && s.mutate();
2093
+ refetchInterval: (g) => g.state.data?.status === "running" ? 1500 : !1
2094
+ }), c = o.isError ? "failed" : i.data?.status ?? (o.isPending || n ? "running" : "idle"), l = G(() => {
2095
+ a(void 0), t && o.mutate();
2087
2096
  }, [t]);
2088
2097
  return {
2089
2098
  status: c,
2090
2099
  rows: i.data?.rows,
2091
2100
  columns: i.data?.columns,
2092
2101
  totalCount: i.data?.totalCount,
2093
- error: i.data?.error ?? s.error?.message,
2102
+ error: i.data?.error ?? o.error?.message,
2094
2103
  refetch: l
2095
2104
  };
2096
2105
  }
2097
2106
  function Lr(e, t = {}) {
2098
- return o({
2107
+ return s({
2099
2108
  ...t,
2100
2109
  queryKey: ["pipeline", "definition", e],
2101
2110
  queryFn: async () => r.pipeline.getPipelineDefinition(e)
2102
2111
  });
2103
2112
  }
2104
2113
  function Ur(e, t = {}) {
2105
- return o({
2114
+ return s({
2106
2115
  ...t,
2107
2116
  queryKey: ["pipeline", "runStatus", e],
2108
2117
  queryFn: async () => r.pipeline.getPipelineRunStatus(e)
@@ -2121,7 +2130,7 @@ function Wr(e = {}) {
2121
2130
  });
2122
2131
  }
2123
2132
  function Qr(e = {}) {
2124
- const t = o({
2133
+ const t = s({
2125
2134
  ...e,
2126
2135
  queryKey: ["workingPaper", "list"],
2127
2136
  queryFn: async () => r.workingPaper.getWorkingPapers()
@@ -2134,7 +2143,7 @@ function Qr(e = {}) {
2134
2143
  };
2135
2144
  }
2136
2145
  function zr(e, t = {}) {
2137
- const n = e?.trim(), a = g(), s = o({
2146
+ const n = e?.trim(), a = p(), o = s({
2138
2147
  ...t,
2139
2148
  queryKey: ["workingPaper", "detail", n],
2140
2149
  queryFn: async () => r.workingPaper.getWorkingPaper(n),
@@ -2151,11 +2160,11 @@ function zr(e, t = {}) {
2151
2160
  }
2152
2161
  });
2153
2162
  return {
2154
- paper: s.data,
2155
- sheets: s.data?.sheets ?? [],
2156
- isLoading: s.isLoading,
2157
- error: s.error,
2158
- refetch: s.refetch,
2163
+ paper: o.data,
2164
+ sheets: o.data?.sheets ?? [],
2165
+ isLoading: o.isLoading,
2166
+ error: o.error,
2167
+ refetch: o.refetch,
2159
2168
  save: (l) => i.mutateAsync(l),
2160
2169
  isSaving: i.isPending,
2161
2170
  remove: () => c.mutateAsync(),
@@ -2163,29 +2172,29 @@ function zr(e, t = {}) {
2163
2172
  };
2164
2173
  }
2165
2174
  function Nr() {
2166
- const e = g();
2175
+ const e = p();
2167
2176
  return u({
2168
2177
  mutationFn: async (t) => r.workingPaper.createWorkingPaper(t),
2169
2178
  onSuccess: () => e.invalidateQueries({ queryKey: ["workingPaper", "list"] })
2170
2179
  });
2171
2180
  }
2172
2181
  function _r(e, t = {}, n = {}) {
2173
- const a = e?.inputTableId?.trim(), s = e?.viewId, i = e?.limit, c = o({
2182
+ const a = e?.inputTableId?.trim(), o = e?.viewId, i = e?.limit, c = s({
2174
2183
  ...t,
2175
2184
  queryKey: ["workingPaper", "inputTableSheet", "views", a],
2176
2185
  queryFn: async () => r.statement.getViewsBySheetId(a),
2177
2186
  enabled: !!a && (t.enabled ?? !0)
2178
- }), l = o({
2187
+ }), l = s({
2179
2188
  ...n,
2180
- queryKey: ["workingPaper", "inputTableSheet", "rows", a, s, i],
2189
+ queryKey: ["workingPaper", "inputTableSheet", "rows", a, o, i],
2181
2190
  queryFn: async () => r.inputTable.getRows(a, {
2182
- ...s ? { view_id: s } : {},
2191
+ ...o ? { view_id: o } : {},
2183
2192
  ...i ? { limit: i } : {}
2184
2193
  }),
2185
2194
  enabled: !!a && (n.enabled ?? !0)
2186
- }), p = c.data ?? [], f = l.data;
2195
+ }), g = c.data ?? [], f = l.data;
2187
2196
  return {
2188
- views: p,
2197
+ views: g,
2189
2198
  rows: f?.data ?? [],
2190
2199
  totalCount: f?.total_count ?? 0,
2191
2200
  isLoading: c.isLoading || l.isLoading,
@@ -2201,9 +2210,9 @@ function jr(e) {
2201
2210
  ), a = u({
2202
2211
  mutationFn: async () => {
2203
2212
  if (!t) throw { message: "No fx definition to run", status: 400 };
2204
- const s = r.workingPaper.FX_RESULT_VARIABLE, [i, c] = await Promise.all([
2205
- r.definition.runDefinition({ inputs: {}, definition: t, variable: s }),
2206
- r.definition.getDescription({ inputs: {}, definition: t, variable: s })
2213
+ const o = r.workingPaper.FX_RESULT_VARIABLE, [i, c] = await Promise.all([
2214
+ r.definition.runDefinition({ inputs: {}, definition: t, variable: o }),
2215
+ r.definition.getDescription({ inputs: {}, definition: t, variable: o })
2207
2216
  ]), l = Array.isArray(c) ? c : c?.data ?? [];
2208
2217
  return { rows: i ?? [], columns: l };
2209
2218
  }
@@ -2211,12 +2220,12 @@ function jr(e) {
2211
2220
  return {
2212
2221
  definition: t,
2213
2222
  setDefinition: n,
2214
- reset: (s, i) => n(r.workingPaper.createFxDatasetDefinition(s, i ?? [])),
2215
- addFilter: (s, i) => n((c) => r.workingPaper.addRuleFilter(c, s, i)),
2216
- addSort: (s, i, c) => n((l) => r.workingPaper.addSort(l, s, i, c)),
2217
- addMetric: (s, i, c) => n((l) => r.workingPaper.addMetric(l, s, i, c)),
2218
- addPivot: (s, i) => n((c) => r.workingPaper.addPivot(c, s, i)),
2219
- addColumn: (s, i, c) => n((l) => r.workingPaper.addColumn(l, s, i, c)),
2223
+ reset: (o, i) => n(r.workingPaper.createFxDatasetDefinition(o, i ?? [])),
2224
+ addFilter: (o, i) => n((c) => r.workingPaper.addRuleFilter(c, o, i)),
2225
+ addSort: (o, i, c) => n((l) => r.workingPaper.addSort(l, o, i, c)),
2226
+ addMetric: (o, i, c) => n((l) => r.workingPaper.addMetric(l, o, i, c)),
2227
+ addPivot: (o, i) => n((c) => r.workingPaper.addPivot(c, o, i)),
2228
+ addColumn: (o, i, c) => n((l) => r.workingPaper.addColumn(l, o, i, c)),
2220
2229
  run: () => a.mutateAsync(),
2221
2230
  result: a.data,
2222
2231
  isRunning: a.isPending,
@@ -2224,7 +2233,7 @@ function jr(e) {
2224
2233
  };
2225
2234
  }
2226
2235
  function re(e = {}) {
2227
- const t = o({
2236
+ const t = s({
2228
2237
  ...e,
2229
2238
  queryKey: ["solutions", "list"],
2230
2239
  queryFn: async () => r.solutions.getSolutionList()
@@ -2238,7 +2247,7 @@ function re(e = {}) {
2238
2247
  }
2239
2248
  function ae(e, t, n = {}) {
2240
2249
  const a = e?.trim();
2241
- return o({
2250
+ return s({
2242
2251
  ...n,
2243
2252
  queryKey: ["versioning", "branches", a, t],
2244
2253
  queryFn: async () => r.versioning.getBranches({ solutionId: a, branchType: t }),
@@ -2246,9 +2255,9 @@ function ae(e, t, n = {}) {
2246
2255
  });
2247
2256
  }
2248
2257
  function Jr() {
2249
- const { solutions: e, isLoading: t } = re(), [n, a] = q(void 0), [s, i] = q(
2258
+ const { solutions: e, isLoading: t } = re(), [n, a] = q(void 0), [o, i] = q(
2250
2259
  void 0
2251
- ), c = ae(n), l = c.data ?? [], p = (m) => {
2260
+ ), c = ae(n), l = c.data ?? [], g = (m) => {
2252
2261
  a(m), i(void 0);
2253
2262
  }, f = h(
2254
2263
  () => e.find((m) => m.id === n),
@@ -2258,30 +2267,30 @@ function Jr() {
2258
2267
  solutions: e,
2259
2268
  selectedSolution: f,
2260
2269
  selectedSolutionId: n,
2261
- selectSolution: p,
2270
+ selectSolution: g,
2262
2271
  branches: l,
2263
- selectedBranch: s,
2272
+ selectedBranch: o,
2264
2273
  selectBranch: i,
2265
2274
  isLoadingSolutions: t,
2266
2275
  isLoadingBranches: c.isLoading
2267
2276
  };
2268
2277
  }
2269
2278
  function $r(e, t, n, a = {}) {
2270
- const s = e?.trim(), i = t?.trim();
2271
- return o({
2279
+ const o = e?.trim(), i = t?.trim();
2280
+ return s({
2272
2281
  ...a,
2273
- queryKey: ["versioning", "commits", s, i, n],
2282
+ queryKey: ["versioning", "commits", o, i, n],
2274
2283
  queryFn: async () => r.versioning.listCommits({
2275
- solutionId: s,
2284
+ solutionId: o,
2276
2285
  branch: i,
2277
2286
  branchType: n
2278
2287
  }),
2279
- enabled: !!s && !!i
2288
+ enabled: !!o && !!i
2280
2289
  });
2281
2290
  }
2282
2291
  function Xr(e, t = {}) {
2283
2292
  const n = e?.trim();
2284
- return o({
2293
+ return s({
2285
2294
  ...t,
2286
2295
  queryKey: ["versioning", "tags", n],
2287
2296
  queryFn: async () => r.versioning.listTags({ solutionId: n }),
@@ -2349,7 +2358,7 @@ function sa(e = {}) {
2349
2358
  });
2350
2359
  }
2351
2360
  function ia(e = {}) {
2352
- return o({
2361
+ return s({
2353
2362
  ...e,
2354
2363
  queryKey: ["solutions", "packagableComponents"],
2355
2364
  queryFn: async () => r.solutions.packagableComponents()
@@ -2375,7 +2384,7 @@ function ya(e, t = {}) {
2375
2384
  }
2376
2385
  function da(e, t = {}) {
2377
2386
  const n = e?.trim();
2378
- return o({
2387
+ return s({
2379
2388
  ...t,
2380
2389
  queryKey: ["solutions", "publishJob", n],
2381
2390
  queryFn: async () => r.solutions.publishJob(n),
@@ -2407,14 +2416,14 @@ function ma(e = {}) {
2407
2416
  });
2408
2417
  }
2409
2418
  function ba(e, t, n = {}) {
2410
- return o({
2419
+ return s({
2411
2420
  ...n,
2412
2421
  queryKey: ["connections", "test", e, t],
2413
2422
  queryFn: async () => r.connections.testConnection(e, t)
2414
2423
  });
2415
2424
  }
2416
2425
  function wa(e, t = {}) {
2417
- return o({
2426
+ return s({
2418
2427
  ...t,
2419
2428
  queryKey: ["connections", "list", e],
2420
2429
  queryFn: async () => r.connections.listConnections(e)
@@ -2433,28 +2442,28 @@ function qa(e = {}) {
2433
2442
  });
2434
2443
  }
2435
2444
  function ha(e = {}) {
2436
- return o({
2445
+ return s({
2437
2446
  ...e,
2438
2447
  queryKey: ["ingestion", "databoxes"],
2439
2448
  queryFn: async () => r.ingestion.listDataboxes()
2440
2449
  });
2441
2450
  }
2442
2451
  function Ta(e = {}) {
2443
- return o({
2452
+ return s({
2444
2453
  ...e,
2445
2454
  queryKey: ["ingestion", "fileboxFolders"],
2446
2455
  queryFn: async () => r.ingestion.listFileboxFolders()
2447
2456
  });
2448
2457
  }
2449
2458
  function Da(e = {}, t = {}) {
2450
- return o({
2459
+ return s({
2451
2460
  ...t,
2452
2461
  queryKey: ["inputTablesV2", "list", e.name],
2453
2462
  queryFn: async () => r.inputTableV2.listInputTables(e)
2454
2463
  });
2455
2464
  }
2456
2465
  function Ca(e, t = {}) {
2457
- return o({
2466
+ return s({
2458
2467
  ...t,
2459
2468
  queryKey: ["inputTablesV2", "get", e],
2460
2469
  queryFn: async () => r.inputTableV2.getInputTable(e)
@@ -2496,30 +2505,30 @@ function Ka(e, t = {}) {
2496
2505
  ...t
2497
2506
  });
2498
2507
  }
2499
- function Ia(e, t = {}) {
2500
- return o({
2508
+ function Pa(e, t = {}) {
2509
+ return s({
2501
2510
  ...t,
2502
2511
  queryKey: ["inputTablesV2", "schema", e.solutionId, e.tableName],
2503
2512
  queryFn: async () => r.inputTableV2.getInputTableSchema(e.solutionId, e.tableName)
2504
2513
  });
2505
2514
  }
2506
- function Pa(e, t = {}) {
2507
- const { solutionId: n, tableName: a, filter: s, limit: i } = e;
2508
- return o({
2515
+ function Ia(e, t = {}) {
2516
+ const { solutionId: n, tableName: a, filter: o, limit: i } = e;
2517
+ return s({
2509
2518
  ...t,
2510
- queryKey: ["inputTablesV2", "rows", n, a, s, i],
2511
- queryFn: async () => r.inputTableV2.readInputTableRows(n, a, { filter: s, limit: i })
2519
+ queryKey: ["inputTablesV2", "rows", n, a, o, i],
2520
+ queryFn: async () => r.inputTableV2.readInputTableRows(n, a, { filter: o, limit: i })
2512
2521
  });
2513
2522
  }
2514
2523
  function va(e = {}, t = {}) {
2515
- return o({
2524
+ return s({
2516
2525
  ...t,
2517
2526
  queryKey: ["workflowsV2", "list", e.name],
2518
2527
  queryFn: async () => r.workflowV2.listWorkflows(e)
2519
2528
  });
2520
2529
  }
2521
2530
  function Va(e, t = {}) {
2522
- return o({
2531
+ return s({
2523
2532
  ...t,
2524
2533
  queryKey: ["workflowsV2", "get", e],
2525
2534
  queryFn: async () => r.workflowV2.getWorkflow(e)
@@ -2568,49 +2577,49 @@ function La(e = {}) {
2568
2577
  });
2569
2578
  }
2570
2579
  function Ua(e, t = {}) {
2571
- return o({
2580
+ return s({
2572
2581
  ...t,
2573
2582
  queryKey: ["processHub", "triggerScheduleStatus", e],
2574
2583
  queryFn: async () => r.processHub.triggerScheduleStatus(e)
2575
2584
  });
2576
2585
  }
2577
2586
  function Ha(e, t = {}) {
2578
- return o({
2587
+ return s({
2579
2588
  ...t,
2580
2589
  queryKey: ["processHub", "upcomingSchedules", e],
2581
2590
  queryFn: async () => r.processHub.upcomingSchedules(e)
2582
2591
  });
2583
2592
  }
2584
2593
  function Wa(e, t = {}) {
2585
- return o({
2594
+ return s({
2586
2595
  ...t,
2587
2596
  queryKey: ["processHub", "triggersBySheet", e],
2588
2597
  queryFn: async () => r.processHub.triggersBySheet(e)
2589
2598
  });
2590
2599
  }
2591
2600
  function Qa(e, t = {}) {
2592
- return o({
2601
+ return s({
2593
2602
  ...t,
2594
2603
  queryKey: ["processHub", "sheetRuns", e],
2595
2604
  queryFn: async () => r.processHub.sheetRuns(e)
2596
2605
  });
2597
2606
  }
2598
2607
  function za(e, t = {}) {
2599
- return o({
2608
+ return s({
2600
2609
  ...t,
2601
2610
  queryKey: ["processHub", "sheetRunStatus", e],
2602
2611
  queryFn: async () => r.processHub.sheetRunStatus(e)
2603
2612
  });
2604
2613
  }
2605
2614
  function Na(e, t = {}) {
2606
- return o({
2615
+ return s({
2607
2616
  ...t,
2608
2617
  queryKey: ["datasetsHub", "schema", e],
2609
2618
  queryFn: async () => r.datasetsHub.getDatasetSchema(e)
2610
2619
  });
2611
2620
  }
2612
2621
  function _a(e, t = {}) {
2613
- return o({
2622
+ return s({
2614
2623
  ...t,
2615
2624
  queryKey: ["datasetsHub", "search", e],
2616
2625
  queryFn: async () => r.datasetsHub.searchDatasets(e),
@@ -2618,21 +2627,21 @@ function _a(e, t = {}) {
2618
2627
  });
2619
2628
  }
2620
2629
  function ja(e, t, n = {}) {
2621
- return o({
2630
+ return s({
2622
2631
  ...n,
2623
2632
  queryKey: ["datasetsHub", "stats", e, t],
2624
2633
  queryFn: async () => r.datasetsHub.getDatasetStats(e, t)
2625
2634
  });
2626
2635
  }
2627
2636
  function Ja(e = {}, t = {}) {
2628
- return o({
2637
+ return s({
2629
2638
  ...t,
2630
2639
  queryKey: ["virtualDatasets", "list", e.name],
2631
2640
  queryFn: async () => r.virtualDatasets.listVirtualDatasets(e)
2632
2641
  });
2633
2642
  }
2634
2643
  function $a(e, t = {}) {
2635
- return o({
2644
+ return s({
2636
2645
  ...t,
2637
2646
  queryKey: ["virtualDatasets", "get", e],
2638
2647
  queryFn: async () => r.virtualDatasets.getVirtualDataset(e)
@@ -2644,120 +2653,205 @@ function Xa(e = {}) {
2644
2653
  ...e
2645
2654
  });
2646
2655
  }
2647
- function Ya(e = {}, t = {}) {
2648
- return o({
2656
+ function Ya(e = {}) {
2657
+ const t = p();
2658
+ return u({
2659
+ mutationFn: async (n) => r.virtualDatasets.deleteVirtualDataset(n, {
2660
+ approve: !0
2661
+ }),
2662
+ ...e,
2663
+ onSuccess: (n, a, o) => {
2664
+ t.invalidateQueries({ queryKey: ["virtualDatasets"] }), e.onSuccess?.(n, a, o);
2665
+ }
2666
+ });
2667
+ }
2668
+ function Za(e = {}) {
2669
+ const t = p();
2670
+ return u({
2671
+ mutationFn: async (n) => r.virtualDatasets.ensureVirtualDatasets(n, {
2672
+ approve: !0
2673
+ }),
2674
+ ...e,
2675
+ onSuccess: (n, a, o) => {
2676
+ t.invalidateQueries({ queryKey: ["virtualDatasets"] }), e.onSuccess?.(n, a, o);
2677
+ }
2678
+ });
2679
+ }
2680
+ function eu(e = {}, t = {}) {
2681
+ return s({
2649
2682
  ...t,
2650
2683
  queryKey: ["workbooksHub", "list", e.name, e.type],
2651
2684
  queryFn: async () => r.workbooks.listWorkbooks(e)
2652
2685
  });
2653
2686
  }
2654
- function Za(e, t = {}) {
2655
- return o({
2687
+ function tu(e, t = {}) {
2688
+ return s({
2656
2689
  ...t,
2657
2690
  queryKey: ["workbooksHub", "get", e],
2658
2691
  queryFn: async () => r.workbooks.getWorkbook(e)
2659
2692
  });
2660
2693
  }
2661
- function eu(e = {}, t = {}) {
2662
- return o({
2694
+ function nu(e = {}, t = {}) {
2695
+ return s({
2663
2696
  ...t,
2664
2697
  queryKey: ["exportConfigs", "list", e.name],
2665
2698
  queryFn: async () => r.exportConfig.listExportConfigs(e)
2666
2699
  });
2667
2700
  }
2668
- function tu(e, t = {}) {
2669
- return o({
2701
+ function ru(e, t = {}) {
2702
+ return s({
2670
2703
  ...t,
2671
2704
  queryKey: ["exportConfigs", "get", e],
2672
2705
  queryFn: async () => r.exportConfig.getExportConfig(e)
2673
2706
  });
2674
2707
  }
2675
- function nu(e = {}) {
2708
+ function au(e = {}) {
2676
2709
  return u({
2677
2710
  mutationFn: async (t) => r.exportConfig.createExportConfig(t, { approve: !0 }),
2678
2711
  ...e
2679
2712
  });
2680
2713
  }
2681
- function ru(e, t = {}) {
2714
+ function uu(e, t = {}) {
2682
2715
  return u({
2683
2716
  mutationFn: async (n) => r.exportConfig.updateExportConfig(e, n, { approve: !0 }),
2684
2717
  ...t
2685
2718
  });
2686
2719
  }
2687
- function au(e, t = {}) {
2720
+ function ou(e, t = {}) {
2688
2721
  return u({
2689
2722
  mutationFn: async (n = {}) => r.exportConfig.runExportConfig(e, n, { approve: !0 }),
2690
2723
  ...t
2691
2724
  });
2692
2725
  }
2693
- function uu(e = {}, t = {}) {
2694
- return o({
2726
+ function su(e = {}, t = {}) {
2727
+ return s({
2695
2728
  ...t,
2696
2729
  queryKey: ["dashboards", "list", e.name],
2697
2730
  queryFn: async () => r.dashboards.listDashboards(e)
2698
2731
  });
2699
2732
  }
2700
- function ou(e, t = {}) {
2701
- return o({
2733
+ function iu(e, t = {}) {
2734
+ return s({
2702
2735
  ...t,
2703
2736
  queryKey: ["dashboards", "get", e],
2704
2737
  queryFn: async () => r.dashboards.getDashboard(e)
2705
2738
  });
2706
2739
  }
2707
- function su(e = {}) {
2740
+ function cu(e = {}) {
2708
2741
  return u({
2709
2742
  mutationFn: async (t) => r.dashboards.createDashboard(t, { approve: !0 }),
2710
2743
  ...e
2711
2744
  });
2712
2745
  }
2713
- function iu(e, t = {}) {
2746
+ function lu(e, t = {}) {
2714
2747
  return u({
2715
2748
  mutationFn: async (n) => r.dashboards.addDashboardWidget(e, n, { approve: !0 }),
2716
2749
  ...t
2717
2750
  });
2718
2751
  }
2719
- function cu(e, t, n = {}) {
2752
+ function yu(e, t, n = {}) {
2720
2753
  return u({
2721
2754
  mutationFn: async (a) => r.dashboards.updateDashboardWidget(e, t, a, { approve: !0 }),
2722
2755
  ...n
2723
2756
  });
2724
2757
  }
2725
- function lu(e, t, n = {}) {
2758
+ function du(e, t, n = {}) {
2726
2759
  return u({
2727
2760
  mutationFn: async () => r.dashboards.removeDashboardWidget(e, t, { approve: !0 }),
2728
2761
  ...n
2729
2762
  });
2730
2763
  }
2731
- function yu(e = {}, t = {}) {
2732
- return o({
2764
+ function pu(e = {}, t = {}) {
2765
+ return s({
2733
2766
  ...t,
2734
2767
  queryKey: ["httpTriggersHub", "list", e.name],
2735
2768
  queryFn: async () => r.httpTriggersHub.listHttpTriggers(e)
2736
2769
  });
2737
2770
  }
2738
- function du(e, t = {}) {
2739
- return o({
2771
+ function gu(e, t = {}) {
2772
+ return s({
2740
2773
  ...t,
2741
2774
  queryKey: ["httpTriggersHub", "get", e],
2742
2775
  queryFn: async () => r.httpTriggersHub.getHttpTrigger(e)
2743
2776
  });
2744
2777
  }
2745
- function pu(e, t = {}) {
2778
+ function fu(e = {}) {
2779
+ return s({
2780
+ ...e,
2781
+ queryKey: ["policies", "list"],
2782
+ queryFn: async () => r.policies.listPolicies()
2783
+ });
2784
+ }
2785
+ function mu(e, t = {}) {
2786
+ return s({
2787
+ ...t,
2788
+ enabled: (t.enabled ?? !0) && !!e,
2789
+ queryKey: ["policies", "get", e],
2790
+ queryFn: async () => r.policies.getPolicy(e)
2791
+ });
2792
+ }
2793
+ function bu(e = {}) {
2794
+ const t = p();
2795
+ return u({
2796
+ mutationFn: async ({ formData: n, existing: a }) => r.policies.savePolicy(n, a),
2797
+ ...e,
2798
+ onSuccess: (n, a, o) => {
2799
+ t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
2800
+ }
2801
+ });
2802
+ }
2803
+ function wu(e = {}) {
2804
+ const t = p();
2805
+ return u({
2806
+ mutationFn: async (n) => r.policies.publishPolicy(n),
2807
+ ...e,
2808
+ onSuccess: (n, a, o) => {
2809
+ t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
2810
+ }
2811
+ });
2812
+ }
2813
+ function Fu(e = {}) {
2814
+ const t = p();
2815
+ return u({
2816
+ mutationFn: async (n) => r.policies.deletePolicy(n),
2817
+ ...e,
2818
+ onSuccess: (n, a, o) => {
2819
+ t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
2820
+ }
2821
+ });
2822
+ }
2823
+ function qu(e = {}) {
2824
+ const t = p();
2825
+ return u({
2826
+ mutationFn: async (n) => r.policies.duplicatePolicy(n),
2827
+ ...e,
2828
+ onSuccess: (n, a, o) => {
2829
+ t.invalidateQueries({ queryKey: ["policies"] }), e.onSuccess?.(n, a, o);
2830
+ }
2831
+ });
2832
+ }
2833
+ function hu(e = {}) {
2834
+ return u({
2835
+ mutationFn: async ({ policyId: t, request: n }) => r.policies.evaluatePolicy(t, n),
2836
+ ...e
2837
+ });
2838
+ }
2839
+ function Tu(e, t = {}) {
2746
2840
  return u({
2747
2841
  mutationFn: async (n) => r.solutions.setSolutionSeedData(e, n, { approve: !0 }),
2748
2842
  ...t
2749
2843
  });
2750
2844
  }
2751
2845
  export {
2752
- bu as ReactQueryDevtools,
2846
+ ku as ReactQueryDevtools,
2753
2847
  U as WorkflowStatus,
2754
2848
  oe as reactQuery,
2755
- iu as useAddDashboardWidget,
2849
+ lu as useAddDashboardWidget,
2756
2850
  ca as useAddSolutionObjects,
2757
2851
  Zt as useBulkCheckCustomPermissions,
2758
2852
  Xt as useBulkUpdateCustomObjectPermissions,
2759
2853
  Rn as useCancelInboxItem,
2760
- In as useCancelInboxItemsByKey,
2854
+ Pn as useCancelInboxItemsByKey,
2761
2855
  Yt as useCheckCustomPermissions,
2762
2856
  we as useCheckSubscriptionStatus,
2763
2857
  Cn as useClaimInboxItem,
@@ -2768,14 +2862,14 @@ export {
2768
2862
  ma as useCreateBlobConnection,
2769
2863
  ta as useCreateBranch,
2770
2864
  Vn as useCreateConversation,
2771
- su as useCreateDashboard,
2865
+ cu as useCreateDashboard,
2772
2866
  Fa as useCreateDatabox,
2773
2867
  fa as useCreateEmailConnection,
2774
- nu as useCreateExportConfig,
2868
+ au as useCreateExportConfig,
2775
2869
  na as useCreateExternalApp,
2776
2870
  qa as useCreateFileboxFolder,
2777
2871
  Sr as useCreateFiscalCalendar,
2778
- Ir as useCreateHolidayCalendar,
2872
+ Pr as useCreateHolidayCalendar,
2779
2873
  wn as useCreateInboxItem,
2780
2874
  ln as useCreateInboxItemPerUser,
2781
2875
  pn as useCreateInboxType,
@@ -2806,15 +2900,20 @@ export {
2806
2900
  fn as useDeleteInboxType,
2807
2901
  Ka as useDeleteInputTable,
2808
2902
  Ra as useDeleteInputTableRows,
2903
+ Fu as useDeletePolicy,
2809
2904
  Ht as useDeleteProcessTreeTrigger,
2810
2905
  vt as useDeleteProcessTrigger,
2811
2906
  dt as useDeleteReconV2,
2812
2907
  He as useDeleteRow,
2813
2908
  Ba as useDeleteTrigger,
2909
+ Ya as useDeleteVirtualDataset,
2814
2910
  nt as useDeleteWorkbook,
2815
2911
  Dn as useDismissInboxItem,
2816
2912
  Je as useDocumentPermissions,
2817
2913
  br as useDropFileToDatabox,
2914
+ qu as useDuplicatePolicy,
2915
+ Za as useEnsureVirtualDatasets,
2916
+ hu as useEvaluatePolicy,
2818
2917
  Bt as useExecuteNow,
2819
2918
  Mt as useExecuteProcessTreeTrigger,
2820
2919
  Ga as useExecuteTriggerNow,
@@ -2822,7 +2921,7 @@ export {
2822
2921
  $e as useFileUpload,
2823
2922
  An as useFilterMessagesBySenderId,
2824
2923
  jr as useFxDefinitionSheet,
2825
- Pn as useGetAllConversations,
2924
+ In as useGetAllConversations,
2826
2925
  Rt as useGetAllHttpTriggers,
2827
2926
  on as useGetAllInboxItems,
2828
2927
  yt as useGetAllRecon,
@@ -2833,7 +2932,7 @@ export {
2833
2932
  it as useGetAuditLogs,
2834
2933
  de as useGetCommentsByThreadId,
2835
2934
  vn as useGetConversation,
2836
- ou as useGetDashboard,
2935
+ iu as useGetDashboard,
2837
2936
  pr as useGetDataboxFile,
2838
2937
  mr as useGetDataboxFileDownloadUrl,
2839
2938
  fr as useGetDataboxFileRuns,
@@ -2848,7 +2947,7 @@ export {
2848
2947
  cr as useGetDatasetDuplicates,
2849
2948
  ir as useGetDatasetExceptions,
2850
2949
  he as useGetDatasets,
2851
- tu as useGetExportConfig,
2950
+ ru as useGetExportConfig,
2852
2951
  Ce as useGetFileByFolderIdAndName,
2853
2952
  Se as useGetFileById,
2854
2953
  De as useGetFileUrlByFileId,
@@ -2857,7 +2956,7 @@ export {
2857
2956
  ut as useGetFormData,
2858
2957
  at as useGetFormSchema,
2859
2958
  Kr as useGetHolidayCalendar,
2860
- du as useGetHttpTrigger,
2959
+ gu as useGetHttpTrigger,
2861
2960
  bn as useGetInboxItem,
2862
2961
  dn as useGetInboxType,
2863
2962
  Ca as useGetInputTable,
@@ -2882,14 +2981,14 @@ export {
2882
2981
  xe as useGetRunsByViewId,
2883
2982
  At as useGetScheduleStatus,
2884
2983
  Ke as useGetStatementData,
2885
- Ie as useGetTableById,
2984
+ Pe as useGetTableById,
2886
2985
  Ye as useGetTaskDetails,
2887
- It as useGetTriggersBySheet,
2888
- Pe as useGetViewById,
2986
+ Pt as useGetTriggersBySheet,
2987
+ Ie as useGetViewById,
2889
2988
  ve as useGetViewsBySheetId,
2890
2989
  $a as useGetVirtualDataset,
2891
2990
  Te as useGetVirtualDatasets,
2892
- Za as useGetWorkbook,
2991
+ tu as useGetWorkbook,
2893
2992
  Ze as useGetWorkbookDetails,
2894
2993
  Ve as useGetWorkbooksByType,
2895
2994
  Va as useGetWorkflow,
@@ -2898,27 +2997,27 @@ export {
2898
2997
  Be as useGetWorksheetsByType,
2899
2998
  Er as useImportHolidays,
2900
2999
  Ge as useInputTable,
2901
- Ia as useInputTableSchema,
3000
+ Pa as useInputTableSchema,
2902
3001
  Sa as useInsertInputTableRows,
2903
3002
  Le as useInsertRow,
2904
3003
  Br as useLastSuccessfulPipelineRun,
2905
3004
  ae as useListBranches,
2906
3005
  $r as useListCommits,
2907
3006
  wa as useListConnections,
2908
- uu as useListDashboards,
3007
+ su as useListDashboards,
2909
3008
  ha as useListDataboxes,
2910
- eu as useListExportConfigs,
3009
+ nu as useListExportConfigs,
2911
3010
  Ta as useListFileboxFolders,
2912
3011
  Dr as useListFiscalCalendars,
2913
3012
  xr as useListHolidayCalendars,
2914
3013
  Vr as useListHolidays,
2915
- yu as useListHttpTriggers,
3014
+ pu as useListHttpTriggers,
2916
3015
  yn as useListInboxTypes,
2917
3016
  Da as useListInputTables,
2918
3017
  mn as useListMyInboxItems,
2919
3018
  Xr as useListTags,
2920
3019
  Ja as useListVirtualDatasets,
2921
- Ya as useListWorkbooks,
3020
+ eu as useListWorkbooks,
2922
3021
  va as useListWorkflows,
2923
3022
  Lt as useLogProcessTreeRun,
2924
3023
  qn as useMarkInboxItemsRead,
@@ -2937,12 +3036,15 @@ export {
2937
3036
  Mr as usePipelineOverview,
2938
3037
  Gr as usePipelineRunDetail,
2939
3038
  ne as usePipelineRuns,
3039
+ fu as usePolicies,
3040
+ mu as usePolicy,
2940
3041
  pe as usePostComment,
2941
3042
  da as usePublishJob,
3043
+ wu as usePublishPolicy,
2942
3044
  ya as usePublishSolution,
2943
3045
  tt as usePublishWorkbook,
2944
3046
  ea as usePushBranch,
2945
- Pa as useReadInputTableRows,
3047
+ Ia as useReadInputTableRows,
2946
3048
  xn as useReassignInboxItem,
2947
3049
  Kt as useReassignTask,
2948
3050
  ht as useReconV2Detail,
@@ -2954,10 +3056,10 @@ export {
2954
3056
  pt as useReconV2Templates,
2955
3057
  Jt as useRegisterCustomAuthzModel,
2956
3058
  nn as useRegisterCustomTypeMetadata,
2957
- Pt as useRegisterProcessTrigger,
3059
+ It as useRegisterProcessTrigger,
2958
3060
  Aa as useRegisterTrigger,
2959
3061
  kn as useReleaseInboxItem,
2960
- lu as useRemoveDashboardWidget,
3062
+ du as useRemoveDashboardWidget,
2961
3063
  rr as useRenderTemplate,
2962
3064
  En as useReplyToConversation,
2963
3065
  hr as useRestoreDataboxFile,
@@ -2966,13 +3068,14 @@ export {
2966
3068
  Oe as useRows,
2967
3069
  wr as useRunDataboxFolder,
2968
3070
  We as useRunDefinition,
2969
- au as useRunExportConfig,
3071
+ ou as useRunExportConfig,
2970
3072
  Wr as useRunPipeline,
2971
3073
  Qe as useRunPublishedDefinition,
2972
3074
  rt as useRunRecon,
2973
3075
  N as useRunReconV2,
2974
3076
  ze as useRunSampleDefinition,
2975
3077
  Hr as useSavePipeline,
3078
+ bu as useSavePolicy,
2976
3079
  et as useSaveWorkbook,
2977
3080
  Ea as useSaveWorkflow,
2978
3081
  _a as useSearchDatasets,
@@ -2980,7 +3083,7 @@ export {
2980
3083
  ua as useSetExternalAppAccessControl,
2981
3084
  ra as useSetExternalAppEnv,
2982
3085
  aa as useSetExternalAppSchemaMap,
2983
- pu as useSetSolutionSeedData,
3086
+ Tu as useSetSolutionSeedData,
2984
3087
  za as useSheetRunStatus,
2985
3088
  Qa as useSheetRuns,
2986
3089
  La as useSkipTrigger,
@@ -3021,11 +3124,11 @@ export {
3021
3124
  Ha as useUpcomingSchedules,
3022
3125
  ge as useUpdateComment,
3023
3126
  $t as useUpdateCustomObjectPermissions,
3024
- cu as useUpdateDashboardWidget,
3127
+ yu as useUpdateDashboardWidget,
3025
3128
  Fr as useUpdateDataboxFolderSchema,
3026
- ru as useUpdateExportConfig,
3129
+ uu as useUpdateExportConfig,
3027
3130
  kr as useUpdateFiscalCalendar,
3028
- Pr as useUpdateHolidayCalendar,
3131
+ Ir as useUpdateHolidayCalendar,
3029
3132
  Fn as useUpdateInboxItem,
3030
3133
  gn as useUpdateInboxType,
3031
3134
  ka as useUpdateInputTableRows,