|
1
|
/** |
|
2
|
* @oas [get] /admin/workflows-executions |
|
3
|
* operationId: GetWorkflowsExecutions |
|
4
|
* summary: List Workflows Executions |
|
5
|
* description: Retrieve a list of workflows executions. The workflows executions can be filtered by fields such as `id`. The workflows executions can also be sorted or paginated. |
|
6
|
* x-authenticated: true |
|
7
|
* parameters: |
|
8
|
* - name: fields |
|
9
|
* in: query |
|
10
|
* description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default |
|
11
|
* fields. without prefix it will replace the entire default fields. |
|
12
|
* required: false |
|
13
|
* schema: |
|
14
|
* type: string |
|
15
|
* title: fields |
|
16
|
* description: Comma-separated fields that should be included in the returned data. if a field is prefixed with `+` it will be added to the default fields, using `-` will remove it from the default |
|
17
|
* fields. without prefix it will replace the entire default fields. |
|
18
|
* externalDocs: |
|
19
|
* url: "#select-fields-and-relations" |
|
20
|
* - name: offset |
|
21
|
* in: query |
|
22
|
* description: The number of items to skip when retrieving a list. |
|
23
|
* required: false |
|
24
|
* schema: |
|
25
|
* type: number |
|
26
|
* title: offset |
|
27
|
* description: The number of items to skip when retrieving a list. |
|
28
|
* externalDocs: |
|
29
|
* url: "#pagination" |
|
30
|
* - name: limit |
|
31
|
* in: query |
|
32
|
* description: Limit the number of items returned in the list. |
|
33
|
* required: false |
|
34
|
* schema: |
|
35
|
* type: number |
|
36
|
* title: limit |
|
37
|
* description: Limit the number of items returned in the list. |
|
38
|
* externalDocs: |
|
39
|
* url: "#pagination" |
|
40
|
* - name: order |
|
41
|
* in: query |
|
42
|
* description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`. |
|
43
|
* required: false |
|
44
|
* schema: |
|
45
|
* type: string |
|
46
|
* title: order |
|
47
|
* description: The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`. |
|
48
|
* - name: transaction_id |
|
49
|
* in: query |
|
50
|
* required: false |
|
51
|
* schema: |
|
52
|
* oneOf: |
|
53
|
* - type: string |
|
54
|
* title: transaction_id |
|
55
|
* description: Filter by a transaction ID. |
|
56
|
* - type: array |
|
57
|
* description: Filter by transaction IDs. |
|
58
|
* items: |
|
59
|
* type: string |
|
60
|
* title: transaction_id |
|
61
|
* description: A transaction ID. |
|
62
|
* - name: workflow_id |
|
63
|
* in: query |
|
64
|
* required: false |
|
65
|
* schema: |
|
66
|
* oneOf: |
|
67
|
* - type: string |
|
68
|
* title: workflow_id |
|
69
|
* description: Filter by a workflow ID. |
|
70
|
* - type: array |
|
71
|
* description: Filter by workflow IDs. |
|
72
|
* items: |
|
73
|
* type: string |
|
74
|
* title: workflow_id |
|
75
|
* description: A workflow ID. |
|
76
|
* - name: q |
|
77
|
* in: query |
|
78
|
* description: Search query to filter by a workflow execution's searchable fields. |
|
79
|
* required: false |
|
80
|
* schema: |
|
81
|
* type: string |
|
82
|
* title: q |
|
83
|
* description: Search query to filter by a workflow execution's searchable fields. |
|
84
|
* - name: with_deleted |
|
85
|
* in: query |
|
86
|
* description: Whether to include deleted records in the result. |
|
87
|
* required: false |
|
88
|
* schema: |
|
89
|
* type: boolean |
|
90
|
* title: with_deleted |
|
91
|
* description: Whether to include deleted records in the result. |
|
92
|
* - name: state |
|
93
|
* in: query |
|
94
|
* required: false |
|
95
|
* schema: |
|
96
|
* oneOf: |
|
97
|
* - type: string |
|
98
|
* title: state |
|
99
|
* description: Filter by a workflow execution's state. |
|
100
|
* - type: array |
|
101
|
* description: Filter by workflow execution states. |
|
102
|
* items: |
|
103
|
* type: string |
|
104
|
* title: state |
|
105
|
* description: A workflow execution state. |
|
106
|
* - name: created_at |
|
107
|
* in: query |
|
108
|
* description: Filter by the workflow execution's creation date. |
|
109
|
* required: false |
|
110
|
* schema: |
|
111
|
* type: object |
|
112
|
* properties: |
|
113
|
* $and: |
|
114
|
* type: array |
|
115
|
* description: Join query parameters with an AND condition. Each object's content is the same type as the expected query parameters. |
|
116
|
* items: |
|
117
|
* type: object |
|
118
|
* $or: |
|
119
|
* type: array |
|
120
|
* description: Join query parameters with an OR condition. Each object's content is the same type as the expected query parameters. |
|
121
|
* items: |
|
122
|
* type: object |
|
123
|
* $eq: |
|
124
|
* oneOf: |
|
125
|
* - type: string |
|
126
|
* title: $eq |
|
127
|
* description: Filter by exact value. |
|
128
|
* - type: array |
|
129
|
* title: $eq |
|
130
|
* description: Filter by exact value. |
|
131
|
* items: |
|
132
|
* type: string |
|
133
|
* $ne: |
|
134
|
* type: string |
|
135
|
* title: $ne |
|
136
|
* description: Filter by not equal to the given value. |
|
137
|
* $in: |
|
138
|
* type: array |
|
139
|
* title: $in |
|
140
|
* description: Filter by values included in the given array. |
|
141
|
* items: |
|
142
|
* type: string |
|
143
|
* $nin: |
|
144
|
* type: array |
|
145
|
* title: $nin |
|
146
|
* description: Filter by values not included in the given array. |
|
147
|
* items: |
|
148
|
* type: string |
|
149
|
* $not: |
|
150
|
* oneOf: |
|
151
|
* - type: string |
|
152
|
* title: $not |
|
153
|
* description: Filter by not equal to the given value. |
|
154
|
* - type: object |
|
155
|
* title: $not |
|
156
|
* description: Filter by values not matching the conditions in this parameter. |
|
157
|
* - type: array |
|
158
|
* title: $not |
|
159
|
* description: Filter by values not matching the conditions in this parameter. |
|
160
|
* items: |
|
161
|
* type: string |
|
162
|
* $gt: |
|
163
|
* type: string |
|
164
|
* title: $gt |
|
165
|
* description: Filter by values greater than the given value. |
|
166
|
* $gte: |
|
167
|
* type: string |
|
168
|
* title: $gte |
|
169
|
* description: Filter by values greater than or equal to the given value. |
|
170
|
* $lt: |
|
171
|
* type: string |
|
172
|
* title: $lt |
|
173
|
* description: Filter by values less than the given value. |
|
174
|
* $lte: |
|
175
|
* type: string |
|
176
|
* title: $lte |
|
177
|
* description: Filter by values less than or equal to the given value. |
|
178
|
* $like: |
|
179
|
* type: string |
|
180
|
* title: $like |
|
181
|
* description: Apply a `like` filter. Useful for strings only. |
|
182
|
* $re: |
|
183
|
* type: string |
|
184
|
* title: $re |
|
185
|
* description: Apply a regex filter. Useful for strings only. |
|
186
|
* $ilike: |
|
187
|
* type: string |
|
188
|
* title: $ilike |
|
189
|
* description: Apply a case-insensitive `like` filter. Useful for strings only. |
|
190
|
* $fulltext: |
|
191
|
* type: string |
|
192
|
* title: $fulltext |
|
193
|
* description: Filter to apply on full-text properties. |
|
194
|
* $overlap: |
|
195
|
* type: array |
|
196
|
* title: $overlap |
|
197
|
* description: Filter to apply on array properties to find overlapping values. |
|
198
|
* items: |
|
199
|
* type: string |
|
200
|
* $contains: |
|
201
|
* type: array |
|
202
|
* title: $contains |
|
203
|
* description: Filter to apply on array properties to find contained values. |
|
204
|
* items: |
|
205
|
* type: string |
|
206
|
* $contained: |
|
207
|
* type: array |
|
208
|
* title: $contained |
|
209
|
* description: Filter to apply on array properties to find contained values. |
|
210
|
* items: |
|
211
|
* type: string |
|
212
|
* $exists: |
|
213
|
* type: boolean |
|
214
|
* title: $exists |
|
215
|
* description: Filter by whether a value exists or not. |
|
216
|
* title: created_at |
|
217
|
* description: The workflows execution's created at. |
|
218
|
* security: |
|
219
|
* - api_token: [] |
|
220
|
* - cookie_auth: [] |
|
221
|
* - jwt_token: [] |
|
222
|
* x-codeSamples: |
|
223
|
* - lang: JavaScript |
|
224
|
* label: JS SDK |
|
225
|
* source: |- |
|
226
|
* import Medusa from "@medusajs/js-sdk" |
|
227
|
* |
|
228
|
* export const sdk = new Medusa({ |
|
229
|
* baseUrl: import.meta.env.VITE_BACKEND_URL || "/", |
|
230
|
* debug: import.meta.env.DEV, |
|
231
|
* auth: { |
|
232
|
* type: "session", |
|
233
|
* }, |
|
234
|
* }) |
|
235
|
* |
|
236
|
* sdk.admin.workflowExecution.list() |
|
237
|
* .then(({ workflow_executions, count, limit, offset }) => { |
|
238
|
* console.log(workflow_executions) |
|
239
|
* }) |
|
240
|
* - lang: Shell |
|
241
|
* label: cURL |
|
242
|
* source: |- |
|
243
|
* curl '{backend_url}/admin/workflows-executions' \ |
|
244
|
* -H 'Authorization: Bearer {jwt_token}' |
|
245
|
* tags: |
|
246
|
* - Workflows Executions |
|
247
|
* responses: |
|
248
|
* "200": |
|
249
|
* description: OK |
|
250
|
* content: |
|
251
|
* application/json: |
|
252
|
* schema: |
|
253
|
* allOf: |
|
254
|
* - type: object |
|
255
|
* description: The paginated list of workflow executions. |
|
256
|
* required: |
|
257
|
* - limit |
|
258
|
* - offset |
|
259
|
* - count |
|
260
|
* properties: |
|
261
|
* limit: |
|
262
|
* type: number |
|
263
|
* title: limit |
|
264
|
* description: The maximum number of items returned. |
|
265
|
* offset: |
|
266
|
* type: number |
|
267
|
* title: offset |
|
268
|
* description: The number of items skipped before retrieving the returned items. |
|
269
|
* count: |
|
270
|
* type: number |
|
271
|
* title: count |
|
272
|
* description: The total number of items. |
|
273
|
* - type: object |
|
274
|
* description: The paginated list of workflow executions. |
|
275
|
* required: |
|
276
|
* - workflow_executions |
|
277
|
* properties: |
|
278
|
* workflow_executions: |
|
279
|
* type: array |
|
280
|
* description: The workflows execution's workflow executions. |
|
281
|
* items: |
|
282
|
* $ref: "#/components/schemas/AdminWorkflowExecution" |
|
283
|
* "400": |
|
284
|
* $ref: "#/components/responses/400_error" |
|
285
|
* "401": |
|
286
|
* $ref: "#/components/responses/unauthorized" |
|
287
|
* "404": |
|
288
|
* $ref: "#/components/responses/not_found_error" |
|
289
|
* "409": |
|
290
|
* $ref: "#/components/responses/invalid_state_error" |
|
291
|
* "422": |
|
292
|
* $ref: "#/components/responses/invalid_request_error" |
|
293
|
* "500": |
|
294
|
* $ref: "#/components/responses/500_error" |
|
295
|
* |
|
296
|
*/ |
|
297
|
|