PURISTA API / @purista/core / CommandDefinition
Type Alias: CommandDefinition<S, MessagePayloadType, MessageParamsType, TransformInputPayload, TransformInputParams, FunctionPayloadType, FunctionParamsType, FunctionOutputType, FinalFunctionOutputType, TransformOutputHookOutput, Resources, Invokes, StreamInvokes, EmitList, MetadataType, QueueInvokes, AgentInvokes>
CommandDefinition<
S,MessagePayloadType,MessageParamsType,TransformInputPayload,TransformInputParams,FunctionPayloadType,FunctionParamsType,FunctionOutputType,FinalFunctionOutputType,TransformOutputHookOutput,Resources,Invokes,StreamInvokes,EmitList,MetadataType,QueueInvokes,AgentInvokes> =object
Defined in: core/types/commandType/CommandDefinition.ts:20
The definition for a command provided by some service.
Type Parameters
S
S extends ServiceClass
MessagePayloadType
MessagePayloadType
MessageParamsType
MessageParamsType
TransformInputPayload
TransformInputPayload
TransformInputParams
TransformInputParams
FunctionPayloadType
FunctionPayloadType
FunctionParamsType
FunctionParamsType
FunctionOutputType
FunctionOutputType
FinalFunctionOutputType
FinalFunctionOutputType
TransformOutputHookOutput
TransformOutputHookOutput
Resources
Resources extends Record<string, unknown>
Invokes
Invokes extends InvokeList
StreamInvokes
StreamInvokes extends StreamInvokeList
EmitList
EmitList extends Record<string, Schema>
MetadataType
MetadataType extends CommandDefinitionMetadataBase = CommandDefinitionMetadataBase
QueueInvokes
QueueInvokes extends QueueInvokeList = QueueInvokeList
AgentInvokes
AgentInvokes extends AgentInvokeList = AgentInvokeList
Properties
agentInvokes
agentInvokes:
AgentInvokes
Defined in: core/types/commandType/CommandDefinition.ts:123
call
call:
CommandFunction<S,MessagePayloadType,MessageParamsType,FunctionPayloadType,FunctionParamsType,FunctionOutputType,Resources,Invokes,StreamInvokes,EmitList,AgentInvokes>
Defined in: core/types/commandType/CommandDefinition.ts:48
the command function
commandDescription
commandDescription:
string
Defined in: core/types/commandType/CommandDefinition.ts:42
the description of the command
commandName
commandName:
string
Defined in: core/types/commandType/CommandDefinition.ts:40
the name of the command
emitList
emitList:
EmitList
Defined in: core/types/commandType/CommandDefinition.ts:124
eventBridgeConfig
eventBridgeConfig:
DefinitionEventBridgeConfig
Defined in: core/types/commandType/CommandDefinition.ts:46
config information for event bridge
eventName?
optionaleventName:string
Defined in: core/types/commandType/CommandDefinition.ts:62
the eventName for the command response
hooks
hooks:
object
Defined in: core/types/commandType/CommandDefinition.ts:64
hooks of command
afterGuard?
optionalafterGuard:Record<string,CommandAfterGuardHook<S,MessagePayloadType,MessageParamsType,FunctionPayloadType,FunctionParamsType,FunctionOutputType,Resources,Invokes,StreamInvokes,EmitList,AgentInvokes>>
beforeGuard?
optionalbeforeGuard:Record<string,CommandBeforeGuardHook<S,MessagePayloadType,MessageParamsType,FunctionPayloadType,FunctionParamsType,Resources,Invokes,StreamInvokes,EmitList,AgentInvokes>>
transformInput?
optionaltransformInput:object
transformInput.transformFunction
transformFunction:
CommandTransformInputHook<S,MessagePayloadType,MessageParamsType,TransformInputPayload,TransformInputParams,FunctionPayloadType,FunctionParamsType>
transformInput.transformInputSchema
transformInputSchema:
Schema
transformInput.transformParameterSchema
transformParameterSchema:
Schema
transformOutput?
optionaltransformOutput:object
transformOutput.transformFunction
transformFunction:
CommandTransformOutputHook<S,MessagePayloadType,MessageParamsType,FinalFunctionOutputType,FunctionParamsType,TransformOutputHookOutput>
transformOutput.transformOutputSchema
transformOutputSchema:
Schema
invokes
invokes:
Invokes
Defined in: core/types/commandType/CommandDefinition.ts:121
metadata
metadata:
MetadataType
Defined in: core/types/commandType/CommandDefinition.ts:44
the metadata of the command
queueInvokes
queueInvokes:
QueueInvokes
Defined in: core/types/commandType/CommandDefinition.ts:125
streamInvokes
streamInvokes:
StreamInvokes
Defined in: core/types/commandType/CommandDefinition.ts:122
