Fix and rebuild doc

This commit is contained in:
omuretsu
2023-04-07 07:49:11 -04:00
parent 4ade263ae8
commit f74002cce0
16 changed files with 192 additions and 13 deletions

View File

@@ -0,0 +1,24 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyPositionInfo](./bitburner.companypositioninfo.md)
## CompanyPositionInfo interface
Company position requirements and salary.
**Signature:**
```typescript
export interface CompanyPositionInfo
```
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [name](./bitburner.companypositioninfo.name.md) | | [JobName](./bitburner.jobname.md) | |
| [nextPosition](./bitburner.companypositioninfo.nextposition.md) | | [JobName](./bitburner.jobname.md) \| null | |
| [requiredReputation](./bitburner.companypositioninfo.requiredreputation.md) | | number | |
| [requiredSkills](./bitburner.companypositioninfo.requiredskills.md) | | [Skills](./bitburner.skills.md) | |
| [salary](./bitburner.companypositioninfo.salary.md) | | number | |

View File

@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyPositionInfo](./bitburner.companypositioninfo.md) &gt; [name](./bitburner.companypositioninfo.name.md)
## CompanyPositionInfo.name property
**Signature:**
```typescript
name: JobName;
```

View File

@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyPositionInfo](./bitburner.companypositioninfo.md) &gt; [nextPosition](./bitburner.companypositioninfo.nextposition.md)
## CompanyPositionInfo.nextPosition property
**Signature:**
```typescript
nextPosition: JobName | null;
```

View File

@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyPositionInfo](./bitburner.companypositioninfo.md) &gt; [requiredReputation](./bitburner.companypositioninfo.requiredreputation.md)
## CompanyPositionInfo.requiredReputation property
**Signature:**
```typescript
requiredReputation: number;
```

View File

@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyPositionInfo](./bitburner.companypositioninfo.md) &gt; [requiredSkills](./bitburner.companypositioninfo.requiredskills.md)
## CompanyPositionInfo.requiredSkills property
**Signature:**
```typescript
requiredSkills: Skills;
```

View File

@@ -0,0 +1,11 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [CompanyPositionInfo](./bitburner.companypositioninfo.md) &gt; [salary](./bitburner.companypositioninfo.salary.md)
## CompanyPositionInfo.salary property
**Signature:**
```typescript
salary: number;
```

View File

@@ -31,6 +31,7 @@
| [Bladeburner](./bitburner.bladeburner.md) | Bladeburner API |
| [BladeburnerCurAction](./bitburner.bladeburnercuraction.md) | Bladeburner current action. |
| [CodingContract](./bitburner.codingcontract.md) | Coding Contract API |
| [CompanyPositionInfo](./bitburner.companypositioninfo.md) | Company position requirements and salary. |
| [CorpConstants](./bitburner.corpconstants.md) | Corporation related constants |
| [CorpIndustryData](./bitburner.corpindustrydata.md) | Data for an individual industry |
| [CorpMaterialConstantData](./bitburner.corpmaterialconstantdata.md) | Corporation material information |

View File

@@ -0,0 +1,43 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Singularity](./bitburner.singularity.md) &gt; [getCompanyPositionInfo](./bitburner.singularity.getcompanypositioninfo.md)
## Singularity.getCompanyPositionInfo() method
Get Requirements for Company Position.
**Signature:**
```typescript
getCompanyPositionInfo(companyName: string, positionName: JobName): CompanyPositionInfo;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| companyName | string | Name of company to get the requirements for. Must be an exact match. |
| positionName | [JobName](./bitburner.jobname.md) | Name of position to get the requirements for. Must be an exact match. |
**Returns:**
[CompanyPositionInfo](./bitburner.companypositioninfo.md)
CompanyPositionInfo object.
## 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);
```

View File

