@opentrons/step-generation 0.3.0-alpha.0 → 0.3.1-alpha.0

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 (38) hide show
  1. package/README.md +1 -1
  2. package/lib/commandCreators/atomic/__tests__/vacuumCloseVent.test.d.ts +1 -0
  3. package/lib/commandCreators/atomic/__tests__/vacuumOpenVent.test.d.ts +1 -0
  4. package/lib/commandCreators/atomic/__tests__/vacuumSetPumpPower.test.d.ts +1 -0
  5. package/lib/commandCreators/atomic/__tests__/vacuumSetPumpPressure.test.d.ts +1 -0
  6. package/lib/commandCreators/atomic/__tests__/vacuumStartRunProfile.test.d.ts +1 -0
  7. package/lib/commandCreators/atomic/__tests__/vacuumStopPump.test.d.ts +1 -0
  8. package/lib/commandCreators/atomic/index.d.ts +6 -0
  9. package/lib/commandCreators/atomic/vacuumCloseVent.d.ts +2 -0
  10. package/lib/commandCreators/atomic/vacuumOpenVent.d.ts +3 -0
  11. package/lib/commandCreators/atomic/vacuumSetPumpPower.d.ts +2 -0
  12. package/lib/commandCreators/atomic/vacuumSetPumpPressure.d.ts +2 -0
  13. package/lib/commandCreators/atomic/vacuumStartRunProfile.d.ts +3 -0
  14. package/lib/commandCreators/atomic/vacuumStopPump.d.ts +3 -0
  15. package/lib/commandCreators/index.d.ts +1 -1
  16. package/lib/constants.d.ts +4 -1
  17. package/lib/errorCreators.d.ts +3 -0
  18. package/lib/getNextRobotStateAndWarnings/__tests__/forSetTipState.test.d.ts +1 -0
  19. package/lib/getNextRobotStateAndWarnings/__tests__/vacuumUpdates.test.d.ts +1 -0
  20. package/lib/getNextRobotStateAndWarnings/forSetTipState.d.ts +3 -0
  21. package/lib/getNextRobotStateAndWarnings/forWaitForTasks.d.ts +2 -1
  22. package/lib/getNextRobotStateAndWarnings/thermocyclerUpdates.d.ts +2 -2
  23. package/lib/getNextRobotStateAndWarnings/vacuumUpdates.d.ts +9 -0
  24. package/lib/index.cjs +107 -162
  25. package/lib/index.d.ts +1 -1
  26. package/lib/index.mjs +7421 -9903
  27. package/lib/types.d.ts +110 -15
  28. package/lib/utils/__tests__/getModuleHasLiveTask.test.d.ts +1 -0
  29. package/lib/utils/__tests__/getPipetteCriticalPoint.test.d.ts +1 -0
  30. package/lib/utils/getModuleHasLiveTask.d.ts +2 -0
  31. package/lib/utils/getPipetteCriticalPoint.d.ts +3 -0
  32. package/lib/utils/index.d.ts +2 -1
  33. package/lib/utils/safePipetteMovements.d.ts +3 -7
  34. package/lib/utils/vacuumPythonArgs/__tests__/getVacuumProfileStepString.test.d.ts +1 -0
  35. package/lib/utils/vacuumPythonArgs/__tests__/getVacuumPumpHoldArgsPython.test.d.ts +1 -0
  36. package/lib/utils/vacuumPythonArgs/getVacuumProfileStepString.d.ts +2 -0
  37. package/lib/utils/vacuumPythonArgs/getVacuumPumpHoldArgsPython.d.ts +1 -0
  38. package/package.json +3 -3
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ## Version
10
10
 
11
- `0.3.0-alpha.0`
11
+ `0.3.1-alpha.0`
12
12
 
13
13
  ## License
14
14
 
@@ -33,4 +33,10 @@ export { thermocyclerStartRunExtendedProfile } from './thermocyclerStartRunExten
33
33
  export { prepareToAspirate } from './prepareToAspirate';
34
34
  export { setTemperature } from './setTemperature';
35
35
  export { touchTip } from './touchTip';
36
+ export { vacuumCloseVent } from './vacuumCloseVent';
37
+ export { vacuumOpenVent } from './vacuumOpenVent';
38
+ export { vacuumSetPumpPower } from './vacuumSetPumpPower';
39
+ export { vacuumSetPumpPressure } from './vacuumSetPumpPressure';
40
+ export { vacuumStartRunProfile } from './vacuumStartRunProfile';
41
+ export { vacuumStopPump } from './vacuumStopPump';
36
42
  export { waitForTemperature } from './waitForTemperature';
