@burdenoff/microfe-labsofscience 2026.706.2 → 2026.706.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 (64) hide show
  1. package/dist/labsofscience/LabsOfScienceRoutes.js +11 -7
  2. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  3. package/dist/labsofscience/components/FileAttachment.js +45 -0
  4. package/dist/labsofscience/components/FileAttachment.js.map +1 -0
  5. package/dist/labsofscience/components/FileUploadField.js +90 -0
  6. package/dist/labsofscience/components/FileUploadField.js.map +1 -0
  7. package/dist/labsofscience/components/ListSearchInput.js +23 -0
  8. package/dist/labsofscience/components/ListSearchInput.js.map +1 -0
  9. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +155 -61
  10. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  11. package/dist/labsofscience/pages/OverviewPage.js +7 -7
  12. package/dist/labsofscience/pages/OverviewPage.js.map +1 -1
  13. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js +68 -60
  14. package/dist/labsofscience/pages/datasets/AddDatasetVersionDialog.js.map +1 -1
  15. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +16 -4
  16. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -1
  17. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +97 -81
  18. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -1
  19. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +2 -1
  20. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -1
  21. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +113 -66
  22. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -1
  23. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +69 -58
  24. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -1
  25. package/dist/labsofscience/pages/experiments/RunDialogs.js +52 -19
  26. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -1
  27. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +59 -48
  28. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -1
  29. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +126 -98
  30. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -1
  31. package/dist/labsofscience/pages/inventory/InventoryListPage.js +100 -84
  32. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -1
  33. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js +158 -0
  34. package/dist/labsofscience/pages/notebook/NotebookEntryDetailPage.js.map +1 -0
  35. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +133 -61
  36. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -1
  37. package/dist/labsofscience/pages/notebook/NotebookListPage.js +84 -71
  38. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -1
  39. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +172 -85
  40. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -1
  41. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +106 -47
  42. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -1
  43. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +108 -55
  44. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -1
  45. package/dist/labsofscience/pages/projects/ProjectsListPage.js +69 -58
  46. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -1
  47. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +145 -129
  48. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -1
  49. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +75 -72
  50. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -1
  51. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +70 -59
  52. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -1
  53. package/dist/labsofscience/utils/cn.js +2 -2
  54. package/dist/labsofscience/utils/uploadFile.js +107 -0
  55. package/dist/labsofscience/utils/uploadFile.js.map +1 -0
  56. package/dist/labsofscience/utils/useDebouncedValue.js +13 -0
  57. package/dist/labsofscience/utils/useDebouncedValue.js.map +1 -0
  58. package/dist/node_modules/{clsx → .bun/clsx@2.1.1/node_modules/clsx}/dist/clsx.js +1 -1
  59. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +1 -0
  60. package/dist/node_modules/{tailwind-merge → .bun/tailwind-merge@3.5.0/node_modules/tailwind-merge}/dist/bundle-mjs.js +170 -212
  61. package/dist/node_modules/.bun/tailwind-merge@3.5.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
  62. package/package.json +1 -1
  63. package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
  64. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
