@bluecopa/react 0.1.69 → 0.1.70

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.
@@ -0,0 +1,7 @@
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ export declare function useTcnAgentGetCallFromHold(options?: {}): UseMutationResult<any, Error, {
3
+ token: string;
4
+ sessionSid: string;
5
+ holdType?: string;
6
+ }>;
7
+ //# sourceMappingURL=useTcnAgentGetCallFromHold.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTcnAgentGetCallFromHold.d.ts","sourceRoot":"","sources":["../../src/hooks/useTcnAgentGetCallFromHold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,wBAAgB,0BAA0B,CACxC,OAAO,KAAK,GACX,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAOzF"}
@@ -0,0 +1,7 @@
1
+ import { UseMutationResult } from '@tanstack/react-query';
2
+ export declare function useTcnAgentPutCallOnHold(options?: {}): UseMutationResult<any, Error, {
3
+ token: string;
4
+ sessionSid: string;
5
+ holdType?: string;
6
+ }>;
7
+ //# sourceMappingURL=useTcnAgentPutCallOnHold.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTcnAgentPutCallOnHold.d.ts","sourceRoot":"","sources":["../../src/hooks/useTcnAgentPutCallOnHold.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG5E,wBAAgB,wBAAwB,CACtC,OAAO,KAAK,GACX,iBAAiB,CAAC,GAAG,EAAE,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAOzF"}
package/dist/index.d.ts CHANGED
@@ -85,6 +85,8 @@ export * from './hooks/useTcnAgentPause';
85
85
  export * from './hooks/useTcnAgentSetReady';
86
86
  export * from './hooks/useTcnConnectedParty';
87
87
  export * from './hooks/useTcnCallData';
88
+ export * from './hooks/useTcnAgentPutCallOnHold';
89
+ export * from './hooks/useTcnAgentGetCallFromHold';
88
90
  export * from './hooks/useListWebhooks';
89
91
  export * from './hooks/useGetWebhook';
90
92
  export * from './hooks/useCreateWebhook';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CA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BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AAGnD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,gCAAgC,CAAC;AAG/C,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AACpD,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
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";
2
+ import * as G from "@tanstack/react-query";
3
+ import { copaApi as r, copaGetConfig as D } from "@bluecopa/core";
4
4
  export * from "@bluecopa/core";
