@bluecopa/react 0.1.67 → 0.1.68

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,130 +1,1295 @@
1
- import { W as a, X as u, Y as t, Z as o, _ as n, a0 as b, a1 as r, a2 as i, a3 as l, a4 as c, a5 as T, a6 as k, a7 as d, a8 as G, a9 as p, aa as h, ab as C, ac as I, ad as S, ae as g, af as m, ag as D, ah as R, ai as y, aj as W, ak as B, al as A, am as U, an as w, ao as f, ap as P, aq as F, ar as x, as as M, at as v, au as E, av as L, aw as H, ax as V, ay as q, az as Q, aA as K, aB as O, aC as j, aD as z, aE as J, aF as N, aG as X, aH as Y, aI as Z, aJ as _, aK as $, aL as ee, aM as se, aN as ae, aO as ue, aP as te, aQ as oe, aR as ne, aS as be, aT as re, aU as ie, aV as le, aW as ce, aX as Te, aY as ke, aZ as de, a_ as Ge, a$ as pe, b0 as he, b1 as Ce, b2 as Ie, b3 as Se, b4 as ge, b5 as me, b6 as De, b7 as Re, b8 as ye, b9 as We, ba as Be, bb as Ae, bc as Ue, bd as we, be as fe, bf as Pe, bg as Fe, bh as xe, bi as Me, bj as ve, bk as Ee, bl as Le, bm as He, bn as Ve, bo as qe, bp as Qe, bq as Ke, br as Oe, bs as je, bt as ze, bu as Je, bv as Ne, bw as Xe, bx as Ye, by as Ze, bz as _e, bA as $e, bB as es, bC as ss, bD as as, bE as us, bF as ts, bG as os, bH as ns, bI as bs, bJ as rs, bK as is, bL as ls, bM as cs, bN as Ts, bO as ks, bP as ds, bQ as Gs, bR as ps, bS as hs, bT as Cs, bU as Is, bV as Ss } from "./index-CuNApw51.js";
1
+ import { useQuery as i, useMutation as o, useQueryClient as l } from "@tanstack/react-query";
2
+ import * as v from "@tanstack/react-query";
3
+ import { copaApi as r, copaGetConfig as T } from "@bluecopa/core";
4
+ export * from "@bluecopa/core";
5
+ import { ReactQueryDevtools as Hn } from "@tanstack/react-query-devtools";
6
+ const S = {
7
+ enabled: !0,
8
+ staleTime: 1e3 * 60 * 5,
9
+ // 5 minutes
10
+ gcTime: 1e3 * 60 * 10,
11
+ // 10 minutes
12
+ retry: 2,
13
+ retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
14
+ };
15
+ function K(e = {}) {
16
+ return {
17
+ ...S,
18
+ ...e
19
+ };
20
+ }
21
+ function C(e = 5e3) {
22
+ return new Promise((n) => setTimeout(n, e));
23
+ }
24
+ function k(e, n) {
25
+ const t = Object.entries(e).filter(([u, a]) => !a).map(([u]) => u);
26
+ if (t.length > 0)
27
+ throw new Error(
28
+ n || `Missing required parameters: ${t.join(", ")}`
29
+ );
30
+ }
31
+ function c(e, n, t = 0) {
32
+ return async () => (await C(t), await e());
33
+ }
34
+ function y(e) {
35
+ const n = K(e.options);
36
+ return {
37
+ queryKey: e.queryKey,
38
+ queryFn: e.queryFn,
39
+ enabled: e.enabled !== void 0 ? e.enabled : n.enabled,
40
+ staleTime: n.staleTime,
41
+ gcTime: n.gcTime,
42
+ retry: n.retry,
43
+ retryDelay: n.retryDelay,
44
+ onSuccess: n.onSuccess,
45
+ onError: n.onError
46
+ };
47
+ }
48
+ function O(e, n = {}) {
49
+ const t = n.enabled !== !1 && !!e, u = c(async () => {
50
+ if (!e)
51
+ throw new Error("Metric ID is required");
52
+ return console.log("Fetching metric data..."), await r.metric.getData(e);
53
+ }), a = y({
54
+ queryKey: ["metricData", e],
55
+ queryFn: u,
56
+ enabled: t,
57
+ options: n
58
+ });
59
+ return i(a);
60
+ }
61
+ function P(e, n = {}) {
62
+ const t = !!e, u = c(async () => {
63
+ if (!e)
64
+ throw new Error("Dataset ID is required");
65
+ return console.log("Fetching dataset data..."), await r.dataset.getSampleData({
66
+ datasetId: e,
67
+ dataFilter: "all_data"
68
+ });
69
+ }), a = y({
70
+ queryKey: ["datasetData", e],
71
+ queryFn: u,
72
+ enabled: t,
73
+ options: n
74
+ });
75
+ return i(a);
76
+ }
77
+ function A(e = {}) {
78
+ return o({
79
+ mutationFn: async (n) => await r.chat.createThread(n),
80
+ onSuccess: e.onSuccess,
81
+ onError: e.onError,
82
+ retry: e.retry ?? 2,
83
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
84
+ });
85
+ }
86
+ function U(e, n = {}) {
87
+ const t = n.enabled !== !1 && !!e, u = c(async () => (k(
88
+ { threadId: e },
89
+ "Thread ID is required to fetch comments"
90
+ ), await r.chat.getCommentsByThreadId(e))), a = y({
91
+ queryKey: ["chat", "comments", e],
92
+ queryFn: u,
93
+ enabled: t,
94
+ options: n
95
+ });
96
+ return i(a);
97
+ }
98
+ function x(e = {}) {
99
+ return o({
100
+ mutationFn: async (n) => await r.chat.postComment(n),
101
+ onSuccess: e.onSuccess,
102
+ onError: e.onError,
103
+ retry: e.retry ?? 2,
104
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
105
+ });
106
+ }
107
+ function Q(e = {}) {
108
+ return o({
109
+ mutationFn: async (n) => await r.chat.updateComment(n),
110
+ onSuccess: e.onSuccess,
111
+ onError: e.onError,
112
+ retry: e.retry ?? 2,
113
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
114
+ });
115
+ }
116
+ function I(e = {}) {
117
+ return o({
118
+ mutationFn: async (n) => await r.chat.deleteComment(n),
119
+ onSuccess: e.onSuccess,
120
+ onError: e.onError,
121
+ retry: e.retry ?? 2,
122
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
123
+ });
124
+ }
125
+ function M(e = {}) {
126
+ return o({
127
+ mutationFn: async (n) => await r.chat.subscribeUser(n),
128
+ onSuccess: e.onSuccess,
129
+ onError: e.onError,
130
+ retry: e.retry ?? 2,
131
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
132
+ });
133
+ }
134
+ function _(e = {}) {
135
+ return o({
136
+ mutationFn: async (n) => await r.chat.unsubscribeUser(n),
137
+ onSuccess: e.onSuccess,
138
+ onError: e.onError,
139
+ retry: e.retry ?? 2,
140
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
141
+ });
142
+ }
143
+ function L(e, n, t = {}) {
144
+ const u = t.enabled !== !1 && !!e && !!n, a = c(async () => (k(
145
+ { userId: e, threadId: n },
146
+ "User ID and Thread ID are required to check subscription status"
147
+ ), await r.chat.checkSubscriptionStatus(e, n))), s = y({
148
+ queryKey: ["chat", "subscription", e, n],
149
+ queryFn: a,
150
+ enabled: u,
151
+ options: t
152
+ });
153
+ return i(s);
154
+ }
155
+ function V(e = {}) {
156
+ return o({
157
+ mutationFn: async (n) => await r.statement.createNewRun(n),
158
+ ...e
159
+ });
160
+ }
161
+ function H(e, n = {}) {
162
+ const t = !!e, u = c(async () => {
163
+ if (!e)
164
+ throw new Error("Dataset ID is required");
165
+ return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
166
+ limit: n.limit || 1e3
167
+ });
168
+ }), a = y({
169
+ queryKey: ["datasetData", e],
170
+ queryFn: u,
171
+ enabled: t,
172
+ options: n
173
+ });
174
+ return i(a);
175
+ }
176
+ function p() {
177
+ const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), n = y({
178
+ queryKey: ["datasetData"],
179
+ queryFn: e,
180
+ enabled: !0
181
+ });
182
+ return i(n);
183
+ }
184
+ function N(e, n, t, u = {}) {
185
+ const a = !!e && !!n && !!t, s = c(async () => {
186
+ if (!e || !n || !t)
187
+ throw new Error("Key, contentType, and method are required");
188
+ return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
189
+ key: e,
190
+ contentType: n,
191
+ method: t
192
+ });
193
+ }), w = y({
194
+ queryKey: ["file", "getFileUrlByFileId", e, n, t],
195
+ queryFn: s,
196
+ enabled: a,
197
+ options: u
198
+ });
199
+ return i(w);
200
+ }
201
+ function z(e, n, t = {}) {
202
+ const u = !!e && !!n, a = c(async () => {
203
+ if (!e || !n)
204
+ throw new Error("Type and ID are required");
205
+ return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: n });
206
+ }), s = y({
207
+ queryKey: ["workbook", "getPublishedWorkbookById", e, n],
208
+ queryFn: a,
209
+ enabled: u,
210
+ options: t
211
+ });
212
+ return i(s);
213
+ }
214
+ function Y(e, n = {}) {
215
+ const t = !!e, u = c(async () => {
216
+ if (!e)
217
+ throw new Error("Run ID is required");
218
+ return await r.statement.getRunResultById(e);
219
+ }), a = y({
220
+ queryKey: ["statement", "getRunResultById", e],
221
+ queryFn: u,
222
+ enabled: t,
223
+ options: n
224
+ });
225
+ return i(a);
226
+ }
227
+ function $(e, n = {}) {
228
+ const t = !!e, u = c(async () => {
229
+ if (!e)
230
+ throw new Error("View ID is required");
231
+ return await r.statement.getRunsByViewId(e);
232
+ }), a = y({
233
+ queryKey: ["statement", "getRunsByViewId", e],
234
+ queryFn: u,
235
+ enabled: t,
236
+ options: n
237
+ });
238
+ return i(a);
239
+ }
240
+ function J(e, n, t, u = {}) {
241
+ const a = !!e, s = c(async () => {
242
+ if (!e)
243
+ throw new Error("Statement ID is required");
244
+ return await r.statement.getData({
245
+ statementId: e,
246
+ viewId: n || void 0,
247
+ runId: t || void 0
248
+ });
249
+ }), w = y({
250
+ queryKey: ["statement", "getData", e, n, t],
251
+ queryFn: s,
252
+ enabled: a,
253
+ options: u
254
+ });
255
+ return i(w);
256
+ }
257
+ function X(e, n = {}) {
258
+ const t = !!e, u = c(async () => {
259
+ if (!e)
260
+ throw new Error("Table ID is required");
261
+ return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
262
+ }), a = y({
263
+ queryKey: ["inputTable", "getTableById", e],
264
+ queryFn: u,
265
+ enabled: t,
266
+ options: n
267
+ });
268
+ return i(a);
269
+ }
270
+ function Z(e, n = {}) {
271
+ const t = !!e, u = c(async () => {
272
+ if (!e)
273
+ throw new Error("View ID is required");
274
+ return await r.statement.getViewById(e);
275
+ }), a = y({
276
+ queryKey: ["statement", "getViewById", e],
277
+ queryFn: u,
278
+ enabled: t,
279
+ options: n
280
+ });
281
+ return i(a);
282
+ }
283
+ function j(e, n = {}) {
284
+ const t = !!e, u = c(async () => {
285
+ if (!e)
286
+ throw new Error("Sheet ID is required");
287
+ return await r.statement.getViewsBySheetId(e);
288
+ }), a = y({
289
+ queryKey: ["statement", "getViewsBySheetId", e],
290
+ queryFn: u,
291
+ enabled: t,
292
+ options: n
293
+ });
294
+ return i(a);
295
+ }
296
+ function ee(e, n = {}) {
297
+ const t = !!e, u = c(async () => {
298
+ if (!e)
299
+ throw new Error("Type is required");
300
+ return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
301
+ }), a = y({
302
+ queryKey: ["workbook", "getWorkbooksByType", e],
303
+ queryFn: u,
304
+ enabled: t,
305
+ options: n
306
+ });
307
+ return i(a);
308
+ }
309
+ var E = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(E || {});
310
+ function ne(e = {}) {
311
+ return o({
312
+ mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(n)),
313
+ ...e
314
+ });
315
+ }
316
+ function te(e, n = {}) {
317
+ const t = !!e && e.length > 0, u = c(async () => {
318
+ if (!e || e.length === 0)
319
+ throw new Error("Worksheet IDs are required");
320
+ return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
321
+ }), a = y({
322
+ queryKey: ["worksheet", "getWorksheets", e],
323
+ queryFn: u,
324
+ enabled: t,
325
+ options: n
326
+ });
327
+ return i(a);
328
+ }
329
+ function re(e, n = {}) {
330
+ const t = !!e, u = c(async () => {
331
+ if (!e)
332
+ throw new Error("Type is required");
333
+ return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
334
+ }), a = y({
335
+ queryKey: ["worksheet", "getWorksheetsByType", e],
336
+ queryFn: u,
337
+ enabled: t,
338
+ options: n
339
+ });
340
+ return i(a);
341
+ }
342
+ function ue(e, n, t = {}) {
343
+ const {
344
+ limitParams: u = { limit: 2e3, limitFrom: "top" },
345
+ pageParams: a,
346
+ sortParams: s,
347
+ offsetParam: w,
348
+ ...b
349
+ } = t, g = b.enabled !== !1 && !!e && !!n, d = c(async () => {
350
+ if (!e || !n)
351
+ throw new Error("Input table ID and view ID are required");
352
+ return console.log("Fetching input table data..."), await r.inputTable.getData({
353
+ inputTableId: e,
354
+ inputTableViewId: n,
355
+ pageParams: a,
356
+ limitParams: u,
357
+ sortParams: s,
358
+ offsetParam: w
359
+ });
360
+ }), f = y({
361
+ queryKey: ["inputTableData", e, n],
362
+ queryFn: d,
363
+ enabled: g,
364
+ options: b
365
+ });
366
+ return i(f);
367
+ }
368
+ function oe() {
369
+ const e = c(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), n = y({
370
+ queryKey: ["inputTableData"],
371
+ queryFn: e,
372
+ enabled: !0
373
+ });
374
+ return i(n);
375
+ }
376
+ function ae(e, n = {}) {
377
+ const t = [
378
+ "enabled",
379
+ "staleTime",
380
+ "gcTime",
381
+ "retry",
382
+ "retryDelay",
383
+ "onSuccess",
384
+ "onError"
385
+ ], { limit: u, offset: a, order: s, order_by: w, ...b } = n, g = {}, d = { limit: u, offset: a, order: s, order_by: w };
386
+ Object.keys(b).forEach((q) => {
387
+ t.includes(q) ? g[q] = b[q] : d[q] = b[q];
388
+ });
389
+ const f = g.enabled !== !1 && !!e, m = c(async () => {
390
+ if (!e)
391
+ throw new Error("Table ID is required");
392
+ return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, d);
393
+ }), D = y({
394
+ queryKey: ["inputTableRows", e, n],
395
+ queryFn: m,
396
+ enabled: f,
397
+ options: g
398
+ });
399
+ return i(D);
400
+ }
401
+ function ie(e = {}) {
402
+ const n = l();
403
+ return o({
404
+ mutationFn: async (t) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(t.tableId, t.rowData)),
405
+ onSuccess: (t, u, a) => {
406
+ var s;
407
+ n.invalidateQueries({
408
+ queryKey: ["inputTableRows", u.tableId]
409
+ }), (s = e.onSuccess) == null || s.call(e, t);
410
+ },
411
+ onError: (t, u, a) => {
412
+ var s;
413
+ (s = e.onError) == null || s.call(e, t);
414
+ },
415
+ ...e
416
+ });
417
+ }
418
+ function se(e = {}) {
419
+ const n = l();
420
+ return o({
421
+ mutationFn: async (t) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
422
+ t.tableId,
423
+ t.updateData,
424
+ t.rowId
425
+ )),
426
+ onSuccess: (t, u, a) => {
427
+ var s;
428
+ n.invalidateQueries({
429
+ queryKey: ["inputTableRows", u.tableId]
430
+ }), (s = e.onSuccess) == null || s.call(e, t);
431
+ },
432
+ onError: (t, u, a) => {
433
+ var s;
434
+ (s = e.onError) == null || s.call(e, t);
435
+ },
436
+ ...e
437
+ });
438
+ }
439
+ function ce(e = {}) {
440
+ const n = l();
441
+ return o({
442
+ mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
443
+ t.tableId,
444
+ t.rowId,
445
+ t.idField
446
+ )),
447
+ onSuccess: (t, u, a) => {
448
+ var s;
449
+ n.invalidateQueries({
450
+ queryKey: ["inputTableRows", u.tableId]
451
+ }), (s = e.onSuccess) == null || s.call(e, t);
452
+ },
453
+ onError: (t, u, a) => {
454
+ var s;
455
+ (s = e.onError) == null || s.call(e, t);
456
+ },
457
+ ...e
458
+ });
459
+ }
460
+ function ye(e = {}) {
461
+ return o({
462
+ mutationFn: async (n) => (console.log("Running definition..."), await r.definition.runDefinition(n)),
463
+ ...e
464
+ });
465
+ }
466
+ function le(e = {}) {
467
+ return o({
468
+ mutationFn: async (n) => await r.definition.runPublishedDefinition(n),
469
+ ...e
470
+ });
471
+ }
472
+ function we(e = {}) {
473
+ return o({
474
+ mutationFn: async (n) => await r.definition.runSampleDefinition(n),
475
+ ...e
476
+ });
477
+ }
478
+ function be(e = {}) {
479
+ return o({
480
+ mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(n)),
481
+ ...e
482
+ });
483
+ }
484
+ function ge(e = {}) {
485
+ return o({
486
+ mutationFn: async (n) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(n)),
487
+ ...e
488
+ });
489
+ }
490
+ function B(e = {}) {
491
+ const n = e.enabled !== !1, t = c(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), u = y({
492
+ queryKey: ["user"],
493
+ queryFn: t,
494
+ enabled: n,
495
+ options: e
496
+ });
497
+ return i(u);
498
+ }
499
+ const qe = B, R = ["Owner", "Editor", "Viewer", "ReadOnly"];
500
+ var h;
501
+ const F = (h = r.permissions) == null ? void 0 : h.getPermissions;
502
+ function de(e, n, t = {}) {
503
+ const u = t.enabled !== !1 && !!(e != null && e.trim()), a = c(
504
+ async () => {
505
+ if (!(e != null && e.trim()))
506
+ return {};
507
+ if (!F)
508
+ throw new Error(
509
+ "@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
510
+ );
511
+ const w = T();
512
+ if (!w.userId)
513
+ throw new Error(
514
+ "@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
515
+ );
516
+ return await F({
517
+ objectId: e.trim(),
518
+ objectType: n,
519
+ user: w.userId,
520
+ userType: "User",
521
+ relations: t.relations ?? R
522
+ });
523
+ },
524
+ void 0,
525
+ 0
526
+ ), s = y({
527
+ queryKey: ["documentPermissions", e ?? "", n, t.relations ?? []],
528
+ queryFn: a,
529
+ enabled: u,
530
+ options: t
531
+ });
532
+ return i(s);
533
+ }
534
+ function fe(e = {}) {
535
+ return o({
536
+ mutationFn: async (n) => (console.log("Uploading file..."), await r.files.fileUpload(n)),
537
+ ...e
538
+ });
539
+ }
540
+ function Fe({
541
+ fileId: e,
542
+ contentType: n = "application/json",
543
+ method: t = "GET"
544
+ }, u = {}) {
545
+ const a = !!e, s = c(async () => {
546
+ if (!e)
547
+ throw new Error("File ID is required");
548
+ return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: n, method: t });
549
+ }), w = y({
550
+ queryKey: ["file", "fileDownload", e],
551
+ queryFn: s,
552
+ enabled: a,
553
+ options: u
554
+ });
555
+ return i(w);
556
+ }
557
+ function he(e, n = {}) {
558
+ const t = !!e, u = c(async () => {
559
+ if (!e)
560
+ throw new Error("Task ID is required");
561
+ return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
562
+ }), a = y({
563
+ queryKey: ["task", "getTaskDetails", e],
564
+ queryFn: u,
565
+ enabled: t,
566
+ options: n
567
+ });
568
+ return i(a);
569
+ }
570
+ function ke(e, n = {}) {
571
+ const t = !!e, u = c(async () => {
572
+ if (!e)
573
+ throw new Error("Workbook ID is required");
574
+ return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
575
+ }), a = y({
576
+ queryKey: ["workbook", "getWorkbookDetails", e],
577
+ queryFn: u,
578
+ enabled: t,
579
+ options: n
580
+ });
581
+ return i(a);
582
+ }
583
+ function me(e = {}) {
584
+ return o({
585
+ mutationFn: async (n) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(n)),
586
+ ...e
587
+ });
588
+ }
589
+ function De(e = {}) {
590
+ return o({
591
+ mutationFn: async (n) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(n)),
592
+ ...e
593
+ });
594
+ }
595
+ function Te(e = {}) {
596
+ return o({
597
+ mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
598
+ ...e
599
+ });
600
+ }
601
+ function Se(e, n, t = {}) {
602
+ const u = !!e && !!n, a = c(async () => {
603
+ if (!e || !n)
604
+ throw new Error("Form instance ID and revision are required");
605
+ return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: n });
606
+ });
607
+ return i(
608
+ y({
609
+ queryKey: ["form", "getFormSchema", e, n],
610
+ queryFn: a,
611
+ enabled: u,
612
+ options: t
613
+ })
614
+ );
615
+ }
616
+ function Ke(e, n = {}) {
617
+ const t = !!e, u = c(async () => {
618
+ if (!e)
619
+ throw new Error("Form ID is required");
620
+ return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
621
+ }), a = y({
622
+ queryKey: ["form", "getFormData", e],
623
+ queryFn: u,
624
+ enabled: t,
625
+ options: n
626
+ });
627
+ return i(a);
628
+ }
629
+ function Ce(e, n = {}) {
630
+ return i({
631
+ queryKey: ["form", e],
632
+ queryFn: async () => {
633
+ if (!e)
634
+ throw new Error("Form ID is required");
635
+ return await r.form.getFormById({ formId: e });
636
+ },
637
+ enabled: !!e,
638
+ ...n
639
+ });
640
+ }
641
+ function Ee(e = {}) {
642
+ return o({
643
+ mutationFn: async (n) => await r.form.createOrUpdateForm(n),
644
+ ...e
645
+ });
646
+ }
647
+ function Be(e = {}) {
648
+ return o({
649
+ mutationFn: async (n) => await r.audit.getAuditLogs(n),
650
+ ...e
651
+ });
652
+ }
653
+ function Re(e = {}) {
654
+ return o({
655
+ mutationFn: async (n) => await r.audit.createAuditLog(n),
656
+ ...e
657
+ });
658
+ }
659
+ function We(e = {}) {
660
+ return i({
661
+ queryKey: ["templatedPipelines"],
662
+ queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
663
+ ...e
664
+ });
665
+ }
666
+ function ve(e = {}) {
667
+ return i({
668
+ queryKey: ["reconWorkflows"],
669
+ queryFn: async () => await r.recon.getAllReconWorkflows(),
670
+ ...e
671
+ });
672
+ }
673
+ function Ge(e = {}) {
674
+ return i({
675
+ queryKey: ["users"],
676
+ queryFn: async () => await r.user.getAllUsers(),
677
+ ...e
678
+ });
679
+ }
680
+ function Oe(e = {}) {
681
+ return i({
682
+ queryKey: ["httpTriggers"],
683
+ queryFn: async () => await r.workflow.getAllHttpTriggers(),
684
+ ...e
685
+ });
686
+ }
687
+ function Pe(e = {}) {
688
+ return o({
689
+ mutationFn: async (n) => await r.process.markTaskDone(n),
690
+ ...e
691
+ });
692
+ }
693
+ function Ae(e = {}) {
694
+ return o({
695
+ mutationFn: async (n) => await r.process.reassignTask(n),
696
+ ...e
697
+ });
698
+ }
699
+ function Ue(e = {}, n = {}) {
700
+ return i({
701
+ queryKey: ["inboxItems", "all", e.page, e.perPage],
702
+ queryFn: async () => await r.inboxItems.getAllInboxItems(e),
703
+ ...n
704
+ });
705
+ }
706
+ function xe(e = {}) {
707
+ return o({
708
+ mutationFn: async (n) => await r.inboxItems.markItemAsRead(n),
709
+ ...e
710
+ });
711
+ }
712
+ function Qe(e = {}) {
713
+ return o({
714
+ mutationFn: async (n) => await r.inboxItems.markItemAsUnread(n),
715
+ ...e
716
+ });
717
+ }
718
+ function Ie(e = {}) {
719
+ return o({
720
+ mutationFn: async (n) => await r.inboxItems.createInboxItemPerUser(n),
721
+ ...e
722
+ });
723
+ }
724
+ function Me(e, n = {}) {
725
+ return i({
726
+ queryKey: ["emailConversations", e == null ? void 0 : e.page, e == null ? void 0 : e.pageSize, e == null ? void 0 : e.tag, e == null ? void 0 : e.orderByCreatedDate],
727
+ queryFn: async () => await r.emailEngine.getAllConversations(e),
728
+ ...n
729
+ });
730
+ }
731
+ function _e(e, n = {}) {
732
+ return i({
733
+ queryKey: ["emailConversation", e],
734
+ queryFn: async () => await r.emailEngine.getConversation({
735
+ conversationId: e
736
+ }),
737
+ enabled: !!e,
738
+ ...n
739
+ });
740
+ }
741
+ function Le(e = {}) {
742
+ const n = l();
743
+ return o({
744
+ mutationFn: async (t) => await r.emailEngine.createConversation(t),
745
+ onSuccess: () => {
746
+ n.invalidateQueries({ queryKey: ["emailConversations"] });
747
+ },
748
+ ...e
749
+ });
750
+ }
751
+ function Ve(e = {}) {
752
+ const n = l();
753
+ return o({
754
+ mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
755
+ onSuccess: (t, u) => {
756
+ n.invalidateQueries({
757
+ queryKey: ["emailConversation", u.conversationId]
758
+ });
759
+ },
760
+ ...e
761
+ });
762
+ }
763
+ function He(e, n = {}) {
764
+ return i({
765
+ queryKey: [
766
+ "emailMessagesBySender",
767
+ e.senderId,
768
+ e.direction,
769
+ e.page,
770
+ e.pageSize,
771
+ e.orderByCreatedDate
772
+ ],
773
+ queryFn: async () => await r.emailEngine.getMessageBySenderId(e),
774
+ enabled: !!e.senderId,
775
+ ...n
776
+ });
777
+ }
778
+ function pe(e = {}) {
779
+ const n = c(async () => await r.tcn.getAuthUrl()), t = y({
780
+ queryKey: ["tcn", "authUrl"],
781
+ queryFn: n,
782
+ enabled: !0,
783
+ options: e
784
+ });
785
+ return i(t);
786
+ }
787
+ function Ne(e = {}) {
788
+ return o({
789
+ mutationFn: async ({ code: n }) => await r.tcn.exchangeCode(n),
790
+ ...e
791
+ });
792
+ }
793
+ function ze(e = {}) {
794
+ return o({
795
+ mutationFn: async ({ refresh_token: n }) => await r.tcn.refreshToken(n),
796
+ ...e
797
+ });
798
+ }
799
+ function Ye(e = {}) {
800
+ return o({
801
+ mutationFn: async ({ token: n }) => await r.tcn.getCurrentAgent(n),
802
+ ...e
803
+ });
804
+ }
805
+ function $e(e = {}) {
806
+ return o({
807
+ mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getAgentSkills(n, t),
808
+ ...e
809
+ });
810
+ }
811
+ function Je(e = {}) {
812
+ return o({
813
+ mutationFn: async ({ token: n, huntGroupSid: t, skills: u }) => await r.tcn.createSession(n, t, u),
814
+ ...e
815
+ });
816
+ }
817
+ function Xe(e = {}) {
818
+ return o({
819
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.keepAlive(n, t),
820
+ ...e
821
+ });
822
+ }
823
+ function Ze(e = {}) {
824
+ return o({
825
+ mutationFn: async ({ token: n }) => await r.tcn.agentGetStatus(n),
826
+ ...e
827
+ });
828
+ }
829
+ function je(e = {}) {
830
+ return o({
831
+ mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getHuntGroupAgentSettings(n, t),
832
+ ...e
833
+ });
834
+ }
835
+ function en(e = {}) {
836
+ return o({
837
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.dialManualPrepare(n, t),
838
+ ...e
839
+ });
840
+ }
841
+ function nn(e = {}) {
842
+ return o({
843
+ mutationFn: async ({ token: n, call: t }) => await r.tcn.processManualDial(n, t),
844
+ ...e
845
+ });
846
+ }
847
+ function tn(e = {}) {
848
+ return o({
849
+ mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: u, simpleCallData: a }) => await r.tcn.manualDialStart(
850
+ n,
851
+ t,
852
+ u,
853
+ a
854
+ ),
855
+ ...e
856
+ });
857
+ }
858
+ function rn(e = {}) {
859
+ return o({
860
+ mutationFn: async ({ token: n, sessionSid: t, reason: u }) => await r.tcn.agentDisconnect(n, t, u),
861
+ ...e
862
+ });
863
+ }
864
+ function un(e = {}) {
865
+ return o({
866
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentPause(n, t),
867
+ ...e
868
+ });
869
+ }
870
+ function on(e = {}) {
871
+ return o({
872
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentSetReady(n, t),
873
+ ...e
874
+ });
875
+ }
876
+ function an(e = {}) {
877
+ return o({
878
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentGetConnectedParty(n, t),
879
+ ...e
880
+ });
881
+ }
882
+ function sn(e = {}) {
883
+ return o({
884
+ mutationFn: async ({ token: n, callSid: t }) => await r.tcn.getCallData(n, t),
885
+ ...e
886
+ });
887
+ }
888
+ function cn(e = {}) {
889
+ return i({
890
+ queryKey: ["webcronWebhooks"],
891
+ queryFn: async () => await r.webcron.listWebhooks(),
892
+ ...e
893
+ });
894
+ }
895
+ function yn(e, n = {}) {
896
+ return i({
897
+ queryKey: ["webcronWebhook", e],
898
+ queryFn: async () => await r.webcron.getWebhook(e),
899
+ enabled: !!e,
900
+ ...n
901
+ });
902
+ }
903
+ function ln(e = {}) {
904
+ const n = l();
905
+ return o({
906
+ mutationFn: async (t) => await r.webcron.createWebhook(t),
907
+ onSuccess: () => {
908
+ n.invalidateQueries({ queryKey: ["webcronWebhooks"] });
909
+ },
910
+ ...e
911
+ });
912
+ }
913
+ function wn(e = {}) {
914
+ const n = l();
915
+ return o({
916
+ mutationFn: async (t) => await r.webcron.updateWebhook(t.id, t.data),
917
+ onSuccess: () => {
918
+ n.invalidateQueries({ queryKey: ["webcronWebhooks"] });
919
+ },
920
+ ...e
921
+ });
922
+ }
923
+ function bn(e = {}) {
924
+ const n = l();
925
+ return o({
926
+ mutationFn: async (t) => await r.webcron.deleteWebhook(t),
927
+ onSuccess: () => {
928
+ n.invalidateQueries({ queryKey: ["webcronWebhooks"] });
929
+ },
930
+ ...e
931
+ });
932
+ }
933
+ function gn(e = {}) {
934
+ return o({
935
+ mutationFn: async (n) => await r.webcron.testWebhook(n),
936
+ ...e
937
+ });
938
+ }
939
+ function qn(e, n, t = {}) {
940
+ return i({
941
+ queryKey: ["webcronWebhookExecutions", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
942
+ queryFn: async () => await r.webcron.getWebhookExecutions(e, n),
943
+ enabled: !!e,
944
+ ...t
945
+ });
946
+ }
947
+ function dn(e, n = {}) {
948
+ return i({
949
+ queryKey: ["webcronWebhookSchedules", e],
950
+ queryFn: async () => await r.webcron.getWebhookSchedules(e),
951
+ enabled: !!e,
952
+ ...n
953
+ });
954
+ }
955
+ function fn(e = {}) {
956
+ const n = l();
957
+ return o({
958
+ mutationFn: async (t) => await r.webcron.createWebhookSchedule(t.webhookId, t.data),
959
+ onSuccess: (t, u) => {
960
+ n.invalidateQueries({ queryKey: ["webcronWebhookSchedules", u.webhookId] });
961
+ },
962
+ ...e
963
+ });
964
+ }
965
+ function Fn(e, n = {}) {
966
+ return i({
967
+ queryKey: ["webcronSchedule", e],
968
+ queryFn: async () => await r.webcron.getSchedule(e),
969
+ enabled: !!e,
970
+ ...n
971
+ });
972
+ }
973
+ function hn(e = {}) {
974
+ const n = l();
975
+ return o({
976
+ mutationFn: async (t) => await r.webcron.updateSchedule(t.id, t.data),
977
+ onSuccess: (t, u) => {
978
+ n.invalidateQueries({ queryKey: ["webcronSchedule", u.id] });
979
+ },
980
+ ...e
981
+ });
982
+ }
983
+ function kn(e = {}) {
984
+ const n = l();
985
+ return o({
986
+ mutationFn: async (t) => await r.webcron.deleteSchedule(t),
987
+ onSuccess: () => {
988
+ n.invalidateQueries({ queryKey: ["webcronWebhookSchedules"] });
989
+ },
990
+ ...e
991
+ });
992
+ }
993
+ function mn(e = {}) {
994
+ const n = l();
995
+ return o({
996
+ mutationFn: async (t) => await r.webcron.pauseSchedule(t),
997
+ onSuccess: (t, u) => {
998
+ n.invalidateQueries({ queryKey: ["webcronSchedule", u] });
999
+ },
1000
+ ...e
1001
+ });
1002
+ }
1003
+ function Dn(e = {}) {
1004
+ const n = l();
1005
+ return o({
1006
+ mutationFn: async (t) => await r.webcron.resumeSchedule(t),
1007
+ onSuccess: (t, u) => {
1008
+ n.invalidateQueries({ queryKey: ["webcronSchedule", u] });
1009
+ },
1010
+ ...e
1011
+ });
1012
+ }
1013
+ function Tn(e = {}) {
1014
+ const n = l();
1015
+ return o({
1016
+ mutationFn: async (t) => await r.webcron.triggerSchedule(t),
1017
+ onSuccess: () => {
1018
+ n.invalidateQueries({ queryKey: ["webcronWebhookExecutions"] });
1019
+ },
1020
+ ...e
1021
+ });
1022
+ }
1023
+ function Sn(e, n = {}) {
1024
+ return i({
1025
+ queryKey: ["webcronExecutions", e == null ? void 0 : e.status, e == null ? void 0 : e.webhookId, e == null ? void 0 : e.limit, e == null ? void 0 : e.offset],
1026
+ queryFn: async () => await r.webcron.listExecutions(e),
1027
+ ...n
1028
+ });
1029
+ }
1030
+ function Kn(e, n = {}) {
1031
+ return i({
1032
+ queryKey: ["webcronExecution", e],
1033
+ queryFn: async () => await r.webcron.getExecution(e),
1034
+ enabled: !!e,
1035
+ ...n
1036
+ });
1037
+ }
1038
+ function Cn(e = {}) {
1039
+ const n = l();
1040
+ return o({
1041
+ mutationFn: async (t) => await r.webcron.retryExecution(t),
1042
+ onSuccess: () => {
1043
+ n.invalidateQueries({ queryKey: ["webcronExecutions"] });
1044
+ },
1045
+ ...e
1046
+ });
1047
+ }
1048
+ function En(e = {}) {
1049
+ return i({
1050
+ queryKey: ["webcronTasks"],
1051
+ queryFn: async () => await r.webcron.listTasks(),
1052
+ ...e
1053
+ });
1054
+ }
1055
+ function Bn(e = {}) {
1056
+ const n = l();
1057
+ return o({
1058
+ mutationFn: async (t) => await r.webcron.createTask(t),
1059
+ onSuccess: () => {
1060
+ n.invalidateQueries({ queryKey: ["webcronTasks"] });
1061
+ },
1062
+ ...e
1063
+ });
1064
+ }
1065
+ function Rn(e, n = {}) {
1066
+ return i({
1067
+ queryKey: ["webcronTask", e],
1068
+ queryFn: async () => await r.webcron.getTask(e),
1069
+ enabled: !!e,
1070
+ ...n
1071
+ });
1072
+ }
1073
+ function Wn(e = {}) {
1074
+ const n = l();
1075
+ return o({
1076
+ mutationFn: async (t) => await r.webcron.cancelTask(t),
1077
+ onSuccess: (t, u) => {
1078
+ n.invalidateQueries({ queryKey: ["webcronTask", u] }), n.invalidateQueries({ queryKey: ["webcronTasks"] });
1079
+ },
1080
+ ...e
1081
+ });
1082
+ }
1083
+ function vn(e = {}) {
1084
+ const n = l();
1085
+ return o({
1086
+ mutationFn: async (t) => await r.webcron.retryTask(t),
1087
+ onSuccess: () => {
1088
+ n.invalidateQueries({ queryKey: ["webcronTasks"] });
1089
+ },
1090
+ ...e
1091
+ });
1092
+ }
1093
+ function Gn(e = {}) {
1094
+ const n = l();
1095
+ return o({
1096
+ mutationFn: async (t) => await r.webcron.progressTask(t.id, t.data),
1097
+ onSuccess: (t, u) => {
1098
+ n.invalidateQueries({ queryKey: ["webcronTask", u.id] });
1099
+ },
1100
+ ...e
1101
+ });
1102
+ }
1103
+ function On(e = {}) {
1104
+ const n = l();
1105
+ return o({
1106
+ mutationFn: async (t) => await r.webcron.signalTask(t.id, t.data, t.branchId),
1107
+ onSuccess: (t, u) => {
1108
+ n.invalidateQueries({ queryKey: ["webcronTask", u.id] });
1109
+ },
1110
+ ...e
1111
+ });
1112
+ }
1113
+ function Pn(e = {}) {
1114
+ return i({
1115
+ queryKey: ["webcronBins"],
1116
+ queryFn: async () => await r.webcron.listBins(),
1117
+ ...e
1118
+ });
1119
+ }
1120
+ function An(e, n = {}) {
1121
+ return i({
1122
+ queryKey: ["webcronBin", e],
1123
+ queryFn: async () => await r.webcron.getBin(e),
1124
+ enabled: !!e,
1125
+ ...n
1126
+ });
1127
+ }
1128
+ function Un(e = {}) {
1129
+ const n = l();
1130
+ return o({
1131
+ mutationFn: async (t) => await r.webcron.createBin(t),
1132
+ onSuccess: () => {
1133
+ n.invalidateQueries({ queryKey: ["webcronBins"] });
1134
+ },
1135
+ ...e
1136
+ });
1137
+ }
1138
+ function xn(e = {}) {
1139
+ const n = l();
1140
+ return o({
1141
+ mutationFn: async (t) => await r.webcron.deleteBin(t),
1142
+ onSuccess: () => {
1143
+ n.invalidateQueries({ queryKey: ["webcronBins"] });
1144
+ },
1145
+ ...e
1146
+ });
1147
+ }
1148
+ function Qn(e, n, t = {}) {
1149
+ return i({
1150
+ queryKey: ["webcronBinRequests", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
1151
+ queryFn: async () => await r.webcron.getBinRequests(e, n),
1152
+ enabled: !!e,
1153
+ ...t
1154
+ });
1155
+ }
1156
+ function In(e = {}) {
1157
+ const n = l();
1158
+ return o({
1159
+ mutationFn: async (t) => await r.webcron.clearBinRequests(t),
1160
+ onSuccess: (t, u) => {
1161
+ n.invalidateQueries({ queryKey: ["webcronBinRequests", u] });
1162
+ },
1163
+ ...e
1164
+ });
1165
+ }
1166
+ function Mn(e = {}) {
1167
+ return o({
1168
+ mutationFn: async (n) => await r.webcron.triggerWorkflowById(
1169
+ n.id,
1170
+ n.data
1171
+ ),
1172
+ ...e
1173
+ });
1174
+ }
2
1175
  export {
3
- a as InputTableColumnType,
4
- u as InputTableError,
5
- t as ReactQueryDevtools,
6
- o as WorkflowStatus,
7
- n as copaApi,
8
- b as copaGetConfig,
9
- r as copaInputTableDb,
10
- i as copaSetConfig,
11
- l as copaTailwindConfig,
12
- c as copaUtils,
13
- T as reactQuery,
14
- k as useCancelTask,
15
- d as useCheckSubscriptionStatus,
16
- G as useClearBinRequests,
17
- p as useCreateAuditLog,
18
- h as useCreateConversation,
19
- C as useCreateInboxItemPerUser,
20
- I as useCreateInspectionBin,
21
- S as useCreateOrUpdateForm,
22
- g as useCreateStatementRun,
23
- m as useCreateTask,
24
- D as useCreateThread,
25
- R as useCreateWebhook,
26
- y as useCreateWebhookSchedule,
27
- W as useDataset,
28
- B as useDatasetSample,
29
- A as useDeleteComment,
30
- U as useDeleteInspectionBin,
31
- w as useDeleteRow,
32
- f as useDeleteSchedule,
33
- P as useDeleteWebhook,
34
- F as useDocumentPermissions,
35
- x as useFileDownload,
36
- M as useFileUpload,
37
- v as useFilterMessagesBySenderId,
38
- E as useGetAllConversations,
39
- L as useGetAllHttpTriggers,
40
- H as useGetAllInboxItems,
41
- V as useGetAllRecon,
42
- q as useGetAllTemplatedPipelines,
43
- Q as useGetAllUsers,
44
- K as useGetAuditLogs,
45
- O as useGetBinRequests,
46
- j as useGetCommentsByThreadId,
47
- z as useGetConversation,
48
- J as useGetDatasets,
49
- N as useGetExecution,
50
- X as useGetFileUrlByFileId,
51
- Y as useGetFormById,
52
- Z as useGetFormData,
53
- _ as useGetFormSchema,
54
- $ as useGetInputTables,
55
- ee as useGetInspectionBin,
56
- se as useGetPublishedWorkbookById,
57
- ae as useGetRunResultById,
58
- ue as useGetRunsByViewId,
59
- te as useGetSchedule,
60
- oe as useGetStatementData,
61
- ne as useGetTableById,
62
- be as useGetTask,
63
- re as useGetTaskDetails,
64
- ie as useGetViewById,
65
- le as useGetViewsBySheetId,
66
- ce as useGetWebhook,
67
- Te as useGetWebhookExecutions,
68
- ke as useGetWebhookSchedules,
69
- de as useGetWorkbookDetails,
70
- Ge as useGetWorkbooksByType,
71
- pe as useGetWorkflowInstanceStatusById,
72
- he as useGetWorksheets,
73
- Ce as useGetWorksheetsByType,
74
- Ie as useInputTable,
75
- Se as useInsertRow,
76
- ge as useListExecutions,
77
- me as useListInspectionBins,
78
- De as useListTasks,
79
- Re as useListWebhooks,
80
- ye as useMarkItemAsRead,
81
- We as useMarkItemAsUnread,
82
- Be as useMarkTaskDone,
83
- Ae as useMetric,
84
- Ue as usePauseSchedule,
85
- we as usePostComment,
86
- fe as usePublishWorkbook,
87
- Pe as useReassignTask,
88
- Fe as useReplyToConversation,
89
- xe as useResumeSchedule,
90
- Me as useRetryExecution,
91
- ve as useRetryTask,
92
- Ee as useRows,
93
- Le as useRunDefinition,
94
- He as useRunPublishedDefinition,
95
- Ve as useRunRecon,
96
- qe as useRunSampleDefinition,
97
- Qe as useSaveWorkbook,
98
- Ke as useSubscribeUser,
99
- Oe as useTaskProgress,
100
- je as useTaskSignal,
101
- ze as useTcnAgentDisconnect,
102
- Je as useTcnAgentGetStatus,
103
- Ne as useTcnAgentPause,
104
- Xe as useTcnAgentSetReady,
105
- Ye as useTcnAgentSkills,
106
- Ze as useTcnAuthUrl,
107
- _e as useTcnCallData,
108
- $e as useTcnConnectedParty,
109
- es as useTcnCreateSession,
110
- ss as useTcnCurrentAgent,
111
- as as useTcnDialManualPrepare,
112
- us as useTcnExchangeCode,
113
- ts as useTcnHuntGroupSettings,
114
- os as useTcnKeepAlive,
115
- ns as useTcnManualDialStart,
116
- bs as useTcnProcessManualDial,
117
- rs as useTcnRefreshToken,
118
- is as useTestWebhook,
119
- ls as useTriggerHttpWorkflow,
120
- cs as useTriggerSchedule,
121
- Ts as useTriggerWorkflow,
122
- ks as useTriggerWorkflowById,
123
- ds as useUnsubscribeUser,
124
- Gs as useUpdateComment,
125
- ps as useUpdateRow,
126
- hs as useUpdateSchedule,
127
- Cs as useUpdateWebhook,
128
- Is as useUser,
129
- Ss as useUserDetails
1176
+ Hn as ReactQueryDevtools,
1177
+ E as WorkflowStatus,
1178
+ v as reactQuery,
1179
+ Wn as useCancelTask,
1180
+ L as useCheckSubscriptionStatus,
1181
+ In as useClearBinRequests,
1182
+ Re as useCreateAuditLog,
1183
+ Le as useCreateConversation,
1184
+ Ie as useCreateInboxItemPerUser,
1185
+ Un as useCreateInspectionBin,
1186
+ Ee as useCreateOrUpdateForm,
1187
+ V as useCreateStatementRun,
1188
+ Bn as useCreateTask,
1189
+ A as useCreateThread,
1190
+ ln as useCreateWebhook,
1191
+ fn as useCreateWebhookSchedule,
1192
+ H as useDataset,
1193
+ P as useDatasetSample,
1194
+ I as useDeleteComment,
1195
+ xn as useDeleteInspectionBin,
1196
+ ce as useDeleteRow,
1197
+ kn as useDeleteSchedule,
1198
+ bn as useDeleteWebhook,
1199
+ de as useDocumentPermissions,
1200
+ Fe as useFileDownload,
1201
+ fe as useFileUpload,
1202
+ He as useFilterMessagesBySenderId,
1203
+ Me as useGetAllConversations,
1204
+ Oe as useGetAllHttpTriggers,
1205
+ Ue as useGetAllInboxItems,
1206
+ ve as useGetAllRecon,
1207
+ We as useGetAllTemplatedPipelines,
1208
+ Ge as useGetAllUsers,
1209
+ Be as useGetAuditLogs,
1210
+ Qn as useGetBinRequests,
1211
+ U as useGetCommentsByThreadId,
1212
+ _e as useGetConversation,
1213
+ p as useGetDatasets,
1214
+ Kn as useGetExecution,
1215
+ N as useGetFileUrlByFileId,
1216
+ Ce as useGetFormById,
1217
+ Ke as useGetFormData,
1218
+ Se as useGetFormSchema,
1219
+ oe as useGetInputTables,
1220
+ An as useGetInspectionBin,
1221
+ z as useGetPublishedWorkbookById,
1222
+ Y as useGetRunResultById,
1223
+ $ as useGetRunsByViewId,
1224
+ Fn as useGetSchedule,
1225
+ J as useGetStatementData,
1226
+ X as useGetTableById,
1227
+ Rn as useGetTask,
1228
+ he as useGetTaskDetails,
1229
+ Z as useGetViewById,
1230
+ j as useGetViewsBySheetId,
1231
+ yn as useGetWebhook,
1232
+ qn as useGetWebhookExecutions,
1233
+ dn as useGetWebhookSchedules,
1234
+ ke as useGetWorkbookDetails,
1235
+ ee as useGetWorkbooksByType,
1236
+ ne as useGetWorkflowInstanceStatusById,
1237
+ te as useGetWorksheets,
1238
+ re as useGetWorksheetsByType,
1239
+ ue as useInputTable,
1240
+ ie as useInsertRow,
1241
+ Sn as useListExecutions,
1242
+ Pn as useListInspectionBins,
1243
+ En as useListTasks,
1244
+ cn as useListWebhooks,
1245
+ xe as useMarkItemAsRead,
1246
+ Qe as useMarkItemAsUnread,
1247
+ Pe as useMarkTaskDone,
1248
+ O as useMetric,
1249
+ mn as usePauseSchedule,
1250
+ x as usePostComment,
1251
+ De as usePublishWorkbook,
1252
+ Ae as useReassignTask,
1253
+ Ve as useReplyToConversation,
1254
+ Dn as useResumeSchedule,
1255
+ Cn as useRetryExecution,
1256
+ vn as useRetryTask,
1257
+ ae as useRows,
1258
+ ye as useRunDefinition,
1259
+ le as useRunPublishedDefinition,
1260
+ Te as useRunRecon,
1261
+ we as useRunSampleDefinition,
1262
+ me as useSaveWorkbook,
1263
+ M as useSubscribeUser,
1264
+ Gn as useTaskProgress,
1265
+ On as useTaskSignal,
1266
+ rn as useTcnAgentDisconnect,
1267
+ Ze as useTcnAgentGetStatus,
1268
+ un as useTcnAgentPause,
1269
+ on as useTcnAgentSetReady,
1270
+ $e as useTcnAgentSkills,
1271
+ pe as useTcnAuthUrl,
1272
+ sn as useTcnCallData,
1273
+ an as useTcnConnectedParty,
1274
+ Je as useTcnCreateSession,
1275
+ Ye as useTcnCurrentAgent,
1276
+ en as useTcnDialManualPrepare,
1277
+ Ne as useTcnExchangeCode,
1278
+ je as useTcnHuntGroupSettings,
1279
+ Xe as useTcnKeepAlive,
1280
+ tn as useTcnManualDialStart,
1281
+ nn as useTcnProcessManualDial,
1282
+ ze as useTcnRefreshToken,
1283
+ gn as useTestWebhook,
1284
+ be as useTriggerHttpWorkflow,
1285
+ Tn as useTriggerSchedule,
1286
+ ge as useTriggerWorkflow,
1287
+ Mn as useTriggerWorkflowById,
1288
+ _ as useUnsubscribeUser,
1289
+ Q as useUpdateComment,
1290
+ se as useUpdateRow,
1291
+ hn as useUpdateSchedule,
1292
+ wn as useUpdateWebhook,
1293
+ B as useUser,
1294
+ qe as useUserDetails
130
1295
  };