@@ -14,26 +14,28 @@ var a = async (e, t, n) => {
14
14
  if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
15
15
  if (!r.data) throw Error("GraphQL response did not include data");
16
16
  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", b = (t = {}) => {
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 = {}) => {
18
18
  let { apiGatewayUrl: r } = e();
19
19
  return n({
20
20
  queryKey: [
21
21
  o,
22
22
  "projects",
23
23
  t.status ?? null,
24
+ t.search ?? null,
24
25
  t.pagination ?? null
25
26
  ],
26
- queryFn: async () => (await a(`query LabProjects($status: LabProjectStatus, $pagination: PaginationInput) {
27
- labListProjects(status: $status, pagination: $pagination) {
27
+ queryFn: async () => (await a(`query LabProjects($status: LabProjectStatus, $search: String, $pagination: PaginationInput) {
28
+ labListProjects(status: $status, search: $search, pagination: $pagination) {
28
29
  items { ${s} }
29
30
  pageInfo { cursor hasMore }
30
31
  }
31
32
  }`, {
32
33
  status: t.status,
34
+ search: t.search || void 0,
33
35
  pagination: t.pagination
34
36
  }, r)).labListProjects
35
37
  });
36
- }, x = (t) => {
38
+ }, b = (t) => {
37
39
  let { apiGatewayUrl: r } = e();
38
40
  return n({
39
41
  queryKey: [
@@ -49,7 +51,7 @@ var a = async (e, t, n) => {
49
51
  }`, { id: t }, r)).labProject,
50
52
  enabled: !!t
51
53
  });
52
- }, S = () => {
54
+ }, x = () => {
53
55
  let n = r(), { apiGatewayUrl: i } = e();
54
56
  return t({
55
57
  mutationFn: async (e) => (await a(`mutation LabCreateProject($input: LabCreateProjectInput!) {
@@ -59,7 +61,7 @@ var a = async (e, t, n) => {
59
61
  n.invalidateQueries({ queryKey: [o, "projects"] });
60
62
  }
61
63
  });
62
- }, C = () => {
64
+ }, S = () => {
63
65
  let n = r(), { apiGatewayUrl: i } = e();
64
66
  return t({
65
67
  mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateProject($id: ID!, $input: LabUpdateProjectInput!) {
@@ -76,7 +78,7 @@ var a = async (e, t, n) => {
76
78
  ] });
77
79
  }
78
80
  });
79
- }, w = () => {
81
+ }, C = () => {
80
82
  let n = r(), { apiGatewayUrl: i } = e();
81
83
  return t({
82
84
  mutationFn: async (e) => (await a("mutation LabArchiveProject($id: ID!) { labArchiveProject(id: $id) }", { id: e }, i)).labArchiveProject,
@@ -84,7 +86,7 @@ var a = async (e, t, n) => {
84
86
  n.invalidateQueries({ queryKey: [o, "projects"] });
85
87
  }
86
88
  });
87
- }, T = (t = {}) => {
89
+ }, w = (t = {}) => {
88
90
  let { apiGatewayUrl: r } = e();
89
91
  return n({
90
92
  queryKey: [
@@ -92,20 +94,22 @@ var a = async (e, t, n) => {
92
94
  "experiments",
93
95
  t.projectId ?? null,
94
96
  t.status ?? null,
97
+ t.search ?? null,
95
98
  t.pagination ?? null
96
99
  ],
97
- queryFn: async () => (await a(`query LabExperiments($projectId: ID, $status: LabExperimentStatus, $pagination: PaginationInput) {
98
- labListExperiments(projectId: $projectId, status: $status, pagination: $pagination) {
100
+ queryFn: async () => (await a(`query LabExperiments($projectId: ID, $status: LabExperimentStatus, $search: String, $pagination: PaginationInput) {
101
+ labListExperiments(projectId: $projectId, status: $status, search: $search, pagination: $pagination) {
99
102
  items { ${c} }
100
103
  pageInfo { cursor hasMore }
101
104
  }
102
105
  }`, {
103
106
  projectId: t.projectId,
104
107
  status: t.status,
108
+ search: t.search || void 0,
105
109
  pagination: t.pagination
106
110
  }, r)).labListExperiments
107
111
  });
108
- }, E = (t) => {
112
+ }, T = (t) => {
109
113
  let { apiGatewayUrl: r } = e();
110
114
  return n({
111
115
  queryKey: [
@@ -122,7 +126,7 @@ var a = async (e, t, n) => {
122
126
  }`, { id: t }, r)).labExperiment,
123
127
  enabled: !!t
124
128
  });
125
- }, D = () => {
129
+ }, E = () => {
126
130
  let n = r(), { apiGatewayUrl: i } = e();
127
131
  return t({
128
132
  mutationFn: async (e) => (await a(`mutation LabCreateExperiment($input: LabCreateExperimentInput!) {
@@ -136,7 +140,7 @@ var a = async (e, t, n) => {
136
140
  ] });
137
141
  }
138
142
  });
139
- }, O = () => {
143
+ }, D = () => {
140
144
  let n = r(), { apiGatewayUrl: i } = e();
141
145
  return t({
142
146
  mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateExperiment($id: ID!, $input: LabUpdateExperimentInput!) {
@@ -153,7 +157,7 @@ var a = async (e, t, n) => {
153
157
  ] });
154
158
  }
155
159
  });
156
- }, k = () => {
160
+ }, O = () => {
157
161
  let n = r(), { apiGatewayUrl: i } = e();
158
162
  return t({
159
163
  mutationFn: async ({ id: e, status: t }) => (await a(`mutation LabTransitionExperiment($id: ID!, $status: LabExperimentStatus!) {
@@ -170,6 +174,27 @@ var a = async (e, t, n) => {
170
174
  ] });
171
175
  }
172
176
  });
177
+ }, k = (t = {}) => {
178
+ let { apiGatewayUrl: r } = e();
179
+ return n({
180
+ queryKey: [
181
+ o,
182
+ "runs",
183
+ t.experimentId ?? null,
184
+ t.status ?? null,
185
+ t.pagination ?? null
186
+ ],
187
+ queryFn: async () => (await a(`query LabRuns($experimentId: ID, $status: LabRunStatus, $pagination: PaginationInput) {
188
+ labListRuns(experimentId: $experimentId, status: $status, pagination: $pagination) {
189
+ items { ${l} }
190
+ pageInfo { cursor hasMore }
191
+ }
192
+ }`, {
193
+ experimentId: t.experimentId,
194
+ status: t.status,
195
+ pagination: t.pagination
196
+ }, r)).labListRuns
197
+ });
173
198
  }, A = () => {
174
199
  let n = r(), { apiGatewayUrl: i } = e();
175
200
  return t({
@@ -187,13 +212,19 @@ var a = async (e, t, n) => {
187
212
  }, j = () => {
188
213
  let n = r(), { apiGatewayUrl: i } = e();
189
214
  return t({
190
- mutationFn: async ({ id: e, status: t, notes: n }) => (await a(`mutation LabCompleteRun($id: ID!, $status: LabRunStatus!, $input: LabRecordRunResultsInput) {
215
+ mutationFn: async ({ id: e, status: t, notes: n, observations: r }) => {
216
+ let o = !!n, s = r != null, c = o || s ? {
217
+ ...o ? { notes: n } : {},
218
+ ...s ? { observations: r } : {}
219
+ } : void 0;
220
+ return (await a(`mutation LabCompleteRun($id: ID!, $status: LabRunStatus!, $input: LabRecordRunResultsInput) {
191
221
  labCompleteRun(id: $id, status: $status, input: $input) { ${l} }
192
222
  }`, {
193
- id: e,
194
- status: t,
195
- input: n ? { notes: n } : void 0
196
- }, i)).labCompleteRun,
223
+ id: e,
224
+ status: t,
225
+ input: c
226
+ }, i)).labCompleteRun;
227
+ },
197
228
  onSuccess: (e) => {
198
229
  n.invalidateQueries({ queryKey: [o, "runs"] }), n.invalidateQueries({ queryKey: [
199
230
  o,
@@ -211,10 +242,11 @@ var a = async (e, t, n) => {
211
242
  t.projectId ?? null,
212
243
  t.experimentId ?? null,
213
244
  t.status ?? null,
245
+ t.search ?? null,
214
246
  t.pagination ?? null
215
247
  ],
216
- queryFn: async () => (await a(`query LabNotebookEntries($projectId: ID, $experimentId: ID, $status: LabNotebookEntryStatus, $pagination: PaginationInput) {
217
- labListNotebookEntries(projectId: $projectId, experimentId: $experimentId, status: $status, pagination: $pagination) {
248
+ queryFn: async () => (await a(`query LabNotebookEntries($projectId: ID, $experimentId: ID, $status: LabNotebookEntryStatus, $search: String, $pagination: PaginationInput) {
249
+ labListNotebookEntries(projectId: $projectId, experimentId: $experimentId, status: $status, search: $search, pagination: $pagination) {
218
250
  items { ${u} }
219
251
  pageInfo { cursor hasMore }
220
252
  }
@@ -222,10 +254,27 @@ var a = async (e, t, n) => {
222
254
  projectId: t.projectId,
223
255
  experimentId: t.experimentId,
224
256
  status: t.status,
257
+ search: t.search || void 0,
225
258
  pagination: t.pagination
226
259
  }, r)).labListNotebookEntries
227
260
  });
228
- }, N = () => {
261
+ }, N = (t) => {
262
+ let { apiGatewayUrl: r } = e();
263
+ return n({
264
+ queryKey: [
265
+ o,
266
+ "notebook-entry",
267
+ t
268
+ ],
269
+ queryFn: async () => (await a(`query LabNotebookEntry($id: ID!) {
270
+ labNotebookEntry(id: $id) {
271
+ ${u}
272
+ files { id }
273
+ }
274
+ }`, { id: t }, r)).labNotebookEntry,
275
+ enabled: !!t
276
+ });
277
+ }, P = () => {
229
278
  let n = r(), { apiGatewayUrl: i } = e();
230
279
  return t({
231
280
  mutationFn: async (e) => (await a(`mutation LabCreateNotebookEntry($input: LabCreateNotebookEntryInput!) {
@@ -235,36 +284,56 @@ var a = async (e, t, n) => {
235
284
  n.invalidateQueries({ queryKey: [o, "notebook"] });
236
285
  }
237
286
  });
238
- }, P = () => {
287
+ }, F = () => {
239
288
  let n = r(), { apiGatewayUrl: i } = e();
240
289
  return t({
241
290
  mutationFn: async (e) => (await a(`mutation LabSignNotebookEntry($id: ID!) {
242
291
  labSignNotebookEntry(id: $id) { ${u} }
243
292
  }`, { id: e }, i)).labSignNotebookEntry,
244
- onSuccess: () => {
245
- n.invalidateQueries({ queryKey: [o, "notebook"] });
293
+ onSuccess: (e) => {
294
+ n.invalidateQueries({ queryKey: [o, "notebook"] }), n.invalidateQueries({ queryKey: [
295
+ o,
296
+ "notebook-entry",
297
+ e.id
298
+ ] });
299
+ }
300
+ });
301
+ }, I = () => {
302
+ let n = r(), { apiGatewayUrl: i } = e();
303
+ return t({
304
+ mutationFn: async (e) => (await a(`mutation LabWitnessNotebookEntry($id: ID!) {
305
+ labWitnessNotebookEntry(id: $id) { ${u} }
306
+ }`, { id: e }, i)).labWitnessNotebookEntry,
307
+ onSuccess: (e) => {
308
+ n.invalidateQueries({ queryKey: [o, "notebook"] }), n.invalidateQueries({ queryKey: [
309
+ o,
310
+ "notebook-entry",
311
+ e.id
312
+ ] });
246
313
  }
247
314
  });
248
- }, F = (t = {}) => {
315
+ }, L = (t = {}) => {
249
316
  let { apiGatewayUrl: r } = e();
250
317
  return n({
251
318
  queryKey: [
252
319
  o,
253
320
  "protocols",
254
321
  t.status ?? null,
322
+ t.search ?? null,
255
323
  t.pagination ?? null
256
324
  ],
257
- queryFn: async () => (await a(`query LabProtocols($status: LabProtocolStatus, $pagination: PaginationInput) {
258
- labListProtocols(status: $status, pagination: $pagination) {
325
+ queryFn: async () => (await a(`query LabProtocols($status: LabProtocolStatus, $search: String, $pagination: PaginationInput) {
326
+ labListProtocols(status: $status, search: $search, pagination: $pagination) {
259
327
  items { ${d} }
260
328
  pageInfo { cursor hasMore }
261
329
  }
262
330
  }`, {
263
331
  status: t.status,
332
+ search: t.search || void 0,
264
333
  pagination: t.pagination
265
334
  }, r)).labListProtocols
266
335
  });
267
- }, I = (t) => {
336
+ }, R = (t) => {
268
337
  let { apiGatewayUrl: r } = e();
269
338
  return n({
270
339
  queryKey: [
@@ -280,7 +349,7 @@ var a = async (e, t, n) => {
280
349
  }`, { id: t }, r)).labProtocol,
281
350
  enabled: !!t
282
351
  });
283
- }, ee = () => {
352
+ }, z = () => {
284
353
  let n = r(), { apiGatewayUrl: i } = e();
285
354
  return t({
286
355
  mutationFn: async (e) => (await a(`mutation LabCreateProtocol($input: LabCreateProtocolInput!) {
@@ -290,7 +359,24 @@ var a = async (e, t, n) => {
290
359
  n.invalidateQueries({ queryKey: [o, "protocols"] });
291
360
  }
292
361
  });
293
- }, L = () => {
362
+ }, te = () => {
363
+ let n = r(), { apiGatewayUrl: i } = e();
364
+ return t({
365
+ mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateProtocol($id: ID!, $input: LabUpdateProtocolInput!) {
366
+ labUpdateProtocol(id: $id, input: $input) { ${d} }
367
+ }`, {
368
+ id: e,
369
+ input: t
370
+ }, i)).labUpdateProtocol,
371
+ onSuccess: (e) => {
372
+ n.invalidateQueries({ queryKey: [o, "protocols"] }), n.invalidateQueries({ queryKey: [
373
+ o,
374
+ "protocol",
375
+ e.id
376
+ ] });
377
+ }
378
+ });
379
+ }, B = () => {
294
380
  let n = r(), { apiGatewayUrl: i } = e();
295
381
  return t({
296
382
  mutationFn: async (e) => (await a(`mutation LabPublishProtocol($id: ID!) {
@@ -304,7 +390,7 @@ var a = async (e, t, n) => {
304
390
  ] });
305
391
  }
306
392
  });
307
- }, R = () => {
393
+ }, V = () => {
308
394
  let n = r(), { apiGatewayUrl: i } = e();
309
395
  return t({
310
396
  mutationFn: async (e) => (await a(`mutation LabAddProtocolStep($input: LabAddProtocolStepInput!) {
@@ -318,7 +404,7 @@ var a = async (e, t, n) => {
318
404
  ] });
319
405
  }
320
406
  });
321
- }, z = (t = {}) => {
407
+ }, H = (t = {}) => {
322
408
  let { apiGatewayUrl: r } = e();
323
409
  return n({
324
410
  queryKey: [
@@ -326,20 +412,22 @@ var a = async (e, t, n) => {
326
412
  "datasets",
327
413
  t.kind ?? null,
328
414
  t.status ?? null,
415
+ t.search ?? null,
329
416
  t.pagination ?? null
330
417
  ],
331
- queryFn: async () => (await a(`query LabDatasets($kind: LabDatasetKind, $status: LabDatasetStatus, $pagination: PaginationInput) {
332
- labListDatasets(kind: $kind, status: $status, pagination: $pagination) {
418
+ queryFn: async () => (await a(`query LabDatasets($kind: LabDatasetKind, $status: LabDatasetStatus, $search: String, $pagination: PaginationInput) {
419
+ labListDatasets(kind: $kind, status: $status, search: $search, pagination: $pagination) {
333
420
  items { ${p} }
334
421
  pageInfo { cursor hasMore }
335
422
  }
336
423
  }`, {
337
424
  kind: t.kind,
338
425
  status: t.status,
426
+ search: t.search || void 0,
339
427
  pagination: t.pagination
340
428
  }, r)).labListDatasets
341
429
  });
342
- }, B = (t) => {
430
+ }, U = (t) => {
343
431
  let { apiGatewayUrl: r } = e();
344
432
  return n({
345
433
  queryKey: [
@@ -355,7 +443,7 @@ var a = async (e, t, n) => {
355
443
  }`, { id: t }, r)).labDataset,
356
444
  enabled: !!t
357
445
  });
358
- }, V = () => {
446
+ }, W = () => {
359
447
  let n = r(), { apiGatewayUrl: i } = e();
360
448
  return t({
361
449
  mutationFn: async (e) => (await a(`mutation LabCreateDataset($input: LabCreateDatasetInput!) {
@@ -365,7 +453,7 @@ var a = async (e, t, n) => {
365
453
  n.invalidateQueries({ queryKey: [o, "datasets"] });
366
454
  }
367
455
  });
368
- }, H = () => {
456
+ }, G = () => {
369
457
  let n = r(), { apiGatewayUrl: i } = e();
370
458
  return t({
371
459
  mutationFn: async (e) => (await a("mutation LabArchiveDataset($id: ID!) { labArchiveDataset(id: $id) }", { id: e }, i)).labArchiveDataset,
@@ -373,7 +461,7 @@ var a = async (e, t, n) => {
373
461
  n.invalidateQueries({ queryKey: [o, "datasets"] });
374
462
  }
375
463
  });
376
- }, U = () => {
464
+ }, K = () => {
377
465
  let n = r(), { apiGatewayUrl: i } = e();
378
466
  return t({
379
467
  mutationFn: async (e) => (await a(`mutation LabAddDatasetVersion($input: LabAddDatasetVersionInput!) {
@@ -387,7 +475,7 @@ var a = async (e, t, n) => {
387
475
  ] });
388
476
  }
389
477
  });
390
- }, W = () => {
478
+ }, q = () => {
391
479
  let { apiGatewayUrl: t } = e();
392
480
  return n({
393
481
  queryKey: [o, "pipelines"],
@@ -395,7 +483,7 @@ var a = async (e, t, n) => {
395
483
  labListPipelines { ${h} }
396
484
  }`, {}, t)).labListPipelines
397
485
  });
398
- }, G = () => {
486
+ }, J = () => {
399
487
  let n = r(), { apiGatewayUrl: i } = e();
400
488
  return t({
401
489
  mutationFn: async (e) => (await a(`mutation LabCreatePipeline($input: LabCreatePipelineInput!) {
@@ -405,7 +493,7 @@ var a = async (e, t, n) => {
405
493
  n.invalidateQueries({ queryKey: [o, "pipelines"] });
406
494
  }
407
495
  });
408
- }, K = (t = {}) => {
496
+ }, Y = (t = {}) => {
409
497
  let { apiGatewayUrl: r } = e();
410
498
  return n({
411
499
  queryKey: [
@@ -429,7 +517,7 @@ var a = async (e, t, n) => {
429
517
  pagination: t.pagination
430
518
  }, r)).labListPipelineRuns
431
519
  });
432
- }, q = () => {
520
+ }, X = () => {
433
521
  let n = r(), { apiGatewayUrl: i } = e();
434
522
  return t({
435
523
  mutationFn: async (e) => (await a(`mutation LabRunPipeline($input: LabRunPipelineInput!) {
@@ -439,7 +527,7 @@ var a = async (e, t, n) => {
439
527
  n.invalidateQueries({ queryKey: [o, "pipeline-runs"] });
440
528
  }
441
529
  });
442
- }, J = () => {
530
+ }, Z = () => {
443
531
  let n = r(), { apiGatewayUrl: i } = e();
444
532
  return t({
445
533
  mutationFn: async ({ id: e, status: t, log: n }) => (await a(`mutation LabTransitionPipelineRun($id: ID!, $status: LabPipelineRunStatus!, $log: String) {
@@ -453,7 +541,7 @@ var a = async (e, t, n) => {
453
541
  n.invalidateQueries({ queryKey: [o, "pipeline-runs"] });
454
542
  }
455
543
  });
456
- }, Y = (t = {}) => {
544
+ }, Q = (t = {}) => {
457
545
  let { apiGatewayUrl: r } = e();
458
546
  return n({
459
547
  queryKey: [
@@ -461,20 +549,22 @@ var a = async (e, t, n) => {
461
549
  "inventory",
462
550
  t.category ?? null,
463
551
  t.status ?? null,
552
+ t.search ?? null,
464
553
  t.pagination ?? null
465
554
  ],
466
- queryFn: async () => (await a(`query LabInventory($category: LabInventoryCategory, $status: LabInventoryStatus, $pagination: PaginationInput) {
467
- labListInventoryItems(category: $category, status: $status, pagination: $pagination) {
555
+ queryFn: async () => (await a(`query LabInventory($category: LabInventoryCategory, $status: LabInventoryStatus, $search: String, $pagination: PaginationInput) {
556
+ labListInventoryItems(category: $category, status: $status, search: $search, pagination: $pagination) {
468
557
  items { ${_} }
469
558
  pageInfo { cursor hasMore }
470
559
  }
471
560
  }`, {
472
561
  category: t.category,
473
562
  status: t.status,
563
+ search: t.search || void 0,
474
564
  pagination: t.pagination
475
565
  }, r)).labListInventoryItems
476
566
  });
477
- }, X = (t) => {
567
+ }, ne = (t) => {
478
568
  let { apiGatewayUrl: r } = e();
479
569
  return n({
480
570
  queryKey: [
@@ -487,7 +577,7 @@ var a = async (e, t, n) => {
487
577
  }`, { id: t }, r)).labInventoryItem,
488
578
  enabled: !!t
489
579
  });
490
- }, Z = () => {
580
+ }, re = () => {
491
581
  let n = r(), { apiGatewayUrl: i } = e();
492
582
  return t({
493
583
  mutationFn: async (e) => (await a(`mutation LabCreateInventoryItem($input: LabCreateInventoryItemInput!) {
@@ -497,7 +587,7 @@ var a = async (e, t, n) => {
497
587
  n.invalidateQueries({ queryKey: [o, "inventory"] });
498
588
  }
499
589
  });
500
- }, Q = () => {
590
+ }, ie = () => {
501
591
  let n = r(), { apiGatewayUrl: i } = e();
502
592
  return t({
503
593
  mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabAdjustInventory($id: ID!, $input: LabAdjustInventoryInput!) {
@@ -514,7 +604,7 @@ var a = async (e, t, n) => {
514
604
  ] });
515
605
  }
516
606
  });
517
- }, $ = () => {
607
+ }, ae = () => {
518
608
  let n = r(), { apiGatewayUrl: i } = e();
519
609
  return t({
520
610
  mutationFn: async (e) => (await a("mutation LabArchiveInventoryItem($id: ID!) { labArchiveInventoryItem(id: $id) }", { id: e }, i)).labArchiveInventoryItem,
@@ -522,19 +612,23 @@ var a = async (e, t, n) => {
522
612
  n.invalidateQueries({ queryKey: [o, "inventory"] });
523
613
  }
524
614
  });
525
- }, te = (t = {}) => {
615
+ }, oe = (t = {}) => {
526
616
  let { apiGatewayUrl: r } = e();
527
617
  return n({
528
618
  queryKey: [
529
619
  o,
530
620
  "instruments",
531
- t.status ?? null
621
+ t.status ?? null,
622
+ t.search ?? null
532
623
  ],
533
- queryFn: async () => (await a(`query LabInstruments($status: LabInstrumentStatus) {
534
- labListInstruments(status: $status) { ${v} }
535
- }`, { status: t.status }, r)).labListInstruments
624
+ queryFn: async () => (await a(`query LabInstruments($status: LabInstrumentStatus, $search: String) {
625
+ labListInstruments(status: $status, search: $search) { ${v} }
626
+ }`, {
627
+ status: t.status,
628
+ search: t.search || void 0
629
+ }, r)).labListInstruments
536
630
  });
537
- }, ne = (t) => {
631
+ }, $ = (t) => {
538
632
  let { apiGatewayUrl: r } = e();
539
633
  return n({
540
634
  queryKey: [
@@ -550,7 +644,7 @@ var a = async (e, t, n) => {
550
644
  }`, { id: t }, r)).labInstrument,
551
645
  enabled: !!t
552
646
  });
553
- }, re = () => {
647
+ }, se = () => {
554
648
  let n = r(), { apiGatewayUrl: i } = e();
555
649
  return t({
556
650
  mutationFn: async (e) => (await a(`mutation LabCreateInstrument($input: LabCreateInstrumentInput!) {
@@ -560,7 +654,7 @@ var a = async (e, t, n) => {
560
654
  n.invalidateQueries({ queryKey: [o, "instruments"] });
561
655
  }
562
656
  });
563
- }, ie = () => {
657
+ }, ce = () => {
564
658
  let n = r(), { apiGatewayUrl: i } = e();
565
659
  return t({
566
660
  mutationFn: async (e) => (await a(`mutation LabBookInstrument($input: LabBookInstrumentInput!) {
@@ -574,7 +668,7 @@ var a = async (e, t, n) => {
574
668
  ] });
575
669
  }
576
670
  });
577
- }, ae = () => {
671
+ }, le = () => {
578
672
  let n = r(), { apiGatewayUrl: i } = e();
579
673
  return t({
580
674
  mutationFn: async (e) => (await a("mutation LabCancelBooking($id: ID!) {\n labCancelBooking(id: $id) { id status instrumentId }\n }", { id: e }, i)).labCancelBooking,
@@ -588,6 +682,6 @@ var a = async (e, t, n) => {
588
682
  });
589
683
  };
590
684
  //#endregion
591
- export { U as useAddDatasetVersion, R as useAddProtocolStep, Q as useAdjustInventory, H as useArchiveDataset, $ as useArchiveInventoryItem, w as useArchiveProject, ie as useBookInstrument, ae as useCancelBooking, j as useCompleteRun, V as useCreateDataset, D as useCreateExperiment, re as useCreateInstrument, Z as useCreateInventoryItem, N as useCreateNotebookEntry, G as useCreatePipeline, S as useCreateProject, ee as useCreateProtocol, B as useDataset, z as useDatasets, E as useExperiment, T as useExperiments, ne as useInstrument, te as useInstruments, X as useInventoryItem, Y as useInventoryItems, M as useNotebookEntries, K as usePipelineRuns, W as usePipelines, x as useProject, b as useProjects, I as useProtocol, F as useProtocols, L as usePublishProtocol, q as useRunPipeline, P as useSignNotebookEntry, A as useStartRun, k as useTransitionExperiment, J as useTransitionPipelineRun, O as useUpdateExperiment, C as useUpdateProject };
685
+ 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 };
592
686
 
593
687
  //# sourceMappingURL=useLabsOfScienceApi.js.map