ts-force-config.json
Generated Typescript classes for Salesforce
| Type | object |
|---|---|
| File match |
ts-force-config.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/ts-force-config-json/latest.json |
| Source | https://www.schemastore.org/ts-force-config.json |
Validate with Lintel
npx @lintel/lintel check
Properties
8 nested properties
If using sfdx-cli auth, this is the only property needed to authenticate.
Otherwise, supply additional oAuth parameters
Make picklist fields strongly typed to generated enums. generatePicklists must also be true
ALL: for all picklist fields, regardless of salesforce enforcement
RESTRICTED: only on fields where the values are restricted on Salesforce
Flag to generate enums for picklist fields. Defaulted to false
The path to generate files to.
If the destination is a folder, it will generate one file per object.
If the destination is a .ts file, a single file will be generated.
If not set, class output will be logged to stdout
The SObjects to generate classes for. Can either be a string or an SObjectConfig object
Definitions
If using sfdx-cli auth, this is the only property needed to authenticate.
Otherwise, supply additional oAuth parameters
The Target SObject API name
The generated class property name
Object used to configure advanced settings on SObject generation
The Target SObject API name
Defaulted to true. If set to false, names will NOT be auto-converted to standard javascript conventions
The generated class name. If not set, it will be automatically converted to standard javascript Class convention
Overrides Global Setting
The path to generate files to.
If the destination is a folder, it will generate one file per object.
If the destination is a .ts file, a single file will be generated.
If not set, class output will be logged to stdout
List of field mappings to override the auto-conversion
Overrides Global Setting
Make picklist fields strongly typed to generated enums. generatePicklists must also be true
ALL: for all picklist fields, regardless of salesforce enforcement
RESTRICTED: only on fields where the values are restricted on Salesforce