@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.
Files changed (172) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/labsofscience/LabsOfScienceRoot.js +68 -124
  3. package/dist/labsofscience/LabsOfScienceRoot.js.map +1 -1
  4. package/dist/labsofscience/LabsOfScienceRoutes.js +61 -185
  5. package/dist/labsofscience/LabsOfScienceRoutes.js.map +1 -1
  6. package/dist/labsofscience/components/QueryStates.js +40 -0
  7. package/dist/labsofscience/components/QueryStates.js.map +1 -0
  8. package/dist/labsofscience/components/StatusBadge.js +40 -23
  9. package/dist/labsofscience/components/StatusBadge.js.map +1 -1
  10. package/dist/labsofscience/context/LabsOfScienceContext.js +22 -30
  11. package/dist/labsofscience/context/LabsOfScienceContext.js.map +1 -1
  12. package/dist/labsofscience/hooks/useLabsOfScienceApi.js +500 -172
  13. package/dist/labsofscience/hooks/useLabsOfScienceApi.js.map +1 -1
  14. package/dist/labsofscience/pages/OverviewPage.js +195 -0
  15. package/dist/labsofscience/pages/OverviewPage.js.map +1 -0
  16. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js +162 -0
  17. package/dist/labsofscience/pages/datasets/DatasetDetailPage.js.map +1 -0
  18. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js +137 -0
  19. package/dist/labsofscience/pages/datasets/DatasetFormDialog.js.map +1 -0
  20. package/dist/labsofscience/pages/datasets/DatasetsListPage.js +155 -0
  21. package/dist/labsofscience/pages/datasets/DatasetsListPage.js.map +1 -0
  22. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js +220 -0
  23. package/dist/labsofscience/pages/experiments/ExperimentDetailPage.js.map +1 -0
  24. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js +170 -0
  25. package/dist/labsofscience/pages/experiments/ExperimentFormDialog.js.map +1 -0
  26. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js +134 -0
  27. package/dist/labsofscience/pages/experiments/ExperimentsListPage.js.map +1 -0
  28. package/dist/labsofscience/pages/experiments/RunDialogs.js +180 -0
  29. package/dist/labsofscience/pages/experiments/RunDialogs.js.map +1 -0
  30. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js +130 -0
  31. package/dist/labsofscience/pages/instruments/InstrumentDetailPage.js.map +1 -0
  32. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js +132 -0
  33. package/dist/labsofscience/pages/instruments/InstrumentFormDialog.js.map +1 -0
  34. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js +126 -0
  35. package/dist/labsofscience/pages/instruments/InstrumentsListPage.js.map +1 -0
  36. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js +89 -0
  37. package/dist/labsofscience/pages/inventory/AdjustInventoryDialog.js.map +1 -0
  38. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js +138 -0
  39. package/dist/labsofscience/pages/inventory/InventoryDetailPage.js.map +1 -0
  40. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js +211 -0
  41. package/dist/labsofscience/pages/inventory/InventoryFormDialog.js.map +1 -0
  42. package/dist/labsofscience/pages/inventory/InventoryListPage.js +178 -0
  43. package/dist/labsofscience/pages/inventory/InventoryListPage.js.map +1 -0
  44. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js +118 -0
  45. package/dist/labsofscience/pages/notebook/NotebookEntryFormDialog.js.map +1 -0
  46. package/dist/labsofscience/pages/notebook/NotebookListPage.js +144 -0
  47. package/dist/labsofscience/pages/notebook/NotebookListPage.js.map +1 -0
  48. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js +146 -0
  49. package/dist/labsofscience/pages/pipelines/PipelineFormDialog.js.map +1 -0
  50. package/dist/labsofscience/pages/pipelines/PipelinesPage.js +212 -0
  51. package/dist/labsofscience/pages/pipelines/PipelinesPage.js.map +1 -0
  52. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js +109 -0
  53. package/dist/labsofscience/pages/pipelines/RunPipelineDialog.js.map +1 -0
  54. package/dist/labsofscience/pages/projects/ProjectDetailPage.js +174 -0
  55. package/dist/labsofscience/pages/projects/ProjectDetailPage.js.map +1 -0
  56. package/dist/labsofscience/pages/projects/ProjectFormDialog.js +169 -0
  57. package/dist/labsofscience/pages/projects/ProjectFormDialog.js.map +1 -0
  58. package/dist/labsofscience/pages/projects/ProjectsListPage.js +141 -0
  59. package/dist/labsofscience/pages/projects/ProjectsListPage.js.map +1 -0
  60. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js +133 -0
  61. package/dist/labsofscience/pages/protocols/ProtocolDetailPage.js.map +1 -0
  62. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js +151 -0
  63. package/dist/labsofscience/pages/protocols/ProtocolFormDialog.js.map +1 -0
  64. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js +140 -0
  65. package/dist/labsofscience/pages/protocols/ProtocolsListPage.js.map +1 -0
  66. package/dist/labsofscience/pages/shared/DetailComponents.js +64 -0
  67. package/dist/labsofscience/pages/shared/DetailComponents.js.map +1 -0
  68. package/dist/labsofscience/pages/shared/tags.js +16 -0
  69. package/dist/labsofscience/pages/shared/tags.js.map +1 -0
  70. package/dist/labsofscience/store/labsofscienceStore.js +6 -11
  71. package/dist/labsofscience/store/labsofscienceStore.js.map +1 -1
  72. package/dist/labsofscience/utils/formatters.js +28 -13
  73. package/dist/labsofscience/utils/formatters.js.map +1 -1
  74. package/package.json +1 -1
  75. package/dist/labsofscience/components/InvestmentCard.js +0 -98
  76. package/dist/labsofscience/components/InvestmentCard.js.map +0 -1
  77. package/dist/labsofscience/components/RatingDisplay.js +0 -35
  78. package/dist/labsofscience/components/RatingDisplay.js.map +0 -1
  79. package/dist/labsofscience/mocks/data.js +0 -1517
  80. package/dist/labsofscience/mocks/data.js.map +0 -1
  81. package/dist/labsofscience/mocks/users.js +0 -34
  82. package/dist/labsofscience/mocks/users.js.map +0 -1
  83. package/dist/labsofscience/pages/HomePage.js +0 -940
  84. package/dist/labsofscience/pages/HomePage.js.map +0 -1
  85. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js +0 -651
  86. package/dist/labsofscience/pages/admin/AdminAnalyticsPage.js.map +0 -1
  87. package/dist/labsofscience/pages/admin/AdminDashboard.js +0 -672
  88. package/dist/labsofscience/pages/admin/AdminDashboard.js.map +0 -1
  89. package/dist/labsofscience/pages/admin/AdminFinancialPage.js +0 -427
  90. package/dist/labsofscience/pages/admin/AdminFinancialPage.js.map +0 -1
  91. package/dist/labsofscience/pages/admin/AdminOrdersPage.js +0 -665
  92. package/dist/labsofscience/pages/admin/AdminOrdersPage.js.map +0 -1
  93. package/dist/labsofscience/pages/admin/AdminProfilePage.js +0 -261
  94. package/dist/labsofscience/pages/admin/AdminProfilePage.js.map +0 -1
  95. package/dist/labsofscience/pages/admin/AdminSettingsPage.js +0 -651
  96. package/dist/labsofscience/pages/admin/AdminSettingsPage.js.map +0 -1
  97. package/dist/labsofscience/pages/admin/CartManagementPage.js +0 -874
  98. package/dist/labsofscience/pages/admin/CartManagementPage.js.map +0 -1
  99. package/dist/labsofscience/pages/admin/UserManagementPage.js +0 -898
  100. package/dist/labsofscience/pages/admin/UserManagementPage.js.map +0 -1
  101. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js +0 -839
  102. package/dist/labsofscience/pages/cart-owner/AnalyticsDashboard.js.map +0 -1
  103. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js +0 -705
  104. package/dist/labsofscience/pages/cart-owner/BusinessSettingsPage.js.map +0 -1
  105. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js +0 -791
  106. package/dist/labsofscience/pages/cart-owner/CartOwnerDashboard.js.map +0 -1
  107. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js +0 -891
  108. package/dist/labsofscience/pages/cart-owner/CartOwnerProfilePage.js.map +0 -1
  109. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js +0 -636
  110. package/dist/labsofscience/pages/cart-owner/CartServiceConfigPage.js.map +0 -1
  111. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js +0 -911
  112. package/dist/labsofscience/pages/cart-owner/InventoryManagementPage.js.map +0 -1
  113. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js +0 -879
  114. package/dist/labsofscience/pages/cart-owner/OrderManagementPage.js.map +0 -1
  115. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js +0 -839
  116. package/dist/labsofscience/pages/cart-owner/StaffManagementPage.js.map +0 -1
  117. package/dist/labsofscience/pages/common/HelpSupportPage.js +0 -1324
  118. package/dist/labsofscience/pages/common/HelpSupportPage.js.map +0 -1
  119. package/dist/labsofscience/pages/common/NotificationCenterPage.js +0 -672
  120. package/dist/labsofscience/pages/common/NotificationCenterPage.js.map +0 -1
  121. package/dist/labsofscience/pages/common/SettingsPage.js +0 -973
  122. package/dist/labsofscience/pages/common/SettingsPage.js.map +0 -1
  123. package/dist/labsofscience/pages/customer/BookingDetailsPage.js +0 -637
  124. package/dist/labsofscience/pages/customer/BookingDetailsPage.js.map +0 -1
  125. package/dist/labsofscience/pages/customer/CartDetailPage.js +0 -653
  126. package/dist/labsofscience/pages/customer/CartDetailPage.js.map +0 -1
  127. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js +0 -559
  128. package/dist/labsofscience/pages/customer/CartDiscoveryPage.js.map +0 -1
  129. package/dist/labsofscience/pages/customer/CheckoutPage.js +0 -530
  130. package/dist/labsofscience/pages/customer/CheckoutPage.js.map +0 -1
  131. package/dist/labsofscience/pages/customer/CustomerDashboard.js +0 -531
  132. package/dist/labsofscience/pages/customer/CustomerDashboard.js.map +0 -1
  133. package/dist/labsofscience/pages/customer/CustomerProfilePage.js +0 -658
  134. package/dist/labsofscience/pages/customer/CustomerProfilePage.js.map +0 -1
  135. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js +0 -633
  136. package/dist/labsofscience/pages/customer/DirectServiceBookingPage.js.map +0 -1
  137. package/dist/labsofscience/pages/customer/FavoritesPage.js +0 -484
  138. package/dist/labsofscience/pages/customer/FavoritesPage.js.map +0 -1
  139. package/dist/labsofscience/pages/customer/OrderHistoryPage.js +0 -445
  140. package/dist/labsofscience/pages/customer/OrderHistoryPage.js.map +0 -1
  141. package/dist/labsofscience/pages/customer/OrderTrackingPage.js +0 -425
  142. package/dist/labsofscience/pages/customer/OrderTrackingPage.js.map +0 -1
  143. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js +0 -495
  144. package/dist/labsofscience/pages/customer/PaymentMethodsPage.js.map +0 -1
  145. package/dist/labsofscience/pages/customer/ReviewsPage.js +0 -613
  146. package/dist/labsofscience/pages/customer/ReviewsPage.js.map +0 -1
  147. package/dist/labsofscience/pages/customer/SavedAddressesPage.js +0 -450
  148. package/dist/labsofscience/pages/customer/SavedAddressesPage.js.map +0 -1
  149. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js +0 -881
  150. package/dist/labsofscience/pages/investor/InvestmentDetailsPage.js.map +0 -1
  151. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js +0 -946
  152. package/dist/labsofscience/pages/investor/InvestmentOpportunitiesPage.js.map +0 -1
  153. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js +0 -687
  154. package/dist/labsofscience/pages/investor/InvestorAnalyticsPage.js.map +0 -1
  155. package/dist/labsofscience/pages/investor/InvestorDashboard.js +0 -455
  156. package/dist/labsofscience/pages/investor/InvestorDashboard.js.map +0 -1
  157. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js +0 -406
  158. package/dist/labsofscience/pages/investor/InvestorInvestmentsPage.js.map +0 -1
  159. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js +0 -575
  160. package/dist/labsofscience/pages/investor/InvestorPortfolioPage.js.map +0 -1
  161. package/dist/labsofscience/pages/investor/InvestorProfilePage.js +0 -1070
  162. package/dist/labsofscience/pages/investor/InvestorProfilePage.js.map +0 -1
  163. package/dist/labsofscience/pages/worker/TaskDetailsPage.js +0 -537
  164. package/dist/labsofscience/pages/worker/TaskDetailsPage.js.map +0 -1
  165. package/dist/labsofscience/pages/worker/WorkerDashboard.js +0 -665
  166. package/dist/labsofscience/pages/worker/WorkerDashboard.js.map +0 -1
  167. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js +0 -681
  168. package/dist/labsofscience/pages/worker/WorkerOrdersPage.js.map +0 -1
  169. package/dist/labsofscience/pages/worker/WorkerProfilePage.js +0 -692
  170. package/dist/labsofscience/pages/worker/WorkerProfilePage.js.map +0 -1
  171. package/dist/labsofscience/pages/worker/WorkerSchedulePage.js +0 -588
  172. 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 { useMemo as t } from "react";
