Sanity Library Reference Docs
Preparing search index...
@sanity/workflow-engine
index
definitionDeployedData
Function definitionDeployedData
definitionDeployedData
(
definition
:
{
description
?:
string
;
fields
?:
FieldEntry
[]
;
groups
?:
Group
[]
;
initialStage
:
string
;
lifecycle
?:
WorkflowLifecycle
;
name
:
string
;
predicates
?:
Record
<
string
,
string
>
;
roleAliases
?:
RoleAliases
;
semantics
?:
Semantic
[]
;
stages
:
Stage
[]
;
start
?:
StartBlock
;
title
:
string
;
}
,
outcome
:
{
contentHash
:
string
;
deployId
:
string
;
status
:
"unchanged"
|
"created"
;
}
,
)
:
WorkflowDefinitionDeployedData
Derive the deploy event payload from a definition's structure.
Parameters
definition
:
{
description
?:
string
;
fields
?:
FieldEntry
[]
;
groups
?:
Group
[]
;
initialStage
:
string
;
lifecycle
?:
WorkflowLifecycle
;
name
:
string
;
predicates
?:
Record
<
string
,
string
>
;
roleAliases
?:
RoleAliases
;
semantics
?:
Semantic
[]
;
stages
:
Stage
[]
;
start
?:
StartBlock
;
title
:
string
;
}
outcome
:
{
contentHash
:
string
;
deployId
:
string
;
status
:
"unchanged"
|
"created"
}
Returns
WorkflowDefinitionDeployedData
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Sanity Library Reference Docs
Loading...
Derive the deploy event payload from a definition's structure.