@bluecopa/react 0.1.107 → 0.1.108

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 s, useMutation as o, useQueryClient as g } from "@tanstack/react-query";
2
- import * as N from "@tanstack/react-query";
3
- import { copaApi as r, copaGetConfig as p, copaUtils as R } from "@bluecopa/core";
1
+ import { useQuery as s, useMutation as u, useQueryClient as g } from "@tanstack/react-query";
2
+ import * as H from "@tanstack/react-query";
3
+ import { copaApi as r, copaGetConfig as h, copaUtils as R } from "@bluecopa/core";
4
4
  export * from "@bluecopa/core";
5
- import { useState as D, useRef as S, useEffect as k, useMemo as x } from "react";
6
- import { ReactQueryDevtools as Pn } from "@tanstack/react-query-devtools";
7
- const K = {
5
+ import { useState as D, useRef as S, useEffect as k, useMemo as C } from "react";
6
+ import { ReactQueryDevtools as On } from "@tanstack/react-query-devtools";
7
+ const x = {
8
8
  enabled: !0,
9
9
  staleTime: 1e3 * 60 * 5,
10
10
  // 5 minutes
@@ -13,27 +13,27 @@ const K = {
13
13
  retry: 2,
14
14
  retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
15
15
  };
16
- function E(e = {}) {
16
+ function K(e = {}) {
17
17
  return {
18
- ...K,
18
+ ...x,
19
19
  ...e
20
20
  };
21
21
  }
22
- function C(e = 5e3) {
22
+ function E(e = 5e3) {
23
23
  return new Promise((t) => setTimeout(t, e));
24
24
  }
25
- function h(e, t) {
26
- const n = Object.entries(e).filter(([a, u]) => !u).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(", ")}`
30
30
  );
31
31
  }
32
32
  function c(e, t, n = 0) {
33
- return async () => (await C(n), await e());
33
+ return async () => (await E(n), await e());
34
34
  }
35
35
  function l(e) {
36
- const t = E(e.options);
36
+ const t = K(e.options);
37
37
  return {
38
38
  queryKey: e.queryKey,
39
39
  queryFn: e.queryFn,
@@ -47,7 +47,7 @@ function l(e) {
47
47
  };
48
48
  }
49
49
  function J(e, t = {}) {
50
- const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, u = c(async () => {
50
+ const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, o = c(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, {
@@ -56,7 +56,7 @@ function J(e, t = {}) {
56
56
  });
57
57
  }), i = l({
58
58
  queryKey: ["metricData", e, a, t.limit ?? null],
59
- queryFn: u,
59
+ queryFn: o,
60
60
  enabled: n,
61
61
  options: t
62
62
  });
@@ -70,16 +70,16 @@ function Y(e, t = {}) {
70
70
  datasetId: e,
71
71
  dataFilter: "all_data"
72
72
  });
73
- }), u = l({
73
+ }), o = l({
74
74
  queryKey: ["datasetData", e],
75
75
  queryFn: a,
76
76
  enabled: n,
77
77
  options: t
78
78
  });
79
- return s(u);
79
+ return s(o);
80
80
  }
81
81
  function $(e = {}) {
82
- return o({
82
+ return u({
83
83
  mutationFn: async (t) => await r.chat.createThread(t),
84
84
  onSuccess: e.onSuccess,
85
85
  onError: e.onError,
@@ -88,19 +88,19 @@ function $(e = {}) {
88
88
  });
89
89
  }
90
90
  function X(e, t = {}) {
91
- const n = t.enabled !== !1 && !!e, a = c(async () => (h(
91
+ const n = t.enabled !== !1 && !!e, a = c(async () => (p(
92
92
  { threadId: e },
93
93
  "Thread ID is required to fetch comments"
94
- ), await r.chat.getCommentsByThreadId(e))), u = l({
94
+ ), await r.chat.getCommentsByThreadId(e))), o = l({
95
95
  queryKey: ["chat", "comments", e],
96
96
  queryFn: a,
97
97
  enabled: n,
98
98
  options: t
99
99
  });
100
- return s(u);
100
+ return s(o);
101
101
  }
102
102
  function Z(e = {}) {
103
- return o({
103
+ return u({
104
104
  mutationFn: async (t) => await r.chat.postComment(t),
105
105
  onSuccess: e.onSuccess,
106
106
  onError: e.onError,
@@ -109,7 +109,7 @@ function Z(e = {}) {
109
109
  });
110
110
  }
111
111
  function ee(e = {}) {
112
- return o({
112
+ return u({
113
113
  mutationFn: async (t) => await r.chat.updateComment(t),
114
114
  onSuccess: e.onSuccess,
115
115
  onError: e.onError,
@@ -118,7 +118,7 @@ function ee(e = {}) {
118
118
  });
119
119
  }
120
120
  function te(e = {}) {
121
- return o({
121
+ return u({
122
122
  mutationFn: async (t) => await r.chat.deleteComment(t),
123
123
  onSuccess: e.onSuccess,
124
124
  onError: e.onError,
@@ -127,7 +127,7 @@ function te(e = {}) {
127
127
  });
128
128
  }
129
129
  function ne(e = {}) {
130
- return o({
130
+ return u({
131
131
  mutationFn: async (t) => await r.chat.subscribeUser(t),
132
132
  onSuccess: e.onSuccess,
133
133
  onError: e.onError,
@@ -136,7 +136,7 @@ function ne(e = {}) {
136
136
  });
137
137
  }
138
138
  function re(e = {}) {
139
- return o({
139
+ return u({
140
140
  mutationFn: async (t) => await r.chat.unsubscribeUser(t),
141
141
  onSuccess: e.onSuccess,
142
142
  onError: e.onError,
@@ -145,37 +145,37 @@ function re(e = {}) {
145
145
  });
146
146
  }
147
147
  function ae(e, t, n = {}) {
148
- const a = n.enabled !== !1 && !!e && !!t, u = c(async () => (h(
148
+ const a = n.enabled !== !1 && !!e && !!t, o = c(async () => (p(
149
149
  { userId: e, threadId: t },
150
150
  "User ID and Thread ID are required to check subscription status"
151
151
  ), await r.chat.checkSubscriptionStatus(e, t))), i = l({
152
152
  queryKey: ["chat", "subscription", e, t],
153
- queryFn: u,
153
+ queryFn: o,
154
154
  enabled: a,
155
155
  options: n
156
156
  });
157
157
  return s(i);
158
158
  }
159
- function oe(e = {}) {
160
- return o({
159
+ function ue(e = {}) {
160
+ return u({
161
161
  mutationFn: async (t) => await r.statement.createNewRun(t),
162
162
  ...e
163
163
  });
164
164
  }
165
- function ue(e, t = {}) {
165
+ function oe(e, t = {}) {
166
166
  const n = !!e, a = c(async () => {
167
167
  if (!e)
168
168
  throw new Error("Dataset ID is required");
169
169
  return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
170
170
  limit: t.limit || 1e3
171
171
  });
172
- }), u = l({
172
+ }), o = l({
173
173
  queryKey: ["datasetData", e],
174
174
  queryFn: a,
175
175
  enabled: n,
176
176
  options: t
177
177
  });
178
- return s(u);
178
+ return s(o);
179
179
  }
180
180
  function se() {
181
181
  const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), t = l({
@@ -194,7 +194,7 @@ function ie() {
194
194
  return s(t);
195
195
  }
196
196
  function ce(e, t, n, a = {}) {
197
- const u = !!e && !!t && !!n, i = c(async () => {
197
+ const o = !!e && !!t && !!n, i = c(async () => {
198
198
  if (!e || !t || !n)
199
199
  throw new Error("Key, contentType, and method are required");
200
200
  return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
@@ -205,21 +205,21 @@ function ce(e, t, n, a = {}) {
205
205
  }), y = l({
206
206
  queryKey: ["file", "getFileUrlByFileId", e, t, n],
207
207
  queryFn: i,
208
- enabled: u,
208
+ enabled: o,
209
209
  options: a
210
210
  });
211
211
  return s(y);
212
212
  }
213
213
  function le(e, t, n = {}) {
214
- const a = e?.trim(), u = t?.trim(), i = !!(a && u), y = c(async () => await r.files.getFileByFolderIdAndName({
214
+ const a = e?.trim(), o = t?.trim(), i = !!(a && o), y = c(async () => await r.files.getFileByFolderIdAndName({
215
215
  folderId: a,
216
- name: u
216
+ name: o
217
217
  })), d = l({
218
218
  queryKey: [
219
219
  "file",
220
220
  "getFileByFolderIdAndName",
221
221
  a,
222
- u
222
+ o
223
223
  ],
224
224
  queryFn: y,
225
225
  enabled: i,
@@ -228,13 +228,13 @@ function le(e, t, n = {}) {
228
228
  return s(d);
229
229
  }
230
230
  function ye(e, t, n = {}) {
231
- const a = !!e && !!t, u = c(async () => {
231
+ const a = !!e && !!t, o = c(async () => {
232
232
  if (!e || !t)
233
233
  throw new Error("Type and ID are required");
234
234
  return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: t });
235
235
  }), i = l({
236
236
  queryKey: ["workbook", "getPublishedWorkbookById", e, t],
237
- queryFn: u,
237
+ queryFn: o,
238
238
  enabled: a,
239
239
  options: n
240
240
  });
@@ -245,29 +245,29 @@ function de(e, t = {}) {
245
245
  if (!e)
246
246
  throw new Error("Run ID is required");
247
247
  return await r.statement.getRunResultById(e);
248
- }), u = l({
248
+ }), o = l({
249
249
  queryKey: ["statement", "getRunResultById", e],
250
250
  queryFn: a,
251
251
  enabled: n,
252
252
  options: t
253
253
  });
254
- return s(u);
254
+ return s(o);
255
255
  }
256
256
  function ge(e, t = {}) {
257
257
  const n = !!e, a = c(async () => {
258
258
  if (!e)
259
259
  throw new Error("View ID is required");
260
260
  return await r.statement.getRunsByViewId(e);
261
- }), u = l({
261
+ }), o = l({
262
262
  queryKey: ["statement", "getRunsByViewId", e],
263
263
  queryFn: a,
264
264
  enabled: n,
265
265
  options: t
266
266
  });
267
- return s(u);
267
+ return s(o);
268
268
  }
269
269
  function fe(e, t, n, a = {}) {
270
- const u = !!e, i = c(async () => {
270
+ const o = !!e, i = c(async () => {
271
271
  if (!e)
272
272
  throw new Error("Statement ID is required");
273
273
  return await r.statement.getData({
@@ -278,7 +278,7 @@ function fe(e, t, n, a = {}) {
278
278
  }), y = l({
279
279
  queryKey: ["statement", "getData", e, t, n],
280
280
  queryFn: i,
281
- enabled: u,
281
+ enabled: o,
282
282
  options: a
283
283
  });
284
284
  return s(y);
@@ -288,56 +288,56 @@ function we(e, t = {}) {
288
288
  if (!e)
289
289
  throw new Error("Table ID is required");
290
290
  return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
291
- }), u = l({
291
+ }), o = l({
292
292
  queryKey: ["inputTable", "getTableById", e],
293
293
  queryFn: a,
294
294
  enabled: n,
295
295
  options: t
296
296
  });
297
- return s(u);
297
+ return s(o);
298
298
  }
299
299
  function me(e, t = {}) {
300
300
  const n = !!e, a = c(async () => {
301
301
  if (!e)
302
302
  throw new Error("View ID is required");
303
303
  return await r.statement.getViewById(e);
304
- }), u = l({
304
+ }), o = l({
305
305
  queryKey: ["statement", "getViewById", e],
306
306
  queryFn: a,
307
307
  enabled: n,
308
308
  options: t
309
309
  });
310
- return s(u);
310
+ return s(o);
311
311
  }
312
312
  function Fe(e, t = {}) {
313
313
  const n = !!e, a = c(async () => {
314
314
  if (!e)
315
315
  throw new Error("Sheet ID is required");
316
316
  return await r.statement.getViewsBySheetId(e);
317
- }), u = l({
317
+ }), o = l({
318
318
  queryKey: ["statement", "getViewsBySheetId", e],
319
319
  queryFn: a,
320
320
  enabled: n,
321
321
  options: t
322
322
  });
323
- return s(u);
323
+ return s(o);
324
324
  }
325
325
  function qe(e, t = {}) {
326
326
  const n = !!e, a = c(async () => {
327
327
  if (!e)
328
328
  throw new Error("Type is required");
329
329
  return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
330
- }), u = l({
330
+ }), o = l({
331
331
  queryKey: ["workbook", "getWorkbooksByType", e],
332
332
  queryFn: a,
333
333
  enabled: n,
334
334
  options: t
335
335
  });
336
- return s(u);
336
+ return s(o);
337
337
  }
338
338
  var P = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(P || {});
339
339
  function be(e = {}) {
340
- return o({
340
+ return u({
341
341
  mutationFn: async (t) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(t)),
342
342
  ...e
343
343
  });
@@ -347,31 +347,31 @@ function De(e, t = {}) {
347
347
  if (!e || e.length === 0)
348
348
  throw new Error("Worksheet IDs are required");
349
349
  return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
350
- }), u = l({
350
+ }), o = l({
351
351
  queryKey: ["worksheet", "getWorksheets", e],
352
352
  queryFn: a,
353
353
  enabled: n,
354
354
  options: t
355
355
  });
356
- return s(u);
356
+ return s(o);
357
357
  }
358
358
  function Te(e, t = {}) {
359
359
  const n = !!e, a = c(async () => {
360
360
  if (!e)
361
361
  throw new Error("Type is required");
362
362
  return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
363
- }), u = l({
363
+ }), o = l({
364
364
  queryKey: ["worksheet", "getWorksheetsByType", e],
365
365
  queryFn: a,
366
366
  enabled: n,
367
367
  options: t
368
368
  });
369
- return s(u);
369
+ return s(o);
370
370
  }
371
- function pe(e, t, n = {}) {
371
+ function he(e, t, n = {}) {
372
372
  const {
373
373
  limitParams: a = { limit: 2e3, limitFrom: "top" },
374
- pageParams: u,
374
+ pageParams: o,
375
375
  sortParams: i,
376
376
  offsetParam: y,
377
377
  ...d
@@ -381,7 +381,7 @@ function pe(e, t, n = {}) {
381
381
  return console.log("Fetching input table data..."), await r.inputTable.getData({
382
382
  inputTableId: e,
383
383
  inputTableViewId: t,
384
- pageParams: u,
384
+ pageParams: o,
385
385
  limitParams: a,
386
386
  sortParams: i,
387
387
  offsetParam: y
@@ -394,7 +394,7 @@ function pe(e, t, n = {}) {
394
394
  });
395
395
  return s(m);
396
396
  }
397
- function he() {
397
+ function pe() {
398
398
  const e = c(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), t = l({
399
399
  queryKey: ["inputTableData"],
400
400
  queryFn: e,
@@ -411,7 +411,7 @@ function Re(e, t = {}) {
411
411
  "retryDelay",
412
412
  "onSuccess",
413
413
  "onError"
414
- ], { limit: a, offset: u, order: i, order_by: y, ...d } = t, f = {}, w = { limit: a, offset: u, order: i, order_by: y };
414
+ ], { limit: a, offset: o, order: i, order_by: y, ...d } = t, f = {}, w = { limit: a, offset: o, order: i, order_by: y };
415
415
  Object.keys(d).forEach((F) => {
416
416
  n.includes(F) ? f[F] = d[F] : w[F] = d[F];
417
417
  });
@@ -429,14 +429,14 @@ function Re(e, t = {}) {
429
429
  }
430
430
  function Se(e = {}) {
431
431
  const t = g();
432
- return o({
432
+ return u({
433
433
  mutationFn: async (n) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(n.tableId, n.rowData)),
434
- onSuccess: (n, a, u) => {
434
+ onSuccess: (n, a, o) => {
435
435
  t.invalidateQueries({
436
436
  queryKey: ["inputTableRows", a.tableId]
437
437
  }), e.onSuccess?.(n);
438
438
  },
439
- onError: (n, a, u) => {
439
+ onError: (n, a, o) => {
440
440
  e.onError?.(n);
441
441
  },
442
442
  ...e
@@ -444,68 +444,68 @@ function Se(e = {}) {
444
444
  }
445
445
  function ke(e = {}) {
446
446
  const t = g();
447
- return o({
447
+ return u({
448
448
  mutationFn: async (n) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
449
449
  n.tableId,
450
450
  n.updateData,
451
451
  n.rowId
452
452
  )),
453
- onSuccess: (n, a, u) => {
453
+ onSuccess: (n, a, o) => {
454
454
  t.invalidateQueries({
455
455
  queryKey: ["inputTableRows", a.tableId]
456
456
  }), e.onSuccess?.(n);
457
457
  },
458
- onError: (n, a, u) => {
458
+ onError: (n, a, o) => {
459
459
  e.onError?.(n);
460
460
  },
461
461
  ...e
462
462
  });
463
463
  }
464
- function xe(e = {}) {
464
+ function Ce(e = {}) {
465
465
  const t = g();
466
- return o({
466
+ return u({
467
467
  mutationFn: async (n) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
468
468
  n.tableId,
469
469
  n.rowId,
470
470
  n.idField
471
471
  )),
472
- onSuccess: (n, a, u) => {
472
+ onSuccess: (n, a, o) => {
473
473
  t.invalidateQueries({
474
474
  queryKey: ["inputTableRows", a.tableId]
475
475
  }), e.onSuccess?.(n);
476
476
  },
477
- onError: (n, a, u) => {
477
+ onError: (n, a, o) => {
478
478
  e.onError?.(n);
479
479
  },
480
480
  ...e
481
481
  });
482
482
  }
483
- function Ke(e = {}) {
484
- return o({
483
+ function xe(e = {}) {
484
+ return u({
485
485
  mutationFn: async (t) => (console.log("Running definition..."), await r.definition.runDefinition(t)),
486
486
  ...e
487
487
  });
488
488
  }
489
- function Ee(e = {}) {
490
- return o({
489
+ function Ke(e = {}) {
490
+ return u({
491
491
  mutationFn: async (t) => await r.definition.runPublishedDefinition(t),
492
492
  ...e
493
493
  });
494
494
  }
495
- function Ce(e = {}) {
496
- return o({
495
+ function Ee(e = {}) {
496
+ return u({
497
497
  mutationFn: async (t) => await r.definition.runSampleDefinition(t),
498
498
  ...e
499
499
  });
500
500
  }
501
501
  function Pe(e = {}) {
502
- return o({
502
+ return u({
503
503
  mutationFn: async (t) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(t)),
504
504
  ...e
505
505
  });
506
506
  }
507
507
  function Ve(e = {}) {
508
- return o({
508
+ return u({
509
509
  mutationFn: async (t) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(t)),
510
510
  ...e
511
511
  });
@@ -521,7 +521,7 @@ function V(e = {}) {
521
521
  }
522
522
  const Ie = V, I = ["Owner", "Editor", "Viewer", "ReadOnly"], T = r.permissions?.getPermissions;
523
523
  function Ge(e, t, n = {}) {
524
- const a = n.enabled !== !1 && !!e?.trim(), u = c(
524
+ const a = n.enabled !== !1 && !!e?.trim(), o = c(
525
525
  async () => {
526
526
  if (!e?.trim())
527
527
  return {};
@@ -529,7 +529,7 @@ function Ge(e, t, n = {}) {
529
529
  throw new Error(
530
530
  "@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
531
531
  );
532
- const y = p();
532
+ const y = h();
533
533
  if (!y.userId)
534
534
  throw new Error(
535
535
  "@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
@@ -546,14 +546,14 @@ function Ge(e, t, n = {}) {
546
546
  0
547
547
  ), i = l({
548
548
  queryKey: ["documentPermissions", e ?? "", t, n.relations ?? []],
549
- queryFn: u,
549
+ queryFn: o,
550
550
  enabled: a,
551
551
  options: n
552
552
  });
553
553
  return s(i);
554
554
  }
555
555
  function Be(e = {}) {
556
- return o({
556
+ return u({
557
557
  mutationFn: async (t) => (console.log("Uploading file..."), await r.files.fileUpload(t)),
558
558
  ...e
559
559
  });
@@ -563,14 +563,14 @@ function Ae({
563
563
  contentType: t = "application/json",
564
564
  method: n = "GET"
565
565
  }, a = {}) {
566
- const u = !!e, i = c(async () => {
566
+ const o = !!e, i = c(async () => {
567
567
  if (!e)
568
568
  throw new Error("File ID is required");
569
569
  return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: t, method: n });
570
570
  }), y = l({
571
571
  queryKey: ["file", "fileDownload", e],
572
572
  queryFn: i,
573
- enabled: u,
573
+ enabled: o,
574
574
  options: a
575
575
  });
576
576
  return s(y);
@@ -580,47 +580,47 @@ function Oe(e, t = {}) {
580
580
  if (!e)
581
581
  throw new Error("Task ID is required");
582
582
  return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
583
- }), u = l({
583
+ }), o = l({
584
584
  queryKey: ["task", "getTaskDetails", e],
585
585
  queryFn: a,
586
586
  enabled: n,
587
587
  options: t
588
588
  });
589
- return s(u);
589
+ return s(o);
590
590
  }
591
591
  function Ue(e, t = {}) {
592
592
  const n = !!e, a = c(async () => {
593
593
  if (!e)
594
594
  throw new Error("Workbook ID is required");
595
595
  return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
596
- }), u = l({
596
+ }), o = l({
597
597
  queryKey: ["workbook", "getWorkbookDetails", e],
598
598
  queryFn: a,
599
599
  enabled: n,
600
600
  options: t
601
601
  });
602
- return s(u);
602
+ return s(o);
603
603
  }
604
604
  function ve(e = {}) {
605
- return o({
605
+ return u({
606
606
  mutationFn: async (t) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(t)),
607
607
  ...e
608
608
  });
609
609
  }
610
- function Qe(e = {}) {
611
- return o({
610
+ function Me(e = {}) {
611
+ return u({
612
612
  mutationFn: async (t) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(t)),
613
613
  ...e
614
614
  });
615
615
  }
616
- function Me(e = {}) {
617
- return o({
616
+ function Qe(e = {}) {
617
+ return u({
618
618
  mutationFn: async (t) => (console.log("Running recon workflow..."), await r.recon.runRecon(t)),
619
619
  ...e
620
620
  });
621
621
  }
622
622
  function We(e, t, n = {}) {
623
- const a = !!e && !!t, u = c(async () => {
623
+ const a = !!e && !!t, o = c(async () => {
624
624
  if (!e || !t)
625
625
  throw new Error("Form instance ID and revision are required");
626
626
  return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: t });
@@ -628,7 +628,7 @@ function We(e, t, n = {}) {
628
628
  return s(
629
629
  l({
630
630
  queryKey: ["form", "getFormSchema", e, t],
631
- queryFn: u,
631
+ queryFn: o,
632
632
  enabled: a,
633
633
  options: n
634
634
  })
@@ -639,13 +639,13 @@ function _e(e, t = {}) {
639
639
  if (!e)
640
640
  throw new Error("Form ID is required");
641
641
  return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
642
- }), u = l({
642
+ }), o = l({
643
643
  queryKey: ["form", "getFormData", e],
644
644
  queryFn: a,
645
645
  enabled: n,
646
646
  options: t
647
647
  });
648
- return s(u);
648
+ return s(o);
649
649
  }
650
650
  function Le(e, t = {}) {
651
651
  return s({
@@ -659,20 +659,20 @@ function Le(e, t = {}) {
659
659
  ...t
660
660
  });
661
661
  }
662
- function He(e = {}) {
663
- return o({
662
+ function ze(e = {}) {
663
+ return u({
664
664
  mutationFn: async (t) => await r.form.createOrUpdateForm(t),
665
665
  ...e
666
666
  });
667
667
  }
668
- function Ne(e = {}) {
669
- return o({
668
+ function He(e = {}) {
669
+ return u({
670
670
  mutationFn: async (t) => await r.audit.getAuditLogs(t),
671
671
  ...e
672
672
  });
673
673
  }
674
- function ze(e = {}) {
675
- return o({
674
+ function Ne(e = {}) {
675
+ return u({
676
676
  mutationFn: async (t) => await r.audit.createAuditLog(t),
677
677
  ...e
678
678
  });
@@ -692,25 +692,25 @@ function Je(e = {}) {
692
692
  });
693
693
  }
694
694
  function G(e = {}) {
695
- return o({
695
+ return u({
696
696
  mutationFn: async (t) => await r.reconV2.createReconV2(t),
697
697
  ...e
698
698
  });
699
699
  }
700
700
  function B(e = {}) {
701
- return o({
701
+ return u({
702
702
  mutationFn: async (t) => await r.reconV2.updateReconV2(t),
703
703
  ...e
704
704
  });
705
705
  }
706
706
  function Ye(e = {}) {
707
- return o({
707
+ return u({
708
708
  mutationFn: async (t) => await r.reconV2.deleteReconV2(t),
709
709
  ...e
710
710
  });
711
711
  }
712
712
  function A(e = {}) {
713
- return o({
713
+ return u({
714
714
  mutationFn: async (t) => await r.reconV2.runReconV2(t),
715
715
  ...e
716
716
  });
@@ -746,7 +746,7 @@ function v(e, t = {}) {
746
746
  ...t
747
747
  });
748
748
  }
749
- function Q(e, t = {}) {
749
+ function M(e, t = {}) {
750
750
  return s({
751
751
  queryKey: [
752
752
  "reconV2",
@@ -765,7 +765,7 @@ function Q(e, t = {}) {
765
765
  });
766
766
  }
767
767
  function Xe(e = {}) {
768
- return o({
768
+ return u({
769
769
  mutationFn: async (t) => await r.reconV2.startReconV2Profile(t),
770
770
  ...e
771
771
  });
@@ -782,7 +782,7 @@ function Ze(e, t = "left", n = {}) {
782
782
  });
783
783
  }
784
784
  function et(e = {}) {
785
- return o({
785
+ return u({
786
786
  mutationFn: async (t) => await r.reconV2.startReconV2Clean(t),
787
787
  ...e
788
788
  });
@@ -821,15 +821,15 @@ function rt(e, t, n = {}) {
821
821
  ...n
822
822
  });
823
823
  }
824
- const M = ["SUCCEEDED", "FAILED"];
824
+ const Q = ["SUCCEEDED", "FAILED"];
825
825
  function W(e, t = {}) {
826
826
  const [n, a] = D(
827
827
  void 0
828
- ), [u, i] = D(!1), y = S(t.onComplete);
828
+ ), [o, i] = D(!1), y = S(t.onComplete);
829
829
  return y.current = t.onComplete, k(() => {
830
830
  if (!e)
831
831
  return;
832
- const d = p().websocketProvider;
832
+ const d = h().websocketProvider;
833
833
  if (!d)
834
834
  return;
835
835
  a(void 0), i(!1);
@@ -847,9 +847,9 @@ function W(e, t = {}) {
847
847
  }
848
848
  a(q);
849
849
  const F = q?.status?.toUpperCase();
850
- F && M.includes(F) && (i(!0), y.current?.(q), m());
850
+ F && Q.includes(F) && (i(!0), y.current?.(q), m());
851
851
  }), m;
852
- }, [e]), { data: n, isTerminal: u };
852
+ }, [e]), { data: n, isTerminal: o };
853
853
  }
854
854
  function _(e, t = {}) {
855
855
  const n = e?.trim();
@@ -869,16 +869,16 @@ function L(e, t) {
869
869
  function at(e, t = {}) {
870
870
  const n = O(t);
871
871
  return {
872
- workflows: x(() => {
873
- const u = n.data ?? [];
874
- return e?.key ? u.filter((i) => L(i, e.key) === e.value) : u;
872
+ workflows: C(() => {
873
+ const o = n.data ?? [];
874
+ return e?.key ? o.filter((i) => L(i, e.key) === e.value) : o;
875
875
  }, [n.data, e?.key, e?.value]),
876
876
  isLoading: n.isLoading,
877
877
  error: n.error,
878
878
  refetch: n.refetch
879
879
  };
880
880
  }
881
- function ot(e, t = {}) {
881
+ function ut(e, t = {}) {
882
882
  const n = _(e, t);
883
883
  return {
884
884
  workflow: n.data,
@@ -887,7 +887,7 @@ function ot(e, t = {}) {
887
887
  refetch: n.refetch
888
888
  };
889
889
  }
890
- function ut() {
890
+ function ot() {
891
891
  const e = G(), t = B();
892
892
  return {
893
893
  create: e.mutateAsync,
@@ -898,13 +898,13 @@ function ut() {
898
898
  };
899
899
  }
900
900
  function st(e, t = {}) {
901
- const n = e?.trim(), [a, u] = D(void 0), i = A(), y = W(a, { onComplete: t.onComplete }), d = U(n);
901
+ const n = e?.trim(), [a, o] = D(void 0), i = A(), y = W(a, { onComplete: t.onComplete }), d = U(n);
902
902
  return {
903
903
  startRun: async (w = {}) => {
904
904
  if (!n)
905
905
  throw new Error("workflowId is required to start a run");
906
906
  const m = await i.mutateAsync({ workflowId: n, ...w });
907
- return u(m?.runId), m?.runId;
907
+ return o(m?.runId), m?.runId;
908
908
  },
909
909
  runId: a,
910
910
  status: y.data,
@@ -919,14 +919,14 @@ function it({
919
919
  workflowId: t,
920
920
  exceptionType: n,
921
921
  ruleFilter: a,
922
- orderBy: u
922
+ orderBy: o
923
923
  }) {
924
- const i = v(e), y = Q({
924
+ const i = v(e), y = M({
925
925
  runId: e ?? void 0,
926
926
  workflowId: t ?? void 0,
927
927
  exceptionType: n,
928
928
  ruleFilter: a,
929
- orderBy: u
929
+ orderBy: o
930
930
  }), d = y.data?.result;
931
931
  return {
932
932
  runResult: i.data,
@@ -952,13 +952,13 @@ function lt(e = {}) {
952
952
  });
953
953
  }
954
954
  function yt(e = {}) {
955
- return o({
955
+ return u({
956
956
  mutationFn: async (t) => await r.process.markTaskDone(t),
957
957
  ...e
958
958
  });
959
959
  }
960
960
  function dt(e = {}) {
961
- return o({
961
+ return u({
962
962
  mutationFn: async (t) => await r.process.reassignTask(t),
963
963
  ...e
964
964
  });
@@ -973,7 +973,7 @@ function gt(e, t = {}) {
973
973
  }
974
974
  function ft(e = {}) {
975
975
  const t = g();
976
- return o({
976
+ return u({
977
977
  mutationFn: async (n) => await r.process.registerProcessTrigger(n),
978
978
  onSuccess: (n, a) => {
979
979
  t.invalidateQueries({
@@ -985,7 +985,7 @@ function ft(e = {}) {
985
985
  }
986
986
  function wt(e = {}) {
987
987
  const t = g();
988
- return o({
988
+ return u({
989
989
  mutationFn: async ({ id: n }) => await r.process.deleteProcessTrigger(n),
990
990
  onSuccess: (n, a) => {
991
991
  t.invalidateQueries({
@@ -997,7 +997,7 @@ function wt(e = {}) {
997
997
  }
998
998
  function mt(e = {}) {
999
999
  const t = g();
1000
- return o({
1000
+ return u({
1001
1001
  mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.pauseSchedule(n, a),
1002
1002
  onSuccess: (n, a) => {
1003
1003
  t.invalidateQueries({
@@ -1011,7 +1011,7 @@ function mt(e = {}) {
1011
1011
  }
1012
1012
  function Ft(e = {}) {
1013
1013
  const t = g();
1014
- return o({
1014
+ return u({
1015
1015
  mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.resumeSchedule(n, a),
1016
1016
  onSuccess: (n, a) => {
1017
1017
  t.invalidateQueries({
@@ -1036,7 +1036,7 @@ function qt(e, t, n = {}) {
1036
1036
  }
1037
1037
  function bt(e = {}) {
1038
1038
  const t = g();
1039
- return o({
1039
+ return u({
1040
1040
  mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.executeNow(n, a),
1041
1041
  onSuccess: (n, a) => {
1042
1042
  t.invalidateQueries({
@@ -1048,7 +1048,7 @@ function bt(e = {}) {
1048
1048
  }
1049
1049
  function Dt(e = {}) {
1050
1050
  const t = g();
1051
- return o({
1051
+ return u({
1052
1052
  mutationFn: async (n) => await r.processTree.createOrUpdateProcessTreeTrigger(
1053
1053
  n
1054
1054
  ),
@@ -1062,7 +1062,7 @@ function Dt(e = {}) {
1062
1062
  }
1063
1063
  function Tt(e = {}) {
1064
1064
  const t = g();
1065
- return o({
1065
+ return u({
1066
1066
  mutationFn: async (n) => await r.processTree.executeProcessTreeTrigger(n),
1067
1067
  onSuccess: (n, a) => {
1068
1068
  t.invalidateQueries({
@@ -1072,9 +1072,9 @@ function Tt(e = {}) {
1072
1072
  ...e
1073
1073
  });
1074
1074
  }
1075
- function pt(e = {}) {
1075
+ function ht(e = {}) {
1076
1076
  const t = g();
1077
- return o({
1077
+ return u({
1078
1078
  mutationFn: async ({ payload: n }) => await r.processTree.terminatePipelines(n),
1079
1079
  onSuccess: (n, a) => {
1080
1080
  a.sheetId && t.invalidateQueries({
@@ -1086,9 +1086,9 @@ function pt(e = {}) {
1086
1086
  ...e
1087
1087
  });
1088
1088
  }
1089
- function ht(e = {}) {
1089
+ function pt(e = {}) {
1090
1090
  const t = g();
1091
- return o({
1091
+ return u({
1092
1092
  mutationFn: async (n) => await r.processTree.logProcessTreeRun(n),
1093
1093
  onSuccess: (n, a) => {
1094
1094
  t.invalidateQueries({
@@ -1102,7 +1102,7 @@ function ht(e = {}) {
1102
1102
  }
1103
1103
  function Rt(e = {}) {
1104
1104
  const t = g();
1105
- return o({
1105
+ return u({
1106
1106
  mutationFn: async ({
1107
1107
  instanceId: n,
1108
1108
  context: a
@@ -1120,7 +1120,7 @@ function Rt(e = {}) {
1120
1120
  }
1121
1121
  function St(e = {}) {
1122
1122
  const t = g();
1123
- return o({
1123
+ return u({
1124
1124
  mutationFn: async ({ id: n }) => await r.processTree.deleteProcessTreeTrigger(n),
1125
1125
  onSuccess: (n, a) => {
1126
1126
  t.invalidateQueries({
@@ -1138,7 +1138,7 @@ function kt(e, t = {}) {
1138
1138
  ...t
1139
1139
  });
1140
1140
  }
1141
- function xt(e, t = {}) {
1141
+ function Ct(e, t = {}) {
1142
1142
  return s({
1143
1143
  queryKey: ["processTreeTriggers", e],
1144
1144
  queryFn: async () => await r.processTree.getProcessTreeTriggersBySheetId(e),
@@ -1146,7 +1146,7 @@ function xt(e, t = {}) {
1146
1146
  ...t
1147
1147
  });
1148
1148
  }
1149
- function Kt(e, t = {}) {
1149
+ function xt(e, t = {}) {
1150
1150
  return s({
1151
1151
  queryKey: ["processTreeRuns", e],
1152
1152
  queryFn: async () => await r.processTree.getProcessTreeRunsBySheetId(e),
@@ -1154,7 +1154,7 @@ function Kt(e, t = {}) {
1154
1154
  ...t
1155
1155
  });
1156
1156
  }
1157
- function Et(e, t, n = {}) {
1157
+ function Kt(e, t, n = {}) {
1158
1158
  return s({
1159
1159
  queryKey: [
1160
1160
  "processTreeRuns",
@@ -1172,7 +1172,7 @@ function Et(e, t, n = {}) {
1172
1172
  ...n
1173
1173
  });
1174
1174
  }
1175
- function Ct(e, t = {}) {
1175
+ function Et(e, t = {}) {
1176
1176
  return s({
1177
1177
  queryKey: ["processTreeRun", e],
1178
1178
  queryFn: async () => await r.processTree.getProcessTreeRunByInstanceId(
@@ -1182,39 +1182,82 @@ function Ct(e, t = {}) {
1182
1182
  ...t
1183
1183
  });
1184
1184
  }
1185
- function Pt(e = {}, t = {}) {
1185
+ function Pt(e = {}) {
1186
+ return s({
1187
+ queryKey: ["customAuthzModel"],
1188
+ queryFn: async () => await r.customAuthz.getCustomAuthzModel(),
1189
+ ...e
1190
+ });
1191
+ }
1192
+ function Vt(e = {}) {
1193
+ const t = g();
1194
+ return u({
1195
+ mutationFn: async (n) => await r.customAuthz.registerCustomAuthzModel(n),
1196
+ onSuccess: () => {
1197
+ t.invalidateQueries({ queryKey: ["customAuthzModel"] });
1198
+ },
1199
+ ...e
1200
+ });
1201
+ }
1202
+ function It(e = {}) {
1203
+ return u({
1204
+ mutationFn: async (t) => await r.customAuthz.updateCustomObjectPermissions(t),
1205
+ ...e
1206
+ });
1207
+ }
1208
+ function Gt(e = {}) {
1209
+ return u({
1210
+ mutationFn: async (t) => await r.customAuthz.bulkUpdateCustomObjectPermissions(
1211
+ t
1212
+ ),
1213
+ ...e
1214
+ });
1215
+ }
1216
+ function Bt(e = {}) {
1217
+ return u({
1218
+ mutationFn: async (t) => await r.customAuthz.checkCustomPermissions(t),
1219
+ ...e
1220
+ });
1221
+ }
1222
+ function At(e = {}) {
1223
+ return u({
1224
+ mutationFn: async (t) => await r.customAuthz.bulkCheckCustomPermissions(t),
1225
+ ...e
1226
+ });
1227
+ }
1228
+ function Ot(e = {}, t = {}) {
1186
1229
  return s({
1187
1230
  queryKey: ["inboxItems", "all", e.page, e.perPage],
1188
1231
  queryFn: async () => await r.inboxItems.getAllInboxItems(e),
1189
1232
  ...t
1190
1233
  });
1191
1234
  }
1192
- function Vt(e = {}) {
1193
- return o({
1235
+ function Ut(e = {}) {
1236
+ return u({
1194
1237
  mutationFn: async (t) => await r.inboxItems.markItemAsRead(t),
1195
1238
  ...e
1196
1239
  });
1197
1240
  }
1198
- function It(e = {}) {
1199
- return o({
1241
+ function vt(e = {}) {
1242
+ return u({
1200
1243
  mutationFn: async (t) => await r.inboxItems.markItemAsUnread(t),
1201
1244
  ...e
1202
1245
  });
1203
1246
  }
1204
- function Gt(e = {}) {
1205
- return o({
1247
+ function Mt(e = {}) {
1248
+ return u({
1206
1249
  mutationFn: async (t) => await r.inboxItems.createInboxItemPerUser(t),
1207
1250
  ...e
1208
1251
  });
1209
1252
  }
1210
- function Bt(e, t = {}) {
1253
+ function Qt(e, t = {}) {
1211
1254
  return s({
1212
1255
  queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
1213
1256
  queryFn: async () => await r.emailEngine.getAllConversations(e),
1214
1257
  ...t
1215
1258
  });
1216
1259
  }
1217
- function At(e, t = {}) {
1260
+ function Wt(e, t = {}) {
1218
1261
  return s({
1219
1262
  queryKey: ["emailConversation", e],
1220
1263
  queryFn: async () => await r.emailEngine.getConversation({
@@ -1224,9 +1267,9 @@ function At(e, t = {}) {
1224
1267
  ...t
1225
1268
  });
1226
1269
  }
1227
- function Ot(e = {}) {
1270
+ function _t(e = {}) {
1228
1271
  const t = g();
1229
- return o({
1272
+ return u({
1230
1273
  mutationFn: async (n) => await r.emailEngine.createConversation(n),
1231
1274
  onSuccess: () => {
1232
1275
  t.invalidateQueries({ queryKey: ["emailConversations"] });
@@ -1234,9 +1277,9 @@ function Ot(e = {}) {
1234
1277
  ...e
1235
1278
  });
1236
1279
  }
1237
- function Ut(e = {}) {
1280
+ function Lt(e = {}) {
1238
1281
  const t = g();
1239
- return o({
1282
+ return u({
1240
1283
  mutationFn: async (n) => await r.emailEngine.replyToConversation(n),
1241
1284
  onSuccess: (n, a) => {
1242
1285
  t.invalidateQueries({
@@ -1246,7 +1289,7 @@ function Ut(e = {}) {
1246
1289
  ...e
1247
1290
  });
1248
1291
  }
1249
- function vt(e, t = {}) {
1292
+ function zt(e, t = {}) {
1250
1293
  return s({
1251
1294
  queryKey: [
1252
1295
  "emailMessagesBySender",
@@ -1261,13 +1304,13 @@ function vt(e, t = {}) {
1261
1304
  ...t
1262
1305
  });
1263
1306
  }
1264
- function Qt(e = {}) {
1265
- return o({
1307
+ function Ht(e = {}) {
1308
+ return u({
1266
1309
  mutationFn: async (t) => await r.emailEngine.searchMessages(t),
1267
1310
  ...e
1268
1311
  });
1269
1312
  }
1270
- function Mt(e = {}) {
1313
+ function Nt(e = {}) {
1271
1314
  const t = c(async () => await r.tcn.getAuthUrl()), n = l({
1272
1315
  queryKey: ["tcn", "authUrl"],
1273
1316
  queryFn: t,
@@ -1276,132 +1319,132 @@ function Mt(e = {}) {
1276
1319
  });
1277
1320
  return s(n);
1278
1321
  }
1279
- function Wt(e = {}) {
1280
- return o({
1322
+ function jt(e = {}) {
1323
+ return u({
1281
1324
  mutationFn: async ({ code: t }) => await r.tcn.exchangeCode(t),
1282
1325
  ...e
1283
1326
  });
1284
1327
  }
1285
- function _t(e = {}) {
1286
- return o({
1328
+ function Jt(e = {}) {
1329
+ return u({
1287
1330
  mutationFn: async ({ refresh_token: t }) => await r.tcn.refreshToken(t),
1288
1331
  ...e
1289
1332
  });
1290
1333
  }
1291
- function Lt(e = {}) {
1292
- return o({
1334
+ function Yt(e = {}) {
1335
+ return u({
1293
1336
  mutationFn: async ({ token: t }) => await r.tcn.getCurrentAgent(t),
1294
1337
  ...e
1295
1338
  });
1296
1339
  }
1297
- function Ht(e = {}) {
1298
- return o({
1340
+ function $t(e = {}) {
1341
+ return u({
1299
1342
  mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getAgentSkills(t, n),
1300
1343
  ...e
1301
1344
  });
1302
1345
  }
1303
- function Nt(e = {}) {
1304
- return o({
1346
+ function Xt(e = {}) {
1347
+ return u({
1305
1348
  mutationFn: async ({ token: t, huntGroupSid: n, skills: a }) => await r.tcn.createSession(t, n, a),
1306
1349
  ...e
1307
1350
  });
1308
1351
  }
1309
- function zt(e = {}) {
1310
- return o({
1352
+ function Zt(e = {}) {
1353
+ return u({
1311
1354
  mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.keepAlive(t, n),
1312
1355
  ...e
1313
1356
  });
1314
1357
  }
1315
- function jt(e = {}) {
1316
- return o({
1358
+ function en(e = {}) {
1359
+ return u({
1317
1360
  mutationFn: async ({ token: t }) => await r.tcn.agentGetStatus(t),
1318
1361
  ...e
1319
1362
  });
1320
1363
  }
1321
- function Jt(e = {}) {
1322
- return o({
1364
+ function tn(e = {}) {
1365
+ return u({
1323
1366
  mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getHuntGroupAgentSettings(t, n),
1324
1367
  ...e
1325
1368
  });
1326
1369
  }
1327
- function Yt(e = {}) {
1328
- return o({
1370
+ function nn(e = {}) {
1371
+ return u({
1329
1372
  mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.dialManualPrepare(t, n),
1330
1373
  ...e
1331
1374
  });
1332
1375
  }
1333
- function $t(e = {}) {
1334
- return o({
1376
+ function rn(e = {}) {
1377
+ return u({
1335
1378
  mutationFn: async ({ token: t, call: n }) => await r.tcn.processManualDial(t, n),
1336
1379
  ...e
1337
1380
  });
1338
1381
  }
1339
- function Xt(e = {}) {
1340
- return o({
1341
- mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: u }) => await r.tcn.manualDialStart(
1382
+ function an(e = {}) {
1383
+ return u({
1384
+ mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: o }) => await r.tcn.manualDialStart(
1342
1385
  t,
1343
1386
  n,
1344
1387
  a,
1345
- u
1388
+ o
1346
1389
  ),
1347
1390
  ...e
1348
1391
  });
1349
1392
  }
1350
- function Zt(e = {}) {
1351
- return o({
1393
+ function un(e = {}) {
1394
+ return u({
1352
1395
  mutationFn: async ({ token: t, sessionSid: n, reason: a }) => await r.tcn.agentDisconnect(t, n, a),
1353
1396
  ...e
1354
1397
  });
1355
1398
  }
1356
- function en(e = {}) {
1357
- return o({
1399
+ function on(e = {}) {
1400
+ return u({
1358
1401
  mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentPause(t, n),
1359
1402
  ...e
1360
1403
  });
1361
1404
  }
1362
- function tn(e = {}) {
1363
- return o({
1405
+ function sn(e = {}) {
1406
+ return u({
1364
1407
  mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentSetReady(t, n),
1365
1408
  ...e
1366
1409
  });
1367
1410
  }
1368
- function nn(e = {}) {
1369
- return o({
1411
+ function cn(e = {}) {
1412
+ return u({
1370
1413
  mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentGetConnectedParty(t, n),
1371
1414
  ...e
1372
1415
  });
1373
1416
  }
1374
- function rn(e = {}) {
1375
- return o({
1417
+ function ln(e = {}) {
1418
+ return u({
1376
1419
  mutationFn: async ({ token: t, callSid: n }) => await r.tcn.getCallData(t, n),
1377
1420
  ...e
1378
1421
  });
1379
1422
  }
1380
- function an(e = {}) {
1381
- return o({
1423
+ function yn(e = {}) {
1424
+ return u({
1382
1425
  mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentPutCallOnHold(t, n, a),
1383
1426
  ...e
1384
1427
  });
1385
1428
  }
1386
- function on(e = {}) {
1387
- return o({
1429
+ function dn(e = {}) {
1430
+ return u({
1388
1431
  mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentGetCallFromHold(t, n, a),
1389
1432
  ...e
1390
1433
  });
1391
1434
  }
1392
- function un(e = {}) {
1393
- return o({
1435
+ function gn(e = {}) {
1436
+ return u({
1394
1437
  mutationFn: async (t) => await r.tcn.ftpManualDialReport(t),
1395
1438
  ...e
1396
1439
  });
1397
1440
  }
1398
- function sn(e = {}) {
1399
- return o({
1441
+ function fn(e = {}) {
1442
+ return u({
1400
1443
  mutationFn: async (t) => await r.templates.renderTemplate(t),
1401
1444
  ...e
1402
1445
  });
1403
1446
  }
1404
- function cn(e, t = {}) {
1447
+ function wn(e, t = {}) {
1405
1448
  const n = e?.trim();
1406
1449
  return s({
1407
1450
  queryKey: ["databox", "folder", n],
@@ -1414,7 +1457,7 @@ function cn(e, t = {}) {
1414
1457
  ...t
1415
1458
  });
1416
1459
  }
1417
- function ln(e, t = {}) {
1460
+ function mn(e, t = {}) {
1418
1461
  const n = e?.trim();
1419
1462
  return s({
1420
1463
  queryKey: ["databox", "folder", n, "files"],
@@ -1427,7 +1470,7 @@ function ln(e, t = {}) {
1427
1470
  ...t
1428
1471
  });
1429
1472
  }
1430
- function yn(e, t = {}) {
1473
+ function Fn(e, t = {}) {
1431
1474
  const n = e?.trim();
1432
1475
  return s({
1433
1476
  queryKey: ["databox", "folder", n, "datasets"],
@@ -1440,7 +1483,7 @@ function yn(e, t = {}) {
1440
1483
  ...t
1441
1484
  });
1442
1485
  }
1443
- function dn(e, t = {}) {
1486
+ function qn(e, t = {}) {
1444
1487
  const n = e?.trim();
1445
1488
  return s({
1446
1489
  queryKey: ["databox", "folder", n, "duplicates"],
@@ -1455,7 +1498,7 @@ function dn(e, t = {}) {
1455
1498
  ...t
1456
1499
  });
1457
1500
  }
1458
- function gn(e, t = {}) {
1501
+ function bn(e, t = {}) {
1459
1502
  const n = e?.trim();
1460
1503
  return s({
1461
1504
  queryKey: ["dataset", n, "exceptions"],
@@ -1468,7 +1511,7 @@ function gn(e, t = {}) {
1468
1511
  ...t
1469
1512
  });
1470
1513
  }
1471
- function fn(e, t, n = {}) {
1514
+ function Dn(e, t, n = {}) {
1472
1515
  const a = e?.trim();
1473
1516
  return s({
1474
1517
  queryKey: ["dataset", a, "duplicates", t ?? null],
@@ -1484,7 +1527,7 @@ function fn(e, t, n = {}) {
1484
1527
  ...n
1485
1528
  });
1486
1529
  }
1487
- function wn(e, t = {}) {
1530
+ function Tn(e, t = {}) {
1488
1531
  const n = e?.trim();
1489
1532
  return s({
1490
1533
  queryKey: ["databox", "folder", n, "schema"],
@@ -1497,7 +1540,7 @@ function wn(e, t = {}) {
1497
1540
  ...t
1498
1541
  });
1499
1542
  }
1500
- function mn(e, t = {}) {
1543
+ function hn(e, t = {}) {
1501
1544
  const n = e?.trim();
1502
1545
  return s({
1503
1546
  queryKey: ["databox", "folder", n, "schema", "history"],
@@ -1510,7 +1553,7 @@ function mn(e, t = {}) {
1510
1553
  ...t
1511
1554
  });
1512
1555
  }
1513
- function Fn(e, t = {}) {
1556
+ function pn(e, t = {}) {
1514
1557
  const n = e?.trim();
1515
1558
  return s({
1516
1559
  queryKey: ["databox", "folder", n, "trash"],
@@ -1523,7 +1566,7 @@ function Fn(e, t = {}) {
1523
1566
  ...t
1524
1567
  });
1525
1568
  }
1526
- function qn(e, t = {}) {
1569
+ function Rn(e, t = {}) {
1527
1570
  const n = e?.trim();
1528
1571
  return s({
1529
1572
  queryKey: ["databox", "file", n],
@@ -1536,7 +1579,7 @@ function qn(e, t = {}) {
1536
1579
  ...t
1537
1580
  });
1538
1581
  }
1539
- function bn(e, t = {}) {
1582
+ function Sn(e, t = {}) {
1540
1583
  const n = e?.trim();
1541
1584
  return s({
1542
1585
  queryKey: ["databox", "file", n, "status"],
@@ -1549,7 +1592,7 @@ function bn(e, t = {}) {
1549
1592
  ...t
1550
1593
  });
1551
1594
  }
1552
- function Dn(e, t = {}) {
1595
+ function kn(e, t = {}) {
1553
1596
  const n = e?.trim();
1554
1597
  return s({
1555
1598
  queryKey: ["databox", "file", n, "runs"],
@@ -1562,7 +1605,7 @@ function Dn(e, t = {}) {
1562
1605
  ...t
1563
1606
  });
1564
1607
  }
1565
- function Tn(e, t = {}) {
1608
+ function Cn(e, t = {}) {
1566
1609
  const n = e?.trim();
1567
1610
  return s({
1568
1611
  queryKey: ["databox", "file", n, "download-url"],
@@ -1575,104 +1618,108 @@ function Tn(e, t = {}) {
1575
1618
  ...t
1576
1619
  });
1577
1620
  }
1578
- function pn(e = {}) {
1579
- return o({
1621
+ function xn(e = {}) {
1622
+ return u({
1580
1623
  mutationFn: async (t) => await r.databox.dropFileToDatabox(t),
1581
1624
  ...e
1582
1625
  });
1583
1626
  }
1584
- function hn(e = {}) {
1585
- return o({
1627
+ function Kn(e = {}) {
1628
+ return u({
1586
1629
  mutationFn: async (t) => await r.databox.runDataboxFolder(t),
1587
1630
  ...e
1588
1631
  });
1589
1632
  }
1590
- function Rn(e = {}) {
1591
- return o({
1633
+ function En(e = {}) {
1634
+ return u({
1592
1635
  mutationFn: async (t) => await r.databox.updateDataboxFolderSchema(t),
1593
1636
  ...e
1594
1637
  });
1595
1638
  }
1596
- function Sn(e = {}) {
1597
- return o({
1639
+ function Pn(e = {}) {
1640
+ return u({
1598
1641
  mutationFn: async (t) => await r.databox.trashDataboxFiles(t),
1599
1642
  ...e
1600
1643
  });
1601
1644
  }
1602
- function kn(e = {}) {
1603
- return o({
1645
+ function Vn(e = {}) {
1646
+ return u({
1604
1647
  mutationFn: async (t) => await r.databox.restoreDataboxFile(t),
1605
1648
  ...e
1606
1649
  });
1607
1650
  }
1608
- function xn(e = {}) {
1609
- return o({
1651
+ function In(e = {}) {
1652
+ return u({
1610
1653
  mutationFn: async (t) => await r.databox.permanentDeleteDataboxFiles(t),
1611
1654
  ...e
1612
1655
  });
1613
1656
  }
1614
1657
  export {
1615
- Pn as ReactQueryDevtools,
1658
+ On as ReactQueryDevtools,
1616
1659
  P as WorkflowStatus,
1617
- N as reactQuery,
1660
+ H as reactQuery,
1661
+ At as useBulkCheckCustomPermissions,
1662
+ Gt as useBulkUpdateCustomObjectPermissions,
1663
+ Bt as useCheckCustomPermissions,
1618
1664
  ae as useCheckSubscriptionStatus,
1619
- ze as useCreateAuditLog,
1620
- Ot as useCreateConversation,
1621
- Gt as useCreateInboxItemPerUser,
1622
- He as useCreateOrUpdateForm,
1665
+ Ne as useCreateAuditLog,
1666
+ _t as useCreateConversation,
1667
+ Mt as useCreateInboxItemPerUser,
1668
+ ze as useCreateOrUpdateForm,
1623
1669
  Dt as useCreateOrUpdateProcessTreeTrigger,
1624
1670
  G as useCreateReconV2,
1625
- oe as useCreateStatementRun,
1671
+ ue as useCreateStatementRun,
1626
1672
  $ as useCreateThread,
1627
- ue as useDataset,
1673
+ Pt as useCustomAuthzModel,
1674
+ oe as useDataset,
1628
1675
  Y as useDatasetSample,
1629
1676
  te as useDeleteComment,
1630
1677
  St as useDeleteProcessTreeTrigger,
1631
1678
  wt as useDeleteProcessTrigger,
1632
1679
  Ye as useDeleteReconV2,
1633
- xe as useDeleteRow,
1680
+ Ce as useDeleteRow,
1634
1681
  Ge as useDocumentPermissions,
1635
- pn as useDropFileToDatabox,
1682
+ xn as useDropFileToDatabox,
1636
1683
  bt as useExecuteNow,
1637
1684
  Tt as useExecuteProcessTreeTrigger,
1638
1685
  Ae as useFileDownload,
1639
1686
  Be as useFileUpload,
1640
- vt as useFilterMessagesBySenderId,
1641
- Bt as useGetAllConversations,
1687
+ zt as useFilterMessagesBySenderId,
1688
+ Qt as useGetAllConversations,
1642
1689
  lt as useGetAllHttpTriggers,
1643
- Pt as useGetAllInboxItems,
1690
+ Ot as useGetAllInboxItems,
1644
1691
  Je as useGetAllRecon,
1645
1692
  O as useGetAllReconV2,
1646
1693
  je as useGetAllTemplatedPipelines,
1647
1694
  ct as useGetAllUsers,
1648
- Ne as useGetAuditLogs,
1695
+ He as useGetAuditLogs,
1649
1696
  X as useGetCommentsByThreadId,
1650
- At as useGetConversation,
1651
- qn as useGetDataboxFile,
1652
- Tn as useGetDataboxFileDownloadUrl,
1653
- Dn as useGetDataboxFileRuns,
1654
- bn as useGetDataboxFileStatus,
1655
- cn as useGetDataboxFolder,
1656
- yn as useGetDataboxFolderDatasets,
1657
- dn as useGetDataboxFolderDuplicates,
1658
- ln as useGetDataboxFolderFiles,
1659
- wn as useGetDataboxFolderSchema,
1660
- mn as useGetDataboxSchemaHistory,
1661
- Fn as useGetDataboxTrashFiles,
1662
- fn as useGetDatasetDuplicates,
1663
- gn as useGetDatasetExceptions,
1697
+ Wt as useGetConversation,
1698
+ Rn as useGetDataboxFile,
1699
+ Cn as useGetDataboxFileDownloadUrl,
1700
+ kn as useGetDataboxFileRuns,
1701
+ Sn as useGetDataboxFileStatus,
1702
+ wn as useGetDataboxFolder,
1703
+ Fn as useGetDataboxFolderDatasets,
1704
+ qn as useGetDataboxFolderDuplicates,
1705
+ mn as useGetDataboxFolderFiles,
1706
+ Tn as useGetDataboxFolderSchema,
1707
+ hn as useGetDataboxSchemaHistory,
1708
+ pn as useGetDataboxTrashFiles,
1709
+ Dn as useGetDatasetDuplicates,
1710
+ bn as useGetDatasetExceptions,
1664
1711
  se as useGetDatasets,
1665
1712
  le as useGetFileByFolderIdAndName,
1666
1713
  ce as useGetFileUrlByFileId,
1667
1714
  Le as useGetFormById,
1668
1715
  _e as useGetFormData,
1669
1716
  We as useGetFormSchema,
1670
- he as useGetInputTables,
1671
- Ct as useGetProcessTreeRunByInstanceId,
1672
- Kt as useGetProcessTreeRunsBySheetId,
1673
- Et as useGetProcessTreeRunsBySheetIdPaginated,
1717
+ pe as useGetInputTables,
1718
+ Et as useGetProcessTreeRunByInstanceId,
1719
+ xt as useGetProcessTreeRunsBySheetId,
1720
+ Kt as useGetProcessTreeRunsBySheetIdPaginated,
1674
1721
  kt as useGetProcessTreeTrigger,
1675
- xt as useGetProcessTreeTriggersBySheetId,
1722
+ Ct as useGetProcessTreeTriggersBySheetId,
1676
1723
  ye as useGetPublishedWorkbookById,
1677
1724
  tt as useGetReconV2CleanResult,
1678
1725
  nt as useGetReconV2Diff,
@@ -1680,7 +1727,7 @@ export {
1680
1727
  Ze as useGetReconV2ProfileResult,
1681
1728
  v as useGetReconV2RunResult,
1682
1729
  U as useGetReconV2Runs,
1683
- Q as useGetReconV2SmartResult,
1730
+ M as useGetReconV2SmartResult,
1684
1731
  _ as useGetReconV2Workflow,
1685
1732
  de as useGetRunResultById,
1686
1733
  ge as useGetRunsByViewId,
@@ -1697,69 +1744,71 @@ export {
1697
1744
  be as useGetWorkflowInstanceStatusById,
1698
1745
  De as useGetWorksheets,
1699
1746
  Te as useGetWorksheetsByType,
1700
- pe as useInputTable,
1747
+ he as useInputTable,
1701
1748
  Se as useInsertRow,
1702
- ht as useLogProcessTreeRun,
1703
- Vt as useMarkItemAsRead,
1704
- It as useMarkItemAsUnread,
1749
+ pt as useLogProcessTreeRun,
1750
+ Ut as useMarkItemAsRead,
1751
+ vt as useMarkItemAsUnread,
1705
1752
  yt as useMarkTaskDone,
1706
1753
  J as useMetric,
1707
1754
  mt as usePauseSchedule,
1708
- xn as usePermanentDeleteDataboxFiles,
1755
+ In as usePermanentDeleteDataboxFiles,
1709
1756
  Z as usePostComment,
1710
- Qe as usePublishWorkbook,
1757
+ Me as usePublishWorkbook,
1711
1758
  dt as useReassignTask,
1712
- ot as useReconV2Detail,
1713
- ut as useReconV2Editor,
1759
+ ut as useReconV2Detail,
1760
+ ot as useReconV2Editor,
1714
1761
  at as useReconV2List,
1715
1762
  it as useReconV2Results,
1716
1763
  st as useReconV2RunController,
1717
1764
  W as useReconV2RunStatus,
1718
1765
  $e as useReconV2Templates,
1766
+ Vt as useRegisterCustomAuthzModel,
1719
1767
  ft as useRegisterProcessTrigger,
1720
- sn as useRenderTemplate,
1721
- Ut as useReplyToConversation,
1722
- kn as useRestoreDataboxFile,
1768
+ fn as useRenderTemplate,
1769
+ Lt as useReplyToConversation,
1770
+ Vn as useRestoreDataboxFile,
1723
1771
  Ft as useResumeSchedule,
1724
1772
  Re as useRows,
1725
- hn as useRunDataboxFolder,
1726
- Ke as useRunDefinition,
1727
- Ee as useRunPublishedDefinition,
1728
- Me as useRunRecon,
1773
+ Kn as useRunDataboxFolder,
1774
+ xe as useRunDefinition,
1775
+ Ke as useRunPublishedDefinition,
1776
+ Qe as useRunRecon,
1729
1777
  A as useRunReconV2,
1730
- Ce as useRunSampleDefinition,
1778
+ Ee as useRunSampleDefinition,
1731
1779
  ve as useSaveWorkbook,
1732
- Qt as useSearchMessages,
1780
+ Ht as useSearchMessages,
1733
1781
  et as useStartReconV2Clean,
1734
1782
  Xe as useStartReconV2Profile,
1735
1783
  ne as useSubscribeUser,
1736
- Zt as useTcnAgentDisconnect,
1737
- on as useTcnAgentGetCallFromHold,
1738
- jt as useTcnAgentGetStatus,
1739
- en as useTcnAgentPause,
1740
- an as useTcnAgentPutCallOnHold,
1741
- tn as useTcnAgentSetReady,
1742
- Ht as useTcnAgentSkills,
1743
- Mt as useTcnAuthUrl,
1744
- rn as useTcnCallData,
1745
- nn as useTcnConnectedParty,
1746
- Nt as useTcnCreateSession,
1747
- Lt as useTcnCurrentAgent,
1748
- Yt as useTcnDialManualPrepare,
1749
- Wt as useTcnExchangeCode,
1750
- un as useTcnFtpManualDialReport,
1751
- Jt as useTcnHuntGroupSettings,
1752
- zt as useTcnKeepAlive,
1753
- Xt as useTcnManualDialStart,
1754
- $t as useTcnProcessManualDial,
1755
- _t as useTcnRefreshToken,
1756
- pt as useTerminateProcessTreePipelines,
1757
- Sn as useTrashDataboxFiles,
1784
+ un as useTcnAgentDisconnect,
1785
+ dn as useTcnAgentGetCallFromHold,
1786
+ en as useTcnAgentGetStatus,
1787
+ on as useTcnAgentPause,
1788
+ yn as useTcnAgentPutCallOnHold,
1789
+ sn as useTcnAgentSetReady,
1790
+ $t as useTcnAgentSkills,
1791
+ Nt as useTcnAuthUrl,
1792
+ ln as useTcnCallData,
1793
+ cn as useTcnConnectedParty,
1794
+ Xt as useTcnCreateSession,
1795
+ Yt as useTcnCurrentAgent,
1796
+ nn as useTcnDialManualPrepare,
1797
+ jt as useTcnExchangeCode,
1798
+ gn as useTcnFtpManualDialReport,
1799
+ tn as useTcnHuntGroupSettings,
1800
+ Zt as useTcnKeepAlive,
1801
+ an as useTcnManualDialStart,
1802
+ rn as useTcnProcessManualDial,
1803
+ Jt as useTcnRefreshToken,
1804
+ ht as useTerminateProcessTreePipelines,
1805
+ Pn as useTrashDataboxFiles,
1758
1806
  Pe as useTriggerHttpWorkflow,
1759
1807
  Ve as useTriggerWorkflow,
1760
1808
  re as useUnsubscribeUser,
1761
1809
  ee as useUpdateComment,
1762
- Rn as useUpdateDataboxFolderSchema,
1810
+ It as useUpdateCustomObjectPermissions,
1811
+ En as useUpdateDataboxFolderSchema,
1763
1812
  Rt as useUpdateProcessTreeRunContext,
1764
1813
  B as useUpdateReconV2,
1765
1814
  ke as useUpdateRow,