4
- import { useMutation as n, useQuery as r, useQueryClient as i } from "@tanstack/react-query";
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 o = async (e, t, n) => {
8
- let r = await a({
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: n } = e();
20
- return r({
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
- "labsofscience",
23
- "providers",
24
- t
21
+ o,
22
+ "projects",
23
+ t.status ?? null,
24
+ t.pagination ?? null
25
25
  ],
26
- queryFn: async () => (await o("query Providers($filter: LabsOfScienceProviderFilterInput) {\n listServiceProviders(filter: $filter, limit: 200) {\n id name slug category status rating totalRatings averageOrderValue serviceTypes location businessHours createdAt\n }\n }", { filter: t ? { query: t } : void 0 }, n)).listServiceProviders.map((e) => ({
27
- ...e,
28
- image: "https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=400",
29
- images: ["https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=400"],
30
- isOpen: e.status === "ACTIVE" || e.status === "VERIFIED",
31
- isVerified: e.status === "VERIFIED",
32
- distance: .5,
33
- estimatedTime: 20,
34
- createdAt: e.createdAt
35
- }))
36
- });
37
- }, c = (t) => {
38
- let { apiGatewayUrl: n } = e();
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
- "labsofscience",
42
- "offerings",
40
+ o,
41
+ "project",
43
42
  t
44
43
  ],
