AppConfig

Type parameters

T: SuperConstructor

T: SuperConstructor

Hierarchy

Config

  • Config

    AppConfig

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

+ new AppConfig(props?: Partial‹AppConfig›): AppConfig

Overrides Config.constructor

Creates an instance of AppConfig. Creates an instance of AppConfig.

Parameters:

NameTypeDescription
props?Partial‹AppConfigProperties of the type required for construction.

Returns: AppConfig

Properties

Optional appId

appId? : string | Stringifiable = getenv.string( 'APP_ID', AppConfig.generateId() as string )


Optional eveble

eveble? : EvebleConfig = new EvebleConfig()


Optional included

included? : Record‹string, Configurable

Inherited from Config.included

Overrides void


Optional logging

logging? : LoggingConfig = new LoggingConfig()


Optional merged

merged? : Record‹string, Configurable

Inherited from Config.merged

Overrides void


Optional workerId

workerId? : string | Stringifiable = getenv.string( 'WORKER_ID', AppConfig.generateId() as string )

Methods

assign

assign(props: Props): void

Implementation of Configurable

Inherited from Config.assign

Overrides void

Parameters:

NameType
propsProps

Returns: void


equals

equals(other: any): boolean

Implementation of Configurable

Inherited from DefinableMixin.equals

Overrides CreateEmployee.equals

Parameters:

NameType
otherany

Returns: boolean


get

getT›(path: string, runtimeDefaultValue?: T): T | any

Inherited from Config.get

Overrides void

Type parameters:

T: any

Parameters:

NameType
pathstring
runtimeDefaultValue?T

Returns: T | any


getActions

getActions(): Actions

Implementation of Hookable

Inherited from HookableMixin.getActions

Overrides CreateEmployee.getActions

Returns: Actions


getDefault

getDefaultT›(path: string): T | any

Implementation of Configurable

Inherited from Config.getDefault

Overrides void

Type parameters:

T: any

Parameters:

NameType
pathstring

Returns: T | any


getExact

getExactT›(path: string): T | any

Implementation of Configurable

Inherited from Config.getExact

Overrides void

Type parameters:

T: any

Parameters:

NameType
pathstring

Returns: T | any


getHook

getHook(action: string, id: string): Hook | undefined

Implementation of Hookable

Inherited from HookableMixin.getHook

Overrides CreateEmployee.getHook

Parameters:

NameType
actionstring
idstring

Returns: Hook | undefined


getHookOrThrow

getHookOrThrow(action: string, id: string): Hook

Implementation of Hookable

Inherited from HookableMixin.getHookOrThrow

Overrides CreateEmployee.getHookOrThrow

Parameters:

NameType
actionstring
idstring

Returns: Hook


getHooks

getHooks(action: string): Mappings

Implementation of Hookable

Inherited from HookableMixin.getHooks

Overrides CreateEmployee.getHooks

Parameters:

NameType
actionstring

Returns: Mappings


getPropTypes

getPropTypes(): Props

Implementation of Configurable

Inherited from Config.getPropTypes

Overrides DefinableMixin.getPropTypes

Returns: Props


getPropertyInitializers

getPropertyInitializers(): Props

Implementation of Configurable

Inherited from DefinableMixin.getPropertyInitializers

Overrides CreateEmployee.getPropertyInitializers

Returns: Props


has

has(path: string): boolean

Implementation of Configurable

Inherited from Config.has

Overrides void

Parameters:

NameType
pathstring

Returns: boolean


hasAction

hasAction(action: string): boolean

Implementation of Hookable

Inherited from HookableMixin.hasAction

Overrides CreateEmployee.hasAction

Parameters:

NameType
actionstring

Returns: boolean


hasDefault

hasDefault(path: string): boolean

Implementation of Configurable

Inherited from Config.hasDefault

Overrides void

Parameters:

NameType
pathstring

Returns: boolean


hasHook

hasHook(action: string, id: string): boolean

Implementation of Hookable

Inherited from HookableMixin.hasHook

Overrides CreateEmployee.hasHook

Parameters:

NameType
actionstring
idstring

Returns: boolean


include

include(config: Configurable): void

Implementation of Configurable

Inherited from Config.include

Overrides void

Parameters:

NameType
configConfigurable

Returns: void


isConfigurable

isConfigurable(path: string): boolean

Implementation of Configurable

Inherited from Config.isConfigurable

Overrides void

Parameters:

NameType
pathstring

Returns: boolean


merge

merge(config: Configurable): void

Implementation of Configurable

Inherited from Config.merge

Overrides void

Parameters:

NameType
configConfigurable

Returns: void


overrideHook

overrideHook(action: string, id: string, hook: Hook): void

Implementation of Hookable

Inherited from HookableMixin.overrideHook

Overrides CreateEmployee.overrideHook

Parameters:

NameType
actionstring
idstring
hookHook

Returns: void


registerHook

registerHook(action: string, id: string, hook: Hook, shouldOverride?: boolean): void

Implementation of Hookable

Inherited from HookableMixin.registerHook

Overrides CreateEmployee.registerHook

Parameters:

NameType
actionstring
idstring
hookHook
shouldOverride?boolean

Returns: void


removeHook

removeHook(action: string, id: string): void

Implementation of Hookable

Inherited from HookableMixin.removeHook

Overrides CreateEmployee.removeHook

Parameters:

NameType
actionstring
idstring

Returns: void


set

setT›(path: string, value: T): void

Implementation of Configurable

Inherited from Config.set

Overrides void

Type parameters:

T: any

Parameters:

NameType
pathstring
valueT

Returns: void


toPlainObject

toPlainObject(): Props

Implementation of Configurable

Inherited from DefinableMixin.toPlainObject

Overrides CreateEmployee.toPlainObject

Returns: Props


validateProps

validateProps(props: Record‹string | number | symbol, any› | undefined, propTypes: PropTypes, isStrict?: boolean): boolean

Inherited from DefinableMixin.validateProps

Overrides CreateEmployee.validateProps

Parameters:

NameType
propsRecord‹string | number | symbol, any› | undefined
propTypesPropTypes
isStrict?boolean

Returns: boolean


Static from

fromT›(props: Record‹string, any›): T

Inherited from Config.from

Overrides void

Type parameters:

T

Parameters:

NameType
propsRecord‹string, any›

Returns: T


Static generateId

generateId(): string

Generates unique application identifier.

static

Returns: string

String identifier as uuid.


Static getPropTypes

getPropTypes(): Props

Inherited from DefinableMixin.getPropTypes

Overrides CreateEmployee.getPropTypes

Returns: Props


Static getPropertyInitializers

getPropertyInitializers(): Props

Inherited from DefinableMixin.getPropertyInitializers

Overrides CreateEmployee.getPropertyInitializers

Returns: Props

Object literals

Optional clients

clients? : object

Agenda: object

  • CommandScheduler: object

    • processEvery: number = 180000

MongoDB: object

  • CommandScheduler(): object

    • useNewUrlParser: boolean = true

    • useUnifiedTopology: boolean = true

  • CommitStore(): object

    • useNewUrlParser: boolean = true

    • useUnifiedTopology: boolean = true

  • Snapshotter(): object

    • useNewUrlParser: boolean = true

    • useUnifiedTopology: boolean = true


Optional conversion

conversion? : object

type

type: "runtime" = "runtime"


Optional description

description? : object

formatting

formatting: "default" = "default"


Optional validation

validation? : object

type

type: "runtime" = "runtime"


Static defaultMongoDBOptions

defaultMongoDBOptions: object

useNewUrlParser

useNewUrlParser: boolean = true

useUnifiedTopology

useUnifiedTopology: boolean = true