@burdenoff/microfe-labsofscience 2026.801.2 → 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.
- package/dist/generated/wspace-types.d.ts +68885 -33499
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/labsofscience/LabsOfScienceRoot.d.ts.map +1 -1
- package/dist/labsofscience/LabsOfScienceRoot.js +57 -49
- package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
- package/dist/labsofscience/LabsOfScienceRoutes.d.ts.map +1 -1
- package/dist/labsofscience/LabsOfScienceRoutes.js +10 -6
- package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
- package/dist/labsofscience/components/BottomNav.d.ts.map +1 -1
- package/dist/labsofscience/components/BottomNav.js +36 -30
- package/dist/labsofscience/components/BottomNav.js.map +1 -1
- package/dist/labsofscience/components/StatusBadge.d.ts.map +1 -1
- package/dist/labsofscience/components/StatusBadge.js +10 -1
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/hooks/index.d.ts +1 -1
- package/dist/labsofscience/hooks/index.d.ts.map +1 -1
- package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts +82 -1
- package/dist/labsofscience/hooks/useLabsOfScienceApi.d.ts.map +1 -1
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js +326 -199
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
- package/dist/labsofscience/pages/ai/AiDialogs.d.ts +20 -0
- package/dist/labsofscience/pages/ai/AiDialogs.d.ts.map +1 -0
- package/dist/labsofscience/pages/ai/AiDialogs.js +566 -0
- package/dist/labsofscience/pages/ai/AiDialogs.js.map +1 -0
- package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts +20 -0
- package/dist/labsofscience/pages/ai/AiErrorNotice.d.ts.map +1 -0
- package/dist/labsofscience/pages/ai/AiErrorNotice.js +67 -0
- package/dist/labsofscience/pages/ai/AiErrorNotice.js.map +1 -0
- package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts +29 -0
- package/dist/labsofscience/pages/ai/AiOperationsPage.d.ts.map +1 -0
- package/dist/labsofscience/pages/ai/AiOperationsPage.js +196 -0
- package/dist/labsofscience/pages/ai/AiOperationsPage.js.map +1 -0
- package/dist/labsofscience/pages/ai/DecisionCard.d.ts +9 -0
- package/dist/labsofscience/pages/ai/DecisionCard.d.ts.map +1 -0
- package/dist/labsofscience/pages/ai/DecisionCard.js +282 -0
- package/dist/labsofscience/pages/ai/DecisionCard.js.map +1 -0
- package/dist/labsofscience/pages/ai/ModelSettings.d.ts +20 -0
- package/dist/labsofscience/pages/ai/ModelSettings.d.ts.map +1 -0
- package/dist/labsofscience/pages/ai/ModelSettings.js +141 -0
- package/dist/labsofscience/pages/ai/ModelSettings.js.map +1 -0
- package/dist/labsofscience/pages/ai/aiReaders.d.ts +82 -0
- package/dist/labsofscience/pages/ai/aiReaders.d.ts.map +1 -0
- package/dist/labsofscience/pages/ai/aiReaders.js +86 -0
- package/dist/labsofscience/pages/ai/aiReaders.js.map +1 -0
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +18 -18
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +6 -6
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +14 -14
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +6 -6
- package/dist/labsofscience/pages/projects/ProjectDetailPage.js +16 -16
- package/dist/labsofscience/pages/projects/ProjectsListPage.js +6 -6
- package/dist/labsofscience/types/index.d.ts +133 -2
- package/dist/labsofscience/types/index.d.ts.map +1 -1
- 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 =
|
|
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)
|
|
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
|
-
},
|
|
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
|
-
|
|
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
|
|
36
|
+
queryFn: async () => (await o(`query LabProjects($status: LabProjectStatus, $search: String, $pagination: PaginationInput) {
|
|
28
37
|
labListProjects(status: $status, search: $search, pagination: $pagination) {
|
|
29
|
-
items { ${
|
|
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
|
-
},
|
|
47
|
+
}, C = (t) => {
|
|
39
48
|
let { apiGatewayUrl: r } = e();
|
|
40
49
|
return n({
|
|
41
50
|
queryKey: [
|
|
42
|
-
|
|
51
|
+
s,
|
|
43
52
|
"project",
|
|
44
53
|
t
|
|
45
54
|
],
|
|
46
|
-
queryFn: async () => (await
|
|
55
|
+
queryFn: async () => (await o(`query LabProject($id: ID!) {
|
|
47
56
|
labProject(id: $id) {
|
|
48
|
-
${
|
|
49
|
-
experiments { ${
|
|
57
|
+
${c}
|
|
58
|
+
experiments { ${l} }
|
|
50
59
|
}
|
|
51
60
|
}`, { id: t }, r)).labProject,
|
|
52
61
|
enabled: !!t
|
|
53
62
|
});
|
|
54
|
-
},
|
|
63
|
+
}, w = () => {
|
|
55
64
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
56
65
|
return t({
|
|
57
|
-
mutationFn: async (e) => (await
|
|
58
|
-
labCreateProject(input: $input) { ${
|
|
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: [
|
|
70
|
+
n.invalidateQueries({ queryKey: [s, "projects"] });
|
|
62
71
|
}
|
|
63
72
|
});
|
|
64
|
-
},
|
|
73
|
+
}, T = () => {
|
|
65
74
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
66
75
|
return t({
|
|
67
|
-
mutationFn: async ({ id: e, input: t }) => (await
|
|
68
|
-
labUpdateProject(id: $id, input: $input) { ${
|
|
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: [
|
|
75
|
-
|
|
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
|
-
},
|
|
90
|
+
}, E = () => {
|
|
82
91
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
83
92
|
return t({
|
|
84
|
-
mutationFn: async (e) => (await
|
|
93
|
+
mutationFn: async (e) => (await o("mutation LabArchiveProject($id: ID!) { labArchiveProject(id: $id) }", { id: e }, i)).labArchiveProject,
|
|
85
94
|
onSuccess: () => {
|
|
86
|
-
n.invalidateQueries({ queryKey: [
|
|
95
|
+
n.invalidateQueries({ queryKey: [s, "projects"] });
|
|
87
96
|
}
|
|
88
97
|
});
|
|
89
|
-
},
|
|
98
|
+
}, D = (t = {}) => {
|
|
90
99
|
let { apiGatewayUrl: r } = e();
|
|
91
100
|
return n({
|
|
92
101
|
queryKey: [
|
|
93
|
-
|
|
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
|
|
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 { ${
|
|
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
|
-
},
|
|
121
|
+
}, O = (t) => {
|
|
113
122
|
let { apiGatewayUrl: r } = e();
|
|
114
123
|
return n({
|
|
115
124
|
queryKey: [
|
|
116
|
-
|
|
125
|
+
s,
|
|
117
126
|
"experiment",
|
|
118
127
|
t
|
|
119
128
|
],
|
|
120
|
-
queryFn: async () => (await
|
|
129
|
+
queryFn: async () => (await o(`query LabExperiment($id: ID!) {
|
|
121
130
|
labExperiment(id: $id) {
|
|
122
|
-
${
|
|
123
|
-
project { ${
|
|
124
|
-
runs { ${
|
|
131
|
+
${l}
|
|
132
|
+
project { ${c} }
|
|
133
|
+
runs { ${u} }
|
|
125
134
|
}
|
|
126
135
|
}`, { id: t }, r)).labExperiment,
|
|
127
136
|
enabled: !!t
|
|
128
137
|
});
|
|
129
|
-
},
|
|
138
|
+
}, k = () => {
|
|
130
139
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
131
140
|
return t({
|
|
132
|
-
mutationFn: async (e) => (await
|
|
133
|
-
labCreateExperiment(input: $input) { ${
|
|
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: [
|
|
137
|
-
|
|
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
|
-
},
|
|
152
|
+
}, A = () => {
|
|
144
153
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
145
154
|
return t({
|
|
146
|
-
mutationFn: async ({ id: e, input: t }) => (await
|
|
147
|
-
labUpdateExperiment(id: $id, input: $input) { ${
|
|
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: [
|
|
154
|
-
|
|
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
|
-
},
|
|
169
|
+
}, j = () => {
|
|
161
170
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
162
171
|
return t({
|
|
163
|
-
mutationFn: async ({ id: e, status: t }) => (await
|
|
164
|
-
labTransitionExperiment(id: $id, status: $status) { ${
|
|
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: [
|
|
171
|
-
|
|
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
|
-
},
|
|
186
|
+
}, M = (t = {}) => {
|
|
178
187
|
let { apiGatewayUrl: r } = e();
|
|
179
188
|
return n({
|
|
180
189
|
queryKey: [
|
|
181
|
-
|
|
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
|
|
196
|
+
queryFn: async () => (await o(`query LabRuns($experimentId: ID, $status: LabRunStatus, $pagination: PaginationInput) {
|
|
188
197
|
labListRuns(experimentId: $experimentId, status: $status, pagination: $pagination) {
|
|
189
|
-
items { ${
|
|
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
|
-
},
|
|
207
|
+
}, N = () => {
|
|
199
208
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
200
209
|
return t({
|
|
201
|
-
mutationFn: async (e) => (await
|
|
202
|
-
labStartRun(input: $input) { ${
|
|
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: [
|
|
206
|
-
|
|
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
|
-
},
|
|
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
|
|
217
|
-
...
|
|
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
|
|
221
|
-
labCompleteRun(id: $id, status: $status, input: $input) { ${
|
|
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: [
|
|
230
|
-
|
|
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
|
-
},
|
|
245
|
+
}, F = (t = {}) => {
|
|
237
246
|
let { apiGatewayUrl: r } = e();
|
|
238
247
|
return n({
|
|
239
248
|
queryKey: [
|
|
240
|
-
|
|
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
|
|
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 { ${
|
|
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
|
-
},
|
|
270
|
+
}, I = (t) => {
|
|
262
271
|
let { apiGatewayUrl: r } = e();
|
|
263
272
|
return n({
|
|
264
273
|
queryKey: [
|
|
265
|
-
|
|
274
|
+
s,
|
|
266
275
|
"notebook-entry",
|
|
267
276
|
t
|
|
268
277
|
],
|
|
269
|
-
queryFn: async () => (await
|
|
278
|
+
queryFn: async () => (await o(`query LabNotebookEntry($id: ID!) {
|
|
270
279
|
labNotebookEntry(id: $id) {
|
|
271
|
-
${
|
|
280
|
+
${d}
|
|
272
281
|
files { id }
|
|
273
282
|
}
|
|
274
283
|
}`, { id: t }, r)).labNotebookEntry,
|
|
275
284
|
enabled: !!t
|
|
276
285
|
});
|
|
277
|
-
},
|
|
286
|
+
}, L = () => {
|
|
278
287
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
279
288
|
return t({
|
|
280
|
-
mutationFn: async (e) => (await
|
|
281
|
-
labCreateNotebookEntry(input: $input) { ${
|
|
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: [
|
|
293
|
+
n.invalidateQueries({ queryKey: [s, "notebook"] });
|
|
285
294
|
}
|
|
286
295
|
});
|
|
287
|
-
},
|
|
296
|
+
}, R = () => {
|
|
288
297
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
289
298
|
return t({
|
|
290
|
-
mutationFn: async (e) => (await
|
|
291
|
-
labSignNotebookEntry(id: $id) { ${
|
|
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: [
|
|
295
|
-
|
|
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
|
-
},
|
|
310
|
+
}, z = () => {
|
|
302
311
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
303
312
|
return t({
|
|
304
|
-
mutationFn: async (e) => (await
|
|
305
|
-
labWitnessNotebookEntry(id: $id) { ${
|
|
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: [
|
|
309
|
-
|
|
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
|
-
},
|
|
324
|
+
}, B = (t = {}) => {
|
|
316
325
|
let { apiGatewayUrl: r } = e();
|
|
317
326
|
return n({
|
|
318
327
|
queryKey: [
|
|
319
|
-
|
|
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
|
|
334
|
+
queryFn: async () => (await o(`query LabProtocols($status: LabProtocolStatus, $search: String, $pagination: PaginationInput) {
|
|
326
335
|
labListProtocols(status: $status, search: $search, pagination: $pagination) {
|
|
327
|
-
items { ${
|
|
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
|
-
},
|
|
345
|
+
}, V = (t) => {
|
|
337
346
|
let { apiGatewayUrl: r } = e();
|
|
338
347
|
return n({
|
|
339
348
|
queryKey: [
|
|
340
|
-
|
|
349
|
+
s,
|
|
341
350
|
"protocol",
|
|
342
351
|
t
|
|
343
352
|
],
|
|
344
|
-
queryFn: async () => (await
|
|
353
|
+
queryFn: async () => (await o(`query LabProtocol($id: ID!) {
|
|
345
354
|
labProtocol(id: $id) {
|
|
346
|
-
${
|
|
347
|
-
steps { ${
|
|
355
|
+
${f}
|
|
356
|
+
steps { ${p} }
|
|
348
357
|
}
|
|
349
358
|
}`, { id: t }, r)).labProtocol,
|
|
350
359
|
enabled: !!t
|
|
351
360
|
});
|
|
352
|
-
},
|
|
361
|
+
}, H = () => {
|
|
353
362
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
354
363
|
return t({
|
|
355
|
-
mutationFn: async (e) => (await
|
|
356
|
-
labCreateProtocol(input: $input) { ${
|
|
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: [
|
|
368
|
+
n.invalidateQueries({ queryKey: [s, "protocols"] });
|
|
360
369
|
}
|
|
361
370
|
});
|
|
362
|
-
},
|
|
371
|
+
}, U = () => {
|
|
363
372
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
364
373
|
return t({
|
|
365
|
-
mutationFn: async ({ id: e, input: t }) => (await
|
|
366
|
-
labUpdateProtocol(id: $id, input: $input) { ${
|
|
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: [
|
|
373
|
-
|
|
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
|
-
},
|
|
388
|
+
}, W = () => {
|
|
380
389
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
381
390
|
return t({
|
|
382
|
-
mutationFn: async (e) => (await
|
|
383
|
-
labPublishProtocol(id: $id) { ${
|
|
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: [
|
|
387
|
-
|
|
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
|
-
},
|
|
402
|
+
}, G = () => {
|
|
394
403
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
395
404
|
return t({
|
|
396
|
-
mutationFn: async (e) => (await
|
|
397
|
-
labAddProtocolStep(input: $input) { ${
|
|
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: [
|
|
401
|
-
|
|
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
|
-
},
|
|
416
|
+
}, te = (t = {}) => {
|
|
408
417
|
let { apiGatewayUrl: r } = e();
|
|
409
418
|
return n({
|
|
410
419
|
queryKey: [
|
|
411
|
-
|
|
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
|
|
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 { ${
|
|
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
|
-
},
|
|
439
|
+
}, K = (t) => {
|
|
431
440
|
let { apiGatewayUrl: r } = e();
|
|
432
441
|
return n({
|
|
433
442
|
queryKey: [
|
|
434
|
-
|
|
443
|
+
s,
|
|
435
444
|
"dataset",
|
|
436
445
|
t
|
|
437
446
|
],
|
|
438
|
-
queryFn: async () => (await
|
|
447
|
+
queryFn: async () => (await o(`query LabDataset($id: ID!) {
|
|
439
448
|
labDataset(id: $id) {
|
|
440
|
-
${
|
|
441
|
-
versions { ${
|
|
449
|
+
${m}
|
|
450
|
+
versions { ${h} }
|
|
442
451
|
}
|
|
443
452
|
}`, { id: t }, r)).labDataset,
|
|
444
453
|
enabled: !!t
|
|
445
454
|
});
|
|
446
|
-
},
|
|
455
|
+
}, q = () => {
|
|
447
456
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
448
457
|
return t({
|
|
449
|
-
mutationFn: async (e) => (await
|
|
450
|
-
labCreateDataset(input: $input) { ${
|
|
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: [
|
|
462
|
+
n.invalidateQueries({ queryKey: [s, "datasets"] });
|
|
454
463
|
}
|
|
455
464
|
});
|
|
456
|
-
},
|
|
465
|
+
}, J = () => {
|
|
457
466
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
458
467
|
return t({
|
|
459
|
-
mutationFn: async (e) => (await
|
|
468
|
+
mutationFn: async (e) => (await o("mutation LabArchiveDataset($id: ID!) { labArchiveDataset(id: $id) }", { id: e }, i)).labArchiveDataset,
|
|
460
469
|
onSuccess: () => {
|
|
461
|
-
n.invalidateQueries({ queryKey: [
|
|
470
|
+
n.invalidateQueries({ queryKey: [s, "datasets"] });
|
|
462
471
|
}
|
|
463
472
|
});
|
|
464
|
-
},
|
|
473
|
+
}, Y = () => {
|
|
465
474
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
466
475
|
return t({
|
|
467
|
-
mutationFn: async (e) => (await
|
|
468
|
-
labAddDatasetVersion(input: $input) { ${
|
|
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: [
|
|
472
|
-
|
|
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
|
-
},
|
|
487
|
+
}, X = (t = {}) => {
|
|
479
488
|
let { apiGatewayUrl: r } = e();
|
|
480
489
|
return n({
|
|
481
490
|
queryKey: [
|
|
482
|
-
|
|
491
|
+
s,
|
|
483
492
|
"pipelines",
|
|
484
493
|
t.pagination ?? null
|
|
485
494
|
],
|
|
486
|
-
queryFn: async () => (await
|
|
495
|
+
queryFn: async () => (await o(`query LabPipelines($pagination: PaginationInput) {
|
|
487
496
|
labListPipelines(pagination: $pagination) {
|
|
488
|
-
items { ${
|
|
497
|
+
items { ${g} }
|
|
489
498
|
pageInfo { cursor hasMore }
|
|
490
499
|
}
|
|
491
500
|
}`, { pagination: t.pagination }, r)).labListPipelines
|
|
492
501
|
});
|
|
493
|
-
},
|
|
502
|
+
}, Z = () => {
|
|
494
503
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
495
504
|
return t({
|
|
496
|
-
mutationFn: async (e) => (await
|
|
497
|
-
labCreatePipeline(input: $input) { ${
|
|
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: [
|
|
509
|
+
n.invalidateQueries({ queryKey: [s, "pipelines"] });
|
|
501
510
|
}
|
|
502
511
|
});
|
|
503
|
-
},
|
|
512
|
+
}, Q = (t = {}) => {
|
|
504
513
|
let { apiGatewayUrl: r } = e();
|
|
505
514
|
return n({
|
|
506
515
|
queryKey: [
|
|
507
|
-
|
|
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
|
|
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
|
-
${
|
|
517
|
-
pipeline { ${
|
|
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
|
-
},
|
|
536
|
+
}, ne = () => {
|
|
528
537
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
529
538
|
return t({
|
|
530
|
-
mutationFn: async (e) => (await
|
|
531
|
-
labRunPipeline(input: $input) { ${
|
|
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: [
|
|
543
|
+
n.invalidateQueries({ queryKey: [s, "pipeline-runs"] });
|
|
535
544
|
}
|
|
536
545
|
});
|
|
537
|
-
},
|
|
546
|
+
}, re = () => {
|
|
538
547
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
539
548
|
return t({
|
|
540
|
-
mutationFn: async ({ id: e, status: t, log: n }) => (await
|
|
541
|
-
labTransitionPipelineRun(id: $id, status: $status, log: $log) { ${
|
|
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: [
|
|
557
|
+
n.invalidateQueries({ queryKey: [s, "pipeline-runs"] });
|
|
549
558
|
}
|
|
550
559
|
});
|
|
551
|
-
},
|
|
560
|
+
}, ie = (t = {}) => {
|
|
552
561
|
let { apiGatewayUrl: r } = e();
|
|
553
562
|
return n({
|
|
554
563
|
queryKey: [
|
|
555
|
-
|
|
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
|
|
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
|
-
},
|
|
583
|
+
}, ae = (t) => {
|
|
575
584
|
let { apiGatewayUrl: r } = e();
|
|
576
585
|
return n({
|
|
577
586
|
queryKey: [
|
|
578
|
-
|
|
587
|
+
s,
|
|
579
588
|
"inventory-item",
|
|
580
589
|
t
|
|
581
590
|
],
|
|
582
|
-
queryFn: async () => (await
|
|
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
|
-
},
|
|
596
|
+
}, oe = () => {
|
|
588
597
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
589
598
|
return t({
|
|
590
|
-
mutationFn: async (e) => (await
|
|
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: [
|
|
603
|
+
n.invalidateQueries({ queryKey: [s, "inventory"] });
|
|
595
604
|
}
|
|
596
605
|
});
|
|
597
|
-
},
|
|
606
|
+
}, se = () => {
|
|
598
607
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
599
608
|
return t({
|
|
600
|
-
mutationFn: async ({ id: e, input: t }) => (await
|
|
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: [
|
|
608
|
-
|
|
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
|
-
},
|
|
623
|
+
}, ce = () => {
|
|
615
624
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
616
625
|
return t({
|
|
617
|
-
mutationFn: async (e) => (await
|
|
626
|
+
mutationFn: async (e) => (await o("mutation LabArchiveInventoryItem($id: ID!) { labArchiveInventoryItem(id: $id) }", { id: e }, i)).labArchiveInventoryItem,
|
|
618
627
|
onSuccess: () => {
|
|
619
|
-
n.invalidateQueries({ queryKey: [
|
|
628
|
+
n.invalidateQueries({ queryKey: [s, "inventory"] });
|
|
620
629
|
}
|
|
621
630
|
});
|
|
622
|
-
},
|
|
631
|
+
}, le = (t = {}) => {
|
|
623
632
|
let { apiGatewayUrl: r } = e();
|
|
624
633
|
return n({
|
|
625
634
|
queryKey: [
|
|
626
|
-
|
|
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
|
|
641
|
+
queryFn: async () => (await o(`query LabInstruments($status: LabInstrumentStatus, $search: String, $pagination: PaginationInput) {
|
|
633
642
|
labListInstruments(status: $status, search: $search, pagination: $pagination) {
|
|
634
|
-
items { ${
|
|
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
|
-
},
|
|
652
|
+
}, ue = (t) => {
|
|
644
653
|
let { apiGatewayUrl: r } = e();
|
|
645
654
|
return n({
|
|
646
655
|
queryKey: [
|
|
647
|
-
|
|
656
|
+
s,
|
|
648
657
|
"instrument",
|
|
649
658
|
t
|
|
650
659
|
],
|
|
651
|
-
queryFn: async () => (await
|
|
660
|
+
queryFn: async () => (await o(`query LabInstrument($id: ID!) {
|
|
652
661
|
labInstrument(id: $id) {
|
|
653
|
-
${
|
|
654
|
-
bookings { ${
|
|
662
|
+
${y}
|
|
663
|
+
bookings { ${b} }
|
|
655
664
|
}
|
|
656
665
|
}`, { id: t }, r)).labInstrument,
|
|
657
666
|
enabled: !!t
|
|
658
667
|
});
|
|
659
|
-
},
|
|
668
|
+
}, de = () => {
|
|
660
669
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
661
670
|
return t({
|
|
662
|
-
mutationFn: async (e) => (await
|
|
663
|
-
labCreateInstrument(input: $input) { ${
|
|
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: [
|
|
675
|
+
n.invalidateQueries({ queryKey: [s, "instruments"] });
|
|
667
676
|
}
|
|
668
677
|
});
|
|
669
|
-
},
|
|
678
|
+
}, fe = () => {
|
|
670
679
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
671
680
|
return t({
|
|
672
|
-
mutationFn: async (e) => (await
|
|
673
|
-
labBookInstrument(input: $input) { ${
|
|
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: [
|
|
677
|
-
|
|
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
|
-
},
|
|
692
|
+
}, pe = () => {
|
|
684
693
|
let n = r(), { apiGatewayUrl: i } = e();
|
|
685
694
|
return t({
|
|
686
|
-
mutationFn: async (e) => (await
|
|
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: [
|
|
689
|
-
|
|
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 {
|
|
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
|