@opentrons/shared-data 0.1.2-alpha.0 → 0.1.2-alpha.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 (131) hide show
  1. package/js/__tests__/__snapshots__/pipettes.test.ts.snap +5969 -0
  2. package/js/__tests__/deckSchemas.test.ts +87 -0
  3. package/js/__tests__/errors.test.js +21 -0
  4. package/js/__tests__/getAreSlotsAdjacent.test.ts +128 -0
  5. package/js/__tests__/getWellNamePerMultiTip.test.ts +162 -0
  6. package/js/__tests__/labwareDefQuirks.test.ts +38 -0
  7. package/js/__tests__/labwareDefSchemaV1.test.ts +82 -0
  8. package/js/__tests__/labwareDefSchemaV2.test.ts +298 -0
  9. package/js/__tests__/moduleAccessors.test.ts +50 -0
  10. package/js/__tests__/moduleSpecsSchema.test.ts +77 -0
  11. package/js/__tests__/pipetteSchemaV2.test.ts +107 -0
  12. package/js/__tests__/pipetteSpecSchemas.test.ts +48 -0
  13. package/js/__tests__/pipettes.test.ts +58 -0
  14. package/js/__tests__/protocolSchemaV4.test.ts +137 -0
  15. package/js/__tests__/protocolSchemaV5.test.ts +137 -0
  16. package/js/__tests__/protocolSchemaV6.test.ts +132 -0
  17. package/js/__tests__/protocolSchemaV7.test.ts +64 -0
  18. package/js/__tests__/protocolValidation.test.ts +83 -0
  19. package/js/__tests__/sortWells.test.ts +40 -0
  20. package/js/__tests__/splitWellsOnColumn.test.ts +21 -0
  21. package/js/__tests__/validateErrors.test.js +34 -0
  22. package/js/constants.ts +405 -0
  23. package/js/cypressUtils.ts +35 -0
  24. package/js/errors.ts +33 -0
  25. package/js/fixtures.ts +156 -0
  26. package/js/getLabware.ts +145 -0
  27. package/js/gripper.ts +29 -0
  28. package/js/helpers/__tests__/getAdapterName.test.ts +31 -0
  29. package/js/helpers/__tests__/getDeckDefFromLoadedLabware.test.ts +12 -0
  30. package/js/helpers/__tests__/getSimplestFlexDeckConfig.test.ts +176 -0
  31. package/js/helpers/__tests__/getVectorDifference.test.ts +25 -0
  32. package/js/helpers/__tests__/getVectorSum.test.ts +21 -0
  33. package/js/helpers/__tests__/labwareInference.test.ts +84 -0
  34. package/js/helpers/__tests__/orderWells.test.ts +87 -0
  35. package/js/helpers/__tests__/parseProtocolData.test.ts +165 -0
  36. package/js/helpers/__tests__/volume.test.ts +108 -0
  37. package/js/helpers/__tests__/wellSets.test.ts +352 -0
  38. package/js/helpers/get96Channel384WellPlateWells.ts +44 -0
  39. package/js/helpers/getAddressableAreasInProtocol.ts +98 -0
  40. package/js/helpers/getLoadedLabwareDefinitionsByUri.ts +30 -0
  41. package/js/helpers/getModuleVizDims.ts +118 -0
  42. package/js/helpers/getOccludedSlotCountForModule.ts +13 -0
  43. package/js/helpers/getSimplestFlexDeckConfig.ts +183 -0
  44. package/js/helpers/getVectorDifference.ts +12 -0
  45. package/js/helpers/getVectorSum.ts +12 -0
  46. package/js/helpers/getWellNamePerMultiTip.ts +86 -0
  47. package/js/helpers/getWellTotalVolume.ts +16 -0
  48. package/js/helpers/index.ts +348 -0
  49. package/js/helpers/labwareInference.ts +92 -0
  50. package/js/helpers/orderWells.ts +69 -0
  51. package/js/helpers/parseProtocolData.ts +141 -0
  52. package/js/helpers/volume.ts +35 -0
  53. package/js/helpers/wellIsRect.ts +6 -0
  54. package/js/helpers/wellSets.ts +155 -0
  55. package/js/index.ts +14 -0
  56. package/js/labwareTools/__tests__/__snapshots__/createIrregularLabware.test.ts.snap +3 -0
  57. package/js/labwareTools/__tests__/__snapshots__/createLabware.test.ts.snap +3 -0
  58. package/js/labwareTools/__tests__/createDefaultDisplayName.test.ts +111 -0
  59. package/js/labwareTools/__tests__/createIrregularLabware.test.ts +226 -0
  60. package/js/labwareTools/__tests__/createLabware.test.ts +147 -0
  61. package/js/labwareTools/index.ts +452 -0
  62. package/js/modules.ts +97 -0
  63. package/js/pipettes.ts +89 -0
  64. package/js/protocols.ts +290 -0
  65. package/js/schema.ts +80 -0
  66. package/js/scripts/generateDeckLayersFromSVG.js +46 -0
  67. package/js/titleCase.ts +30 -0
  68. package/js/types.ts +561 -0
  69. package/lib/js/__tests__/deckSchemas.test.d.ts +1 -0
  70. package/lib/js/__tests__/getAreSlotsAdjacent.test.d.ts +1 -0
  71. package/lib/js/__tests__/getWellNamePerMultiTip.test.d.ts +1 -0
  72. package/lib/js/__tests__/labwareDefQuirks.test.d.ts +1 -0
  73. package/lib/js/__tests__/labwareDefSchemaV1.test.d.ts +1 -0
  74. package/lib/js/__tests__/labwareDefSchemaV2.test.d.ts +1 -0
  75. package/lib/js/__tests__/moduleAccessors.test.d.ts +1 -0
  76. package/lib/js/__tests__/moduleSpecsSchema.test.d.ts +1 -0
  77. package/lib/js/__tests__/pipetteSchemaV2.test.d.ts +1 -0
  78. package/lib/js/__tests__/pipetteSpecSchemas.test.d.ts +1 -0
  79. package/lib/js/__tests__/pipettes.test.d.ts +1 -0
  80. package/lib/js/__tests__/protocolSchemaV4.test.d.ts +1 -0
  81. package/lib/js/__tests__/protocolSchemaV5.test.d.ts +1 -0
  82. package/lib/js/__tests__/protocolSchemaV6.test.d.ts +1 -0
  83. package/lib/js/__tests__/protocolSchemaV7.test.d.ts +1 -0
  84. package/lib/js/__tests__/protocolValidation.test.d.ts +1 -0
  85. package/lib/js/__tests__/sortWells.test.d.ts +1 -0
  86. package/lib/js/__tests__/splitWellsOnColumn.test.d.ts +1 -0
  87. package/lib/js/constants.d.ts +156 -0
  88. package/lib/js/cypressUtils.d.ts +1 -0
  89. package/lib/js/errors.d.ts +13 -0
  90. package/lib/js/fixtures.d.ts +13 -0
  91. package/lib/js/getLabware.d.ts +8 -0
  92. package/lib/js/gripper.d.ts +3 -0
  93. package/lib/js/helpers/__tests__/getAdapterName.test.d.ts +1 -0
  94. package/lib/js/helpers/__tests__/getDeckDefFromLoadedLabware.test.d.ts +1 -0
  95. package/lib/js/helpers/__tests__/getSimplestFlexDeckConfig.test.d.ts +1 -0
  96. package/lib/js/helpers/__tests__/getVectorDifference.test.d.ts +1 -0
  97. package/lib/js/helpers/__tests__/getVectorSum.test.d.ts +1 -0
  98. package/lib/js/helpers/__tests__/labwareInference.test.d.ts +1 -0
  99. package/lib/js/helpers/__tests__/orderWells.test.d.ts +1 -0
  100. package/lib/js/helpers/__tests__/parseProtocolData.test.d.ts +1 -0
  101. package/lib/js/helpers/__tests__/volume.test.d.ts +1 -0
  102. package/lib/js/helpers/__tests__/wellSets.test.d.ts +1 -0
  103. package/lib/js/helpers/get96Channel384WellPlateWells.d.ts +1 -0
  104. package/lib/js/helpers/getAddressableAreasInProtocol.d.ts +4 -0
  105. package/lib/js/helpers/getLoadedLabwareDefinitionsByUri.d.ts +5 -0
  106. package/lib/js/helpers/getModuleVizDims.d.ts +16 -0
  107. package/lib/js/helpers/getOccludedSlotCountForModule.d.ts +2 -0
  108. package/lib/js/helpers/getSimplestFlexDeckConfig.d.ts +14 -0
  109. package/lib/js/helpers/getVectorDifference.d.ts +2 -0
  110. package/lib/js/helpers/getVectorSum.d.ts +2 -0
  111. package/lib/js/helpers/getWellNamePerMultiTip.d.ts +3 -0
  112. package/lib/js/helpers/getWellTotalVolume.d.ts +2 -0
  113. package/lib/js/helpers/index.d.ts +44 -0
  114. package/lib/js/helpers/labwareInference.d.ts +16 -0
  115. package/lib/js/helpers/orderWells.d.ts +2 -0
  116. package/lib/js/helpers/parseProtocolData.d.ts +23 -0
  117. package/lib/js/helpers/volume.d.ts +4 -0
  118. package/lib/js/helpers/wellIsRect.d.ts +3 -0
  119. package/lib/js/helpers/wellSets.d.ts +9 -0
  120. package/lib/js/index.d.ts +14 -0
  121. package/lib/js/labwareTools/__tests__/createDefaultDisplayName.test.d.ts +1 -0
  122. package/lib/js/labwareTools/__tests__/createIrregularLabware.test.d.ts +1 -0
  123. package/lib/js/labwareTools/__tests__/createLabware.test.d.ts +1 -0
  124. package/lib/js/labwareTools/index.d.ts +65 -0
  125. package/lib/js/modules.d.ts +6 -0
  126. package/lib/js/pipettes.d.ts +13 -0
  127. package/lib/js/protocols.d.ts +3 -0
  128. package/lib/js/schema.d.ts +90 -0
  129. package/lib/js/titleCase.d.ts +1 -0
  130. package/lib/js/types.d.ts +398 -0
  131. package/package.json +1 -1
