Skip to content

IConfigItem

Defined in: src/types/IConfigItem.ts:8

Interface for configuration items fetched from a database config table.

accessor: AccessorType

Defined in: src/types/IAccessorInfo.ts:12

Type of the clients allowed to access this configuration item. Either “system”, “application” or “all”. See AccessorType enumeration.

"application"

IAccessorInfo.accessor


optional appAccess?: number | null

Defined in: src/types/IAccessorInfo.ts:19

Bitwise value of client config flags which specifies which application clients have access to this configuration item. Has no affect if accessor is set to a value other than "application".

null

IAccessorInfo.appAccess


optional id?: number | null

Defined in: src/types/IConfigItem.ts:12

Record ID.


key: string

Defined in: src/types/IConfigItem.ts:16

Dot-notation of the configuration item as an object property.


type: ValueType

Defined in: src/types/IConfigItem.ts:21

Data type of the configuration item. See ValueType enumeration for possible values.


listType: ListType

Defined in: src/types/IConfigItem.ts:27

Specifies the type of value list, indicating whether it’s an array or comma separated list. Set to "none" if the value is not a list. See ListType enumeration for possible values. Default: "none"


optional value?: string | null

Defined in: src/types/IConfigItem.ts:32

Configuration item’s value to be parsed into specified type.

null

optional options?: string | null

Defined in: src/types/IConfigItem.ts:36

Comma-delimited list of possible values for this configuration.


optional defaultValue?: string | null

Defined in: src/types/IConfigItem.ts:41

Initial (factory) value of the configuration. This should be used for reverting the configuration.


editable: boolean

Defined in: src/types/IConfigItem.ts:46

Whether this configuration is editable by the accessor.

true

requiresReboot: boolean

Defined in: src/types/IConfigItem.ts:52

Whether this configuration requires the related app/system to be rebooted, if changed.

false

encrypt: boolean

Defined in: src/types/IConfigItem.ts:58

Whether this configuration should be encrypted at rest. Decryption is opt-in via the decrypt hook (see IConfiguardOptions).

false

optional description?: string | null

Defined in: src/types/IConfigItem.ts:62

Description of the configuration item.