@sanity/workflow-engine-test 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5097,7 +5097,7 @@ function createEngineWrappers(scope, access, clock) {
|
|
|
5097
5097
|
deployDefinitions: (args) => workflowEngine.workflow.deployDefinitions({ ...scope, ...args }),
|
|
5098
5098
|
startInstance: (args) => workflowEngine.workflow.startInstance(withAccess(args)),
|
|
5099
5099
|
fireAction: (args) => workflowEngine.workflow.fireAction(withAccess(args)),
|
|
5100
|
-
|
|
5100
|
+
editField: (args) => workflowEngine.workflow.editField(withAccess(args)),
|
|
5101
5101
|
completeEffect: (args) => workflowEngine.workflow.completeEffect(withAccess(args)),
|
|
5102
5102
|
tick: (args) => workflowEngine.workflow.tick(withAccess(args)),
|
|
5103
5103
|
evaluate: (args) => workflowEngine.workflow.evaluate(withAccess(args)),
|
|
@@ -5161,13 +5161,13 @@ function createReadHelpers(scope) {
|
|
|
5161
5161
|
...task !== void 0 ? { task } : {}
|
|
5162
5162
|
}),
|
|
5163
5163
|
instancesForSubject: async (subjectRef, entryName = "subject") => (
|
|
5164
|
-
// Subjects live on a workflow-scope `doc.ref`
|
|
5164
|
+
// Subjects live on a workflow-scope `doc.ref` field entry. Match
|
|
5165
5165
|
// instances whose entry's value.id equals the supplied ref. The
|
|
5166
5166
|
// entry name is conventionally "subject" but workflows may name
|
|
5167
5167
|
// it otherwise.
|
|
5168
5168
|
client.fetch(
|
|
5169
5169
|
`*[_type == "${workflowEngine.WORKFLOW_INSTANCE_TYPE}"
|
|
5170
|
-
&&
|
|
5170
|
+
&& fields[_type == "doc.ref" && name == $entry][0].value.id == $ref
|
|
5171
5171
|
&& ${workflowEngine.tagScopeFilter()}] | order(startedAt asc)`,
|
|
5172
5172
|
{ ref: subjectRef, entry: entryName, tag }
|
|
5173
5173
|
)
|