@@ -0,0 +1,398 @@
1
+ import { MAGDECK, TEMPDECK, THERMOCYCLER, MAGNETIC_MODULE_V1, MAGNETIC_MODULE_V2, TEMPERATURE_MODULE_V1, TEMPERATURE_MODULE_V2, THERMOCYCLER_MODULE_V1, THERMOCYCLER_MODULE_V2, HEATERSHAKER_MODULE_V1, MAGNETIC_MODULE_TYPE, TEMPERATURE_MODULE_TYPE, THERMOCYCLER_MODULE_TYPE, HEATERSHAKER_MODULE_TYPE, MAGNETIC_BLOCK_TYPE, GEN1, GEN2, FLEX, LEFT, RIGHT, GRIPPER_V1, GRIPPER_V1_1, GRIPPER_V1_2, EXTENSION, MAGNETIC_BLOCK_V1 } from './constants';
2
+ import type { RunTimeCommand, LabwareLocation } from '../command/types';
3
+ import type { AddressableAreaName, CutoutFixtureId, CutoutId } from '../deck';
4
+ import type { PipetteName } from './pipettes';
5
+ export declare type RobotType = 'OT-2 Standard' | 'OT-3 Standard';
6
+ export interface RobotDefinition {
7
+ displayName: string;
8
+ robotType: RobotType;
9
+ models: string[];
10
+ }
11
+ export interface WellDefinition {
12
+ diameter?: number;
13
+ depth?: number;
14
+ height: number;
15
+ length: number;
16
+ width: number;
17
+ x: number;
18
+ y: number;
19
+ z: number;
20
+ 'total-liquid-volume': number;
21
+ }
22
+ export interface LabwareDefinition1 {
23
+ metadata: {
24
+ name: string;
25
+ format: string;
26
+ deprecated?: boolean;
27
+ displayName?: string;
28
+ displayCategory?: string;
29
+ isValidSource?: boolean;
30
+ isTiprack?: boolean;
31
+ tipVolume?: number;
32
+ };
33
+ ordering: string[][];
34
+ wells: {
35
+ [well: string]: WellDefinition;
36
+ };
37
+ }
38
+ export declare type LabwareDisplayCategory = 'wellPlate' | 'tipRack' | 'tubeRack' | 'reservoir' | 'aluminumBlock' | 'trash' | 'other' | 'adapter';
39
+ export declare type LabwareVolumeUnits = 'µL' | 'mL' | 'L';
40
+ export declare type WellBottomShape = 'flat' | 'u' | 'v';
41
+ export interface LabwareMetadata {
42
+ displayName: string;
43
+ displayCategory: LabwareDisplayCategory;
44
+ displayVolumeUnits: LabwareVolumeUnits;
45
+ tags?: string[];
46
+ }
47
+ export interface LabwareDimensions {
48
+ xDimension: number;
49
+ yDimension: number;
50
+ zDimension: number;
51
+ }
52
+ export interface Coordinates {
53
+ x: number;
54
+ y: number;
55
+ z: number;
56
+ }
57
+ export declare type LabwareOffset = Coordinates;
58
+ export interface LabwareParameters {
59
+ loadName: string;
60
+ format: string;
61
+ isTiprack: boolean;
62
+ tipLength?: number;
63
+ isMagneticModuleCompatible: boolean;
64
+ magneticModuleEngageHeight?: number;
65
+ quirks?: string[];
66
+ }
67
+ export interface LabwareBrand {
68
+ brand: string;
69
+ brandId?: string[];
70
+ links?: string[];
71
+ }
72
+ export interface CircularWellShapeProperties {
73
+ shape: 'circular';
74
+ diameter: number;
75
+ }
76
+ export interface RectangularWellShapeProperties {
77
+ shape: 'rectangular';
78
+ xDimension: number;
79
+ yDimension: number;
80
+ }
81
+ export declare type LabwareWellShapeProperties = CircularWellShapeProperties | RectangularWellShapeProperties;
82
+ export declare type LabwareWellProperties = LabwareWellShapeProperties & {
83
+ depth: number;
84
+ totalLiquidVolume: number;
85
+ };
86
+ export declare type LabwareWell = LabwareWellProperties & {
87
+ x: number;
88
+ y: number;
89
+ z: number;
90
+ };
91
+ export declare type LabwareWellMap = Record<string, LabwareWell>;
92
+ export interface LabwareWellGroupMetadata {
93
+ displayName?: string;
94
+ displayCategory?: LabwareDisplayCategory;
95
+ wellBottomShape?: WellBottomShape;
96
+ }
97
+ export interface LabwareWellGroup {
98
+ wells: string[];
99
+ metadata: LabwareWellGroupMetadata;
100
+ brand?: LabwareBrand;
101
+ }
102
+ export declare type LabwareRoles = 'labware' | 'adapter' | 'fixture' | 'maintenance';
103
+ export interface LabwareDefinition2 {
104
+ version: number;
105
+ schemaVersion: 2;
106
+ namespace: string;
107
+ metadata: LabwareMetadata;
108
+ dimensions: LabwareDimensions;
109
+ cornerOffsetFromSlot: LabwareOffset;
110
+ parameters: LabwareParameters;
111
+ brand: LabwareBrand;
112
+ ordering: string[][];
113
+ wells: LabwareWellMap;
114
+ groups: LabwareWellGroup[];
115
+ allowedRoles?: LabwareRoles[];
116
+ }
117
+ export declare type ModuleType = typeof MAGNETIC_MODULE_TYPE | typeof TEMPERATURE_MODULE_TYPE | typeof THERMOCYCLER_MODULE_TYPE | typeof HEATERSHAKER_MODULE_TYPE | typeof MAGNETIC_BLOCK_TYPE;
118
+ export declare type MagneticModuleModel = typeof MAGNETIC_MODULE_V1 | typeof MAGNETIC_MODULE_V2;
119
+ export declare type TemperatureModuleModel = typeof TEMPERATURE_MODULE_V1 | typeof TEMPERATURE_MODULE_V2;
120
+ export declare type ThermocyclerModuleModel = typeof THERMOCYCLER_MODULE_V1 | typeof THERMOCYCLER_MODULE_V2;
121
+ export declare type HeaterShakerModuleModel = typeof HEATERSHAKER_MODULE_V1;
122
+ export declare type MagneticBlockModel = typeof MAGNETIC_BLOCK_V1;
123
+ export declare type ModuleModel = MagneticModuleModel | TemperatureModuleModel | ThermocyclerModuleModel | HeaterShakerModuleModel | MagneticBlockModel;
124
+ export declare type GripperModel = typeof GRIPPER_V1 | typeof GRIPPER_V1_1 | typeof GRIPPER_V1_2;
125
+ export declare type ModuleModelWithLegacy = ModuleModel | typeof THERMOCYCLER | typeof MAGDECK | typeof TEMPDECK;
126
+ export interface Dimensions {
127
+ xDimension: number;
128
+ yDimension: number;
129
+ zDimension: number;
130
+ }
131
+ export interface DeckRobot {
132
+ model: RobotType;
133
+ }
134
+ export declare type CoordinateTuple = [number, number, number];
135
+ export declare type UnitDirection = 1 | -1;
136
+ export declare type UnitVectorTuple = [UnitDirection, UnitDirection, UnitDirection];
137
+ export declare type DeckSlotId = string;
138
+ export interface DeckSlot {
139
+ id: DeckSlotId;
140
+ position: CoordinateTuple;
141
+ matingSurfaceUnitVector?: UnitVectorTuple;
142
+ boundingBox: Dimensions;
143
+ displayName: string;
144
+ compatibleModules: ModuleType[];
145
+ }
146
+ export interface DeckCalibrationPoint {
147
+ id: string;
148
+ position: CoordinateTuple;
149
+ displayName: string;
150
+ }
151
+ export interface CutoutFixture {
152
+ id: CutoutFixtureId;
153
+ mayMountTo: CutoutId[];
154
+ displayName: string;
155
+ providesAddressableAreas: Record<CutoutId, AddressableAreaName[]>;
156
+ height: number;
157
+ }
158
+ declare type AreaType = 'slot' | 'movableTrash' | 'wasteChute' | 'fixedTrash' | 'stagingSlot';
159
+ export interface AddressableArea {
160
+ id: AddressableAreaName;
161
+ areaType: AreaType;
162
+ offsetFromCutoutFixture: CoordinateTuple;
163
+ boundingBox: Dimensions;
164
+ displayName: string;
165
+ compatibleModuleTypes: ModuleType[];
166
+ ableToDropLabware?: boolean;
167
+ ableToDropTips?: boolean;
168
+ matingSurfaceUnitVector?: UnitVectorTuple;
169
+ }
170
+ export interface DeckMetadata {
171
+ displayName: string;
172
+ tags: string[];
173
+ }
174
+ export interface DeckCutout {
175
+ id: CutoutId;
176
+ position: CoordinateTuple;
177
+ displayName: string;
178
+ }
179
+ export interface LegacyFixture {
180
+ id: string;
181
+ slot: string;
182
+ labware: string;
183
+ displayName: string;
184
+ }
185
+ export interface DeckLocations {
186
+ addressableAreas: AddressableArea[];
187
+ calibrationPoints: DeckCalibrationPoint[];
188
+ cutouts: DeckCutout[];
189
+ legacyFixtures: LegacyFixture[];
190
+ }
191
+ export interface DeckDefinition {
192
+ otId: string;
193
+ cornerOffsetFromOrigin: CoordinateTuple;
194
+ dimensions: CoordinateTuple;
195
+ robot: DeckRobot;
196
+ locations: DeckLocations;
197
+ metadata: DeckMetadata;
198
+ cutoutFixtures: CutoutFixture[];
199
+ }
200
+ export interface ModuleDimensions {
201
+ bareOverallHeight: number;
202
+ overLabwareHeight: number;
203
+ xDimension: number;
204
+ yDimension: number;
205
+ footprintXDimension?: number;
206
+ footprintYDimension?: number;
207
+ labwareInterfaceXDimension?: number;
208
+ labwareInterfaceYDimension?: number;
209
+ lidHeight?: number;
210
+ }
211
+ export interface ModuleCalibrationPoint {
212
+ x: number;
213
+ y: number;
214
+ z?: number;
215
+ }
216
+ export interface ModuleLayer {
217
+ name: string;
218
+ pathDValues: string[];
219
+ }
220
+ export interface ModuleDefinition {
221
+ moduleType: ModuleType;
222
+ model: ModuleModel;
223
+ labwareOffset: Coordinates;
224
+ dimensions: ModuleDimensions;
225
+ cornerOffsetFromSlot: Coordinates;
226
+ calibrationPoint: ModuleCalibrationPoint;
227
+ displayName: string;
228
+ quirks: string[];
229
+ slotTransforms: SlotTransforms;
230
+ compatibleWith: ModuleModel[];
231
+ twoDimensionalRendering: any;
232
+ }
233
+ export declare type AffineTransformMatrix = number[][];
234
+ export interface SlotTransforms {
235
+ [deckOtId: string]: {
236
+ [slotId: string]: {
237
+ [transformKey in keyof ModuleDefinition]?: AffineTransformMatrix;
238
+ };
239
+ };
240
+ }
241
+ export declare type ModuleOrientation = 'left' | 'right';
242
+ export declare type PipetteChannels = 1 | 8 | 96;
243
+ export declare type PipetteDisplayCategory = typeof GEN1 | typeof GEN2 | typeof FLEX;
244
+ export declare type PipetteMount = typeof LEFT | typeof RIGHT;
245
+ export declare type GantryMount = typeof LEFT | typeof RIGHT | typeof EXTENSION;
246
+ export interface FlowRateSpec {
247
+ value: number;
248
+ min: number;
249
+ max: number;
250
+ }
251
+ export interface PipetteNameSpecs {
252
+ name: string;
253
+ displayName: string;
254
+ displayCategory: PipetteDisplayCategory;
255
+ minVolume: number;
256
+ maxVolume: number;
257
+ channels: PipetteChannels;
258
+ defaultAspirateFlowRate: FlowRateSpec;
259
+ defaultDispenseFlowRate: FlowRateSpec;
260
+ defaultBlowOutFlowRate: FlowRateSpec;
261
+ defaultTipracks: string[];
262
+ smoothieConfigs?: {
263
+ stepsPerMM: number;
264
+ homePosition: number;
265
+ travelDistance: number;
266
+ };
267
+ }
268
+ export interface PipetteModelSpecs extends PipetteNameSpecs {
269
+ model: string;
270
+ backCompatNames?: string[];
271
+ tipLength: {
272
+ value: number;
273
+ };
274
+ }
275
+ export interface ProtocolMetadata {
276
+ protocolName?: string;
277
+ author?: string;
278
+ description?: string | null;
279
+ created?: number;
280
+ lastModified?: number | null;
281
+ category?: string | null;
282
+ subcategory?: string | null;
283
+ tags?: string[];
284
+ [key: string]: unknown;
285
+ }
286
+ export interface PendingProtocolAnalysis {
287
+ id: string;
288
+ status?: 'pending';
289
+ }
290
+ export interface ProtocolAnalysisSummary {
291
+ id: string;
292
+ status: 'pending' | 'completed';
293
+ }
294
+ export interface LoadedPipette {
295
+ id: string;
296
+ pipetteName: PipetteName;
297
+ mount: 'left' | 'right';
298
+ }
299
+ export interface LoadedLabware {
300
+ id: string;
301
+ loadName: string;
302
+ definitionUri: string;
303
+ location: LabwareLocation;
304
+ offsetId?: string;
305
+ displayName?: string;
306
+ }
307
+ export interface LoadedModule {
308
+ id: string;
309
+ model: ModuleModel;
310
+ location: {
311
+ slotName: string;
312
+ };
313
+ serialNumber: string;
314
+ }
315
+ export interface Liquid {
316
+ id: string;
317
+ displayName: string;
318
+ description: string;
319
+ displayColor?: string;
320
+ }
321
+ export interface AnalysisError {
322
+ id: string;
323
+ detail: string;
324
+ errorType: string;
325
+ createdAt: string;
326
+ }
327
+ export interface CompletedProtocolAnalysis {
328
+ id: string;
329
+ status?: 'completed';
330
+ result: 'ok' | 'not-ok' | 'error';
331
+ pipettes: LoadedPipette[];
332
+ labware: LoadedLabware[];
333
+ modules: LoadedModule[];
334
+ liquids: Liquid[];
335
+ commands: RunTimeCommand[];
336
+ errors: AnalysisError[];
337
+ robotType?: RobotType | null;
338
+ }
339
+ export interface ResourceFile {
340
+ name: string;
341
+ role: string;
342
+ }
343
+ export interface ProtocolResource {
344
+ id: string;
345
+ createdAt: string;
346
+ protocolType: 'json' | 'python';
347
+ robotType: RobotType;
348
+ metadata: ProtocolMetadata;
349
+ analysisSummaries: ProtocolAnalysisSummary[];
350
+ files: ResourceFile[];
351
+ key?: string;
352
+ }
353
+ export interface ProtocolAnalysesResource {
354
+ analyses: Array<PendingProtocolAnalysis | CompletedProtocolAnalysis>;
355
+ }
356
+ export declare type MotorAxis = 'x' | 'y' | 'leftZ' | 'rightZ' | 'leftPlunger' | 'rightPlunger' | 'extensionZ' | 'extensionJaw';
357
+ export declare type MotorAxes = MotorAxis[];
358
+ export declare type ThermalAdapterName = 'PCR Adapter' | 'Deep Well Adapter' | '96 Flat Bottom Adapter' | 'Universal Flat Adapter';
359
+ export interface GripperDefinition {
360
+ $otSharedSchema: string;
361
+ model: GripperModel;
362
+ schemaVersion: number;
363
+ displayName: string;
364
+ zMotorConfigurations: {
365
+ idle: number;
366
+ run: number;
367
+ };
368
+ jawMotorConfigurations: {
369
+ vref: number;
370
+ };
371
+ gripForceProfile: {
372
+ polynomial: [[number, number], [number, number]];
373
+ defaultGripForce: number;
374
+ defaultHomeForce: number;
375
+ defaultIdleForce: number;
376
+ min: number;
377
+ max: number;
378
+ };
379
+ geometry: {
380
+ baseOffsetFromMount: [number, number, number];
381
+ jawCenterOffsetFromBase: [number, number, number];
382
+ pinOneOffsetFromBase: [number, number, number];
383
+ pinTwoOffsetFromBase: [number, number, number];
384
+ jawWidth: {
385
+ min: number;
386
+ max: number;
387
+ };
388
+ maxAllowedGripError: number;
389
+ };
390
+ }
391
+ export declare type StatusBarAnimation = 'idle' | 'confirm' | 'updating' | 'disco' | 'off';
392
+ export declare type StatusBarAnimations = StatusBarAnimation[];
393
+ export interface CutoutConfig {
394
+ cutoutId: CutoutId;
395
+ cutoutFixtureId: CutoutFixtureId | null;
396
+ }
397
+ export declare type DeckConfiguration = CutoutConfig[];
398
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentrons/shared-data",
3
- "version": "0.1.2-alpha.0",
3
+ "version": "0.1.2-alpha.1",
4
4
  "description": "Shared system definitions and utilities for Opentrons robots and software",
5
5
  "repository": {
6
6
  "type": "git",