EventSourceable
Type parameters
▪ T: SuperConstructor
▪ T: SuperConstructor
▪ T: SuperConstructor
▪ T: SuperConstructor
Hierarchy
SuperPrototypeSelector‹Entity | OneToOneHandlingMixin, this› & Entity‹this› & OneToOneHandlingMixin‹this›
SuperPrototypeSelector‹OneToOneHandlingMixin | Entity, this› & OneToOneHandlingMixin‹this› & Entity‹this›
↳ EventSourceable
↳ Process
Implements
- Stateful
- Definable
- Hookable
- Ejsonable
- Statusful
- Entity
- Controller
- EventSourceable
- Controller
- Stateful
- Definable
- Hookable
- Ejsonable
- Statusful
- Entity
- EventSourceable
Index
Constructors
Properties
Accessors
Methods
- [ROLLBACK_STATE_METHOD_KEY]
- [SAVE_STATE_METHOD_KEY]
- assignMetadata
- commandProps
- ensureHandleability
- equals
- eventProps
- getActions
- getCommands
- getEvents
- getHandleableTypes
- getHandled
- getHandledCommands
- getHandledEvents
- getHandledMessages
- getHandledTypes
- getHandledTypesNames
- getHandler
- getHandlerOrThrow
- getHandlers
- getHook
- getHookOrThrow
- getHooks
- getId
- getLegacyTransformer
- getLegacyTransformers
- getPropTypes
- getPropertyInitializers
- getSchemaVersion
- getSelectableStates
- getSelectableStatuses
- getState
- getStatus
- getTypeByHandler
- getTypeName
- getVersion
- handle
- handles
- hasAction
- hasHandler
- hasHook
- hasLegacyTransformer
- hasState
- hasStatus
- in
- incrementVersion
- initialize
- isHandleabe
- isInOneOfStates
- isInOneOfStatuses
- isInState
- isInStatus
- isStateSaved
- on
- overrideHandler
- overrideHook
- overrideLegacyTransformer
- processSerializableList
- record
- registerHandler
- registerHook
- registerLegacyTransformer
- removeHandler
- removeHook
- replay
- replayHistory
- schedule
- setHandleableTypes
- setState
- setStatus
- setVersion
- subscribes
- toJSONValue
- toPlainObject
- toString
- transformLegacyProps
- typeName
- unschedule
- validateProps
- validateState
- validateStatus
- disableSerializableLists
- enableSerializableLists
- from
- getPropTypes
- getPropertyInitializers
- getTypeName
- resolveInitializingMessage
- resolveRoutedCommands
- resolveRoutedEvents
- resolveRoutedMessages
- toString
- typeName
Constructors
constructor
+ new EventSourceable(props
: Props): EventSourceable
Overrides Entity.constructor
Creates an instance of EventSourceable
.
Creates an instance of EventSourceable
.
example
example
Parameters:
Name | Type | Description |
---|---|---|
props | Props | Properties of the type required for construction. |
Returns: EventSourceable
Properties
[COMMANDS_KEY]
• [COMMANDS_KEY]: Command[]
[EVENTS_KEY]
• [EVENTS_KEY]: Event[]
id
• id: string | Guid
Optional
metadata
• metadata? : Record‹string, any›
Optional
schemaVersion
• schemaVersion? : number
Overrides Entity.schemaVersion
state
• state: State
Implementation of EventSourceable.state
status
• status: Status
Implementation of EventSourceable.status
version
• version: number
Accessors
ableTo
• get ableTo(): this
Returns: this
can
• get can(): any
Returns: any
ensure
• get ensure(): this & object
Returns: this & object
is
• get is(): this & object
Returns: this & object
Methods
[ROLLBACK_STATE_METHOD_KEY]
▸ [ROLLBACK_STATE_METHOD_KEY](): void
Implementation of EventSourceable
Inherited from Entity.[ROLLBACK_STATE_METHOD_KEY]
Overrides Task.[ROLLBACK_STATE_METHOD_KEY]
Returns: void
[SAVE_STATE_METHOD_KEY]
▸ [SAVE_STATE_METHOD_KEY](): void
Implementation of EventSourceable
Inherited from Entity.[SAVE_STATE_METHOD_KEY]
Overrides Task.[SAVE_STATE_METHOD_KEY]
Returns: void
assignMetadata
▸ assignMetadata(metadata
: Record‹string, any›): void
Implementation of EventSourceable
Attaches metadata to EventSourceable
.
Parameters:
Name | Type |
---|---|
metadata | Record‹string, any› |
Returns: void
commandProps
▸ commandProps(): object
Picks base properties(timestamp
& metadata
) for new Command
instance.
example
Returns: object
Returns properties for Command
instance.
metadata: Record‹string, any›
timestamp: Date
ensureHandleability
▸ ensureHandleability(messageType
: MessageType‹Message›, handleableTypes?
: MessageType‹Message› | MessageType‹Message›[]): boolean
Implementation of EventSourceable
Inherited from HandlingMixin.ensureHandleability
Overrides CancelingEmployment.ensureHandleability
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
handleableTypes? | MessageType‹Message› | MessageType‹Message›[] |
Returns: boolean
equals
▸ equals(otherEntity
: Entity): boolean
Overrides DefinableMixin.equals
Parameters:
Name | Type |
---|---|
otherEntity | Entity |
Returns: boolean
eventProps
▸ eventProps(): object
Implementation of EventSourceable
Picks base properties(sourceId
, timestamp
, metadata
, version
) for new Event
instance.
example
Returns: object
Returns properties for Event
instance.
metadata: Record‹string, any›
sourceId: Guid | string
timestamp: Date
version: number
getActions
▸ getActions(): Actions
Implementation of Hookable
Inherited from HookableMixin.getActions
Overrides CreateEmployee.getActions
Returns: Actions
getCommands
▸ getCommands(): Command[]
Implementation of EventSourceable
Returns triggered commands on EventSourceable
.
Returns: Command[]
List of recorded Commands
.
getEvents
▸ getEvents(): Event[]
Implementation of EventSourceable
Returns recorded events on EventSourceable
.
Returns: Event[]
List of recorded Events
.
getHandleableTypes
▸ getHandleableTypes(): MessageType‹Message›[]
Implementation of EventSourceable
Inherited from HandlingMixin.getHandleableTypes
Overrides CancelingEmployment.getHandleableTypes
Returns: MessageType‹Message›[]
getHandled
▸ getHandled(messageType
: MessageType‹Message›): MessageType‹Message›[]
Implementation of EventSourceable
Inherited from HandlingMixin.getHandled
Overrides CancelingEmployment.getHandled
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
Returns: MessageType‹Message›[]
getHandledCommands
▸ getHandledCommands(): MessageType‹Command›[]
Inherited from HandlingMixin.getHandledCommands
Overrides CancelingEmployment.getHandledCommands
Returns: MessageType‹Command›[]
getHandledEvents
▸ getHandledEvents(): MessageType‹Event›[]
Inherited from HandlingMixin.getHandledEvents
Overrides CancelingEmployment.getHandledEvents
Returns: MessageType‹Event›[]
getHandledMessages
▸ getHandledMessages(): MessageType‹Message›[]
Inherited from HandlingMixin.getHandledMessages
Overrides CancelingEmployment.getHandledMessages
Returns: MessageType‹Message›[]
getHandledTypes
▸ getHandledTypes(): MessageType‹Message›[]
Implementation of EventSourceable
Inherited from HandlingMixin.getHandledTypes
Overrides CancelingEmployment.getHandledTypes
Returns: MessageType‹Message›[]
getHandledTypesNames
▸ getHandledTypesNames(): TypeName[]
Inherited from HandlingMixin.getHandledTypesNames
Overrides CancelingEmployment.getHandledTypesNames
Returns: TypeName[]
getHandler
▸ getHandler(messageType
: MessageType‹Message›): Handler | undefined
Implementation of EventSourceable
Inherited from OneToOneHandlingMixin.getHandler
Overrides CancelingEmployment.getHandler
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
Returns: Handler | undefined
getHandlerOrThrow
▸ getHandlerOrThrow(messageType
: MessageType‹Message›): Handler
Implementation of EventSourceable
Inherited from OneToOneHandlingMixin.getHandlerOrThrow
Overrides CancelingEmployment.getHandlerOrThrow
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
Returns: Handler
getHandlers
▸ getHandlers(): Map‹MessageType‹Message›, Handler | Handler[]›
Implementation of EventSourceable
Inherited from HandlingMixin.getHandlers
Overrides CancelingEmployment.getHandlers
Returns: Map‹MessageType‹Message›, Handler | Handler[]›
getHook
▸ getHook(action
: string, id
: string): Hook | undefined
Implementation of Hookable
Inherited from HookableMixin.getHook
Overrides CreateEmployee.getHook
Parameters:
Name | Type |
---|---|
action | string |
id | string |
Returns: Hook | undefined
getHookOrThrow
▸ getHookOrThrow(action
: string, id
: string): Hook
Implementation of Hookable
Inherited from HookableMixin.getHookOrThrow
Overrides CreateEmployee.getHookOrThrow
Parameters:
Name | Type |
---|---|
action | string |
id | string |
Returns: Hook
getHooks
▸ getHooks(action
: string): Mappings
Implementation of Hookable
Inherited from HookableMixin.getHooks
Overrides CreateEmployee.getHooks
Parameters:
Name | Type |
---|---|
action | string |
Returns: Mappings
getId
▸ getId(): string | Guid
Implementation of EventSourceable
Returns: string | Guid
getLegacyTransformer
▸ getLegacyTransformer(schemaVersion
: number): Hook
Implementation of EventSourceable
Inherited from VersionableMixin.getLegacyTransformer
Overrides CreateEmployee.getLegacyTransformer
Parameters:
Name | Type |
---|---|
schemaVersion | number |
Returns: Hook
getLegacyTransformers
▸ getLegacyTransformers(): LegacyTransformers
Implementation of EventSourceable
Inherited from VersionableMixin.getLegacyTransformers
Overrides CreateEmployee.getLegacyTransformers
Returns: LegacyTransformers
getPropTypes
▸ getPropTypes(): Props
Implementation of EventSourceable
Inherited from DefinableMixin.getPropTypes
Overrides CreateEmployee.getPropTypes
Returns: Props
getPropertyInitializers
▸ getPropertyInitializers(): Props
Implementation of EventSourceable
Inherited from DefinableMixin.getPropertyInitializers
Overrides CreateEmployee.getPropertyInitializers
Returns: Props
getSchemaVersion
▸ getSchemaVersion(): number | undefined
Implementation of EventSourceable
Inherited from VersionableMixin.getSchemaVersion
Overrides CreateEmployee.getSchemaVersion
Returns: number | undefined
getSelectableStates
▸ getSelectableStates(): Record‹string, State›
Implementation of EventSourceable
Inherited from StatefulMixin.getSelectableStates
Overrides Task.getSelectableStates
Returns: Record‹string, State›
getSelectableStatuses
▸ getSelectableStatuses(): Record‹string, Status›
Implementation of EventSourceable
Inherited from StatusfulMixin.getSelectableStatuses
Overrides Task.getSelectableStatuses
Returns: Record‹string, Status›
getState
▸ getState(): State
Implementation of EventSourceable
Inherited from StatefulMixin.getState
Returns: State
getStatus
▸ getStatus(): Status
Implementation of EventSourceable
Inherited from StatusfulMixin.getStatus
Returns: Status
getTypeByHandler
▸ getTypeByHandler(handlerReference
: Handler): any | undefined
Inherited from OneToOneHandlingMixin.getTypeByHandler
Overrides CancelingEmployment.getTypeByHandler
Parameters:
Name | Type |
---|---|
handlerReference | Handler |
Returns: any | undefined
getTypeName
▸ getTypeName(): TypeName
Implementation of EventSourceable
Inherited from SerializableMixin.getTypeName
Overrides CreateEmployee.getTypeName
Returns: TypeName
getVersion
▸ getVersion(): number
Implementation of EventSourceable
Returns current version of EventSourceable
.
Returns: number
Current number version of instance.
handle
▸ handle(message
: Command | Event): Promise‹any›
Overrides OneToOneHandlingMixin.handle
Handles message.
async
throws
{HandlerNotFoundError}
Thrown if handler for type is not found.
Parameters:
Name | Type |
---|---|
message | Command | Event |
Returns: Promise‹any›
Instance of EventSourceable
.
handles
▸ handles(): Map‹MessageType‹Command›, Handler›
Implementation of EventSourceable
Inherited from HandlingMixin.handles
Overrides CancelingEmployment.handles
Returns: Map‹MessageType‹Command›, Handler›
hasAction
▸ hasAction(action
: string): boolean
Implementation of Hookable
Inherited from HookableMixin.hasAction
Overrides CreateEmployee.hasAction
Parameters:
Name | Type |
---|---|
action | string |
Returns: boolean
hasHandler
▸ hasHandler(messageType
: MessageType‹Message›): boolean
Implementation of EventSourceable
Inherited from HandlingMixin.hasHandler
Overrides CancelingEmployment.hasHandler
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
Returns: boolean
hasHook
▸ hasHook(action
: string, id
: string): boolean
Implementation of Hookable
Inherited from HookableMixin.hasHook
Overrides CreateEmployee.hasHook
Parameters:
Name | Type |
---|---|
action | string |
id | string |
Returns: boolean
hasLegacyTransformer
▸ hasLegacyTransformer(schemaVersion
: number): boolean
Implementation of EventSourceable
Inherited from VersionableMixin.hasLegacyTransformer
Overrides CreateEmployee.hasLegacyTransformer
Parameters:
Name | Type |
---|---|
schemaVersion | number |
Returns: boolean
hasState
▸ hasState(): boolean
Implementation of EventSourceable
Inherited from StatefulMixin.hasState
Returns: boolean
hasStatus
▸ hasStatus(): boolean
Implementation of EventSourceable
Inherited from StatusfulMixin.hasStatus
Returns: boolean
in
▸ in‹T›(listName
: string): List‹T›
Inherited from Serializable.in
Overrides CreateEmployee.in
Type parameters:
▪ T
Parameters:
Name | Type |
---|---|
listName | string |
Returns: List‹T›
incrementVersion
▸ incrementVersion(): void
Implementation of EventSourceable
Increments version of event sourceable.
Returns: void
initialize
▸ initialize(): Promise‹void›
Implementation of EventSourceable
Overrides OneToOneHandlingMixin.initialize
Initializes EventSourceable.
Returns: Promise‹void›
isHandleabe
▸ isHandleabe(messageType
: MessageType‹Message›, handleableTypes?
: MessageType‹Message› | MessageType‹Message›[]): boolean
Inherited from HandlingMixin.isHandleabe
Overrides CancelingEmployment.isHandleabe
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
handleableTypes? | MessageType‹Message› | MessageType‹Message›[] |
Returns: boolean
isInOneOfStates
▸ isInOneOfStates(states
: State | State[]): boolean
Implementation of EventSourceable
Inherited from StatefulMixin.isInOneOfStates
Overrides Task.isInOneOfStates
Parameters:
Name | Type |
---|---|
states | State | State[] |
Returns: boolean
isInOneOfStatuses
▸ isInOneOfStatuses(status
: Status | Status[]): boolean
Implementation of EventSourceable
Inherited from StatusfulMixin.isInOneOfStatuses
Overrides Task.isInOneOfStatuses
Parameters:
Name | Type |
---|---|
status | Status | Status[] |
Returns: boolean
isInState
▸ isInState(state
: State | State[]): boolean
Implementation of EventSourceable
Inherited from StatefulMixin.isInState
Parameters:
Name | Type |
---|---|
state | State | State[] |
Returns: boolean
isInStatus
▸ isInStatus(status
: Status | Status[]): boolean
Implementation of EventSourceable
Inherited from StatusfulMixin.isInStatus
Overrides Task.isInStatus
Parameters:
Name | Type |
---|---|
status | Status | Status[] |
Returns: boolean
isStateSaved
▸ isStateSaved(): boolean
Implementation of EventSourceable
Inherited from Entity.isStateSaved
Overrides Task.isStateSaved
Returns: boolean
on
▸ on(action
: string | Stringifiable): this
Implementation of EventSourceable
Parameters:
Name | Type |
---|---|
action | string | Stringifiable |
Returns: this
overrideHandler
▸ overrideHandler(messageType
: MessageType‹Message›, handler
: Handler): void
Implementation of EventSourceable
Inherited from HandlingMixin.overrideHandler
Overrides CancelingEmployment.overrideHandler
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
handler | Handler |
Returns: void
overrideHook
▸ overrideHook(action
: string, id
: string, hook
: Hook): void
Implementation of Hookable
Inherited from HookableMixin.overrideHook
Overrides CreateEmployee.overrideHook
Parameters:
Name | Type |
---|---|
action | string |
id | string |
hook | Hook |
Returns: void
overrideLegacyTransformer
▸ overrideLegacyTransformer(schemaVersion
: number, transformer
: Hook): void
Implementation of EventSourceable
Inherited from VersionableMixin.overrideLegacyTransformer
Overrides CreateEmployee.overrideLegacyTransformer
Parameters:
Name | Type |
---|---|
schemaVersion | number |
transformer | Hook |
Returns: void
processSerializableList
▸ processSerializableList(props?
: Props): Props
Inherited from Serializable.processSerializableList
Overrides CreateEmployee.processSerializableList
Parameters:
Name | Type |
---|---|
props? | Props |
Returns: Props
record
▸ record(event
: Event): void
Implementation of EventSourceable
Records state change of EventSourceable
as Event
and updates event sourceable version.
example
Parameters:
Name | Type | Description |
---|---|---|
event | Event | Instance of Event . |
Returns: void
registerHandler
▸ registerHandler(messageType
: MessageType‹Message›, handler
: Handler, shouldOverride?
: boolean): void
Implementation of EventSourceable
Inherited from OneToOneHandlingMixin.registerHandler
Overrides HandlingMixin.registerHandler
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
handler | Handler |
shouldOverride? | boolean |
Returns: void
registerHook
▸ registerHook(action
: string, id
: string, hook
: Hook, shouldOverride?
: boolean): void
Implementation of Hookable
Inherited from HookableMixin.registerHook
Overrides CreateEmployee.registerHook
Parameters:
Name | Type |
---|---|
action | string |
id | string |
hook | Hook |
shouldOverride? | boolean |
Returns: void
registerLegacyTransformer
▸ registerLegacyTransformer(schemaVersion
: number, transformer
: Hook, shouldOverride?
: boolean): void
Implementation of EventSourceable
Inherited from VersionableMixin.registerLegacyTransformer
Overrides CreateEmployee.registerLegacyTransformer
Parameters:
Name | Type |
---|---|
schemaVersion | number |
transformer | Hook |
shouldOverride? | boolean |
Returns: void
removeHandler
▸ removeHandler(messageType
: MessageType‹Message›): void
Implementation of EventSourceable
Inherited from HandlingMixin.removeHandler
Overrides CancelingEmployment.removeHandler
Parameters:
Name | Type |
---|---|
messageType | MessageType‹Message› |
Returns: void
removeHook
▸ removeHook(action
: string, id
: string): void
Implementation of Hookable
Inherited from HookableMixin.removeHook
Overrides CreateEmployee.removeHook
Parameters:
Name | Type |
---|---|
action | string |
id | string |
Returns: void
replay
▸ replay(event
: Event): void
Implementation of EventSourceable
Replies event and updates EventSourceable
version.
Parameters:
Name | Type | Description |
---|---|---|
event | Event | Instance of Event . |
Returns: void
replayHistory
▸ replayHistory(history
: History): void
Replies history from list of events.
Parameters:
Name | Type | Description |
---|---|---|
history | History | Instance of History containing Event list. |
Returns: void
schedule
▸ schedule(command
: Command, deliverAt
: Date, assignmentId?
: string | Guid): void
Implementation of EventSourceable
Schedules command to be delivered at specific time.
Parameters:
Name | Type | Description |
---|---|---|
command | Command | Command instance. |
deliverAt | Date | Date instance on which command should be delivered. |
assignmentId? | string | Guid | Scheduling assignment identifer. |
Returns: void
setHandleableTypes
▸ setHandleableTypes(handleableTypes
: MessageType‹Message› | MessageType‹Message›[]): void
Implementation of EventSourceable
Inherited from HandlingMixin.setHandleableTypes
Overrides CancelingEmployment.setHandleableTypes
Parameters:
Name | Type |
---|---|
handleableTypes | MessageType‹Message› | MessageType‹Message›[] |
Returns: void
setState
▸ setState(state
: State): void
Implementation of EventSourceable
Inherited from StatefulMixin.setState
Parameters:
Name | Type |
---|---|
state | State |
Returns: void
setStatus
▸ setStatus(status
: Status): void
Implementation of EventSourceable
Inherited from StatusfulMixin.setStatus
Parameters:
Name | Type |
---|---|
status | Status |
Returns: void
setVersion
▸ setVersion(version
: number): void
Sets version of EventSourceable
.
Parameters:
Name | Type | Description |
---|---|---|
version | number | Version number. |
Returns: void
Current number version of instance.
subscribes
▸ subscribes(): Map‹MessageType‹Event›, Handler›
Implementation of EventSourceable
Inherited from HandlingMixin.subscribes
Overrides CancelingEmployment.subscribes
Returns: Map‹MessageType‹Event›, Handler›
toJSONValue
▸ toJSONValue(): Record‹string, any›
Implementation of Ejsonable
Inherited from SerializableMixin.toJSONValue
Overrides CreateEmployee.toJSONValue
Returns: Record‹string, any›
toPlainObject
▸ toPlainObject(): Props
Implementation of EventSourceable
Inherited from DefinableMixin.toPlainObject
Overrides CreateEmployee.toPlainObject
Returns: Props
toString
▸ toString(): TypeName
Implementation of EventSourceable
Inherited from SerializableMixin.toString
Overrides CreateEmployee.toString
Returns: TypeName
transformLegacyProps
▸ transformLegacyProps(props
: Props): Props
Implementation of EventSourceable
Inherited from VersionableMixin.transformLegacyProps
Overrides CreateEmployee.transformLegacyProps
Parameters:
Name | Type |
---|---|
props | Props |
Returns: Props
typeName
▸ typeName(): TypeName
Implementation of Ejsonable
Inherited from EjsonableMixin.typeName
Overrides CreateEmployee.typeName
Returns: TypeName
unschedule
▸ unschedule(assignmentId
: string | Guid, commandType
: MessageType‹Command›): void
Implementation of EventSourceable
Unschedule delivery of a specific command by assignment specification.
Parameters:
Name | Type | Description |
---|---|---|
assignmentId | string | Guid | Scheduling assignment identifer. |
commandType | MessageType‹Command› | A Command type that should be unscheduled. |
Returns: void
validateProps
▸ validateProps(props
: Record‹string | number | symbol, any› | undefined, propTypes
: PropTypes, isStrict?
: boolean): boolean
Inherited from DefinableMixin.validateProps
Overrides CreateEmployee.validateProps
Parameters:
Name | Type |
---|---|
props | Record‹string | number | symbol, any› | undefined |
propTypes | PropTypes |
isStrict? | boolean |
Returns: boolean
validateState
▸ validateState(stateOrStates
: State | State[], error?
: Error): boolean
Implementation of EventSourceable
Inherited from StatefulMixin.validateState
Overrides Task.validateState
Parameters:
Name | Type |
---|---|
stateOrStates | State | State[] |
error? | Error |
Returns: boolean
validateStatus
▸ validateStatus(statusOrStatuses
: Status | Status[], error?
: Error): boolean
Implementation of EventSourceable
Inherited from StatusfulMixin.validateStatus
Overrides Task.validateStatus
Parameters:
Name | Type |
---|---|
statusOrStatuses | Status | Status[] |
error? | Error |
Returns: boolean
Static
disableSerializableLists
▸ disableSerializableLists(): void
Inherited from Serializable.disableSerializableLists
Overrides CreateEmployee.disableSerializableLists
Returns: void
Static
enableSerializableLists
▸ enableSerializableLists(): void
Inherited from Serializable.enableSerializableLists
Overrides CreateEmployee.enableSerializableLists
Returns: void
Static
from
▸ from(...sources
: Record‹string, any›[]): any
Inherited from Serializable.from
Overrides CreateEmployee.from
Parameters:
Name | Type |
---|---|
...sources | Record‹string, any›[] |
Returns: any
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
Static
getTypeName
▸ getTypeName(): TypeName
Inherited from SerializableMixin.getTypeName
Overrides CreateEmployee.getTypeName
Returns: TypeName
Static
resolveInitializingMessage
▸ resolveInitializingMessage(): MessageType‹Command | Event› | undefined
Resolves initializing message on EventSourceable
.
Returns: MessageType‹Command | Event› | undefined
Command
or Event
type.
Static
resolveRoutedCommands
▸ resolveRoutedCommands(): MessageType‹Command›[]
Resolves routed commands.
Returns: MessageType‹Command›[]
List of all routed Command
types.
Static
resolveRoutedEvents
▸ resolveRoutedEvents(): MessageType‹Event›[]
Resolves routed events.
Returns: MessageType‹Event›[]
List of all routed Event
types.
Static
resolveRoutedMessages
▸ resolveRoutedMessages(): MessageType‹Command | Event›[]
Resolves routed messages.
Returns: MessageType‹Command | Event›[]
List of all routed messages types.
Static
toString
▸ toString(): TypeName
Inherited from SerializableMixin.toString
Overrides CreateEmployee.toString
Returns: TypeName
Static
typeName
▸ typeName(): TypeName
Inherited from EjsonableMixin.typeName
Overrides CreateEmployee.typeName
Returns: TypeName