Namespace: common
Common library for code that's used across the Client, Worker, and/or Workflow
Enumerations
- ActivityCancellationType
- HandlerUnfinishedPolicy
- RetryState
- SdkComponent
- TimeoutType
- WorkflowIdReusePolicy
Classes
- ActivityFailure
- ApplicationFailure
- BinaryPayloadConverter
- CancelledFailure
- ChildWorkflowFailure
- CompositePayloadConverter
- DefaultFailureConverter
- DefaultPayloadConverter
- IllegalStateError
- JsonPayloadConverter
- NamespaceNotFoundError
- PayloadConverterError
- SearchAttributePayloadConverter
- ServerFailure
- TemporalFailure
- TerminatedFailure
- TimeoutFailure
- UndefinedPayloadConverter
- ValueError
- WorkflowExecutionAlreadyStartedError
- WorkflowNotFoundError
Interfaces
- ActivityFunction
- ActivityOptions
- ApplicationFailureOptions
- BaseWorkflowHandle
- BaseWorkflowOptions
- DataConverter
- DefaultEncodedFailureAttributes
- DefaultFailureConverterOptions
- FailureConverter
- HistoryAndWorkflowId
- LoadedDataConverter
- LocalActivityOptions
- Logger
- PayloadCodec
- PayloadConverter
- PayloadConverterWithEncoding
- QueryDefinition
- RetryPolicy
- SignalDefinition
- UpdateDefinition
- WorkflowDurationOptions
Type Aliases
ActivityInterface
Ƭ ActivityInterface: Record
<string
, ActivityFunction
>
Mapping of Activity name to function
Deprecated
not required anymore, for untyped activities use UntypedActivities
CommonWorkflowOptions
Ƭ CommonWorkflowOptions: BaseWorkflowOptions
& WorkflowDurationOptions
Duration
Ƭ Duration: StringValue
| number
A duration, expressed either as a number of milliseconds, or as a ms-formatted string.
EncodingType
Ƭ EncodingType: typeof encodingTypes
[keyof typeof encodingTypes
]
Headers
Ƭ Headers: Record
<string
, Payload
>
Headers are just a mapping of header name to Payload
LogLevel
Ƭ LogLevel: "TRACE"
| "DEBUG"
| "INFO"
| "WARN"
| "ERROR"
LogMetadata
Ƭ LogMetadata: Record
<string
| symbol
, any
>
Next
Ƭ Next<IF
, FN
>: Required
<IF
>[FN
] extends AnyFunc
? OmitLastParam
<Required
<IF
>[FN
]> : never
Type of the next function for a given interceptor function
Called from an interceptor to continue the interception chain
Type parameters
Name | Type |
---|---|
IF | IF |
FN | extends keyof IF |
Payload
Ƭ Payload: IPayload
ProtoFailure
Ƭ ProtoFailure: IFailure