@burdenoff/microfe-labsofscience 2026.801.1 → 2026.801.3

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 (53) hide show
  1. package/dist/generated/wspace-types.d.ts +68885 -33499
  2. package/dist/generated/wspace-types.d.ts.map +1 -1
  3. package/dist/labsofscience/LabsOfScienceRoot.d.ts.map +1 -1
  4. package/dist/labsofscience/LabsOfScienceRoot.js +57 -49
  5. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  6. package/dist/labsofscience/LabsOfScienceRoutes.d.ts.map +1 -1
  7. package/dist/labsofscience/LabsOfScienceRoutes.js +10 -6
  8. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  9. package/dist/labsofscience/components/BottomNav.d.ts.map +1 -1
  10. package/dist/labsofscience/components/BottomNav.js +36 -30
  11. package/dist/labsofscience/components/BottomNav.js.map +1 -1
  12. package/dist/labsofscience/components/StatusBadge.d.ts.map +1 -1
  13. package/dist/labsofscience/components/StatusBadge.js +10 -1
  14. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  15. package/dist/labsofscience/hooks/index.d.ts +1 -1
  16. package/dist/labsofscience/hooks/index.d.ts.map +1 -1
  17. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +82 -1
  18. package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +1 -1
  19. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +326 -199
  20. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  21. package/dist/labsofscience/pages/ai/AiDialogs.d.ts +20 -0
  22. package/dist/labsofscience/pages/ai/AiDialogs.d.ts.map +1 -0
  23. package/dist/labsofscience/pages/ai/AiDialogs.js +566 -0
  24. package/dist/labsofscience/pages/ai/AiDialogs.js.map +1 -0
  25. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts +20 -0
  26. package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts.map +1 -0
  27. package/dist/labsofscience/pages/ai/AiErrorNotice.js +67 -0
  28. package/dist/labsofscience/pages/ai/AiErrorNotice.js.map +1 -0
  29. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts +29 -0
  30. package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts.map +1 -0
  31. package/dist/labsofscience/pages/ai/AiOperationsPage.js +196 -0
  32. package/dist/labsofscience/pages/ai/AiOperationsPage.js.map +1 -0
  33. package/dist/labsofscience/pages/ai/DecisionCard.d.ts +9 -0
  34. package/dist/labsofscience/pages/ai/DecisionCard.d.ts.map +1 -0
  35. package/dist/labsofscience/pages/ai/DecisionCard.js +282 -0
  36. package/dist/labsofscience/pages/ai/DecisionCard.js.map +1 -0
  37. package/dist/labsofscience/pages/ai/ModelSettings.d.ts +20 -0
  38. package/dist/labsofscience/pages/ai/ModelSettings.d.ts.map +1 -0
  39. package/dist/labsofscience/pages/ai/ModelSettings.js +141 -0
  40. package/dist/labsofscience/pages/ai/ModelSettings.js.map +1 -0
  41. package/dist/labsofscience/pages/ai/aiReaders.d.ts +82 -0
  42. package/dist/labsofscience/pages/ai/aiReaders.d.ts.map +1 -0
  43. package/dist/labsofscience/pages/ai/aiReaders.js +86 -0
  44. package/dist/labsofscience/pages/ai/aiReaders.js.map +1 -0
  45. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +18 -18
  46. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +6 -6
  47. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +14 -14
  48. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +6 -6
  49. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +16 -16
  50. package/dist/labsofscience/pages/projects/ProjectsListPage.js +6 -6
  51. package/dist/labsofscience/types/index.d.ts +133 -2
  52. package/dist/labsofscience/types/index.d.ts.map +1 -1
  53. package/package.json +1 -1
@@ -3,7 +3,13 @@ import "../context/index.js";
3
3
  import { useMutation as t, useQuery as n, useQueryClient as r } from "@tanstack/react-query";
4
4
  import { graphqlFetch as i } from "@burdenoff/fe-libs/shared/graphql";
5
5
  //#region src/labsofscience/hooks/useLabsOfScienceApi.ts
