@eveble/eveble
Hierarchy
↳ Message
Message
↳ Command
Implemented by
Index
Properties
Methods
- assignMetadata
- equals
- getAssignment
- getCorrelationId
- getId
- getLegacyTransformer
- getLegacyTransformers
- getMetadata
- getPropTypes
- getPropertyInitializers
- getSchemaVersion
- getTimestamp
- getTypeName
- hasCorrelationId
- hasLegacyTransformer
- hasMetadata
- isDeliverable
- isScheduled
- overrideLegacyTransformer
- registerLegacyTransformer
- schedule
- setCorrelationId
- toPlainObject
- toString
- transformLegacyProps
- validateProps
Properties
Optional
metadata
• metadata? : Record‹string, any›
Inherited from Message.metadata
Overrides void
targetId
• targetId: string | Stringifiable
Optional
timestamp
• timestamp? : Date
Inherited from Message.timestamp
Overrides void
Methods
assignMetadata
▸ assignMetadata(props
: Record‹string, any›): void
Inherited from Message.assignMetadata
Overrides void
Parameters:
Name | Type |
---|---|
props | Record‹string, any› |
Returns: void
equals
▸ equals(other
: any): boolean
Inherited from Definable.equals
Overrides void
Parameters:
Name | Type |
---|---|
other | any |
Returns: boolean
getAssignment
▸ getAssignment(): Assignment | undefined
Returns: Assignment | undefined
▸ getAssignment(): Assignment | undefined
Returns: Assignment | undefined
getCorrelationId
▸ getCorrelationId(key
: string): string | undefined
Inherited from Message.getCorrelationId
Overrides void
Parameters:
Name | Type |
---|---|
key | string |
Returns: string | undefined
getId
▸ getId(): string | Stringifiable
Returns: string | Stringifiable
▸ getId(): string | Stringifiable
Returns: string | Stringifiable
getLegacyTransformer
▸ getLegacyTransformer(schemaVersion
: number): Hook
Inherited from Versionable.getLegacyTransformer
Overrides void
Parameters:
Name | Type |
---|---|
schemaVersion | number |
Returns: Hook
getLegacyTransformers
▸ getLegacyTransformers(): LegacyTransformers
Inherited from Versionable.getLegacyTransformers
Overrides void
Returns: LegacyTransformers
getMetadata
▸ getMetadata(): Record‹string, any›
Inherited from Message.getMetadata
Overrides void
Returns: Record‹string, any›
getPropTypes
▸ getPropTypes(): Record‹keyof any, any›
Inherited from Definable.getPropTypes
Overrides void
Returns: Record‹keyof any, any›
getPropertyInitializers
▸ getPropertyInitializers(): Props
Inherited from Definable.getPropertyInitializers
Overrides void
Returns: Props
getSchemaVersion
▸ getSchemaVersion(): number | undefined
Inherited from Versionable.getSchemaVersion
Overrides void
Returns: number | undefined
getTimestamp
▸ getTimestamp(): Date
Inherited from Message.getTimestamp
Overrides void
Returns: Date
getTypeName
▸ getTypeName(): TypeName
Inherited from Serializable.getTypeName
Overrides void
Returns: TypeName
hasCorrelationId
▸ hasCorrelationId(key
: string): boolean
Inherited from Message.hasCorrelationId
Overrides void
Parameters:
Name | Type |
---|---|
key | string |
Returns: boolean
hasLegacyTransformer
▸ hasLegacyTransformer(schemaVersion
: number): boolean
Inherited from Versionable.hasLegacyTransformer
Overrides void
Parameters:
Name | Type |
---|---|
schemaVersion | number |
Returns: boolean
hasMetadata
▸ hasMetadata(): boolean
Inherited from Message.hasMetadata
Overrides void
Returns: boolean
isDeliverable
▸ isDeliverable(): boolean
Returns: boolean
▸ isDeliverable(): boolean
Returns: boolean
isScheduled
▸ isScheduled(): boolean
Returns: boolean
▸ isScheduled(): boolean
Returns: boolean
overrideLegacyTransformer
▸ overrideLegacyTransformer(schemaVersion
: number, transformer
: Hook): void
Inherited from Versionable.overrideLegacyTransformer
Overrides void
Parameters:
Name | Type |
---|---|
schemaVersion | number |
transformer | Hook |
Returns: void
registerLegacyTransformer
▸ registerLegacyTransformer(schemaVersion
: number, transformer
: Hook, shouldOverride
: boolean): void
Inherited from Versionable.registerLegacyTransformer
Overrides void
Parameters:
Name | Type |
---|---|
schemaVersion | number |
transformer | Hook |
shouldOverride | boolean |
Returns: void
schedule
▸ schedule(assignment
: Assignment): void
Parameters:
Name | Type |
---|---|
assignment | Assignment |
Returns: void
▸ schedule(assignment
: Assignment): void
Parameters:
Name | Type |
---|---|
assignment | Assignment |
Returns: void
setCorrelationId
▸ setCorrelationId(key
: string, id
: Stringifiable): void
Inherited from Message.setCorrelationId
Overrides void
Parameters:
Name | Type |
---|---|
key | string |
id | Stringifiable |
Returns: void
toPlainObject
▸ toPlainObject(): Props
Inherited from Definable.toPlainObject
Overrides void
Returns: Props
toString
▸ toString(): TypeName | string
Inherited from Serializable.toString
Overrides void
Returns: TypeName | string
transformLegacyProps
▸ transformLegacyProps(props
: Props): Props
Inherited from Versionable.transformLegacyProps
Overrides void
Parameters:
Name | Type |
---|---|
props | Props |
Returns: Props
validateProps
▸ validateProps(props
: Props, propTypes
: PropTypes, isStrict?
: boolean): boolean
Inherited from Definable.validateProps
Overrides void
Parameters:
Name | Type |
---|---|
props | Props |
propTypes | PropTypes |
isStrict? | boolean |
Returns: boolean