picked 0.0.102-next.2 → 0.0.102-next.3
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.
|
@@ -188,6 +188,7 @@ An operation with `@auth` needs a caller that has authenticated. `@auth(only: US
|
|
|
188
188
|
| [`workflowDelete`](/reference/management-api/schema/workflow#workflowdelete) | Mutation | Deletes a workflow. Published versions keep their copy, and an action that started it can start another workflow. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
189
189
|
| [`workflowGraphUpdate`](/reference/management-api/schema/workflow#workflowgraphupdate) | Mutation | Updates the graph of a workflow with a change set, all or nothing. A refused change set writes nothing and comes back in `errors`. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
190
190
|
| [`workflowRun`](/reference/management-api/schema/workflow-run#workflowrun) | Query | Reads a workflow run. Scope: `ORGANIZATION_PROJECTS_READ`. |
|
|
191
|
+
| [`workflowRunRerun`](/reference/management-api/schema/workflow-run#workflowrunrerun) | Mutation | Reruns a workflow run that has ended as a new run of the whole workflow, on the version chosen. Every step runs again, so leads are created and outbound requests are sent again, and an `action_response` answers nobody. The caller must also hold every scope the workflow of the chosen version acts with. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
191
192
|
| [`workflows`](/reference/management-api/schema/workflow#workflows) | Query | Lists the workflows in a workspace. `search` matches a case-insensitive substring of the name. Scope: `ORGANIZATION_WORKSPACE_READ`. |
|
|
192
193
|
| [`workflowTestRun`](/reference/management-api/schema/workflow#workflowtestrun) | Mutation | Tests a workflow by walking its draft graph once, holding back every write. Nothing is stored, and the caller must also hold every scope in `Workflow.scopes`. Scope: `ORGANIZATION_WORKSPACE_UPDATE`. |
|
|
193
194
|
| [`workflowTools`](/reference/management-api/schema/workflow#workflowtools) | Query | Lists every tool a workflow node can run, with the arguments each takes. |
|
|
@@ -19,6 +19,20 @@ Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
|
19
19
|
workflowRun(id: ID!): WorkflowRun @auth
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
+
## Mutations
|
|
23
|
+
|
|
24
|
+
### `workflowRunRerun`
|
|
25
|
+
|
|
26
|
+
Reruns a workflow run that has ended as a new run of the whole workflow, on the version chosen.
|
|
27
|
+
Every step runs again, so leads are created and outbound requests are sent again, and an
|
|
28
|
+
`action_response` answers nobody. The caller must also hold every scope the workflow of the
|
|
29
|
+
chosen version acts with.
|
|
30
|
+
Scope: `ORGANIZATION_WORKSPACE_UPDATE`.
|
|
31
|
+
|
|
32
|
+
```graphql
|
|
33
|
+
workflowRunRerun(input: WorkflowRunRerunInput!): WorkflowRunRerunPayload! @auth
|
|
34
|
+
```
|
|
35
|
+
|
|
22
36
|
## Types
|
|
23
37
|
|
|
24
38
|
### `WorkflowRunStatus`
|
|
@@ -129,6 +143,10 @@ type WorkflowRun {
|
|
|
129
143
|
"""
|
|
130
144
|
preview: Boolean!
|
|
131
145
|
"""
|
|
146
|
+
Whether the run is a rerun of an earlier run. `rerunRoot` is the run its chain started from.
|
|
147
|
+
"""
|
|
148
|
+
rerun: Boolean!
|
|
149
|
+
"""
|
|
132
150
|
The tasks of the run, one per visit of a node, in the order the run reached them.
|
|
133
151
|
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
134
152
|
"""
|
|
@@ -139,6 +157,65 @@ type WorkflowRun {
|
|
|
139
157
|
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
140
158
|
"""
|
|
141
159
|
labels: [Label!]! @auth
|
|
160
|
+
"""
|
|
161
|
+
The run the chain of a rerun started from. Null when the run is not a rerun.
|
|
162
|
+
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
163
|
+
"""
|
|
164
|
+
rerunRoot: WorkflowRun @auth
|
|
165
|
+
"""
|
|
166
|
+
The reruns of the run, latest first. A rerun of a rerun is listed under the run its chain
|
|
167
|
+
started from, so the list is empty on a rerun.
|
|
168
|
+
Scope: `ORGANIZATION_PROJECTS_READ`.
|
|
169
|
+
"""
|
|
170
|
+
reruns(first: Int, after: String, last: Int, before: String, reverse: Boolean = true): WorkflowRunConnection! @auth
|
|
171
|
+
"""
|
|
172
|
+
The version the action submission that started the run was recorded on, which `ORIGINAL` reruns.
|
|
173
|
+
Null when another event or a preview started the run, or once the submission is deleted.
|
|
174
|
+
Scope: `ORGANIZATION_WORKSPACE_READ`.
|
|
175
|
+
"""
|
|
176
|
+
workspaceVersion: WorkspaceVersion @auth
|
|
177
|
+
}
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### `WorkflowRunRerunVersion`
|
|
181
|
+
|
|
182
|
+
```graphql
|
|
183
|
+
"""The version a rerun runs on."""
|
|
184
|
+
enum WorkflowRunRerunVersion {
|
|
185
|
+
"""
|
|
186
|
+
The version the action submission of the run was recorded on, `WorkflowRun.workspaceVersion`.
|
|
187
|
+
"""
|
|
188
|
+
ORIGINAL
|
|
189
|
+
"""The live version of the project."""
|
|
190
|
+
LIVE
|
|
191
|
+
}
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### `WorkflowRunRerunInput`
|
|
195
|
+
|
|
196
|
+
```graphql
|
|
197
|
+
"""The input of `workflowRunRerun`."""
|
|
198
|
+
input WorkflowRunRerunInput {
|
|
199
|
+
"""The ID of the run."""
|
|
200
|
+
id: ID!
|
|
201
|
+
"""The version the rerun runs on."""
|
|
202
|
+
version: WorkflowRunRerunVersion!
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### `WorkflowRunRerunPayload`
|
|
207
|
+
|
|
208
|
+
```graphql
|
|
209
|
+
"""The result of `workflowRunRerun`."""
|
|
210
|
+
type WorkflowRunRerunPayload {
|
|
211
|
+
"""The rerun. Null when `userErrors` is not empty."""
|
|
212
|
+
workflowRun: WorkflowRun
|
|
213
|
+
"""
|
|
214
|
+
The reasons the run cannot be rerun, with codes `RUN_NOT_RERUNNABLE` (the run is running, is a
|
|
215
|
+
preview run, or no action submission that still exists started it), `VERSION_UNAVAILABLE` (the
|
|
216
|
+
chosen version cannot run it) or `RERUN_IN_PROGRESS` (a rerun of the same chain is running).
|
|
217
|
+
"""
|
|
218
|
+
userErrors: [UserError!]!
|
|
142
219
|
}
|
|
143
220
|
```
|
|
144
221
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picked",
|
|
3
3
|
"description": "The Picked SDK front door: the client, the picked.config helpers, and the picked CLI in one install",
|
|
4
|
-
"version": "0.0.102-next.
|
|
4
|
+
"version": "0.0.102-next.3",
|
|
5
5
|
"bin": {
|
|
6
6
|
"picked": "dist/esm/bin.js"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@picked/cli": "0.0.102-next.
|
|
10
|
-
"@picked/config": "0.0.102-next.
|
|
9
|
+
"@picked/cli": "0.0.102-next.3",
|
|
10
|
+
"@picked/config": "0.0.102-next.3"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@picked/client": "workspace:*",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"main": "./dist/cjs/index.js",
|
|
65
65
|
"module": "./dist/esm/index.js",
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@picked/client": "0.0.102-next.
|
|
67
|
+
"@picked/client": "0.0.102-next.3"
|
|
68
68
|
},
|
|
69
69
|
"private": false,
|
|
70
70
|
"publishConfig": {
|