@@ -0,0 +1,2 @@
1
+ import type { CommandCreator, VacuumCloseVentArgs } from '../../types';
2
+ export declare const vacuumCloseVent: CommandCreator<VacuumCloseVentArgs>;
@@ -0,0 +1,3 @@
1
+ import type { VacuumModuleOpenVentCreateCommand } from '@opentrons/shared-data';
2
+ import type { CommandCreator } from '../../types';
3
+ export declare const vacuumOpenVent: CommandCreator<VacuumModuleOpenVentCreateCommand['params']>;
@@ -0,0 +1,2 @@
1
+ import type { CommandCreator, VacuumPumpPowerArgs } from '../../types';
2
+ export declare const vacuumSetPumpPower: CommandCreator<VacuumPumpPowerArgs>;
@@ -0,0 +1,2 @@
1
+ import type { CommandCreator, VacuumPumpPressureArgs } from '../../types';
2
+ export declare const vacuumSetPumpPressure: CommandCreator<VacuumPumpPressureArgs>;
@@ -0,0 +1,3 @@
1
+ import type { VacuumModuleStartRunProfileCreateCommand } from '@opentrons/shared-data';
2
+ import type { CommandCreator } from '../../types';
3
+ export declare const vacuumStartRunProfile: CommandCreator<VacuumModuleStartRunProfileCreateCommand['params']>;
@@ -0,0 +1,3 @@
1
+ import type { VacuumModuleStopPumpCreateCommand } from '@opentrons/shared-data';
2
+ import type { CommandCreator } from '../../types';
3
+ export declare const vacuumStopPump: CommandCreator<VacuumModuleStopPumpCreateCommand['params']>;
@@ -1,2 +1,2 @@
1
1
  export { absorbanceReaderCloseInitialize, absorbanceReaderCloseRead, consolidate, distribute, dropTipInTrash, dropTipInWasteChute, heaterShaker, mix, replaceTip, thermocyclerProfileStep, thermocyclerStateStep, transfer, waitForModuleTask, } from './compound';
2
- export { absorbanceReaderCloseLid, absorbanceReaderInitialize, absorbanceReaderOpenLid, absorbanceReaderRead, aspirate, blowOutInWell, captureImage, comment, deactivateTemperature, delay, disengageMagnet, dispense, dropTip, dropTipInPlace, engageMagnet, flexStackerEmpty, flexStackerFillItems, flexStackerRetrieve, flexStackerStore, moveLabware, moveToAddressableArea, moveToAddressableAreaForDropTip, setTemperature, touchTip, waitForTemperature, } from './atomic';
2
+ export { absorbanceReaderCloseLid, absorbanceReaderInitialize, absorbanceReaderOpenLid, absorbanceReaderRead, aspirate, blowOutInWell, captureImage, comment, deactivateTemperature, delay, disengageMagnet, dispense, dropTip, dropTipInPlace, engageMagnet, flexStackerEmpty, flexStackerFillItems, flexStackerRetrieve, flexStackerStore, moveLabware, moveToAddressableArea, moveToAddressableAreaForDropTip, setTemperature, touchTip, vacuumCloseVent, vacuumOpenVent, vacuumSetPumpPower, vacuumSetPumpPressure, vacuumStartRunProfile, vacuumStopPump, waitForTemperature, } from './atomic';
@@ -47,9 +47,12 @@ export declare const VACUUM_MODE_POWER: 'power';
47
47
  export declare const VACUUM_MODE_PRESSURE: 'pressure';
48
48
  export declare const VACUUM_PROGRAM_STATE: 'state';
49
49
  export declare const VACUUM_PROGRAM_PROFILE: 'profile';
50
- export declare const VACUUM_STATE_PUMP: 'pump';
50
+ export declare const VACUUM_STATE_PUMP_OFF: 'pumpOff';
51
+ export declare const VACUUM_STATE_PUMP_ON: 'pumpOn';
51
52
  export declare const VACUUM_STATE_VENT: 'vent';
52
53
  export declare const VACUUM_VENT_SET_OPEN: 'open';
53
54
  export declare const VACUUM_VENT_SET_CLOSED: 'closed';
54
55
  export declare const VACUUM_MIN_PRESSURE_MBAR = 0.1;
