PURISTA API / @purista/core / Subscription
Type Alias: Subscription<PayloadType, ParameterType>
Subscription<
PayloadType,ParameterType> =object
Defined in: packages/core/src/core/types/subscription/Subscription.ts:13
A subscription managed by the event bridge
Type Parameters
PayloadType
PayloadType = unknown
ParameterType
ParameterType = unknown
Properties
emitEventName?
optionalemitEventName:string
Defined in: packages/core/src/core/types/subscription/Subscription.ts:33
the event name to be used for custom message if the subscriptions returns a result
eventBridgeConfig
eventBridgeConfig:
DefinitionEventBridgeConfig
Defined in: packages/core/src/core/types/subscription/Subscription.ts:46
config information for event bridge
eventName?
optionaleventName:string
Defined in: packages/core/src/core/types/subscription/Subscription.ts:31
the event name to subscribe for
messageType?
optionalmessageType:EBMessageType
Defined in: packages/core/src/core/types/subscription/Subscription.ts:29
the message type
payload?
optionalpayload:object
Defined in: packages/core/src/core/types/subscription/Subscription.ts:39
the message payload
parameter?
optionalparameter:ParameterType
payload?
optionalpayload:PayloadType
principalId?
optionalprincipalId:PrincipalId
Defined in: packages/core/src/core/types/subscription/Subscription.ts:35
the principal id
receiver?
optionalreceiver:object
Defined in: packages/core/src/core/types/subscription/Subscription.ts:22
the consumer address of the message
instanceId?
optionalinstanceId:InstanceId
serviceName?
optionalserviceName:string
serviceTarget?
optionalserviceTarget:string
serviceVersion?
optionalserviceVersion:string
sender?
optionalsender:object
Defined in: packages/core/src/core/types/subscription/Subscription.ts:15
the producer address of the message
instanceId?
optionalinstanceId:InstanceId
serviceName?
optionalserviceName:string
serviceTarget?
optionalserviceTarget:string
serviceVersion?
optionalserviceVersion:string
subscriber
subscriber:
EBMessageAddress
Defined in: packages/core/src/core/types/subscription/Subscription.ts:44
the address of the subscription (service name, version and subscription name)
tenantId?
optionaltenantId:TenantId
Defined in: packages/core/src/core/types/subscription/Subscription.ts:37
the tenant id