6
- var a = async (e, t, n) => {
6
+ var a = class extends Error {
7
+ code;
8
+ agentRunId;
9
+ constructor(e, t) {
10
+ super(e), this.name = "LabApiError", this.code = typeof t?.code == "string" ? t.code : null, this.agentRunId = typeof t?.agentRunId == "string" ? t.agentRunId : null;
11
+ }
12
+ }, o = async (e, t, n) => {
7
13
  let r = await i({
8
14
  gateway: "workspace",
9
15
  baseUrl: n,
@@ -11,22 +17,25 @@ var a = async (e, t, n) => {
11
17
  variables: t,
12
18
  workspaceToken: !0
13
19
  });
14
- if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
20
+ if (r.errors?.length) {
21
+ let e = r.errors[0];
22
+ throw new a(e?.message ?? "GraphQL request failed", e?.extensions);
23
+ }
15
24
  if (!r.data) throw Error("GraphQL response did not include data");
16
25
  return /^\s*mutation\b/.test(e) && globalThis.__graphqlFetchResponseCache?.clear(), r.data;
17
- }, o = "labsofscience", s = "\n id workspaceId name code description field status visibility\n principalInvestigatorId startDate endDate tags createdAt updatedAt\n", c = "\n id workspaceId projectId title description hypothesis status protocolId\n leadResearcherId variables tags createdAt updatedAt\n", l = "\n id workspaceId experimentId runNumber status parameters observations notes\n performedById startedAt completedAt createdAt updatedAt\n", u = "\n id workspaceId projectId experimentId runId title body status authorId\n signedById signedAt witnessedById witnessedAt tags createdAt updatedAt\n", d = "\n id workspaceId name summary status version estimatedMinutes materials\n safetyNotes authorId publishedAt tags createdAt updatedAt\n", f = "\n id workspaceId protocolId ordinal kind instruction durationMinutes isCritical\n createdAt updatedAt\n", p = "\n id workspaceId projectId experimentId name description kind status\n latestVersion tags createdAt updatedAt\n", m = "\n id workspaceId datasetId version checksum sizeBytes rowCount changeNote\n createdAt updatedAt\n", h = "\n id workspaceId projectId name description engine definition version isActive\n tags createdAt updatedAt\n", g = "\n id workspaceId pipelineId datasetId datasetVersionId outputDatasetId status\n parameters log triggeredById startedAt finishedAt createdAt updatedAt\n", _ = "\n id workspaceId name category status quantity unit reorderLevel location\n lotNumber catalogNumber vendor expiresAt tags createdAt updatedAt\n", v = "\n id workspaceId name model location status requiresApproval custodianId tags\n createdAt updatedAt\n", y = "\n id workspaceId instrumentId experimentId bookedById status purpose startTime\n endTime createdAt updatedAt\n", ee = (t = {}) => {
26
+ }, s = "labsofscience", c = "\n id workspaceId name code description field status visibility\n principalInvestigatorId startDate endDate tags createdAt updatedAt\n", l = "\n id workspaceId projectId title description hypothesis status protocolId\n leadResearcherId variables tags createdAt updatedAt\n", u = "\n id workspaceId experimentId runNumber status parameters observations notes\n performedById startedAt completedAt createdAt updatedAt\n", d = "\n id workspaceId projectId experimentId runId title body status authorId\n signedById signedAt witnessedById witnessedAt tags createdAt updatedAt\n", f = "\n id workspaceId name summary status version estimatedMinutes materials\n safetyNotes authorId publishedAt tags createdAt updatedAt\n", p = "\n id workspaceId protocolId ordinal kind instruction durationMinutes isCritical\n createdAt updatedAt\n", m = "\n id workspaceId projectId experimentId name description kind status\n latestVersion tags createdAt updatedAt\n", h = "\n id workspaceId datasetId version checksum sizeBytes rowCount changeNote\n createdAt updatedAt\n", g = "\n id workspaceId projectId name description engine definition version isActive\n tags createdAt updatedAt\n", _ = "\n id workspaceId pipelineId datasetId datasetVersionId outputDatasetId status\n parameters log triggeredById startedAt finishedAt createdAt updatedAt\n", v = "\n id workspaceId name category status quantity unit reorderLevel location\n lotNumber catalogNumber vendor expiresAt tags createdAt updatedAt\n", y = "\n id workspaceId name model location status requiresApproval custodianId tags\n createdAt updatedAt\n", b = "\n id workspaceId instrumentId experimentId bookedById status purpose startTime\n endTime createdAt updatedAt\n", ee = "\n id workspaceId provider model trigger status promptSummary decision inputRefs\n error latencyMs tokensIn tokensOut costUsd actorId actorType createdAt\n", x = "\n workspaceId provider model autoPilotEnabled autoPilotLastRunAt updatedAt\n", S = (t = {}) => {
18
27
  let { apiGatewayUrl: r } = e();
19
28
  return n({
20
29
  queryKey: [
21
- o,
30
+ s,
22
31
  "projects",
23
32
  t.status ?? null,
24
33
  t.search ?? null,
25
34
  t.pagination ?? null
26
35
  ],
27
- queryFn: async () => (await a(`query LabProjects($status: LabProjectStatus, $search: String, $pagination: PaginationInput) {
36
+ queryFn: async () => (await o(`query LabProjects($status: LabProjectStatus, $search: String, $pagination: PaginationInput) {
28
37
  labListProjects(status: $status, search: $search, pagination: $pagination) {
29
- items { ${s} }
38
+ items { ${c} }
30
39
  pageInfo { cursor hasMore }
31
40
  }
32
41
  }`, {
@@ -35,71 +44,71 @@ var a = async (e, t, n) => {
35
44
  pagination: t.pagination
36
45
  }, r)).labListProjects
37
46
  });
38
- }, b = (t) => {
47
+ }, C = (t) => {
39
48
  let { apiGatewayUrl: r } = e();
40
49
  return n({
41
50
  queryKey: [
42
- o,
51
+ s,
43
52
  "project",
44
53
  t
45
54
  ],
46
- queryFn: async () => (await a(`query LabProject($id: ID!) {
55
+ queryFn: async () => (await o(`query LabProject($id: ID!) {
47
56
  labProject(id: $id) {
48
- ${s}
49
- experiments { ${c} }
57
+ ${c}
58
+ experiments { ${l} }
50
59
  }
51
60
  }`, { id: t }, r)).labProject,
52
61
  enabled: !!t
53
62
  });
54
- }, x = () => {
63
+ }, w = () => {
55
64
  let n = r(), { apiGatewayUrl: i } = e();
56
65
  return t({
57
- mutationFn: async (e) => (await a(`mutation LabCreateProject($input: LabCreateProjectInput!) {
58
- labCreateProject(input: $input) { ${s} }
66
+ mutationFn: async (e) => (await o(`mutation LabCreateProject($input: LabCreateProjectInput!) {
67
+ labCreateProject(input: $input) { ${c} }
59
68
  }`, { input: e }, i)).labCreateProject,
60
69
  onSuccess: () => {
61
- n.invalidateQueries({ queryKey: [o, "projects"] });
70
+ n.invalidateQueries({ queryKey: [s, "projects"] });
62
71
  }
63
72
  });
64
- }, S = () => {
73
+ }, T = () => {
65
74
  let n = r(), { apiGatewayUrl: i } = e();
66
75
  return t({
67
- mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateProject($id: ID!, $input: LabUpdateProjectInput!) {
68
- labUpdateProject(id: $id, input: $input) { ${s} }
76
+ mutationFn: async ({ id: e, input: t }) => (await o(`mutation LabUpdateProject($id: ID!, $input: LabUpdateProjectInput!) {
77
+ labUpdateProject(id: $id, input: $input) { ${c} }
69
78
  }`, {
70
79
  id: e,
71
80
  input: t
72
81
  }, i)).labUpdateProject,
73
82
  onSuccess: (e) => {
74
- n.invalidateQueries({ queryKey: [o, "projects"] }), n.invalidateQueries({ queryKey: [
75
- o,
83
+ n.invalidateQueries({ queryKey: [s, "projects"] }), n.invalidateQueries({ queryKey: [
84
+ s,
76
85
  "project",
77
86
  e.id
78
87
  ] });
79
88
  }
80
89
  });
81
- }, C = () => {
90
+ }, E = () => {
82
91
  let n = r(), { apiGatewayUrl: i } = e();
83
92
  return t({
84
- mutationFn: async (e) => (await a("mutation LabArchiveProject($id: ID!) { labArchiveProject(id: $id) }", { id: e }, i)).labArchiveProject,
93
+ mutationFn: async (e) => (await o("mutation LabArchiveProject($id: ID!) { labArchiveProject(id: $id) }", { id: e }, i)).labArchiveProject,
85
94
  onSuccess: () => {
86
- n.invalidateQueries({ queryKey: [o, "projects"] });
95
+ n.invalidateQueries({ queryKey: [s, "projects"] });
87
96
  }
88
97
  });
89
- }, w = (t = {}) => {
98
+ }, D = (t = {}) => {
90
99
  let { apiGatewayUrl: r } = e();
91
100
  return n({
92
101
  queryKey: [
93
- o,
102
+ s,
94
103
  "experiments",
95
104
  t.projectId ?? null,
96
105
  t.status ?? null,
97
106
  t.search ?? null,
98
107
  t.pagination ?? null
99
108
  ],
100
- queryFn: async () => (await a(`query LabExperiments($projectId: ID, $status: LabExperimentStatus, $search: String, $pagination: PaginationInput) {
109
+ queryFn: async () => (await o(`query LabExperiments($projectId: ID, $status: LabExperimentStatus, $search: String, $pagination: PaginationInput) {
101
110
  labListExperiments(projectId: $projectId, status: $status, search: $search, pagination: $pagination) {
102
- items { ${c} }
111
+ items { ${l} }
103
112
  pageInfo { cursor hasMore }
104
113
  }
105
114
  }`, {
@@ -109,84 +118,84 @@ var a = async (e, t, n) => {
109
118
  pagination: t.pagination
110
119
  }, r)).labListExperiments
111
120
  });
112
- }, T = (t) => {
121
+ }, O = (t) => {
113
122
  let { apiGatewayUrl: r } = e();
114
123
  return n({
115
124
  queryKey: [
116
- o,
125
+ s,
117
126
  "experiment",
118
127
  t
119
128
  ],
120
- queryFn: async () => (await a(`query LabExperiment($id: ID!) {
129
+ queryFn: async () => (await o(`query LabExperiment($id: ID!) {
121
130
  labExperiment(id: $id) {
122
- ${c}
123
- project { ${s} }
124
- runs { ${l} }
131
+ ${l}
132
+ project { ${c} }
133
+ runs { ${u} }
125
134
  }
126
135
  }`, { id: t }, r)).labExperiment,
127
136
  enabled: !!t
128
137
  });
129
- }, E = () => {
138
+ }, k = () => {
130
139
  let n = r(), { apiGatewayUrl: i } = e();
131
140
  return t({
132
- mutationFn: async (e) => (await a(`mutation LabCreateExperiment($input: LabCreateExperimentInput!) {
133
- labCreateExperiment(input: $input) { ${c} }
141
+ mutationFn: async (e) => (await o(`mutation LabCreateExperiment($input: LabCreateExperimentInput!) {
142
+ labCreateExperiment(input: $input) { ${l} }
134
143
  }`, { input: e }, i)).labCreateExperiment,
135
144
  onSuccess: (e) => {
136
- n.invalidateQueries({ queryKey: [o, "experiments"] }), n.invalidateQueries({ queryKey: [
137
- o,
145
+ n.invalidateQueries({ queryKey: [s, "experiments"] }), n.invalidateQueries({ queryKey: [
146
+ s,
138
147
  "project",
139
148
  e.projectId
140
149
  ] });
141
150
  }
142
151
  });
143
- }, D = () => {
152
+ }, A = () => {
144
153
  let n = r(), { apiGatewayUrl: i } = e();
145
154
  return t({
146
- mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateExperiment($id: ID!, $input: LabUpdateExperimentInput!) {
147
- labUpdateExperiment(id: $id, input: $input) { ${c} }
155
+ mutationFn: async ({ id: e, input: t }) => (await o(`mutation LabUpdateExperiment($id: ID!, $input: LabUpdateExperimentInput!) {
156
+ labUpdateExperiment(id: $id, input: $input) { ${l} }
148
157
  }`, {
149
158
  id: e,
150
159
  input: t
151
160
  }, i)).labUpdateExperiment,
152
161
  onSuccess: (e) => {
153
- n.invalidateQueries({ queryKey: [o, "experiments"] }), n.invalidateQueries({ queryKey: [
154
- o,
162
+ n.invalidateQueries({ queryKey: [s, "experiments"] }), n.invalidateQueries({ queryKey: [
163
+ s,
155
164
  "experiment",
156
165
  e.id
157
166
  ] });
158
167
  }
159
168
  });
160
- }, O = () => {
169
+ }, j = () => {
161
170
  let n = r(), { apiGatewayUrl: i } = e();
162
171
  return t({
163
- mutationFn: async ({ id: e, status: t }) => (await a(`mutation LabTransitionExperiment($id: ID!, $status: LabExperimentStatus!) {
164
- labTransitionExperiment(id: $id, status: $status) { ${c} }
172
+ mutationFn: async ({ id: e, status: t }) => (await o(`mutation LabTransitionExperiment($id: ID!, $status: LabExperimentStatus!) {
173
+ labTransitionExperiment(id: $id, status: $status) { ${l} }
165
174
  }`, {
166
175
  id: e,
167
176
  status: t
168
177
  }, i)).labTransitionExperiment,
169
178
  onSuccess: (e) => {
170
- n.invalidateQueries({ queryKey: [o, "experiments"] }), n.invalidateQueries({ queryKey: [
171
- o,
179
+ n.invalidateQueries({ queryKey: [s, "experiments"] }), n.invalidateQueries({ queryKey: [
180
+ s,
172
181
  "experiment",
173
182
  e.id
174
183
  ] });
175
184
  }
176
185
  });
177
- }, k = (t = {}) => {
186
+ }, M = (t = {}) => {
178
187
  let { apiGatewayUrl: r } = e();
179
188
  return n({
180
189
  queryKey: [
181
- o,
190
+ s,
182
191
  "runs",
183
192
  t.experimentId ?? null,
184
193
  t.status ?? null,
185
194
  t.pagination ?? null
186
195
  ],
187
- queryFn: async () => (await a(`query LabRuns($experimentId: ID, $status: LabRunStatus, $pagination: PaginationInput) {
196
+ queryFn: async () => (await o(`query LabRuns($experimentId: ID, $status: LabRunStatus, $pagination: PaginationInput) {
188
197
  labListRuns(experimentId: $experimentId, status: $status, pagination: $pagination) {
189
- items { ${l} }
198
+ items { ${u} }
190
199
  pageInfo { cursor hasMore }
191
200
  }
192
201
  }`, {
@@ -195,30 +204,30 @@ var a = async (e, t, n) => {
195
204
  pagination: t.pagination
196
205
  }, r)).labListRuns
197
206
  });
198
- }, A = () => {
207
+ }, N = () => {
199
208
  let n = r(), { apiGatewayUrl: i } = e();
200
209
  return t({
201
- mutationFn: async (e) => (await a(`mutation LabStartRun($input: LabCreateRunInput!) {
202
- labStartRun(input: $input) { ${l} }
210
+ mutationFn: async (e) => (await o(`mutation LabStartRun($input: LabCreateRunInput!) {
211
+ labStartRun(input: $input) { ${u} }
203
212
  }`, { input: e }, i)).labStartRun,
204
213
  onSuccess: (e) => {
205
- n.invalidateQueries({ queryKey: [o, "runs"] }), n.invalidateQueries({ queryKey: [
206
- o,
214
+ n.invalidateQueries({ queryKey: [s, "runs"] }), n.invalidateQueries({ queryKey: [
215
+ s,
207
216
  "experiment",
208
217
  e.experimentId
209
218
  ] });
210
219
  }
211
220
  });
212
- }, j = () => {
221
+ }, P = () => {
213
222
  let n = r(), { apiGatewayUrl: i } = e();
214
223
  return t({
215
224
  mutationFn: async ({ id: e, status: t, notes: n, observations: r }) => {
216
- let o = !!n, s = r != null, c = o || s ? {
217
- ...o ? { notes: n } : {},
225
+ let a = !!n, s = r != null, c = a || s ? {
226
+ ...a ? { notes: n } : {},
218
227
  ...s ? { observations: r } : {}
219
228
  } : void 0;
220
- return (await a(`mutation LabCompleteRun($id: ID!, $status: LabRunStatus!, $input: LabRecordRunResultsInput) {
221
- labCompleteRun(id: $id, status: $status, input: $input) { ${l} }
229
+ return (await o(`mutation LabCompleteRun($id: ID!, $status: LabRunStatus!, $input: LabRecordRunResultsInput) {
230
+ labCompleteRun(id: $id, status: $status, input: $input) { ${u} }
222
231
  }`, {
223
232
  id: e,
224
233
  status: t,
@@ -226,18 +235,18 @@ var a = async (e, t, n) => {
226
235
  }, i)).labCompleteRun;
227
236
  },
228
237
  onSuccess: (e) => {
229
- n.invalidateQueries({ queryKey: [o, "runs"] }), n.invalidateQueries({ queryKey: [
230
- o,
238
+ n.invalidateQueries({ queryKey: [s, "runs"] }), n.invalidateQueries({ queryKey: [
239
+ s,
231
240
  "experiment",
232
241
  e.experimentId
233
242
  ] });
234
243
  }
235
244
  });
236
- }, M = (t = {}) => {
245
+ }, F = (t = {}) => {
237
246
  let { apiGatewayUrl: r } = e();
238
247
  return n({
239
248
  queryKey: [
240
- o,
249
+ s,
241
250
  "notebook",
242
251
  t.projectId ?? null,
243
252
  t.experimentId ?? null,
@@ -245,9 +254,9 @@ var a = async (e, t, n) => {
245
254
  t.search ?? null,
246
255
  t.pagination ?? null
247
256
  ],
248
- queryFn: async () => (await a(`query LabNotebookEntries($projectId: ID, $experimentId: ID, $status: LabNotebookEntryStatus, $search: String, $pagination: PaginationInput) {
257
+ queryFn: async () => (await o(`query LabNotebookEntries($projectId: ID, $experimentId: ID, $status: LabNotebookEntryStatus, $search: String, $pagination: PaginationInput) {
249
258
  labListNotebookEntries(projectId: $projectId, experimentId: $experimentId, status: $status, search: $search, pagination: $pagination) {
250
- items { ${u} }
259
+ items { ${d} }
251
260
  pageInfo { cursor hasMore }
252
261
  }
253
262
  }`, {
@@ -258,73 +267,73 @@ var a = async (e, t, n) => {
258
267
  pagination: t.pagination
259
268
  }, r)).labListNotebookEntries
260
269
  });
261
- }, N = (t) => {
270
+ }, I = (t) => {
262
271
  let { apiGatewayUrl: r } = e();
263
272
  return n({
264
273
  queryKey: [
265
- o,
274
+ s,
266
275
  "notebook-entry",
267
276
  t
268
277
  ],
269
- queryFn: async () => (await a(`query LabNotebookEntry($id: ID!) {
278
+ queryFn: async () => (await o(`query LabNotebookEntry($id: ID!) {
270
279
  labNotebookEntry(id: $id) {
271
- ${u}
280
+ ${d}
272
281
  files { id }
273
282
  }
274
283
  }`, { id: t }, r)).labNotebookEntry,
275
284
  enabled: !!t
276
285
  });
277
- }, P = () => {
286
+ }, L = () => {
278
287
  let n = r(), { apiGatewayUrl: i } = e();
279
288
  return t({
280
- mutationFn: async (e) => (await a(`mutation LabCreateNotebookEntry($input: LabCreateNotebookEntryInput!) {
281
- labCreateNotebookEntry(input: $input) { ${u} }
289
+ mutationFn: async (e) => (await o(`mutation LabCreateNotebookEntry($input: LabCreateNotebookEntryInput!) {
290
+ labCreateNotebookEntry(input: $input) { ${d} }
282
291
  }`, { input: e }, i)).labCreateNotebookEntry,
283
292
  onSuccess: () => {
284
- n.invalidateQueries({ queryKey: [o, "notebook"] });
293
+ n.invalidateQueries({ queryKey: [s, "notebook"] });
285
294
  }
286
295
  });
287
- }, F = () => {
296
+ }, R = () => {
288
297
  let n = r(), { apiGatewayUrl: i } = e();
289
298
  return t({
290
- mutationFn: async (e) => (await a(`mutation LabSignNotebookEntry($id: ID!) {
291
- labSignNotebookEntry(id: $id) { ${u} }
299
+ mutationFn: async (e) => (await o(`mutation LabSignNotebookEntry($id: ID!) {
300
+ labSignNotebookEntry(id: $id) { ${d} }
292
301
  }`, { id: e }, i)).labSignNotebookEntry,
293
302
  onSuccess: (e) => {
294
- n.invalidateQueries({ queryKey: [o, "notebook"] }), n.invalidateQueries({ queryKey: [
295
- o,
303
+ n.invalidateQueries({ queryKey: [s, "notebook"] }), n.invalidateQueries({ queryKey: [
304
+ s,
296
305
  "notebook-entry",
297
306
  e.id
298
307
  ] });
299
308
  }
300
309
  });
301
- }, I = () => {
310
+ }, z = () => {
302
311
  let n = r(), { apiGatewayUrl: i } = e();
303
312
  return t({
304
- mutationFn: async (e) => (await a(`mutation LabWitnessNotebookEntry($id: ID!) {
305
- labWitnessNotebookEntry(id: $id) { ${u} }
313
+ mutationFn: async (e) => (await o(`mutation LabWitnessNotebookEntry($id: ID!) {
314
+ labWitnessNotebookEntry(id: $id) { ${d} }
306
315
  }`, { id: e }, i)).labWitnessNotebookEntry,
307
316
  onSuccess: (e) => {
308
- n.invalidateQueries({ queryKey: [o, "notebook"] }), n.invalidateQueries({ queryKey: [
309
- o,
317
+ n.invalidateQueries({ queryKey: [s, "notebook"] }), n.invalidateQueries({ queryKey: [
318
+ s,
310
319
  "notebook-entry",
311
320
  e.id
312
321
  ] });
313
322
  }
314
323
  });
315
- }, L = (t = {}) => {
324
+ }, B = (t = {}) => {
316
325
  let { apiGatewayUrl: r } = e();
317
326
  return n({
318
327
  queryKey: [
319
- o,
328
+ s,
320
329
  "protocols",
321
330
  t.status ?? null,
322
331
  t.search ?? null,
323
332
  t.pagination ?? null
324
333
  ],
325
- queryFn: async () => (await a(`query LabProtocols($status: LabProtocolStatus, $search: String, $pagination: PaginationInput) {
334
+ queryFn: async () => (await o(`query LabProtocols($status: LabProtocolStatus, $search: String, $pagination: PaginationInput) {
326
335
  labListProtocols(status: $status, search: $search, pagination: $pagination) {
327
- items { ${d} }
336
+ items { ${f} }
328
337
  pageInfo { cursor hasMore }
329
338
  }
330
339
  }`, {
@@ -333,91 +342,91 @@ var a = async (e, t, n) => {
333
342
  pagination: t.pagination
334
343
  }, r)).labListProtocols
335
344
  });
336
- }, R = (t) => {
345
+ }, V = (t) => {
337
346
  let { apiGatewayUrl: r } = e();
338
347
  return n({
339
348
  queryKey: [
340
- o,
349
+ s,
341
350
  "protocol",
342
351
  t
343
352
  ],
344
- queryFn: async () => (await a(`query LabProtocol($id: ID!) {
353
+ queryFn: async () => (await o(`query LabProtocol($id: ID!) {
345
354
  labProtocol(id: $id) {
346
- ${d}
347
- steps { ${f} }
355
+ ${f}
356
+ steps { ${p} }
348
357
  }
349
358
  }`, { id: t }, r)).labProtocol,
350
359
  enabled: !!t
351
360
  });
352
- }, z = () => {
361
+ }, H = () => {
353
362
  let n = r(), { apiGatewayUrl: i } = e();
354
363
  return t({
355
- mutationFn: async (e) => (await a(`mutation LabCreateProtocol($input: LabCreateProtocolInput!) {
356
- labCreateProtocol(input: $input) { ${d} }
364
+ mutationFn: async (e) => (await o(`mutation LabCreateProtocol($input: LabCreateProtocolInput!) {
365
+ labCreateProtocol(input: $input) { ${f} }
357
366
  }`, { input: e }, i)).labCreateProtocol,
358
367
  onSuccess: () => {
359
- n.invalidateQueries({ queryKey: [o, "protocols"] });
368
+ n.invalidateQueries({ queryKey: [s, "protocols"] });
360
369
  }
361
370
  });
362
- }, te = () => {
371
+ }, U = () => {
363
372
  let n = r(), { apiGatewayUrl: i } = e();
364
373
  return t({
365
- mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateProtocol($id: ID!, $input: LabUpdateProtocolInput!) {
366
- labUpdateProtocol(id: $id, input: $input) { ${d} }
374
+ mutationFn: async ({ id: e, input: t }) => (await o(`mutation LabUpdateProtocol($id: ID!, $input: LabUpdateProtocolInput!) {
375
+ labUpdateProtocol(id: $id, input: $input) { ${f} }
367
376
  }`, {
368
377
  id: e,
369
378
  input: t
370
379
  }, i)).labUpdateProtocol,
371
380
  onSuccess: (e) => {
372
- n.invalidateQueries({ queryKey: [o, "protocols"] }), n.invalidateQueries({ queryKey: [
373
- o,
381
+ n.invalidateQueries({ queryKey: [s, "protocols"] }), n.invalidateQueries({ queryKey: [
382
+ s,
374
383
  "protocol",
375
384
  e.id
376
385
  ] });
377
386
  }
378
387
  });
379
- }, B = () => {
388
+ }, W = () => {
380
389
  let n = r(), { apiGatewayUrl: i } = e();
381
390
  return t({
382
- mutationFn: async (e) => (await a(`mutation LabPublishProtocol($id: ID!) {
383
- labPublishProtocol(id: $id) { ${d} }
391
+ mutationFn: async (e) => (await o(`mutation LabPublishProtocol($id: ID!) {
392
+ labPublishProtocol(id: $id) { ${f} }
384
393
  }`, { id: e }, i)).labPublishProtocol,
385
394
  onSuccess: (e) => {
386
- n.invalidateQueries({ queryKey: [o, "protocols"] }), n.invalidateQueries({ queryKey: [
387
- o,
395
+ n.invalidateQueries({ queryKey: [s, "protocols"] }), n.invalidateQueries({ queryKey: [
396
+ s,
388
397
  "protocol",
389
398
  e.id
390
399
  ] });
391
400
  }
392
401
  });
393
- }, V = () => {
402
+ }, G = () => {
394
403
  let n = r(), { apiGatewayUrl: i } = e();
395
404
  return t({
396
- mutationFn: async (e) => (await a(`mutation LabAddProtocolStep($input: LabAddProtocolStepInput!) {
397
- labAddProtocolStep(input: $input) { ${f} }
405
+ mutationFn: async (e) => (await o(`mutation LabAddProtocolStep($input: LabAddProtocolStepInput!) {
406
+ labAddProtocolStep(input: $input) { ${p} }
398
407
  }`, { input: e }, i)).labAddProtocolStep,
399
408
  onSuccess: (e) => {
400
- n.invalidateQueries({ queryKey: [o, "protocols"] }), n.invalidateQueries({ queryKey: [
401
- o,
409
+ n.invalidateQueries({ queryKey: [s, "protocols"] }), n.invalidateQueries({ queryKey: [
410
+ s,
402
411
  "protocol",
403
412
  e.protocolId
404
413
  ] });
405
414
  }
406
415
  });
407
- }, H = (t = {}) => {
416
+ }, te = (t = {}) => {
408
417
  let { apiGatewayUrl: r } = e();
409
418
  return n({
410
419
  queryKey: [
411
- o,
420
+ s,
412
421
  "datasets",
413
422
  t.kind ?? null,
414
423
  t.status ?? null,
415
424
  t.search ?? null,
416
425
  t.pagination ?? null
417
426
  ],
418
- queryFn: async () => (await a(`query LabDatasets($kind: LabDatasetKind, $status: LabDatasetStatus, $search: String, $pagination: PaginationInput) {
427
+ queryFn: async () => (await o(`query LabDatasets($kind: LabDatasetKind, $status: LabDatasetStatus, $search: String, $pagination: PaginationInput) {
419
428
  labListDatasets(kind: $kind, status: $status, search: $search, pagination: $pagination) {
420
- items { ${p} }
429
+ items { ${m} }
421
430
  pageInfo { cursor hasMore }
422
431
  }
423
432
  }`, {
@@ -427,94 +436,94 @@ var a = async (e, t, n) => {
427
436
  pagination: t.pagination
428
437
  }, r)).labListDatasets
429
438
  });
430
- }, U = (t) => {
439
+ }, K = (t) => {
431
440
  let { apiGatewayUrl: r } = e();
432
441
  return n({
433
442
  queryKey: [
434
- o,
443
+ s,
435
444
  "dataset",
436
445
  t
437
446
  ],
438
- queryFn: async () => (await a(`query LabDataset($id: ID!) {
447
+ queryFn: async () => (await o(`query LabDataset($id: ID!) {
439
448
  labDataset(id: $id) {
440
- ${p}
441
- versions { ${m} }
449
+ ${m}
450
+ versions { ${h} }
442
451
  }
443
452
  }`, { id: t }, r)).labDataset,
444
453
  enabled: !!t
445
454
  });
446
- }, W = () => {
455
+ }, q = () => {
447
456
  let n = r(), { apiGatewayUrl: i } = e();
448
457
  return t({
449
- mutationFn: async (e) => (await a(`mutation LabCreateDataset($input: LabCreateDatasetInput!) {
450
- labCreateDataset(input: $input) { ${p} }
458
+ mutationFn: async (e) => (await o(`mutation LabCreateDataset($input: LabCreateDatasetInput!) {
459
+ labCreateDataset(input: $input) { ${m} }
451
460
  }`, { input: e }, i)).labCreateDataset,
452
461
  onSuccess: () => {
453
- n.invalidateQueries({ queryKey: [o, "datasets"] });
462
+ n.invalidateQueries({ queryKey: [s, "datasets"] });
454
463
  }
455
464
  });
456
- }, G = () => {
465
+ }, J = () => {
457
466
  let n = r(), { apiGatewayUrl: i } = e();
458
467
  return t({
459
- mutationFn: async (e) => (await a("mutation LabArchiveDataset($id: ID!) { labArchiveDataset(id: $id) }", { id: e }, i)).labArchiveDataset,
468
+ mutationFn: async (e) => (await o("mutation LabArchiveDataset($id: ID!) { labArchiveDataset(id: $id) }", { id: e }, i)).labArchiveDataset,
460
469
  onSuccess: () => {
461
- n.invalidateQueries({ queryKey: [o, "datasets"] });
470
+ n.invalidateQueries({ queryKey: [s, "datasets"] });
462
471
  }
463
472
  });
464
- }, K = () => {
473
+ }, Y = () => {
465
474
  let n = r(), { apiGatewayUrl: i } = e();
466
475
  return t({
467
- mutationFn: async (e) => (await a(`mutation LabAddDatasetVersion($input: LabAddDatasetVersionInput!) {
468
- labAddDatasetVersion(input: $input) { ${m} }
476
+ mutationFn: async (e) => (await o(`mutation LabAddDatasetVersion($input: LabAddDatasetVersionInput!) {
477
+ labAddDatasetVersion(input: $input) { ${h} }
469
478
  }`, { input: e }, i)).labAddDatasetVersion,
470
479
  onSuccess: (e) => {
471
- n.invalidateQueries({ queryKey: [o, "datasets"] }), n.invalidateQueries({ queryKey: [
472
- o,
480
+ n.invalidateQueries({ queryKey: [s, "datasets"] }), n.invalidateQueries({ queryKey: [
481
+ s,
473
482
  "dataset",
474
483
  e.datasetId
475
484
  ] });
476
485
  }
477
486
  });
478
- }, q = (t = {}) => {
487
+ }, X = (t = {}) => {
479
488
  let { apiGatewayUrl: r } = e();
480
489
  return n({
481
490
  queryKey: [
482
- o,
491
+ s,
483
492
  "pipelines",
484
493
  t.pagination ?? null
485
494
  ],
486
- queryFn: async () => (await a(`query LabPipelines($pagination: PaginationInput) {
495
+ queryFn: async () => (await o(`query LabPipelines($pagination: PaginationInput) {
487
496
  labListPipelines(pagination: $pagination) {
488
- items { ${h} }
497
+ items { ${g} }
489
498
  pageInfo { cursor hasMore }
490
499
  }
491
500
  }`, { pagination: t.pagination }, r)).labListPipelines
492
501
  });
493
- }, J = () => {
502
+ }, Z = () => {
494
503
  let n = r(), { apiGatewayUrl: i } = e();
495
504
  return t({
496
- mutationFn: async (e) => (await a(`mutation LabCreatePipeline($input: LabCreatePipelineInput!) {
497
- labCreatePipeline(input: $input) { ${h} }
505
+ mutationFn: async (e) => (await o(`mutation LabCreatePipeline($input: LabCreatePipelineInput!) {
506
+ labCreatePipeline(input: $input) { ${g} }
498
507
  }`, { input: e }, i)).labCreatePipeline,
499
508
  onSuccess: () => {
500
- n.invalidateQueries({ queryKey: [o, "pipelines"] });
509
+ n.invalidateQueries({ queryKey: [s, "pipelines"] });
501
510
  }
502
511
  });
503
- }, Y = (t = {}) => {
512
+ }, Q = (t = {}) => {
504
513
  let { apiGatewayUrl: r } = e();
505
514
  return n({
506
515
  queryKey: [
507
- o,
516
+ s,
508
517
  "pipeline-runs",
509
518
  t.pipelineId ?? null,
510
519
  t.status ?? null,
511
520
  t.pagination ?? null
512
521
  ],
513
- queryFn: async () => (await a(`query LabPipelineRuns($pipelineId: ID, $status: LabPipelineRunStatus, $pagination: PaginationInput) {
522
+ queryFn: async () => (await o(`query LabPipelineRuns($pipelineId: ID, $status: LabPipelineRunStatus, $pagination: PaginationInput) {
514
523
  labListPipelineRuns(pipelineId: $pipelineId, status: $status, pagination: $pagination) {
515
524
  items {
516
- ${g}
517
- pipeline { ${h} }
525
+ ${_}
526
+ pipeline { ${g} }
518
527
  }
519
528
  pageInfo { cursor hasMore }
520
529
  }
@@ -524,44 +533,44 @@ var a = async (e, t, n) => {
524
533
  pagination: t.pagination
525
534
  }, r)).labListPipelineRuns
526
535
  });
527
- }, X = () => {
536
+ }, ne = () => {
528
537
  let n = r(), { apiGatewayUrl: i } = e();
529
538
  return t({
530
- mutationFn: async (e) => (await a(`mutation LabRunPipeline($input: LabRunPipelineInput!) {
531
- labRunPipeline(input: $input) { ${g} }
539
+ mutationFn: async (e) => (await o(`mutation LabRunPipeline($input: LabRunPipelineInput!) {
540
+ labRunPipeline(input: $input) { ${_} }
532
541
  }`, { input: e }, i)).labRunPipeline,
533
542
  onSuccess: () => {
534
- n.invalidateQueries({ queryKey: [o, "pipeline-runs"] });
543
+ n.invalidateQueries({ queryKey: [s, "pipeline-runs"] });
535
544
  }
536
545
  });
537
- }, Z = () => {
546
+ }, re = () => {
538
547
  let n = r(), { apiGatewayUrl: i } = e();
539
548
  return t({
540
- mutationFn: async ({ id: e, status: t, log: n }) => (await a(`mutation LabTransitionPipelineRun($id: ID!, $status: LabPipelineRunStatus!, $log: String) {
541
- labTransitionPipelineRun(id: $id, status: $status, log: $log) { ${g} }
549
+ mutationFn: async ({ id: e, status: t, log: n }) => (await o(`mutation LabTransitionPipelineRun($id: ID!, $status: LabPipelineRunStatus!, $log: String) {
550
+ labTransitionPipelineRun(id: $id, status: $status, log: $log) { ${_} }
542
551
  }`, {
543
552
  id: e,
544
553
  status: t,
545
554
  log: n
546
555
  }, i)).labTransitionPipelineRun,
547
556
  onSuccess: () => {
548
- n.invalidateQueries({ queryKey: [o, "pipeline-runs"] });
557
+ n.invalidateQueries({ queryKey: [s, "pipeline-runs"] });
549
558
  }
550
559
  });
551
- }, Q = (t = {}) => {
560
+ }, ie = (t = {}) => {
552
561
  let { apiGatewayUrl: r } = e();
553
562
  return n({
554
563
  queryKey: [
555
- o,
564
+ s,
556
565
  "inventory",
557
566
  t.category ?? null,
558
567
  t.status ?? null,
559
568
  t.search ?? null,
560
569
  t.pagination ?? null
561
570
  ],
562
- queryFn: async () => (await a(`query LabInventory($category: LabInventoryCategory, $status: LabInventoryStatus, $search: String, $pagination: PaginationInput) {
571
+ queryFn: async () => (await o(`query LabInventory($category: LabInventoryCategory, $status: LabInventoryStatus, $search: String, $pagination: PaginationInput) {
563
572
  labListInventoryItems(category: $category, status: $status, search: $search, pagination: $pagination) {
564
- items { ${_} }
573
+ items { ${v} }
565
574
  pageInfo { cursor hasMore }
566
575
  }
567
576
  }`, {
@@ -571,67 +580,67 @@ var a = async (e, t, n) => {
571
580
  pagination: t.pagination
572
581
  }, r)).labListInventoryItems
573
582
  });
574
- }, ne = (t) => {
583
+ }, ae = (t) => {
575
584
  let { apiGatewayUrl: r } = e();
576
585
  return n({
577
586
  queryKey: [
578
- o,
587
+ s,
579
588
  "inventory-item",
580
589
  t
581
590
  ],
582
- queryFn: async () => (await a(`query LabInventoryItem($id: ID!) {
583
- labInventoryItem(id: $id) { ${_} }
591
+ queryFn: async () => (await o(`query LabInventoryItem($id: ID!) {
592
+ labInventoryItem(id: $id) { ${v} }
584
593
  }`, { id: t }, r)).labInventoryItem,
585
594
  enabled: !!t
586
595
  });
587
- }, re = () => {
596
+ }, oe = () => {
588
597
  let n = r(), { apiGatewayUrl: i } = e();
589
598
  return t({
590
- mutationFn: async (e) => (await a(`mutation LabCreateInventoryItem($input: LabCreateInventoryItemInput!) {
591
- labCreateInventoryItem(input: $input) { ${_} }
599
+ mutationFn: async (e) => (await o(`mutation LabCreateInventoryItem($input: LabCreateInventoryItemInput!) {
600
+ labCreateInventoryItem(input: $input) { ${v} }
592
601
  }`, { input: e }, i)).labCreateInventoryItem,
593
602
  onSuccess: () => {
594
- n.invalidateQueries({ queryKey: [o, "inventory"] });
603
+ n.invalidateQueries({ queryKey: [s, "inventory"] });
595
604
  }
596
605
  });
597
- }, ie = () => {
606
+ }, se = () => {
598
607
  let n = r(), { apiGatewayUrl: i } = e();
599
608
  return t({
600
- mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabAdjustInventory($id: ID!, $input: LabAdjustInventoryInput!) {
601
- labAdjustInventory(id: $id, input: $input) { ${_} }
609
+ mutationFn: async ({ id: e, input: t }) => (await o(`mutation LabAdjustInventory($id: ID!, $input: LabAdjustInventoryInput!) {
610
+ labAdjustInventory(id: $id, input: $input) { ${v} }
602
611
  }`, {
603
612
  id: e,
604
613
  input: t
605
614
  }, i)).labAdjustInventory,
606
615
  onSuccess: (e) => {
607
- n.invalidateQueries({ queryKey: [o, "inventory"] }), n.invalidateQueries({ queryKey: [
608
- o,
616
+ n.invalidateQueries({ queryKey: [s, "inventory"] }), n.invalidateQueries({ queryKey: [
617
+ s,
609
618
  "inventory-item",
610
619
  e.id
611
620
  ] });
612
621
  }
613
622
  });
614
- }, ae = () => {
623
+ }, ce = () => {
615
624
  let n = r(), { apiGatewayUrl: i } = e();
616
625
  return t({
617
- mutationFn: async (e) => (await a("mutation LabArchiveInventoryItem($id: ID!) { labArchiveInventoryItem(id: $id) }", { id: e }, i)).labArchiveInventoryItem,
626
+ mutationFn: async (e) => (await o("mutation LabArchiveInventoryItem($id: ID!) { labArchiveInventoryItem(id: $id) }", { id: e }, i)).labArchiveInventoryItem,
618
627
  onSuccess: () => {
619
- n.invalidateQueries({ queryKey: [o, "inventory"] });
628
+ n.invalidateQueries({ queryKey: [s, "inventory"] });
620
629
  }
621
630
  });
622
- }, oe = (t = {}) => {
631
+ }, le = (t = {}) => {
623
632
  let { apiGatewayUrl: r } = e();
624
633
  return n({
625
634
  queryKey: [
626
- o,
635
+ s,
627
636
  "instruments",
628
637
  t.status ?? null,
629
638
  t.search ?? null,
630
639
  t.pagination ?? null
631
640
  ],
632
- queryFn: async () => (await a(`query LabInstruments($status: LabInstrumentStatus, $search: String, $pagination: PaginationInput) {
641
+ queryFn: async () => (await o(`query LabInstruments($status: LabInstrumentStatus, $search: String, $pagination: PaginationInput) {
633
642
  labListInstruments(status: $status, search: $search, pagination: $pagination) {
634
- items { ${v} }
643
+ items { ${y} }
635
644
  pageInfo { cursor hasMore }
636
645
  }
637
646
  }`, {
@@ -640,60 +649,178 @@ var a = async (e, t, n) => {
640
649
  pagination: t.pagination
641
650
  }, r)).labListInstruments
642
651
  });
643
- }, $ = (t) => {
652
+ }, ue = (t) => {
644
653
  let { apiGatewayUrl: r } = e();
645
654
  return n({
646
655
  queryKey: [
647
- o,
656
+ s,
648
657
  "instrument",
649
658
  t
650
659
  ],
651
- queryFn: async () => (await a(`query LabInstrument($id: ID!) {
660
+ queryFn: async () => (await o(`query LabInstrument($id: ID!) {
652
661
  labInstrument(id: $id) {
653
- ${v}
654
- bookings { ${y} }
662
+ ${y}
663
+ bookings { ${b} }
655
664
  }
656
665
  }`, { id: t }, r)).labInstrument,
657
666
  enabled: !!t
658
667
  });
659
- }, se = () => {
668
+ }, de = () => {
660
669
  let n = r(), { apiGatewayUrl: i } = e();
661
670
  return t({
662
- mutationFn: async (e) => (await a(`mutation LabCreateInstrument($input: LabCreateInstrumentInput!) {
663
- labCreateInstrument(input: $input) { ${v} }
671
+ mutationFn: async (e) => (await o(`mutation LabCreateInstrument($input: LabCreateInstrumentInput!) {
672
+ labCreateInstrument(input: $input) { ${y} }
664
673
  }`, { input: e }, i)).labCreateInstrument,
665
674
  onSuccess: () => {
666
- n.invalidateQueries({ queryKey: [o, "instruments"] });
675
+ n.invalidateQueries({ queryKey: [s, "instruments"] });
667
676
  }
668
677
  });
669
- }, ce = () => {
678
+ }, fe = () => {
670
679
  let n = r(), { apiGatewayUrl: i } = e();
671
680
  return t({
672
- mutationFn: async (e) => (await a(`mutation LabBookInstrument($input: LabBookInstrumentInput!) {
673
- labBookInstrument(input: $input) { ${y} }
681
+ mutationFn: async (e) => (await o(`mutation LabBookInstrument($input: LabBookInstrumentInput!) {
682
+ labBookInstrument(input: $input) { ${b} }
674
683
  }`, { input: e }, i)).labBookInstrument,
675
684
  onSuccess: (e) => {
676
- n.invalidateQueries({ queryKey: [o, "instruments"] }), n.invalidateQueries({ queryKey: [
677
- o,
685
+ n.invalidateQueries({ queryKey: [s, "instruments"] }), n.invalidateQueries({ queryKey: [
686
+ s,
678
687
  "instrument",
679
688
  e.instrumentId
680
689
  ] });
681
690
  }
682
691
  });
683
- }, le = () => {
692
+ }, pe = () => {
684
693
  let n = r(), { apiGatewayUrl: i } = e();
685
694
  return t({
686
- mutationFn: async (e) => (await a("mutation LabCancelBooking($id: ID!) {\n labCancelBooking(id: $id) { id status instrumentId }\n }", { id: e }, i)).labCancelBooking,
695
+ mutationFn: async (e) => (await o("mutation LabCancelBooking($id: ID!) {\n labCancelBooking(id: $id) { id status instrumentId }\n }", { id: e }, i)).labCancelBooking,
687
696
  onSuccess: (e) => {
688
- n.invalidateQueries({ queryKey: [o, "instruments"] }), n.invalidateQueries({ queryKey: [
689
- o,
697
+ n.invalidateQueries({ queryKey: [s, "instruments"] }), n.invalidateQueries({ queryKey: [
698
+ s,
690
699
  "instrument",
691
700
  e.instrumentId
692
701
  ] });
693
702
  }
694
703
  });
704
+ }, $ = () => {
705
+ let { apiGatewayUrl: t } = e();
706
+ return n({
707
+ queryKey: [s, "ai-model-catalog"],
708
+ queryFn: async () => (await o("query LabAiModelCatalog {\n labAiModelCatalog { provider model label isDefault capabilities }\n }", {}, t)).labAiModelCatalog,
709
+ staleTime: 1800 * 1e3
710
+ });
711
+ }, me = () => {
712
+ let { apiGatewayUrl: t } = e();
713
+ return n({
714
+ queryKey: [s, "ai-config"],
715
+ queryFn: async () => (await o(`query LabWorkspaceAiConfig {
716
+ labWorkspaceAiConfig { ${x} }
717
+ }`, {}, t)).labWorkspaceAiConfig
718
+ });
719
+ }, he = () => {
720
+ let n = r(), { apiGatewayUrl: i } = e();
721
+ return t({
722
+ mutationFn: async ({ provider: e, model: t }) => (await o(`mutation LabSetWorkspaceAiModel($provider: String!, $model: String!) {
723
+ labSetWorkspaceAiModel(provider: $provider, model: $model) { ${x} }
724
+ }`, {
725
+ provider: e,
726
+ model: t
727
+ }, i)).labSetWorkspaceAiModel,
728
+ onSuccess: (e) => {
729
+ n.setQueryData([s, "ai-config"], e), n.invalidateQueries({ queryKey: [s, "ai-config"] });
730
+ }
731
+ });
732
+ }, ge = () => {
733
+ let n = r(), { apiGatewayUrl: i } = e();
734
+ return t({
735
+ mutationFn: async (e) => (await o(`mutation LabSetWorkspaceAutoPilot($enabled: Boolean!) {
736
+ labSetWorkspaceAutoPilot(enabled: $enabled) { ${x} }
737
+ }`, { enabled: e }, i)).labSetWorkspaceAutoPilot,
738
+ onSuccess: (e) => {
739
+ n.setQueryData([s, "ai-config"], e), n.invalidateQueries({ queryKey: [s, "ai-config"] });
740
+ }
741
+ });
742
+ }, _e = (t = {}) => {
743
+ let { apiGatewayUrl: r } = e();
744
+ return n({
745
+ queryKey: [
746
+ s,
747
+ "agent-runs",
748
+ t.pagination ?? null
749
+ ],
750
+ queryFn: async () => (await o(`query LabAgentRuns($pagination: PaginationInput) {
751
+ labAgentRuns(pagination: $pagination) {
752
+ items { ${ee} }
753
+ pageInfo { cursor hasMore }
754
+ }
755
+ }`, { pagination: t.pagination }, r)).labAgentRuns
756
+ });
757
+ }, ve = () => {
758
+ let n = r(), { apiGatewayUrl: i } = e();
759
+ return t({
760
+ mutationFn: async (e) => (await o(`mutation LabSuggestProtocol($input: LabSuggestProtocolInput!) {
761
+ labSuggestProtocol(input: $input) {
762
+ protocol { ${f} context }
763
+ agentRunId
764
+ stepCount
765
+ }
766
+ }`, { input: e }, i)).labSuggestProtocol,
767
+ onSuccess: () => {
768
+ n.invalidateQueries({ queryKey: [s, "agent-runs"] }), n.invalidateQueries({ queryKey: [s, "protocols"] });
769
+ }
770
+ });
771
+ }, ye = () => {
772
+ let n = r(), { apiGatewayUrl: i } = e();
773
+ return t({
774
+ mutationFn: async ({ experimentId: e, requestedProvider: t }) => (await o("mutation LabRecommendNextRun($experimentId: ID!, $requestedProvider: String) {\n labRecommendNextRun(experimentId: $experimentId, requestedProvider: $requestedProvider) {\n experimentId recommendation rationale confidence suggestedParameters flags\n agentRunId appliedToExperiment createdAt\n }\n }", {
775
+ experimentId: e,
776
+ requestedProvider: t || void 0
777
+ }, i)).labRecommendNextRun,
778
+ onSuccess: (e) => {
779
+ n.invalidateQueries({ queryKey: [s, "agent-runs"] }), n.invalidateQueries({ queryKey: [
780
+ s,
781
+ "experiment",
782
+ e.experimentId
783
+ ] }), n.invalidateQueries({ queryKey: [
784
+ s,
785
+ "experiment-ai-context",
786
+ e.experimentId
787
+ ] });
788
+ }
789
+ });
790
+ }, be = () => {
791
+ let n = r(), { apiGatewayUrl: i } = e();
792
+ return t({
793
+ mutationFn: async ({ runId: e, experimentId: t, recommendation: n, note: r }) => (await o("mutation LabOverrideAgentRun($runId: ID!, $experimentId: ID!, $recommendation: LabRunRecommendation!, $note: String!) {\n labOverrideAgentRun(runId: $runId, experimentId: $experimentId, recommendation: $recommendation, note: $note) {\n id workspaceId experimentId supersedesRunId recommendation note createdAt\n }\n }", {
794
+ runId: e,
795
+ experimentId: t,
796
+ recommendation: n,
797
+ note: r
798
+ }, i)).labOverrideAgentRun,
799
+ onSuccess: (e) => {
800
+ n.invalidateQueries({ queryKey: [s, "agent-runs"] }), n.invalidateQueries({ queryKey: [
801
+ s,
802
+ "experiment",
803
+ e.experimentId
804
+ ] }), n.invalidateQueries({ queryKey: [
805
+ s,
806
+ "experiment-ai-context",
807
+ e.experimentId
808
+ ] });
809
+ }
810
+ });
811
+ }, xe = (t) => {
812
+ let { apiGatewayUrl: r } = e();
813
+ return n({
814
+ queryKey: [
815
+ s,
816
+ "experiment-ai-context",
817
+ t
818
+ ],
819
+ queryFn: async () => (await o("query LabExperimentAiContext($id: ID!) {\n labExperiment(id: $id) { id title status projectId context }\n }", { id: t }, r)).labExperiment,
820
+ enabled: !!t
821
+ });
695
822
  };
696
823
  //#endregion
697
- export { K as useAddDatasetVersion, V as useAddProtocolStep, ie as useAdjustInventory, G as useArchiveDataset, ae as useArchiveInventoryItem, C as useArchiveProject, ce as useBookInstrument, le as useCancelBooking, j as useCompleteRun, W as useCreateDataset, E as useCreateExperiment, se as useCreateInstrument, re as useCreateInventoryItem, P as useCreateNotebookEntry, J as useCreatePipeline, x as useCreateProject, z as useCreateProtocol, U as useDataset, H as useDatasets, T as useExperiment, w as useExperiments, $ as useInstrument, oe as useInstruments, ne as useInventoryItem, Q as useInventoryItems, M as useNotebookEntries, N as useNotebookEntry, Y as usePipelineRuns, q as usePipelines, b as useProject, ee as useProjects, R as useProtocol, L as useProtocols, B as usePublishProtocol, X as useRunPipeline, k as useRuns, F as useSignNotebookEntry, A as useStartRun, O as useTransitionExperiment, Z as useTransitionPipelineRun, D as useUpdateExperiment, S as useUpdateProject, te as useUpdateProtocol, I as useWitnessNotebookEntry };
824
+ export { a as LabApiError, Y as useAddDatasetVersion, G as useAddProtocolStep, se as useAdjustInventory, _e as useAgentRuns, $ as useAiModelCatalog, J as useArchiveDataset, ce as useArchiveInventoryItem, E as useArchiveProject, fe as useBookInstrument, pe as useCancelBooking, P as useCompleteRun, q as useCreateDataset, k as useCreateExperiment, de as useCreateInstrument, oe as useCreateInventoryItem, L as useCreateNotebookEntry, Z as useCreatePipeline, w as useCreateProject, H as useCreateProtocol, K as useDataset, te as useDatasets, O as useExperiment, xe as useExperimentAiContext, D as useExperiments, ue as useInstrument, le as useInstruments, ae as useInventoryItem, ie as useInventoryItems, F as useNotebookEntries, I as useNotebookEntry, be as useOverrideAgentRun, Q as usePipelineRuns, X as usePipelines, C as useProject, S as useProjects, V as useProtocol, B as useProtocols, W as usePublishProtocol, ye as useRecommendNextRun, ne as useRunPipeline, M as useRuns, he as useSetWorkspaceAiModel, ge as useSetWorkspaceAutoPilot, R as useSignNotebookEntry, N as useStartRun, ve as useSuggestProtocol, j as useTransitionExperiment, re as useTransitionPipelineRun, A as useUpdateExperiment, T as useUpdateProject, U as useUpdateProtocol, z as useWitnessNotebookEntry, me as useWorkspaceAiConfig };
698
825
 
699
826
  //# sourceMappingURL=useLabsOfScienceApi.js.map