5
- import { ReactQueryDevtools as Hn } from "@tanstack/react-query-devtools";
5
+ import { ReactQueryDevtools as Nn } from "@tanstack/react-query-devtools";
6
6
  const S = {
7
7
  enabled: !0,
8
8
  staleTime: 1e3 * 60 * 5,
@@ -12,13 +12,13 @@ const S = {
12
12
  retry: 2,
13
13
  retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
14
14
  };
15
- function K(e = {}) {
15
+ function C(e = {}) {
16
16
  return {
17
17
  ...S,
18
18
  ...e
19
19
  };
20
20
  }
21
- function C(e = 5e3) {
21
+ function K(e = 5e3) {
22
22
  return new Promise((n) => setTimeout(n, e));
23
23
  }
24
24
  function k(e, n) {
@@ -29,10 +29,10 @@ function k(e, n) {
29
29
  );
30
30
  }
31
31
  function c(e, n, t = 0) {
32
- return async () => (await C(t), await e());
32
+ return async () => (await K(t), await e());
33
33
  }
34
34
  function y(e) {
35
- const n = K(e.options);
35
+ const n = C(e.options);
36
36
  return {
37
37
  queryKey: e.queryKey,
38
38
  queryFn: e.queryFn,
@@ -45,7 +45,7 @@ function y(e) {
45
45
  onError: n.onError
46
46
  };
47
47
  }
48
- function O(e, n = {}) {
48
+ function v(e, n = {}) {
49
49
  const t = n.enabled !== !1 && !!e, u = c(async () => {
50
50
  if (!e)
51
51
  throw new Error("Metric ID is required");
@@ -152,13 +152,13 @@ function L(e, n, t = {}) {
152
152
  });
153
153
  return i(s);
154
154
  }
155
- function V(e = {}) {
155
+ function H(e = {}) {
156
156
  return o({
157
157
  mutationFn: async (n) => await r.statement.createNewRun(n),
158
158
  ...e
159
159
  });
160
160
  }
161
- function H(e, n = {}) {
161
+ function V(e, n = {}) {
162
162
  const t = !!e, u = c(async () => {
163
163
  if (!e)
164
164
  throw new Error("Dataset ID is required");
@@ -346,7 +346,7 @@ function ue(e, n, t = {}) {
346
346
  sortParams: s,
347
347
  offsetParam: w,
348
348
  ...b
349
- } = t, g = b.enabled !== !1 && !!e && !!n, d = c(async () => {
349
+ } = t, g = b.enabled !== !1 && !!e && !!n, q = c(async () => {
350
350
  if (!e || !n)
351
351
  throw new Error("Input table ID and view ID are required");
352
352
  return console.log("Fetching input table data..."), await r.inputTable.getData({
@@ -359,7 +359,7 @@ function ue(e, n, t = {}) {
359
359
  });
360
360
  }), f = y({
361
361
  queryKey: ["inputTableData", e, n],
362
- queryFn: d,
362
+ queryFn: q,
363
363
  enabled: g,
364
364
  options: b
365
365
  });
@@ -382,21 +382,21 @@ function ae(e, n = {}) {
382
382
  "retryDelay",
383
383
  "onSuccess",
384
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];
385
+ ], { limit: u, offset: a, order: s, order_by: w, ...b } = n, g = {}, q = { limit: u, offset: a, order: s, order_by: w };
386
+ Object.keys(b).forEach((d) => {
387
+ t.includes(d) ? g[d] = b[d] : q[d] = b[d];
388
388
  });
389
389
  const f = g.enabled !== !1 && !!e, m = c(async () => {
390
390
  if (!e)
391
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({
392
+ return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, q);
393
+ }), T = y({
394
394
  queryKey: ["inputTableRows", e, n],
395
395
  queryFn: m,
396
396
  enabled: f,
397
397
  options: g
398
398
  });
399
- return i(D);
399
+ return i(T);
400
400
  }
401
401
  function ie(e = {}) {
402
402
  const n = l();
@@ -496,10 +496,10 @@ function B(e = {}) {
496
496
  });
497
497
  return i(u);
498
498
  }
499
- const qe = B, R = ["Owner", "Editor", "Viewer", "ReadOnly"];
499
+ const de = B, R = ["Owner", "Editor", "Viewer", "ReadOnly"];
500
500
  var h;
501
501
  const F = (h = r.permissions) == null ? void 0 : h.getPermissions;
502
- function de(e, n, t = {}) {
502
+ function qe(e, n, t = {}) {
503
503
  const u = t.enabled !== !1 && !!(e != null && e.trim()), a = c(
504
504
  async () => {
505
505
  if (!(e != null && e.trim()))
@@ -508,7 +508,7 @@ function de(e, n, t = {}) {
508
508
  throw new Error(
509
509
  "@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
510
510
  );
511
- const w = T();
511
+ const w = D();
512
512
  if (!w.userId)
513
513
  throw new Error(
514
514
  "@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
@@ -586,13 +586,13 @@ function me(e = {}) {
586
586
  ...e
587
587
  });
588
588
  }
589
- function De(e = {}) {
589
+ function Te(e = {}) {
590
590
  return o({
591
591
  mutationFn: async (n) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(n)),
592
592
  ...e
593
593
  });
594
594
  }
595
- function Te(e = {}) {
595
+ function De(e = {}) {
596
596
  return o({
597
597
  mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
598
598
  ...e
@@ -613,7 +613,7 @@ function Se(e, n, t = {}) {
613
613
  })
614
614
  );
615
615
  }
616
- function Ke(e, n = {}) {
616
+ function Ce(e, n = {}) {
617
617
  const t = !!e, u = c(async () => {
618
618
  if (!e)
619
619
  throw new Error("Form ID is required");
@@ -626,7 +626,7 @@ function Ke(e, n = {}) {
626
626
  });
627
627
  return i(a);
628
628
  }
629
- function Ce(e, n = {}) {
629
+ function Ke(e, n = {}) {
630
630
  return i({
631
631
  queryKey: ["form", e],
632
632
  queryFn: async () => {
@@ -663,21 +663,21 @@ function We(e = {}) {
663
663
  ...e
664
664
  });
665
665
  }
666
- function ve(e = {}) {
666
+ function Ge(e = {}) {
667
667
  return i({
668
668
  queryKey: ["reconWorkflows"],
669
669
  queryFn: async () => await r.recon.getAllReconWorkflows(),
670
670
  ...e
671
671
  });
672
672
  }
673
- function Ge(e = {}) {
673
+ function Oe(e = {}) {
674
674
  return i({
675
675
  queryKey: ["users"],
676
676
  queryFn: async () => await r.user.getAllUsers(),
677
677
  ...e
678
678
  });
679
679
  }
680
- function Oe(e = {}) {
680
+ function ve(e = {}) {
681
681
  return i({
682
682
  queryKey: ["httpTriggers"],
683
683
  queryFn: async () => await r.workflow.getAllHttpTriggers(),
@@ -748,7 +748,7 @@ function Le(e = {}) {
748
748
  ...e
749
749
  });
750
750
  }
751
- function Ve(e = {}) {
751
+ function He(e = {}) {
752
752
  const n = l();
753
753
  return o({
754
754
  mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
@@ -760,7 +760,7 @@ function Ve(e = {}) {
760
760
  ...e
761
761
  });
762
762
  }
763
- function He(e, n = {}) {
763
+ function Ve(e, n = {}) {
764
764
  return i({
765
765
  queryKey: [
766
766
  "emailMessagesBySender",
@@ -886,13 +886,25 @@ function sn(e = {}) {
886
886
  });
887
887
  }
888
888
  function cn(e = {}) {
889
+ return o({
890
+ mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentPutCallOnHold(n, t, u),
891
+ ...e
892
+ });
893
+ }
894
+ function yn(e = {}) {
895
+ return o({
896
+ mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentGetCallFromHold(n, t, u),
897
+ ...e
898
+ });
899
+ }
900
+ function ln(e = {}) {
889
901
  return i({
890
902
  queryKey: ["webcronWebhooks"],
891
903
  queryFn: async () => await r.webcron.listWebhooks(),
892
904
  ...e
893
905
  });
894
906
  }
895
- function yn(e, n = {}) {
907
+ function wn(e, n = {}) {
896
908
  return i({
897
909
  queryKey: ["webcronWebhook", e],
898
910
  queryFn: async () => await r.webcron.getWebhook(e),
@@ -900,7 +912,7 @@ function yn(e, n = {}) {
900
912
  ...n
901
913
  });
902
914
  }
903
- function ln(e = {}) {
915
+ function bn(e = {}) {
904
916
  const n = l();
905
917
  return o({
906
918
  mutationFn: async (t) => await r.webcron.createWebhook(t),
@@ -910,7 +922,7 @@ function ln(e = {}) {
910
922
  ...e
911
923
  });
912
924
  }
913
- function wn(e = {}) {
925
+ function gn(e = {}) {
914
926
  const n = l();
915
927
  return o({
916
928
  mutationFn: async (t) => await r.webcron.updateWebhook(t.id, t.data),
@@ -920,7 +932,7 @@ function wn(e = {}) {
920
932
  ...e
921
933
  });
922
934
  }
923
- function bn(e = {}) {
935
+ function dn(e = {}) {
924
936
  const n = l();
925
937
  return o({
926
938
  mutationFn: async (t) => await r.webcron.deleteWebhook(t),
@@ -930,13 +942,13 @@ function bn(e = {}) {
930
942
  ...e
931
943
  });
932
944
  }
933
- function gn(e = {}) {
945
+ function qn(e = {}) {
934
946
  return o({
935
947
  mutationFn: async (n) => await r.webcron.testWebhook(n),
936
948
  ...e
937
949
  });
938
950
  }
939
- function qn(e, n, t = {}) {
951
+ function fn(e, n, t = {}) {
940
952
  return i({
941
953
  queryKey: ["webcronWebhookExecutions", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
942
954
  queryFn: async () => await r.webcron.getWebhookExecutions(e, n),
@@ -944,7 +956,7 @@ function qn(e, n, t = {}) {
944
956
  ...t
945
957
  });
946
958
  }
947
- function dn(e, n = {}) {
959
+ function Fn(e, n = {}) {
948
960
  return i({
949
961
  queryKey: ["webcronWebhookSchedules", e],
950
962
  queryFn: async () => await r.webcron.getWebhookSchedules(e),
@@ -952,7 +964,7 @@ function dn(e, n = {}) {
952
964
  ...n
953
965
  });
954
966
  }
955
- function fn(e = {}) {
967
+ function hn(e = {}) {
956
968
  const n = l();
957
969
  return o({
958
970
  mutationFn: async (t) => await r.webcron.createWebhookSchedule(t.webhookId, t.data),
@@ -962,7 +974,7 @@ function fn(e = {}) {
962
974
  ...e
963
975
  });
964
976
  }
965
- function Fn(e, n = {}) {
977
+ function kn(e, n = {}) {
966
978
  return i({
967
979
  queryKey: ["webcronSchedule", e],
968
980
  queryFn: async () => await r.webcron.getSchedule(e),
@@ -970,7 +982,7 @@ function Fn(e, n = {}) {
970
982
  ...n
971
983
  });
972
984
  }
973
- function hn(e = {}) {
985
+ function mn(e = {}) {
974
986
  const n = l();
975
987
  return o({
976
988
  mutationFn: async (t) => await r.webcron.updateSchedule(t.id, t.data),
@@ -980,7 +992,7 @@ function hn(e = {}) {
980
992
  ...e
981
993
  });
982
994
  }
983
- function kn(e = {}) {
995
+ function Tn(e = {}) {
984
996
  const n = l();
985
997
  return o({
986
998
  mutationFn: async (t) => await r.webcron.deleteSchedule(t),
@@ -990,7 +1002,7 @@ function kn(e = {}) {
990
1002
  ...e
991
1003
  });
992
1004
  }
993
- function mn(e = {}) {
1005
+ function Dn(e = {}) {
994
1006
  const n = l();
995
1007
  return o({
996
1008
  mutationFn: async (t) => await r.webcron.pauseSchedule(t),
@@ -1000,7 +1012,7 @@ function mn(e = {}) {
1000
1012
  ...e
1001
1013
  });
1002
1014
  }
1003
- function Dn(e = {}) {
1015
+ function Sn(e = {}) {
1004
1016
  const n = l();
1005
1017
  return o({
1006
1018
  mutationFn: async (t) => await r.webcron.resumeSchedule(t),
@@ -1010,7 +1022,7 @@ function Dn(e = {}) {
1010
1022
  ...e
1011
1023
  });
1012
1024
  }
1013
- function Tn(e = {}) {
1025
+ function Cn(e = {}) {
1014
1026
  const n = l();
1015
1027
  return o({
1016
1028
  mutationFn: async (t) => await r.webcron.triggerSchedule(t),
@@ -1020,14 +1032,14 @@ function Tn(e = {}) {
1020
1032
  ...e
1021
1033
  });
1022
1034
  }
1023
- function Sn(e, n = {}) {
1035
+ function Kn(e, n = {}) {
1024
1036
  return i({
1025
1037
  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
1038
  queryFn: async () => await r.webcron.listExecutions(e),
1027
1039
  ...n
1028
1040
  });
1029
1041
  }
1030
- function Kn(e, n = {}) {
1042
+ function En(e, n = {}) {
1031
1043
  return i({
1032
1044
  queryKey: ["webcronExecution", e],
1033
1045
  queryFn: async () => await r.webcron.getExecution(e),
@@ -1035,7 +1047,7 @@ function Kn(e, n = {}) {
1035
1047
  ...n
1036
1048
  });
1037
1049
  }
1038
- function Cn(e = {}) {
1050
+ function Bn(e = {}) {
1039
1051
  const n = l();
1040
1052
  return o({
1041
1053
  mutationFn: async (t) => await r.webcron.retryExecution(t),
@@ -1045,14 +1057,14 @@ function Cn(e = {}) {
1045
1057
  ...e
1046
1058
  });
1047
1059
  }
1048
- function En(e = {}) {
1060
+ function Rn(e = {}) {
1049
1061
  return i({
1050
1062
  queryKey: ["webcronTasks"],
1051
1063
  queryFn: async () => await r.webcron.listTasks(),
1052
1064
  ...e
1053
1065
  });
1054
1066
  }
1055
- function Bn(e = {}) {
1067
+ function Wn(e = {}) {
1056
1068
  const n = l();
1057
1069
  return o({
1058
1070
  mutationFn: async (t) => await r.webcron.createTask(t),
@@ -1062,7 +1074,7 @@ function Bn(e = {}) {
1062
1074
  ...e
1063
1075
  });
1064
1076
  }
1065
- function Rn(e, n = {}) {
1077
+ function Gn(e, n = {}) {
1066
1078
  return i({
1067
1079
  queryKey: ["webcronTask", e],
1068
1080
  queryFn: async () => await r.webcron.getTask(e),
@@ -1070,7 +1082,7 @@ function Rn(e, n = {}) {
1070
1082
  ...n
1071
1083
  });
1072
1084
  }
1073
- function Wn(e = {}) {
1085
+ function On(e = {}) {
1074
1086
  const n = l();
1075
1087
  return o({
1076
1088
  mutationFn: async (t) => await r.webcron.cancelTask(t),
@@ -1090,7 +1102,7 @@ function vn(e = {}) {
1090
1102
  ...e
1091
1103
  });
1092
1104
  }
1093
- function Gn(e = {}) {
1105
+ function Pn(e = {}) {
1094
1106
  const n = l();
1095
1107
  return o({
1096
1108
  mutationFn: async (t) => await r.webcron.progressTask(t.id, t.data),
@@ -1100,7 +1112,7 @@ function Gn(e = {}) {
1100
1112
  ...e
1101
1113
  });
1102
1114
  }
1103
- function On(e = {}) {
1115
+ function An(e = {}) {
1104
1116
  const n = l();
1105
1117
  return o({
1106
1118
  mutationFn: async (t) => await r.webcron.signalTask(t.id, t.data, t.branchId),
@@ -1110,14 +1122,14 @@ function On(e = {}) {
1110
1122
  ...e
1111
1123
  });
1112
1124
  }
1113
- function Pn(e = {}) {
1125
+ function Un(e = {}) {
1114
1126
  return i({
1115
1127
  queryKey: ["webcronBins"],
1116
1128
  queryFn: async () => await r.webcron.listBins(),
1117
1129
  ...e
1118
1130
  });
1119
1131
  }
1120
- function An(e, n = {}) {
1132
+ function xn(e, n = {}) {
1121
1133
  return i({
1122
1134
  queryKey: ["webcronBin", e],
1123
1135
  queryFn: async () => await r.webcron.getBin(e),
@@ -1125,7 +1137,7 @@ function An(e, n = {}) {
1125
1137
  ...n
1126
1138
  });
1127
1139
  }
1128
- function Un(e = {}) {
1140
+ function Qn(e = {}) {
1129
1141
  const n = l();
1130
1142
  return o({
1131
1143
  mutationFn: async (t) => await r.webcron.createBin(t),
@@ -1135,7 +1147,7 @@ function Un(e = {}) {
1135
1147
  ...e
1136
1148
  });
1137
1149
  }
1138
- function xn(e = {}) {
1150
+ function In(e = {}) {
1139
1151
  const n = l();
1140
1152
  return o({
1141
1153
  mutationFn: async (t) => await r.webcron.deleteBin(t),
@@ -1145,7 +1157,7 @@ function xn(e = {}) {
1145
1157
  ...e
1146
1158
  });
1147
1159
  }
1148
- function Qn(e, n, t = {}) {
1160
+ function Mn(e, n, t = {}) {
1149
1161
  return i({
1150
1162
  queryKey: ["webcronBinRequests", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
1151
1163
  queryFn: async () => await r.webcron.getBinRequests(e, n),
@@ -1153,7 +1165,7 @@ function Qn(e, n, t = {}) {
1153
1165
  ...t
1154
1166
  });
1155
1167
  }
1156
- function In(e = {}) {
1168
+ function _n(e = {}) {
1157
1169
  const n = l();
1158
1170
  return o({
1159
1171
  mutationFn: async (t) => await r.webcron.clearBinRequests(t),
@@ -1163,7 +1175,7 @@ function In(e = {}) {
1163
1175
  ...e
1164
1176
  });
1165
1177
  }
1166
- function Mn(e = {}) {
1178
+ function Ln(e = {}) {
1167
1179
  return o({
1168
1180
  mutationFn: async (n) => await r.webcron.triggerWorkflowById(
1169
1181
  n.id,
@@ -1173,64 +1185,64 @@ function Mn(e = {}) {
1173
1185
  });
1174
1186
  }
1175
1187
  export {
1176
- Hn as ReactQueryDevtools,
1188
+ Nn as ReactQueryDevtools,
1177
1189
  E as WorkflowStatus,
1178
- v as reactQuery,
1179
- Wn as useCancelTask,
1190
+ G as reactQuery,
1191
+ On as useCancelTask,
1180
1192
  L as useCheckSubscriptionStatus,
1181
- In as useClearBinRequests,
1193
+ _n as useClearBinRequests,
1182
1194
  Re as useCreateAuditLog,
1183
1195
  Le as useCreateConversation,
1184
1196
  Ie as useCreateInboxItemPerUser,
1185
- Un as useCreateInspectionBin,
1197
+ Qn as useCreateInspectionBin,
1186
1198
  Ee as useCreateOrUpdateForm,
1187
- V as useCreateStatementRun,
1188
- Bn as useCreateTask,
1199
+ H as useCreateStatementRun,
1200
+ Wn as useCreateTask,
1189
1201
  A as useCreateThread,
1190
- ln as useCreateWebhook,
1191
- fn as useCreateWebhookSchedule,
1192
- H as useDataset,
1202
+ bn as useCreateWebhook,
1203
+ hn as useCreateWebhookSchedule,
1204
+ V as useDataset,
1193
1205
  P as useDatasetSample,
1194
1206
  I as useDeleteComment,
1195
- xn as useDeleteInspectionBin,
1207
+ In as useDeleteInspectionBin,
1196
1208
  ce as useDeleteRow,
1197
- kn as useDeleteSchedule,
1198
- bn as useDeleteWebhook,
1199
- de as useDocumentPermissions,
1209
+ Tn as useDeleteSchedule,
1210
+ dn as useDeleteWebhook,
1211
+ qe as useDocumentPermissions,
1200
1212
  Fe as useFileDownload,
1201
1213
  fe as useFileUpload,
1202
- He as useFilterMessagesBySenderId,
1214
+ Ve as useFilterMessagesBySenderId,
1203
1215
  Me as useGetAllConversations,
1204
- Oe as useGetAllHttpTriggers,
1216
+ ve as useGetAllHttpTriggers,
1205
1217
  Ue as useGetAllInboxItems,
1206
- ve as useGetAllRecon,
1218
+ Ge as useGetAllRecon,
1207
1219
  We as useGetAllTemplatedPipelines,
1208
- Ge as useGetAllUsers,
1220
+ Oe as useGetAllUsers,
1209
1221
  Be as useGetAuditLogs,
1210
- Qn as useGetBinRequests,
1222
+ Mn as useGetBinRequests,
1211
1223
  U as useGetCommentsByThreadId,
1212
1224
  _e as useGetConversation,
1213
1225
  p as useGetDatasets,
1214
- Kn as useGetExecution,
1226
+ En as useGetExecution,
1215
1227
  N as useGetFileUrlByFileId,
1216
- Ce as useGetFormById,
1217
- Ke as useGetFormData,
1228
+ Ke as useGetFormById,
1229
+ Ce as useGetFormData,
1218
1230
  Se as useGetFormSchema,
1219
1231
  oe as useGetInputTables,
1220
- An as useGetInspectionBin,
1232
+ xn as useGetInspectionBin,
1221
1233
  z as useGetPublishedWorkbookById,
1222
1234
  Y as useGetRunResultById,
1223
1235
  $ as useGetRunsByViewId,
1224
- Fn as useGetSchedule,
1236
+ kn as useGetSchedule,
1225
1237
  J as useGetStatementData,
1226
1238
  X as useGetTableById,
1227
- Rn as useGetTask,
1239
+ Gn as useGetTask,
1228
1240
  he as useGetTaskDetails,
1229
1241
  Z as useGetViewById,
1230
1242
  j as useGetViewsBySheetId,
1231
- yn as useGetWebhook,
1232
- qn as useGetWebhookExecutions,
1233
- dn as useGetWebhookSchedules,
1243
+ wn as useGetWebhook,
1244
+ fn as useGetWebhookExecutions,
1245
+ Fn as useGetWebhookSchedules,
1234
1246
  ke as useGetWorkbookDetails,
1235
1247
  ee as useGetWorkbooksByType,
1236
1248
  ne as useGetWorkflowInstanceStatusById,
@@ -1238,34 +1250,36 @@ export {
1238
1250
  re as useGetWorksheetsByType,
1239
1251
  ue as useInputTable,
1240
1252
  ie as useInsertRow,
1241
- Sn as useListExecutions,
1242
- Pn as useListInspectionBins,
1243
- En as useListTasks,
1244
- cn as useListWebhooks,
1253
+ Kn as useListExecutions,
1254
+ Un as useListInspectionBins,
1255
+ Rn as useListTasks,
1256
+ ln as useListWebhooks,
1245
1257
  xe as useMarkItemAsRead,
1246
1258
  Qe as useMarkItemAsUnread,
1247
1259
  Pe as useMarkTaskDone,
1248
- O as useMetric,
1249
- mn as usePauseSchedule,
1260
+ v as useMetric,
1261
+ Dn as usePauseSchedule,
1250
1262
  x as usePostComment,
1251
- De as usePublishWorkbook,
1263
+ Te as usePublishWorkbook,
1252
1264
  Ae as useReassignTask,
1253
- Ve as useReplyToConversation,
1254
- Dn as useResumeSchedule,
1255
- Cn as useRetryExecution,
1265
+ He as useReplyToConversation,
1266
+ Sn as useResumeSchedule,
1267
+ Bn as useRetryExecution,
1256
1268
  vn as useRetryTask,
1257
1269
  ae as useRows,
1258
1270
  ye as useRunDefinition,
1259
1271
  le as useRunPublishedDefinition,
1260
- Te as useRunRecon,
1272
+ De as useRunRecon,
1261
1273
  we as useRunSampleDefinition,
1262
1274
  me as useSaveWorkbook,
1263
1275
  M as useSubscribeUser,
1264
- Gn as useTaskProgress,
1265
- On as useTaskSignal,
1276
+ Pn as useTaskProgress,
1277
+ An as useTaskSignal,
1266
1278
  rn as useTcnAgentDisconnect,
1279
+ yn as useTcnAgentGetCallFromHold,
1267
1280
  Ze as useTcnAgentGetStatus,
1268
1281
  un as useTcnAgentPause,
1282
+ cn as useTcnAgentPutCallOnHold,
1269
1283
  on as useTcnAgentSetReady,
1270
1284
  $e as useTcnAgentSkills,
1271
1285
  pe as useTcnAuthUrl,
@@ -1280,16 +1294,16 @@ export {
1280
1294
  tn as useTcnManualDialStart,
1281
1295
  nn as useTcnProcessManualDial,
1282
1296
  ze as useTcnRefreshToken,
1283
- gn as useTestWebhook,
1297
+ qn as useTestWebhook,
1284
1298
  be as useTriggerHttpWorkflow,
1285
- Tn as useTriggerSchedule,
1299
+ Cn as useTriggerSchedule,
1286
1300
  ge as useTriggerWorkflow,
1287
- Mn as useTriggerWorkflowById,
1301
+ Ln as useTriggerWorkflowById,
1288
1302
  _ as useUnsubscribeUser,
1289
1303
  Q as useUpdateComment,
1290
1304
  se as useUpdateRow,
1291
- hn as useUpdateSchedule,
1292
- wn as useUpdateWebhook,
1305
+ mn as useUpdateSchedule,
1306
+ gn as useUpdateWebhook,
1293
1307
  B as useUser,
1294
- qe as useUserDetails
1308
+ de as useUserDetails
1295
1309
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/react",
3
- "version": "0.1.69",
3
+ "version": "0.1.70",
4
4
  "description": "Bluecopa react library with TanStack Query integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",