@burdenoff/microfe-labsofscience 2026.626.2 → 2026.628.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/index.js +4 -4
- package/dist/labsofscience/LabsOfScienceRoot.js +68 -124
- package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
- package/dist/labsofscience/LabsOfScienceRoutes.js +61 -185
- package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
- package/dist/labsofscience/components/QueryStates.js +40 -0
- package/dist/labsofscience/components/QueryStates.js.map +1 -0
- package/dist/labsofscience/components/StatusBadge.js +40 -23
- package/dist/labsofscience/components/StatusBadge.js.map +1 -1
- package/dist/labsofscience/context/LabsOfScienceContext.js +22 -30
- package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js +500 -172
- package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
- package/dist/labsofscience/pages/OverviewPage.js +195 -0
- package/dist/labsofscience/pages/OverviewPage.js.map +1 -0
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +162 -0
- package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +137 -0
- package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/datasets/DatasetsListPage.js +155 -0
- package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -0
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +220 -0
- package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +170 -0
- package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +134 -0
- package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -0
- package/dist/labsofscience/pages/experiments/RunDialogs.js +180 -0
- package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -0
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +130 -0
- package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +132 -0
- package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +126 -0
- package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -0
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +89 -0
- package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -0
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +138 -0
- package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +211 -0
- package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/inventory/InventoryListPage.js +178 -0
- package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -0
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +118 -0
- package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/notebook/NotebookListPage.js +144 -0
- package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -0
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +146 -0
- package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/pipelines/PipelinesPage.js +212 -0
- package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -0
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +109 -0
- package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -0
- package/dist/labsofscience/pages/projects/ProjectDetailPage.js +174 -0
- package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/projects/ProjectFormDialog.js +169 -0
- package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -0
- package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -0
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +133 -0
- package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -0
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +151 -0
- package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -0
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +140 -0
- package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -0
- package/dist/labsofscience/pages/shared/DetailComponents.js +64 -0
- package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -0
- package/dist/labsofscience/pages/shared/tags.js +16 -0
- package/dist/labsofscience/pages/shared/tags.js.map +1 -0
- package/dist/labsofscience/store/labsofscienceStore.js +6 -11
- package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
- package/dist/labsofscience/utils/formatters.js +28 -13
- package/dist/labsofscience/utils/formatters.js.map +1 -1
- package/package.json +1 -1
- package/dist/labsofscience/components/InvestmentCard.js +0 -98
- package/dist/labsofscience/components/InvestmentCard.js.map +0 -1
- package/dist/labsofscience/components/RatingDisplay.js +0 -35
- package/dist/labsofscience/components/RatingDisplay.js.map +0 -1
- package/dist/labsofscience/mocks/data.js +0 -1517
- package/dist/labsofscience/mocks/data.js.map +0 -1
- package/dist/labsofscience/mocks/users.js +0 -34
- package/dist/labsofscience/mocks/users.js.map +0 -1
- package/dist/labsofscience/pages/HomePage.js +0 -940
- package/dist/labsofscience/pages/HomePage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +0 -651
- package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminDashboard.js +0 -672
- package/dist/labsofscience/pages/admin/AdminDashboard.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js +0 -427
- package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js +0 -665
- package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminProfilePage.js +0 -261
- package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js +0 -651
- package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/CartManagementPage.js +0 -874
- package/dist/labsofscience/pages/admin/CartManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/admin/UserManagementPage.js +0 -898
- package/dist/labsofscience/pages/admin/UserManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +0 -839
- package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +0 -705
- package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +0 -791
- package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +0 -891
- package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +0 -636
- package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +0 -911
- package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +0 -879
- package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +0 -839
- package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +0 -1
- package/dist/labsofscience/pages/common/HelpSupportPage.js +0 -1324
- package/dist/labsofscience/pages/common/HelpSupportPage.js.map +0 -1
- package/dist/labsofscience/pages/common/NotificationCenterPage.js +0 -672
- package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +0 -1
- package/dist/labsofscience/pages/common/SettingsPage.js +0 -973
- package/dist/labsofscience/pages/common/SettingsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js +0 -637
- package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CartDetailPage.js +0 -653
- package/dist/labsofscience/pages/customer/CartDetailPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +0 -559
- package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CheckoutPage.js +0 -530
- package/dist/labsofscience/pages/customer/CheckoutPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/CustomerDashboard.js +0 -531
- package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +0 -1
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js +0 -658
- package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +0 -633
- package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/FavoritesPage.js +0 -484
- package/dist/labsofscience/pages/customer/FavoritesPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js +0 -445
- package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js +0 -425
- package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +0 -495
- package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/ReviewsPage.js +0 -613
- package/dist/labsofscience/pages/customer/ReviewsPage.js.map +0 -1
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js +0 -450
- package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +0 -881
- package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +0 -946
- package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +0 -687
- package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorDashboard.js +0 -455
- package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +0 -406
- package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +0 -575
- package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +0 -1
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js +0 -1070
- package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js +0 -537
- package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerDashboard.js +0 -665
- package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +0 -681
- package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js +0 -692
- package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +0 -1
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +0 -588
- package/dist/labsofscience/pages/worker/WorkerSchedulePage.js.map +0 -1
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { useLabsOfScience as e } from "../context/LabsOfScienceContext.js";
|
|
2
2
|
import "../context/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { graphqlFetch as a } from "@burdenoff/fe-libs/shared/graphql";
|
|
3
|
+
import { useMutation as t, useQuery as n, useQueryClient as r } from "@tanstack/react-query";
|
|
4
|
+
import { graphqlFetch as i } from "@burdenoff/fe-libs/shared/graphql";
|
|
6
5
|
//#region src/labsofscience/hooks/useLabsOfScienceApi.ts
|
|
7
|
-
var
|
|
8
|
-
let r = await
|
|
6
|
+
var a = async (e, t, n) => {
|
|
7
|
+
let r = await i({
|
|
9
8
|
gateway: "workspace",
|
|
10
9
|
baseUrl: n,
|
|
11
10
|
query: e,
|
|
@@ -15,209 +14,538 @@ var o = async (e, t, n) => {
|
|
|
15
14
|
if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
|
|
16
15
|
if (!r.data) throw Error("GraphQL response did not include data");
|
|
17
16
|
return r.data;
|
|
18
|
-
}, s = (t) => {
|
|
19
|
-
let { apiGatewayUrl:
|
|
20
|
-
return
|
|
17
|
+
}, o = "labsofscience", s = "\n id workspaceId name code description field status visibility\n principalInvestigatorId startDate endDate tags createdAt updatedAt\n", c = "\n id workspaceId projectId title description hypothesis status protocolId\n leadResearcherId variables tags createdAt updatedAt\n", l = "\n id workspaceId experimentId runNumber status parameters observations notes\n performedById startedAt completedAt createdAt updatedAt\n", u = "\n id workspaceId projectId experimentId runId title body status authorId\n signedById signedAt witnessedById witnessedAt tags createdAt updatedAt\n", d = "\n id workspaceId name summary status version estimatedMinutes materials\n safetyNotes authorId publishedAt tags createdAt updatedAt\n", f = "\n id workspaceId protocolId ordinal kind instruction durationMinutes isCritical\n createdAt updatedAt\n", p = "\n id workspaceId projectId experimentId name description kind status\n latestVersion tags createdAt updatedAt\n", m = "\n id workspaceId datasetId version checksum sizeBytes rowCount changeNote\n createdAt updatedAt\n", h = "\n id workspaceId projectId name description engine definition version isActive\n tags createdAt updatedAt\n", g = "\n id workspaceId pipelineId datasetId datasetVersionId outputDatasetId status\n parameters log triggeredById startedAt finishedAt createdAt updatedAt\n", _ = "\n id workspaceId name category status quantity unit reorderLevel location\n lotNumber catalogNumber vendor expiresAt tags createdAt updatedAt\n", v = "\n id workspaceId name model location status requiresApproval custodianId tags\n createdAt updatedAt\n", y = "\n id workspaceId instrumentId experimentId bookedById status purpose startTime\n endTime createdAt updatedAt\n", b = (t = {}) => {
|
|
18
|
+
let { apiGatewayUrl: r } = e();
|
|
19
|
+
return n({
|
|
21
20
|
queryKey: [
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
t
|
|
21
|
+
o,
|
|
22
|
+
"projects",
|
|
23
|
+
t.status ?? null,
|
|
24
|
+
t.pagination ?? null
|
|
25
25
|
],
|
|
26
|
-
queryFn: async () => (await
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return r({
|
|
26
|
+
queryFn: async () => (await a(`query LabProjects($status: LabProjectStatus, $pagination: PaginationInput) {
|
|
27
|
+
labListProjects(status: $status, pagination: $pagination) {
|
|
28
|
+
items { ${s} }
|
|
29
|
+
pageInfo { cursor hasMore }
|
|
30
|
+
}
|
|
31
|
+
}`, {
|
|
32
|
+
status: t.status,
|
|
33
|
+
pagination: t.pagination
|
|
34
|
+
}, r)).labListProjects
|
|
35
|
+
});
|
|
36
|
+
}, x = (t) => {
|
|
37
|
+
let { apiGatewayUrl: r } = e();
|
|
38
|
+
return n({
|
|
40
39
|
queryKey: [
|
|
41
|
-
|
|
42
|
-
"
|
|
40
|
+
o,
|
|
41
|
+
"project",
|
|
43
42
|
t
|
|
44
43
|
],
|
|
45
|
-
queryFn: async () => (await
|
|
44
|
+
queryFn: async () => (await a(`query LabProject($id: ID!) {
|
|
45
|
+
labProject(id: $id) {
|
|
46
|
+
${s}
|
|
47
|
+
experiments { ${c} }
|
|
48
|
+
}
|
|
49
|
+
}`, { id: t }, r)).labProject,
|
|
46
50
|
enabled: !!t
|
|
47
51
|
});
|
|
48
|
-
},
|
|
49
|
-
let { apiGatewayUrl:
|
|
50
|
-
return
|
|
52
|
+
}, S = () => {
|
|
53
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
54
|
+
return t({
|
|
55
|
+
mutationFn: async (e) => (await a(`mutation LabCreateProject($input: LabCreateProjectInput!) {
|
|
56
|
+
labCreateProject(input: $input) { ${s} }
|
|
57
|
+
}`, { input: e }, i)).labCreateProject,
|
|
58
|
+
onSuccess: () => {
|
|
59
|
+
n.invalidateQueries({ queryKey: [o, "projects"] });
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}, C = () => {
|
|
63
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
64
|
+
return t({
|
|
65
|
+
mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateProject($id: ID!, $input: LabUpdateProjectInput!) {
|
|
66
|
+
labUpdateProject(id: $id, input: $input) { ${s} }
|
|
67
|
+
}`, {
|
|
68
|
+
id: e,
|
|
69
|
+
input: t
|
|
70
|
+
}, i)).labUpdateProject,
|
|
71
|
+
onSuccess: (e) => {
|
|
72
|
+
n.invalidateQueries({ queryKey: [o, "projects"] }), n.invalidateQueries({ queryKey: [
|
|
73
|
+
o,
|
|
74
|
+
"project",
|
|
75
|
+
e.id
|
|
76
|
+
] });
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}, w = () => {
|
|
80
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
81
|
+
return t({
|
|
82
|
+
mutationFn: async (e) => (await a("mutation LabArchiveProject($id: ID!) { labArchiveProject(id: $id) }", { id: e }, i)).labArchiveProject,
|
|
83
|
+
onSuccess: () => {
|
|
84
|
+
n.invalidateQueries({ queryKey: [o, "projects"] });
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}, T = (t = {}) => {
|
|
88
|
+
let { apiGatewayUrl: r } = e();
|
|
89
|
+
return n({
|
|
51
90
|
queryKey: [
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
t.
|
|
55
|
-
t.
|
|
91
|
+
o,
|
|
92
|
+
"experiments",
|
|
93
|
+
t.projectId ?? null,
|
|
94
|
+
t.status ?? null,
|
|
95
|
+
t.pagination ?? null
|
|
56
96
|
],
|
|
57
|
-
queryFn: async () => (await
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
customizations: e.customizations
|
|
68
|
-
})),
|
|
69
|
-
total: e.total,
|
|
70
|
-
subtotal: e.subtotal,
|
|
71
|
-
taxes: e.tax,
|
|
72
|
-
deliveryFee: e.deliveryFee,
|
|
73
|
-
discount: e.discount,
|
|
74
|
-
status: e.status.toLowerCase(),
|
|
75
|
-
orderDate: e.createdAt,
|
|
76
|
-
deliveryAddress: e.deliveryAddress,
|
|
77
|
-
paymentMethod: e.paymentMethod || "Cash",
|
|
78
|
-
paymentStatus: e.paymentStatus.toLowerCase(),
|
|
79
|
-
timeline: e.timeline || []
|
|
80
|
-
}))
|
|
81
|
-
});
|
|
82
|
-
}, u = () => {
|
|
83
|
-
let { apiGatewayUrl: t } = e();
|
|
84
|
-
return r({
|
|
85
|
-
queryKey: ["labsofscience", "dashboard-stats"],
|
|
86
|
-
queryFn: async () => (await o("query DashboardStats { labsofscienceDashboardStats { totalOrders totalRevenue activeProviders activeCustomers avgRating pendingOrders } }", {}, t)).labsofscienceDashboardStats
|
|
97
|
+
queryFn: async () => (await a(`query LabExperiments($projectId: ID, $status: LabExperimentStatus, $pagination: PaginationInput) {
|
|
98
|
+
labListExperiments(projectId: $projectId, status: $status, pagination: $pagination) {
|
|
99
|
+
items { ${c} }
|
|
100
|
+
pageInfo { cursor hasMore }
|
|
101
|
+
}
|
|
102
|
+
}`, {
|
|
103
|
+
projectId: t.projectId,
|
|
104
|
+
status: t.status,
|
|
105
|
+
pagination: t.pagination
|
|
106
|
+
}, r)).labListExperiments
|
|
87
107
|
});
|
|
88
|
-
},
|
|
89
|
-
let { apiGatewayUrl:
|
|
90
|
-
return
|
|
91
|
-
queryKey: ["labsofscience", "investment-opportunities"],
|
|
92
|
-
queryFn: async () => (await o("query Opportunities {\n listInvestmentOpportunities(limit: 200) {\n id providerId title description targetAmount raisedAmount minimumInvestment expectedReturnsPct lockInMonths riskLevel status expiresAt terms businessMetrics createdAt\n provider { name }\n }\n }", {}, t)).listInvestmentOpportunities.map((e) => ({
|
|
93
|
-
id: e.id,
|
|
94
|
-
cartId: e.providerId,
|
|
95
|
-
cartName: e.provider?.name || "Unknown Cart",
|
|
96
|
-
businessOwner: "Owner",
|
|
97
|
-
targetAmount: e.targetAmount,
|
|
98
|
-
raisedAmount: e.raisedAmount,
|
|
99
|
-
minimumInvestment: e.minimumInvestment,
|
|
100
|
-
expectedReturns: e.expectedReturnsPct,
|
|
101
|
-
investmentPeriod: e.lockInMonths,
|
|
102
|
-
riskLevel: e.riskLevel.toLowerCase(),
|
|
103
|
-
description: e.description,
|
|
104
|
-
businessPlan: "",
|
|
105
|
-
financialProjections: [],
|
|
106
|
-
documents: [],
|
|
107
|
-
investors: [],
|
|
108
|
-
status: e.status.toLowerCase(),
|
|
109
|
-
createdAt: e.createdAt,
|
|
110
|
-
expiresAt: e.expiresAt
|
|
111
|
-
}))
|
|
112
|
-
});
|
|
113
|
-
}, f = (t) => {
|
|
114
|
-
let { apiGatewayUrl: n } = e();
|
|
115
|
-
return r({
|
|
108
|
+
}, E = (t) => {
|
|
109
|
+
let { apiGatewayUrl: r } = e();
|
|
110
|
+
return n({
|
|
116
111
|
queryKey: [
|
|
117
|
-
|
|
118
|
-
"
|
|
112
|
+
o,
|
|
113
|
+
"experiment",
|
|
119
114
|
t
|
|
120
115
|
],
|
|
121
|
-
queryFn: async () => (await
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
returnsPercentage: e.expectedReturnsPct,
|
|
129
|
-
investmentDate: e.investedAt,
|
|
130
|
-
status: e.status.toLowerCase()
|
|
131
|
-
})),
|
|
116
|
+
queryFn: async () => (await a(`query LabExperiment($id: ID!) {
|
|
117
|
+
labExperiment(id: $id) {
|
|
118
|
+
${c}
|
|
119
|
+
project { ${s} }
|
|
120
|
+
runs { ${l} }
|
|
121
|
+
}
|
|
122
|
+
}`, { id: t }, r)).labExperiment,
|
|
132
123
|
enabled: !!t
|
|
133
124
|
});
|
|
134
|
-
},
|
|
135
|
-
let { apiGatewayUrl:
|
|
136
|
-
return
|
|
125
|
+
}, D = () => {
|
|
126
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
127
|
+
return t({
|
|
128
|
+
mutationFn: async (e) => (await a(`mutation LabCreateExperiment($input: LabCreateExperimentInput!) {
|
|
129
|
+
labCreateExperiment(input: $input) { ${c} }
|
|
130
|
+
}`, { input: e }, i)).labCreateExperiment,
|
|
131
|
+
onSuccess: (e) => {
|
|
132
|
+
n.invalidateQueries({ queryKey: [o, "experiments"] }), n.invalidateQueries({ queryKey: [
|
|
133
|
+
o,
|
|
134
|
+
"project",
|
|
135
|
+
e.projectId
|
|
136
|
+
] });
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}, O = () => {
|
|
140
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
141
|
+
return t({
|
|
142
|
+
mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabUpdateExperiment($id: ID!, $input: LabUpdateExperimentInput!) {
|
|
143
|
+
labUpdateExperiment(id: $id, input: $input) { ${c} }
|
|
144
|
+
}`, {
|
|
145
|
+
id: e,
|
|
146
|
+
input: t
|
|
147
|
+
}, i)).labUpdateExperiment,
|
|
148
|
+
onSuccess: (e) => {
|
|
149
|
+
n.invalidateQueries({ queryKey: [o, "experiments"] }), n.invalidateQueries({ queryKey: [
|
|
150
|
+
o,
|
|
151
|
+
"experiment",
|
|
152
|
+
e.id
|
|
153
|
+
] });
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}, k = () => {
|
|
157
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
158
|
+
return t({
|
|
159
|
+
mutationFn: async ({ id: e, status: t }) => (await a(`mutation LabTransitionExperiment($id: ID!, $status: LabExperimentStatus!) {
|
|
160
|
+
labTransitionExperiment(id: $id, status: $status) { ${c} }
|
|
161
|
+
}`, {
|
|
162
|
+
id: e,
|
|
163
|
+
status: t
|
|
164
|
+
}, i)).labTransitionExperiment,
|
|
165
|
+
onSuccess: (e) => {
|
|
166
|
+
n.invalidateQueries({ queryKey: [o, "experiments"] }), n.invalidateQueries({ queryKey: [
|
|
167
|
+
o,
|
|
168
|
+
"experiment",
|
|
169
|
+
e.id
|
|
170
|
+
] });
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}, A = () => {
|
|
174
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
175
|
+
return t({
|
|
176
|
+
mutationFn: async (e) => (await a(`mutation LabStartRun($input: LabCreateRunInput!) {
|
|
177
|
+
labStartRun(input: $input) { ${l} }
|
|
178
|
+
}`, { input: e }, i)).labStartRun,
|
|
179
|
+
onSuccess: (e) => {
|
|
180
|
+
n.invalidateQueries({ queryKey: [o, "runs"] }), n.invalidateQueries({ queryKey: [
|
|
181
|
+
o,
|
|
182
|
+
"experiment",
|
|
183
|
+
e.experimentId
|
|
184
|
+
] });
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}, j = () => {
|
|
188
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
189
|
+
return t({
|
|
190
|
+
mutationFn: async ({ id: e, status: t, notes: n }) => (await a(`mutation LabCompleteRun($id: ID!, $status: LabRunStatus!, $input: LabRecordRunResultsInput) {
|
|
191
|
+
labCompleteRun(id: $id, status: $status, input: $input) { ${l} }
|
|
192
|
+
}`, {
|
|
193
|
+
id: e,
|
|
194
|
+
status: t,
|
|
195
|
+
input: n ? { notes: n } : void 0
|
|
196
|
+
}, i)).labCompleteRun,
|
|
197
|
+
onSuccess: (e) => {
|
|
198
|
+
n.invalidateQueries({ queryKey: [o, "runs"] }), n.invalidateQueries({ queryKey: [
|
|
199
|
+
o,
|
|
200
|
+
"experiment",
|
|
201
|
+
e.experimentId
|
|
202
|
+
] });
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}, M = (t = {}) => {
|
|
206
|
+
let { apiGatewayUrl: r } = e();
|
|
207
|
+
return n({
|
|
208
|
+
queryKey: [
|
|
209
|
+
o,
|
|
210
|
+
"notebook",
|
|
211
|
+
t.projectId ?? null,
|
|
212
|
+
t.experimentId ?? null,
|
|
213
|
+
t.status ?? null,
|
|
214
|
+
t.pagination ?? null
|
|
215
|
+
],
|
|
216
|
+
queryFn: async () => (await a(`query LabNotebookEntries($projectId: ID, $experimentId: ID, $status: LabNotebookEntryStatus, $pagination: PaginationInput) {
|
|
217
|
+
labListNotebookEntries(projectId: $projectId, experimentId: $experimentId, status: $status, pagination: $pagination) {
|
|
218
|
+
items { ${u} }
|
|
219
|
+
pageInfo { cursor hasMore }
|
|
220
|
+
}
|
|
221
|
+
}`, {
|
|
222
|
+
projectId: t.projectId,
|
|
223
|
+
experimentId: t.experimentId,
|
|
224
|
+
status: t.status,
|
|
225
|
+
pagination: t.pagination
|
|
226
|
+
}, r)).labListNotebookEntries
|
|
227
|
+
});
|
|
228
|
+
}, N = () => {
|
|
229
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
230
|
+
return t({
|
|
231
|
+
mutationFn: async (e) => (await a(`mutation LabCreateNotebookEntry($input: LabCreateNotebookEntryInput!) {
|
|
232
|
+
labCreateNotebookEntry(input: $input) { ${u} }
|
|
233
|
+
}`, { input: e }, i)).labCreateNotebookEntry,
|
|
234
|
+
onSuccess: () => {
|
|
235
|
+
n.invalidateQueries({ queryKey: [o, "notebook"] });
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}, ee = () => {
|
|
239
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
240
|
+
return t({
|
|
241
|
+
mutationFn: async (e) => (await a(`mutation LabSignNotebookEntry($id: ID!) {
|
|
242
|
+
labSignNotebookEntry(id: $id) { ${u} }
|
|
243
|
+
}`, { id: e }, i)).labSignNotebookEntry,
|
|
244
|
+
onSuccess: () => {
|
|
245
|
+
n.invalidateQueries({ queryKey: [o, "notebook"] });
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
}, P = (t = {}) => {
|
|
249
|
+
let { apiGatewayUrl: r } = e();
|
|
250
|
+
return n({
|
|
251
|
+
queryKey: [
|
|
252
|
+
o,
|
|
253
|
+
"protocols",
|
|
254
|
+
t.status ?? null,
|
|
255
|
+
t.pagination ?? null
|
|
256
|
+
],
|
|
257
|
+
queryFn: async () => (await a(`query LabProtocols($status: LabProtocolStatus, $pagination: PaginationInput) {
|
|
258
|
+
labListProtocols(status: $status, pagination: $pagination) {
|
|
259
|
+
items { ${d} }
|
|
260
|
+
pageInfo { cursor hasMore }
|
|
261
|
+
}
|
|
262
|
+
}`, {
|
|
263
|
+
status: t.status,
|
|
264
|
+
pagination: t.pagination
|
|
265
|
+
}, r)).labListProtocols
|
|
266
|
+
});
|
|
267
|
+
}, F = (t) => {
|
|
268
|
+
let { apiGatewayUrl: r } = e();
|
|
269
|
+
return n({
|
|
137
270
|
queryKey: [
|
|
138
|
-
|
|
139
|
-
"
|
|
271
|
+
o,
|
|
272
|
+
"protocol",
|
|
140
273
|
t
|
|
141
274
|
],
|
|
142
|
-
queryFn: async () => (await
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
description: e.description,
|
|
149
|
-
priority: e.priority.toLowerCase(),
|
|
150
|
-
status: e.status.toLowerCase(),
|
|
151
|
-
assignedAt: e.assignedAt,
|
|
152
|
-
dueAt: e.dueAt,
|
|
153
|
-
completedAt: e.completedAt,
|
|
154
|
-
customerName: e.customerName,
|
|
155
|
-
customerPhone: e.customerPhone,
|
|
156
|
-
deliveryAddress: e.order?.deliveryAddress,
|
|
157
|
-
earnings: e.earnings,
|
|
158
|
-
distance: e.distance,
|
|
159
|
-
notes: e.notes
|
|
160
|
-
})),
|
|
275
|
+
queryFn: async () => (await a(`query LabProtocol($id: ID!) {
|
|
276
|
+
labProtocol(id: $id) {
|
|
277
|
+
${d}
|
|
278
|
+
steps { ${f} }
|
|
279
|
+
}
|
|
280
|
+
}`, { id: t }, r)).labProtocol,
|
|
161
281
|
enabled: !!t
|
|
162
282
|
});
|
|
163
|
-
},
|
|
164
|
-
let { apiGatewayUrl:
|
|
165
|
-
return
|
|
283
|
+
}, I = () => {
|
|
284
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
285
|
+
return t({
|
|
286
|
+
mutationFn: async (e) => (await a(`mutation LabCreateProtocol($input: LabCreateProtocolInput!) {
|
|
287
|
+
labCreateProtocol(input: $input) { ${d} }
|
|
288
|
+
}`, { input: e }, i)).labCreateProtocol,
|
|
289
|
+
onSuccess: () => {
|
|
290
|
+
n.invalidateQueries({ queryKey: [o, "protocols"] });
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
}, L = () => {
|
|
294
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
295
|
+
return t({
|
|
296
|
+
mutationFn: async (e) => (await a(`mutation LabPublishProtocol($id: ID!) {
|
|
297
|
+
labPublishProtocol(id: $id) { ${d} }
|
|
298
|
+
}`, { id: e }, i)).labPublishProtocol,
|
|
299
|
+
onSuccess: (e) => {
|
|
300
|
+
n.invalidateQueries({ queryKey: [o, "protocols"] }), n.invalidateQueries({ queryKey: [
|
|
301
|
+
o,
|
|
302
|
+
"protocol",
|
|
303
|
+
e.id
|
|
304
|
+
] });
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}, R = (t = {}) => {
|
|
308
|
+
let { apiGatewayUrl: r } = e();
|
|
309
|
+
return n({
|
|
310
|
+
queryKey: [
|
|
311
|
+
o,
|
|
312
|
+
"datasets",
|
|
313
|
+
t.kind ?? null,
|
|
314
|
+
t.status ?? null,
|
|
315
|
+
t.pagination ?? null
|
|
316
|
+
],
|
|
317
|
+
queryFn: async () => (await a(`query LabDatasets($kind: LabDatasetKind, $status: LabDatasetStatus, $pagination: PaginationInput) {
|
|
318
|
+
labListDatasets(kind: $kind, status: $status, pagination: $pagination) {
|
|
319
|
+
items { ${p} }
|
|
320
|
+
pageInfo { cursor hasMore }
|
|
321
|
+
}
|
|
322
|
+
}`, {
|
|
323
|
+
kind: t.kind,
|
|
324
|
+
status: t.status,
|
|
325
|
+
pagination: t.pagination
|
|
326
|
+
}, r)).labListDatasets
|
|
327
|
+
});
|
|
328
|
+
}, z = (t) => {
|
|
329
|
+
let { apiGatewayUrl: r } = e();
|
|
330
|
+
return n({
|
|
166
331
|
queryKey: [
|
|
167
|
-
|
|
168
|
-
"
|
|
332
|
+
o,
|
|
333
|
+
"dataset",
|
|
169
334
|
t
|
|
170
335
|
],
|
|
171
|
-
queryFn: async () => (await
|
|
336
|
+
queryFn: async () => (await a(`query LabDataset($id: ID!) {
|
|
337
|
+
labDataset(id: $id) {
|
|
338
|
+
${p}
|
|
339
|
+
versions { ${m} }
|
|
340
|
+
}
|
|
341
|
+
}`, { id: t }, r)).labDataset,
|
|
172
342
|
enabled: !!t
|
|
173
343
|
});
|
|
174
|
-
},
|
|
175
|
-
let
|
|
344
|
+
}, B = () => {
|
|
345
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
346
|
+
return t({
|
|
347
|
+
mutationFn: async (e) => (await a(`mutation LabCreateDataset($input: LabCreateDatasetInput!) {
|
|
348
|
+
labCreateDataset(input: $input) { ${p} }
|
|
349
|
+
}`, { input: e }, i)).labCreateDataset,
|
|
350
|
+
onSuccess: () => {
|
|
351
|
+
n.invalidateQueries({ queryKey: [o, "datasets"] });
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}, V = () => {
|
|
355
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
356
|
+
return t({
|
|
357
|
+
mutationFn: async (e) => (await a("mutation LabArchiveDataset($id: ID!) { labArchiveDataset(id: $id) }", { id: e }, i)).labArchiveDataset,
|
|
358
|
+
onSuccess: () => {
|
|
359
|
+
n.invalidateQueries({ queryKey: [o, "datasets"] });
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
}, H = () => {
|
|
363
|
+
let { apiGatewayUrl: t } = e();
|
|
176
364
|
return n({
|
|
177
|
-
|
|
365
|
+
queryKey: [o, "pipelines"],
|
|
366
|
+
queryFn: async () => (await a(`query LabPipelines {
|
|
367
|
+
labListPipelines { ${h} }
|
|
368
|
+
}`, {}, t)).labListPipelines
|
|
369
|
+
});
|
|
370
|
+
}, U = () => {
|
|
371
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
372
|
+
return t({
|
|
373
|
+
mutationFn: async (e) => (await a(`mutation LabCreatePipeline($input: LabCreatePipelineInput!) {
|
|
374
|
+
labCreatePipeline(input: $input) { ${h} }
|
|
375
|
+
}`, { input: e }, i)).labCreatePipeline,
|
|
178
376
|
onSuccess: () => {
|
|
179
|
-
|
|
377
|
+
n.invalidateQueries({ queryKey: [o, "pipelines"] });
|
|
180
378
|
}
|
|
181
379
|
});
|
|
182
|
-
},
|
|
183
|
-
let
|
|
380
|
+
}, W = (t = {}) => {
|
|
381
|
+
let { apiGatewayUrl: r } = e();
|
|
184
382
|
return n({
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
383
|
+
queryKey: [
|
|
384
|
+
o,
|
|
385
|
+
"pipeline-runs",
|
|
386
|
+
t.pipelineId ?? null,
|
|
387
|
+
t.status ?? null,
|
|
388
|
+
t.pagination ?? null
|
|
389
|
+
],
|
|
390
|
+
queryFn: async () => (await a(`query LabPipelineRuns($pipelineId: ID, $status: LabPipelineRunStatus, $pagination: PaginationInput) {
|
|
391
|
+
labListPipelineRuns(pipelineId: $pipelineId, status: $status, pagination: $pagination) {
|
|
392
|
+
items {
|
|
393
|
+
${g}
|
|
394
|
+
pipeline { ${h} }
|
|
395
|
+
}
|
|
396
|
+
pageInfo { cursor hasMore }
|
|
397
|
+
}
|
|
398
|
+
}`, {
|
|
399
|
+
pipelineId: t.pipelineId,
|
|
400
|
+
status: t.status,
|
|
401
|
+
pagination: t.pagination
|
|
402
|
+
}, r)).labListPipelineRuns
|
|
403
|
+
});
|
|
404
|
+
}, G = () => {
|
|
405
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
406
|
+
return t({
|
|
407
|
+
mutationFn: async (e) => (await a(`mutation LabRunPipeline($input: LabRunPipelineInput!) {
|
|
408
|
+
labRunPipeline(input: $input) { ${g} }
|
|
409
|
+
}`, { input: e }, i)).labRunPipeline,
|
|
410
|
+
onSuccess: () => {
|
|
411
|
+
n.invalidateQueries({ queryKey: [o, "pipeline-runs"] });
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}, K = () => {
|
|
415
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
416
|
+
return t({
|
|
417
|
+
mutationFn: async ({ id: e, status: t, log: n }) => (await a(`mutation LabTransitionPipelineRun($id: ID!, $status: LabPipelineRunStatus!, $log: String) {
|
|
418
|
+
labTransitionPipelineRun(id: $id, status: $status, log: $log) { ${g} }
|
|
419
|
+
}`, {
|
|
420
|
+
id: e,
|
|
421
|
+
status: t,
|
|
422
|
+
log: n
|
|
423
|
+
}, i)).labTransitionPipelineRun,
|
|
189
424
|
onSuccess: () => {
|
|
190
|
-
|
|
425
|
+
n.invalidateQueries({ queryKey: [o, "pipeline-runs"] });
|
|
191
426
|
}
|
|
192
427
|
});
|
|
193
|
-
},
|
|
194
|
-
let
|
|
428
|
+
}, q = (t = {}) => {
|
|
429
|
+
let { apiGatewayUrl: r } = e();
|
|
430
|
+
return n({
|
|
431
|
+
queryKey: [
|
|
432
|
+
o,
|
|
433
|
+
"inventory",
|
|
434
|
+
t.category ?? null,
|
|
435
|
+
t.status ?? null,
|
|
436
|
+
t.pagination ?? null
|
|
437
|
+
],
|
|
438
|
+
queryFn: async () => (await a(`query LabInventory($category: LabInventoryCategory, $status: LabInventoryStatus, $pagination: PaginationInput) {
|
|
439
|
+
labListInventoryItems(category: $category, status: $status, pagination: $pagination) {
|
|
440
|
+
items { ${_} }
|
|
441
|
+
pageInfo { cursor hasMore }
|
|
442
|
+
}
|
|
443
|
+
}`, {
|
|
444
|
+
category: t.category,
|
|
445
|
+
status: t.status,
|
|
446
|
+
pagination: t.pagination
|
|
447
|
+
}, r)).labListInventoryItems
|
|
448
|
+
});
|
|
449
|
+
}, J = (t) => {
|
|
450
|
+
let { apiGatewayUrl: r } = e();
|
|
195
451
|
return n({
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
452
|
+
queryKey: [
|
|
453
|
+
o,
|
|
454
|
+
"inventory-item",
|
|
455
|
+
t
|
|
456
|
+
],
|
|
457
|
+
queryFn: async () => (await a(`query LabInventoryItem($id: ID!) {
|
|
458
|
+
labInventoryItem(id: $id) { ${_} }
|
|
459
|
+
}`, { id: t }, r)).labInventoryItem,
|
|
460
|
+
enabled: !!t
|
|
461
|
+
});
|
|
462
|
+
}, Y = () => {
|
|
463
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
464
|
+
return t({
|
|
465
|
+
mutationFn: async (e) => (await a(`mutation LabCreateInventoryItem($input: LabCreateInventoryItemInput!) {
|
|
466
|
+
labCreateInventoryItem(input: $input) { ${_} }
|
|
467
|
+
}`, { input: e }, i)).labCreateInventoryItem,
|
|
468
|
+
onSuccess: () => {
|
|
469
|
+
n.invalidateQueries({ queryKey: [o, "inventory"] });
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
}, X = () => {
|
|
473
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
474
|
+
return t({
|
|
475
|
+
mutationFn: async ({ id: e, input: t }) => (await a(`mutation LabAdjustInventory($id: ID!, $input: LabAdjustInventoryInput!) {
|
|
476
|
+
labAdjustInventory(id: $id, input: $input) { ${_} }
|
|
477
|
+
}`, {
|
|
478
|
+
id: e,
|
|
479
|
+
input: t
|
|
480
|
+
}, i)).labAdjustInventory,
|
|
481
|
+
onSuccess: (e) => {
|
|
482
|
+
n.invalidateQueries({ queryKey: [o, "inventory"] }), n.invalidateQueries({ queryKey: [
|
|
483
|
+
o,
|
|
484
|
+
"inventory-item",
|
|
485
|
+
e.id
|
|
486
|
+
] });
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
}, Z = () => {
|
|
490
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
491
|
+
return t({
|
|
492
|
+
mutationFn: async (e) => (await a("mutation LabArchiveInventoryItem($id: ID!) { labArchiveInventoryItem(id: $id) }", { id: e }, i)).labArchiveInventoryItem,
|
|
493
|
+
onSuccess: () => {
|
|
494
|
+
n.invalidateQueries({ queryKey: [o, "inventory"] });
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
}, Q = (t = {}) => {
|
|
498
|
+
let { apiGatewayUrl: r } = e();
|
|
499
|
+
return n({
|
|
500
|
+
queryKey: [
|
|
501
|
+
o,
|
|
502
|
+
"instruments",
|
|
503
|
+
t.status ?? null
|
|
504
|
+
],
|
|
505
|
+
queryFn: async () => (await a(`query LabInstruments($status: LabInstrumentStatus) {
|
|
506
|
+
labListInstruments(status: $status) { ${v} }
|
|
507
|
+
}`, { status: t.status }, r)).labListInstruments
|
|
508
|
+
});
|
|
509
|
+
}, $ = (t) => {
|
|
510
|
+
let { apiGatewayUrl: r } = e();
|
|
511
|
+
return n({
|
|
512
|
+
queryKey: [
|
|
513
|
+
o,
|
|
514
|
+
"instrument",
|
|
515
|
+
t
|
|
516
|
+
],
|
|
517
|
+
queryFn: async () => (await a(`query LabInstrument($id: ID!) {
|
|
518
|
+
labInstrument(id: $id) {
|
|
519
|
+
${v}
|
|
520
|
+
bookings { ${y} }
|
|
521
|
+
}
|
|
522
|
+
}`, { id: t }, r)).labInstrument,
|
|
523
|
+
enabled: !!t
|
|
524
|
+
});
|
|
525
|
+
}, te = () => {
|
|
526
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
527
|
+
return t({
|
|
528
|
+
mutationFn: async (e) => (await a(`mutation LabCreateInstrument($input: LabCreateInstrumentInput!) {
|
|
529
|
+
labCreateInstrument(input: $input) { ${v} }
|
|
530
|
+
}`, { input: e }, i)).labCreateInstrument,
|
|
200
531
|
onSuccess: () => {
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
},
|
|
205
|
-
let
|
|
206
|
-
return t(
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
o,
|
|
217
|
-
c
|
|
218
|
-
]);
|
|
532
|
+
n.invalidateQueries({ queryKey: [o, "instruments"] });
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
}, ne = () => {
|
|
536
|
+
let n = r(), { apiGatewayUrl: i } = e();
|
|
537
|
+
return t({
|
|
538
|
+
mutationFn: async (e) => (await a("mutation LabCancelBooking($id: ID!) {\n labCancelBooking(id: $id) { id status instrumentId }\n }", { id: e }, i)).labCancelBooking,
|
|
539
|
+
onSuccess: (e) => {
|
|
540
|
+
n.invalidateQueries({ queryKey: [o, "instruments"] }), n.invalidateQueries({ queryKey: [
|
|
541
|
+
o,
|
|
542
|
+
"instrument",
|
|
543
|
+
e.instrumentId
|
|
544
|
+
] });
|
|
545
|
+
}
|
|
546
|
+
});
|
|
219
547
|
};
|
|
220
548
|
//#endregion
|
|
221
|
-
export {
|
|
549
|
+
export { X as useAdjustInventory, V as useArchiveDataset, Z as useArchiveInventoryItem, w as useArchiveProject, ne as useCancelBooking, j as useCompleteRun, B as useCreateDataset, D as useCreateExperiment, te as useCreateInstrument, Y as useCreateInventoryItem, N as useCreateNotebookEntry, U as useCreatePipeline, S as useCreateProject, I as useCreateProtocol, z as useDataset, R as useDatasets, E as useExperiment, T as useExperiments, $ as useInstrument, Q as useInstruments, J as useInventoryItem, q as useInventoryItems, M as useNotebookEntries, W as usePipelineRuns, H as usePipelines, x as useProject, b as useProjects, F as useProtocol, P as useProtocols, L as usePublishProtocol, G as useRunPipeline, ee as useSignNotebookEntry, A as useStartRun, k as useTransitionExperiment, K as useTransitionPipelineRun, O as useUpdateExperiment, C as useUpdateProject };
|
|
222
550
|
|
|
223
551
|
//# sourceMappingURL=useLabsOfScienceApi.js.map
|