Options
Options are used to instantiate the EntityManager
Constructor
constructor
constructor(parameters: object): Options
Parameters:
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| parameters | object | Yes | - | |
| parameters.endpoint | string | Yes | - | The api endpoint without api version (i.e. https://api.adsum.io ) |
| parameters.username | string | Yes | - | he username in format {id}-user and {id}-device for respectively an user and a device with {id} it's actual id |
| parameters.key | string | Yes | - | The username's specific api key |
| parameters.site | int | Yes | - | The site id |
| parameters.locale | string | null | No | null | The main local to load, if null it will load the default locale |
| parameters.state | enum(STATES) | No | STATES.PUBLISHED | |
| parameters.logger | AdactiveLogger.LoggerInterface | No | AdactiveLogger.ConsoleLogger | |
| parameters.cacheManager | null | CacheManager | No | null |
