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