@bluecopa/react 0.1.79 → 0.1.80

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
@@ -2,7 +2,7 @@ import { useQuery as i, useMutation as o, useQueryClient as l } from "@tanstack/
2
2
  import * as G from "@tanstack/react-query";
3
3
  import { copaApi as r, copaGetConfig as S } from "@bluecopa/core";
4
4
  export * from "@bluecopa/core";
5
- import { ReactQueryDevtools as Jn } from "@tanstack/react-query-devtools";
5
+ import { ReactQueryDevtools as Xn } from "@tanstack/react-query-devtools";
6
6
  const D = {
7
7
  enabled: !0,
8
8
  staleTime: 1e3 * 60 * 5,
@@ -21,7 +21,7 @@ function K(e = {}) {
21
21
  function C(e = 5e3) {
22
22
  return new Promise((n) => setTimeout(n, e));
23
23
  }
24
- function k(e, n) {
24
+ function m(e, n) {
25
25
  const t = Object.entries(e).filter(([u, a]) => !a).map(([u]) => u);
26
26
  if (t.length > 0)
27
27
  throw new Error(
@@ -84,7 +84,7 @@ function A(e = {}) {
84
84
  });
85
85
  }
86
86
  function U(e, n = {}) {
87
- const t = n.enabled !== !1 && !!e, u = c(async () => (k(
87
+ const t = n.enabled !== !1 && !!e, u = c(async () => (m(
88
88
  { threadId: e },
89
89
  "Thread ID is required to fetch comments"
90
90
  ), await r.chat.getCommentsByThreadId(e))), a = y({
@@ -141,7 +141,7 @@ function _(e = {}) {
141
141
  });
142
142
  }
143
143
  function p(e, n, t = {}) {
144
- const u = t.enabled !== !1 && !!e && !!n, a = c(async () => (k(
144
+ const u = t.enabled !== !1 && !!e && !!n, a = c(async () => (m(
145
145
  { userId: e, threadId: n },
146
146
  "User ID and Thread ID are required to check subscription status"
147
147
  ), await r.chat.checkSubscriptionStatus(e, n))), s = y({
@@ -173,7 +173,7 @@ function H(e, n = {}) {
173
173
  });
174
174
  return i(a);
175
175
  }
176
- function V() {
176
+ function N() {
177
177
  const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), n = y({
178
178
  queryKey: ["datasetData"],
179
179
  queryFn: e,
@@ -181,7 +181,7 @@ function V() {
181
181
  });
182
182
  return i(n);
183
183
  }
184
- function N(e, n, t, u = {}) {
184
+ function V(e, n, t, u = {}) {
185
185
  const a = !!e && !!n && !!t, s = c(async () => {
186
186
  if (!e || !n || !t)
187
187
  throw new Error("Key, contentType, and method are required");
@@ -199,6 +199,23 @@ function N(e, n, t, u = {}) {
199
199
  return i(w);
200
200
  }
201
201
  function z(e, n, t = {}) {
202
+ const u = e == null ? void 0 : e.trim(), a = n == null ? void 0 : n.trim(), s = !!(u && a), w = c(async () => await r.files.getFileByFolderIdAndName({
203
+ folderId: u,
204
+ name: a
205
+ })), g = y({
206
+ queryKey: [
207
+ "file",
208
+ "getFileByFolderIdAndName",
209
+ u,
210
+ a
211
+ ],
212
+ queryFn: w,
213
+ enabled: s,
214
+ options: t
215
+ });
216
+ return i(g);
217
+ }
218
+ function Y(e, n, t = {}) {
202
219
  const u = !!e && !!n, a = c(async () => {
203
220
  if (!e || !n)
204
221
  throw new Error("Type and ID are required");
@@ -211,7 +228,7 @@ function z(e, n, t = {}) {
211
228
  });
212
229
  return i(s);
213
230
  }
214
- function Y(e, n = {}) {
231
+ function $(e, n = {}) {
215
232
  const t = !!e, u = c(async () => {
216
233
  if (!e)
217
234
  throw new Error("Run ID is required");
@@ -224,7 +241,7 @@ function Y(e, n = {}) {
224
241
  });
225
242
  return i(a);
226
243
  }
227
- function $(e, n = {}) {
244
+ function J(e, n = {}) {
228
245
  const t = !!e, u = c(async () => {
229
246
  if (!e)
230
247
  throw new Error("View ID is required");
@@ -237,7 +254,7 @@ function $(e, n = {}) {
237
254
  });
238
255
  return i(a);
239
256
  }
240
- function J(e, n, t, u = {}) {
257
+ function X(e, n, t, u = {}) {
241
258
  const a = !!e, s = c(async () => {
242
259
  if (!e)
243
260
  throw new Error("Statement ID is required");
@@ -254,7 +271,7 @@ function J(e, n, t, u = {}) {
254
271
  });
255
272
  return i(w);
256
273
  }
257
- function X(e, n = {}) {
274
+ function Z(e, n = {}) {
258
275
  const t = !!e, u = c(async () => {
259
276
  if (!e)
260
277
  throw new Error("Table ID is required");
@@ -267,7 +284,7 @@ function X(e, n = {}) {
267
284
  });
268
285
  return i(a);
269
286
  }
270
- function Z(e, n = {}) {
287
+ function j(e, n = {}) {
271
288
  const t = !!e, u = c(async () => {
272
289
  if (!e)
273
290
  throw new Error("View ID is required");
@@ -280,7 +297,7 @@ function Z(e, n = {}) {
280
297
  });
281
298
  return i(a);
282
299
  }
283
- function j(e, n = {}) {
300
+ function ee(e, n = {}) {
284
301
  const t = !!e, u = c(async () => {
285
302
  if (!e)
286
303
  throw new Error("Sheet ID is required");
@@ -293,7 +310,7 @@ function j(e, n = {}) {
293
310
  });
294
311
  return i(a);
295
312
  }
296
- function ee(e, n = {}) {
313
+ function ne(e, n = {}) {
297
314
  const t = !!e, u = c(async () => {
298
315
  if (!e)
299
316
  throw new Error("Type is required");
@@ -307,13 +324,13 @@ function ee(e, n = {}) {
307
324
  return i(a);
308
325
  }
309
326
  var E = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(E || {});
310
- function ne(e = {}) {
327
+ function te(e = {}) {
311
328
  return o({
312
329
  mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(n)),
313
330
  ...e
314
331
  });
315
332
  }
316
- function te(e, n = {}) {
333
+ function re(e, n = {}) {
317
334
  const t = !!e && e.length > 0, u = c(async () => {
318
335
  if (!e || e.length === 0)
319
336
  throw new Error("Worksheet IDs are required");
@@ -326,7 +343,7 @@ function te(e, n = {}) {
326
343
  });
327
344
  return i(a);
328
345
  }
329
- function re(e, n = {}) {
346
+ function ue(e, n = {}) {
330
347
  const t = !!e, u = c(async () => {
331
348
  if (!e)
332
349
  throw new Error("Type is required");
@@ -339,7 +356,7 @@ function re(e, n = {}) {
339
356
  });
340
357
  return i(a);
341
358
  }
342
- function ue(e, n, t = {}) {
359
+ function oe(e, n, t = {}) {
343
360
  const {
344
361
  limitParams: u = { limit: 2e3, limitFrom: "top" },
345
362
  pageParams: a,
@@ -365,7 +382,7 @@ function ue(e, n, t = {}) {
365
382
  });
366
383
  return i(f);
367
384
  }
368
- function oe() {
385
+ function ae() {
369
386
  const e = c(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), n = y({
370
387
  queryKey: ["inputTableData"],
371
388
  queryFn: e,
@@ -373,7 +390,7 @@ function oe() {
373
390
  });
374
391
  return i(n);
375
392
  }
376
- function ae(e, n = {}) {
393
+ function ie(e, n = {}) {
377
394
  const t = [
378
395
  "enabled",
379
396
  "staleTime",
@@ -386,19 +403,19 @@ function ae(e, n = {}) {
386
403
  Object.keys(g).forEach((d) => {
387
404
  t.includes(d) ? b[d] = g[d] : q[d] = g[d];
388
405
  });
389
- const f = b.enabled !== !1 && !!e, m = c(async () => {
406
+ const f = b.enabled !== !1 && !!e, k = c(async () => {
390
407
  if (!e)
391
408
  throw new Error("Table ID is required");
392
409
  return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, q);
393
410
  }), T = y({
394
411
  queryKey: ["inputTableRows", e, n],
395
- queryFn: m,
412
+ queryFn: k,
396
413
  enabled: f,
397
414
  options: b
398
415
  });
399
416
  return i(T);
400
417
  }
401
- function ie(e = {}) {
418
+ function se(e = {}) {
402
419
  const n = l();
403
420
  return o({
404
421
  mutationFn: async (t) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(t.tableId, t.rowData)),
@@ -415,7 +432,7 @@ function ie(e = {}) {
415
432
  ...e
416
433
  });
417
434
  }
418
- function se(e = {}) {
435
+ function ce(e = {}) {
419
436
  const n = l();
420
437
  return o({
421
438
  mutationFn: async (t) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
@@ -436,7 +453,7 @@ function se(e = {}) {
436
453
  ...e
437
454
  });
438
455
  }
439
- function ce(e = {}) {
456
+ function ye(e = {}) {
440
457
  const n = l();
441
458
  return o({
442
459
  mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
@@ -457,31 +474,31 @@ function ce(e = {}) {
457
474
  ...e
458
475
  });
459
476
  }
460
- function ye(e = {}) {
477
+ function le(e = {}) {
461
478
  return o({
462
479
  mutationFn: async (n) => (console.log("Running definition..."), await r.definition.runDefinition(n)),
463
480
  ...e
464
481
  });
465
482
  }
466
- function le(e = {}) {
483
+ function we(e = {}) {
467
484
  return o({
468
485
  mutationFn: async (n) => await r.definition.runPublishedDefinition(n),
469
486
  ...e
470
487
  });
471
488
  }
472
- function we(e = {}) {
489
+ function ge(e = {}) {
473
490
  return o({
474
491
  mutationFn: async (n) => await r.definition.runSampleDefinition(n),
475
492
  ...e
476
493
  });
477
494
  }
478
- function ge(e = {}) {
495
+ function be(e = {}) {
479
496
  return o({
480
497
  mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(n)),
481
498
  ...e
482
499
  });
483
500
  }
484
- function be(e = {}) {
501
+ function de(e = {}) {
485
502
  return o({
486
503
  mutationFn: async (n) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(n)),
487
504
  ...e
@@ -496,10 +513,10 @@ function B(e = {}) {
496
513
  });
497
514
  return i(u);
498
515
  }
499
- const de = B, R = ["Owner", "Editor", "Viewer", "ReadOnly"];
516
+ const qe = B, R = ["Owner", "Editor", "Viewer", "ReadOnly"];
500
517
  var h;
501
518
  const F = (h = r.permissions) == null ? void 0 : h.getPermissions;
502
- function qe(e, n, t = {}) {
519
+ function fe(e, n, t = {}) {
503
520
  const u = t.enabled !== !1 && !!(e != null && e.trim()), a = c(
504
521
  async () => {
505
522
  if (!(e != null && e.trim()))
@@ -531,13 +548,13 @@ function qe(e, n, t = {}) {
531
548
  });
532
549
  return i(s);
533
550
  }
534
- function fe(e = {}) {
551
+ function Fe(e = {}) {
535
552
  return o({
536
553
  mutationFn: async (n) => (console.log("Uploading file..."), await r.files.fileUpload(n)),
537
554
  ...e
538
555
  });
539
556
  }
540
- function Fe({
557
+ function he({
541
558
  fileId: e,
542
559
  contentType: n = "application/json",
543
560
  method: t = "GET"
@@ -554,7 +571,7 @@ function Fe({
554
571
  });
555
572
  return i(w);
556
573
  }
557
- function he(e, n = {}) {
574
+ function me(e, n = {}) {
558
575
  const t = !!e, u = c(async () => {
559
576
  if (!e)
560
577
  throw new Error("Task ID is required");
@@ -580,25 +597,25 @@ function ke(e, n = {}) {
580
597
  });
581
598
  return i(a);
582
599
  }
583
- function me(e = {}) {
600
+ function Te(e = {}) {
584
601
  return o({
585
602
  mutationFn: async (n) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(n)),
586
603
  ...e
587
604
  });
588
605
  }
589
- function Te(e = {}) {
606
+ function Se(e = {}) {
590
607
  return o({
591
608
  mutationFn: async (n) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(n)),
592
609
  ...e
593
610
  });
594
611
  }
595
- function Se(e = {}) {
612
+ function De(e = {}) {
596
613
  return o({
597
614
  mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
598
615
  ...e
599
616
  });
600
617
  }
601
- function De(e, n, t = {}) {
618
+ function Ke(e, n, t = {}) {
602
619
  const u = !!e && !!n, a = c(async () => {
603
620
  if (!e || !n)
604
621
  throw new Error("Form instance ID and revision are required");
@@ -613,7 +630,7 @@ function De(e, n, t = {}) {
613
630
  })
614
631
  );
615
632
  }
616
- function Ke(e, n = {}) {
633
+ function Ce(e, n = {}) {
617
634
  const t = !!e, u = c(async () => {
618
635
  if (!e)
619
636
  throw new Error("Form ID is required");
@@ -626,7 +643,7 @@ function Ke(e, n = {}) {
626
643
  });
627
644
  return i(a);
628
645
  }
629
- function Ce(e, n = {}) {
646
+ function Ee(e, n = {}) {
630
647
  return i({
631
648
  queryKey: ["form", e],
632
649
  queryFn: async () => {
@@ -638,65 +655,65 @@ function Ce(e, n = {}) {
638
655
  ...n
639
656
  });
640
657
  }
641
- function Ee(e = {}) {
658
+ function Be(e = {}) {
642
659
  return o({
643
660
  mutationFn: async (n) => await r.form.createOrUpdateForm(n),
644
661
  ...e
645
662
  });
646
663
  }
647
- function Be(e = {}) {
664
+ function Re(e = {}) {
648
665
  return o({
649
666
  mutationFn: async (n) => await r.audit.getAuditLogs(n),
650
667
  ...e
651
668
  });
652
669
  }
653
- function Re(e = {}) {
670
+ function We(e = {}) {
654
671
  return o({
655
672
  mutationFn: async (n) => await r.audit.createAuditLog(n),
656
673
  ...e
657
674
  });
658
675
  }
659
- function We(e = {}) {
676
+ function Ge(e = {}) {
660
677
  return i({
661
678
  queryKey: ["templatedPipelines"],
662
679
  queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
663
680
  ...e
664
681
  });
665
682
  }
666
- function Ge(e = {}) {
683
+ function Oe(e = {}) {
667
684
  return i({
668
685
  queryKey: ["reconWorkflows"],
669
686
  queryFn: async () => await r.recon.getAllReconWorkflows(),
670
687
  ...e
671
688
  });
672
689
  }
673
- function Oe(e = {}) {
690
+ function ve(e = {}) {
674
691
  return i({
675
692
  queryKey: ["users"],
676
693
  queryFn: async () => await r.user.getAllUsers(),
677
694
  ...e
678
695
  });
679
696
  }
680
- function ve(e = {}) {
697
+ function Pe(e = {}) {
681
698
  return i({
682
699
  queryKey: ["httpTriggers"],
683
700
  queryFn: async () => await r.workflow.getAllHttpTriggers(),
684
701
  ...e
685
702
  });
686
703
  }
687
- function Pe(e = {}) {
704
+ function Ae(e = {}) {
688
705
  return o({
689
706
  mutationFn: async (n) => await r.process.markTaskDone(n),
690
707
  ...e
691
708
  });
692
709
  }
693
- function Ae(e = {}) {
710
+ function Ue(e = {}) {
694
711
  return o({
695
712
  mutationFn: async (n) => await r.process.reassignTask(n),
696
713
  ...e
697
714
  });
698
715
  }
699
- function Ue(e, n = {}) {
716
+ function Qe(e, n = {}) {
700
717
  return i({
701
718
  queryKey: ["processTriggers", e],
702
719
  queryFn: async () => await r.process.getTriggersBySheet(e),
@@ -704,7 +721,7 @@ function Ue(e, n = {}) {
704
721
  ...n
705
722
  });
706
723
  }
707
- function Qe(e = {}) {
724
+ function xe(e = {}) {
708
725
  const n = l();
709
726
  return o({
710
727
  mutationFn: async (t) => await r.process.registerProcessTrigger(t),
@@ -716,7 +733,7 @@ function Qe(e = {}) {
716
733
  ...e
717
734
  });
718
735
  }
719
- function xe(e = {}) {
736
+ function Ie(e = {}) {
720
737
  const n = l();
721
738
  return o({
722
739
  mutationFn: async ({ id: t }) => await r.process.deleteProcessTrigger(t),
@@ -728,39 +745,39 @@ function xe(e = {}) {
728
745
  ...e
729
746
  });
730
747
  }
731
- function Ie(e = {}, n = {}) {
748
+ function Me(e = {}, n = {}) {
732
749
  return i({
733
750
  queryKey: ["inboxItems", "all", e.page, e.perPage],
734
751
  queryFn: async () => await r.inboxItems.getAllInboxItems(e),
735
752
  ...n
736
753
  });
737
754
  }
738
- function Me(e = {}) {
755
+ function _e(e = {}) {
739
756
  return o({
740
757
  mutationFn: async (n) => await r.inboxItems.markItemAsRead(n),
741
758
  ...e
742
759
  });
743
760
  }
744
- function _e(e = {}) {
761
+ function pe(e = {}) {
745
762
  return o({
746
763
  mutationFn: async (n) => await r.inboxItems.markItemAsUnread(n),
747
764
  ...e
748
765
  });
749
766
  }
750
- function pe(e = {}) {
767
+ function Le(e = {}) {
751
768
  return o({
752
769
  mutationFn: async (n) => await r.inboxItems.createInboxItemPerUser(n),
753
770
  ...e
754
771
  });
755
772
  }
756
- function Le(e, n = {}) {
773
+ function He(e, n = {}) {
757
774
  return i({
758
775
  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],
759
776
  queryFn: async () => await r.emailEngine.getAllConversations(e),
760
777
  ...n
761
778
  });
762
779
  }
763
- function He(e, n = {}) {
780
+ function Ne(e, n = {}) {
764
781
  return i({
765
782
  queryKey: ["emailConversation", e],
766
783
  queryFn: async () => await r.emailEngine.getConversation({
@@ -780,7 +797,7 @@ function Ve(e = {}) {
780
797
  ...e
781
798
  });
782
799
  }
783
- function Ne(e = {}) {
800
+ function ze(e = {}) {
784
801
  const n = l();
785
802
  return o({
786
803
  mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
@@ -792,7 +809,7 @@ function Ne(e = {}) {
792
809
  ...e
793
810
  });
794
811
  }
795
- function ze(e, n = {}) {
812
+ function Ye(e, n = {}) {
796
813
  return i({
797
814
  queryKey: [
798
815
  "emailMessagesBySender",
@@ -807,7 +824,7 @@ function ze(e, n = {}) {
807
824
  ...n
808
825
  });
809
826
  }
810
- function Ye(e = {}) {
827
+ function $e(e = {}) {
811
828
  const n = c(async () => await r.tcn.getAuthUrl()), t = y({
812
829
  queryKey: ["tcn", "authUrl"],
813
830
  queryFn: n,
@@ -816,67 +833,67 @@ function Ye(e = {}) {
816
833
  });
817
834
  return i(t);
818
835
  }
819
- function $e(e = {}) {
836
+ function Je(e = {}) {
820
837
  return o({
821
838
  mutationFn: async ({ code: n }) => await r.tcn.exchangeCode(n),
822
839
  ...e
823
840
  });
824
841
  }
825
- function Je(e = {}) {
842
+ function Xe(e = {}) {
826
843
  return o({
827
844
  mutationFn: async ({ refresh_token: n }) => await r.tcn.refreshToken(n),
828
845
  ...e
829
846
  });
830
847
  }
831
- function Xe(e = {}) {
848
+ function Ze(e = {}) {
832
849
  return o({
833
850
  mutationFn: async ({ token: n }) => await r.tcn.getCurrentAgent(n),
834
851
  ...e
835
852
  });
836
853
  }
837
- function Ze(e = {}) {
854
+ function je(e = {}) {
838
855
  return o({
839
856
  mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getAgentSkills(n, t),
840
857
  ...e
841
858
  });
842
859
  }
843
- function je(e = {}) {
860
+ function en(e = {}) {
844
861
  return o({
845
862
  mutationFn: async ({ token: n, huntGroupSid: t, skills: u }) => await r.tcn.createSession(n, t, u),
846
863
  ...e
847
864
  });
848
865
  }
849
- function en(e = {}) {
866
+ function nn(e = {}) {
850
867
  return o({
851
868
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.keepAlive(n, t),
852
869
  ...e
853
870
  });
854
871
  }
855
- function nn(e = {}) {
872
+ function tn(e = {}) {
856
873
  return o({
857
874
  mutationFn: async ({ token: n }) => await r.tcn.agentGetStatus(n),
858
875
  ...e
859
876
  });
860
877
  }
861
- function tn(e = {}) {
878
+ function rn(e = {}) {
862
879
  return o({
863
880
  mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getHuntGroupAgentSettings(n, t),
864
881
  ...e
865
882
  });
866
883
  }
867
- function rn(e = {}) {
884
+ function un(e = {}) {
868
885
  return o({
869
886
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.dialManualPrepare(n, t),
870
887
  ...e
871
888
  });
872
889
  }
873
- function un(e = {}) {
890
+ function on(e = {}) {
874
891
  return o({
875
892
  mutationFn: async ({ token: n, call: t }) => await r.tcn.processManualDial(n, t),
876
893
  ...e
877
894
  });
878
895
  }
879
- function on(e = {}) {
896
+ function an(e = {}) {
880
897
  return o({
881
898
  mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: u, simpleCallData: a }) => await r.tcn.manualDialStart(
882
899
  n,
@@ -887,56 +904,56 @@ function on(e = {}) {
887
904
  ...e
888
905
  });
889
906
  }
890
- function an(e = {}) {
907
+ function sn(e = {}) {
891
908
  return o({
892
909
  mutationFn: async ({ token: n, sessionSid: t, reason: u }) => await r.tcn.agentDisconnect(n, t, u),
893
910
  ...e
894
911
  });
895
912
  }
896
- function sn(e = {}) {
913
+ function cn(e = {}) {
897
914
  return o({
898
915
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentPause(n, t),
899
916
  ...e
900
917
  });
901
918
  }
902
- function cn(e = {}) {
919
+ function yn(e = {}) {
903
920
  return o({
904
921
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentSetReady(n, t),
905
922
  ...e
906
923
  });
907
924
  }
908
- function yn(e = {}) {
925
+ function ln(e = {}) {
909
926
  return o({
910
927
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentGetConnectedParty(n, t),
911
928
  ...e
912
929
  });
913
930
  }
914
- function ln(e = {}) {
931
+ function wn(e = {}) {
915
932
  return o({
916
933
  mutationFn: async ({ token: n, callSid: t }) => await r.tcn.getCallData(n, t),
917
934
  ...e
918
935
  });
919
936
  }
920
- function wn(e = {}) {
937
+ function gn(e = {}) {
921
938
  return o({
922
939
  mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentPutCallOnHold(n, t, u),
923
940
  ...e
924
941
  });
925
942
  }
926
- function gn(e = {}) {
943
+ function bn(e = {}) {
927
944
  return o({
928
945
  mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentGetCallFromHold(n, t, u),
929
946
  ...e
930
947
  });
931
948
  }
932
- function bn(e = {}) {
949
+ function dn(e = {}) {
933
950
  return i({
934
951
  queryKey: ["webcronWebhooks"],
935
952
  queryFn: async () => await r.webcron.listWebhooks(),
936
953
  ...e
937
954
  });
938
955
  }
939
- function dn(e, n = {}) {
956
+ function qn(e, n = {}) {
940
957
  return i({
941
958
  queryKey: ["webcronWebhook", e],
942
959
  queryFn: async () => await r.webcron.getWebhook(e),
@@ -944,7 +961,7 @@ function dn(e, n = {}) {
944
961
  ...n
945
962
  });
946
963
  }
947
- function qn(e = {}) {
964
+ function fn(e = {}) {
948
965
  const n = l();
949
966
  return o({
950
967
  mutationFn: async (t) => await r.webcron.createWebhook(t),
@@ -954,7 +971,7 @@ function qn(e = {}) {
954
971
  ...e
955
972
  });
956
973
  }
957
- function fn(e = {}) {
974
+ function Fn(e = {}) {
958
975
  const n = l();
959
976
  return o({
960
977
  mutationFn: async (t) => await r.webcron.updateWebhook(t.id, t.data),
@@ -964,7 +981,7 @@ function fn(e = {}) {
964
981
  ...e
965
982
  });
966
983
  }
967
- function Fn(e = {}) {
984
+ function hn(e = {}) {
968
985
  const n = l();
969
986
  return o({
970
987
  mutationFn: async (t) => await r.webcron.deleteWebhook(t),
@@ -974,7 +991,7 @@ function Fn(e = {}) {
974
991
  ...e
975
992
  });
976
993
  }
977
- function hn(e = {}) {
994
+ function mn(e = {}) {
978
995
  return o({
979
996
  mutationFn: async (n) => await r.webcron.testWebhook(n),
980
997
  ...e
@@ -988,7 +1005,7 @@ function kn(e, n, t = {}) {
988
1005
  ...t
989
1006
  });
990
1007
  }
991
- function mn(e, n = {}) {
1008
+ function Tn(e, n = {}) {
992
1009
  return i({
993
1010
  queryKey: ["webcronWebhookSchedules", e],
994
1011
  queryFn: async () => await r.webcron.getWebhookSchedules(e),
@@ -996,7 +1013,7 @@ function mn(e, n = {}) {
996
1013
  ...n
997
1014
  });
998
1015
  }
999
- function Tn(e = {}) {
1016
+ function Sn(e = {}) {
1000
1017
  const n = l();
1001
1018
  return o({
1002
1019
  mutationFn: async (t) => await r.webcron.createWebhookSchedule(t.webhookId, t.data),
@@ -1006,7 +1023,7 @@ function Tn(e = {}) {
1006
1023
  ...e
1007
1024
  });
1008
1025
  }
1009
- function Sn(e, n = {}) {
1026
+ function Dn(e, n = {}) {
1010
1027
  return i({
1011
1028
  queryKey: ["webcronSchedule", e],
1012
1029
  queryFn: async () => await r.webcron.getSchedule(e),
@@ -1014,7 +1031,7 @@ function Sn(e, n = {}) {
1014
1031
  ...n
1015
1032
  });
1016
1033
  }
1017
- function Dn(e = {}) {
1034
+ function Kn(e = {}) {
1018
1035
  const n = l();
1019
1036
  return o({
1020
1037
  mutationFn: async (t) => await r.webcron.updateSchedule(t.id, t.data),
@@ -1024,7 +1041,7 @@ function Dn(e = {}) {
1024
1041
  ...e
1025
1042
  });
1026
1043
  }
1027
- function Kn(e = {}) {
1044
+ function Cn(e = {}) {
1028
1045
  const n = l();
1029
1046
  return o({
1030
1047
  mutationFn: async (t) => await r.webcron.deleteSchedule(t),
@@ -1034,7 +1051,7 @@ function Kn(e = {}) {
1034
1051
  ...e
1035
1052
  });
1036
1053
  }
1037
- function Cn(e = {}) {
1054
+ function En(e = {}) {
1038
1055
  const n = l();
1039
1056
  return o({
1040
1057
  mutationFn: async (t) => await r.webcron.pauseSchedule(t),
@@ -1044,7 +1061,7 @@ function Cn(e = {}) {
1044
1061
  ...e
1045
1062
  });
1046
1063
  }
1047
- function En(e = {}) {
1064
+ function Bn(e = {}) {
1048
1065
  const n = l();
1049
1066
  return o({
1050
1067
  mutationFn: async (t) => await r.webcron.resumeSchedule(t),
@@ -1054,7 +1071,7 @@ function En(e = {}) {
1054
1071
  ...e
1055
1072
  });
1056
1073
  }
1057
- function Bn(e = {}) {
1074
+ function Rn(e = {}) {
1058
1075
  const n = l();
1059
1076
  return o({
1060
1077
  mutationFn: async (t) => await r.webcron.triggerSchedule(t),
@@ -1064,14 +1081,14 @@ function Bn(e = {}) {
1064
1081
  ...e
1065
1082
  });
1066
1083
  }
1067
- function Rn(e, n = {}) {
1084
+ function Wn(e, n = {}) {
1068
1085
  return i({
1069
1086
  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],
1070
1087
  queryFn: async () => await r.webcron.listExecutions(e),
1071
1088
  ...n
1072
1089
  });
1073
1090
  }
1074
- function Wn(e, n = {}) {
1091
+ function Gn(e, n = {}) {
1075
1092
  return i({
1076
1093
  queryKey: ["webcronExecution", e],
1077
1094
  queryFn: async () => await r.webcron.getExecution(e),
@@ -1079,7 +1096,7 @@ function Wn(e, n = {}) {
1079
1096
  ...n
1080
1097
  });
1081
1098
  }
1082
- function Gn(e = {}) {
1099
+ function On(e = {}) {
1083
1100
  const n = l();
1084
1101
  return o({
1085
1102
  mutationFn: async (t) => await r.webcron.retryExecution(t),
@@ -1089,14 +1106,14 @@ function Gn(e = {}) {
1089
1106
  ...e
1090
1107
  });
1091
1108
  }
1092
- function On(e = {}) {
1109
+ function vn(e = {}) {
1093
1110
  return i({
1094
1111
  queryKey: ["webcronTasks"],
1095
1112
  queryFn: async () => await r.webcron.listTasks(),
1096
1113
  ...e
1097
1114
  });
1098
1115
  }
1099
- function vn(e = {}) {
1116
+ function Pn(e = {}) {
1100
1117
  const n = l();
1101
1118
  return o({
1102
1119
  mutationFn: async (t) => await r.webcron.createTask(t),
@@ -1106,7 +1123,7 @@ function vn(e = {}) {
1106
1123
  ...e
1107
1124
  });
1108
1125
  }
1109
- function Pn(e, n = {}) {
1126
+ function An(e, n = {}) {
1110
1127
  return i({
1111
1128
  queryKey: ["webcronTask", e],
1112
1129
  queryFn: async () => await r.webcron.getTask(e),
@@ -1114,7 +1131,7 @@ function Pn(e, n = {}) {
1114
1131
  ...n
1115
1132
  });
1116
1133
  }
1117
- function An(e = {}) {
1134
+ function Un(e = {}) {
1118
1135
  const n = l();
1119
1136
  return o({
1120
1137
  mutationFn: async (t) => await r.webcron.cancelTask(t),
@@ -1124,7 +1141,7 @@ function An(e = {}) {
1124
1141
  ...e
1125
1142
  });
1126
1143
  }
1127
- function Un(e = {}) {
1144
+ function Qn(e = {}) {
1128
1145
  const n = l();
1129
1146
  return o({
1130
1147
  mutationFn: async (t) => await r.webcron.retryTask(t),
@@ -1134,7 +1151,7 @@ function Un(e = {}) {
1134
1151
  ...e
1135
1152
  });
1136
1153
  }
1137
- function Qn(e = {}) {
1154
+ function xn(e = {}) {
1138
1155
  const n = l();
1139
1156
  return o({
1140
1157
  mutationFn: async (t) => await r.webcron.progressTask(t.id, t.data),
@@ -1144,7 +1161,7 @@ function Qn(e = {}) {
1144
1161
  ...e
1145
1162
  });
1146
1163
  }
1147
- function xn(e = {}) {
1164
+ function In(e = {}) {
1148
1165
  const n = l();
1149
1166
  return o({
1150
1167
  mutationFn: async (t) => await r.webcron.signalTask(t.id, t.data, t.branchId),
@@ -1154,14 +1171,14 @@ function xn(e = {}) {
1154
1171
  ...e
1155
1172
  });
1156
1173
  }
1157
- function In(e = {}) {
1174
+ function Mn(e = {}) {
1158
1175
  return i({
1159
1176
  queryKey: ["webcronBins"],
1160
1177
  queryFn: async () => await r.webcron.listBins(),
1161
1178
  ...e
1162
1179
  });
1163
1180
  }
1164
- function Mn(e, n = {}) {
1181
+ function _n(e, n = {}) {
1165
1182
  return i({
1166
1183
  queryKey: ["webcronBin", e],
1167
1184
  queryFn: async () => await r.webcron.getBin(e),
@@ -1169,7 +1186,7 @@ function Mn(e, n = {}) {
1169
1186
  ...n
1170
1187
  });
1171
1188
  }
1172
- function _n(e = {}) {
1189
+ function pn(e = {}) {
1173
1190
  const n = l();
1174
1191
  return o({
1175
1192
  mutationFn: async (t) => await r.webcron.createBin(t),
@@ -1179,7 +1196,7 @@ function _n(e = {}) {
1179
1196
  ...e
1180
1197
  });
1181
1198
  }
1182
- function pn(e = {}) {
1199
+ function Ln(e = {}) {
1183
1200
  const n = l();
1184
1201
  return o({
1185
1202
  mutationFn: async (t) => await r.webcron.deleteBin(t),
@@ -1189,7 +1206,7 @@ function pn(e = {}) {
1189
1206
  ...e
1190
1207
  });
1191
1208
  }
1192
- function Ln(e, n, t = {}) {
1209
+ function Hn(e, n, t = {}) {
1193
1210
  return i({
1194
1211
  queryKey: ["webcronBinRequests", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
1195
1212
  queryFn: async () => await r.webcron.getBinRequests(e, n),
@@ -1197,7 +1214,7 @@ function Ln(e, n, t = {}) {
1197
1214
  ...t
1198
1215
  });
1199
1216
  }
1200
- function Hn(e = {}) {
1217
+ function Nn(e = {}) {
1201
1218
  const n = l();
1202
1219
  return o({
1203
1220
  mutationFn: async (t) => await r.webcron.clearBinRequests(t),
@@ -1216,136 +1233,137 @@ function Vn(e = {}) {
1216
1233
  ...e
1217
1234
  });
1218
1235
  }
1219
- function Nn(e = {}) {
1236
+ function zn(e = {}) {
1220
1237
  return o({
1221
1238
  mutationFn: async (n) => await r.templates.renderTemplate(n),
1222
1239
  ...e
1223
1240
  });
1224
1241
  }
1225
1242
  export {
1226
- Jn as ReactQueryDevtools,
1243
+ Xn as ReactQueryDevtools,
1227
1244
  E as WorkflowStatus,
1228
1245
  G as reactQuery,
1229
- An as useCancelTask,
1246
+ Un as useCancelTask,
1230
1247
  p as useCheckSubscriptionStatus,
1231
- Hn as useClearBinRequests,
1232
- Re as useCreateAuditLog,
1248
+ Nn as useClearBinRequests,
1249
+ We as useCreateAuditLog,
1233
1250
  Ve as useCreateConversation,
1234
- pe as useCreateInboxItemPerUser,
1235
- _n as useCreateInspectionBin,
1236
- Ee as useCreateOrUpdateForm,
1251
+ Le as useCreateInboxItemPerUser,
1252
+ pn as useCreateInspectionBin,
1253
+ Be as useCreateOrUpdateForm,
1237
1254
  L as useCreateStatementRun,
1238
- vn as useCreateTask,
1255
+ Pn as useCreateTask,
1239
1256
  A as useCreateThread,
1240
- qn as useCreateWebhook,
1241
- Tn as useCreateWebhookSchedule,
1257
+ fn as useCreateWebhook,
1258
+ Sn as useCreateWebhookSchedule,
1242
1259
  H as useDataset,
1243
1260
  P as useDatasetSample,
1244
1261
  I as useDeleteComment,
1245
- pn as useDeleteInspectionBin,
1246
- xe as useDeleteProcessTrigger,
1247
- ce as useDeleteRow,
1248
- Kn as useDeleteSchedule,
1249
- Fn as useDeleteWebhook,
1250
- qe as useDocumentPermissions,
1251
- Fe as useFileDownload,
1252
- fe as useFileUpload,
1253
- ze as useFilterMessagesBySenderId,
1254
- Le as useGetAllConversations,
1255
- ve as useGetAllHttpTriggers,
1256
- Ie as useGetAllInboxItems,
1257
- Ge as useGetAllRecon,
1258
- We as useGetAllTemplatedPipelines,
1259
- Oe as useGetAllUsers,
1260
- Be as useGetAuditLogs,
1261
- Ln as useGetBinRequests,
1262
+ Ln as useDeleteInspectionBin,
1263
+ Ie as useDeleteProcessTrigger,
1264
+ ye as useDeleteRow,
1265
+ Cn as useDeleteSchedule,
1266
+ hn as useDeleteWebhook,
1267
+ fe as useDocumentPermissions,
1268
+ he as useFileDownload,
1269
+ Fe as useFileUpload,
1270
+ Ye as useFilterMessagesBySenderId,
1271
+ He as useGetAllConversations,
1272
+ Pe as useGetAllHttpTriggers,
1273
+ Me as useGetAllInboxItems,
1274
+ Oe as useGetAllRecon,
1275
+ Ge as useGetAllTemplatedPipelines,
1276
+ ve as useGetAllUsers,
1277
+ Re as useGetAuditLogs,
1278
+ Hn as useGetBinRequests,
1262
1279
  U as useGetCommentsByThreadId,
1263
- He as useGetConversation,
1264
- V as useGetDatasets,
1265
- Wn as useGetExecution,
1266
- N as useGetFileUrlByFileId,
1267
- Ce as useGetFormById,
1268
- Ke as useGetFormData,
1269
- De as useGetFormSchema,
1270
- oe as useGetInputTables,
1271
- Mn as useGetInspectionBin,
1272
- z as useGetPublishedWorkbookById,
1273
- Y as useGetRunResultById,
1274
- $ as useGetRunsByViewId,
1275
- Sn as useGetSchedule,
1276
- J as useGetStatementData,
1277
- X as useGetTableById,
1278
- Pn as useGetTask,
1279
- he as useGetTaskDetails,
1280
- Ue as useGetTriggersBySheet,
1281
- Z as useGetViewById,
1282
- j as useGetViewsBySheetId,
1283
- dn as useGetWebhook,
1280
+ Ne as useGetConversation,
1281
+ N as useGetDatasets,
1282
+ Gn as useGetExecution,
1283
+ z as useGetFileByFolderIdAndName,
1284
+ V as useGetFileUrlByFileId,
1285
+ Ee as useGetFormById,
1286
+ Ce as useGetFormData,
1287
+ Ke as useGetFormSchema,
1288
+ ae as useGetInputTables,
1289
+ _n as useGetInspectionBin,
1290
+ Y as useGetPublishedWorkbookById,
1291
+ $ as useGetRunResultById,
1292
+ J as useGetRunsByViewId,
1293
+ Dn as useGetSchedule,
1294
+ X as useGetStatementData,
1295
+ Z as useGetTableById,
1296
+ An as useGetTask,
1297
+ me as useGetTaskDetails,
1298
+ Qe as useGetTriggersBySheet,
1299
+ j as useGetViewById,
1300
+ ee as useGetViewsBySheetId,
1301
+ qn as useGetWebhook,
1284
1302
  kn as useGetWebhookExecutions,
1285
- mn as useGetWebhookSchedules,
1303
+ Tn as useGetWebhookSchedules,
1286
1304
  ke as useGetWorkbookDetails,
1287
- ee as useGetWorkbooksByType,
1288
- ne as useGetWorkflowInstanceStatusById,
1289
- te as useGetWorksheets,
1290
- re as useGetWorksheetsByType,
1291
- ue as useInputTable,
1292
- ie as useInsertRow,
1293
- Rn as useListExecutions,
1294
- In as useListInspectionBins,
1295
- On as useListTasks,
1296
- bn as useListWebhooks,
1297
- Me as useMarkItemAsRead,
1298
- _e as useMarkItemAsUnread,
1299
- Pe as useMarkTaskDone,
1305
+ ne as useGetWorkbooksByType,
1306
+ te as useGetWorkflowInstanceStatusById,
1307
+ re as useGetWorksheets,
1308
+ ue as useGetWorksheetsByType,
1309
+ oe as useInputTable,
1310
+ se as useInsertRow,
1311
+ Wn as useListExecutions,
1312
+ Mn as useListInspectionBins,
1313
+ vn as useListTasks,
1314
+ dn as useListWebhooks,
1315
+ _e as useMarkItemAsRead,
1316
+ pe as useMarkItemAsUnread,
1317
+ Ae as useMarkTaskDone,
1300
1318
  v as useMetric,
1301
- Cn as usePauseSchedule,
1319
+ En as usePauseSchedule,
1302
1320
  Q as usePostComment,
1303
- Te as usePublishWorkbook,
1304
- Ae as useReassignTask,
1305
- Qe as useRegisterProcessTrigger,
1306
- Nn as useRenderTemplate,
1307
- Ne as useReplyToConversation,
1308
- En as useResumeSchedule,
1309
- Gn as useRetryExecution,
1310
- Un as useRetryTask,
1311
- ae as useRows,
1312
- ye as useRunDefinition,
1313
- le as useRunPublishedDefinition,
1314
- Se as useRunRecon,
1315
- we as useRunSampleDefinition,
1316
- me as useSaveWorkbook,
1321
+ Se as usePublishWorkbook,
1322
+ Ue as useReassignTask,
1323
+ xe as useRegisterProcessTrigger,
1324
+ zn as useRenderTemplate,
1325
+ ze as useReplyToConversation,
1326
+ Bn as useResumeSchedule,
1327
+ On as useRetryExecution,
1328
+ Qn as useRetryTask,
1329
+ ie as useRows,
1330
+ le as useRunDefinition,
1331
+ we as useRunPublishedDefinition,
1332
+ De as useRunRecon,
1333
+ ge as useRunSampleDefinition,
1334
+ Te as useSaveWorkbook,
1317
1335
  M as useSubscribeUser,
1318
- Qn as useTaskProgress,
1319
- xn as useTaskSignal,
1320
- an as useTcnAgentDisconnect,
1321
- gn as useTcnAgentGetCallFromHold,
1322
- nn as useTcnAgentGetStatus,
1323
- sn as useTcnAgentPause,
1324
- wn as useTcnAgentPutCallOnHold,
1325
- cn as useTcnAgentSetReady,
1326
- Ze as useTcnAgentSkills,
1327
- Ye as useTcnAuthUrl,
1328
- ln as useTcnCallData,
1329
- yn as useTcnConnectedParty,
1330
- je as useTcnCreateSession,
1331
- Xe as useTcnCurrentAgent,
1332
- rn as useTcnDialManualPrepare,
1333
- $e as useTcnExchangeCode,
1334
- tn as useTcnHuntGroupSettings,
1335
- en as useTcnKeepAlive,
1336
- on as useTcnManualDialStart,
1337
- un as useTcnProcessManualDial,
1338
- Je as useTcnRefreshToken,
1339
- hn as useTestWebhook,
1340
- ge as useTriggerHttpWorkflow,
1341
- Bn as useTriggerSchedule,
1342
- be as useTriggerWorkflow,
1336
+ xn as useTaskProgress,
1337
+ In as useTaskSignal,
1338
+ sn as useTcnAgentDisconnect,
1339
+ bn as useTcnAgentGetCallFromHold,
1340
+ tn as useTcnAgentGetStatus,
1341
+ cn as useTcnAgentPause,
1342
+ gn as useTcnAgentPutCallOnHold,
1343
+ yn as useTcnAgentSetReady,
1344
+ je as useTcnAgentSkills,
1345
+ $e as useTcnAuthUrl,
1346
+ wn as useTcnCallData,
1347
+ ln as useTcnConnectedParty,
1348
+ en as useTcnCreateSession,
1349
+ Ze as useTcnCurrentAgent,
1350
+ un as useTcnDialManualPrepare,
1351
+ Je as useTcnExchangeCode,
1352
+ rn as useTcnHuntGroupSettings,
1353
+ nn as useTcnKeepAlive,
1354
+ an as useTcnManualDialStart,
1355
+ on as useTcnProcessManualDial,
1356
+ Xe as useTcnRefreshToken,
1357
+ mn as useTestWebhook,
1358
+ be as useTriggerHttpWorkflow,
1359
+ Rn as useTriggerSchedule,
1360
+ de as useTriggerWorkflow,
1343
1361
  Vn as useTriggerWorkflowById,
1344
1362
  _ as useUnsubscribeUser,
1345
1363
  x as useUpdateComment,
1346
- se as useUpdateRow,
1347
- Dn as useUpdateSchedule,
1348
- fn as useUpdateWebhook,
1364
+ ce as useUpdateRow,
1365
+ Kn as useUpdateSchedule,
1366
+ Fn as useUpdateWebhook,
1349
1367
  B as useUser,
1350
- de as useUserDetails
1368
+ qe as useUserDetails
1351
1369
  };