Skip to content

Commit

Permalink
types for load lid and load lid stack commands
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Jan 8, 2025
1 parent 204abed commit fab12a7
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions shared-data/command/types/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,24 @@ export interface LoadLabwareRunTimeCommand
LoadLabwareCreateCommand {
result?: LoadLabwareResult
}
export interface LoadLidCreateCommand extends CommonCommandCreateInfo {
commandType: 'loadLid'
params: LoadLidParams
}
export interface LoadLidRunTimeCommand
extends CommonCommandRunTimeInfo,
LoadLidCreateCommand {
result?: LoadLidResult
}
export interface LoadLidStackCreateCommand extends CommonCommandCreateInfo {
commandType: 'loadLidStack'
params: LoadLidStackParams
}
export interface LoadLidStackRunTimeCommand
extends CommonCommandRunTimeInfo,
LoadLidStackCreateCommand {
result?: LoadLidStackResult
}
export interface ReloadLabwareCreateCommand extends CommonCommandCreateInfo {
commandType: 'reloadLabware'
params: { labwareId: string }
Expand Down Expand Up @@ -89,6 +107,8 @@ export type SetupRunTimeCommand =
| LoadModuleRunTimeCommand
| LoadLiquidRunTimeCommand
| MoveLabwareRunTimeCommand
| LoadLidRunTimeCommand
| LoadLidStackRunTimeCommand

export type SetupCreateCommand =
| ConfigureNozzleLayoutCreateCommand
Expand All @@ -98,6 +118,8 @@ export type SetupCreateCommand =
| LoadModuleCreateCommand
| LoadLiquidCreateCommand
| MoveLabwareCreateCommand
| LoadLidCreateCommand
| LoadLidRunTimeCommand

export type LabwareLocation =
| 'offDeck'
Expand Down Expand Up @@ -202,3 +224,30 @@ interface ConfigureNozzleLayoutParams {
pipetteId: string
configurationParams: NozzleConfigurationParams
}

interface LoadLidStackParams {
location: LabwareLocation
loadName: string
namespace: string
version: number
quantity: number
}

interface LoadLidStackResult {
stackLabwareId: string
labwareIds: string[]
definition: LabwareDefinition2
location: LabwareLocation
}

interface LoadLidParams {
location: LabwareLocation
loadName: string
namespace: string
version: number
}

interface LoadLidResult {
labwareId: string
definition: LabwareDefinition2
}

0 comments on commit fab12a7

Please sign in to comment.