@bluecopa/react 0.1.70 → 0.1.71

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,14 @@
1
+ import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
2
+ import { DeleteProcessTriggerResponse } from '@bluecopa/core';
3
+ export interface DeleteProcessTriggerVariables {
4
+ id: string;
5
+ /** Optional: pass the sheetId to invalidate only that sheet's trigger list. */
6
+ sheetId?: string;
7
+ }
8
+ /**
9
+ * Custom hook for deleting a process trigger by entity id.
10
+ * Invalidates the trigger list for the affected sheet on success.
11
+ * @param options - Mutation options
12
+ */
13
+ export declare function useDeleteProcessTrigger(options?: UseMutationOptions<DeleteProcessTriggerResponse, Error, DeleteProcessTriggerVariables>): UseMutationResult<DeleteProcessTriggerResponse, Error, DeleteProcessTriggerVariables>;
14
+ //# sourceMappingURL=useDeleteProcessTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDeleteProcessTrigger.d.ts","sourceRoot":"","sources":["../../src/hooks/useDeleteProcessTrigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,+EAA+E;IAC/E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,GAAE,kBAAkB,CACzB,4BAA4B,EAC5B,KAAK,EACL,6BAA6B,CACzB,GACL,iBAAiB,CAClB,4BAA4B,EAC5B,KAAK,EACL,6BAA6B,CAC9B,CAgBA"}
@@ -0,0 +1,10 @@
1
+ import { UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { ProcessTrigger } from '@bluecopa/core';
3
+ /**
4
+ * Custom hook for fetching all process triggers attached to a process sheet.
5
+ * @param sheetId - The process_sheet_id to fetch triggers for
6
+ * @param options - Query options
7
+ * @returns useQuery result with the trigger list
8
+ */
9
+ export declare function useGetTriggersBySheet(sheetId: string, options?: Omit<UseQueryOptions<ProcessTrigger[], Error>, "queryKey" | "queryFn" | "enabled">): UseQueryResult<ProcessTrigger[], Error>;
10
+ //# sourceMappingURL=useGetTriggersBySheet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGetTriggersBySheet.d.ts","sourceRoot":"","sources":["../../src/hooks/useGetTriggersBySheet.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,IAAI,CACX,eAAe,CAAC,cAAc,EAAE,EAAE,KAAK,CAAC,EACxC,UAAU,GAAG,SAAS,GAAG,SAAS,CAC9B,GACL,cAAc,CAAC,cAAc,EAAE,EAAE,KAAK,CAAC,CASzC"}
@@ -0,0 +1,10 @@
1
+ import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
2
+ import { ProcessTrigger } from '@bluecopa/core';
3
+ /**
4
+ * Custom hook for creating or updating a process trigger.
5
+ * Pass `id` and `entityVersion` on the payload to update; omit them to create.
6
+ * Invalidates the trigger list for the affected sheet on success.
7
+ * @param options - Mutation options
8
+ */
9
+ export declare function useRegisterProcessTrigger(options?: UseMutationOptions<ProcessTrigger, Error, ProcessTrigger>): UseMutationResult<ProcessTrigger, Error, ProcessTrigger>;
10
+ //# sourceMappingURL=useRegisterProcessTrigger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRegisterProcessTrigger.d.ts","sourceRoot":"","sources":["../../src/hooks/useRegisterProcessTrigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACvB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,GAAE,kBAAkB,CAAC,cAAc,EAAE,KAAK,EAAE,cAAc,CAAM,GACtE,iBAAiB,CAAC,cAAc,EAAE,KAAK,EAAE,cAAc,CAAC,CAc1D"}
package/dist/index.d.ts CHANGED
@@ -59,6 +59,9 @@ export * from './hooks/useGetAllUsers';
59
59
  export * from './hooks/useGetAllHttpTriggers';
60
60
  export * from './hooks/useMarkTaskDone';
61
61
  export * from './hooks/useReassignTask';
62
+ export * from './hooks/useGetTriggersBySheet';
63
+ export * from './hooks/useRegisterProcessTrigger';
64
+ export * from './hooks/useDeleteProcessTrigger';
62
65
  export * from './hooks/useGetAllInboxItems';
63
66
  export * from './hooks/useMarkItemAsRead';
64
67
  export * from './hooks/useMarkItemAsUnread';
@@ -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,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AC9C,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,9 +1,9 @@
1
1
  import { useQuery as i, useMutation as o, useQueryClient as l } from "@tanstack/react-query";
2
2
  import * as G from "@tanstack/react-query";
3
- import { copaApi as r, copaGetConfig as D } from "@bluecopa/core";
3
+ import { copaApi as r, copaGetConfig as S } from "@bluecopa/core";
4
4
  export * from "@bluecopa/core";
5
- import { ReactQueryDevtools as Nn } from "@tanstack/react-query-devtools";
6
- const S = {
5
+ import { ReactQueryDevtools as $n } from "@tanstack/react-query-devtools";
6
+ const D = {
7
7
  enabled: !0,
8
8
  staleTime: 1e3 * 60 * 5,
9
9
  // 5 minutes
@@ -12,13 +12,13 @@ const S = {
12
12
  retry: 2,
13
13
  retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
14
14
  };
15
- function C(e = {}) {
15
+ function K(e = {}) {
16
16
  return {
17
- ...S,
17
+ ...D,
18
18
  ...e
19
19
  };
20
20
  }
21
- function K(e = 5e3) {
21
+ function C(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 K(t), await e());
32
+ return async () => (await C(t), await e());
33
33
  }
34
34
  function y(e) {
35
- const n = C(e.options);
35
+ const n = K(e.options);
36
36
  return {
37
37
  queryKey: e.queryKey,
38
38
  queryFn: e.queryFn,
@@ -95,7 +95,7 @@ function U(e, n = {}) {
95
95
  });
96
96
  return i(a);
97
97
  }
98
- function x(e = {}) {
98
+ function Q(e = {}) {
99
99
  return o({
100
100
  mutationFn: async (n) => await r.chat.postComment(n),
101
101
  onSuccess: e.onSuccess,
@@ -104,7 +104,7 @@ function x(e = {}) {
104
104
  retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
105
105
  });
106
106
  }
107
- function Q(e = {}) {
107
+ function x(e = {}) {
108
108
  return o({
109
109
  mutationFn: async (n) => await r.chat.updateComment(n),
110
110
  onSuccess: e.onSuccess,
@@ -140,7 +140,7 @@ function _(e = {}) {
140
140
  retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
141
141
  });
142
142
  }
143
- function L(e, n, t = {}) {
143
+ function p(e, n, t = {}) {
144
144
  const u = t.enabled !== !1 && !!e && !!n, a = c(async () => (k(
145
145
  { userId: e, threadId: n },
146
146
  "User ID and Thread ID are required to check subscription status"
@@ -152,13 +152,13 @@ function L(e, n, t = {}) {
152
152
  });
153
153
  return i(s);
154
154
  }
155
- function H(e = {}) {
155
+ function L(e = {}) {
156
156
  return o({
157
157
  mutationFn: async (n) => await r.statement.createNewRun(n),
158
158
  ...e
159
159
  });
160
160
  }
161
- function V(e, n = {}) {
161
+ function H(e, n = {}) {
162
162
  const t = !!e, u = c(async () => {
163
163
  if (!e)
164
164
  throw new Error("Dataset ID is required");
@@ -173,7 +173,7 @@ function V(e, n = {}) {
173
173
  });
174
174
  return i(a);
175
175
  }
176
- function p() {
176
+ function V() {
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,
@@ -345,8 +345,8 @@ function ue(e, n, t = {}) {
345
345
  pageParams: a,
346
346
  sortParams: s,
347
347
  offsetParam: w,
348
- ...b
349
- } = t, g = b.enabled !== !1 && !!e && !!n, q = c(async () => {
348
+ ...g
349
+ } = t, b = g.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({
@@ -360,8 +360,8 @@ function ue(e, n, t = {}) {
360
360
  }), f = y({
361
361
  queryKey: ["inputTableData", e, n],
362
362
  queryFn: q,
363
- enabled: g,
364
- options: b
363
+ enabled: b,
364
+ options: g
365
365
  });
366
366
  return i(f);
367
367
  }
@@ -382,11 +382,11 @@ 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 = {}, 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];
385
+ ], { limit: u, offset: a, order: s, order_by: w, ...g } = n, b = {}, q = { limit: u, offset: a, order: s, order_by: w };
386
+ Object.keys(g).forEach((d) => {
387
+ t.includes(d) ? b[d] = g[d] : q[d] = g[d];
388
388
  });
389
- const f = g.enabled !== !1 && !!e, m = c(async () => {
389
+ const f = b.enabled !== !1 && !!e, m = c(async () => {
390
390
  if (!e)
391
391
  throw new Error("Table ID is required");
392
392
  return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, q);
@@ -394,7 +394,7 @@ function ae(e, n = {}) {
394
394
  queryKey: ["inputTableRows", e, n],
395
395
  queryFn: m,
396
396
  enabled: f,
397
- options: g
397
+ options: b
398
398
  });
399
399
  return i(T);
400
400
  }
@@ -475,13 +475,13 @@ function we(e = {}) {
475
475
  ...e
476
476
  });
477
477
  }
478
- function be(e = {}) {
478
+ function ge(e = {}) {
479
479
  return o({
480
480
  mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(n)),
481
481
  ...e
482
482
  });
483
483
  }
484
- function ge(e = {}) {
484
+ function be(e = {}) {
485
485
  return o({
486
486
  mutationFn: async (n) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(n)),
487
487
  ...e
@@ -508,7 +508,7 @@ function qe(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 = D();
511
+ const w = S();
512
512
  if (!w.userId)
513
513
  throw new Error(
514
514
  "@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
@@ -592,13 +592,13 @@ function Te(e = {}) {
592
592
  ...e
593
593
  });
594
594
  }
595
- function De(e = {}) {
595
+ function Se(e = {}) {
596
596
  return o({
597
597
  mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
598
598
  ...e
599
599
  });
600
600
  }
601
- function Se(e, n, t = {}) {
601
+ function De(e, n, t = {}) {
602
602
  const u = !!e && !!n, a = c(async () => {
603
603
  if (!e || !n)
604
604
  throw new Error("Form instance ID and revision are required");
@@ -613,7 +613,7 @@ function Se(e, n, t = {}) {
613
613
  })
614
614
  );
615
615
  }
616
- function Ce(e, n = {}) {
616
+ function Ke(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 Ce(e, n = {}) {
626
626
  });
627
627
  return i(a);
628
628
  }
629
- function Ke(e, n = {}) {
629
+ function Ce(e, n = {}) {
630
630
  return i({
631
631
  queryKey: ["form", e],
632
632
  queryFn: async () => {
@@ -696,39 +696,71 @@ function Ae(e = {}) {
696
696
  ...e
697
697
  });
698
698
  }
699
- function Ue(e = {}, n = {}) {
699
+ function Ue(e, n = {}) {
700
+ return i({
701
+ queryKey: ["processTriggers", e],
702
+ queryFn: async () => await r.process.getTriggersBySheet(e),
703
+ enabled: !!e,
704
+ ...n
705
+ });
706
+ }
707
+ function Qe(e = {}) {
708
+ const n = l();
709
+ return o({
710
+ mutationFn: async (t) => await r.process.registerProcessTrigger(t),
711
+ onSuccess: (t, u) => {
712
+ n.invalidateQueries({
713
+ queryKey: ["processTriggers", u.process_sheet_id]
714
+ });
715
+ },
716
+ ...e
717
+ });
718
+ }
719
+ function xe(e = {}) {
720
+ const n = l();
721
+ return o({
722
+ mutationFn: async ({ id: t }) => await r.process.deleteProcessTrigger(t),
723
+ onSuccess: (t, u) => {
724
+ n.invalidateQueries({
725
+ queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
726
+ });
727
+ },
728
+ ...e
729
+ });
730
+ }
731
+ function Ie(e = {}, n = {}) {
700
732
  return i({
701
733
  queryKey: ["inboxItems", "all", e.page, e.perPage],
702
734
  queryFn: async () => await r.inboxItems.getAllInboxItems(e),
703
735
  ...n
704
736
  });
705
737
  }
706
- function xe(e = {}) {
738
+ function Me(e = {}) {
707
739
  return o({
708
740
  mutationFn: async (n) => await r.inboxItems.markItemAsRead(n),
709
741
  ...e
710
742
  });
711
743
  }
712
- function Qe(e = {}) {
744
+ function _e(e = {}) {
713
745
  return o({
714
746
  mutationFn: async (n) => await r.inboxItems.markItemAsUnread(n),
715
747
  ...e
716
748
  });
717
749
  }
718
- function Ie(e = {}) {
750
+ function pe(e = {}) {
719
751
  return o({
720
752
  mutationFn: async (n) => await r.inboxItems.createInboxItemPerUser(n),
721
753
  ...e
722
754
  });
723
755
  }
724
- function Me(e, n = {}) {
756
+ function Le(e, n = {}) {
725
757
  return i({
726
758
  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
759
  queryFn: async () => await r.emailEngine.getAllConversations(e),
728
760
  ...n
729
761
  });
730
762
  }
731
- function _e(e, n = {}) {
763
+ function He(e, n = {}) {
732
764
  return i({
733
765
  queryKey: ["emailConversation", e],
734
766
  queryFn: async () => await r.emailEngine.getConversation({
@@ -738,7 +770,7 @@ function _e(e, n = {}) {
738
770
  ...n
739
771
  });
740
772
  }
741
- function Le(e = {}) {
773
+ function Ve(e = {}) {
742
774
  const n = l();
743
775
  return o({
744
776
  mutationFn: async (t) => await r.emailEngine.createConversation(t),
@@ -748,7 +780,7 @@ function Le(e = {}) {
748
780
  ...e
749
781
  });
750
782
  }
751
- function He(e = {}) {
783
+ function Ne(e = {}) {
752
784
  const n = l();
753
785
  return o({
754
786
  mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
@@ -760,7 +792,7 @@ function He(e = {}) {
760
792
  ...e
761
793
  });
762
794
  }
763
- function Ve(e, n = {}) {
795
+ function ze(e, n = {}) {
764
796
  return i({
765
797
  queryKey: [
766
798
  "emailMessagesBySender",
@@ -775,7 +807,7 @@ function Ve(e, n = {}) {
775
807
  ...n
776
808
  });
777
809
  }
778
- function pe(e = {}) {
810
+ function Ye(e = {}) {
779
811
  const n = c(async () => await r.tcn.getAuthUrl()), t = y({
780
812
  queryKey: ["tcn", "authUrl"],
781
813
  queryFn: n,
@@ -784,67 +816,67 @@ function pe(e = {}) {
784
816
  });
785
817
  return i(t);
786
818
  }
787
- function Ne(e = {}) {
819
+ function $e(e = {}) {
788
820
  return o({
789
821
  mutationFn: async ({ code: n }) => await r.tcn.exchangeCode(n),
790
822
  ...e
791
823
  });
792
824
  }
793
- function ze(e = {}) {
825
+ function Je(e = {}) {
794
826
  return o({
795
827
  mutationFn: async ({ refresh_token: n }) => await r.tcn.refreshToken(n),
796
828
  ...e
797
829
  });
798
830
  }
799
- function Ye(e = {}) {
831
+ function Xe(e = {}) {
800
832
  return o({
801
833
  mutationFn: async ({ token: n }) => await r.tcn.getCurrentAgent(n),
802
834
  ...e
803
835
  });
804
836
  }
805
- function $e(e = {}) {
837
+ function Ze(e = {}) {
806
838
  return o({
807
839
  mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getAgentSkills(n, t),
808
840
  ...e
809
841
  });
810
842
  }
811
- function Je(e = {}) {
843
+ function je(e = {}) {
812
844
  return o({
813
845
  mutationFn: async ({ token: n, huntGroupSid: t, skills: u }) => await r.tcn.createSession(n, t, u),
814
846
  ...e
815
847
  });
816
848
  }
817
- function Xe(e = {}) {
849
+ function en(e = {}) {
818
850
  return o({
819
851
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.keepAlive(n, t),
820
852
  ...e
821
853
  });
822
854
  }
823
- function Ze(e = {}) {
855
+ function nn(e = {}) {
824
856
  return o({
825
857
  mutationFn: async ({ token: n }) => await r.tcn.agentGetStatus(n),
826
858
  ...e
827
859
  });
828
860
  }
829
- function je(e = {}) {
861
+ function tn(e = {}) {
830
862
  return o({
831
863
  mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getHuntGroupAgentSettings(n, t),
832
864
  ...e
833
865
  });
834
866
  }
835
- function en(e = {}) {
867
+ function rn(e = {}) {
836
868
  return o({
837
869
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.dialManualPrepare(n, t),
838
870
  ...e
839
871
  });
840
872
  }
841
- function nn(e = {}) {
873
+ function un(e = {}) {
842
874
  return o({
843
875
  mutationFn: async ({ token: n, call: t }) => await r.tcn.processManualDial(n, t),
844
876
  ...e
845
877
  });
846
878
  }
847
- function tn(e = {}) {
879
+ function on(e = {}) {
848
880
  return o({
849
881
  mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: u, simpleCallData: a }) => await r.tcn.manualDialStart(
850
882
  n,
@@ -855,56 +887,56 @@ function tn(e = {}) {
855
887
  ...e
856
888
  });
857
889
  }
858
- function rn(e = {}) {
890
+ function an(e = {}) {
859
891
  return o({
860
892
  mutationFn: async ({ token: n, sessionSid: t, reason: u }) => await r.tcn.agentDisconnect(n, t, u),
861
893
  ...e
862
894
  });
863
895
  }
864
- function un(e = {}) {
896
+ function sn(e = {}) {
865
897
  return o({
866
898
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentPause(n, t),
867
899
  ...e
868
900
  });
869
901
  }
870
- function on(e = {}) {
902
+ function cn(e = {}) {
871
903
  return o({
872
904
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentSetReady(n, t),
873
905
  ...e
874
906
  });
875
907
  }
876
- function an(e = {}) {
908
+ function yn(e = {}) {
877
909
  return o({
878
910
  mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentGetConnectedParty(n, t),
879
911
  ...e
880
912
  });
881
913
  }
882
- function sn(e = {}) {
914
+ function ln(e = {}) {
883
915
  return o({
884
916
  mutationFn: async ({ token: n, callSid: t }) => await r.tcn.getCallData(n, t),
885
917
  ...e
886
918
  });
887
919
  }
888
- function cn(e = {}) {
920
+ function wn(e = {}) {
889
921
  return o({
890
922
  mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentPutCallOnHold(n, t, u),
891
923
  ...e
892
924
  });
893
925
  }
894
- function yn(e = {}) {
926
+ function gn(e = {}) {
895
927
  return o({
896
928
  mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentGetCallFromHold(n, t, u),
897
929
  ...e
898
930
  });
899
931
  }
900
- function ln(e = {}) {
932
+ function bn(e = {}) {
901
933
  return i({
902
934
  queryKey: ["webcronWebhooks"],
903
935
  queryFn: async () => await r.webcron.listWebhooks(),
904
936
  ...e
905
937
  });
906
938
  }
907
- function wn(e, n = {}) {
939
+ function dn(e, n = {}) {
908
940
  return i({
909
941
  queryKey: ["webcronWebhook", e],
910
942
  queryFn: async () => await r.webcron.getWebhook(e),
@@ -912,7 +944,7 @@ function wn(e, n = {}) {
912
944
  ...n
913
945
  });
914
946
  }
915
- function bn(e = {}) {
947
+ function qn(e = {}) {
916
948
  const n = l();
917
949
  return o({
918
950
  mutationFn: async (t) => await r.webcron.createWebhook(t),
@@ -922,7 +954,7 @@ function bn(e = {}) {
922
954
  ...e
923
955
  });
924
956
  }
925
- function gn(e = {}) {
957
+ function fn(e = {}) {
926
958
  const n = l();
927
959
  return o({
928
960
  mutationFn: async (t) => await r.webcron.updateWebhook(t.id, t.data),
@@ -932,7 +964,7 @@ function gn(e = {}) {
932
964
  ...e
933
965
  });
934
966
  }
935
- function dn(e = {}) {
967
+ function Fn(e = {}) {
936
968
  const n = l();
937
969
  return o({
938
970
  mutationFn: async (t) => await r.webcron.deleteWebhook(t),
@@ -942,13 +974,13 @@ function dn(e = {}) {
942
974
  ...e
943
975
  });
944
976
  }
945
- function qn(e = {}) {
977
+ function hn(e = {}) {
946
978
  return o({
947
979
  mutationFn: async (n) => await r.webcron.testWebhook(n),
948
980
  ...e
949
981
  });
950
982
  }
951
- function fn(e, n, t = {}) {
983
+ function kn(e, n, t = {}) {
952
984
  return i({
953
985
  queryKey: ["webcronWebhookExecutions", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
954
986
  queryFn: async () => await r.webcron.getWebhookExecutions(e, n),
@@ -956,7 +988,7 @@ function fn(e, n, t = {}) {
956
988
  ...t
957
989
  });
958
990
  }
959
- function Fn(e, n = {}) {
991
+ function mn(e, n = {}) {
960
992
  return i({
961
993
  queryKey: ["webcronWebhookSchedules", e],
962
994
  queryFn: async () => await r.webcron.getWebhookSchedules(e),
@@ -964,7 +996,7 @@ function Fn(e, n = {}) {
964
996
  ...n
965
997
  });
966
998
  }
967
- function hn(e = {}) {
999
+ function Tn(e = {}) {
968
1000
  const n = l();
969
1001
  return o({
970
1002
  mutationFn: async (t) => await r.webcron.createWebhookSchedule(t.webhookId, t.data),
@@ -974,7 +1006,7 @@ function hn(e = {}) {
974
1006
  ...e
975
1007
  });
976
1008
  }
977
- function kn(e, n = {}) {
1009
+ function Sn(e, n = {}) {
978
1010
  return i({
979
1011
  queryKey: ["webcronSchedule", e],
980
1012
  queryFn: async () => await r.webcron.getSchedule(e),
@@ -982,7 +1014,7 @@ function kn(e, n = {}) {
982
1014
  ...n
983
1015
  });
984
1016
  }
985
- function mn(e = {}) {
1017
+ function Dn(e = {}) {
986
1018
  const n = l();
987
1019
  return o({
988
1020
  mutationFn: async (t) => await r.webcron.updateSchedule(t.id, t.data),
@@ -992,7 +1024,7 @@ function mn(e = {}) {
992
1024
  ...e
993
1025
  });
994
1026
  }
995
- function Tn(e = {}) {
1027
+ function Kn(e = {}) {
996
1028
  const n = l();
997
1029
  return o({
998
1030
  mutationFn: async (t) => await r.webcron.deleteSchedule(t),
@@ -1002,7 +1034,7 @@ function Tn(e = {}) {
1002
1034
  ...e
1003
1035
  });
1004
1036
  }
1005
- function Dn(e = {}) {
1037
+ function Cn(e = {}) {
1006
1038
  const n = l();
1007
1039
  return o({
1008
1040
  mutationFn: async (t) => await r.webcron.pauseSchedule(t),
@@ -1012,7 +1044,7 @@ function Dn(e = {}) {
1012
1044
  ...e
1013
1045
  });
1014
1046
  }
1015
- function Sn(e = {}) {
1047
+ function En(e = {}) {
1016
1048
  const n = l();
1017
1049
  return o({
1018
1050
  mutationFn: async (t) => await r.webcron.resumeSchedule(t),
@@ -1022,7 +1054,7 @@ function Sn(e = {}) {
1022
1054
  ...e
1023
1055
  });
1024
1056
  }
1025
- function Cn(e = {}) {
1057
+ function Bn(e = {}) {
1026
1058
  const n = l();
1027
1059
  return o({
1028
1060
  mutationFn: async (t) => await r.webcron.triggerSchedule(t),
@@ -1032,14 +1064,14 @@ function Cn(e = {}) {
1032
1064
  ...e
1033
1065
  });
1034
1066
  }
1035
- function Kn(e, n = {}) {
1067
+ function Rn(e, n = {}) {
1036
1068
  return i({
1037
1069
  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],
1038
1070
  queryFn: async () => await r.webcron.listExecutions(e),
1039
1071
  ...n
1040
1072
  });
1041
1073
  }
1042
- function En(e, n = {}) {
1074
+ function Wn(e, n = {}) {
1043
1075
  return i({
1044
1076
  queryKey: ["webcronExecution", e],
1045
1077
  queryFn: async () => await r.webcron.getExecution(e),
@@ -1047,7 +1079,7 @@ function En(e, n = {}) {
1047
1079
  ...n
1048
1080
  });
1049
1081
  }
1050
- function Bn(e = {}) {
1082
+ function Gn(e = {}) {
1051
1083
  const n = l();
1052
1084
  return o({
1053
1085
  mutationFn: async (t) => await r.webcron.retryExecution(t),
@@ -1057,14 +1089,14 @@ function Bn(e = {}) {
1057
1089
  ...e
1058
1090
  });
1059
1091
  }
1060
- function Rn(e = {}) {
1092
+ function On(e = {}) {
1061
1093
  return i({
1062
1094
  queryKey: ["webcronTasks"],
1063
1095
  queryFn: async () => await r.webcron.listTasks(),
1064
1096
  ...e
1065
1097
  });
1066
1098
  }
1067
- function Wn(e = {}) {
1099
+ function vn(e = {}) {
1068
1100
  const n = l();
1069
1101
  return o({
1070
1102
  mutationFn: async (t) => await r.webcron.createTask(t),
@@ -1074,7 +1106,7 @@ function Wn(e = {}) {
1074
1106
  ...e
1075
1107
  });
1076
1108
  }
1077
- function Gn(e, n = {}) {
1109
+ function Pn(e, n = {}) {
1078
1110
  return i({
1079
1111
  queryKey: ["webcronTask", e],
1080
1112
  queryFn: async () => await r.webcron.getTask(e),
@@ -1082,7 +1114,7 @@ function Gn(e, n = {}) {
1082
1114
  ...n
1083
1115
  });
1084
1116
  }
1085
- function On(e = {}) {
1117
+ function An(e = {}) {
1086
1118
  const n = l();
1087
1119
  return o({
1088
1120
  mutationFn: async (t) => await r.webcron.cancelTask(t),
@@ -1092,7 +1124,7 @@ function On(e = {}) {
1092
1124
  ...e
1093
1125
  });
1094
1126
  }
1095
- function vn(e = {}) {
1127
+ function Un(e = {}) {
1096
1128
  const n = l();
1097
1129
  return o({
1098
1130
  mutationFn: async (t) => await r.webcron.retryTask(t),
@@ -1102,7 +1134,7 @@ function vn(e = {}) {
1102
1134
  ...e
1103
1135
  });
1104
1136
  }
1105
- function Pn(e = {}) {
1137
+ function Qn(e = {}) {
1106
1138
  const n = l();
1107
1139
  return o({
1108
1140
  mutationFn: async (t) => await r.webcron.progressTask(t.id, t.data),
@@ -1112,7 +1144,7 @@ function Pn(e = {}) {
1112
1144
  ...e
1113
1145
  });
1114
1146
  }
1115
- function An(e = {}) {
1147
+ function xn(e = {}) {
1116
1148
  const n = l();
1117
1149
  return o({
1118
1150
  mutationFn: async (t) => await r.webcron.signalTask(t.id, t.data, t.branchId),
@@ -1122,14 +1154,14 @@ function An(e = {}) {
1122
1154
  ...e
1123
1155
  });
1124
1156
  }
1125
- function Un(e = {}) {
1157
+ function In(e = {}) {
1126
1158
  return i({
1127
1159
  queryKey: ["webcronBins"],
1128
1160
  queryFn: async () => await r.webcron.listBins(),
1129
1161
  ...e
1130
1162
  });
1131
1163
  }
1132
- function xn(e, n = {}) {
1164
+ function Mn(e, n = {}) {
1133
1165
  return i({
1134
1166
  queryKey: ["webcronBin", e],
1135
1167
  queryFn: async () => await r.webcron.getBin(e),
@@ -1137,7 +1169,7 @@ function xn(e, n = {}) {
1137
1169
  ...n
1138
1170
  });
1139
1171
  }
1140
- function Qn(e = {}) {
1172
+ function _n(e = {}) {
1141
1173
  const n = l();
1142
1174
  return o({
1143
1175
  mutationFn: async (t) => await r.webcron.createBin(t),
@@ -1147,7 +1179,7 @@ function Qn(e = {}) {
1147
1179
  ...e
1148
1180
  });
1149
1181
  }
1150
- function In(e = {}) {
1182
+ function pn(e = {}) {
1151
1183
  const n = l();
1152
1184
  return o({
1153
1185
  mutationFn: async (t) => await r.webcron.deleteBin(t),
@@ -1157,7 +1189,7 @@ function In(e = {}) {
1157
1189
  ...e
1158
1190
  });
1159
1191
  }
1160
- function Mn(e, n, t = {}) {
1192
+ function Ln(e, n, t = {}) {
1161
1193
  return i({
1162
1194
  queryKey: ["webcronBinRequests", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
1163
1195
  queryFn: async () => await r.webcron.getBinRequests(e, n),
@@ -1165,7 +1197,7 @@ function Mn(e, n, t = {}) {
1165
1197
  ...t
1166
1198
  });
1167
1199
  }
1168
- function _n(e = {}) {
1200
+ function Hn(e = {}) {
1169
1201
  const n = l();
1170
1202
  return o({
1171
1203
  mutationFn: async (t) => await r.webcron.clearBinRequests(t),
@@ -1175,7 +1207,7 @@ function _n(e = {}) {
1175
1207
  ...e
1176
1208
  });
1177
1209
  }
1178
- function Ln(e = {}) {
1210
+ function Vn(e = {}) {
1179
1211
  return o({
1180
1212
  mutationFn: async (n) => await r.webcron.triggerWorkflowById(
1181
1213
  n.id,
@@ -1185,64 +1217,66 @@ function Ln(e = {}) {
1185
1217
  });
1186
1218
  }
1187
1219
  export {
1188
- Nn as ReactQueryDevtools,
1220
+ $n as ReactQueryDevtools,
1189
1221
  E as WorkflowStatus,
1190
1222
  G as reactQuery,
1191
- On as useCancelTask,
1192
- L as useCheckSubscriptionStatus,
1193
- _n as useClearBinRequests,
1223
+ An as useCancelTask,
1224
+ p as useCheckSubscriptionStatus,
1225
+ Hn as useClearBinRequests,
1194
1226
  Re as useCreateAuditLog,
1195
- Le as useCreateConversation,
1196
- Ie as useCreateInboxItemPerUser,
1197
- Qn as useCreateInspectionBin,
1227
+ Ve as useCreateConversation,
1228
+ pe as useCreateInboxItemPerUser,
1229
+ _n as useCreateInspectionBin,
1198
1230
  Ee as useCreateOrUpdateForm,
1199
- H as useCreateStatementRun,
1200
- Wn as useCreateTask,
1231
+ L as useCreateStatementRun,
1232
+ vn as useCreateTask,
1201
1233
  A as useCreateThread,
1202
- bn as useCreateWebhook,
1203
- hn as useCreateWebhookSchedule,
1204
- V as useDataset,
1234
+ qn as useCreateWebhook,
1235
+ Tn as useCreateWebhookSchedule,
1236
+ H as useDataset,
1205
1237
  P as useDatasetSample,
1206
1238
  I as useDeleteComment,
1207
- In as useDeleteInspectionBin,
1239
+ pn as useDeleteInspectionBin,
1240
+ xe as useDeleteProcessTrigger,
1208
1241
  ce as useDeleteRow,
1209
- Tn as useDeleteSchedule,
1210
- dn as useDeleteWebhook,
1242
+ Kn as useDeleteSchedule,
1243
+ Fn as useDeleteWebhook,
1211
1244
  qe as useDocumentPermissions,
1212
1245
  Fe as useFileDownload,
1213
1246
  fe as useFileUpload,
1214
- Ve as useFilterMessagesBySenderId,
1215
- Me as useGetAllConversations,
1247
+ ze as useFilterMessagesBySenderId,
1248
+ Le as useGetAllConversations,
1216
1249
  ve as useGetAllHttpTriggers,
1217
- Ue as useGetAllInboxItems,
1250
+ Ie as useGetAllInboxItems,
1218
1251
  Ge as useGetAllRecon,
1219
1252
  We as useGetAllTemplatedPipelines,
1220
1253
  Oe as useGetAllUsers,
1221
1254
  Be as useGetAuditLogs,
1222
- Mn as useGetBinRequests,
1255
+ Ln as useGetBinRequests,
1223
1256
  U as useGetCommentsByThreadId,
1224
- _e as useGetConversation,
1225
- p as useGetDatasets,
1226
- En as useGetExecution,
1257
+ He as useGetConversation,
1258
+ V as useGetDatasets,
1259
+ Wn as useGetExecution,
1227
1260
  N as useGetFileUrlByFileId,
1228
- Ke as useGetFormById,
1229
- Ce as useGetFormData,
1230
- Se as useGetFormSchema,
1261
+ Ce as useGetFormById,
1262
+ Ke as useGetFormData,
1263
+ De as useGetFormSchema,
1231
1264
  oe as useGetInputTables,
1232
- xn as useGetInspectionBin,
1265
+ Mn as useGetInspectionBin,
1233
1266
  z as useGetPublishedWorkbookById,
1234
1267
  Y as useGetRunResultById,
1235
1268
  $ as useGetRunsByViewId,
1236
- kn as useGetSchedule,
1269
+ Sn as useGetSchedule,
1237
1270
  J as useGetStatementData,
1238
1271
  X as useGetTableById,
1239
- Gn as useGetTask,
1272
+ Pn as useGetTask,
1240
1273
  he as useGetTaskDetails,
1274
+ Ue as useGetTriggersBySheet,
1241
1275
  Z as useGetViewById,
1242
1276
  j as useGetViewsBySheetId,
1243
- wn as useGetWebhook,
1244
- fn as useGetWebhookExecutions,
1245
- Fn as useGetWebhookSchedules,
1277
+ dn as useGetWebhook,
1278
+ kn as useGetWebhookExecutions,
1279
+ mn as useGetWebhookSchedules,
1246
1280
  ke as useGetWorkbookDetails,
1247
1281
  ee as useGetWorkbooksByType,
1248
1282
  ne as useGetWorkflowInstanceStatusById,
@@ -1250,60 +1284,61 @@ export {
1250
1284
  re as useGetWorksheetsByType,
1251
1285
  ue as useInputTable,
1252
1286
  ie as useInsertRow,
1253
- Kn as useListExecutions,
1254
- Un as useListInspectionBins,
1255
- Rn as useListTasks,
1256
- ln as useListWebhooks,
1257
- xe as useMarkItemAsRead,
1258
- Qe as useMarkItemAsUnread,
1287
+ Rn as useListExecutions,
1288
+ In as useListInspectionBins,
1289
+ On as useListTasks,
1290
+ bn as useListWebhooks,
1291
+ Me as useMarkItemAsRead,
1292
+ _e as useMarkItemAsUnread,
1259
1293
  Pe as useMarkTaskDone,
1260
1294
  v as useMetric,
1261
- Dn as usePauseSchedule,
1262
- x as usePostComment,
1295
+ Cn as usePauseSchedule,
1296
+ Q as usePostComment,
1263
1297
  Te as usePublishWorkbook,
1264
1298
  Ae as useReassignTask,
1265
- He as useReplyToConversation,
1266
- Sn as useResumeSchedule,
1267
- Bn as useRetryExecution,
1268
- vn as useRetryTask,
1299
+ Qe as useRegisterProcessTrigger,
1300
+ Ne as useReplyToConversation,
1301
+ En as useResumeSchedule,
1302
+ Gn as useRetryExecution,
1303
+ Un as useRetryTask,
1269
1304
  ae as useRows,
1270
1305
  ye as useRunDefinition,
1271
1306
  le as useRunPublishedDefinition,
1272
- De as useRunRecon,
1307
+ Se as useRunRecon,
1273
1308
  we as useRunSampleDefinition,
1274
1309
  me as useSaveWorkbook,
1275
1310
  M as useSubscribeUser,
1276
- Pn as useTaskProgress,
1277
- An as useTaskSignal,
1278
- rn as useTcnAgentDisconnect,
1279
- yn as useTcnAgentGetCallFromHold,
1280
- Ze as useTcnAgentGetStatus,
1281
- un as useTcnAgentPause,
1282
- cn as useTcnAgentPutCallOnHold,
1283
- on as useTcnAgentSetReady,
1284
- $e as useTcnAgentSkills,
1285
- pe as useTcnAuthUrl,
1286
- sn as useTcnCallData,
1287
- an as useTcnConnectedParty,
1288
- Je as useTcnCreateSession,
1289
- Ye as useTcnCurrentAgent,
1290
- en as useTcnDialManualPrepare,
1291
- Ne as useTcnExchangeCode,
1292
- je as useTcnHuntGroupSettings,
1293
- Xe as useTcnKeepAlive,
1294
- tn as useTcnManualDialStart,
1295
- nn as useTcnProcessManualDial,
1296
- ze as useTcnRefreshToken,
1297
- qn as useTestWebhook,
1298
- be as useTriggerHttpWorkflow,
1299
- Cn as useTriggerSchedule,
1300
- ge as useTriggerWorkflow,
1301
- Ln as useTriggerWorkflowById,
1311
+ Qn as useTaskProgress,
1312
+ xn as useTaskSignal,
1313
+ an as useTcnAgentDisconnect,
1314
+ gn as useTcnAgentGetCallFromHold,
1315
+ nn as useTcnAgentGetStatus,
1316
+ sn as useTcnAgentPause,
1317
+ wn as useTcnAgentPutCallOnHold,
1318
+ cn as useTcnAgentSetReady,
1319
+ Ze as useTcnAgentSkills,
1320
+ Ye as useTcnAuthUrl,
1321
+ ln as useTcnCallData,
1322
+ yn as useTcnConnectedParty,
1323
+ je as useTcnCreateSession,
1324
+ Xe as useTcnCurrentAgent,
1325
+ rn as useTcnDialManualPrepare,
1326
+ $e as useTcnExchangeCode,
1327
+ tn as useTcnHuntGroupSettings,
1328
+ en as useTcnKeepAlive,
1329
+ on as useTcnManualDialStart,
1330
+ un as useTcnProcessManualDial,
1331
+ Je as useTcnRefreshToken,
1332
+ hn as useTestWebhook,
1333
+ ge as useTriggerHttpWorkflow,
1334
+ Bn as useTriggerSchedule,
1335
+ be as useTriggerWorkflow,
1336
+ Vn as useTriggerWorkflowById,
1302
1337
  _ as useUnsubscribeUser,
1303
- Q as useUpdateComment,
1338
+ x as useUpdateComment,
1304
1339
  se as useUpdateRow,
1305
- mn as useUpdateSchedule,
1306
- gn as useUpdateWebhook,
1340
+ Dn as useUpdateSchedule,
1341
+ fn as useUpdateWebhook,
1307
1342
  B as useUser,
1308
1343
  de as useUserDetails
1309
1344
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluecopa/react",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "description": "Bluecopa react library with TanStack Query integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",
@@ -27,7 +27,7 @@
27
27
  "react-dom": ">=18.0.0"
28
28
  },
29
29
  "dependencies": {
30
- "@bluecopa/core": "0.1.68",
30
+ "@bluecopa/core": "0.1.69",
31
31
  "@tanstack/react-query": "5.59.0",
32
32
  "@tanstack/react-query-devtools": "5.59.0"
33
33
  },