Skip to content

Commit 494579d

Browse files
committed
chore: add ts types
1 parent 4744958 commit 494579d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

shared-data/command/types/setup.ts

+39
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,37 @@ export type NonStackedLocation =
144144
export interface ModuleLocation {
145145
slotName: string
146146
}
147+
148+
export interface OnLabwareLocationSequenceComponent {
149+
kind: 'onLabware'
150+
labwareId: string
151+
lidId: string | null
152+
}
153+
154+
export interface OnModuleLocationSequenceComponent {
155+
kind: 'onModule'
156+
moduleId: string
157+
}
158+
159+
export interface OnAddressableAreaLocationSequenceComponent {
160+
kind: 'onAddressableArea'
161+
addressableAreaName: string
162+
slotName: string | null
163+
}
164+
165+
export interface NotOnDeckLocationSequenceCompoennt {
166+
kind: 'notOnDeck'
167+
logicalLocationName: 'offDeck' | 'systemLocation'
168+
}
169+
170+
export type LocationSequenceComponent =
171+
| OnLabwareLocationSequenceComponent
172+
| OnModuleLocationSequenceComponent
173+
| OnAddressableAreaLocationSequenceComponent
174+
| NotOnDeckLocationSequenceCompoennt
175+
176+
export type LabwareLocationSequence = LocationSequenceComponent[]
177+
147178
export interface LoadPipetteParams {
148179
pipetteName: string
149180
pipetteId: string
@@ -166,10 +197,12 @@ interface LoadLabwareResult {
166197
// todo(mm, 2024-08-19): This does not match the server-returned offsetId field.
167198
// Confirm nothing client-side is trying to use this, then replace it with offsetId.
168199
offset: LabwareOffset
200+
locationSequence?: LabwareLocationSequence
169201
}
170202
interface ReloadLabwareResult {
171203
labwareId: string
172204
offsetId?: string | null
205+
locationSequence?: LabwareLocationSequence
173206
}
174207

175208
export type LabwareMovementStrategy =
@@ -184,6 +217,9 @@ export interface MoveLabwareParams {
184217
}
185218
interface MoveLabwareResult {
186219
offsetId: string
220+
eventualDestinationLocationSequence?: LabwareLocationSequence
221+
immediateDestinationLocationSequence?: LabwareLocationSequence
222+
originLocationSequence?: LabwareLocationSequence
187223
}
188224
interface LoadModuleParams {
189225
moduleId?: string
@@ -238,6 +274,8 @@ interface LoadLidStackResult {
238274
labwareIds: string[]
239275
definition: LabwareDefinition2
240276
location: LabwareLocation
277+
stackLocationSequence?: LabwareLocationSequence
278+
locationSequences?: LabwareLocationSequence[]
241279
}
242280

243281
interface LoadLidParams {
@@ -250,4 +288,5 @@ interface LoadLidParams {
250288
interface LoadLidResult {
251289
labwareId: string
252290
definition: LabwareDefinition2
291+
locationSequence?: LabwareLocationSequence
253292
}

0 commit comments

Comments
 (0)