Skip to content

Commit

Permalink
chore(api-client): add module compatibility returns
Browse files Browse the repository at this point in the history
This is a FE middleware side of adding module compatibility - we have to
know about it.
  • Loading branch information
sfoster1 committed May 14, 2024
1 parent 90dc748 commit 788e022
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api-client/src/modules/__fixtures__/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const mockModulesResponse = [
hasAvailableUpdate: false,
moduleType: 'thermocyclerModuleType',
moduleModel: 'thermocyclerModuleV1',
compatibleWithRobot: true,
data: {
status: 'holding at target',
currentTemperature: 3.0,
Expand All @@ -31,6 +32,7 @@ export const mockModulesResponse = [
hasAvailableUpdate: false,
moduleType: 'heaterShakerModuleType',
moduleModel: 'heaterShakerModuleV1',
compatibleWithRobot: true,
data: {
status: 'idle',
labwareLatchStatus: 'idle_unknown',
Expand All @@ -55,6 +57,7 @@ export const mockModulesResponse = [
hasAvailableUpdate: false,
moduleType: 'temperatureModuleType',
moduleModel: 'temperatureModuleV1',
compatibleWithRobot: true,
data: {
status: 'holding at target',
currentTemperature: 3.0,
Expand All @@ -75,6 +78,7 @@ export const mockModulesResponse = [
hasAvailableUpdate: false,
moduleType: 'magneticModuleType',
moduleModel: 'magneticModuleV1',
compatibleWithRobot: true,
data: {
status: 'engaged',
engaged: true,
Expand Down
1 change: 1 addition & 0 deletions api-client/src/modules/api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface ApiBaseModule {
firmwareVersion: string
hasAvailableUpdate: boolean
usbPort: PhysicalPort
compatibleWithRobot?: boolean
moduleOffset?: ModuleOffset
}

Expand Down

0 comments on commit 788e022

Please sign in to comment.