55
56
  export declare const VACUUM_MAX_PRESSURE_MBAR = 1000;
57
+ export declare const VACUUM_DEACTIVATED: 'VACUUM_DEACTIVATED';
58
+ export declare const VACUUM_AT_TARGET: 'VACUUM_AT_TARGET';
@@ -87,3 +87,6 @@ export declare const stackTooHigh: (args: {
87
87
  export declare const tooManyTips: () => CommandCreatorError;
88
88
  export declare const incompletePickup: () => CommandCreatorError;
89
89
  export declare const labwareOnHopper: () => CommandCreatorError;
90
+ export declare const missingPumpActivity: () => CommandCreatorError;
91
+ export declare const invalidWaitCondition: (waitCondition: string) => CommandCreatorError;
92
+ export declare const liveTaskError: () => CommandCreatorError;
@@ -0,0 +1,3 @@
1
+ import type { SetTipStateParams } from '@opentrons/shared-data';
2
+ import type { InvariantContext, RobotStateAndWarnings } from '../types';
3
+ export declare function forSetTipState(params: SetTipStateParams, _invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings): void;
@@ -1,3 +1,4 @@
1
- import type { WaitForTasksParams } from '@opentrons/shared-data';
1
+ import type { ModuleType, WaitForTasksParams } from '@opentrons/shared-data';
2
2
  import type { InvariantContext, RobotStateAndWarnings } from '../types';
3
3
  export declare function forWaitForTasks(params: WaitForTasksParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings): void;
4
+ export declare const handleWaitForTaskForModules: (taskId: string, robotStateAndWarnings: RobotStateAndWarnings, moduleType?: ModuleType) => boolean;
@@ -1,6 +1,6 @@
1
1
  import type { TCExtendedProfileParams, TCStartExtendedProfileParams } from '@opentrons/shared-data';
2
2
  import type { ModuleOnlyParams, TCProfileParams, TemperatureParams, ThermocyclerSetTargetBlockTemperatureParams } from '@opentrons/shared-data/protocol/types/schemaV6/command/module';
3
- import type { InvariantContext, RobotStateAndWarnings } from '../types';
3
+ import type { InvariantContext, RobotStateAndWarnings, ThermocyclerModuleState } from '../types';
4
4
  export declare const forThermocyclerSetTargetBlockTemperature: (params: ThermocyclerSetTargetBlockTemperatureParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
5
5
  export declare const forThermocyclerSetTargetLidTemperature: (params: TemperatureParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
6
6
  export declare const forThermocyclerAwaitBlockTemperature: (params: ModuleOnlyParams, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
@@ -19,4 +19,4 @@ export declare const forThermocyclerStartRunExtendedProfile: (params: TCStartExt
19
19
  * This returns `true` if this task was found to be a Thermocycler-related task.
20
20
  * If it's not a Thermocycler-related task, this returns `false` and no-ops.
21
21
  */
22
- export declare const handleWaitForTaskForThermocyclers: (taskId: string, invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => boolean;
22
+ export declare const handleWaitForTaskForThermocyclers: (thermocyclerModuleState: ThermocyclerModuleState) => boolean;
@@ -0,0 +1,9 @@
1
+ import type { VacuumModuleOpenVentCreateCommand, VacuumModuleSetTargetPowerCreateCommand, VacuumModuleSetTargetPressureCreateCommand, VacuumModuleStartRunProfileCreateCommand, VacuumModuleStopPumpCreateCommand } from '@opentrons/shared-data';
2
+ import type { InvariantContext, RobotStateAndWarnings, VacuumModuleState } from '../types';
3
+ export declare const forVacuumOpenVent: (params: VacuumModuleOpenVentCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
4
+ export declare const forVacuumCloseVent: (params: VacuumModuleOpenVentCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
5
+ export declare const forVacuumSetPumpPressure: (params: VacuumModuleSetTargetPressureCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
6
+ export declare const forVacuumSetPumpPower: (params: VacuumModuleSetTargetPowerCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
7
+ export declare const forVacuumStopPump: (params: VacuumModuleStopPumpCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
8
+ export declare const forVacuumStartRunProfile: (params: VacuumModuleStartRunProfileCreateCommand['params'], invariantContext: InvariantContext, robotStateAndWarnings: RobotStateAndWarnings) => void;
9
+ export declare const handleWaitForTaskForVacuums: (vacuumModuleState: VacuumModuleState) => boolean;