@bluecopa/react 0.1.70 → 0.1.72
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/hooks/useDeleteProcessTrigger.d.ts +14 -0
- package/dist/hooks/useDeleteProcessTrigger.d.ts.map +1 -0
- package/dist/hooks/useGetTriggersBySheet.d.ts +10 -0
- package/dist/hooks/useGetTriggersBySheet.d.ts.map +1 -0
- package/dist/hooks/useRegisterProcessTrigger.d.ts +10 -0
- package/dist/hooks/useRegisterProcessTrigger.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +198 -163
- package/package.json +2 -2
|
@@ -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';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B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A2B,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,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
|
|
3
|
+
import { copaApi as r, copaGetConfig as S } from "@bluecopa/core";
|
|
4
4
|
export * from "@bluecopa/core";
|
|
5
|
-
import { ReactQueryDevtools as
|
|
6
|
-
const
|
|
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
|
|
15
|
+
function K(e = {}) {
|
|
16
16
|
return {
|
|
17
|
-
...
|
|
17
|
+
...D,
|
|
18
18
|
...e
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
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
|
|
32
|
+
return async () => (await C(t), await e());
|
|
33
33
|
}
|
|
34
34
|
function y(e) {
|
|
35
|
-
const n =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
...
|
|
349
|
-
} = t,
|
|
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:
|
|
364
|
-
options:
|
|
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, ...
|
|
386
|
-
Object.keys(
|
|
387
|
-
t.includes(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 =
|
|
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:
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
1220
|
+
$n as ReactQueryDevtools,
|
|
1189
1221
|
E as WorkflowStatus,
|
|
1190
1222
|
G as reactQuery,
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1223
|
+
An as useCancelTask,
|
|
1224
|
+
p as useCheckSubscriptionStatus,
|
|
1225
|
+
Hn as useClearBinRequests,
|
|
1194
1226
|
Re as useCreateAuditLog,
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1227
|
+
Ve as useCreateConversation,
|
|
1228
|
+
pe as useCreateInboxItemPerUser,
|
|
1229
|
+
_n as useCreateInspectionBin,
|
|
1198
1230
|
Ee as useCreateOrUpdateForm,
|
|
1199
|
-
|
|
1200
|
-
|
|
1231
|
+
L as useCreateStatementRun,
|
|
1232
|
+
vn as useCreateTask,
|
|
1201
1233
|
A as useCreateThread,
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1234
|
+
qn as useCreateWebhook,
|
|
1235
|
+
Tn as useCreateWebhookSchedule,
|
|
1236
|
+
H as useDataset,
|
|
1205
1237
|
P as useDatasetSample,
|
|
1206
1238
|
I as useDeleteComment,
|
|
1207
|
-
|
|
1239
|
+
pn as useDeleteInspectionBin,
|
|
1240
|
+
xe as useDeleteProcessTrigger,
|
|
1208
1241
|
ce as useDeleteRow,
|
|
1209
|
-
|
|
1210
|
-
|
|
1242
|
+
Kn as useDeleteSchedule,
|
|
1243
|
+
Fn as useDeleteWebhook,
|
|
1211
1244
|
qe as useDocumentPermissions,
|
|
1212
1245
|
Fe as useFileDownload,
|
|
1213
1246
|
fe as useFileUpload,
|
|
1214
|
-
|
|
1215
|
-
|
|
1247
|
+
ze as useFilterMessagesBySenderId,
|
|
1248
|
+
Le as useGetAllConversations,
|
|
1216
1249
|
ve as useGetAllHttpTriggers,
|
|
1217
|
-
|
|
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
|
-
|
|
1255
|
+
Ln as useGetBinRequests,
|
|
1223
1256
|
U as useGetCommentsByThreadId,
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1257
|
+
He as useGetConversation,
|
|
1258
|
+
V as useGetDatasets,
|
|
1259
|
+
Wn as useGetExecution,
|
|
1227
1260
|
N as useGetFileUrlByFileId,
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1261
|
+
Ce as useGetFormById,
|
|
1262
|
+
Ke as useGetFormData,
|
|
1263
|
+
De as useGetFormSchema,
|
|
1231
1264
|
oe as useGetInputTables,
|
|
1232
|
-
|
|
1265
|
+
Mn as useGetInspectionBin,
|
|
1233
1266
|
z as useGetPublishedWorkbookById,
|
|
1234
1267
|
Y as useGetRunResultById,
|
|
1235
1268
|
$ as useGetRunsByViewId,
|
|
1236
|
-
|
|
1269
|
+
Sn as useGetSchedule,
|
|
1237
1270
|
J as useGetStatementData,
|
|
1238
1271
|
X as useGetTableById,
|
|
1239
|
-
|
|
1272
|
+
Pn as useGetTask,
|
|
1240
1273
|
he as useGetTaskDetails,
|
|
1274
|
+
Ue as useGetTriggersBySheet,
|
|
1241
1275
|
Z as useGetViewById,
|
|
1242
1276
|
j as useGetViewsBySheetId,
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
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
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
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
|
-
|
|
1262
|
-
|
|
1295
|
+
Cn as usePauseSchedule,
|
|
1296
|
+
Q as usePostComment,
|
|
1263
1297
|
Te as usePublishWorkbook,
|
|
1264
1298
|
Ae as useReassignTask,
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
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
|
-
|
|
1307
|
+
Se as useRunRecon,
|
|
1273
1308
|
we as useRunSampleDefinition,
|
|
1274
1309
|
me as useSaveWorkbook,
|
|
1275
1310
|
M as useSubscribeUser,
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
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
|
-
|
|
1338
|
+
x as useUpdateComment,
|
|
1304
1339
|
se as useUpdateRow,
|
|
1305
|
-
|
|
1306
|
-
|
|
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.
|
|
3
|
+
"version": "0.1.72",
|
|
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.
|
|
30
|
+
"@bluecopa/core": "0.1.70",
|
|
31
31
|
"@tanstack/react-query": "5.59.0",
|
|
32
32
|
"@tanstack/react-query-devtools": "5.59.0"
|
|
33
33
|
},
|