@bluecopa/react 0.1.90 → 0.1.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
- import { useQuery as s, useMutation as o, useQueryClient as w } from "@tanstack/react-query";
1
+ import { useQuery as s, useMutation as o, useQueryClient as g } from "@tanstack/react-query";
2
2
  import * as O from "@tanstack/react-query";
3
- import { copaApi as r, copaGetConfig as k } from "@bluecopa/core";
3
+ import { copaApi as u, copaGetConfig as k } from "@bluecopa/core";
4
4
  export * from "@bluecopa/core";
5
- import { ReactQueryDevtools as Dn } from "@tanstack/react-query-devtools";
5
+ import { ReactQueryDevtools as Sn } from "@tanstack/react-query-devtools";
6
6
  const S = {
7
7
  enabled: !0,
8
8
  staleTime: 1e3 * 60 * 5,
@@ -12,27 +12,27 @@ const S = {
12
12
  retry: 2,
13
13
  retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
14
14
  };
15
- function E(e = {}) {
15
+ function p(e = {}) {
16
16
  return {
17
17
  ...S,
18
18
  ...e
19
19
  };
20
20
  }
21
- function C(e = 5e3) {
21
+ function E(e = 5e3) {
22
22
  return new Promise((n) => setTimeout(n, e));
23
23
  }
24
- function D(e, n) {
25
- const t = Object.entries(e).filter(([u, a]) => !a).map(([u]) => u);
24
+ function h(e, n) {
25
+ const t = Object.entries(e).filter(([r, a]) => !a).map(([r]) => r);
26
26
  if (t.length > 0)
27
27
  throw new Error(
28
28
  n || `Missing required parameters: ${t.join(", ")}`
29
29
  );
30
30
  }
31
31
  function c(e, n, t = 0) {
32
- return async () => (await C(t), await e());
32
+ return async () => (await E(t), await e());
33
33
  }
34
34
  function l(e) {
35
- const n = E(e.options);
35
+ const n = p(e.options);
36
36
  return {
37
37
  queryKey: e.queryKey,
38
38
  queryFn: e.queryFn,
@@ -45,15 +45,15 @@ function l(e) {
45
45
  onError: n.onError
46
46
  };
47
47
  }
48
- function P(e, n = {}) {
49
- const t = n.enabled !== !1 && !!e, u = n.solutionBindings ?? null, a = c(async () => {
48
+ function A(e, n = {}) {
49
+ const t = n.enabled !== !1 && !!e, r = n.solutionBindings ?? null, a = c(async () => {
50
50
  if (!e)
51
51
  throw new Error("Metric ID is required");
52
- return console.log("Fetching metric data..."), await r.metric.getData(e, {
52
+ return console.log("Fetching metric data..."), await u.metric.getData(e, {
53
53
  solutionBindings: n.solutionBindings
54
54
  });
55
55
  }), i = l({
56
- queryKey: ["metricData", e, u],
56
+ queryKey: ["metricData", e, r],
57
57
  queryFn: a,
58
58
  enabled: t,
59
59
  options: n
@@ -61,16 +61,16 @@ function P(e, n = {}) {
61
61
  return s(i);
62
62
  }
63
63
  function G(e, n = {}) {
64
- const t = !!e, u = c(async () => {
64
+ const t = !!e, r = c(async () => {
65
65
  if (!e)
66
66
  throw new Error("Dataset ID is required");
67
- return console.log("Fetching dataset data..."), await r.dataset.getSampleData({
67
+ return console.log("Fetching dataset data..."), await u.dataset.getSampleData({
68
68
  datasetId: e,
69
69
  dataFilter: "all_data"
70
70
  });
71
71
  }), a = l({
72
72
  queryKey: ["datasetData", e],
73
- queryFn: u,
73
+ queryFn: r,
74
74
  enabled: t,
75
75
  options: n
76
76
  });
@@ -78,20 +78,20 @@ function G(e, n = {}) {
78
78
  }
79
79
  function U(e = {}) {
80
80
  return o({
81
- mutationFn: async (n) => await r.chat.createThread(n),
81
+ mutationFn: async (n) => await u.chat.createThread(n),
82
82
  onSuccess: e.onSuccess,
83
83
  onError: e.onError,
84
84
  retry: e.retry ?? 2,
85
85
  retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
86
86
  });
87
87
  }
88
- function v(e, n = {}) {
89
- const t = n.enabled !== !1 && !!e, u = c(async () => (D(
88
+ function M(e, n = {}) {
89
+ const t = n.enabled !== !1 && !!e, r = c(async () => (h(
90
90
  { threadId: e },
91
91
  "Thread ID is required to fetch comments"
92
- ), await r.chat.getCommentsByThreadId(e))), a = l({
92
+ ), await u.chat.getCommentsByThreadId(e))), a = l({
93
93
  queryKey: ["chat", "comments", e],
94
- queryFn: u,
94
+ queryFn: r,
95
95
  enabled: t,
96
96
  options: n
97
97
  });
@@ -99,16 +99,16 @@ function v(e, n = {}) {
99
99
  }
100
100
  function W(e = {}) {
101
101
  return o({
102
- mutationFn: async (n) => await r.chat.postComment(n),
102
+ mutationFn: async (n) => await u.chat.postComment(n),
103
103
  onSuccess: e.onSuccess,
104
104
  onError: e.onError,
105
105
  retry: e.retry ?? 2,
106
106
  retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
107
107
  });
108
108
  }
109
- function M(e = {}) {
109
+ function v(e = {}) {
110
110
  return o({
111
- mutationFn: async (n) => await r.chat.updateComment(n),
111
+ mutationFn: async (n) => await u.chat.updateComment(n),
112
112
  onSuccess: e.onSuccess,
113
113
  onError: e.onError,
114
114
  retry: e.retry ?? 2,
@@ -117,7 +117,7 @@ function M(e = {}) {
117
117
  }
118
118
  function x(e = {}) {
119
119
  return o({
120
- mutationFn: async (n) => await r.chat.deleteComment(n),
120
+ mutationFn: async (n) => await u.chat.deleteComment(n),
121
121
  onSuccess: e.onSuccess,
122
122
  onError: e.onError,
123
123
  retry: e.retry ?? 2,
@@ -126,7 +126,7 @@ function x(e = {}) {
126
126
  }
127
127
  function I(e = {}) {
128
128
  return o({
129
- mutationFn: async (n) => await r.chat.subscribeUser(n),
129
+ mutationFn: async (n) => await u.chat.subscribeUser(n),
130
130
  onSuccess: e.onSuccess,
131
131
  onError: e.onError,
132
132
  retry: e.retry ?? 2,
@@ -135,59 +135,59 @@ function I(e = {}) {
135
135
  }
136
136
  function Q(e = {}) {
137
137
  return o({
138
- mutationFn: async (n) => await r.chat.unsubscribeUser(n),
138
+ mutationFn: async (n) => await u.chat.unsubscribeUser(n),
139
139
  onSuccess: e.onSuccess,
140
140
  onError: e.onError,
141
141
  retry: e.retry ?? 2,
142
142
  retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
143
143
  });
144
144
  }
145
- function H(e, n, t = {}) {
146
- const u = t.enabled !== !1 && !!e && !!n, a = c(async () => (D(
145
+ function _(e, n, t = {}) {
146
+ const r = t.enabled !== !1 && !!e && !!n, a = c(async () => (h(
147
147
  { userId: e, threadId: n },
148
148
  "User ID and Thread ID are required to check subscription status"
149
- ), await r.chat.checkSubscriptionStatus(e, n))), i = l({
149
+ ), await u.chat.checkSubscriptionStatus(e, n))), i = l({
150
150
  queryKey: ["chat", "subscription", e, n],
151
151
  queryFn: a,
152
- enabled: u,
152
+ enabled: r,
153
153
  options: t
154
154
  });
155
155
  return s(i);
156
156
  }
157
- function _(e = {}) {
157
+ function H(e = {}) {
158
158
  return o({
159
- mutationFn: async (n) => await r.statement.createNewRun(n),
159
+ mutationFn: async (n) => await u.statement.createNewRun(n),
160
160
  ...e
161
161
  });
162
162
  }
163
163
  function L(e, n = {}) {
164
- const t = !!e, u = c(async () => {
164
+ const t = !!e, r = c(async () => {
165
165
  if (!e)
166
166
  throw new Error("Dataset ID is required");
167
- return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
167
+ return console.log("Fetching dataset data..."), await u.dataset.getData(e, {
168
168
  limit: n.limit || 1e3
169
169
  });
170
170
  }), a = l({
171
171
  queryKey: ["datasetData", e],
172
- queryFn: u,
172
+ queryFn: r,
173
173
  enabled: t,
174
174
  options: n
175
175
  });
176
176
  return s(a);
177
177
  }
178
178
  function N() {
179
- const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), n = l({
179
+ const e = c(async () => (console.log("Fetching dataset data..."), await u.dataset.getAllDatasets())), n = l({
180
180
  queryKey: ["datasetData"],
181
181
  queryFn: e,
182
182
  enabled: !0
183
183
  });
184
184
  return s(n);
185
185
  }
186
- function V(e, n, t, u = {}) {
186
+ function V(e, n, t, r = {}) {
187
187
  const a = !!e && !!n && !!t, i = c(async () => {
188
188
  if (!e || !n || !t)
189
189
  throw new Error("Key, contentType, and method are required");
190
- return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
190
+ return console.log("Getting signed file URL..."), await u.files.getFileUrlByFileId({
191
191
  key: e,
192
192
  contentType: n,
193
193
  method: t
@@ -196,71 +196,71 @@ function V(e, n, t, u = {}) {
196
196
  queryKey: ["file", "getFileUrlByFileId", e, n, t],
197
197
  queryFn: i,
198
198
  enabled: a,
199
- options: u
199
+ options: r
200
200
  });
201
201
  return s(y);
202
202
  }
203
203
  function z(e, n, t = {}) {
204
- const u = e == null ? void 0 : e.trim(), a = n == null ? void 0 : n.trim(), i = !!(u && a), y = c(async () => await r.files.getFileByFolderIdAndName({
205
- folderId: u,
204
+ const r = e == null ? void 0 : e.trim(), a = n == null ? void 0 : n.trim(), i = !!(r && a), y = c(async () => await u.files.getFileByFolderIdAndName({
205
+ folderId: r,
206
206
  name: a
207
- })), g = l({
207
+ })), w = l({
208
208
  queryKey: [
209
209
  "file",
210
210
  "getFileByFolderIdAndName",
211
- u,
211
+ r,
212
212
  a
213
213
  ],
214
214
  queryFn: y,
215
215
  enabled: i,
216
216
  options: t
217
217
  });
218
- return s(g);
218
+ return s(w);
219
219
  }
220
220
  function Y(e, n, t = {}) {
221
- const u = !!e && !!n, a = c(async () => {
221
+ const r = !!e && !!n, a = c(async () => {
222
222
  if (!e || !n)
223
223
  throw new Error("Type and ID are required");
224
- return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: n });
224
+ return console.log("Fetching published workbook by ID..."), await u.workbook.getPublishedWorkbookById({ type: e, id: n });
225
225
  }), i = l({
226
226
  queryKey: ["workbook", "getPublishedWorkbookById", e, n],
227
227
  queryFn: a,
228
- enabled: u,
228
+ enabled: r,
229
229
  options: t
230
230
  });
231
231
  return s(i);
232
232
  }
233
233
  function $(e, n = {}) {
234
- const t = !!e, u = c(async () => {
234
+ const t = !!e, r = c(async () => {
235
235
  if (!e)
236
236
  throw new Error("Run ID is required");
237
- return await r.statement.getRunResultById(e);
237
+ return await u.statement.getRunResultById(e);
238
238
  }), a = l({
239
239
  queryKey: ["statement", "getRunResultById", e],
240
- queryFn: u,
240
+ queryFn: r,
241
241
  enabled: t,
242
242
  options: n
243
243
  });
244
244
  return s(a);
245
245
  }
246
246
  function J(e, n = {}) {
247
- const t = !!e, u = c(async () => {
247
+ const t = !!e, r = c(async () => {
248
248
  if (!e)
249
249
  throw new Error("View ID is required");
250
- return await r.statement.getRunsByViewId(e);
250
+ return await u.statement.getRunsByViewId(e);
251
251
  }), a = l({
252
252
  queryKey: ["statement", "getRunsByViewId", e],
253
- queryFn: u,
253
+ queryFn: r,
254
254
  enabled: t,
255
255
  options: n
256
256
  });
257
257
  return s(a);
258
258
  }
259
- function X(e, n, t, u = {}) {
259
+ function X(e, n, t, r = {}) {
260
260
  const a = !!e, i = c(async () => {
261
261
  if (!e)
262
262
  throw new Error("Statement ID is required");
263
- return await r.statement.getData({
263
+ return await u.statement.getData({
264
264
  statementId: e,
265
265
  viewId: n || void 0,
266
266
  runId: t || void 0
@@ -269,90 +269,90 @@ function X(e, n, t, u = {}) {
269
269
  queryKey: ["statement", "getData", e, n, t],
270
270
  queryFn: i,
271
271
  enabled: a,
272
- options: u
272
+ options: r
273
273
  });
274
274
  return s(y);
275
275
  }
276
276
  function Z(e, n = {}) {
277
- const t = !!e, u = c(async () => {
277
+ const t = !!e, r = c(async () => {
278
278
  if (!e)
279
279
  throw new Error("Table ID is required");
280
- return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
280
+ return console.log("Fetching table by ID..."), await u.inputTable.getTableById(e);
281
281
  }), a = l({
282
282
  queryKey: ["inputTable", "getTableById", e],
283
- queryFn: u,
283
+ queryFn: r,
284
284
  enabled: t,
285
285
  options: n
286
286
  });
287
287
  return s(a);
288
288
  }
289
289
  function j(e, n = {}) {
290
- const t = !!e, u = c(async () => {
290
+ const t = !!e, r = c(async () => {
291
291
  if (!e)
292
292
  throw new Error("View ID is required");
293
- return await r.statement.getViewById(e);
293
+ return await u.statement.getViewById(e);
294
294
  }), a = l({
295
295
  queryKey: ["statement", "getViewById", e],
296
- queryFn: u,
296
+ queryFn: r,
297
297
  enabled: t,
298
298
  options: n
299
299
  });
300
300
  return s(a);
301
301
  }
302
302
  function ee(e, n = {}) {
303
- const t = !!e, u = c(async () => {
303
+ const t = !!e, r = c(async () => {
304
304
  if (!e)
305
305
  throw new Error("Sheet ID is required");
306
- return await r.statement.getViewsBySheetId(e);
306
+ return await u.statement.getViewsBySheetId(e);
307
307
  }), a = l({
308
308
  queryKey: ["statement", "getViewsBySheetId", e],
309
- queryFn: u,
309
+ queryFn: r,
310
310
  enabled: t,
311
311
  options: n
312
312
  });
313
313
  return s(a);
314
314
  }
315
315
  function ne(e, n = {}) {
316
- const t = !!e, u = c(async () => {
316
+ const t = !!e, r = c(async () => {
317
317
  if (!e)
318
318
  throw new Error("Type is required");
319
- return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
319
+ return console.log("Fetching workbooks by type..."), await u.workbook.getWorkbooksByType(e);
320
320
  }), a = l({
321
321
  queryKey: ["workbook", "getWorkbooksByType", e],
322
- queryFn: u,
322
+ queryFn: r,
323
323
  enabled: t,
324
324
  options: n
325
325
  });
326
326
  return s(a);
327
327
  }
328
- var p = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(p || {});
328
+ var C = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(C || {});
329
329
  function te(e = {}) {
330
330
  return o({
331
- mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(n)),
331
+ mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await u.workflow.getWorkflowInstanceStatusById(n)),
332
332
  ...e
333
333
  });
334
334
  }
335
335
  function re(e, n = {}) {
336
- const t = !!e && e.length > 0, u = c(async () => {
336
+ const t = !!e && e.length > 0, r = c(async () => {
337
337
  if (!e || e.length === 0)
338
338
  throw new Error("Worksheet IDs are required");
339
- return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
339
+ return console.log("Fetching worksheets..."), await u.worksheet.getWorksheets(e);
340
340
  }), a = l({
341
341
  queryKey: ["worksheet", "getWorksheets", e],
342
- queryFn: u,
342
+ queryFn: r,
343
343
  enabled: t,
344
344
  options: n
345
345
  });
346
346
  return s(a);
347
347
  }
348
348
  function ue(e, n = {}) {
349
- const t = !!e, u = c(async () => {
349
+ const t = !!e, r = c(async () => {
350
350
  if (!e)
351
351
  throw new Error("Type is required");
352
- return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
352
+ return console.log("Fetching worksheets by type..."), await u.worksheet.getWorksheetsByType(e);
353
353
  }), a = l({
354
354
  queryKey: ["worksheet", "getWorksheetsByType", e],
355
- queryFn: u,
355
+ queryFn: r,
356
356
  enabled: t,
357
357
  options: n
358
358
  });
@@ -360,32 +360,32 @@ function ue(e, n = {}) {
360
360
  }
361
361
  function ae(e, n, t = {}) {
362
362
  const {
363
- limitParams: u = { limit: 2e3, limitFrom: "top" },
363
+ limitParams: r = { limit: 2e3, limitFrom: "top" },
364
364
  pageParams: a,
365
365
  sortParams: i,
366
366
  offsetParam: y,
367
- ...g
368
- } = t, f = g.enabled !== !1 && !!e && !!n, m = c(async () => {
367
+ ...w
368
+ } = t, d = w.enabled !== !1 && !!e && !!n, m = c(async () => {
369
369
  if (!e || !n)
370
370
  throw new Error("Input table ID and view ID are required");
371
- return console.log("Fetching input table data..."), await r.inputTable.getData({
371
+ return console.log("Fetching input table data..."), await u.inputTable.getData({
372
372
  inputTableId: e,
373
373
  inputTableViewId: n,
374
374
  pageParams: a,
375
- limitParams: u,
375
+ limitParams: r,
376
376
  sortParams: i,
377
377
  offsetParam: y
378
378
  });
379
379
  }), q = l({
380
380
  queryKey: ["inputTableData", e, n],
381
381
  queryFn: m,
382
- enabled: f,
383
- options: g
382
+ enabled: d,
383
+ options: w
384
384
  });
385
385
  return s(q);
386
386
  }
387
387
  function oe() {
388
- const e = c(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), n = l({
388
+ const e = c(async () => (console.log("Fetching input table data..."), await u.inputTable.getInputTables())), n = l({
389
389
  queryKey: ["inputTableData"],
390
390
  queryFn: e,
391
391
  enabled: !0
@@ -401,33 +401,33 @@ function se(e, n = {}) {
401
401
  "retryDelay",
402
402
  "onSuccess",
403
403
  "onError"
404
- ], { limit: u, offset: a, order: i, order_by: y, ...g } = n, f = {}, m = { limit: u, offset: a, order: i, order_by: y };
405
- Object.keys(g).forEach((d) => {
406
- t.includes(d) ? f[d] = g[d] : m[d] = g[d];
404
+ ], { limit: r, offset: a, order: i, order_by: y, ...w } = n, d = {}, m = { limit: r, offset: a, order: i, order_by: y };
405
+ Object.keys(w).forEach((f) => {
406
+ t.includes(f) ? d[f] = w[f] : m[f] = w[f];
407
407
  });
408
- const q = f.enabled !== !1 && !!e, h = c(async () => {
408
+ const q = d.enabled !== !1 && !!e, D = c(async () => {
409
409
  if (!e)
410
410
  throw new Error("Table ID is required");
411
- return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, m);
411
+ return console.log("Fetching input table rows..."), await u.inputTable.getRows(e, m);
412
412
  }), T = l({
413
413
  queryKey: ["inputTableRows", e, n],
414
- queryFn: h,
414
+ queryFn: D,
415
415
  enabled: q,
416
- options: f
416
+ options: d
417
417
  });
418
418
  return s(T);
419
419
  }
420
420
  function ie(e = {}) {
421
- const n = w();
421
+ const n = g();
422
422
  return o({
423
- mutationFn: async (t) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(t.tableId, t.rowData)),
424
- onSuccess: (t, u, a) => {
423
+ mutationFn: async (t) => (console.log("Inserting row into input table..."), await u.inputTable.insertRow(t.tableId, t.rowData)),
424
+ onSuccess: (t, r, a) => {
425
425
  var i;
426
426
  n.invalidateQueries({
427
- queryKey: ["inputTableRows", u.tableId]
427
+ queryKey: ["inputTableRows", r.tableId]
428
428
  }), (i = e.onSuccess) == null || i.call(e, t);
429
429
  },
430
- onError: (t, u, a) => {
430
+ onError: (t, r, a) => {
431
431
  var i;
432
432
  (i = e.onError) == null || i.call(e, t);
433
433
  },
@@ -435,20 +435,20 @@ function ie(e = {}) {
435
435
  });
436
436
  }
437
437
  function ce(e = {}) {
438
- const n = w();
438
+ const n = g();
439
439
  return o({
440
- mutationFn: async (t) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
440
+ mutationFn: async (t) => (console.log("Updating input table row..."), await u.inputTable.updateRow(
441
441
  t.tableId,
442
442
  t.updateData,
443
443
  t.rowId
444
444
  )),
445
- onSuccess: (t, u, a) => {
445
+ onSuccess: (t, r, a) => {
446
446
  var i;
447
447
  n.invalidateQueries({
448
- queryKey: ["inputTableRows", u.tableId]
448
+ queryKey: ["inputTableRows", r.tableId]
449
449
  }), (i = e.onSuccess) == null || i.call(e, t);
450
450
  },
451
- onError: (t, u, a) => {
451
+ onError: (t, r, a) => {
452
452
  var i;
453
453
  (i = e.onError) == null || i.call(e, t);
454
454
  },
@@ -456,20 +456,20 @@ function ce(e = {}) {
456
456
  });
457
457
  }
458
458
  function le(e = {}) {
459
- const n = w();
459
+ const n = g();
460
460
  return o({
461
- mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
461
+ mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await u.inputTable.deleteRow(
462
462
  t.tableId,
463
463
  t.rowId,
464
464
  t.idField
465
465
  )),
466
- onSuccess: (t, u, a) => {
466
+ onSuccess: (t, r, a) => {
467
467
  var i;
468
468
  n.invalidateQueries({
469
- queryKey: ["inputTableRows", u.tableId]
469
+ queryKey: ["inputTableRows", r.tableId]
470
470
  }), (i = e.onSuccess) == null || i.call(e, t);
471
471
  },
472
- onError: (t, u, a) => {
472
+ onError: (t, r, a) => {
473
473
  var i;
474
474
  (i = e.onError) == null || i.call(e, t);
475
475
  },
@@ -478,48 +478,48 @@ function le(e = {}) {
478
478
  }
479
479
  function ye(e = {}) {
480
480
  return o({
481
- mutationFn: async (n) => (console.log("Running definition..."), await r.definition.runDefinition(n)),
481
+ mutationFn: async (n) => (console.log("Running definition..."), await u.definition.runDefinition(n)),
482
482
  ...e
483
483
  });
484
484
  }
485
485
  function ge(e = {}) {
486
486
  return o({
487
- mutationFn: async (n) => await r.definition.runPublishedDefinition(n),
487
+ mutationFn: async (n) => await u.definition.runPublishedDefinition(n),
488
488
  ...e
489
489
  });
490
490
  }
491
491
  function we(e = {}) {
492
492
  return o({
493
- mutationFn: async (n) => await r.definition.runSampleDefinition(n),
493
+ mutationFn: async (n) => await u.definition.runSampleDefinition(n),
494
494
  ...e
495
495
  });
496
496
  }
497
- function fe(e = {}) {
497
+ function de(e = {}) {
498
498
  return o({
499
- mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(n)),
499
+ mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await u.workflow.triggerHttpWorkflowById(n)),
500
500
  ...e
501
501
  });
502
502
  }
503
- function de(e = {}) {
503
+ function fe(e = {}) {
504
504
  return o({
505
- mutationFn: async (n) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(n)),
505
+ mutationFn: async (n) => (console.log("Triggering workflow..."), await u.workflow.triggerWorkflowById(n)),
506
506
  ...e
507
507
  });
508
508
  }
509
- function B(e = {}) {
510
- const n = e.enabled !== !1, t = c(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), u = l({
509
+ function K(e = {}) {
510
+ const n = e.enabled !== !1, t = c(async () => (console.log("Fetching user details..."), await u.user.getLoggedInUserDetails())), r = l({
511
511
  queryKey: ["user"],
512
512
  queryFn: t,
513
513
  enabled: n,
514
514
  options: e
515
515
  });
516
- return s(u);
516
+ return s(r);
517
517
  }
518
- const me = B, K = ["Owner", "Editor", "Viewer", "ReadOnly"];
518
+ const me = K, B = ["Owner", "Editor", "Viewer", "ReadOnly"];
519
519
  var b;
520
- const F = (b = r.permissions) == null ? void 0 : b.getPermissions;
520
+ const F = (b = u.permissions) == null ? void 0 : b.getPermissions;
521
521
  function qe(e, n, t = {}) {
522
- const u = t.enabled !== !1 && !!(e != null && e.trim()), a = c(
522
+ const r = t.enabled !== !1 && !!(e != null && e.trim()), a = c(
523
523
  async () => {
524
524
  if (!(e != null && e.trim()))
525
525
  return {};
@@ -537,7 +537,7 @@ function qe(e, n, t = {}) {
537
537
  objectType: n,
538
538
  user: y.userId,
539
539
  userType: "User",
540
- relations: t.relations ?? K
540
+ relations: t.relations ?? B
541
541
  });
542
542
  },
543
543
  void 0,
@@ -545,14 +545,14 @@ function qe(e, n, t = {}) {
545
545
  ), i = l({
546
546
  queryKey: ["documentPermissions", e ?? "", n, t.relations ?? []],
547
547
  queryFn: a,
548
- enabled: u,
548
+ enabled: r,
549
549
  options: t
550
550
  });
551
551
  return s(i);
552
552
  }
553
553
  function Fe(e = {}) {
554
554
  return o({
555
- mutationFn: async (n) => (console.log("Uploading file..."), await r.files.fileUpload(n)),
555
+ mutationFn: async (n) => (console.log("Uploading file..."), await u.files.fileUpload(n)),
556
556
  ...e
557
557
  });
558
558
  }
@@ -560,40 +560,40 @@ function be({
560
560
  fileId: e,
561
561
  contentType: n = "application/json",
562
562
  method: t = "GET"
563
- }, u = {}) {
563
+ }, r = {}) {
564
564
  const a = !!e, i = c(async () => {
565
565
  if (!e)
566
566
  throw new Error("File ID is required");
567
- return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: n, method: t });
567
+ return console.log("Downloading file..."), await u.files.fileDownload({ fileId: e, contentType: n, method: t });
568
568
  }), y = l({
569
569
  queryKey: ["file", "fileDownload", e],
570
570
  queryFn: i,
571
571
  enabled: a,
572
- options: u
572
+ options: r
573
573
  });
574
574
  return s(y);
575
575
  }
576
- function De(e, n = {}) {
577
- const t = !!e, u = c(async () => {
576
+ function he(e, n = {}) {
577
+ const t = !!e, r = c(async () => {
578
578
  if (!e)
579
579
  throw new Error("Task ID is required");
580
- return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
580
+ return console.log("Fetching task details..."), await u.task.getTaskDetails({ taskId: e });
581
581
  }), a = l({
582
582
  queryKey: ["task", "getTaskDetails", e],
583
- queryFn: u,
583
+ queryFn: r,
584
584
  enabled: t,
585
585
  options: n
586
586
  });
587
587
  return s(a);
588
588
  }
589
- function he(e, n = {}) {
590
- const t = !!e, u = c(async () => {
589
+ function De(e, n = {}) {
590
+ const t = !!e, r = c(async () => {
591
591
  if (!e)
592
592
  throw new Error("Workbook ID is required");
593
- return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
593
+ return console.log("Fetching workbook details..."), await u.workbook.getWorkbookDetails({ workbookId: e });
594
594
  }), a = l({
595
595
  queryKey: ["workbook", "getWorkbookDetails", e],
596
- queryFn: u,
596
+ queryFn: r,
597
597
  enabled: t,
598
598
  options: n
599
599
  });
@@ -601,217 +601,256 @@ function he(e, n = {}) {
601
601
  }
602
602
  function Te(e = {}) {
603
603
  return o({
604
- mutationFn: async (n) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(n)),
604
+ mutationFn: async (n) => (console.log("Saving workbook..."), await u.workbook.saveWorkbook(n)),
605
605
  ...e
606
606
  });
607
607
  }
608
608
  function ke(e = {}) {
609
609
  return o({
610
- mutationFn: async (n) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(n)),
610
+ mutationFn: async (n) => (console.log("Publishing workbook..."), await u.workbook.publishWorkbook(n)),
611
611
  ...e
612
612
  });
613
613
  }
614
614
  function Se(e = {}) {
615
615
  return o({
616
- mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
616
+ mutationFn: async (n) => (console.log("Running recon workflow..."), await u.recon.runRecon(n)),
617
617
  ...e
618
618
  });
619
619
  }
620
- function Ee(e, n, t = {}) {
621
- const u = !!e && !!n, a = c(async () => {
620
+ function pe(e, n, t = {}) {
621
+ const r = !!e && !!n, a = c(async () => {
622
622
  if (!e || !n)
623
623
  throw new Error("Form instance ID and revision are required");
624
- return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: n });
624
+ return console.log("Fetching form schema..."), await u.form.getFormSchema({ formInstanceId: e, formRevision: n });
625
625
  });
626
626
  return s(
627
627
  l({
628
628
  queryKey: ["form", "getFormSchema", e, n],
629
629
  queryFn: a,
630
- enabled: u,
630
+ enabled: r,
631
631
  options: t
632
632
  })
633
633
  );
634
634
  }
635
- function Ce(e, n = {}) {
636
- const t = !!e, u = c(async () => {
635
+ function Ee(e, n = {}) {
636
+ const t = !!e, r = c(async () => {
637
637
  if (!e)
638
638
  throw new Error("Form ID is required");
639
- return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
639
+ return console.log("Fetching form data..."), await u.form.getFormData({ formId: e });
640
640
  }), a = l({
641
641
  queryKey: ["form", "getFormData", e],
642
- queryFn: u,
642
+ queryFn: r,
643
643
  enabled: t,
644
644
  options: n
645
645
  });
646
646
  return s(a);
647
647
  }
648
- function pe(e, n = {}) {
648
+ function Ce(e, n = {}) {
649
649
  return s({
650
650
  queryKey: ["form", e],
651
651
  queryFn: async () => {
652
652
  if (!e)
653
653
  throw new Error("Form ID is required");
654
- return await r.form.getFormById({ formId: e });
654
+ return await u.form.getFormById({ formId: e });
655
655
  },
656
656
  enabled: !!e,
657
657
  ...n
658
658
  });
659
659
  }
660
- function Be(e = {}) {
660
+ function Ke(e = {}) {
661
661
  return o({
662
- mutationFn: async (n) => await r.form.createOrUpdateForm(n),
662
+ mutationFn: async (n) => await u.form.createOrUpdateForm(n),
663
663
  ...e
664
664
  });
665
665
  }
666
- function Ke(e = {}) {
666
+ function Be(e = {}) {
667
667
  return o({
668
- mutationFn: async (n) => await r.audit.getAuditLogs(n),
668
+ mutationFn: async (n) => await u.audit.getAuditLogs(n),
669
669
  ...e
670
670
  });
671
671
  }
672
672
  function Re(e = {}) {
673
673
  return o({
674
- mutationFn: async (n) => await r.audit.createAuditLog(n),
674
+ mutationFn: async (n) => await u.audit.createAuditLog(n),
675
675
  ...e
676
676
  });
677
677
  }
678
678
  function Oe(e = {}) {
679
679
  return s({
680
680
  queryKey: ["templatedPipelines"],
681
- queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
681
+ queryFn: async () => await u.templatedPipeline.getAllTemplatedPipelines(),
682
682
  ...e
683
683
  });
684
684
  }
685
- function Ae(e = {}) {
685
+ function Pe(e = {}) {
686
686
  return s({
687
687
  queryKey: ["reconWorkflows"],
688
- queryFn: async () => await r.recon.getAllReconWorkflows(),
688
+ queryFn: async () => await u.recon.getAllReconWorkflows(),
689
689
  ...e
690
690
  });
691
691
  }
692
- function Pe(e = {}) {
692
+ function Ae(e = {}) {
693
693
  return s({
694
694
  queryKey: ["users"],
695
- queryFn: async () => await r.user.getAllUsers(),
695
+ queryFn: async () => await u.user.getAllUsers(),
696
696
  ...e
697
697
  });
698
698
  }
699
699
  function Ge(e = {}) {
700
700
  return s({
701
701
  queryKey: ["httpTriggers"],
702
- queryFn: async () => await r.workflow.getAllHttpTriggers(),
702
+ queryFn: async () => await u.workflow.getAllHttpTriggers(),
703
703
  ...e
704
704
  });
705
705
  }
706
706
  function Ue(e = {}) {
707
707
  return o({
708
- mutationFn: async (n) => await r.process.markTaskDone(n),
708
+ mutationFn: async (n) => await u.process.markTaskDone(n),
709
709
  ...e
710
710
  });
711
711
  }
712
- function ve(e = {}) {
712
+ function Me(e = {}) {
713
713
  return o({
714
- mutationFn: async (n) => await r.process.reassignTask(n),
714
+ mutationFn: async (n) => await u.process.reassignTask(n),
715
715
  ...e
716
716
  });
717
717
  }
718
718
  function We(e, n = {}) {
719
719
  return s({
720
720
  queryKey: ["processTriggers", e],
721
- queryFn: async () => await r.process.getTriggersBySheet(e),
721
+ queryFn: async () => await u.process.getTriggersBySheet(e),
722
722
  enabled: !!e,
723
723
  ...n
724
724
  });
725
725
  }
726
- function Me(e = {}) {
727
- const n = w();
726
+ function ve(e = {}) {
727
+ const n = g();
728
728
  return o({
729
- mutationFn: async (t) => await r.process.registerProcessTrigger(t),
730
- onSuccess: (t, u) => {
729
+ mutationFn: async (t) => await u.process.registerProcessTrigger(t),
730
+ onSuccess: (t, r) => {
731
731
  n.invalidateQueries({
732
- queryKey: ["processTriggers", u.process_sheet_id]
732
+ queryKey: ["processTriggers", r.process_sheet_id]
733
733
  });
734
734
  },
735
735
  ...e
736
736
  });
737
737
  }
738
738
  function xe(e = {}) {
739
- const n = w();
739
+ const n = g();
740
740
  return o({
741
- mutationFn: async ({ id: t }) => await r.process.deleteProcessTrigger(t),
742
- onSuccess: (t, u) => {
741
+ mutationFn: async ({ id: t }) => await u.process.deleteProcessTrigger(t),
742
+ onSuccess: (t, r) => {
743
743
  n.invalidateQueries({
744
- queryKey: u.sheetId ? ["processTriggers", u.sheetId] : ["processTriggers"]
744
+ queryKey: r.sheetId ? ["processTriggers", r.sheetId] : ["processTriggers"]
745
745
  });
746
746
  },
747
747
  ...e
748
748
  });
749
749
  }
750
- function Ie(e = {}, n = {}) {
750
+ function Ie(e = {}) {
751
+ const n = g();
752
+ return o({
753
+ mutationFn: async ({ triggerId: t, scheduleName: r }) => await u.process.pauseSchedule(t, r),
754
+ onSuccess: (t, r) => {
755
+ n.invalidateQueries({
756
+ queryKey: r.sheetId ? ["processTriggers", r.sheetId] : ["processTriggers"]
757
+ }), n.invalidateQueries({
758
+ queryKey: ["scheduleStatus", r.triggerId, r.scheduleName]
759
+ });
760
+ },
761
+ ...e
762
+ });
763
+ }
764
+ function Qe(e = {}) {
765
+ const n = g();
766
+ return o({
767
+ mutationFn: async ({ triggerId: t, scheduleName: r }) => await u.process.resumeSchedule(t, r),
768
+ onSuccess: (t, r) => {
769
+ n.invalidateQueries({
770
+ queryKey: r.sheetId ? ["processTriggers", r.sheetId] : ["processTriggers"]
771
+ }), n.invalidateQueries({
772
+ queryKey: ["scheduleStatus", r.triggerId, r.scheduleName]
773
+ });
774
+ },
775
+ ...e
776
+ });
777
+ }
778
+ function _e(e, n, t = {}) {
779
+ return s({
780
+ queryKey: ["scheduleStatus", e, n],
781
+ queryFn: async () => await u.process.getScheduleStatus(
782
+ e,
783
+ n
784
+ ),
785
+ enabled: !!e && !!n,
786
+ ...t
787
+ });
788
+ }
789
+ function He(e = {}, n = {}) {
751
790
  return s({
752
791
  queryKey: ["inboxItems", "all", e.page, e.perPage],
753
- queryFn: async () => await r.inboxItems.getAllInboxItems(e),
792
+ queryFn: async () => await u.inboxItems.getAllInboxItems(e),
754
793
  ...n
755
794
  });
756
795
  }
757
- function Qe(e = {}) {
796
+ function Le(e = {}) {
758
797
  return o({
759
- mutationFn: async (n) => await r.inboxItems.markItemAsRead(n),
798
+ mutationFn: async (n) => await u.inboxItems.markItemAsRead(n),
760
799
  ...e
761
800
  });
762
801
  }
763
- function He(e = {}) {
802
+ function Ne(e = {}) {
764
803
  return o({
765
- mutationFn: async (n) => await r.inboxItems.markItemAsUnread(n),
804
+ mutationFn: async (n) => await u.inboxItems.markItemAsUnread(n),
766
805
  ...e
767
806
  });
768
807
  }
769
- function _e(e = {}) {
808
+ function Ve(e = {}) {
770
809
  return o({
771
- mutationFn: async (n) => await r.inboxItems.createInboxItemPerUser(n),
810
+ mutationFn: async (n) => await u.inboxItems.createInboxItemPerUser(n),
772
811
  ...e
773
812
  });
774
813
  }
775
- function Le(e, n = {}) {
814
+ function ze(e, n = {}) {
776
815
  return s({
777
816
  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],
778
- queryFn: async () => await r.emailEngine.getAllConversations(e),
817
+ queryFn: async () => await u.emailEngine.getAllConversations(e),
779
818
  ...n
780
819
  });
781
820
  }
782
- function Ne(e, n = {}) {
821
+ function Ye(e, n = {}) {
783
822
  return s({
784
823
  queryKey: ["emailConversation", e],
785
- queryFn: async () => await r.emailEngine.getConversation({
824
+ queryFn: async () => await u.emailEngine.getConversation({
786
825
  conversationId: e
787
826
  }),
788
827
  enabled: !!e,
789
828
  ...n
790
829
  });
791
830
  }
792
- function Ve(e = {}) {
793
- const n = w();
831
+ function $e(e = {}) {
832
+ const n = g();
794
833
  return o({
795
- mutationFn: async (t) => await r.emailEngine.createConversation(t),
834
+ mutationFn: async (t) => await u.emailEngine.createConversation(t),
796
835
  onSuccess: () => {
797
836
  n.invalidateQueries({ queryKey: ["emailConversations"] });
798
837
  },
799
838
  ...e
800
839
  });
801
840
  }
802
- function ze(e = {}) {
803
- const n = w();
841
+ function Je(e = {}) {
842
+ const n = g();
804
843
  return o({
805
- mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
806
- onSuccess: (t, u) => {
844
+ mutationFn: async (t) => await u.emailEngine.replyToConversation(t),
845
+ onSuccess: (t, r) => {
807
846
  n.invalidateQueries({
808
- queryKey: ["emailConversation", u.conversationId]
847
+ queryKey: ["emailConversation", r.conversationId]
809
848
  });
810
849
  },
811
850
  ...e
812
851
  });
813
852
  }
814
- function Ye(e, n = {}) {
853
+ function Xe(e, n = {}) {
815
854
  return s({
816
855
  queryKey: [
817
856
  "emailMessagesBySender",
@@ -821,19 +860,19 @@ function Ye(e, n = {}) {
821
860
  e.pageSize,
822
861
  e.orderByCreatedDate
823
862
  ],
824
- queryFn: async () => await r.emailEngine.getMessageBySenderId(e),
863
+ queryFn: async () => await u.emailEngine.getMessageBySenderId(e),
825
864
  enabled: !!e.senderId,
826
865
  ...n
827
866
  });
828
867
  }
829
- function $e(e = {}) {
868
+ function Ze(e = {}) {
830
869
  return o({
831
- mutationFn: async (n) => await r.emailEngine.searchMessages(n),
870
+ mutationFn: async (n) => await u.emailEngine.searchMessages(n),
832
871
  ...e
833
872
  });
834
873
  }
835
- function Je(e = {}) {
836
- const n = c(async () => await r.tcn.getAuthUrl()), t = l({
874
+ function je(e = {}) {
875
+ const n = c(async () => await u.tcn.getAuthUrl()), t = l({
837
876
  queryKey: ["tcn", "authUrl"],
838
877
  queryFn: n,
839
878
  enabled: !0,
@@ -841,135 +880,141 @@ function Je(e = {}) {
841
880
  });
842
881
  return s(t);
843
882
  }
844
- function Xe(e = {}) {
883
+ function en(e = {}) {
845
884
  return o({
846
- mutationFn: async ({ code: n }) => await r.tcn.exchangeCode(n),
885
+ mutationFn: async ({ code: n }) => await u.tcn.exchangeCode(n),
847
886
  ...e
848
887
  });
849
888
  }
850
- function Ze(e = {}) {
889
+ function nn(e = {}) {
851
890
  return o({
852
- mutationFn: async ({ refresh_token: n }) => await r.tcn.refreshToken(n),
891
+ mutationFn: async ({ refresh_token: n }) => await u.tcn.refreshToken(n),
853
892
  ...e
854
893
  });
855
894
  }
856
- function je(e = {}) {
895
+ function tn(e = {}) {
857
896
  return o({
858
- mutationFn: async ({ token: n }) => await r.tcn.getCurrentAgent(n),
897
+ mutationFn: async ({ token: n }) => await u.tcn.getCurrentAgent(n),
859
898
  ...e
860
899
  });
861
900
  }
862
- function en(e = {}) {
901
+ function rn(e = {}) {
863
902
  return o({
864
- mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getAgentSkills(n, t),
903
+ mutationFn: async ({ token: n, huntGroupSid: t }) => await u.tcn.getAgentSkills(n, t),
865
904
  ...e
866
905
  });
867
906
  }
868
- function nn(e = {}) {
907
+ function un(e = {}) {
869
908
  return o({
870
- mutationFn: async ({ token: n, huntGroupSid: t, skills: u }) => await r.tcn.createSession(n, t, u),
909
+ mutationFn: async ({ token: n, huntGroupSid: t, skills: r }) => await u.tcn.createSession(n, t, r),
871
910
  ...e
872
911
  });
873
912
  }
874
- function tn(e = {}) {
913
+ function an(e = {}) {
875
914
  return o({
876
- mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.keepAlive(n, t),
915
+ mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.keepAlive(n, t),
877
916
  ...e
878
917
  });
879
918
  }
880
- function rn(e = {}) {
919
+ function on(e = {}) {
881
920
  return o({
882
- mutationFn: async ({ token: n }) => await r.tcn.agentGetStatus(n),
921
+ mutationFn: async ({ token: n }) => await u.tcn.agentGetStatus(n),
883
922
  ...e
884
923
  });
885
924
  }
886
- function un(e = {}) {
925
+ function sn(e = {}) {
887
926
  return o({
888
- mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getHuntGroupAgentSettings(n, t),
927
+ mutationFn: async ({ token: n, huntGroupSid: t }) => await u.tcn.getHuntGroupAgentSettings(n, t),
889
928
  ...e
890
929
  });
891
930
  }
892
- function an(e = {}) {
931
+ function cn(e = {}) {
893
932
  return o({
894
- mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.dialManualPrepare(n, t),
933
+ mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.dialManualPrepare(n, t),
895
934
  ...e
896
935
  });
897
936
  }
898
- function on(e = {}) {
937
+ function ln(e = {}) {
899
938
  return o({
900
- mutationFn: async ({ token: n, call: t }) => await r.tcn.processManualDial(n, t),
939
+ mutationFn: async ({ token: n, call: t }) => await u.tcn.processManualDial(n, t),
901
940
  ...e
902
941
  });
903
942
  }
904
- function sn(e = {}) {
943
+ function yn(e = {}) {
905
944
  return o({
906
- mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: u, simpleCallData: a }) => await r.tcn.manualDialStart(
945
+ mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: r, simpleCallData: a }) => await u.tcn.manualDialStart(
907
946
  n,
908
947
  t,
909
- u,
948
+ r,
910
949
  a
911
950
  ),
912
951
  ...e
913
952
  });
914
953
  }
915
- function cn(e = {}) {
954
+ function gn(e = {}) {
916
955
  return o({
917
- mutationFn: async ({ token: n, sessionSid: t, reason: u }) => await r.tcn.agentDisconnect(n, t, u),
956
+ mutationFn: async ({ token: n, sessionSid: t, reason: r }) => await u.tcn.agentDisconnect(n, t, r),
918
957
  ...e
919
958
  });
920
959
  }
921
- function ln(e = {}) {
960
+ function wn(e = {}) {
922
961
  return o({
923
- mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentPause(n, t),
962
+ mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.agentPause(n, t),
924
963
  ...e
925
964
  });
926
965
  }
927
- function yn(e = {}) {
966
+ function dn(e = {}) {
928
967
  return o({
929
- mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentSetReady(n, t),
968
+ mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.agentSetReady(n, t),
930
969
  ...e
931
970
  });
932
971
  }
933
- function gn(e = {}) {
972
+ function fn(e = {}) {
934
973
  return o({
935
- mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentGetConnectedParty(n, t),
974
+ mutationFn: async ({ token: n, sessionSid: t }) => await u.tcn.agentGetConnectedParty(n, t),
936
975
  ...e
937
976
  });
938
977
  }
939
- function wn(e = {}) {
978
+ function mn(e = {}) {
940
979
  return o({
941
- mutationFn: async ({ token: n, callSid: t }) => await r.tcn.getCallData(n, t),
980
+ mutationFn: async ({ token: n, callSid: t }) => await u.tcn.getCallData(n, t),
942
981
  ...e
943
982
  });
944
983
  }
945
- function fn(e = {}) {
984
+ function qn(e = {}) {
946
985
  return o({
947
- mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentPutCallOnHold(n, t, u),
986
+ mutationFn: async ({ token: n, sessionSid: t, holdType: r }) => await u.tcn.agentPutCallOnHold(n, t, r),
948
987
  ...e
949
988
  });
950
989
  }
951
- function dn(e = {}) {
990
+ function Fn(e = {}) {
952
991
  return o({
953
- mutationFn: async ({ token: n, sessionSid: t, holdType: u }) => await r.tcn.agentGetCallFromHold(n, t, u),
992
+ mutationFn: async ({ token: n, sessionSid: t, holdType: r }) => await u.tcn.agentGetCallFromHold(n, t, r),
954
993
  ...e
955
994
  });
956
995
  }
957
- function mn(e = {}) {
996
+ function bn(e = {}) {
997
+ return o({
998
+ mutationFn: async ({ token: n, templateNumber: t, groupSid: r }) => await u.tcn.ftpManualDialReport(n, t, r),
999
+ ...e
1000
+ });
1001
+ }
1002
+ function hn(e = {}) {
958
1003
  return o({
959
- mutationFn: async (n) => await r.templates.renderTemplate(n),
1004
+ mutationFn: async (n) => await u.templates.renderTemplate(n),
960
1005
  ...e
961
1006
  });
962
1007
  }
963
1008
  export {
964
- Dn as ReactQueryDevtools,
965
- p as WorkflowStatus,
1009
+ Sn as ReactQueryDevtools,
1010
+ C as WorkflowStatus,
966
1011
  O as reactQuery,
967
- H as useCheckSubscriptionStatus,
1012
+ _ as useCheckSubscriptionStatus,
968
1013
  Re as useCreateAuditLog,
969
- Ve as useCreateConversation,
970
- _e as useCreateInboxItemPerUser,
971
- Be as useCreateOrUpdateForm,
972
- _ as useCreateStatementRun,
1014
+ $e as useCreateConversation,
1015
+ Ve as useCreateInboxItemPerUser,
1016
+ Ke as useCreateOrUpdateForm,
1017
+ H as useCreateStatementRun,
973
1018
  U as useCreateThread,
974
1019
  L as useDataset,
975
1020
  G as useDatasetSample,
@@ -979,81 +1024,85 @@ export {
979
1024
  qe as useDocumentPermissions,
980
1025
  be as useFileDownload,
981
1026
  Fe as useFileUpload,
982
- Ye as useFilterMessagesBySenderId,
983
- Le as useGetAllConversations,
1027
+ Xe as useFilterMessagesBySenderId,
1028
+ ze as useGetAllConversations,
984
1029
  Ge as useGetAllHttpTriggers,
985
- Ie as useGetAllInboxItems,
986
- Ae as useGetAllRecon,
1030
+ He as useGetAllInboxItems,
1031
+ Pe as useGetAllRecon,
987
1032
  Oe as useGetAllTemplatedPipelines,
988
- Pe as useGetAllUsers,
989
- Ke as useGetAuditLogs,
990
- v as useGetCommentsByThreadId,
991
- Ne as useGetConversation,
1033
+ Ae as useGetAllUsers,
1034
+ Be as useGetAuditLogs,
1035
+ M as useGetCommentsByThreadId,
1036
+ Ye as useGetConversation,
992
1037
  N as useGetDatasets,
993
1038
  z as useGetFileByFolderIdAndName,
994
1039
  V as useGetFileUrlByFileId,
995
- pe as useGetFormById,
996
- Ce as useGetFormData,
997
- Ee as useGetFormSchema,
1040
+ Ce as useGetFormById,
1041
+ Ee as useGetFormData,
1042
+ pe as useGetFormSchema,
998
1043
  oe as useGetInputTables,
999
1044
  Y as useGetPublishedWorkbookById,
1000
1045
  $ as useGetRunResultById,
1001
1046
  J as useGetRunsByViewId,
1047
+ _e as useGetScheduleStatus,
1002
1048
  X as useGetStatementData,
1003
1049
  Z as useGetTableById,
1004
- De as useGetTaskDetails,
1050
+ he as useGetTaskDetails,
1005
1051
  We as useGetTriggersBySheet,
1006
1052
  j as useGetViewById,
1007
1053
  ee as useGetViewsBySheetId,
1008
- he as useGetWorkbookDetails,
1054
+ De as useGetWorkbookDetails,
1009
1055
  ne as useGetWorkbooksByType,
1010
1056
  te as useGetWorkflowInstanceStatusById,
1011
1057
  re as useGetWorksheets,
1012
1058
  ue as useGetWorksheetsByType,
1013
1059
  ae as useInputTable,
1014
1060
  ie as useInsertRow,
1015
- Qe as useMarkItemAsRead,
1016
- He as useMarkItemAsUnread,
1061
+ Le as useMarkItemAsRead,
1062
+ Ne as useMarkItemAsUnread,
1017
1063
  Ue as useMarkTaskDone,
1018
- P as useMetric,
1064
+ A as useMetric,
1065
+ Ie as usePauseSchedule,
1019
1066
  W as usePostComment,
1020
1067
  ke as usePublishWorkbook,
1021
- ve as useReassignTask,
1022
- Me as useRegisterProcessTrigger,
1023
- mn as useRenderTemplate,
1024
- ze as useReplyToConversation,
1068
+ Me as useReassignTask,
1069
+ ve as useRegisterProcessTrigger,
1070
+ hn as useRenderTemplate,
1071
+ Je as useReplyToConversation,
1072
+ Qe as useResumeSchedule,
1025
1073
  se as useRows,
1026
1074
  ye as useRunDefinition,
1027
1075
  ge as useRunPublishedDefinition,
1028
1076
  Se as useRunRecon,
1029
1077
  we as useRunSampleDefinition,
1030
1078
  Te as useSaveWorkbook,
1031
- $e as useSearchMessages,
1079
+ Ze as useSearchMessages,
1032
1080
  I as useSubscribeUser,
1033
- cn as useTcnAgentDisconnect,
1034
- dn as useTcnAgentGetCallFromHold,
1035
- rn as useTcnAgentGetStatus,
1036
- ln as useTcnAgentPause,
1037
- fn as useTcnAgentPutCallOnHold,
1038
- yn as useTcnAgentSetReady,
1039
- en as useTcnAgentSkills,
1040
- Je as useTcnAuthUrl,
1041
- wn as useTcnCallData,
1042
- gn as useTcnConnectedParty,
1043
- nn as useTcnCreateSession,
1044
- je as useTcnCurrentAgent,
1045
- an as useTcnDialManualPrepare,
1046
- Xe as useTcnExchangeCode,
1047
- un as useTcnHuntGroupSettings,
1048
- tn as useTcnKeepAlive,
1049
- sn as useTcnManualDialStart,
1050
- on as useTcnProcessManualDial,
1051
- Ze as useTcnRefreshToken,
1052
- fe as useTriggerHttpWorkflow,
1053
- de as useTriggerWorkflow,
1081
+ gn as useTcnAgentDisconnect,
1082
+ Fn as useTcnAgentGetCallFromHold,
1083
+ on as useTcnAgentGetStatus,
1084
+ wn as useTcnAgentPause,
1085
+ qn as useTcnAgentPutCallOnHold,
1086
+ dn as useTcnAgentSetReady,
1087
+ rn as useTcnAgentSkills,
1088
+ je as useTcnAuthUrl,
1089
+ mn as useTcnCallData,
1090
+ fn as useTcnConnectedParty,
1091
+ un as useTcnCreateSession,
1092
+ tn as useTcnCurrentAgent,
1093
+ cn as useTcnDialManualPrepare,
1094
+ en as useTcnExchangeCode,
1095
+ bn as useTcnFtpManualDialReport,
1096
+ sn as useTcnHuntGroupSettings,
1097
+ an as useTcnKeepAlive,
1098
+ yn as useTcnManualDialStart,
1099
+ ln as useTcnProcessManualDial,
1100
+ nn as useTcnRefreshToken,
1101
+ de as useTriggerHttpWorkflow,
1102
+ fe as useTriggerWorkflow,
1054
1103
  Q as useUnsubscribeUser,
1055
- M as useUpdateComment,
1104
+ v as useUpdateComment,
1056
1105
  ce as useUpdateRow,
1057
- B as useUser,
1106
+ K as useUser,
1058
1107
  me as useUserDetails
1059
1108
  };