45
- queryFn: async () => (await o("query Offerings($providerId: String) {\n listOfferings(providerId: $providerId, limit: 300) {\n id providerId kind name slug category description price originalPrice stock durationMinutes serviceType tags isAvailable metadata media\n }\n }", { providerId: t }, n)).listOfferings,
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
- }, l = (t = {}) => {
49
- let { apiGatewayUrl: n } = e();
50
- return r({
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
- "labsofscience",
53
- "orders",
54
- t.providerId,
55
- t.customerId
91
+ o,
92
+ "experiments",
93
+ t.projectId ?? null,
94
+ t.status ?? null,
95
+ t.pagination ?? null
56
96
  ],
57
- queryFn: async () => (await o("query Orders($providerId: String, $customerId: String) {\n listOrders(providerId: $providerId, customerId: $customerId, limit: 200) {\n id orderNumber providerId customerId status paymentStatus fulfillmentType subtotal tax deliveryFee discount total notes timeline paymentMethod deliveryAddress createdAt\n provider { name }\n items { id offeringId name quantity unitPrice totalPrice customizations }\n }\n }", t, n)).listOrders.map((e) => ({
58
- id: e.id,
59
- cartId: e.providerId,
60
- cartName: e.provider?.name || "Unknown Cart",
61
- cartImage: "https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=100",
62
- items: e.items.map((e) => ({
63
- id: e.id,
64
- name: e.name,
65
- quantity: e.quantity,
66
- price: e.unitPrice,
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
- }, d = () => {
89
- let { apiGatewayUrl: t } = e();
90
- return r({
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
- "labsofscience",
118
- "investments",
112
+ o,
113
+ "experiment",
119
114
  t
120
115
  ],
121
- queryFn: async () => (await o("query Investments($investorId: String!) {\n listInvestments(investorId: $investorId) {\n id opportunityId amount currentValue expectedReturnsPct status investedAt maturedAt realizedReturns\n opportunity { provider { name } }\n }\n }", { investorId: t }, n)).listInvestments.map((e) => ({
122
- id: e.id,
123
- opportunityId: e.opportunityId,
124
- cartName: e.opportunity?.provider?.name || "Unknown Cart",
125
- investedAmount: e.amount,
126
- currentValue: e.currentValue,
127
- returns: e.realizedReturns,
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
- }, p = (t) => {
135
- let { apiGatewayUrl: n } = e();
136
- return r({
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
- "labsofscience",
139
- "worker-tasks",
271
+ o,
272
+ "protocol",
140
273
  t
141
274
  ],
142
- queryFn: async () => (await o("query WorkerTasks($workerId: String!) {\n listWorkerTasks(workerId: $workerId, limit: 100) {\n id orderId providerId type description priority status assignedAt dueAt completedAt customerName customerPhone earnings distance notes\n provider { name }\n order { deliveryAddress }\n }\n }", { workerId: t }, n)).listWorkerTasks.map((e) => ({
143
- id: e.id,
144
- orderId: e.orderId,
145
- cartId: e.providerId,
146
- cartName: e.provider?.name || "Unknown Cart",
147
- type: e.type.toLowerCase(),
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
- }, m = (t) => {
164
- let { apiGatewayUrl: n } = e();
165
- return r({
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
- "labsofscience",
168
- "worker-stats",
332
+ o,
333
+ "dataset",
169
334
  t
170
335
  ],
171
- queryFn: async () => (await o("query WorkerStats($workerId: String!) {\n labsofscienceWorkerStats(workerId: $workerId) {\n totalDeliveries totalEarnings averageRating completionRate todayTasks todayEarnings\n }\n }", { workerId: t }, n)).labsofscienceWorkerStats,
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
- }, h = () => {
175
- let t = i(), { apiGatewayUrl: r } = e();
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
- mutationFn: async (e) => (await o("mutation PlaceOrder($input: LabsOfSciencePlaceOrderInput!) {\n placeOrder(input: $input) {\n id orderNumber status total createdAt\n }\n }", { input: e }, r)).placeOrder,
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
- t.invalidateQueries({ queryKey: ["labsofscience", "orders"] }), t.invalidateQueries({ queryKey: ["labsofscience", "dashboard-stats"] });
377
+ n.invalidateQueries({ queryKey: [o, "pipelines"] });
180
378
  }
181
379
  });
182
- }, g = () => {
183
- let t = i(), { apiGatewayUrl: r } = e();
380
+ }, W = (t = {}) => {
381
+ let { apiGatewayUrl: r } = e();
184
382
  return n({
185
- mutationFn: async ({ taskId: e, status: t }) => (await o("mutation UpdateTaskStatus($taskId: String!, $status: LabsOfScienceWorkerTaskStatus!) {\n labsofscienceUpdateWorkerTaskStatus(taskId: $taskId, status: $status) {\n id status\n }\n }", {
186
- taskId: e,
187
- status: t
188
- }, r)).labsofscienceUpdateWorkerTaskStatus,
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
- t.invalidateQueries({ queryKey: ["labsofscience", "worker-tasks"] }), t.invalidateQueries({ queryKey: ["labsofscience", "worker-stats"] });
425
+ n.invalidateQueries({ queryKey: [o, "pipeline-runs"] });
191
426
  }
192
427
  });
193
- }, _ = () => {
194
- let t = i(), { apiGatewayUrl: r } = e();
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
- mutationFn: async ({ workerId: e, action: t }) => (await o("mutation ClockInOut($workerId: String!, $action: LabsOfScienceClockAction!) {\n labsofscienceWorkerClockInOut(workerId: $workerId, action: $action) {\n success message\n }\n }", {
197
- workerId: e,
198
- action: t
199
- }, r)).labsofscienceWorkerClockInOut,
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
- t.invalidateQueries({ queryKey: ["labsofscience", "worker-schedules"] });
202
- }
203
- });
204
- }, v = () => {
205
- let { currentUser: n } = e(), r = s(), i = l({ customerId: n?.id }), a = u(), o = d(), c = f(n?.id || "");
206
- return t(() => ({
207
- providers: r,
208
- orders: i,
209
- dashboardStats: a,
210
- investmentOpportunities: o,
211
- investments: c
212
- }), [
213
- r,
214
- i,
215
- a,
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 { u as useDashboardStats, d as useInvestmentOpportunities, f as useInvestments, v as useLabsOfScienceApi, c as useOfferings, l as useOrders, h as usePlaceOrder, s as useProviders, g as useUpdateWorkerTaskStatus, _ as useWorkerClockInOut, m as useWorkerStats, p as useWorkerTasks };
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