@bluecopa/react 0.1.69 → 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.
- 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/hooks/useTcnAgentGetCallFromHold.d.ts +7 -0
- package/dist/hooks/useTcnAgentGetCallFromHold.d.ts.map +1 -0
- package/dist/hooks/useTcnAgentPutCallOnHold.d.ts +7 -0
- package/dist/hooks/useTcnAgentPutCallOnHold.d.ts.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +218 -169
- 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"}
|
|
@@ -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
|
@@ -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';
|
|
@@ -85,6 +88,8 @@ export * from './hooks/useTcnAgentPause';
|
|
|
85
88
|
export * from './hooks/useTcnAgentSetReady';
|
|
86
89
|
export * from './hooks/useTcnConnectedParty';
|
|
87
90
|
export * from './hooks/useTcnCallData';
|
|
91
|
+
export * from './hooks/useTcnAgentPutCallOnHold';
|
|
92
|
+
export * from './hooks/useTcnAgentGetCallFromHold';
|
|
88
93
|
export * from './hooks/useListWebhooks';
|
|
89
94
|
export * from './hooks/useGetWebhook';
|
|
90
95
|
export * from './hooks/useCreateWebhook';
|
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,cA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
|
-
import * as
|
|
3
|
-
import { copaApi as r, copaGetConfig as
|
|
2
|
+
import * as G from "@tanstack/react-query";
|
|
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
|
|
@@ -14,7 +14,7 @@ const S = {
|
|
|
14
14
|
};
|
|
15
15
|
function K(e = {}) {
|
|
16
16
|
return {
|
|
17
|
-
...
|
|
17
|
+
...D,
|
|
18
18
|
...e
|
|
19
19
|
};
|
|
20
20
|
}
|
|
@@ -45,7 +45,7 @@ function y(e) {
|
|
|
45
45
|
onError: n.onError
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
function
|
|
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");
|
|
@@ -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,7 +152,7 @@ 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
|
|
@@ -173,7 +173,7 @@ function H(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({
|
|
@@ -359,9 +359,9 @@ function ue(e, n, t = {}) {
|
|
|
359
359
|
});
|
|
360
360
|
}), f = y({
|
|
361
361
|
queryKey: ["inputTableData", e, n],
|
|
362
|
-
queryFn:
|
|
363
|
-
enabled:
|
|
364
|
-
options:
|
|
362
|
+
queryFn: q,
|
|
363
|
+
enabled: b,
|
|
364
|
+
options: g
|
|
365
365
|
});
|
|
366
366
|
return i(f);
|
|
367
367
|
}
|
|
@@ -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, ...
|
|
386
|
-
Object.keys(
|
|
387
|
-
t.includes(
|
|
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
|
-
return console.log("Fetching input table rows..."), await r.inputTable.getRows(e,
|
|
393
|
-
}),
|
|
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
|
-
options:
|
|
397
|
+
options: b
|
|
398
398
|
});
|
|
399
|
-
return i(
|
|
399
|
+
return i(T);
|
|
400
400
|
}
|
|
401
401
|
function ie(e = {}) {
|
|
402
402
|
const n = l();
|
|
@@ -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
|
|
@@ -496,10 +496,10 @@ function B(e = {}) {
|
|
|
496
496
|
});
|
|
497
497
|
return i(u);
|
|
498
498
|
}
|
|
499
|
-
const
|
|
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
|
|
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 =
|
|
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."
|
|
@@ -586,19 +586,19 @@ function me(e = {}) {
|
|
|
586
586
|
...e
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
|
-
function
|
|
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
|
|
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");
|
|
@@ -663,21 +663,21 @@ function We(e = {}) {
|
|
|
663
663
|
...e
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
function
|
|
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
|
|
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
|
|
680
|
+
function ve(e = {}) {
|
|
681
681
|
return i({
|
|
682
682
|
queryKey: ["httpTriggers"],
|
|
683
683
|
queryFn: async () => await r.workflow.getAllHttpTriggers(),
|
|
@@ -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 Ve(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 He(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,44 +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 = {}) {
|
|
921
|
+
return o({
|
|
922
|
+
mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentPutCallOnHold(n, t, u),
|
|
923
|
+
...e
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
function gn(e = {}) {
|
|
927
|
+
return o({
|
|
928
|
+
mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentGetCallFromHold(n, t, u),
|
|
929
|
+
...e
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
function bn(e = {}) {
|
|
889
933
|
return i({
|
|
890
934
|
queryKey: ["webcronWebhooks"],
|
|
891
935
|
queryFn: async () => await r.webcron.listWebhooks(),
|
|
892
936
|
...e
|
|
893
937
|
});
|
|
894
938
|
}
|
|
895
|
-
function
|
|
939
|
+
function dn(e, n = {}) {
|
|
896
940
|
return i({
|
|
897
941
|
queryKey: ["webcronWebhook", e],
|
|
898
942
|
queryFn: async () => await r.webcron.getWebhook(e),
|
|
@@ -900,7 +944,7 @@ function yn(e, n = {}) {
|
|
|
900
944
|
...n
|
|
901
945
|
});
|
|
902
946
|
}
|
|
903
|
-
function
|
|
947
|
+
function qn(e = {}) {
|
|
904
948
|
const n = l();
|
|
905
949
|
return o({
|
|
906
950
|
mutationFn: async (t) => await r.webcron.createWebhook(t),
|
|
@@ -910,7 +954,7 @@ function ln(e = {}) {
|
|
|
910
954
|
...e
|
|
911
955
|
});
|
|
912
956
|
}
|
|
913
|
-
function
|
|
957
|
+
function fn(e = {}) {
|
|
914
958
|
const n = l();
|
|
915
959
|
return o({
|
|
916
960
|
mutationFn: async (t) => await r.webcron.updateWebhook(t.id, t.data),
|
|
@@ -920,7 +964,7 @@ function wn(e = {}) {
|
|
|
920
964
|
...e
|
|
921
965
|
});
|
|
922
966
|
}
|
|
923
|
-
function
|
|
967
|
+
function Fn(e = {}) {
|
|
924
968
|
const n = l();
|
|
925
969
|
return o({
|
|
926
970
|
mutationFn: async (t) => await r.webcron.deleteWebhook(t),
|
|
@@ -930,13 +974,13 @@ function bn(e = {}) {
|
|
|
930
974
|
...e
|
|
931
975
|
});
|
|
932
976
|
}
|
|
933
|
-
function
|
|
977
|
+
function hn(e = {}) {
|
|
934
978
|
return o({
|
|
935
979
|
mutationFn: async (n) => await r.webcron.testWebhook(n),
|
|
936
980
|
...e
|
|
937
981
|
});
|
|
938
982
|
}
|
|
939
|
-
function
|
|
983
|
+
function kn(e, n, t = {}) {
|
|
940
984
|
return i({
|
|
941
985
|
queryKey: ["webcronWebhookExecutions", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
|
|
942
986
|
queryFn: async () => await r.webcron.getWebhookExecutions(e, n),
|
|
@@ -944,7 +988,7 @@ function qn(e, n, t = {}) {
|
|
|
944
988
|
...t
|
|
945
989
|
});
|
|
946
990
|
}
|
|
947
|
-
function
|
|
991
|
+
function mn(e, n = {}) {
|
|
948
992
|
return i({
|
|
949
993
|
queryKey: ["webcronWebhookSchedules", e],
|
|
950
994
|
queryFn: async () => await r.webcron.getWebhookSchedules(e),
|
|
@@ -952,7 +996,7 @@ function dn(e, n = {}) {
|
|
|
952
996
|
...n
|
|
953
997
|
});
|
|
954
998
|
}
|
|
955
|
-
function
|
|
999
|
+
function Tn(e = {}) {
|
|
956
1000
|
const n = l();
|
|
957
1001
|
return o({
|
|
958
1002
|
mutationFn: async (t) => await r.webcron.createWebhookSchedule(t.webhookId, t.data),
|
|
@@ -962,7 +1006,7 @@ function fn(e = {}) {
|
|
|
962
1006
|
...e
|
|
963
1007
|
});
|
|
964
1008
|
}
|
|
965
|
-
function
|
|
1009
|
+
function Sn(e, n = {}) {
|
|
966
1010
|
return i({
|
|
967
1011
|
queryKey: ["webcronSchedule", e],
|
|
968
1012
|
queryFn: async () => await r.webcron.getSchedule(e),
|
|
@@ -970,7 +1014,7 @@ function Fn(e, n = {}) {
|
|
|
970
1014
|
...n
|
|
971
1015
|
});
|
|
972
1016
|
}
|
|
973
|
-
function
|
|
1017
|
+
function Dn(e = {}) {
|
|
974
1018
|
const n = l();
|
|
975
1019
|
return o({
|
|
976
1020
|
mutationFn: async (t) => await r.webcron.updateSchedule(t.id, t.data),
|
|
@@ -980,7 +1024,7 @@ function hn(e = {}) {
|
|
|
980
1024
|
...e
|
|
981
1025
|
});
|
|
982
1026
|
}
|
|
983
|
-
function
|
|
1027
|
+
function Kn(e = {}) {
|
|
984
1028
|
const n = l();
|
|
985
1029
|
return o({
|
|
986
1030
|
mutationFn: async (t) => await r.webcron.deleteSchedule(t),
|
|
@@ -990,7 +1034,7 @@ function kn(e = {}) {
|
|
|
990
1034
|
...e
|
|
991
1035
|
});
|
|
992
1036
|
}
|
|
993
|
-
function
|
|
1037
|
+
function Cn(e = {}) {
|
|
994
1038
|
const n = l();
|
|
995
1039
|
return o({
|
|
996
1040
|
mutationFn: async (t) => await r.webcron.pauseSchedule(t),
|
|
@@ -1000,7 +1044,7 @@ function mn(e = {}) {
|
|
|
1000
1044
|
...e
|
|
1001
1045
|
});
|
|
1002
1046
|
}
|
|
1003
|
-
function
|
|
1047
|
+
function En(e = {}) {
|
|
1004
1048
|
const n = l();
|
|
1005
1049
|
return o({
|
|
1006
1050
|
mutationFn: async (t) => await r.webcron.resumeSchedule(t),
|
|
@@ -1010,7 +1054,7 @@ function Dn(e = {}) {
|
|
|
1010
1054
|
...e
|
|
1011
1055
|
});
|
|
1012
1056
|
}
|
|
1013
|
-
function
|
|
1057
|
+
function Bn(e = {}) {
|
|
1014
1058
|
const n = l();
|
|
1015
1059
|
return o({
|
|
1016
1060
|
mutationFn: async (t) => await r.webcron.triggerSchedule(t),
|
|
@@ -1020,14 +1064,14 @@ function Tn(e = {}) {
|
|
|
1020
1064
|
...e
|
|
1021
1065
|
});
|
|
1022
1066
|
}
|
|
1023
|
-
function
|
|
1067
|
+
function Rn(e, n = {}) {
|
|
1024
1068
|
return i({
|
|
1025
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],
|
|
1026
1070
|
queryFn: async () => await r.webcron.listExecutions(e),
|
|
1027
1071
|
...n
|
|
1028
1072
|
});
|
|
1029
1073
|
}
|
|
1030
|
-
function
|
|
1074
|
+
function Wn(e, n = {}) {
|
|
1031
1075
|
return i({
|
|
1032
1076
|
queryKey: ["webcronExecution", e],
|
|
1033
1077
|
queryFn: async () => await r.webcron.getExecution(e),
|
|
@@ -1035,7 +1079,7 @@ function Kn(e, n = {}) {
|
|
|
1035
1079
|
...n
|
|
1036
1080
|
});
|
|
1037
1081
|
}
|
|
1038
|
-
function
|
|
1082
|
+
function Gn(e = {}) {
|
|
1039
1083
|
const n = l();
|
|
1040
1084
|
return o({
|
|
1041
1085
|
mutationFn: async (t) => await r.webcron.retryExecution(t),
|
|
@@ -1045,14 +1089,14 @@ function Cn(e = {}) {
|
|
|
1045
1089
|
...e
|
|
1046
1090
|
});
|
|
1047
1091
|
}
|
|
1048
|
-
function
|
|
1092
|
+
function On(e = {}) {
|
|
1049
1093
|
return i({
|
|
1050
1094
|
queryKey: ["webcronTasks"],
|
|
1051
1095
|
queryFn: async () => await r.webcron.listTasks(),
|
|
1052
1096
|
...e
|
|
1053
1097
|
});
|
|
1054
1098
|
}
|
|
1055
|
-
function
|
|
1099
|
+
function vn(e = {}) {
|
|
1056
1100
|
const n = l();
|
|
1057
1101
|
return o({
|
|
1058
1102
|
mutationFn: async (t) => await r.webcron.createTask(t),
|
|
@@ -1062,7 +1106,7 @@ function Bn(e = {}) {
|
|
|
1062
1106
|
...e
|
|
1063
1107
|
});
|
|
1064
1108
|
}
|
|
1065
|
-
function
|
|
1109
|
+
function Pn(e, n = {}) {
|
|
1066
1110
|
return i({
|
|
1067
1111
|
queryKey: ["webcronTask", e],
|
|
1068
1112
|
queryFn: async () => await r.webcron.getTask(e),
|
|
@@ -1070,7 +1114,7 @@ function Rn(e, n = {}) {
|
|
|
1070
1114
|
...n
|
|
1071
1115
|
});
|
|
1072
1116
|
}
|
|
1073
|
-
function
|
|
1117
|
+
function An(e = {}) {
|
|
1074
1118
|
const n = l();
|
|
1075
1119
|
return o({
|
|
1076
1120
|
mutationFn: async (t) => await r.webcron.cancelTask(t),
|
|
@@ -1080,7 +1124,7 @@ function Wn(e = {}) {
|
|
|
1080
1124
|
...e
|
|
1081
1125
|
});
|
|
1082
1126
|
}
|
|
1083
|
-
function
|
|
1127
|
+
function Un(e = {}) {
|
|
1084
1128
|
const n = l();
|
|
1085
1129
|
return o({
|
|
1086
1130
|
mutationFn: async (t) => await r.webcron.retryTask(t),
|
|
@@ -1090,7 +1134,7 @@ function vn(e = {}) {
|
|
|
1090
1134
|
...e
|
|
1091
1135
|
});
|
|
1092
1136
|
}
|
|
1093
|
-
function
|
|
1137
|
+
function Qn(e = {}) {
|
|
1094
1138
|
const n = l();
|
|
1095
1139
|
return o({
|
|
1096
1140
|
mutationFn: async (t) => await r.webcron.progressTask(t.id, t.data),
|
|
@@ -1100,7 +1144,7 @@ function Gn(e = {}) {
|
|
|
1100
1144
|
...e
|
|
1101
1145
|
});
|
|
1102
1146
|
}
|
|
1103
|
-
function
|
|
1147
|
+
function xn(e = {}) {
|
|
1104
1148
|
const n = l();
|
|
1105
1149
|
return o({
|
|
1106
1150
|
mutationFn: async (t) => await r.webcron.signalTask(t.id, t.data, t.branchId),
|
|
@@ -1110,14 +1154,14 @@ function On(e = {}) {
|
|
|
1110
1154
|
...e
|
|
1111
1155
|
});
|
|
1112
1156
|
}
|
|
1113
|
-
function
|
|
1157
|
+
function In(e = {}) {
|
|
1114
1158
|
return i({
|
|
1115
1159
|
queryKey: ["webcronBins"],
|
|
1116
1160
|
queryFn: async () => await r.webcron.listBins(),
|
|
1117
1161
|
...e
|
|
1118
1162
|
});
|
|
1119
1163
|
}
|
|
1120
|
-
function
|
|
1164
|
+
function Mn(e, n = {}) {
|
|
1121
1165
|
return i({
|
|
1122
1166
|
queryKey: ["webcronBin", e],
|
|
1123
1167
|
queryFn: async () => await r.webcron.getBin(e),
|
|
@@ -1125,7 +1169,7 @@ function An(e, n = {}) {
|
|
|
1125
1169
|
...n
|
|
1126
1170
|
});
|
|
1127
1171
|
}
|
|
1128
|
-
function
|
|
1172
|
+
function _n(e = {}) {
|
|
1129
1173
|
const n = l();
|
|
1130
1174
|
return o({
|
|
1131
1175
|
mutationFn: async (t) => await r.webcron.createBin(t),
|
|
@@ -1135,7 +1179,7 @@ function Un(e = {}) {
|
|
|
1135
1179
|
...e
|
|
1136
1180
|
});
|
|
1137
1181
|
}
|
|
1138
|
-
function
|
|
1182
|
+
function pn(e = {}) {
|
|
1139
1183
|
const n = l();
|
|
1140
1184
|
return o({
|
|
1141
1185
|
mutationFn: async (t) => await r.webcron.deleteBin(t),
|
|
@@ -1145,7 +1189,7 @@ function xn(e = {}) {
|
|
|
1145
1189
|
...e
|
|
1146
1190
|
});
|
|
1147
1191
|
}
|
|
1148
|
-
function
|
|
1192
|
+
function Ln(e, n, t = {}) {
|
|
1149
1193
|
return i({
|
|
1150
1194
|
queryKey: ["webcronBinRequests", e, n == null ? void 0 : n.limit, n == null ? void 0 : n.offset],
|
|
1151
1195
|
queryFn: async () => await r.webcron.getBinRequests(e, n),
|
|
@@ -1153,7 +1197,7 @@ function Qn(e, n, t = {}) {
|
|
|
1153
1197
|
...t
|
|
1154
1198
|
});
|
|
1155
1199
|
}
|
|
1156
|
-
function
|
|
1200
|
+
function Hn(e = {}) {
|
|
1157
1201
|
const n = l();
|
|
1158
1202
|
return o({
|
|
1159
1203
|
mutationFn: async (t) => await r.webcron.clearBinRequests(t),
|
|
@@ -1163,7 +1207,7 @@ function In(e = {}) {
|
|
|
1163
1207
|
...e
|
|
1164
1208
|
});
|
|
1165
1209
|
}
|
|
1166
|
-
function
|
|
1210
|
+
function Vn(e = {}) {
|
|
1167
1211
|
return o({
|
|
1168
1212
|
mutationFn: async (n) => await r.webcron.triggerWorkflowById(
|
|
1169
1213
|
n.id,
|
|
@@ -1173,64 +1217,66 @@ function Mn(e = {}) {
|
|
|
1173
1217
|
});
|
|
1174
1218
|
}
|
|
1175
1219
|
export {
|
|
1176
|
-
|
|
1220
|
+
$n as ReactQueryDevtools,
|
|
1177
1221
|
E as WorkflowStatus,
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1222
|
+
G as reactQuery,
|
|
1223
|
+
An as useCancelTask,
|
|
1224
|
+
p as useCheckSubscriptionStatus,
|
|
1225
|
+
Hn as useClearBinRequests,
|
|
1182
1226
|
Re as useCreateAuditLog,
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1227
|
+
Ve as useCreateConversation,
|
|
1228
|
+
pe as useCreateInboxItemPerUser,
|
|
1229
|
+
_n as useCreateInspectionBin,
|
|
1186
1230
|
Ee as useCreateOrUpdateForm,
|
|
1187
|
-
|
|
1188
|
-
|
|
1231
|
+
L as useCreateStatementRun,
|
|
1232
|
+
vn as useCreateTask,
|
|
1189
1233
|
A as useCreateThread,
|
|
1190
|
-
|
|
1191
|
-
|
|
1234
|
+
qn as useCreateWebhook,
|
|
1235
|
+
Tn as useCreateWebhookSchedule,
|
|
1192
1236
|
H as useDataset,
|
|
1193
1237
|
P as useDatasetSample,
|
|
1194
1238
|
I as useDeleteComment,
|
|
1195
|
-
|
|
1239
|
+
pn as useDeleteInspectionBin,
|
|
1240
|
+
xe as useDeleteProcessTrigger,
|
|
1196
1241
|
ce as useDeleteRow,
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1242
|
+
Kn as useDeleteSchedule,
|
|
1243
|
+
Fn as useDeleteWebhook,
|
|
1244
|
+
qe as useDocumentPermissions,
|
|
1200
1245
|
Fe as useFileDownload,
|
|
1201
1246
|
fe as useFileUpload,
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1247
|
+
ze as useFilterMessagesBySenderId,
|
|
1248
|
+
Le as useGetAllConversations,
|
|
1249
|
+
ve as useGetAllHttpTriggers,
|
|
1250
|
+
Ie as useGetAllInboxItems,
|
|
1251
|
+
Ge as useGetAllRecon,
|
|
1207
1252
|
We as useGetAllTemplatedPipelines,
|
|
1208
|
-
|
|
1253
|
+
Oe as useGetAllUsers,
|
|
1209
1254
|
Be as useGetAuditLogs,
|
|
1210
|
-
|
|
1255
|
+
Ln as useGetBinRequests,
|
|
1211
1256
|
U as useGetCommentsByThreadId,
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1257
|
+
He as useGetConversation,
|
|
1258
|
+
V as useGetDatasets,
|
|
1259
|
+
Wn as useGetExecution,
|
|
1215
1260
|
N as useGetFileUrlByFileId,
|
|
1216
1261
|
Ce as useGetFormById,
|
|
1217
1262
|
Ke as useGetFormData,
|
|
1218
|
-
|
|
1263
|
+
De as useGetFormSchema,
|
|
1219
1264
|
oe as useGetInputTables,
|
|
1220
|
-
|
|
1265
|
+
Mn as useGetInspectionBin,
|
|
1221
1266
|
z as useGetPublishedWorkbookById,
|
|
1222
1267
|
Y as useGetRunResultById,
|
|
1223
1268
|
$ as useGetRunsByViewId,
|
|
1224
|
-
|
|
1269
|
+
Sn as useGetSchedule,
|
|
1225
1270
|
J as useGetStatementData,
|
|
1226
1271
|
X as useGetTableById,
|
|
1227
|
-
|
|
1272
|
+
Pn as useGetTask,
|
|
1228
1273
|
he as useGetTaskDetails,
|
|
1274
|
+
Ue as useGetTriggersBySheet,
|
|
1229
1275
|
Z as useGetViewById,
|
|
1230
1276
|
j as useGetViewsBySheetId,
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1277
|
+
dn as useGetWebhook,
|
|
1278
|
+
kn as useGetWebhookExecutions,
|
|
1279
|
+
mn as useGetWebhookSchedules,
|
|
1234
1280
|
ke as useGetWorkbookDetails,
|
|
1235
1281
|
ee as useGetWorkbooksByType,
|
|
1236
1282
|
ne as useGetWorkflowInstanceStatusById,
|
|
@@ -1238,58 +1284,61 @@ export {
|
|
|
1238
1284
|
re as useGetWorksheetsByType,
|
|
1239
1285
|
ue as useInputTable,
|
|
1240
1286
|
ie as useInsertRow,
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1287
|
+
Rn as useListExecutions,
|
|
1288
|
+
In as useListInspectionBins,
|
|
1289
|
+
On as useListTasks,
|
|
1290
|
+
bn as useListWebhooks,
|
|
1291
|
+
Me as useMarkItemAsRead,
|
|
1292
|
+
_e as useMarkItemAsUnread,
|
|
1247
1293
|
Pe as useMarkTaskDone,
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1294
|
+
v as useMetric,
|
|
1295
|
+
Cn as usePauseSchedule,
|
|
1296
|
+
Q as usePostComment,
|
|
1297
|
+
Te as usePublishWorkbook,
|
|
1252
1298
|
Ae as useReassignTask,
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1299
|
+
Qe as useRegisterProcessTrigger,
|
|
1300
|
+
Ne as useReplyToConversation,
|
|
1301
|
+
En as useResumeSchedule,
|
|
1302
|
+
Gn as useRetryExecution,
|
|
1303
|
+
Un as useRetryTask,
|
|
1257
1304
|
ae as useRows,
|
|
1258
1305
|
ye as useRunDefinition,
|
|
1259
1306
|
le as useRunPublishedDefinition,
|
|
1260
|
-
|
|
1307
|
+
Se as useRunRecon,
|
|
1261
1308
|
we as useRunSampleDefinition,
|
|
1262
1309
|
me as useSaveWorkbook,
|
|
1263
1310
|
M as useSubscribeUser,
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
tn as
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
ge as
|
|
1287
|
-
|
|
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,
|
|
1288
1337
|
_ as useUnsubscribeUser,
|
|
1289
|
-
|
|
1338
|
+
x as useUpdateComment,
|
|
1290
1339
|
se as useUpdateRow,
|
|
1291
|
-
|
|
1292
|
-
|
|
1340
|
+
Dn as useUpdateSchedule,
|
|
1341
|
+
fn as useUpdateWebhook,
|
|
1293
1342
|
B as useUser,
|
|
1294
|
-
|
|
1343
|
+
de as useUserDetails
|
|
1295
1344
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bluecopa/react",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
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
|
},
|