Namespace: common
Common library for code that's used across the Client, Worker, and/or Workflow
Enumerations
Classes
- ActivityCancellationDetails
- ActivityFailure
- ApplicationFailure
- BinaryPayloadConverter
- CancelledFailure
- ChildWorkflowFailure
- CompleteAsyncError
- CompositePayloadConverter
- DefaultFailureConverter
- DefaultPayloadConverter
- IllegalStateError
- JsonPayloadConverter
- NamespaceNotFoundError
- NexusOperationFailure
- PayloadConverterError
- RawValue
- ServerFailure
- TemporalFailure
- TerminatedFailure
- TimeoutFailure
- TypedSearchAttributes
- UndefinedPayloadConverter
- ValueError
- WorkflowExecutionAlreadyStartedError
- WorkflowNotFoundError
Interfaces
- ActivityCancellationDetailsOptions
- ActivityFunction
- ActivityOptions
- ActivitySerializationContext
- ApplicationFailureOptions
- BaseWorkflowHandle
- BaseWorkflowOptions
- DataConverter
- DefaultEncodedFailureAttributes
- DefaultFailureConverterOptions
- FailureConverter
- HistoryAndWorkflowId
- LoadedDataConverter
- LocalActivityOptions
- Logger
- Metric
- MetricCounter
- MetricGauge
- MetricHistogram
- MetricMeter
- MetricUpDownCounter
- PayloadCodec
- PayloadConverter
- PayloadConverterWithEncoding
- PinnedVersioningOverride
- Priority
- QueryDefinition
- RetryPolicy
- SignalDefinition
- UpdateDefinition
- WorkerDeploymentVersion
- WorkflowDefinitionOptions
- WorkflowDurationOptions
- WorkflowSerializationContext
Type Aliases
ActivityCancellationType
Ƭ ActivityCancellationType: typeof ActivityCancellationType[keyof typeof ActivityCancellationType]
ActivityInterface
Ƭ ActivityInterface: Record<string, ActivityFunction>
Mapping of Activity name to function
Deprecated
not required anymore, for untyped activities use UntypedActivities
ApplicationFailureCategory
Ƭ ApplicationFailureCategory: typeof ApplicationFailureCategory[keyof typeof ApplicationFailureCategory]
AutoUpgradeVersioningOverride
Ƭ AutoUpgradeVersioningOverride: "AUTO_UPGRADE"
The workflow will auto-upgrade to the current deployment version on the next workflow task.
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]
HandlerUnfinishedPolicy
Ƭ HandlerUnfinishedPolicy: typeof HandlerUnfinishedPolicy[keyof typeof HandlerUnfinishedPolicy]
Headers
Ƭ Headers: Record<string, Payload>
Headers are just a mapping of header name to Payload
InitialVersioningBehavior
Ƭ InitialVersioningBehavior: typeof InitialVersioningBehavior[keyof typeof InitialVersioningBehavior]
LogLevel
Ƭ LogLevel: "TRACE" | "DEBUG" | "INFO" | "WARN" | "ERROR"
LogMetadata
Ƭ LogMetadata: Record<string | symbol, any>
MetricKind
Ƭ MetricKind: "counter" | "histogram" | "gauge" | "up-down-counter"
The kind of a metric.
The Metric API is an experimental feature and may be subject to change.
MetricTags
Ƭ MetricTags: Record<string, string | number | boolean>
Tags to be attached to some metrics.
The Metric API is an experimental feature and may be subject to change.
MetricTagsOrFunc
Ƭ MetricTagsOrFunc: MetricTags | () => MetricTags
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 |
NumericMetricValueType
Ƭ NumericMetricValueType: "int" | "float"
Type of numerical values recorded by a metric.
Note that this represents the configuration of the metric; however, since JavaScript doesn't have different runtime representation for integers and floats, the actual value type is always a JS 'number'.
The Metric API is an experimental feature and may be subject to change.
Payload
Ƭ Payload: IPayload
ProtoFailure
Ƭ ProtoFailure: IFailure
RetryState
Ƭ RetryState: typeof RetryState[keyof typeof RetryState]
SearchAttributePair
Ƭ SearchAttributePair: { [T in SearchAttributeType]: Object }[SearchAttributeType]