@bluecopa/react 0.1.109 → 0.1.111

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.
Files changed (93) hide show
  1. package/dist/hooks/pipeline/types.d.ts +32 -0
  2. package/dist/hooks/pipeline/types.d.ts.map +1 -0
  3. package/dist/hooks/pipeline/useLastSuccessfulPipelineRun.d.ts +16 -0
  4. package/dist/hooks/pipeline/useLastSuccessfulPipelineRun.d.ts.map +1 -0
  5. package/dist/hooks/pipeline/usePipelineList.d.ts +23 -0
  6. package/dist/hooks/pipeline/usePipelineList.d.ts.map +1 -0
  7. package/dist/hooks/pipeline/usePipelineRunDetail.d.ts +3 -0
  8. package/dist/hooks/pipeline/usePipelineRunDetail.d.ts.map +1 -0
  9. package/dist/hooks/pipeline/usePipelineRuns.d.ts +16 -0
  10. package/dist/hooks/pipeline/usePipelineRuns.d.ts.map +1 -0
  11. package/dist/hooks/useCancelInboxItem.d.ts +9 -0
  12. package/dist/hooks/useCancelInboxItem.d.ts.map +1 -0
  13. package/dist/hooks/useCancelInboxItemsByKey.d.ts +10 -0
  14. package/dist/hooks/useCancelInboxItemsByKey.d.ts.map +1 -0
  15. package/dist/hooks/useClaimInboxItem.d.ts +10 -0
  16. package/dist/hooks/useClaimInboxItem.d.ts.map +1 -0
  17. package/dist/hooks/useCompleteInboxItem.d.ts +9 -0
  18. package/dist/hooks/useCompleteInboxItem.d.ts.map +1 -0
  19. package/dist/hooks/useCompleteInboxItemsByKey.d.ts +10 -0
  20. package/dist/hooks/useCompleteInboxItemsByKey.d.ts.map +1 -0
  21. package/dist/hooks/useCreateFiscalCalendar.d.ts +11 -0
  22. package/dist/hooks/useCreateFiscalCalendar.d.ts.map +1 -0
  23. package/dist/hooks/useCreateHolidayCalendar.d.ts +12 -0
  24. package/dist/hooks/useCreateHolidayCalendar.d.ts.map +1 -0
  25. package/dist/hooks/useCreateInboxItem.d.ts +10 -0
  26. package/dist/hooks/useCreateInboxItem.d.ts.map +1 -0
  27. package/dist/hooks/useCreateInboxType.d.ts +9 -0
  28. package/dist/hooks/useCreateInboxType.d.ts.map +1 -0
  29. package/dist/hooks/useDataset.d.ts +2 -1
  30. package/dist/hooks/useDataset.d.ts.map +1 -1
  31. package/dist/hooks/useDeleteFiscalCalendar.d.ts +11 -0
  32. package/dist/hooks/useDeleteFiscalCalendar.d.ts.map +1 -0
  33. package/dist/hooks/useDeleteHolidayCalendar.d.ts +9 -0
  34. package/dist/hooks/useDeleteHolidayCalendar.d.ts.map +1 -0
  35. package/dist/hooks/useDeleteInboxType.d.ts +8 -0
  36. package/dist/hooks/useDeleteInboxType.d.ts.map +1 -0
  37. package/dist/hooks/useDismissInboxItem.d.ts +9 -0
  38. package/dist/hooks/useDismissInboxItem.d.ts.map +1 -0
  39. package/dist/hooks/useGetFiscalCalendar.d.ts +13 -0
  40. package/dist/hooks/useGetFiscalCalendar.d.ts.map +1 -0
  41. package/dist/hooks/useGetHolidayCalendar.d.ts +12 -0
  42. package/dist/hooks/useGetHolidayCalendar.d.ts.map +1 -0
  43. package/dist/hooks/useGetInboxItem.d.ts +11 -0
  44. package/dist/hooks/useGetInboxItem.d.ts.map +1 -0
  45. package/dist/hooks/useGetInboxType.d.ts +11 -0
  46. package/dist/hooks/useGetInboxType.d.ts.map +1 -0
  47. package/dist/hooks/useGetVirtualDatasets.d.ts +1 -1
  48. package/dist/hooks/useGetVirtualDatasets.d.ts.map +1 -1
  49. package/dist/hooks/useImportHolidays.d.ts +17 -0
  50. package/dist/hooks/useImportHolidays.d.ts.map +1 -0
  51. package/dist/hooks/useInputTable.d.ts +1 -1
  52. package/dist/hooks/useInputTable.d.ts.map +1 -1
  53. package/dist/hooks/useListFiscalCalendars.d.ts +12 -0
  54. package/dist/hooks/useListFiscalCalendars.d.ts.map +1 -0
  55. package/dist/hooks/useListHolidayCalendars.d.ts +12 -0
  56. package/dist/hooks/useListHolidayCalendars.d.ts.map +1 -0
  57. package/dist/hooks/useListHolidays.d.ts +13 -0
  58. package/dist/hooks/useListHolidays.d.ts.map +1 -0
  59. package/dist/hooks/useListInboxTypes.d.ts +9 -0
  60. package/dist/hooks/useListInboxTypes.d.ts.map +1 -0
  61. package/dist/hooks/useListMyInboxItems.d.ts +10 -0
  62. package/dist/hooks/useListMyInboxItems.d.ts.map +1 -0
  63. package/dist/hooks/useMarkInboxItemsRead.d.ts +9 -0
  64. package/dist/hooks/useMarkInboxItemsRead.d.ts.map +1 -0
  65. package/dist/hooks/useMarkInboxItemsUnread.d.ts +9 -0
  66. package/dist/hooks/useMarkInboxItemsUnread.d.ts.map +1 -0
  67. package/dist/hooks/useMetric.d.ts.map +1 -1
  68. package/dist/hooks/useReassignInboxItem.d.ts +14 -0
  69. package/dist/hooks/useReassignInboxItem.d.ts.map +1 -0
  70. package/dist/hooks/useReleaseInboxItem.d.ts +10 -0
  71. package/dist/hooks/useReleaseInboxItem.d.ts.map +1 -0
  72. package/dist/hooks/useSnoozeInboxItem.d.ts +13 -0
  73. package/dist/hooks/useSnoozeInboxItem.d.ts.map +1 -0
  74. package/dist/hooks/useUpdateFiscalCalendar.d.ts +16 -0
  75. package/dist/hooks/useUpdateFiscalCalendar.d.ts.map +1 -0
  76. package/dist/hooks/useUpdateHolidayCalendar.d.ts +16 -0
  77. package/dist/hooks/useUpdateHolidayCalendar.d.ts.map +1 -0
  78. package/dist/hooks/useUpdateInboxItem.d.ts +14 -0
  79. package/dist/hooks/useUpdateInboxItem.d.ts.map +1 -0
  80. package/dist/hooks/useUpdateInboxType.d.ts +13 -0
  81. package/dist/hooks/useUpdateInboxType.d.ts.map +1 -0
  82. package/dist/hooks/workingPaper/types.d.ts +21 -0
  83. package/dist/hooks/workingPaper/types.d.ts.map +1 -0
  84. package/dist/hooks/workingPaper/useFxDefinitionSheet.d.ts +42 -0
  85. package/dist/hooks/workingPaper/useFxDefinitionSheet.d.ts.map +1 -0
  86. package/dist/hooks/workingPaper/useInputTableSheet.d.ts +37 -0
  87. package/dist/hooks/workingPaper/useInputTableSheet.d.ts.map +1 -0
  88. package/dist/hooks/workingPaper/useWorkingPaper.d.ts +14 -0
  89. package/dist/hooks/workingPaper/useWorkingPaper.d.ts.map +1 -0
  90. package/dist/index.d.ts +41 -0
  91. package/dist/index.d.ts.map +1 -1
  92. package/dist/index.es.js +1407 -937
  93. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import { useQuery as s, useMutation as u, useQueryClient as g } from "@tanstack/react-query";
2
- import * as H from "@tanstack/react-query";
3
- import { copaApi as r, copaGetConfig as h, copaUtils as R } from "@bluecopa/core";
1
+ import { useQuery as s, useMutation as o, useQueryClient as g } from "@tanstack/react-query";
2
+ import * as re from "@tanstack/react-query";
3
+ import { copaApi as r, copaGetConfig as P, copaUtils as A } from "@bluecopa/core";
4
4
  export * from "@bluecopa/core";
