Merge pull request #2809 from pd/corp-api-leftovers

Corp API: Add setSmartSupplyUseLeftovers
This commit is contained in:
hydroflame
2022-01-26 00:31:58 -05:00
committed by GitHub
2 changed files with 19 additions and 0 deletions

View File

@@ -6255,6 +6255,14 @@ export interface WarehouseAPI {
* @param enabled - smart supply enabled
*/
setSmartSupply(divisionName: string, cityName: string, enabled: boolean): void;
/**
* Set whether smart supply uses leftovers before buying
* @param divisionName - Name of the division
* @param cityName - Name of the city
* @param materialName - Name of the material
* @param enabled - smart supply use leftovers enabled
*/
setSmartSupplyUseLeftovers(divisionName: string, cityName: string, materialName: string, enabled: boolean): void;
/**
* Set material buy data
* @param divisionName - Name of the division