SINGULARITY: getCompanyPositionInfo (#460)

This commit is contained in:
T.J. Eckman
2023-04-04 12:00:54 -04:00
committed by GitHub
parent 8d52e1b510
commit 677686fa20
3 changed files with 77 additions and 1 deletions

View File

@@ -1698,6 +1698,28 @@ export interface Singularity {
*/
getUpgradeHomeCoresCost(): number;
/**
* Get Requirements for Company Position.
* @remarks
* RAM cost: 2 GB * 16/4/1
*
*
* This function will return an object that contains the requirements for
* a specific position at a specific country.
*
* @example
* ```js
* const companyName = "ECorp";
* const position = "Chief Executive Officer";
*
* let requirements = ns.singularity.getCompanyPositionInfo(companyName, position);
* ```
* @param companyName - Name of company to get the requirements for. Must be an exact match.
* @param positionName - Name of position to get the requirements for. Must be an exact match.
* @returns CompanyPositionInfo object.
*/
getCompanyPositionInfo(companyName: string, positionName: JobName): CompanyPositionInfo;
/**
* Get List of Company Positions.
* @remarks
@@ -2361,6 +2383,19 @@ export interface Singularity {
getCurrentWork(): any | null;
}
/**
* Company position requirements and salary.
* @public
* @returns - An object representing the requirements and salary for a company/position combination.
*/
export interface CompanyPositionInfo {
name: CompanyPosName;
nextPosition: CompanyPosName | null;
salary: number;
requiredReputation: number;
requiredSkills: Skills;
}
/**
* Hacknet API
* @remarks