5
- import { useState as D, useRef as S, useEffect as k, useMemo as C } from "react";
6
- import { ReactQueryDevtools as On } from "@tanstack/react-query-devtools";
7
- const x = {
5
+ import { useState as T, useRef as G, useEffect as B, useMemo as D } from "react";
6
+ import { ReactQueryDevtools as Ar } from "@tanstack/react-query-devtools";
7
+ const M = {
8
8
  enabled: !0,
9
9
  staleTime: 1e3 * 60 * 5,
10
10
  // 5 minutes
@@ -13,397 +13,396 @@ const x = {
13
13
  retry: 2,
14
14
  retryDelay: (e) => Math.min(1e3 * 2 ** e, 3e4)
15
15
  };
16
- function K(e = {}) {
16
+ function v(e = {}) {
17
17
  return {
18
- ...x,
18
+ ...M,
19
19
  ...e
20
20
  };
21
21
  }
22
- function E(e = 5e3) {
23
- return new Promise((t) => setTimeout(t, e));
22
+ function O(e = 5e3) {
23
+ return new Promise((n) => setTimeout(n, e));
24
24
  }
25
- function p(e, t) {
26
- const n = Object.entries(e).filter(([a, o]) => !o).map(([a]) => a);
27
- if (n.length > 0)
25
+ function S(e, n) {
26
+ const t = Object.entries(e).filter(([a, u]) => !u).map(([a]) => a);
27
+ if (t.length > 0)
28
28
  throw new Error(
29
- t || `Missing required parameters: ${n.join(", ")}`
29
+ n || `Missing required parameters: ${t.join(", ")}`
30
30
  );
31
31
  }
32
- function c(e, t, n = 0) {
33
- return async () => (await E(n), await e());
32
+ function y(e, n, t = 0) {
33
+ return async () => (await O(t), await e());
34
34
  }
35
- function l(e) {
36
- const t = K(e.options);
35
+ function d(e) {
36
+ const n = v(e.options);
37
37
  return {
38
38
  queryKey: e.queryKey,
39
39
  queryFn: e.queryFn,
40
- enabled: e.enabled !== void 0 ? e.enabled : t.enabled,
41
- staleTime: t.staleTime,
42
- gcTime: t.gcTime,
43
- retry: t.retry,
44
- retryDelay: t.retryDelay,
45
- onSuccess: t.onSuccess,
46
- onError: t.onError
40
+ enabled: e.enabled !== void 0 ? e.enabled : n.enabled,
41
+ staleTime: n.staleTime,
42
+ gcTime: n.gcTime,
43
+ retry: n.retry,
44
+ retryDelay: n.retryDelay,
45
+ onSuccess: n.onSuccess,
46
+ onError: n.onError
47
47
  };
48
48
  }
49
- function J(e, t = {}) {
50
- const n = t.enabled !== !1 && !!e, a = t.solutionBindings ?? null, o = c(async () => {
49
+ function ue(e, n = {}) {
50
+ const t = n.enabled !== !1 && !!e, a = n.solutionBindings ?? null, u = y(async () => {
51
51
  if (!e)
52
52
  throw new Error("Metric ID is required");
53
53
  return console.log("Fetching metric data..."), await r.metric.getData(e, {
54
- solutionBindings: t.solutionBindings,
55
- limit: t.limit
54
+ limit: n.limit
56
55
  });
57
- }), i = l({
58
- queryKey: ["metricData", e, a, t.limit ?? null],
59
- queryFn: o,
60
- enabled: n,
61
- options: t
56
+ }), i = d({
57
+ queryKey: ["metricData", e, a, n.limit ?? null],
58
+ queryFn: u,
59
+ enabled: t,
60
+ options: n
62
61
  });
63
62
  return s(i);
64
63
  }
65
- function Y(e, t = {}) {
66
- const n = !!e, a = c(async () => {
64
+ function se(e, n = {}) {
65
+ const t = !!e, a = y(async () => {
67
66
  if (!e)
68
67
  throw new Error("Dataset ID is required");
69
68
  return console.log("Fetching dataset data..."), await r.dataset.getSampleData({
70
69
  datasetId: e,
71
70
  dataFilter: "all_data"
72
71
  });
73
- }), o = l({
72
+ }), u = d({
74
73
  queryKey: ["datasetData", e],
75
74
  queryFn: a,
76
- enabled: n,
77
- options: t
75
+ enabled: t,
76
+ options: n
78
77
  });
79
- return s(o);
78
+ return s(u);
80
79
  }
81
- function $(e = {}) {
82
- return u({
83
- mutationFn: async (t) => await r.chat.createThread(t),
80
+ function ie(e = {}) {
81
+ return o({
82
+ mutationFn: async (n) => await r.chat.createThread(n),
84
83
  onSuccess: e.onSuccess,
85
84
  onError: e.onError,
86
85
  retry: e.retry ?? 2,
87
- retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
86
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
88
87
  });
89
88
  }
90
- function X(e, t = {}) {
91
- const n = t.enabled !== !1 && !!e, a = c(async () => (p(
89
+ function ce(e, n = {}) {
90
+ const t = n.enabled !== !1 && !!e, a = y(async () => (S(
92
91
  { threadId: e },
93
92
  "Thread ID is required to fetch comments"
94
- ), await r.chat.getCommentsByThreadId(e))), o = l({
93
+ ), await r.chat.getCommentsByThreadId(e))), u = d({
95
94
  queryKey: ["chat", "comments", e],
96
95
  queryFn: a,
97
- enabled: n,
98
- options: t
96
+ enabled: t,
97
+ options: n
99
98
  });
100
- return s(o);
99
+ return s(u);
101
100
  }
102
- function Z(e = {}) {
103
- return u({
104
- mutationFn: async (t) => await r.chat.postComment(t),
101
+ function le(e = {}) {
102
+ return o({
103
+ mutationFn: async (n) => await r.chat.postComment(n),
105
104
  onSuccess: e.onSuccess,
106
105
  onError: e.onError,
107
106
  retry: e.retry ?? 2,
108
- retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
107
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
109
108
  });
110
109
  }
111
- function ee(e = {}) {
112
- return u({
113
- mutationFn: async (t) => await r.chat.updateComment(t),
110
+ function ye(e = {}) {
111
+ return o({
112
+ mutationFn: async (n) => await r.chat.updateComment(n),
114
113
  onSuccess: e.onSuccess,
115
114
  onError: e.onError,
116
115
  retry: e.retry ?? 2,
117
- retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
116
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
118
117
  });
119
118
  }
120
- function te(e = {}) {
121
- return u({
122
- mutationFn: async (t) => await r.chat.deleteComment(t),
119
+ function de(e = {}) {
120
+ return o({
121
+ mutationFn: async (n) => await r.chat.deleteComment(n),
123
122
  onSuccess: e.onSuccess,
124
123
  onError: e.onError,
125
124
  retry: e.retry ?? 2,
126
- retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
125
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
127
126
  });
128
127
  }
129
- function ne(e = {}) {
130
- return u({
131
- mutationFn: async (t) => await r.chat.subscribeUser(t),
128
+ function ge(e = {}) {
129
+ return o({
130
+ mutationFn: async (n) => await r.chat.subscribeUser(n),
132
131
  onSuccess: e.onSuccess,
133
132
  onError: e.onError,
134
133
  retry: e.retry ?? 2,
135
- retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
134
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
136
135
  });
137
136
  }
138
- function re(e = {}) {
139
- return u({
140
- mutationFn: async (t) => await r.chat.unsubscribeUser(t),
137
+ function fe(e = {}) {
138
+ return o({
139
+ mutationFn: async (n) => await r.chat.unsubscribeUser(n),
141
140
  onSuccess: e.onSuccess,
142
141
  onError: e.onError,
143
142
  retry: e.retry ?? 2,
144
- retryDelay: e.retryDelay ?? ((t) => Math.min(1e3 * 2 ** t, 3e4))
143
+ retryDelay: e.retryDelay ?? ((n) => Math.min(1e3 * 2 ** n, 3e4))
145
144
  });
146
145
  }
147
- function ae(e, t, n = {}) {
148
- const a = n.enabled !== !1 && !!e && !!t, o = c(async () => (p(
149
- { userId: e, threadId: t },
146
+ function me(e, n, t = {}) {
147
+ const a = t.enabled !== !1 && !!e && !!n, u = y(async () => (S(
148
+ { userId: e, threadId: n },
150
149
  "User ID and Thread ID are required to check subscription status"
151
- ), await r.chat.checkSubscriptionStatus(e, t))), i = l({
152
- queryKey: ["chat", "subscription", e, t],
153
- queryFn: o,
150
+ ), await r.chat.checkSubscriptionStatus(e, n))), i = d({
151
+ queryKey: ["chat", "subscription", e, n],
152
+ queryFn: u,
154
153
  enabled: a,
155
- options: n
154
+ options: t
156
155
  });
157
156
  return s(i);
158
157
  }
159
- function ue(e = {}) {
160
- return u({
161
- mutationFn: async (t) => await r.statement.createNewRun(t),
158
+ function we(e = {}) {
159
+ return o({
160
+ mutationFn: async (n) => await r.statement.createNewRun(n),
162
161
  ...e
163
162
  });
164
163
  }
165
- function oe(e, t = {}) {
166
- const n = !!e, a = c(async () => {
164
+ function Fe(e, n = {}) {
165
+ const t = !!e, a = y(async () => {
167
166
  if (!e)
168
167
  throw new Error("Dataset ID is required");
169
168
  return console.log("Fetching dataset data..."), await r.dataset.getData(e, {
170
- limit: t.limit || 1e3
169
+ limit: n.limit || 1e3
171
170
  });
172
- }), o = l({
171
+ }), u = d({
173
172
  queryKey: ["datasetData", e],
174
173
  queryFn: a,
175
- enabled: n,
176
- options: t
174
+ enabled: t,
175
+ options: n
177
176
  });
178
- return s(o);
177
+ return s(u);
179
178
  }
180
- function se() {
181
- const e = c(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), t = l({
179
+ function pe() {
180
+ const e = y(async () => (console.log("Fetching dataset data..."), await r.dataset.getAllDatasets())), n = d({
182
181
  queryKey: ["datasetData"],
183
182
  queryFn: e,
184
183
  enabled: !0
185
184
  });
186
- return s(t);
185
+ return s(n);
187
186
  }
188
- function ie() {
189
- const e = c(async () => await r.dataset.getVirtualDatasets()), t = l({
187
+ function qe() {
188
+ const e = y(async () => await r.dataset.getVirtualDatasets()), n = d({
190
189
  queryKey: ["virtualDatasets"],
191
190
  queryFn: e,
192
191
  enabled: !0
193
192
  });
194
- return s(t);
193
+ return s(n);
195
194
  }
196
- function ce(e, t, n, a = {}) {
197
- const o = !!e && !!t && !!n, i = c(async () => {
198
- if (!e || !t || !n)
195
+ function be(e, n, t, a = {}) {
196
+ const u = !!e && !!n && !!t, i = y(async () => {
197
+ if (!e || !n || !t)
199
198
  throw new Error("Key, contentType, and method are required");
200
199
  return console.log("Getting signed file URL..."), await r.files.getFileUrlByFileId({
201
200
  key: e,
202
- contentType: t,
203
- method: n
201
+ contentType: n,
202
+ method: t
204
203
  });
205
- }), y = l({
206
- queryKey: ["file", "getFileUrlByFileId", e, t, n],
204
+ }), c = d({
205
+ queryKey: ["file", "getFileUrlByFileId", e, n, t],
207
206
  queryFn: i,
208
- enabled: o,
207
+ enabled: u,
209
208
  options: a
210
209
  });
211
- return s(y);
210
+ return s(c);
212
211
  }
213
- function le(e, t, n = {}) {
214
- const a = e?.trim(), o = t?.trim(), i = !!(a && o), y = c(async () => await r.files.getFileByFolderIdAndName({
212
+ function he(e, n, t = {}) {
213
+ const a = e?.trim(), u = n?.trim(), i = !!(a && u), c = y(async () => await r.files.getFileByFolderIdAndName({
215
214
  folderId: a,
216
- name: o
217
- })), d = l({
215
+ name: u
216
+ })), l = d({
218
217
  queryKey: [
219
218
  "file",
220
219
  "getFileByFolderIdAndName",
221
220
  a,
222
- o
221
+ u
223
222
  ],
224
- queryFn: y,
223
+ queryFn: c,
225
224
  enabled: i,
226
- options: n
225
+ options: t
227
226
  });
228
- return s(d);
227
+ return s(l);
229
228
  }
230
- function ye(e, t, n = {}) {
231
- const a = !!e && !!t, o = c(async () => {
232
- if (!e || !t)
229
+ function De(e, n, t = {}) {
230
+ const a = !!e && !!n, u = y(async () => {
231
+ if (!e || !n)
233
232
  throw new Error("Type and ID are required");
234
- return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: t });
235
- }), i = l({
236
- queryKey: ["workbook", "getPublishedWorkbookById", e, t],
237
- queryFn: o,
233
+ return console.log("Fetching published workbook by ID..."), await r.workbook.getPublishedWorkbookById({ type: e, id: n });
234
+ }), i = d({
235
+ queryKey: ["workbook", "getPublishedWorkbookById", e, n],
236
+ queryFn: u,
238
237
  enabled: a,
239
- options: n
238
+ options: t
240
239
  });
241
240
  return s(i);
242
241
  }
243
- function de(e, t = {}) {
244
- const n = !!e, a = c(async () => {
242
+ function Te(e, n = {}) {
243
+ const t = !!e, a = y(async () => {
245
244
  if (!e)
246
245
  throw new Error("Run ID is required");
247
246
  return await r.statement.getRunResultById(e);
248
- }), o = l({
247
+ }), u = d({
249
248
  queryKey: ["statement", "getRunResultById", e],
250
249
  queryFn: a,
251
- enabled: n,
252
- options: t
250
+ enabled: t,
251
+ options: n
253
252
  });
254
- return s(o);
253
+ return s(u);
255
254
  }
256
- function ge(e, t = {}) {
257
- const n = !!e, a = c(async () => {
255
+ function Re(e, n = {}) {
256
+ const t = !!e, a = y(async () => {
258
257
  if (!e)
259
258
  throw new Error("View ID is required");
260
259
  return await r.statement.getRunsByViewId(e);
261
- }), o = l({
260
+ }), u = d({
262
261
  queryKey: ["statement", "getRunsByViewId", e],
263
262
  queryFn: a,
264
- enabled: n,
265
- options: t
263
+ enabled: t,
264
+ options: n
266
265
  });
267
- return s(o);
266
+ return s(u);
268
267
  }
269
- function fe(e, t, n, a = {}) {
270
- const o = !!e, i = c(async () => {
268
+ function ke(e, n, t, a = {}) {
269
+ const u = !!e, i = y(async () => {
271
270
  if (!e)
272
271
  throw new Error("Statement ID is required");
273
272
  return await r.statement.getData({
274
273
  statementId: e,
275
- viewId: t || void 0,
276
- runId: n || void 0
274
+ viewId: n || void 0,
275
+ runId: t || void 0
277
276
  });
278
- }), y = l({
279
- queryKey: ["statement", "getData", e, t, n],
277
+ }), c = d({
278
+ queryKey: ["statement", "getData", e, n, t],
280
279
  queryFn: i,
281
- enabled: o,
280
+ enabled: u,
282
281
  options: a
283
282
  });
284
- return s(y);
283
+ return s(c);
285
284
  }
286
- function we(e, t = {}) {
287
- const n = !!e, a = c(async () => {
285
+ function Ce(e, n = {}) {
286
+ const t = !!e, a = y(async () => {
288
287
  if (!e)
289
288
  throw new Error("Table ID is required");
290
289
  return console.log("Fetching table by ID..."), await r.inputTable.getTableById(e);
291
- }), o = l({
290
+ }), u = d({
292
291
  queryKey: ["inputTable", "getTableById", e],
293
292
  queryFn: a,
294
- enabled: n,
295
- options: t
293
+ enabled: t,
294
+ options: n
296
295
  });
297
- return s(o);
296
+ return s(u);
298
297
  }
299
- function me(e, t = {}) {
300
- const n = !!e, a = c(async () => {
298
+ function xe(e, n = {}) {
299
+ const t = !!e, a = y(async () => {
301
300
  if (!e)
302
301
  throw new Error("View ID is required");
303
302
  return await r.statement.getViewById(e);
304
- }), o = l({
303
+ }), u = d({
305
304
  queryKey: ["statement", "getViewById", e],
306
305
  queryFn: a,
307
- enabled: n,
308
- options: t
306
+ enabled: t,
307
+ options: n
309
308
  });
310
- return s(o);
309
+ return s(u);
311
310
  }
312
- function Fe(e, t = {}) {
313
- const n = !!e, a = c(async () => {
311
+ function Pe(e, n = {}) {
312
+ const t = !!e, a = y(async () => {
314
313
  if (!e)
315
314
  throw new Error("Sheet ID is required");
316
315
  return await r.statement.getViewsBySheetId(e);
317
- }), o = l({
316
+ }), u = d({
318
317
  queryKey: ["statement", "getViewsBySheetId", e],
319
318
  queryFn: a,
320
- enabled: n,
321
- options: t
319
+ enabled: t,
320
+ options: n
322
321
  });
323
- return s(o);
322
+ return s(u);
324
323
  }
325
- function qe(e, t = {}) {
326
- const n = !!e, a = c(async () => {
324
+ function Se(e, n = {}) {
325
+ const t = !!e, a = y(async () => {
327
326
  if (!e)
328
327
  throw new Error("Type is required");
329
328
  return console.log("Fetching workbooks by type..."), await r.workbook.getWorkbooksByType(e);
330
- }), o = l({
329
+ }), u = d({
331
330
  queryKey: ["workbook", "getWorkbooksByType", e],
332
331
  queryFn: a,
333
- enabled: n,
334
- options: t
332
+ enabled: t,
333
+ options: n
335
334
  });
336
- return s(o);
335
+ return s(u);
337
336
  }
338
- var P = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(P || {});
339
- function be(e = {}) {
340
- return u({
341
- mutationFn: async (t) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(t)),
337
+ var U = /* @__PURE__ */ ((e) => (e.Succeeded = "Succeeded", e.Failed = "Failed", e.Running = "Running", e.NotFound = "NotFound", e))(U || {});
338
+ function Ie(e = {}) {
339
+ return o({
340
+ mutationFn: async (n) => (console.log("Fetching workflow instance status..."), await r.workflow.getWorkflowInstanceStatusById(n)),
342
341
  ...e
343
342
  });
344
343
  }
345
- function De(e, t = {}) {
346
- const n = !!e && e.length > 0, a = c(async () => {
344
+ function Ke(e, n = {}) {
345
+ const t = !!e && e.length > 0, a = y(async () => {
347
346
  if (!e || e.length === 0)
348
347
  throw new Error("Worksheet IDs are required");
349
348
  return console.log("Fetching worksheets..."), await r.worksheet.getWorksheets(e);
350
- }), o = l({
349
+ }), u = d({
351
350
  queryKey: ["worksheet", "getWorksheets", e],
352
351
  queryFn: a,
353
- enabled: n,
354
- options: t
352
+ enabled: t,
353
+ options: n
355
354
  });
356
- return s(o);
355
+ return s(u);
357
356
  }
358
- function Te(e, t = {}) {
359
- const n = !!e, a = c(async () => {
357
+ function Ve(e, n = {}) {
358
+ const t = !!e, a = y(async () => {
360
359
  if (!e)
361
360
  throw new Error("Type is required");
362
361
  return console.log("Fetching worksheets by type..."), await r.worksheet.getWorksheetsByType(e);
363
- }), o = l({
362
+ }), u = d({
364
363
  queryKey: ["worksheet", "getWorksheetsByType", e],
365
364
  queryFn: a,
366
- enabled: n,
367
- options: t
365
+ enabled: t,
366
+ options: n
368
367
  });
369
- return s(o);
368
+ return s(u);
370
369
  }
371
- function he(e, t, n = {}) {
370
+ function Ee(e, n, t = {}) {
372
371
  const {
373
372
  limitParams: a = { limit: 2e3, limitFrom: "top" },
374
- pageParams: o,
373
+ pageParams: u,
375
374
  sortParams: i,
376
- offsetParam: y,
377
- ...d
378
- } = n, f = d.enabled !== !1 && !!e && !!t, w = c(async () => {
379
- if (!e || !t)
375
+ offsetParam: c,
376
+ ...l
377
+ } = t, f = l.enabled !== !1 && !!e && !!n, m = y(async () => {
378
+ if (!e || !n)
380
379
  throw new Error("Input table ID and view ID are required");
381
380
  return console.log("Fetching input table data..."), await r.inputTable.getData({
382
381
  inputTableId: e,
383
- inputTableViewId: t,
384
- pageParams: o,
382
+ inputTableViewId: n,
383
+ pageParams: u,
385
384
  limitParams: a,
386
385
  sortParams: i,
387
- offsetParam: y
386
+ offsetParam: c
388
387
  });
389
- }), m = l({
390
- queryKey: ["inputTableData", e, t],
391
- queryFn: w,
388
+ }), w = d({
389
+ queryKey: ["inputTableData", e, n],
390
+ queryFn: m,
392
391
  enabled: f,
393
- options: d
392
+ options: l
394
393
  });
395
- return s(m);
394
+ return s(w);
396
395
  }
397
- function pe() {
398
- const e = c(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), t = l({
396
+ function Ae() {
397
+ const e = y(async () => (console.log("Fetching input table data..."), await r.inputTable.getInputTables())), n = d({
399
398
  queryKey: ["inputTableData"],
400
399
  queryFn: e,
401
400
  enabled: !0
402
401
  });
403
- return s(t);
402
+ return s(n);
404
403
  }
405
- function Re(e, t = {}) {
406
- const n = [
404
+ function Ge(e, n = {}) {
405
+ const t = [
407
406
  "enabled",
408
407
  "staleTime",
409
408
  "gcTime",
@@ -411,243 +410,243 @@ function Re(e, t = {}) {
411
410
  "retryDelay",
412
411
  "onSuccess",
413
412
  "onError"
414
- ], { limit: a, offset: o, order: i, order_by: y, ...d } = t, f = {}, w = { limit: a, offset: o, order: i, order_by: y };
415
- Object.keys(d).forEach((F) => {
416
- n.includes(F) ? f[F] = d[F] : w[F] = d[F];
413
+ ], { limit: a, offset: u, order: i, order_by: c, ...l } = n, f = {}, m = { limit: a, offset: u, order: i, order_by: c };
414
+ Object.keys(l).forEach((p) => {
415
+ t.includes(p) ? f[p] = l[p] : m[p] = l[p];
417
416
  });
418
- const m = f.enabled !== !1 && !!e, b = c(async () => {
417
+ const w = f.enabled !== !1 && !!e, q = y(async () => {
419
418
  if (!e)
420
419
  throw new Error("Table ID is required");
421
- return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, w);
422
- }), q = l({
423
- queryKey: ["inputTableRows", e, t],
424
- queryFn: b,
425
- enabled: m,
420
+ return console.log("Fetching input table rows..."), await r.inputTable.getRows(e, m);
421
+ }), F = d({
422
+ queryKey: ["inputTableRows", e, n],
423
+ queryFn: q,
424
+ enabled: w,
426
425
  options: f
427
426
  });
428
- return s(q);
427
+ return s(F);
429
428
  }
430
- function Se(e = {}) {
431
- const t = g();
432
- return u({
433
- mutationFn: async (n) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(n.tableId, n.rowData)),
434
- onSuccess: (n, a, o) => {
435
- t.invalidateQueries({
429
+ function Be(e = {}) {
430
+ const n = g();
431
+ return o({
432
+ mutationFn: async (t) => (console.log("Inserting row into input table..."), await r.inputTable.insertRow(t.tableId, t.rowData)),
433
+ onSuccess: (t, a) => {
434
+ n.invalidateQueries({
436
435
  queryKey: ["inputTableRows", a.tableId]
437
- }), e.onSuccess?.(n);
436
+ }), e.onSuccess?.(t);
438
437
  },
439
- onError: (n, a, o) => {
440
- e.onError?.(n);
438
+ onError: (t) => {
439
+ e.onError?.(t);
441
440
  },
442
441
  ...e
443
442
  });
444
443
  }
445
- function ke(e = {}) {
446
- const t = g();
447
- return u({
448
- mutationFn: async (n) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
449
- n.tableId,
450
- n.updateData,
451
- n.rowId
444
+ function Me(e = {}) {
445
+ const n = g();
446
+ return o({
447
+ mutationFn: async (t) => (console.log("Updating input table row..."), await r.inputTable.updateRow(
448
+ t.tableId,
449
+ t.updateData,
450
+ t.rowId
452
451
  )),
453
- onSuccess: (n, a, o) => {
454
- t.invalidateQueries({
452
+ onSuccess: (t, a) => {
453
+ n.invalidateQueries({
455
454
  queryKey: ["inputTableRows", a.tableId]
456
- }), e.onSuccess?.(n);
455
+ }), e.onSuccess?.(t);
457
456
  },
458
- onError: (n, a, o) => {
459
- e.onError?.(n);
457
+ onError: (t) => {
458
+ e.onError?.(t);
460
459
  },
461
460
  ...e
462
461
  });
463
462
  }
464
- function Ce(e = {}) {
465
- const t = g();
466
- return u({
467
- mutationFn: async (n) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
468
- n.tableId,
469
- n.rowId,
470
- n.idField
463
+ function ve(e = {}) {
464
+ const n = g();
465
+ return o({
466
+ mutationFn: async (t) => (console.log("Deleting input table row(s)..."), await r.inputTable.deleteRow(
467
+ t.tableId,
468
+ t.rowId,
469
+ t.idField
471
470
  )),
472
- onSuccess: (n, a, o) => {
473
- t.invalidateQueries({
471
+ onSuccess: (t, a) => {
472
+ n.invalidateQueries({
474
473
  queryKey: ["inputTableRows", a.tableId]
475
- }), e.onSuccess?.(n);
474
+ }), e.onSuccess?.(t);
476
475
  },
477
- onError: (n, a, o) => {
478
- e.onError?.(n);
476
+ onError: (t) => {
477
+ e.onError?.(t);
479
478
  },
480
479
  ...e
481
480
  });
482
481
  }
483
- function xe(e = {}) {
484
- return u({
485
- mutationFn: async (t) => (console.log("Running definition..."), await r.definition.runDefinition(t)),
482
+ function Oe(e = {}) {
483
+ return o({
484
+ mutationFn: async (n) => (console.log("Running definition..."), await r.definition.runDefinition(n)),
486
485
  ...e
487
486
  });
488
487
  }
489
- function Ke(e = {}) {
490
- return u({
491
- mutationFn: async (t) => await r.definition.runPublishedDefinition(t),
488
+ function Ue(e = {}) {
489
+ return o({
490
+ mutationFn: async (n) => await r.definition.runPublishedDefinition(n),
492
491
  ...e
493
492
  });
494
493
  }
495
- function Ee(e = {}) {
496
- return u({
497
- mutationFn: async (t) => await r.definition.runSampleDefinition(t),
494
+ function Le(e = {}) {
495
+ return o({
496
+ mutationFn: async (n) => await r.definition.runSampleDefinition(n),
498
497
  ...e
499
498
  });
500
499
  }
501
- function Pe(e = {}) {
502
- return u({
503
- mutationFn: async (t) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(t)),
500
+ function Qe(e = {}) {
501
+ return o({
502
+ mutationFn: async (n) => (console.log("Triggering HTTP workflow..."), await r.workflow.triggerHttpWorkflowById(n)),
504
503
  ...e
505
504
  });
506
505
  }
507
- function Ve(e = {}) {
508
- return u({
509
- mutationFn: async (t) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(t)),
506
+ function We(e = {}) {
507
+ return o({
508
+ mutationFn: async (n) => (console.log("Triggering workflow..."), await r.workflow.triggerWorkflowById(n)),
510
509
  ...e
511
510
  });
512
511
  }
513
- function V(e = {}) {
514
- const t = e.enabled !== !1, n = c(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), a = l({
512
+ function L(e = {}) {
513
+ const n = e.enabled !== !1, t = y(async () => (console.log("Fetching user details..."), await r.user.getLoggedInUserDetails())), a = d({
515
514
  queryKey: ["user"],
516
- queryFn: n,
517
- enabled: t,
515
+ queryFn: t,
516
+ enabled: n,
518
517
  options: e
519
518
  });
520
519
  return s(a);
521
520
  }
522
- const Ie = V, I = ["Owner", "Editor", "Viewer", "ReadOnly"], T = r.permissions?.getPermissions;
523
- function Ge(e, t, n = {}) {
524
- const a = n.enabled !== !1 && !!e?.trim(), o = c(
521
+ const He = L, Q = ["Owner", "Editor", "Viewer", "ReadOnly"], x = r.permissions?.getPermissions;
522
+ function _e(e, n, t = {}) {
523
+ const a = t.enabled !== !1 && !!e?.trim(), u = y(
525
524
  async () => {
526
525
  if (!e?.trim())
527
526
  return {};
528
- if (!T)
527
+ if (!x)
529
528
  throw new Error(
530
529
  "@bluecopa/core: permissions.getPermissions not available. Rebuild the core package."
531
530
  );
532
- const y = h();
533
- if (!y.userId)
531
+ const c = P();
532
+ if (!c.userId)
534
533
  throw new Error(
535
534
  "@bluecopa/core: userId is required. Call copaSetConfig({ userId, ... }) before using useDocumentPermissions."
536
535
  );
537
- return await T({
536
+ return await x({
538
537
  objectId: e.trim(),
539
- objectType: t,
540
- user: y.userId,
538
+ objectType: n,
539
+ user: c.userId,
541
540
  userType: "User",
542
- relations: n.relations ?? I
541
+ relations: t.relations ?? Q
543
542
  });
544
543
  },
545
544
  void 0,
546
545
  0
547
- ), i = l({
548
- queryKey: ["documentPermissions", e ?? "", t, n.relations ?? []],
549
- queryFn: o,
546
+ ), i = d({
547
+ queryKey: ["documentPermissions", e ?? "", n, t.relations ?? []],
548
+ queryFn: u,
550
549
  enabled: a,
551
- options: n
550
+ options: t
552
551
  });
553
552
  return s(i);
554
553
  }
555
- function Be(e = {}) {
556
- return u({
557
- mutationFn: async (t) => (console.log("Uploading file..."), await r.files.fileUpload(t)),
554
+ function ze(e = {}) {
555
+ return o({
556
+ mutationFn: async (n) => (console.log("Uploading file..."), await r.files.fileUpload(n)),
558
557
  ...e
559
558
  });
560
559
  }
561
- function Ae({
560
+ function Ne({
562
561
  fileId: e,
563
- contentType: t = "application/json",
564
- method: n = "GET"
562
+ contentType: n = "application/json",
563
+ method: t = "GET"
565
564
  }, a = {}) {
566
- const o = !!e, i = c(async () => {
565
+ const u = !!e, i = y(async () => {
567
566
  if (!e)
568
567
  throw new Error("File ID is required");
569
- return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: t, method: n });
570
- }), y = l({
568
+ return console.log("Downloading file..."), await r.files.fileDownload({ fileId: e, contentType: n, method: t });
569
+ }), c = d({
571
570
  queryKey: ["file", "fileDownload", e],
572
571
  queryFn: i,
573
- enabled: o,
572
+ enabled: u,
574
573
  options: a
575
574
  });
576
- return s(y);
575
+ return s(c);
577
576
  }
578
- function Oe(e, t = {}) {
579
- const n = !!e, a = c(async () => {
577
+ function je(e, n = {}) {
578
+ const t = !!e, a = y(async () => {
580
579
  if (!e)
581
580
  throw new Error("Task ID is required");
582
581
  return console.log("Fetching task details..."), await r.task.getTaskDetails({ taskId: e });
583
- }), o = l({
582
+ }), u = d({
584
583
  queryKey: ["task", "getTaskDetails", e],
585
584
  queryFn: a,
586
- enabled: n,
587
- options: t
585
+ enabled: t,
586
+ options: n
588
587
  });
589
- return s(o);
588
+ return s(u);
590
589
  }
591
- function Ue(e, t = {}) {
592
- const n = !!e, a = c(async () => {
590
+ function $e(e, n = {}) {
591
+ const t = !!e, a = y(async () => {
593
592
  if (!e)
594
593
  throw new Error("Workbook ID is required");
595
594
  return console.log("Fetching workbook details..."), await r.workbook.getWorkbookDetails({ workbookId: e });
596
- }), o = l({
595
+ }), u = d({
597
596
  queryKey: ["workbook", "getWorkbookDetails", e],
598
597
  queryFn: a,
599
- enabled: n,
600
- options: t
598
+ enabled: t,
599
+ options: n
601
600
  });
602
- return s(o);
601
+ return s(u);
603
602
  }
604
- function ve(e = {}) {
605
- return u({
606
- mutationFn: async (t) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(t)),
603
+ function Je(e = {}) {
604
+ return o({
605
+ mutationFn: async (n) => (console.log("Saving workbook..."), await r.workbook.saveWorkbook(n)),
607
606
  ...e
608
607
  });
609
608
  }
610
- function Me(e = {}) {
611
- return u({
612
- mutationFn: async (t) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(t)),
609
+ function Xe(e = {}) {
610
+ return o({
611
+ mutationFn: async (n) => (console.log("Publishing workbook..."), await r.workbook.publishWorkbook(n)),
613
612
  ...e
614
613
  });
615
614
  }
616
- function Qe(e = {}) {
617
- return u({
618
- mutationFn: async (t) => (console.log("Running recon workflow..."), await r.recon.runRecon(t)),
615
+ function Ye(e = {}) {
616
+ return o({
617
+ mutationFn: async (n) => (console.log("Running recon workflow..."), await r.recon.runRecon(n)),
619
618
  ...e
620
619
  });
621
620
  }
622
- function We(e, t, n = {}) {
623
- const a = !!e && !!t, o = c(async () => {
624
- if (!e || !t)
621
+ function Ze(e, n, t = {}) {
622
+ const a = !!e && !!n, u = y(async () => {
623
+ if (!e || !n)
625
624
  throw new Error("Form instance ID and revision are required");
626
- return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: t });
625
+ return console.log("Fetching form schema..."), await r.form.getFormSchema({ formInstanceId: e, formRevision: n });
627
626
  });
628
627
  return s(
629
- l({
630
- queryKey: ["form", "getFormSchema", e, t],
631
- queryFn: o,
628
+ d({
629
+ queryKey: ["form", "getFormSchema", e, n],
630
+ queryFn: u,
632
631
  enabled: a,
633
- options: n
632
+ options: t
634
633
  })
635
634
  );
636
635
  }
637
- function _e(e, t = {}) {
638
- const n = !!e, a = c(async () => {
636
+ function en(e, n = {}) {
637
+ const t = !!e, a = y(async () => {
639
638
  if (!e)
640
639
  throw new Error("Form ID is required");
641
640
  return console.log("Fetching form data..."), await r.form.getFormData({ formId: e });
642
- }), o = l({
641
+ }), u = d({
643
642
  queryKey: ["form", "getFormData", e],
644
643
  queryFn: a,
645
- enabled: n,
646
- options: t
644
+ enabled: t,
645
+ options: n
647
646
  });
648
- return s(o);
647
+ return s(u);
649
648
  }
650
- function Le(e, t = {}) {
649
+ function nn(e, n = {}) {
651
650
  return s({
652
651
  queryKey: ["form", e],
653
652
  queryFn: async () => {
@@ -656,97 +655,97 @@ function Le(e, t = {}) {
656
655
  return await r.form.getFormById({ formId: e });
657
656
  },
658
657
  enabled: !!e,
659
- ...t
658
+ ...n
660
659
  });
661
660
  }
662
- function ze(e = {}) {
663
- return u({
664
- mutationFn: async (t) => await r.form.createOrUpdateForm(t),
661
+ function tn(e = {}) {
662
+ return o({
663
+ mutationFn: async (n) => await r.form.createOrUpdateForm(n),
665
664
  ...e
666
665
  });
667
666
  }
668
- function He(e = {}) {
669
- return u({
670
- mutationFn: async (t) => await r.audit.getAuditLogs(t),
667
+ function rn(e = {}) {
668
+ return o({
669
+ mutationFn: async (n) => await r.audit.getAuditLogs(n),
671
670
  ...e
672
671
  });
673
672
  }
674
- function Ne(e = {}) {
675
- return u({
676
- mutationFn: async (t) => await r.audit.createAuditLog(t),
673
+ function an(e = {}) {
674
+ return o({
675
+ mutationFn: async (n) => await r.audit.createAuditLog(n),
677
676
  ...e
678
677
  });
679
678
  }
680
- function je(e = {}) {
679
+ function on(e = {}) {
681
680
  return s({
682
681
  queryKey: ["templatedPipelines"],
683
682
  queryFn: async () => await r.templatedPipeline.getAllTemplatedPipelines(),
684
683
  ...e
685
684
  });
686
685
  }
687
- function Je(e = {}) {
686
+ function un(e = {}) {
688
687
  return s({
689
688
  queryKey: ["reconWorkflows"],
690
689
  queryFn: async () => await r.recon.getAllReconWorkflows(),
691
690
  ...e
692
691
  });
693
692
  }
694
- function G(e = {}) {
695
- return u({
696
- mutationFn: async (t) => await r.reconV2.createReconV2(t),
693
+ function W(e = {}) {
694
+ return o({
695
+ mutationFn: async (n) => await r.reconV2.createReconV2(n),
697
696
  ...e
698
697
  });
699
698
  }
700
- function B(e = {}) {
701
- return u({
702
- mutationFn: async (t) => await r.reconV2.updateReconV2(t),
699
+ function H(e = {}) {
700
+ return o({
701
+ mutationFn: async (n) => await r.reconV2.updateReconV2(n),
703
702
  ...e
704
703
  });
705
704
  }
706
- function Ye(e = {}) {
707
- return u({
708
- mutationFn: async (t) => await r.reconV2.deleteReconV2(t),
705
+ function sn(e = {}) {
706
+ return o({
707
+ mutationFn: async (n) => await r.reconV2.deleteReconV2(n),
709
708
  ...e
710
709
  });
711
710
  }
712
- function A(e = {}) {
713
- return u({
714
- mutationFn: async (t) => await r.reconV2.runReconV2(t),
711
+ function _(e = {}) {
712
+ return o({
713
+ mutationFn: async (n) => await r.reconV2.runReconV2(n),
715
714
  ...e
716
715
  });
717
716
  }
718
- function O(e = {}) {
717
+ function z(e = {}) {
719
718
  return s({
720
719
  queryKey: ["reconV2Workflows"],
721
720
  queryFn: async () => await r.reconV2.getAllReconV2Workflows(),
722
721
  ...e
723
722
  });
724
723
  }
725
- function U(e, t = {}) {
726
- const n = e?.trim();
724
+ function N(e, n = {}) {
725
+ const t = e?.trim();
727
726
  return s({
728
- queryKey: ["reconV2", "runs", n],
729
- queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId: n }),
730
- enabled: !!n,
731
- ...t
727
+ queryKey: ["reconV2", "runs", t],
728
+ queryFn: async () => await r.reconV2.getReconV2Runs({ workflowId: t }),
729
+ enabled: !!t,
730
+ ...n
732
731
  });
733
732
  }
734
- function $e(e = {}) {
733
+ function cn(e = {}) {
735
734
  return s({
736
735
  queryKey: ["reconV2", "templates"],
737
736
  queryFn: async () => await r.reconV2.getReconV2Templates(),
738
737
  ...e
739
738
  });
740
739
  }
741
- function v(e, t = {}) {
740
+ function j(e, n = {}) {
742
741
  return s({
743
742
  queryKey: ["reconV2", "runResult", e],
744
743
  queryFn: async () => await r.reconV2.getReconV2RunResult({ runId: e }),
745
744
  enabled: !!e,
746
- ...t
745
+ ...n
747
746
  });
748
747
  }
749
- function M(e, t = {}) {
748
+ function $(e, n = {}) {
750
749
  return s({
751
750
  queryKey: [
752
751
  "reconV2",
@@ -761,535 +760,669 @@ function M(e, t = {}) {
761
760
  e
762
761
  ),
763
762
  enabled: !!e.runId && !!e.workflowId,
764
- ...t
763
+ ...n
765
764
  });
766
765
  }
767
- function Xe(e = {}) {
768
- return u({
769
- mutationFn: async (t) => await r.reconV2.startReconV2Profile(t),
766
+ function ln(e = {}) {
767
+ return o({
768
+ mutationFn: async (n) => await r.reconV2.startReconV2Profile(n),
770
769
  ...e
771
770
  });
772
771
  }
773
- function Ze(e, t = "left", n = {}) {
772
+ function yn(e, n = "left", t = {}) {
774
773
  return s({
775
- queryKey: ["reconV2", "profile", e, t],
774
+ queryKey: ["reconV2", "profile", e, n],
776
775
  queryFn: async () => await r.reconV2.getReconV2ProfileResult({
777
776
  workflowId: e,
778
- side: t
777
+ side: n
779
778
  }),
780
779
  enabled: !!e,
781
- ...n
780
+ ...t
782
781
  });
783
782
  }
784
- function et(e = {}) {
785
- return u({
786
- mutationFn: async (t) => await r.reconV2.startReconV2Clean(t),
783
+ function dn(e = {}) {
784
+ return o({
785
+ mutationFn: async (n) => await r.reconV2.startReconV2Clean(n),
787
786
  ...e
788
787
  });
789
788
  }
790
- function tt(e, t = "left", n = {}) {
789
+ function gn(e, n = "left", t = {}) {
791
790
  return s({
792
- queryKey: ["reconV2", "clean", e, t],
791
+ queryKey: ["reconV2", "clean", e, n],
793
792
  queryFn: async () => await r.reconV2.getReconV2CleanResult({
794
793
  workflowId: e,
795
- side: t
794
+ side: n
796
795
  }),
797
796
  enabled: !!e,
798
- ...n
797
+ ...t
799
798
  });
800
799
  }
801
- function nt(e, t, n, a = {}) {
800
+ function fn(e, n, t, a = {}) {
802
801
  return s({
803
- queryKey: ["reconV2", "diff", e, n],
802
+ queryKey: ["reconV2", "diff", e, t],
804
803
  queryFn: async () => await r.reconV2.getReconV2Diff({
805
804
  runId: e,
806
- workflowId: t,
807
- prevRunId: n
805
+ workflowId: n,
806
+ prevRunId: t
808
807
  }),
809
- enabled: !!e && !!t && !!n,
808
+ enabled: !!e && !!n && !!t,
810
809
  ...a
811
810
  });
812
811
  }
813
- function rt(e, t, n = {}) {
812
+ function mn(e, n, t = {}) {
814
813
  return s({
815
814
  queryKey: ["reconV2", "explanation", e],
816
815
  queryFn: async () => await r.reconV2.getReconV2Explanation({
817
816
  runId: e,
818
- workflowId: t
817
+ workflowId: n
819
818
  }),
820
- enabled: !!e && !!t,
821
- ...n
819
+ enabled: !!e && !!n,
820
+ ...t
822
821
  });
823
822
  }
824
- const Q = ["SUCCEEDED", "FAILED"];
825
- function W(e, t = {}) {
826
- const [n, a] = D(
823
+ const J = ["SUCCEEDED", "FAILED"];
824
+ function X(e, n = {}) {
825
+ const [t, a] = T(
827
826
  void 0
828
- ), [o, i] = D(!1), y = S(t.onComplete);
829
- return y.current = t.onComplete, k(() => {
827
+ ), [u, i] = T(!1), c = G(n.onComplete);
828
+ return c.current = n.onComplete, B(() => {
830
829
  if (!e)
831
830
  return;
832
- const d = h().websocketProvider;
833
- if (!d)
831
+ const l = P().websocketProvider;
832
+ if (!l)
834
833
  return;
835
834
  a(void 0), i(!1);
836
- const f = R.websocketUtils.ReconResultChannel;
837
- let w = !1;
838
- const m = () => {
839
- w || (w = !0, d.unbind(f, e));
835
+ const f = A.websocketUtils.ReconResultChannel;
836
+ let m = !1;
837
+ const w = () => {
838
+ m || (m = !0, l.unbind(f, e));
840
839
  };
841
- return d.bind(f, e, (b) => {
842
- let q;
840
+ return l.bind(f, e, (q) => {
841
+ let F;
843
842
  try {
844
- q = typeof b == "string" ? JSON.parse(b) : b;
843
+ F = typeof q == "string" ? JSON.parse(q) : q;
845
844
  } catch {
846
- q = { status: void 0 };
845
+ F = { status: void 0 };
847
846
  }
848
- a(q);
849
- const F = q?.status?.toUpperCase();
850
- F && Q.includes(F) && (i(!0), y.current?.(q), m());
851
- }), m;
852
- }, [e]), { data: n, isTerminal: o };
853
- }
854
- function _(e, t = {}) {
855
- const n = e?.trim();
847
+ a(F);
848
+ const p = F?.status?.toUpperCase();
849
+ p && J.includes(p) && (i(!0), c.current?.(F), w());
850
+ }), w;
851
+ }, [e]), { data: t, isTerminal: u };
852
+ }
853
+ function Y(e, n = {}) {
854
+ const t = e?.trim();
856
855
  return s({
857
- queryKey: ["reconV2", "workflow", n],
858
- queryFn: async () => await r.reconV2.getReconV2Workflow({ id: n }),
859
- enabled: !!n,
860
- ...t
856
+ queryKey: ["reconV2", "workflow", t],
857
+ queryFn: async () => await r.reconV2.getReconV2Workflow({ id: t }),
858
+ enabled: !!t,
859
+ ...n
861
860
  });
862
861
  }
863
- function L(e, t) {
864
- return t.split(".").reduce(
865
- (n, a) => n && typeof n == "object" ? n[a] : void 0,
862
+ function Z(e, n) {
863
+ return n.split(".").reduce(
864
+ (t, a) => t && typeof t == "object" ? t[a] : void 0,
866
865
  e
867
866
  );
868
867
  }
869
- function at(e, t = {}) {
870
- const n = O(t);
868
+ function wn(e, n = {}) {
869
+ const t = z(n);
871
870
  return {
872
- workflows: C(() => {
873
- const o = n.data ?? [];
874
- return e?.key ? o.filter((i) => L(i, e.key) === e.value) : o;
875
- }, [n.data, e?.key, e?.value]),
876
- isLoading: n.isLoading,
877
- error: n.error,
878
- refetch: n.refetch
871
+ workflows: D(() => {
872
+ const u = t.data ?? [];
873
+ return e?.key ? u.filter((i) => Z(i, e.key) === e.value) : u;
874
+ }, [t.data, e?.key, e?.value]),
875
+ isLoading: t.isLoading,
876
+ error: t.error,
877
+ refetch: t.refetch
879
878
  };
880
879
  }
881
- function ut(e, t = {}) {
882
- const n = _(e, t);
880
+ function Fn(e, n = {}) {
881
+ const t = Y(e, n);
883
882
  return {
884
- workflow: n.data,
885
- isLoading: n.isLoading,
886
- error: n.error,
887
- refetch: n.refetch
883
+ workflow: t.data,
884
+ isLoading: t.isLoading,
885
+ error: t.error,
886
+ refetch: t.refetch
888
887
  };
889
888
  }
890
- function ot() {
891
- const e = G(), t = B();
889
+ function pn() {
890
+ const e = W(), n = H();
892
891
  return {
893
892
  create: e.mutateAsync,
894
- update: t.mutateAsync,
895
- isSaving: e.isPending || t.isPending,
896
- error: e.error ?? t.error,
897
- data: t.data ?? e.data
893
+ update: n.mutateAsync,
894
+ isSaving: e.isPending || n.isPending,
895
+ error: e.error ?? n.error,
896
+ data: n.data ?? e.data
898
897
  };
899
898
  }
900
- function st(e, t = {}) {
901
- const n = e?.trim(), [a, o] = D(void 0), i = A(), y = W(a, { onComplete: t.onComplete }), d = U(n);
899
+ function qn(e, n = {}) {
900
+ const t = e?.trim(), [a, u] = T(void 0), i = _(), c = X(a, { onComplete: n.onComplete }), l = N(t);
902
901
  return {
903
- startRun: async (w = {}) => {
904
- if (!n)
902
+ startRun: async (m = {}) => {
903
+ if (!t)
905
904
  throw new Error("workflowId is required to start a run");
906
- const m = await i.mutateAsync({ workflowId: n, ...w });
907
- return o(m?.runId), m?.runId;
905
+ const w = await i.mutateAsync({ workflowId: t, ...m });
906
+ return u(w?.runId), w?.runId;
908
907
  },
909
908
  runId: a,
910
- status: y.data,
911
- isRunning: i.isPending || !!a && !y.isTerminal,
912
- isTerminal: y.isTerminal,
913
- runs: d.data,
914
- refetchRuns: d.refetch
909
+ status: c.data,
910
+ isRunning: i.isPending || !!a && !c.isTerminal,
911
+ isTerminal: c.isTerminal,
912
+ runs: l.data,
913
+ refetchRuns: l.refetch
915
914
  };
916
915
  }
917
- function it({
916
+ function bn({
918
917
  runId: e,
919
- workflowId: t,
920
- exceptionType: n,
918
+ workflowId: n,
919
+ exceptionType: t,
921
920
  ruleFilter: a,
922
- orderBy: o
921
+ orderBy: u
923
922
  }) {
924
- const i = v(e), y = M({
923
+ const i = j(e), c = $({
925
924
  runId: e ?? void 0,
926
- workflowId: t ?? void 0,
927
- exceptionType: n,
925
+ workflowId: n ?? void 0,
926
+ exceptionType: t,
928
927
  ruleFilter: a,
929
- orderBy: o
930
- }), d = y.data?.result;
928
+ orderBy: u
929
+ }), l = c.data?.result;
931
930
  return {
932
931
  runResult: i.data,
933
- records: d?.data ?? [],
934
- description: d?.description ?? [],
935
- isLoading: i.isLoading || y.isLoading,
936
- error: i.error ?? y.error,
937
- refetch: y.refetch
932
+ records: l?.data ?? [],
933
+ description: l?.description ?? [],
934
+ isLoading: i.isLoading || c.isLoading,
935
+ error: i.error ?? c.error,
936
+ refetch: c.refetch
938
937
  };
939
938
  }
940
- function ct(e = {}) {
939
+ function hn(e = {}) {
941
940
  return s({
942
941
  queryKey: ["users"],
943
942
  queryFn: async () => await r.user.getAllUsers(),
944
943
  ...e
945
944
  });
946
945
  }
947
- function lt(e = {}) {
946
+ function Dn(e = {}) {
948
947
  return s({
949
948
  queryKey: ["httpTriggers"],
950
949
  queryFn: async () => await r.workflow.getAllHttpTriggers(),
951
950
  ...e
952
951
  });
953
952
  }
954
- function yt(e = {}) {
955
- return u({
956
- mutationFn: async (t) => await r.process.markTaskDone(t),
953
+ function Tn(e = {}) {
954
+ return o({
955
+ mutationFn: async (n) => await r.process.markTaskDone(n),
957
956
  ...e
958
957
  });
959
958
  }
960
- function dt(e = {}) {
961
- return u({
962
- mutationFn: async (t) => await r.process.reassignTask(t),
959
+ function Rn(e = {}) {
960
+ return o({
961
+ mutationFn: async (n) => await r.process.reassignTask(n),
963
962
  ...e
964
963
  });
965
964
  }
966
- function gt(e, t = {}) {
965
+ function kn(e, n = {}) {
967
966
  return s({
968
967
  queryKey: ["processTriggers", e],
969
968
  queryFn: async () => await r.process.getTriggersBySheet(e),
970
969
  enabled: !!e,
971
- ...t
970
+ ...n
972
971
  });
973
972
  }
974
- function ft(e = {}) {
975
- const t = g();
976
- return u({
977
- mutationFn: async (n) => await r.process.registerProcessTrigger(n),
978
- onSuccess: (n, a) => {
979
- t.invalidateQueries({
973
+ function Cn(e = {}) {
974
+ const n = g();
975
+ return o({
976
+ mutationFn: async (t) => await r.process.registerProcessTrigger(t),
977
+ onSuccess: (t, a) => {
978
+ n.invalidateQueries({
980
979
  queryKey: ["processTriggers", a.process_sheet_id]
981
980
  });
982
981
  },
983
982
  ...e
984
983
  });
985
984
  }
986
- function wt(e = {}) {
987
- const t = g();
988
- return u({
989
- mutationFn: async ({ id: n }) => await r.process.deleteProcessTrigger(n),
990
- onSuccess: (n, a) => {
991
- t.invalidateQueries({
985
+ function xn(e = {}) {
986
+ const n = g();
987
+ return o({
988
+ mutationFn: async ({ id: t }) => await r.process.deleteProcessTrigger(t),
989
+ onSuccess: (t, a) => {
990
+ n.invalidateQueries({
992
991
  queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
993
992
  });
994
993
  },
995
994
  ...e
996
995
  });
997
996
  }
998
- function mt(e = {}) {
999
- const t = g();
1000
- return u({
1001
- mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.pauseSchedule(n, a),
1002
- onSuccess: (n, a) => {
1003
- t.invalidateQueries({
997
+ function Pn(e = {}) {
998
+ const n = g();
999
+ return o({
1000
+ mutationFn: async ({ triggerId: t, scheduleName: a }) => await r.process.pauseSchedule(t, a),
1001
+ onSuccess: (t, a) => {
1002
+ n.invalidateQueries({
1004
1003
  queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
1005
- }), t.invalidateQueries({
1004
+ }), n.invalidateQueries({
1006
1005
  queryKey: ["scheduleStatus", a.triggerId, a.scheduleName]
1007
1006
  });
1008
1007
  },
1009
1008
  ...e
1010
1009
  });
1011
1010
  }
1012
- function Ft(e = {}) {
1013
- const t = g();
1014
- return u({
1015
- mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.resumeSchedule(n, a),
1016
- onSuccess: (n, a) => {
1017
- t.invalidateQueries({
1011
+ function Sn(e = {}) {
1012
+ const n = g();
1013
+ return o({
1014
+ mutationFn: async ({ triggerId: t, scheduleName: a }) => await r.process.resumeSchedule(t, a),
1015
+ onSuccess: (t, a) => {
1016
+ n.invalidateQueries({
1018
1017
  queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
1019
- }), t.invalidateQueries({
1018
+ }), n.invalidateQueries({
1020
1019
  queryKey: ["scheduleStatus", a.triggerId, a.scheduleName]
1021
1020
  });
1022
1021
  },
1023
1022
  ...e
1024
1023
  });
1025
1024
  }
1026
- function qt(e, t, n = {}) {
1025
+ function In(e, n, t = {}) {
1027
1026
  return s({
1028
- queryKey: ["scheduleStatus", e, t],
1027
+ queryKey: ["scheduleStatus", e, n],
1029
1028
  queryFn: async () => await r.process.getScheduleStatus(
1030
1029
  e,
1031
- t
1030
+ n
1032
1031
  ),
1033
- enabled: !!e && !!t,
1034
- ...n
1032
+ enabled: !!e && !!n,
1033
+ ...t
1035
1034
  });
1036
1035
  }
1037
- function bt(e = {}) {
1038
- const t = g();
1039
- return u({
1040
- mutationFn: async ({ triggerId: n, scheduleName: a }) => await r.process.executeNow(n, a),
1041
- onSuccess: (n, a) => {
1042
- t.invalidateQueries({
1036
+ function Kn(e = {}) {
1037
+ const n = g();
1038
+ return o({
1039
+ mutationFn: async ({ triggerId: t, scheduleName: a }) => await r.process.executeNow(t, a),
1040
+ onSuccess: (t, a) => {
1041
+ n.invalidateQueries({
1043
1042
  queryKey: a.sheetId ? ["processTriggers", a.sheetId] : ["processTriggers"]
1044
1043
  });
1045
1044
  },
1046
1045
  ...e
1047
1046
  });
1048
1047
  }
1049
- function Dt(e = {}) {
1050
- const t = g();
1051
- return u({
1052
- mutationFn: async (n) => await r.processTree.createOrUpdateProcessTreeTrigger(
1053
- n
1048
+ function Vn(e = {}) {
1049
+ const n = g();
1050
+ return o({
1051
+ mutationFn: async (t) => await r.processTree.createOrUpdateProcessTreeTrigger(
1052
+ t
1054
1053
  ),
1055
- onSuccess: (n, a) => {
1056
- t.invalidateQueries({
1054
+ onSuccess: (t, a) => {
1055
+ n.invalidateQueries({
1057
1056
  queryKey: ["processTreeTriggers", a.sheetId]
1058
1057
  });
1059
1058
  },
1060
1059
  ...e
1061
1060
  });
1062
1061
  }
1063
- function Tt(e = {}) {
1064
- const t = g();
1065
- return u({
1066
- mutationFn: async (n) => await r.processTree.executeProcessTreeTrigger(n),
1067
- onSuccess: (n, a) => {
1068
- t.invalidateQueries({
1062
+ function En(e = {}) {
1063
+ const n = g();
1064
+ return o({
1065
+ mutationFn: async (t) => await r.processTree.executeProcessTreeTrigger(t),
1066
+ onSuccess: (t, a) => {
1067
+ n.invalidateQueries({
1069
1068
  queryKey: ["processTreeRuns", a.sheetId]
1070
1069
  });
1071
1070
  },
1072
1071
  ...e
1073
1072
  });
1074
1073
  }
1075
- function ht(e = {}) {
1076
- const t = g();
1077
- return u({
1078
- mutationFn: async ({ payload: n }) => await r.processTree.terminatePipelines(n),
1079
- onSuccess: (n, a) => {
1080
- a.sheetId && t.invalidateQueries({
1074
+ function An(e = {}) {
1075
+ const n = g();
1076
+ return o({
1077
+ mutationFn: async ({ payload: t }) => await r.processTree.terminatePipelines(t),
1078
+ onSuccess: (t, a) => {
1079
+ a.sheetId && n.invalidateQueries({
1081
1080
  queryKey: ["processTreeRuns", a.sheetId]
1082
- }), a.instanceId && t.invalidateQueries({
1081
+ }), a.instanceId && n.invalidateQueries({
1083
1082
  queryKey: ["processTreeRun", a.instanceId]
1084
1083
  });
1085
1084
  },
1086
1085
  ...e
1087
1086
  });
1088
1087
  }
1089
- function pt(e = {}) {
1090
- const t = g();
1091
- return u({
1092
- mutationFn: async (n) => await r.processTree.logProcessTreeRun(n),
1093
- onSuccess: (n, a) => {
1094
- t.invalidateQueries({
1088
+ function Gn(e = {}) {
1089
+ const n = g();
1090
+ return o({
1091
+ mutationFn: async (t) => await r.processTree.logProcessTreeRun(t),
1092
+ onSuccess: (t, a) => {
1093
+ n.invalidateQueries({
1095
1094
  queryKey: ["processTreeRuns", a.sheetId]
1096
- }), t.invalidateQueries({
1095
+ }), n.invalidateQueries({
1097
1096
  queryKey: ["processTreeRun", a.instanceId]
1098
1097
  });
1099
1098
  },
1100
1099
  ...e
1101
1100
  });
1102
1101
  }
1103
- function Rt(e = {}) {
1104
- const t = g();
1105
- return u({
1102
+ function Bn(e = {}) {
1103
+ const n = g();
1104
+ return o({
1106
1105
  mutationFn: async ({
1107
- instanceId: n,
1106
+ instanceId: t,
1108
1107
  context: a
1109
1108
  }) => await r.processTree.updateProcessTreeRunContext(
1110
- n,
1109
+ t,
1111
1110
  a
1112
1111
  ),
1113
- onSuccess: (n, a) => {
1114
- t.invalidateQueries({
1112
+ onSuccess: (t, a) => {
1113
+ n.invalidateQueries({
1115
1114
  queryKey: ["processTreeRun", a.instanceId]
1116
1115
  });
1117
1116
  },
1118
1117
  ...e
1119
1118
  });
1120
1119
  }
1121
- function St(e = {}) {
1122
- const t = g();
1123
- return u({
1124
- mutationFn: async ({ id: n }) => await r.processTree.deleteProcessTreeTrigger(n),
1125
- onSuccess: (n, a) => {
1126
- t.invalidateQueries({
1120
+ function Mn(e = {}) {
1121
+ const n = g();
1122
+ return o({
1123
+ mutationFn: async ({ id: t }) => await r.processTree.deleteProcessTreeTrigger(t),
1124
+ onSuccess: (t, a) => {
1125
+ n.invalidateQueries({
1127
1126
  queryKey: a.sheetId ? ["processTreeTriggers", a.sheetId] : ["processTreeTriggers"]
1128
1127
  });
1129
1128
  },
1130
1129
  ...e
1131
1130
  });
1132
1131
  }
1133
- function kt(e, t = {}) {
1132
+ function vn(e, n = {}) {
1134
1133
  return s({
1135
1134
  queryKey: ["processTreeTrigger", e],
1136
1135
  queryFn: async () => await r.processTree.getProcessTreeTrigger(e),
1137
1136
  enabled: !!e,
1138
- ...t
1137
+ ...n
1139
1138
  });
1140
1139
  }
1141
- function Ct(e, t = {}) {
1140
+ function On(e, n = {}) {
1142
1141
  return s({
1143
1142
  queryKey: ["processTreeTriggers", e],
1144
1143
  queryFn: async () => await r.processTree.getProcessTreeTriggersBySheetId(e),
1145
1144
  enabled: !!e,
1146
- ...t
1145
+ ...n
1147
1146
  });
1148
1147
  }
1149
- function xt(e, t = {}) {
1148
+ function Un(e, n = {}) {
1150
1149
  return s({
1151
1150
  queryKey: ["processTreeRuns", e],
1152
1151
  queryFn: async () => await r.processTree.getProcessTreeRunsBySheetId(e),
1153
1152
  enabled: !!e,
1154
- ...t
1153
+ ...n
1155
1154
  });
1156
1155
  }
1157
- function Kt(e, t, n = {}) {
1156
+ function Ln(e, n, t = {}) {
1158
1157
  return s({
1159
1158
  queryKey: [
1160
1159
  "processTreeRuns",
1161
1160
  e,
1162
1161
  "paginated",
1163
- t?.page,
1164
- t?.pageSize,
1165
- t?.orderByCreatedDate
1162
+ n?.page,
1163
+ n?.pageSize,
1164
+ n?.orderByCreatedDate
1166
1165
  ],
1167
1166
  queryFn: async () => await r.processTree.getProcessTreeRunsBySheetIdPaginated(
1168
1167
  e,
1169
- t
1168
+ n
1170
1169
  ),
1171
1170
  enabled: !!e,
1172
- ...n
1171
+ ...t
1173
1172
  });
1174
1173
  }
1175
- function Et(e, t = {}) {
1174
+ function Qn(e, n = {}) {
1176
1175
  return s({
1177
1176
  queryKey: ["processTreeRun", e],
1178
1177
  queryFn: async () => await r.processTree.getProcessTreeRunByInstanceId(
1179
1178
  e
1180
1179
  ),
1181
1180
  enabled: !!e,
1182
- ...t
1181
+ ...n
1183
1182
  });
1184
1183
  }
1185
- function Pt(e = {}) {
1184
+ function Wn(e = {}) {
1186
1185
  return s({
1187
1186
  queryKey: ["customAuthzModel"],
1188
1187
  queryFn: async () => await r.customAuthz.getCustomAuthzModel(),
1189
1188
  ...e
1190
1189
  });
1191
1190
  }
1192
- function Vt(e = {}) {
1193
- const t = g();
1194
- return u({
1195
- mutationFn: async (n) => await r.customAuthz.registerCustomAuthzModel(n),
1191
+ function Hn(e = {}) {
1192
+ const n = g();
1193
+ return o({
1194
+ mutationFn: async (t) => await r.customAuthz.registerCustomAuthzModel(t),
1196
1195
  onSuccess: () => {
1197
- t.invalidateQueries({ queryKey: ["customAuthzModel"] });
1196
+ n.invalidateQueries({ queryKey: ["customAuthzModel"] });
1198
1197
  },
1199
1198
  ...e
1200
1199
  });
1201
1200
  }
1202
- function It(e = {}) {
1203
- return u({
1204
- mutationFn: async (t) => await r.customAuthz.updateCustomObjectPermissions(t),
1201
+ function _n(e = {}) {
1202
+ return o({
1203
+ mutationFn: async (n) => await r.customAuthz.updateCustomObjectPermissions(n),
1205
1204
  ...e
1206
1205
  });
1207
1206
  }
1208
- function Gt(e = {}) {
1209
- return u({
1210
- mutationFn: async (t) => await r.customAuthz.bulkUpdateCustomObjectPermissions(
1211
- t
1207
+ function zn(e = {}) {
1208
+ return o({
1209
+ mutationFn: async (n) => await r.customAuthz.bulkUpdateCustomObjectPermissions(
1210
+ n
1212
1211
  ),
1213
1212
  ...e
1214
1213
  });
1215
1214
  }
1216
- function Bt(e = {}) {
1217
- return u({
1218
- mutationFn: async (t) => await r.customAuthz.checkCustomPermissions(t),
1215
+ function Nn(e = {}) {
1216
+ return o({
1217
+ mutationFn: async (n) => await r.customAuthz.checkCustomPermissions(n),
1219
1218
  ...e
1220
1219
  });
1221
1220
  }
1222
- function At(e = {}) {
1223
- return u({
1224
- mutationFn: async (t) => await r.customAuthz.bulkCheckCustomPermissions(t),
1221
+ function jn(e = {}) {
1222
+ return o({
1223
+ mutationFn: async (n) => await r.customAuthz.bulkCheckCustomPermissions(n),
1225
1224
  ...e
1226
1225
  });
1227
1226
  }
1228
- function Ot(e = {}, t = {}) {
1227
+ function $n(e = {}, n = {}) {
1229
1228
  return s({
1230
1229
  queryKey: ["inboxItems", "all", e.page, e.perPage],
1231
1230
  queryFn: async () => await r.inboxItems.getAllInboxItems(e),
1232
- ...t
1231
+ ...n
1233
1232
  });
1234
1233
  }
1235
- function Ut(e = {}) {
1236
- return u({
1237
- mutationFn: async (t) => await r.inboxItems.markItemAsRead(t),
1234
+ function Jn(e = {}) {
1235
+ return o({
1236
+ mutationFn: async (n) => await r.inboxItems.markItemAsRead(n),
1238
1237
  ...e
1239
1238
  });
1240
1239
  }
1241
- function vt(e = {}) {
1242
- return u({
1243
- mutationFn: async (t) => await r.inboxItems.markItemAsUnread(t),
1240
+ function Xn(e = {}) {
1241
+ return o({
1242
+ mutationFn: async (n) => await r.inboxItems.markItemAsUnread(n),
1244
1243
  ...e
1245
1244
  });
1246
1245
  }
1247
- function Mt(e = {}) {
1248
- return u({
1249
- mutationFn: async (t) => await r.inboxItems.createInboxItemPerUser(t),
1246
+ function Yn(e = {}) {
1247
+ return o({
1248
+ mutationFn: async (n) => await r.inboxItems.createInboxItemPerUser(n),
1249
+ ...e
1250
+ });
1251
+ }
1252
+ function Zn(e = {}) {
1253
+ return s({
1254
+ queryKey: ["inboxV2", "types"],
1255
+ queryFn: async () => await r.inboxV2.listTypes(),
1256
+ ...e
1257
+ });
1258
+ }
1259
+ function et(e, n = {}) {
1260
+ return s({
1261
+ queryKey: ["inboxV2", "type", e],
1262
+ queryFn: async () => await r.inboxV2.getType(e),
1263
+ enabled: !!e,
1264
+ ...n
1265
+ });
1266
+ }
1267
+ function nt(e = {}) {
1268
+ return o({
1269
+ mutationFn: async (n) => await r.inboxV2.createType(n),
1270
+ ...e
1271
+ });
1272
+ }
1273
+ function tt(e = {}) {
1274
+ return o({
1275
+ mutationFn: async ({ id: n, data: t }) => await r.inboxV2.updateType(n, t),
1276
+ ...e
1277
+ });
1278
+ }
1279
+ function rt(e = {}) {
1280
+ return o({
1281
+ mutationFn: async (n) => await r.inboxV2.deleteType(n),
1282
+ ...e
1283
+ });
1284
+ }
1285
+ function at(e = {}, n = {}) {
1286
+ return s({
1287
+ queryKey: [
1288
+ "inboxV2",
1289
+ "items",
1290
+ e.status,
1291
+ e.typeKey,
1292
+ e.dueBefore,
1293
+ e.page,
1294
+ e.perPage
1295
+ ],
1296
+ queryFn: async () => await r.inboxV2.listMyItems(e),
1297
+ ...n
1298
+ });
1299
+ }
1300
+ function ot(e, n = {}) {
1301
+ return s({
1302
+ queryKey: ["inboxV2", "item", e],
1303
+ queryFn: async () => await r.inboxV2.getItem(e),
1304
+ enabled: !!e,
1305
+ ...n
1306
+ });
1307
+ }
1308
+ function ut(e = {}) {
1309
+ return o({
1310
+ mutationFn: async (n) => await r.inboxV2.createItem(n),
1311
+ ...e
1312
+ });
1313
+ }
1314
+ function st(e = {}) {
1315
+ return o({
1316
+ mutationFn: async ({ id: n, data: t }) => await r.inboxV2.updateItem(n, t),
1317
+ ...e
1318
+ });
1319
+ }
1320
+ function it(e = {}) {
1321
+ return o({
1322
+ mutationFn: async (n) => await r.inboxV2.markRead(n),
1323
+ ...e
1324
+ });
1325
+ }
1326
+ function ct(e = {}) {
1327
+ return o({
1328
+ mutationFn: async (n) => await r.inboxV2.markUnread(n),
1329
+ ...e
1330
+ });
1331
+ }
1332
+ function lt(e = {}) {
1333
+ return o({
1334
+ mutationFn: async ({ id: n, data: t }) => await r.inboxV2.snoozeItem(n, t),
1335
+ ...e
1336
+ });
1337
+ }
1338
+ function yt(e = {}) {
1339
+ return o({
1340
+ mutationFn: async (n) => await r.inboxV2.dismissItem(n),
1341
+ ...e
1342
+ });
1343
+ }
1344
+ function dt(e = {}) {
1345
+ return o({
1346
+ mutationFn: async (n) => await r.inboxV2.claimItem(n),
1347
+ ...e
1348
+ });
1349
+ }
1350
+ function gt(e = {}) {
1351
+ return o({
1352
+ mutationFn: async (n) => await r.inboxV2.completeItem(n),
1353
+ ...e
1354
+ });
1355
+ }
1356
+ function ft(e = {}) {
1357
+ return o({
1358
+ mutationFn: async (n) => await r.inboxV2.releaseItem(n),
1359
+ ...e
1360
+ });
1361
+ }
1362
+ function mt(e = {}) {
1363
+ return o({
1364
+ mutationFn: async (n) => await r.inboxV2.cancelItem(n),
1365
+ ...e
1366
+ });
1367
+ }
1368
+ function wt(e = {}) {
1369
+ return o({
1370
+ mutationFn: async ({ id: n, data: t }) => await r.inboxV2.reassignItem(n, t),
1371
+ ...e
1372
+ });
1373
+ }
1374
+ function Ft(e = {}) {
1375
+ return o({
1376
+ mutationFn: async (n) => await r.inboxV2.completeByKey(n),
1250
1377
  ...e
1251
1378
  });
1252
1379
  }
1253
- function Qt(e, t = {}) {
1380
+ function pt(e = {}) {
1381
+ return o({
1382
+ mutationFn: async (n) => await r.inboxV2.cancelByKey(n),
1383
+ ...e
1384
+ });
1385
+ }
1386
+ function qt(e, n = {}) {
1254
1387
  return s({
1255
1388
  queryKey: ["emailConversations", e?.page, e?.pageSize, e?.tag, e?.orderByCreatedDate],
1256
1389
  queryFn: async () => await r.emailEngine.getAllConversations(e),
1257
- ...t
1390
+ ...n
1258
1391
  });
1259
1392
  }
1260
- function Wt(e, t = {}) {
1393
+ function bt(e, n = {}) {
1261
1394
  return s({
1262
1395
  queryKey: ["emailConversation", e],
1263
1396
  queryFn: async () => await r.emailEngine.getConversation({
1264
1397
  conversationId: e
1265
1398
  }),
1266
1399
  enabled: !!e,
1267
- ...t
1400
+ ...n
1268
1401
  });
1269
1402
  }
1270
- function _t(e = {}) {
1271
- const t = g();
1272
- return u({
1273
- mutationFn: async (n) => await r.emailEngine.createConversation(n),
1403
+ function ht(e = {}) {
1404
+ const n = g();
1405
+ return o({
1406
+ mutationFn: async (t) => await r.emailEngine.createConversation(t),
1274
1407
  onSuccess: () => {
1275
- t.invalidateQueries({ queryKey: ["emailConversations"] });
1408
+ n.invalidateQueries({ queryKey: ["emailConversations"] });
1276
1409
  },
1277
1410
  ...e
1278
1411
  });
1279
1412
  }
1280
- function Lt(e = {}) {
1281
- const t = g();
1282
- return u({
1283
- mutationFn: async (n) => await r.emailEngine.replyToConversation(n),
1284
- onSuccess: (n, a) => {
1285
- t.invalidateQueries({
1413
+ function Dt(e = {}) {
1414
+ const n = g();
1415
+ return o({
1416
+ mutationFn: async (t) => await r.emailEngine.replyToConversation(t),
1417
+ onSuccess: (t, a) => {
1418
+ n.invalidateQueries({
1286
1419
  queryKey: ["emailConversation", a.conversationId]
1287
1420
  });
1288
1421
  },
1289
1422
  ...e
1290
1423
  });
1291
1424
  }
1292
- function zt(e, t = {}) {
1425
+ function Tt(e, n = {}) {
1293
1426
  return s({
1294
1427
  queryKey: [
1295
1428
  "emailMessagesBySender",
@@ -1301,517 +1434,854 @@ function zt(e, t = {}) {
1301
1434
  ],
1302
1435
  queryFn: async () => await r.emailEngine.getMessageBySenderId(e),
1303
1436
  enabled: !!e.senderId,
1304
- ...t
1437
+ ...n
1305
1438
  });
1306
1439
  }
1307
- function Ht(e = {}) {
1308
- return u({
1309
- mutationFn: async (t) => await r.emailEngine.searchMessages(t),
1440
+ function Rt(e = {}) {
1441
+ return o({
1442
+ mutationFn: async (n) => await r.emailEngine.searchMessages(n),
1310
1443
  ...e
1311
1444
  });
1312
1445
  }
1313
- function Nt(e = {}) {
1314
- const t = c(async () => await r.tcn.getAuthUrl()), n = l({
1446
+ function kt(e = {}) {
1447
+ const n = y(async () => await r.tcn.getAuthUrl()), t = d({
1315
1448
  queryKey: ["tcn", "authUrl"],
1316
- queryFn: t,
1449
+ queryFn: n,
1317
1450
  enabled: !0,
1318
1451
  options: e
1319
1452
  });
1320
- return s(n);
1453
+ return s(t);
1321
1454
  }
1322
- function jt(e = {}) {
1323
- return u({
1324
- mutationFn: async ({ code: t }) => await r.tcn.exchangeCode(t),
1455
+ function Ct(e = {}) {
1456
+ return o({
1457
+ mutationFn: async ({ code: n }) => await r.tcn.exchangeCode(n),
1325
1458
  ...e
1326
1459
  });
1327
1460
  }
1328
- function Jt(e = {}) {
1329
- return u({
1330
- mutationFn: async ({ refresh_token: t }) => await r.tcn.refreshToken(t),
1461
+ function xt(e = {}) {
1462
+ return o({
1463
+ mutationFn: async ({ refresh_token: n }) => await r.tcn.refreshToken(n),
1331
1464
  ...e
1332
1465
  });
1333
1466
  }
1334
- function Yt(e = {}) {
1335
- return u({
1336
- mutationFn: async ({ token: t }) => await r.tcn.getCurrentAgent(t),
1467
+ function Pt(e = {}) {
1468
+ return o({
1469
+ mutationFn: async ({ token: n }) => await r.tcn.getCurrentAgent(n),
1337
1470
  ...e
1338
1471
  });
1339
1472
  }
1340
- function $t(e = {}) {
1341
- return u({
1342
- mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getAgentSkills(t, n),
1473
+ function St(e = {}) {
1474
+ return o({
1475
+ mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getAgentSkills(n, t),
1343
1476
  ...e
1344
1477
  });
1345
1478
  }
1346
- function Xt(e = {}) {
1347
- return u({
1348
- mutationFn: async ({ token: t, huntGroupSid: n, skills: a }) => await r.tcn.createSession(t, n, a),
1479
+ function It(e = {}) {
1480
+ return o({
1481
+ mutationFn: async ({ token: n, huntGroupSid: t, skills: a }) => await r.tcn.createSession(n, t, a),
1349
1482
  ...e
1350
1483
  });
1351
1484
  }
1352
- function Zt(e = {}) {
1353
- return u({
1354
- mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.keepAlive(t, n),
1485
+ function Kt(e = {}) {
1486
+ return o({
1487
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.keepAlive(n, t),
1355
1488
  ...e
1356
1489
  });
1357
1490
  }
1358
- function en(e = {}) {
1359
- return u({
1360
- mutationFn: async ({ token: t }) => await r.tcn.agentGetStatus(t),
1491
+ function Vt(e = {}) {
1492
+ return o({
1493
+ mutationFn: async ({ token: n }) => await r.tcn.agentGetStatus(n),
1361
1494
  ...e
1362
1495
  });
1363
1496
  }
1364
- function tn(e = {}) {
1365
- return u({
1366
- mutationFn: async ({ token: t, huntGroupSid: n }) => await r.tcn.getHuntGroupAgentSettings(t, n),
1497
+ function Et(e = {}) {
1498
+ return o({
1499
+ mutationFn: async ({ token: n, huntGroupSid: t }) => await r.tcn.getHuntGroupAgentSettings(n, t),
1367
1500
  ...e
1368
1501
  });
1369
1502
  }
1370
- function nn(e = {}) {
1371
- return u({
1372
- mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.dialManualPrepare(t, n),
1503
+ function At(e = {}) {
1504
+ return o({
1505
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.dialManualPrepare(n, t),
1373
1506
  ...e
1374
1507
  });
1375
1508
  }
1376
- function rn(e = {}) {
1377
- return u({
1378
- mutationFn: async ({ token: t, call: n }) => await r.tcn.processManualDial(t, n),
1509
+ function Gt(e = {}) {
1510
+ return o({
1511
+ mutationFn: async ({ token: n, call: t }) => await r.tcn.processManualDial(n, t),
1379
1512
  ...e
1380
1513
  });
1381
1514
  }
1382
- function an(e = {}) {
1383
- return u({
1384
- mutationFn: async ({ token: t, agentSessionSid: n, huntGroupSid: a, simpleCallData: o }) => await r.tcn.manualDialStart(
1385
- t,
1515
+ function Bt(e = {}) {
1516
+ return o({
1517
+ mutationFn: async ({ token: n, agentSessionSid: t, huntGroupSid: a, simpleCallData: u }) => await r.tcn.manualDialStart(
1386
1518
  n,
1519
+ t,
1387
1520
  a,
1388
- o
1521
+ u
1389
1522
  ),
1390
1523
  ...e
1391
1524
  });
1392
1525
  }
1393
- function un(e = {}) {
1394
- return u({
1395
- mutationFn: async ({ token: t, sessionSid: n, reason: a }) => await r.tcn.agentDisconnect(t, n, a),
1526
+ function Mt(e = {}) {
1527
+ return o({
1528
+ mutationFn: async ({ token: n, sessionSid: t, reason: a }) => await r.tcn.agentDisconnect(n, t, a),
1396
1529
  ...e
1397
1530
  });
1398
1531
  }
1399
- function on(e = {}) {
1400
- return u({
1401
- mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentPause(t, n),
1532
+ function vt(e = {}) {
1533
+ return o({
1534
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentPause(n, t),
1402
1535
  ...e
1403
1536
  });
1404
1537
  }
1405
- function sn(e = {}) {
1406
- return u({
1407
- mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentSetReady(t, n),
1538
+ function Ot(e = {}) {
1539
+ return o({
1540
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentSetReady(n, t),
1408
1541
  ...e
1409
1542
  });
1410
1543
  }
1411
- function cn(e = {}) {
1412
- return u({
1413
- mutationFn: async ({ token: t, sessionSid: n }) => await r.tcn.agentGetConnectedParty(t, n),
1544
+ function Ut(e = {}) {
1545
+ return o({
1546
+ mutationFn: async ({ token: n, sessionSid: t }) => await r.tcn.agentGetConnectedParty(n, t),
1414
1547
  ...e
1415
1548
  });
1416
1549
  }
1417
- function ln(e = {}) {
1418
- return u({
1419
- mutationFn: async ({ token: t, callSid: n }) => await r.tcn.getCallData(t, n),
1550
+ function Lt(e = {}) {
1551
+ return o({
1552
+ mutationFn: async ({ token: n, callSid: t }) => await r.tcn.getCallData(n, t),
1420
1553
  ...e
1421
1554
  });
1422
1555
  }
1423
- function yn(e = {}) {
1424
- return u({
1425
- mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentPutCallOnHold(t, n, a),
1556
+ function Qt(e = {}) {
1557
+ return o({
1558
+ mutationFn: async ({ token: n, sessionSid: t, holdType: a }) => await r.tcn.agentPutCallOnHold(n, t, a),
1426
1559
  ...e
1427
1560
  });
1428
1561
  }
1429
- function dn(e = {}) {
1430
- return u({
1431
- mutationFn: async ({ token: t, sessionSid: n, holdType: a }) => await r.tcn.agentGetCallFromHold(t, n, a),
1562
+ function Wt(e = {}) {
1563
+ return o({
1564
+ mutationFn: async ({ token: n, sessionSid: t, holdType: a }) => await r.tcn.agentGetCallFromHold(n, t, a),
1432
1565
  ...e
1433
1566
  });
1434
1567
  }
1435
- function gn(e = {}) {
1436
- return u({
1437
- mutationFn: async (t) => await r.tcn.ftpManualDialReport(t),
1568
+ function Ht(e = {}) {
1569
+ return o({
1570
+ mutationFn: async (n) => await r.tcn.ftpManualDialReport(n),
1438
1571
  ...e
1439
1572
  });
1440
1573
  }
1441
- function fn(e = {}) {
1442
- return u({
1443
- mutationFn: async (t) => await r.templates.renderTemplate(t),
1574
+ function _t(e = {}) {
1575
+ return o({
1576
+ mutationFn: async (n) => await r.templates.renderTemplate(n),
1444
1577
  ...e
1445
1578
  });
1446
1579
  }
1447
- function wn(e, t = {}) {
1448
- const n = e?.trim();
1580
+ function zt(e, n = {}) {
1581
+ const t = e?.trim();
1449
1582
  return s({
1450
- queryKey: ["databox", "folder", n],
1583
+ queryKey: ["databox", "folder", t],
1451
1584
  queryFn: async () => {
1452
- if (!n)
1585
+ if (!t)
1453
1586
  throw new Error("Folder ID is required");
1454
- return await r.databox.getDataboxFolder({ folderId: n });
1587
+ return await r.databox.getDataboxFolder({ folderId: t });
1455
1588
  },
1456
- enabled: !!n,
1457
- ...t
1589
+ enabled: !!t,
1590
+ ...n
1458
1591
  });
1459
1592
  }
1460
- function mn(e, t = {}) {
1461
- const n = e?.trim();
1593
+ function Nt(e, n = {}) {
1594
+ const t = e?.trim();
1462
1595
  return s({
1463
- queryKey: ["databox", "folder", n, "files"],
1596
+ queryKey: ["databox", "folder", t, "files"],
1464
1597
  queryFn: async () => {
1465
- if (!n)
1598
+ if (!t)
1466
1599
  throw new Error("Folder ID is required");
1467
- return await r.databox.getDataboxFolderFiles({ folderId: n });
1600
+ return await r.databox.getDataboxFolderFiles({ folderId: t });
1468
1601
  },
1469
- enabled: !!n,
1470
- ...t
1602
+ enabled: !!t,
1603
+ ...n
1471
1604
  });
1472
1605
  }
1473
- function Fn(e, t = {}) {
1474
- const n = e?.trim();
1606
+ function jt(e, n = {}) {
1607
+ const t = e?.trim();
1475
1608
  return s({
1476
- queryKey: ["databox", "folder", n, "datasets"],
1609
+ queryKey: ["databox", "folder", t, "datasets"],
1477
1610
  queryFn: async () => {
1478
- if (!n)
1611
+ if (!t)
1479
1612
  throw new Error("Folder ID is required");
1480
- return await r.databox.getDataboxFolderDatasets({ folderId: n });
1613
+ return await r.databox.getDataboxFolderDatasets({ folderId: t });
1481
1614
  },
1482
- enabled: !!n,
1483
- ...t
1615
+ enabled: !!t,
1616
+ ...n
1484
1617
  });
1485
1618
  }
1486
- function qn(e, t = {}) {
1487
- const n = e?.trim();
1619
+ function $t(e, n = {}) {
1620
+ const t = e?.trim();
1488
1621
  return s({
1489
- queryKey: ["databox", "folder", n, "duplicates"],
1622
+ queryKey: ["databox", "folder", t, "duplicates"],
1490
1623
  queryFn: async () => {
1491
- if (!n)
1624
+ if (!t)
1492
1625
  throw new Error("Folder ID is required");
1493
1626
  return await r.databox.getDataboxFolderDuplicates({
1494
- folderId: n
1627
+ folderId: t
1495
1628
  });
1496
1629
  },
1497
- enabled: !!n,
1498
- ...t
1630
+ enabled: !!t,
1631
+ ...n
1499
1632
  });
1500
1633
  }
1501
- function bn(e, t = {}) {
1502
- const n = e?.trim();
1634
+ function Jt(e, n = {}) {
1635
+ const t = e?.trim();
1503
1636
  return s({
1504
- queryKey: ["dataset", n, "exceptions"],
1637
+ queryKey: ["dataset", t, "exceptions"],
1505
1638
  queryFn: async () => {
1506
- if (!n)
1639
+ if (!t)
1507
1640
  throw new Error("Dataset ID is required");
1508
- return await r.dataset.getDatasetExceptions({ datasetId: n });
1641
+ return await r.dataset.getDatasetExceptions({ datasetId: t });
1509
1642
  },
1510
- enabled: !!n,
1511
- ...t
1643
+ enabled: !!t,
1644
+ ...n
1512
1645
  });
1513
1646
  }
1514
- function Dn(e, t, n = {}) {
1647
+ function Xt(e, n, t = {}) {
1515
1648
  const a = e?.trim();
1516
1649
  return s({
1517
- queryKey: ["dataset", a, "duplicates", t ?? null],
1650
+ queryKey: ["dataset", a, "duplicates", n ?? null],
1518
1651
  queryFn: async () => {
1519
1652
  if (!a)
1520
1653
  throw new Error("Dataset ID is required");
1521
1654
  return await r.dataset.getDatasetDuplicates({
1522
1655
  datasetId: a,
1523
- group: t
1656
+ group: n
1524
1657
  });
1525
1658
  },
1526
1659
  enabled: !!a,
1527
- ...n
1660
+ ...t
1528
1661
  });
1529
1662
  }
1530
- function Tn(e, t = {}) {
1531
- const n = e?.trim();
1663
+ function Yt(e, n = {}) {
1664
+ const t = e?.trim();
1532
1665
  return s({
1533
- queryKey: ["databox", "folder", n, "schema"],
1666
+ queryKey: ["databox", "folder", t, "schema"],
1534
1667
  queryFn: async () => {
1535
- if (!n)
1668
+ if (!t)
1536
1669
  throw new Error("Folder ID is required");
1537
- return await r.databox.getDataboxFolderSchema({ folderId: n });
1670
+ return await r.databox.getDataboxFolderSchema({ folderId: t });
1538
1671
  },
1539
- enabled: !!n,
1540
- ...t
1672
+ enabled: !!t,
1673
+ ...n
1541
1674
  });
1542
1675
  }
1543
- function hn(e, t = {}) {
1544
- const n = e?.trim();
1676
+ function Zt(e, n = {}) {
1677
+ const t = e?.trim();
1545
1678
  return s({
1546
- queryKey: ["databox", "folder", n, "schema", "history"],
1679
+ queryKey: ["databox", "folder", t, "schema", "history"],
1547
1680
  queryFn: async () => {
1548
- if (!n)
1681
+ if (!t)
1549
1682
  throw new Error("Folder ID is required");
1550
- return await r.databox.getDataboxSchemaHistory({ folderId: n });
1683
+ return await r.databox.getDataboxSchemaHistory({ folderId: t });
1551
1684
  },
1552
- enabled: !!n,
1553
- ...t
1685
+ enabled: !!t,
1686
+ ...n
1554
1687
  });
1555
1688
  }
1556
- function pn(e, t = {}) {
1557
- const n = e?.trim();
1689
+ function er(e, n = {}) {
1690
+ const t = e?.trim();
1558
1691
  return s({
1559
- queryKey: ["databox", "folder", n, "trash"],
1692
+ queryKey: ["databox", "folder", t, "trash"],
1560
1693
  queryFn: async () => {
1561
- if (!n)
1694
+ if (!t)
1562
1695
  throw new Error("Folder ID is required");
1563
- return await r.databox.getDataboxTrashFiles({ folderId: n });
1696
+ return await r.databox.getDataboxTrashFiles({ folderId: t });
1564
1697
  },
1565
- enabled: !!n,
1566
- ...t
1698
+ enabled: !!t,
1699
+ ...n
1567
1700
  });
1568
1701
  }
1569
- function Rn(e, t = {}) {
1570
- const n = e?.trim();
1702
+ function nr(e, n = {}) {
1703
+ const t = e?.trim();
1571
1704
  return s({
1572
- queryKey: ["databox", "file", n],
1705
+ queryKey: ["databox", "file", t],
1573
1706
  queryFn: async () => {
1574
- if (!n)
1707
+ if (!t)
1575
1708
  throw new Error("File ID is required");
1576
- return await r.databox.getDataboxFile({ fileId: n });
1709
+ return await r.databox.getDataboxFile({ fileId: t });
1577
1710
  },
1578
- enabled: !!n,
1579
- ...t
1711
+ enabled: !!t,
1712
+ ...n
1580
1713
  });
1581
1714
  }
1582
- function Sn(e, t = {}) {
1583
- const n = e?.trim();
1715
+ function tr(e, n = {}) {
1716
+ const t = e?.trim();
1584
1717
  return s({
1585
- queryKey: ["databox", "file", n, "status"],
1718
+ queryKey: ["databox", "file", t, "status"],
1586
1719
  queryFn: async () => {
1587
- if (!n)
1720
+ if (!t)
1588
1721
  throw new Error("File ID is required");
1589
- return await r.databox.getDataboxFileStatus({ fileId: n });
1722
+ return await r.databox.getDataboxFileStatus({ fileId: t });
1590
1723
  },
1591
- enabled: !!n,
1592
- ...t
1724
+ enabled: !!t,
1725
+ ...n
1593
1726
  });
1594
1727
  }
1595
- function kn(e, t = {}) {
1596
- const n = e?.trim();
1728
+ function rr(e, n = {}) {
1729
+ const t = e?.trim();
1597
1730
  return s({
1598
- queryKey: ["databox", "file", n, "runs"],
1731
+ queryKey: ["databox", "file", t, "runs"],
1599
1732
  queryFn: async () => {
1600
- if (!n)
1733
+ if (!t)
1601
1734
  throw new Error("File ID is required");
1602
- return await r.databox.getDataboxFileRuns({ fileId: n });
1735
+ return await r.databox.getDataboxFileRuns({ fileId: t });
1603
1736
  },
1604
- enabled: !!n,
1605
- ...t
1737
+ enabled: !!t,
1738
+ ...n
1606
1739
  });
1607
1740
  }
1608
- function Cn(e, t = {}) {
1609
- const n = e?.trim();
1741
+ function ar(e, n = {}) {
1742
+ const t = e?.trim();
1610
1743
  return s({
1611
- queryKey: ["databox", "file", n, "download-url"],
1744
+ queryKey: ["databox", "file", t, "download-url"],
1612
1745
  queryFn: async () => {
1613
- if (!n)
1746
+ if (!t)
1614
1747
  throw new Error("File ID is required");
1615
- return await r.databox.getDataboxFileDownloadUrl({ fileId: n });
1748
+ return await r.databox.getDataboxFileDownloadUrl({ fileId: t });
1616
1749
  },
1617
- enabled: !!n,
1618
- ...t
1750
+ enabled: !!t,
1751
+ ...n
1619
1752
  });
1620
1753
  }
1621
- function xn(e = {}) {
1622
- return u({
1623
- mutationFn: async (t) => await r.databox.dropFileToDatabox(t),
1754
+ function or(e = {}) {
1755
+ return o({
1756
+ mutationFn: async (n) => await r.databox.dropFileToDatabox(n),
1624
1757
  ...e
1625
1758
  });
1626
1759
  }
1627
- function Kn(e = {}) {
1628
- return u({
1629
- mutationFn: async (t) => await r.databox.runDataboxFolder(t),
1760
+ function ur(e = {}) {
1761
+ return o({
1762
+ mutationFn: async (n) => await r.databox.runDataboxFolder(n),
1630
1763
  ...e
1631
1764
  });
1632
1765
  }
1633
- function En(e = {}) {
1634
- return u({
1635
- mutationFn: async (t) => await r.databox.updateDataboxFolderSchema(t),
1766
+ function sr(e = {}) {
1767
+ return o({
1768
+ mutationFn: async (n) => await r.databox.updateDataboxFolderSchema(n),
1636
1769
  ...e
1637
1770
  });
1638
1771
  }
1639
- function Pn(e = {}) {
1640
- return u({
1641
- mutationFn: async (t) => await r.databox.trashDataboxFiles(t),
1772
+ function ir(e = {}) {
1773
+ return o({
1774
+ mutationFn: async (n) => await r.databox.trashDataboxFiles(n),
1642
1775
  ...e
1643
1776
  });
1644
1777
  }
1645
- function Vn(e = {}) {
1646
- return u({
1647
- mutationFn: async (t) => await r.databox.restoreDataboxFile(t),
1778
+ function cr(e = {}) {
1779
+ return o({
1780
+ mutationFn: async (n) => await r.databox.restoreDataboxFile(n),
1781
+ ...e
1782
+ });
1783
+ }
1784
+ function lr(e = {}) {
1785
+ return o({
1786
+ mutationFn: async (n) => await r.databox.permanentDeleteDataboxFiles(n),
1787
+ ...e
1788
+ });
1789
+ }
1790
+ function yr(e, n = {}) {
1791
+ const t = y(async () => await r.periodManagement.listFiscalCalendars(e)), a = d({
1792
+ queryKey: ["periodManagement", "fiscalCalendars", e ?? "all"],
1793
+ queryFn: t,
1794
+ options: n
1795
+ });
1796
+ return s(a);
1797
+ }
1798
+ function dr(e, n = {}) {
1799
+ const t = !!e, a = y(async () => {
1800
+ if (!e)
1801
+ throw new Error("Fiscal calendar id is required");
1802
+ return await r.periodManagement.getFiscalCalendar(e);
1803
+ }), u = d({
1804
+ queryKey: ["periodManagement", "fiscalCalendar", e],
1805
+ queryFn: a,
1806
+ enabled: t,
1807
+ options: n
1808
+ });
1809
+ return s(u);
1810
+ }
1811
+ function gr(e = {}) {
1812
+ return o({
1813
+ mutationFn: async (n) => await r.periodManagement.createFiscalCalendar(n),
1814
+ ...e
1815
+ });
1816
+ }
1817
+ function fr(e = {}) {
1818
+ return o({
1819
+ mutationFn: async ({ id: n, params: t }) => await r.periodManagement.updateFiscalCalendar(n, t),
1820
+ ...e
1821
+ });
1822
+ }
1823
+ function mr(e = {}) {
1824
+ return o({
1825
+ mutationFn: async (n) => await r.periodManagement.deleteFiscalCalendar(n),
1826
+ ...e
1827
+ });
1828
+ }
1829
+ function wr(e, n = {}) {
1830
+ const t = y(async () => await r.periodManagement.listHolidayCalendars(e)), a = d({
1831
+ queryKey: ["periodManagement", "holidayCalendars", e ?? "all"],
1832
+ queryFn: t,
1833
+ options: n
1834
+ });
1835
+ return s(a);
1836
+ }
1837
+ function Fr(e, n = {}) {
1838
+ const t = !!e, a = y(async () => {
1839
+ if (!e)
1840
+ throw new Error("Holiday calendar id is required");
1841
+ return await r.periodManagement.getHolidayCalendar(e);
1842
+ }), u = d({
1843
+ queryKey: ["periodManagement", "holidayCalendar", e],
1844
+ queryFn: a,
1845
+ enabled: t,
1846
+ options: n
1847
+ });
1848
+ return s(u);
1849
+ }
1850
+ function pr(e = {}) {
1851
+ return o({
1852
+ mutationFn: async (n) => await r.periodManagement.createHolidayCalendar(n),
1648
1853
  ...e
1649
1854
  });
1650
1855
  }
1651
- function In(e = {}) {
1652
- return u({
1653
- mutationFn: async (t) => await r.databox.permanentDeleteDataboxFiles(t),
1856
+ function qr(e = {}) {
1857
+ return o({
1858
+ mutationFn: async ({ id: n, params: t }) => await r.periodManagement.updateHolidayCalendar(n, t),
1859
+ ...e
1860
+ });
1861
+ }
1862
+ function br(e = {}) {
1863
+ return o({
1864
+ mutationFn: async (n) => await r.periodManagement.deleteHolidayCalendar(n),
1865
+ ...e
1866
+ });
1867
+ }
1868
+ function hr(e, n = {}) {
1869
+ const t = !!e, a = y(async () => {
1870
+ if (!e)
1871
+ throw new Error("Holiday calendar id is required");
1872
+ return await r.periodManagement.listHolidays(e);
1873
+ }), u = d({
1874
+ queryKey: ["periodManagement", "holidayCalendar", e, "holidays"],
1875
+ queryFn: a,
1876
+ enabled: t,
1877
+ options: n
1878
+ });
1879
+ return s(u);
1880
+ }
1881
+ function Dr(e = {}) {
1882
+ return o({
1883
+ mutationFn: async ({ id: n, items: t }) => await r.periodManagement.importHolidays(n, t),
1654
1884
  ...e
1655
1885
  });
1656
1886
  }
1887
+ function ee(e, n) {
1888
+ return n.split(".").reduce(
1889
+ (t, a) => t && typeof t == "object" ? t[a] : void 0,
1890
+ e
1891
+ );
1892
+ }
1893
+ function Tr(e, n = {}) {
1894
+ const t = s({
1895
+ ...n,
1896
+ queryKey: ["pipeline", "list"],
1897
+ queryFn: async () => r.pipeline.getPipelineList()
1898
+ });
1899
+ return {
1900
+ pipelines: D(() => {
1901
+ const u = t.data ?? [];
1902
+ return e?.key ? u.filter((i) => ee(i, e.key) === e.value) : u;
1903
+ }, [t.data, e?.key, e?.value]),
1904
+ isLoading: t.isLoading,
1905
+ error: t.error,
1906
+ refetch: t.refetch
1907
+ };
1908
+ }
1909
+ function ne(e, n = {}) {
1910
+ const t = e?.trim(), a = s({
1911
+ ...n,
1912
+ queryKey: ["pipeline", "runs", t],
1913
+ queryFn: async () => r.pipeline.getPipelineRunStatus(t),
1914
+ enabled: !!t && (n.enabled ?? !0)
1915
+ });
1916
+ return {
1917
+ runs: a.data ?? [],
1918
+ isLoading: a.isLoading,
1919
+ error: a.error,
1920
+ refetch: a.refetch
1921
+ };
1922
+ }
1923
+ function Rr(e, n = {}) {
1924
+ const { runs: t, isLoading: a, error: u, refetch: i } = ne(e, n);
1925
+ return { run: D(() => {
1926
+ const l = t.filter((f) => f.status === "SUCCEEDED");
1927
+ if (l.length)
1928
+ return l.reduce(
1929
+ (f, m) => (m.startedAt ?? "") > (f.startedAt ?? "") ? m : f
1930
+ );
1931
+ }, [t]), isLoading: a, error: u, refetch: i };
1932
+ }
1933
+ function kr(e, n, t = {}) {
1934
+ const a = e?.trim(), u = n?.trim(), i = (t.enabled ?? !0) && !!a && !!u, c = s({
1935
+ queryKey: ["pipeline", "definition", a],
1936
+ queryFn: async () => r.pipeline.getPipelineDefinition(a),
1937
+ enabled: i
1938
+ }), l = D(
1939
+ () => c.data?.nodes ?? [],
1940
+ [c.data]
1941
+ ), f = D(
1942
+ () => c.data?.edges ?? [],
1943
+ [c.data]
1944
+ ), m = (h) => l.find((k) => k.id === h)?.data, w = s({
1945
+ queryKey: ["pipeline", "runs", a],
1946
+ queryFn: async () => r.pipeline.getPipelineRunStatus(a),
1947
+ enabled: i
1948
+ }), q = D(
1949
+ () => (w.data ?? []).find((h) => h.id === u),
1950
+ [w.data, u]
1951
+ ), [F, p] = T(!1), b = q?.datasetId, R = s({
1952
+ queryKey: ["pipeline", "output", u, b],
1953
+ queryFn: async () => {
1954
+ const h = r.pipeline.buildDatasetDefinition(b), [k, C] = await Promise.all([
1955
+ r.definition.runDefinition({ inputs: {}, definition: h, variable: b }),
1956
+ r.definition.getDescription({ inputs: {}, definition: h, variable: b })
1957
+ ]), E = Array.isArray(C) ? C : C?.data ?? [];
1958
+ return {
1959
+ rows: k ?? [],
1960
+ columns: E
1961
+ };
1962
+ },
1963
+ enabled: i && F && !!b
1964
+ }), I = c.isLoading || w.isLoading, K = c.error ?? w.error, V = () => {
1965
+ c.refetch(), w.refetch(), F && b && R.refetch();
1966
+ };
1967
+ return {
1968
+ run: q,
1969
+ nodes: l,
1970
+ edges: f,
1971
+ isCurrentDefinition: !0,
1972
+ // run carries no snapshot; graph reflects the current definition
1973
+ isLoading: I,
1974
+ error: K,
1975
+ getNodeProperties: m,
1976
+ output: R.data,
1977
+ isOutputLoading: R.isLoading && F,
1978
+ outputError: R.error,
1979
+ loadOutput: () => p(!0),
1980
+ refetch: V
1981
+ };
1982
+ }
1983
+ function Cr(e = {}) {
1984
+ const n = s({
1985
+ ...e,
1986
+ queryKey: ["workingPaper", "list"],
1987
+ queryFn: async () => r.workingPaper.getWorkingPapers()
1988
+ });
1989
+ return {
1990
+ workingPapers: n.data ?? [],
1991
+ isLoading: n.isLoading,
1992
+ error: n.error,
1993
+ refetch: n.refetch
1994
+ };
1995
+ }
1996
+ function xr(e, n = {}) {
1997
+ const t = e?.trim(), a = g(), u = s({
1998
+ ...n,
1999
+ queryKey: ["workingPaper", "detail", t],
2000
+ queryFn: async () => r.workingPaper.getWorkingPaper(t),
2001
+ enabled: !!t && (n.enabled ?? !0)
2002
+ }), i = o({
2003
+ mutationFn: async (l) => r.workingPaper.updateWorkingPaper(t, l),
2004
+ onSuccess: () => {
2005
+ a.invalidateQueries({ queryKey: ["workingPaper", "detail", t] }), a.invalidateQueries({ queryKey: ["workingPaper", "list"] });
2006
+ }
2007
+ }), c = o({
2008
+ mutationFn: async () => r.workingPaper.deleteWorkingPaper(t),
2009
+ onSuccess: () => {
2010
+ a.invalidateQueries({ queryKey: ["workingPaper", "list"] });
2011
+ }
2012
+ });
2013
+ return {
2014
+ paper: u.data,
2015
+ sheets: u.data?.sheets ?? [],
2016
+ isLoading: u.isLoading,
2017
+ error: u.error,
2018
+ refetch: u.refetch,
2019
+ save: (l) => i.mutateAsync(l),
2020
+ isSaving: i.isPending,
2021
+ remove: () => c.mutateAsync(),
2022
+ isDeleting: c.isPending
2023
+ };
2024
+ }
2025
+ function Pr() {
2026
+ const e = g();
2027
+ return o({
2028
+ mutationFn: async (n) => r.workingPaper.createWorkingPaper(n),
2029
+ onSuccess: () => e.invalidateQueries({ queryKey: ["workingPaper", "list"] })
2030
+ });
2031
+ }
2032
+ function Sr(e, n = {}, t = {}) {
2033
+ const a = e?.inputTableId?.trim(), u = e?.viewId, i = e?.limit, c = s({
2034
+ ...n,
2035
+ queryKey: ["workingPaper", "inputTableSheet", "views", a],
2036
+ queryFn: async () => r.statement.getViewsBySheetId(a),
2037
+ enabled: !!a && (n.enabled ?? !0)
2038
+ }), l = s({
2039
+ ...t,
2040
+ queryKey: ["workingPaper", "inputTableSheet", "rows", a, u, i],
2041
+ queryFn: async () => r.inputTable.getRows(a, {
2042
+ ...u ? { view_id: u } : {},
2043
+ ...i ? { limit: i } : {}
2044
+ }),
2045
+ enabled: !!a && (t.enabled ?? !0)
2046
+ }), f = c.data ?? [], m = l.data;
2047
+ return {
2048
+ views: f,
2049
+ rows: m?.data ?? [],
2050
+ totalCount: m?.total_count ?? 0,
2051
+ isLoading: c.isLoading || l.isLoading,
2052
+ error: c.error ?? l.error,
2053
+ refetch: () => {
2054
+ c.refetch(), l.refetch();
2055
+ }
2056
+ };
2057
+ }
2058
+ function Ir(e) {
2059
+ const [n, t] = T(
2060
+ () => e?.definition ?? (e?.datasetId ? r.workingPaper.createFxDatasetDefinition(e.datasetId, e.columns ?? []) : void 0)
2061
+ ), a = o({
2062
+ mutationFn: async () => {
2063
+ if (!n) throw { message: "No fx definition to run", status: 400 };
2064
+ const u = r.workingPaper.FX_RESULT_VARIABLE, [i, c] = await Promise.all([
2065
+ r.definition.runDefinition({ inputs: {}, definition: n, variable: u }),
2066
+ r.definition.getDescription({ inputs: {}, definition: n, variable: u })
2067
+ ]), l = Array.isArray(c) ? c : c?.data ?? [];
2068
+ return { rows: i ?? [], columns: l };
2069
+ }
2070
+ });
2071
+ return {
2072
+ definition: n,
2073
+ setDefinition: t,
2074
+ reset: (u, i) => t(r.workingPaper.createFxDatasetDefinition(u, i ?? [])),
2075
+ addFilter: (u, i) => t((c) => r.workingPaper.addRuleFilter(c, u, i)),
2076
+ addSort: (u, i, c) => t((l) => r.workingPaper.addSort(l, u, i, c)),
2077
+ addMetric: (u, i, c) => t((l) => r.workingPaper.addMetric(l, u, i, c)),
2078
+ addPivot: (u, i) => t((c) => r.workingPaper.addPivot(c, u, i)),
2079
+ addColumn: (u, i, c) => t((l) => r.workingPaper.addColumn(l, u, i, c)),
2080
+ run: () => a.mutateAsync(),
2081
+ result: a.data,
2082
+ isRunning: a.isPending,
2083
+ runError: a.error
2084
+ };
2085
+ }
1657
2086
  export {
1658
- On as ReactQueryDevtools,
1659
- P as WorkflowStatus,
1660
- H as reactQuery,
1661
- At as useBulkCheckCustomPermissions,
1662
- Gt as useBulkUpdateCustomObjectPermissions,
1663
- Bt as useCheckCustomPermissions,
1664
- ae as useCheckSubscriptionStatus,
1665
- Ne as useCreateAuditLog,
1666
- _t as useCreateConversation,
1667
- Mt as useCreateInboxItemPerUser,
1668
- ze as useCreateOrUpdateForm,
1669
- Dt as useCreateOrUpdateProcessTreeTrigger,
1670
- G as useCreateReconV2,
1671
- ue as useCreateStatementRun,
1672
- $ as useCreateThread,
1673
- Pt as useCustomAuthzModel,
1674
- oe as useDataset,
1675
- Y as useDatasetSample,
1676
- te as useDeleteComment,
1677
- St as useDeleteProcessTreeTrigger,
1678
- wt as useDeleteProcessTrigger,
1679
- Ye as useDeleteReconV2,
1680
- Ce as useDeleteRow,
1681
- Ge as useDocumentPermissions,
1682
- xn as useDropFileToDatabox,
1683
- bt as useExecuteNow,
1684
- Tt as useExecuteProcessTreeTrigger,
1685
- Ae as useFileDownload,
1686
- Be as useFileUpload,
1687
- zt as useFilterMessagesBySenderId,
1688
- Qt as useGetAllConversations,
1689
- lt as useGetAllHttpTriggers,
1690
- Ot as useGetAllInboxItems,
1691
- Je as useGetAllRecon,
1692
- O as useGetAllReconV2,
1693
- je as useGetAllTemplatedPipelines,
1694
- ct as useGetAllUsers,
1695
- He as useGetAuditLogs,
1696
- X as useGetCommentsByThreadId,
1697
- Wt as useGetConversation,
1698
- Rn as useGetDataboxFile,
1699
- Cn as useGetDataboxFileDownloadUrl,
1700
- kn as useGetDataboxFileRuns,
1701
- Sn as useGetDataboxFileStatus,
1702
- wn as useGetDataboxFolder,
1703
- Fn as useGetDataboxFolderDatasets,
1704
- qn as useGetDataboxFolderDuplicates,
1705
- mn as useGetDataboxFolderFiles,
1706
- Tn as useGetDataboxFolderSchema,
1707
- hn as useGetDataboxSchemaHistory,
1708
- pn as useGetDataboxTrashFiles,
1709
- Dn as useGetDatasetDuplicates,
1710
- bn as useGetDatasetExceptions,
1711
- se as useGetDatasets,
1712
- le as useGetFileByFolderIdAndName,
1713
- ce as useGetFileUrlByFileId,
1714
- Le as useGetFormById,
1715
- _e as useGetFormData,
1716
- We as useGetFormSchema,
1717
- pe as useGetInputTables,
1718
- Et as useGetProcessTreeRunByInstanceId,
1719
- xt as useGetProcessTreeRunsBySheetId,
1720
- Kt as useGetProcessTreeRunsBySheetIdPaginated,
1721
- kt as useGetProcessTreeTrigger,
1722
- Ct as useGetProcessTreeTriggersBySheetId,
1723
- ye as useGetPublishedWorkbookById,
1724
- tt as useGetReconV2CleanResult,
1725
- nt as useGetReconV2Diff,
1726
- rt as useGetReconV2Explanation,
1727
- Ze as useGetReconV2ProfileResult,
1728
- v as useGetReconV2RunResult,
1729
- U as useGetReconV2Runs,
1730
- M as useGetReconV2SmartResult,
1731
- _ as useGetReconV2Workflow,
1732
- de as useGetRunResultById,
1733
- ge as useGetRunsByViewId,
1734
- qt as useGetScheduleStatus,
1735
- fe as useGetStatementData,
1736
- we as useGetTableById,
1737
- Oe as useGetTaskDetails,
1738
- gt as useGetTriggersBySheet,
1739
- me as useGetViewById,
1740
- Fe as useGetViewsBySheetId,
1741
- ie as useGetVirtualDatasets,
1742
- Ue as useGetWorkbookDetails,
1743
- qe as useGetWorkbooksByType,
1744
- be as useGetWorkflowInstanceStatusById,
1745
- De as useGetWorksheets,
1746
- Te as useGetWorksheetsByType,
1747
- he as useInputTable,
1748
- Se as useInsertRow,
1749
- pt as useLogProcessTreeRun,
1750
- Ut as useMarkItemAsRead,
1751
- vt as useMarkItemAsUnread,
1752
- yt as useMarkTaskDone,
1753
- J as useMetric,
1754
- mt as usePauseSchedule,
1755
- In as usePermanentDeleteDataboxFiles,
1756
- Z as usePostComment,
1757
- Me as usePublishWorkbook,
1758
- dt as useReassignTask,
1759
- ut as useReconV2Detail,
1760
- ot as useReconV2Editor,
1761
- at as useReconV2List,
1762
- it as useReconV2Results,
1763
- st as useReconV2RunController,
1764
- W as useReconV2RunStatus,
1765
- $e as useReconV2Templates,
1766
- Vt as useRegisterCustomAuthzModel,
1767
- ft as useRegisterProcessTrigger,
1768
- fn as useRenderTemplate,
1769
- Lt as useReplyToConversation,
1770
- Vn as useRestoreDataboxFile,
1771
- Ft as useResumeSchedule,
1772
- Re as useRows,
1773
- Kn as useRunDataboxFolder,
1774
- xe as useRunDefinition,
1775
- Ke as useRunPublishedDefinition,
1776
- Qe as useRunRecon,
1777
- A as useRunReconV2,
1778
- Ee as useRunSampleDefinition,
1779
- ve as useSaveWorkbook,
1780
- Ht as useSearchMessages,
1781
- et as useStartReconV2Clean,
1782
- Xe as useStartReconV2Profile,
1783
- ne as useSubscribeUser,
1784
- un as useTcnAgentDisconnect,
1785
- dn as useTcnAgentGetCallFromHold,
1786
- en as useTcnAgentGetStatus,
1787
- on as useTcnAgentPause,
1788
- yn as useTcnAgentPutCallOnHold,
1789
- sn as useTcnAgentSetReady,
1790
- $t as useTcnAgentSkills,
1791
- Nt as useTcnAuthUrl,
1792
- ln as useTcnCallData,
1793
- cn as useTcnConnectedParty,
1794
- Xt as useTcnCreateSession,
1795
- Yt as useTcnCurrentAgent,
1796
- nn as useTcnDialManualPrepare,
1797
- jt as useTcnExchangeCode,
1798
- gn as useTcnFtpManualDialReport,
1799
- tn as useTcnHuntGroupSettings,
1800
- Zt as useTcnKeepAlive,
1801
- an as useTcnManualDialStart,
1802
- rn as useTcnProcessManualDial,
1803
- Jt as useTcnRefreshToken,
1804
- ht as useTerminateProcessTreePipelines,
1805
- Pn as useTrashDataboxFiles,
1806
- Pe as useTriggerHttpWorkflow,
1807
- Ve as useTriggerWorkflow,
1808
- re as useUnsubscribeUser,
1809
- ee as useUpdateComment,
1810
- It as useUpdateCustomObjectPermissions,
1811
- En as useUpdateDataboxFolderSchema,
1812
- Rt as useUpdateProcessTreeRunContext,
1813
- B as useUpdateReconV2,
1814
- ke as useUpdateRow,
1815
- V as useUser,
1816
- Ie as useUserDetails
2087
+ Ar as ReactQueryDevtools,
2088
+ U as WorkflowStatus,
2089
+ re as reactQuery,
2090
+ jn as useBulkCheckCustomPermissions,
2091
+ zn as useBulkUpdateCustomObjectPermissions,
2092
+ mt as useCancelInboxItem,
2093
+ pt as useCancelInboxItemsByKey,
2094
+ Nn as useCheckCustomPermissions,
2095
+ me as useCheckSubscriptionStatus,
2096
+ dt as useClaimInboxItem,
2097
+ gt as useCompleteInboxItem,
2098
+ Ft as useCompleteInboxItemsByKey,
2099
+ an as useCreateAuditLog,
2100
+ ht as useCreateConversation,
2101
+ gr as useCreateFiscalCalendar,
2102
+ pr as useCreateHolidayCalendar,
2103
+ ut as useCreateInboxItem,
2104
+ Yn as useCreateInboxItemPerUser,
2105
+ nt as useCreateInboxType,
2106
+ tn as useCreateOrUpdateForm,
2107
+ Vn as useCreateOrUpdateProcessTreeTrigger,
2108
+ W as useCreateReconV2,
2109
+ we as useCreateStatementRun,
2110
+ ie as useCreateThread,
2111
+ Pr as useCreateWorkingPaper,
2112
+ Wn as useCustomAuthzModel,
2113
+ Fe as useDataset,
2114
+ se as useDatasetSample,
2115
+ de as useDeleteComment,
2116
+ mr as useDeleteFiscalCalendar,
2117
+ br as useDeleteHolidayCalendar,
2118
+ rt as useDeleteInboxType,
2119
+ Mn as useDeleteProcessTreeTrigger,
2120
+ xn as useDeleteProcessTrigger,
2121
+ sn as useDeleteReconV2,
2122
+ ve as useDeleteRow,
2123
+ yt as useDismissInboxItem,
2124
+ _e as useDocumentPermissions,
2125
+ or as useDropFileToDatabox,
2126
+ Kn as useExecuteNow,
2127
+ En as useExecuteProcessTreeTrigger,
2128
+ Ne as useFileDownload,
2129
+ ze as useFileUpload,
2130
+ Tt as useFilterMessagesBySenderId,
2131
+ Ir as useFxDefinitionSheet,
2132
+ qt as useGetAllConversations,
2133
+ Dn as useGetAllHttpTriggers,
2134
+ $n as useGetAllInboxItems,
2135
+ un as useGetAllRecon,
2136
+ z as useGetAllReconV2,
2137
+ on as useGetAllTemplatedPipelines,
2138
+ hn as useGetAllUsers,
2139
+ rn as useGetAuditLogs,
2140
+ ce as useGetCommentsByThreadId,
2141
+ bt as useGetConversation,
2142
+ nr as useGetDataboxFile,
2143
+ ar as useGetDataboxFileDownloadUrl,
2144
+ rr as useGetDataboxFileRuns,
2145
+ tr as useGetDataboxFileStatus,
2146
+ zt as useGetDataboxFolder,
2147
+ jt as useGetDataboxFolderDatasets,
2148
+ $t as useGetDataboxFolderDuplicates,
2149
+ Nt as useGetDataboxFolderFiles,
2150
+ Yt as useGetDataboxFolderSchema,
2151
+ Zt as useGetDataboxSchemaHistory,
2152
+ er as useGetDataboxTrashFiles,
2153
+ Xt as useGetDatasetDuplicates,
2154
+ Jt as useGetDatasetExceptions,
2155
+ pe as useGetDatasets,
2156
+ he as useGetFileByFolderIdAndName,
2157
+ be as useGetFileUrlByFileId,
2158
+ dr as useGetFiscalCalendar,
2159
+ nn as useGetFormById,
2160
+ en as useGetFormData,
2161
+ Ze as useGetFormSchema,
2162
+ Fr as useGetHolidayCalendar,
2163
+ ot as useGetInboxItem,
2164
+ et as useGetInboxType,
2165
+ Ae as useGetInputTables,
2166
+ Qn as useGetProcessTreeRunByInstanceId,
2167
+ Un as useGetProcessTreeRunsBySheetId,
2168
+ Ln as useGetProcessTreeRunsBySheetIdPaginated,
2169
+ vn as useGetProcessTreeTrigger,
2170
+ On as useGetProcessTreeTriggersBySheetId,
2171
+ De as useGetPublishedWorkbookById,
2172
+ gn as useGetReconV2CleanResult,
2173
+ fn as useGetReconV2Diff,
2174
+ mn as useGetReconV2Explanation,
2175
+ yn as useGetReconV2ProfileResult,
2176
+ j as useGetReconV2RunResult,
2177
+ N as useGetReconV2Runs,
2178
+ $ as useGetReconV2SmartResult,
2179
+ Y as useGetReconV2Workflow,
2180
+ Te as useGetRunResultById,
2181
+ Re as useGetRunsByViewId,
2182
+ In as useGetScheduleStatus,
2183
+ ke as useGetStatementData,
2184
+ Ce as useGetTableById,
2185
+ je as useGetTaskDetails,
2186
+ kn as useGetTriggersBySheet,
2187
+ xe as useGetViewById,
2188
+ Pe as useGetViewsBySheetId,
2189
+ qe as useGetVirtualDatasets,
2190
+ $e as useGetWorkbookDetails,
2191
+ Se as useGetWorkbooksByType,
2192
+ Ie as useGetWorkflowInstanceStatusById,
2193
+ Ke as useGetWorksheets,
2194
+ Ve as useGetWorksheetsByType,
2195
+ Dr as useImportHolidays,
2196
+ Ee as useInputTable,
2197
+ Be as useInsertRow,
2198
+ Rr as useLastSuccessfulPipelineRun,
2199
+ yr as useListFiscalCalendars,
2200
+ wr as useListHolidayCalendars,
2201
+ hr as useListHolidays,
2202
+ Zn as useListInboxTypes,
2203
+ at as useListMyInboxItems,
2204
+ Gn as useLogProcessTreeRun,
2205
+ it as useMarkInboxItemsRead,
2206
+ ct as useMarkInboxItemsUnread,
2207
+ Jn as useMarkItemAsRead,
2208
+ Xn as useMarkItemAsUnread,
2209
+ Tn as useMarkTaskDone,
2210
+ ue as useMetric,
2211
+ Pn as usePauseSchedule,
2212
+ lr as usePermanentDeleteDataboxFiles,
2213
+ Tr as usePipelineList,
2214
+ kr as usePipelineRunDetail,
2215
+ ne as usePipelineRuns,
2216
+ le as usePostComment,
2217
+ Xe as usePublishWorkbook,
2218
+ wt as useReassignInboxItem,
2219
+ Rn as useReassignTask,
2220
+ Fn as useReconV2Detail,
2221
+ pn as useReconV2Editor,
2222
+ wn as useReconV2List,
2223
+ bn as useReconV2Results,
2224
+ qn as useReconV2RunController,
2225
+ X as useReconV2RunStatus,
2226
+ cn as useReconV2Templates,
2227
+ Hn as useRegisterCustomAuthzModel,
2228
+ Cn as useRegisterProcessTrigger,
2229
+ ft as useReleaseInboxItem,
2230
+ _t as useRenderTemplate,
2231
+ Dt as useReplyToConversation,
2232
+ cr as useRestoreDataboxFile,
2233
+ Sn as useResumeSchedule,
2234
+ Ge as useRows,
2235
+ ur as useRunDataboxFolder,
2236
+ Oe as useRunDefinition,
2237
+ Ue as useRunPublishedDefinition,
2238
+ Ye as useRunRecon,
2239
+ _ as useRunReconV2,
2240
+ Le as useRunSampleDefinition,
2241
+ Je as useSaveWorkbook,
2242
+ Rt as useSearchMessages,
2243
+ lt as useSnoozeInboxItem,
2244
+ dn as useStartReconV2Clean,
2245
+ ln as useStartReconV2Profile,
2246
+ ge as useSubscribeUser,
2247
+ Mt as useTcnAgentDisconnect,
2248
+ Wt as useTcnAgentGetCallFromHold,
2249
+ Vt as useTcnAgentGetStatus,
2250
+ vt as useTcnAgentPause,
2251
+ Qt as useTcnAgentPutCallOnHold,
2252
+ Ot as useTcnAgentSetReady,
2253
+ St as useTcnAgentSkills,
2254
+ kt as useTcnAuthUrl,
2255
+ Lt as useTcnCallData,
2256
+ Ut as useTcnConnectedParty,
2257
+ It as useTcnCreateSession,
2258
+ Pt as useTcnCurrentAgent,
2259
+ At as useTcnDialManualPrepare,
2260
+ Ct as useTcnExchangeCode,
2261
+ Ht as useTcnFtpManualDialReport,
2262
+ Et as useTcnHuntGroupSettings,
2263
+ Kt as useTcnKeepAlive,
2264
+ Bt as useTcnManualDialStart,
2265
+ Gt as useTcnProcessManualDial,
2266
+ xt as useTcnRefreshToken,
2267
+ An as useTerminateProcessTreePipelines,
2268
+ ir as useTrashDataboxFiles,
2269
+ Qe as useTriggerHttpWorkflow,
2270
+ We as useTriggerWorkflow,
2271
+ fe as useUnsubscribeUser,
2272
+ ye as useUpdateComment,
2273
+ _n as useUpdateCustomObjectPermissions,
2274
+ sr as useUpdateDataboxFolderSchema,
2275
+ fr as useUpdateFiscalCalendar,
2276
+ qr as useUpdateHolidayCalendar,
2277
+ st as useUpdateInboxItem,
2278
+ tt as useUpdateInboxType,
2279
+ Bn as useUpdateProcessTreeRunContext,
2280
+ H as useUpdateReconV2,
2281
+ Me as useUpdateRow,
2282
+ L as useUser,
2283
+ He as useUserDetails,
2284
+ xr as useWorkingPaper,
2285
+ Sr as useWorkingPaperInputTableSheet,
2286
+ Cr as useWorkingPaperList
1817
2287
  };