@@ -0,0 +1,54 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [Singularity](./bitburner.singularity.md) &gt; [getCompanyPositions](./bitburner.singularity.getcompanypositions.md)
## Singularity.getCompanyPositions() method
Get List of Company Positions.
**Signature:**
```typescript
getCompanyPositions(companyName: string): JobName[];
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| companyName | string | Name of company to get the position list for. Must be an exact match. |
**Returns:**
[JobName](./bitburner.jobname.md)<!-- -->\[\]
The position list if the company name is valid.
## Remarks
RAM cost: 2 GB \* 16/4/1
This function will return a list of positions at a specific company.
This function will return the position list if the company name is valid.
## Example 1
```js
// NS1:
var COMPANY_NAME = "Noodle Bar";
var jobList = singularity.getCompanyPositions(COMPANY_NAME);
```
## Example 2
```js
// NS2:
const COMPANY_NAME = "Noodle Bar";
let jobList = ns.singularity.getCompanyPositions(COMPANY_NAME);
```

View File

@@ -38,6 +38,8 @@ This API requires Source-File 4 to use. The RAM cost of all these functions is m
| [getAugmentationStats(name)](./bitburner.singularity.getaugmentationstats.md) | Get the stats of an augmentation. |
| [getCompanyFavor(companyName)](./bitburner.singularity.getcompanyfavor.md) | Get company favor. |
| [getCompanyFavorGain(companyName)](./bitburner.singularity.getcompanyfavorgain.md) | Get company favor gain. |
| [getCompanyPositionInfo(companyName, positionName)](./bitburner.singularity.getcompanypositioninfo.md) | Get Requirements for Company Position. |
| [getCompanyPositions(companyName)](./bitburner.singularity.getcompanypositions.md) | Get List of Company Positions. |
| [getCompanyRep(companyName)](./bitburner.singularity.getcompanyrep.md) | Get company reputation. |
| [getCrimeChance(crime)](./bitburner.singularity.getcrimechance.md) | Get chance to successfully commit a crime. |
| [getCrimeStats(crime)](./bitburner.singularity.getcrimestats.md) | Get stats related to a crime. |

View File

@@ -15,7 +15,7 @@ getNumSleeves(): number;
number
number of duplicate sleeves the player has.
Number of duplicate sleeves the player has.
## Remarks

View File

@@ -28,7 +28,7 @@ If you are not in BitNode-10, then you must have Source-File 10 in order to use
| [getSleevePurchasableAugs(sleeveNumber)](./bitburner.sleeve.getsleevepurchasableaugs.md) | List purchasable augs for a sleeve. |
| [getTask(sleeveNumber)](./bitburner.sleeve.gettask.md) | Get task of a sleeve. |
| [purchaseSleeveAug(sleeveNumber, augName)](./bitburner.sleeve.purchasesleeveaug.md) | Purchase an aug for a sleeve. |
| [setToBladeburnerAction(sleeveNumber, action, contract)](./bitburner.sleeve.settobladeburneraction.md) | Set a sleeve to perform bladeburner actions. |
| [setToBladeburnerAction(sleeveNumber, action, contract)](./bitburner.sleeve.settobladeburneraction.md) | Set a sleeve to perform Bladeburner actions. |
| [setToCommitCrime(sleeveNumber, crimeType)](./bitburner.sleeve.settocommitcrime.md) | Set a sleeve to commit crime. |
| [setToCompanyWork(sleeveNumber, companyName)](./bitburner.sleeve.settocompanywork.md) | Set a sleeve to work for a company. |
| [setToFactionWork(sleeveNumber, factionName, factionWorkType)](./bitburner.sleeve.settofactionwork.md) | Set a sleeve to work for a faction. |

View File

@@ -4,7 +4,7 @@
## Sleeve.setToBladeburnerAction() method
Set a sleeve to perform bladeburner actions.
Set a sleeve to perform Bladeburner actions.
**Signature:**
@@ -16,7 +16,7 @@ setToBladeburnerAction(sleeveNumber: number, action: string, contract?: string):
| Parameter | Type | Description |
| --- | --- | --- |
| sleeveNumber | number | Index of the sleeve to workout at the gym. |
| sleeveNumber | number | Index of the sleeve to perform a Bladeburner action. |
| action | string | Name of the action to be performed. |
| contract | string | _(Optional)_ Name of the contract if applicable. |
@@ -24,11 +24,11 @@ setToBladeburnerAction(sleeveNumber: number, action: string, contract?: string):
boolean
True if the sleeve started working out, false otherwise.
True if the sleeve started the given Bladeburner action, false otherwise.
## Remarks
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve started working out.
Return a boolean indicating whether or not the sleeve started a Bladeburner action.

View File

@@ -23,11 +23,11 @@ setToCompanyWork(sleeveNumber: number, companyName: string): boolean;
boolean
True if the sleeve started working on this company, false otherwise.
True if the sleeve started working for this company, false otherwise.
## Remarks
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve started working or this company.
Return a boolean indicating whether or not the sleeve started working for a company.

View File

@@ -28,11 +28,11 @@ setToFactionWork(
boolean \| undefined
True if the sleeve started working on this faction, false otherwise, can also throw on errors
True if the sleeve started working for this faction, false otherwise. Can also throw on errors.
## Remarks
RAM cost: 4 GB
Return a boolean indicating whether or not the sleeve started working or this faction.
Return a boolean indicating whether or not the sleeve started working for a faction.

View File

@@ -1747,7 +1747,7 @@ export interface Singularity {
* @param companyName - Name of company to get the position list for. Must be an exact match.
* @returns The position list if the company name is valid.
*/
getCompanyPositions(companyName: string): CompanyPosName[];
getCompanyPositions(companyName: string): JobName[];
/**
* Work for a company.
@@ -2389,8 +2389,8 @@ export interface Singularity {
* @returns - An object representing the requirements and salary for a company/position combination.
*/
export interface CompanyPositionInfo {
name: CompanyPosName;
nextPosition: CompanyPosName | null;
name: JobName;
nextPosition: JobName | null;
salary: number;
requiredReputation: number;
requiredSkills: Skills;