@webda/async 3.9.3 → 4.0.0-beta.10
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/README.md +92 -8
- package/lib/asyncaction.model.d.ts +207 -0
- package/lib/asyncaction.model.d.ts.map +1 -0
- package/lib/asyncaction.model.js +269 -0
- package/lib/asyncaction.model.js.map +1 -0
- package/lib/index.d.ts +7 -5
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +6 -5
- package/lib/index.js.map +1 -1
- package/lib/services/asyncevents.service.d.ts +154 -0
- package/lib/services/asyncevents.service.d.ts.map +1 -0
- package/lib/services/asyncevents.service.js +219 -0
- package/lib/services/asyncevents.service.js.map +1 -0
- package/lib/services/{asyncjobservice.d.ts → asyncjobservice.service.d.ts} +81 -87
- package/lib/services/asyncjobservice.service.d.ts.map +1 -0
- package/lib/services/asyncjobservice.service.js +596 -0
- package/lib/services/asyncjobservice.service.js.map +1 -0
- package/lib/services/{localrunner.d.ts → localrunner.service.d.ts} +24 -9
- package/lib/services/localrunner.service.d.ts.map +1 -0
- package/lib/services/localrunner.service.js +87 -0
- package/lib/services/localrunner.service.js.map +1 -0
- package/lib/services/{runner.d.ts → runner.service.d.ts} +17 -11
- package/lib/services/runner.service.d.ts.map +1 -0
- package/lib/services/{runner.js → runner.service.js} +16 -13
- package/lib/services/runner.service.js.map +1 -0
- package/lib/services/{servicerunner.d.ts → servicerunner.service.d.ts} +39 -37
- package/lib/services/servicerunner.service.d.ts.map +1 -0
- package/lib/services/servicerunner.service.js +131 -0
- package/lib/services/servicerunner.service.js.map +1 -0
- package/package.json +35 -39
- package/webda.module.json +1910 -868
- package/lib/models.d.ts +0 -169
- package/lib/models.js +0 -177
- package/lib/models.js.map +0 -1
- package/lib/services/asyncjobservice.js +0 -521
- package/lib/services/asyncjobservice.js.map +0 -1
- package/lib/services/localrunner.js +0 -70
- package/lib/services/localrunner.js.map +0 -1
- package/lib/services/runner.js.map +0 -1
- package/lib/services/servicerunner.js +0 -152
- package/lib/services/servicerunner.js.map +0 -1
package/webda.module.json
CHANGED
|
@@ -1,652 +1,1777 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://webda.io/schemas/webda.module.v4.json",
|
|
2
3
|
"beans": {},
|
|
3
4
|
"deployers": {},
|
|
4
5
|
"moddas": {
|
|
5
|
-
"Webda/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
"Webda/AsyncEvents": {
|
|
7
|
+
"Import": "lib/services/asyncevents.service:EventService",
|
|
8
|
+
"Schema": {
|
|
9
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"definitions": {
|
|
12
|
+
"queues": {
|
|
13
|
+
"additionalProperties": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"description": "Queues to post async events to",
|
|
17
|
+
"type": "object"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"inheritdoc": true,
|
|
21
|
+
"properties": {
|
|
22
|
+
"queues": {
|
|
23
|
+
"$ref": "#/definitions/queues",
|
|
24
|
+
"description": "Queues to post async events to"
|
|
25
|
+
},
|
|
26
|
+
"sync": {
|
|
27
|
+
"default": false,
|
|
28
|
+
"description": "Make the event sending asynchronous",
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
31
|
+
"type": {
|
|
32
|
+
"description": "Type of the service",
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"openapi": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"additionalProperties": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"required": [
|
|
41
|
+
"type"
|
|
42
|
+
],
|
|
43
|
+
"type": "object",
|
|
44
|
+
"title": "EventService"
|
|
45
|
+
},
|
|
46
|
+
"Configuration": "lib/services/asyncevents.service:EventServiceParameters"
|
|
14
47
|
},
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
48
|
+
"Webda/AsyncJobService": {
|
|
49
|
+
"Import": "lib/services/asyncjobservice.service:default",
|
|
50
|
+
"Schema": {
|
|
51
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"inheritdoc": true,
|
|
54
|
+
"properties": {
|
|
55
|
+
"asyncActionModel": {
|
|
56
|
+
"default": "Webda/AsyncWebdaAction",
|
|
57
|
+
"description": "Model to use when launching async action",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"asyncOperationDefinition": {
|
|
61
|
+
"description": "JSON file of the AsyncOperation definition\n\nGenerated with `webda operations operations.json`",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"asyncOperationModel": {
|
|
65
|
+
"default": "Webda/AsyncOperationAction",
|
|
66
|
+
"description": "Model to use when launching async operation",
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"concurrencyLimit": {
|
|
70
|
+
"description": "Limit the maximum number of jobs running in //",
|
|
71
|
+
"type": "number"
|
|
72
|
+
},
|
|
73
|
+
"fallbackOnFirst": {
|
|
74
|
+
"default": false,
|
|
75
|
+
"description": "Fallback on first runner if none match",
|
|
76
|
+
"type": "boolean"
|
|
77
|
+
},
|
|
78
|
+
"includeCron": {
|
|
79
|
+
"default": true,
|
|
80
|
+
"description": "Include Cron annotation to launch them as AsyncOperationAction",
|
|
81
|
+
"type": "boolean"
|
|
82
|
+
},
|
|
83
|
+
"includeSchedulerInWorker": {
|
|
84
|
+
"default": false,
|
|
85
|
+
"description": "Include the scheduler system in the worker",
|
|
86
|
+
"type": "boolean"
|
|
87
|
+
},
|
|
88
|
+
"localLaunch": {
|
|
89
|
+
"default": false,
|
|
90
|
+
"description": "If set runner will be called without queue",
|
|
91
|
+
"type": "boolean"
|
|
92
|
+
},
|
|
93
|
+
"logsLimit": {
|
|
94
|
+
"default": 500,
|
|
95
|
+
"description": "Limit the number of lines of logs available for an async action\n\nIf you need to store large amount of logs then you should use the CloudWatchLogger or similar logger",
|
|
96
|
+
"type": "number"
|
|
97
|
+
},
|
|
98
|
+
"onlyHttpHook": {
|
|
99
|
+
"default": false,
|
|
100
|
+
"description": "Define if we should only use an http hook and not rely on store for AsyncOperation",
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
},
|
|
103
|
+
"queue": {
|
|
104
|
+
"default": "AsyncActionsQueue",
|
|
105
|
+
"description": "Queue to post execution to",
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"runners": {
|
|
109
|
+
"description": "Runners to use",
|
|
110
|
+
"items": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"type": "array"
|
|
114
|
+
},
|
|
115
|
+
"schedulerResolution": {
|
|
116
|
+
"default": 60000,
|
|
117
|
+
"description": "Schedule action resolution\n\nIf set to 1000ms, you can schedule action per second\nby default it resolve per minute",
|
|
118
|
+
"type": "number"
|
|
119
|
+
},
|
|
120
|
+
"type": {
|
|
121
|
+
"description": "Type of the service",
|
|
122
|
+
"type": "string"
|
|
123
|
+
},
|
|
124
|
+
"url": {
|
|
125
|
+
"default": "/async",
|
|
126
|
+
"description": "URL to expose job status report hook",
|
|
127
|
+
"type": "string"
|
|
128
|
+
},
|
|
129
|
+
"openapi": {
|
|
130
|
+
"type": "object",
|
|
131
|
+
"additionalProperties": true
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"required": [
|
|
135
|
+
"runners",
|
|
136
|
+
"type"
|
|
137
|
+
],
|
|
138
|
+
"type": "object",
|
|
139
|
+
"title": "AsyncJobService"
|
|
140
|
+
},
|
|
141
|
+
"Configuration": "lib/services/asyncjobservice.service:AsyncJobServiceParameters",
|
|
142
|
+
"capabilities": [
|
|
143
|
+
"request-filter"
|
|
144
|
+
],
|
|
145
|
+
"commands": {
|
|
146
|
+
"async worker": {
|
|
147
|
+
"description": "Launch the async actions worker",
|
|
148
|
+
"method": "worker",
|
|
149
|
+
"args": {}
|
|
150
|
+
},
|
|
151
|
+
"async run": {
|
|
152
|
+
"description": "Run the async action described by the JOB_* environment variables",
|
|
153
|
+
"method": "runAction",
|
|
154
|
+
"args": {}
|
|
155
|
+
},
|
|
156
|
+
"async scheduler": {
|
|
157
|
+
"description": "Launch the async actions scheduler",
|
|
158
|
+
"method": "scheduler",
|
|
159
|
+
"args": {}
|
|
160
|
+
}
|
|
19
161
|
}
|
|
20
162
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
163
|
+
"Webda/LocalRunner": {
|
|
164
|
+
"Import": "lib/services/localrunner.service:default",
|
|
165
|
+
"Schema": {
|
|
166
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"definitions": {
|
|
169
|
+
"AbortSignal": {
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"description": "The **`AbortSignal`** interface represents a signal object that allows you to communicate with an asynchronous operation (such as a fetch request) and abort it if required via an AbortController object.\n\n[MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)",
|
|
172
|
+
"type": "object"
|
|
173
|
+
},
|
|
174
|
+
"ProcessEnv": {
|
|
175
|
+
"additionalProperties": {
|
|
176
|
+
"type": "string"
|
|
177
|
+
},
|
|
178
|
+
"type": "object"
|
|
179
|
+
},
|
|
180
|
+
"SpawnOptions": {
|
|
181
|
+
"additionalProperties": false,
|
|
182
|
+
"properties": {
|
|
183
|
+
"argv0": {
|
|
184
|
+
"type": "string"
|
|
185
|
+
},
|
|
186
|
+
"cwd": {
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"detached": {
|
|
190
|
+
"default": false,
|
|
191
|
+
"type": "boolean"
|
|
192
|
+
},
|
|
193
|
+
"env": {
|
|
194
|
+
"$ref": "#/definitions/ProcessEnv"
|
|
195
|
+
},
|
|
196
|
+
"gid": {
|
|
197
|
+
"type": "number"
|
|
198
|
+
},
|
|
199
|
+
"killSignal": {
|
|
200
|
+
"anyOf": [
|
|
201
|
+
{
|
|
202
|
+
"type": "number"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"const": "SIGABRT",
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"const": "SIGALRM",
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"const": "SIGBUS",
|
|
214
|
+
"type": "string"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"const": "SIGCHLD",
|
|
218
|
+
"type": "string"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"const": "SIGCONT",
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"const": "SIGFPE",
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"const": "SIGHUP",
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"const": "SIGILL",
|
|
234
|
+
"type": "string"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"const": "SIGINT",
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"const": "SIGIO",
|
|
242
|
+
"type": "string"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"const": "SIGIOT",
|
|
246
|
+
"type": "string"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"const": "SIGKILL",
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"const": "SIGPIPE",
|
|
254
|
+
"type": "string"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"const": "SIGPOLL",
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"const": "SIGPROF",
|
|
262
|
+
"type": "string"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"const": "SIGPWR",
|
|
266
|
+
"type": "string"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"const": "SIGQUIT",
|
|
270
|
+
"type": "string"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"const": "SIGSEGV",
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"const": "SIGSTKFLT",
|
|
278
|
+
"type": "string"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"const": "SIGSTOP",
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"const": "SIGSYS",
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"const": "SIGTERM",
|
|
290
|
+
"type": "string"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"const": "SIGTRAP",
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"const": "SIGTSTP",
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"const": "SIGTTIN",
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"const": "SIGTTOU",
|
|
306
|
+
"type": "string"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"const": "SIGUNUSED",
|
|
310
|
+
"type": "string"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"const": "SIGURG",
|
|
314
|
+
"type": "string"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"const": "SIGUSR1",
|
|
318
|
+
"type": "string"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"const": "SIGUSR2",
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"const": "SIGVTALRM",
|
|
326
|
+
"type": "string"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"const": "SIGWINCH",
|
|
330
|
+
"type": "string"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"const": "SIGXCPU",
|
|
334
|
+
"type": "string"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"const": "SIGXFSZ",
|
|
338
|
+
"type": "string"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"const": "SIGBREAK",
|
|
342
|
+
"type": "string"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"const": "SIGLOST",
|
|
346
|
+
"type": "string"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"const": "SIGINFO",
|
|
350
|
+
"type": "string"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"default": "'SIGTERM'",
|
|
354
|
+
"description": "The signal value to be used when the spawned process will be killed by the abort signal."
|
|
355
|
+
},
|
|
356
|
+
"serialization": {
|
|
357
|
+
"default": "'json'",
|
|
358
|
+
"description": "Specify the kind of serialization used for sending messages between processes.",
|
|
359
|
+
"enum": [
|
|
360
|
+
"json",
|
|
361
|
+
"advanced"
|
|
362
|
+
],
|
|
363
|
+
"type": "string"
|
|
364
|
+
},
|
|
365
|
+
"shell": {
|
|
366
|
+
"type": [
|
|
367
|
+
"string",
|
|
368
|
+
"boolean"
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
"signal": {
|
|
372
|
+
"$ref": "#/definitions/AbortSignal"
|
|
373
|
+
},
|
|
374
|
+
"stdio": {
|
|
375
|
+
"anyOf": [
|
|
376
|
+
{
|
|
377
|
+
"const": "overlapped",
|
|
378
|
+
"type": "string"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"const": "pipe",
|
|
382
|
+
"type": "string"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"const": "ignore",
|
|
386
|
+
"type": "string"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"const": "inherit",
|
|
390
|
+
"type": "string"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"items": {
|
|
394
|
+
"anyOf": [
|
|
395
|
+
{
|
|
396
|
+
"type": "number"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
"const": "overlapped",
|
|
400
|
+
"type": "string"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"const": "pipe",
|
|
404
|
+
"type": "string"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"const": "ignore",
|
|
408
|
+
"type": "string"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"const": "inherit",
|
|
412
|
+
"type": "string"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"const": "ipc",
|
|
416
|
+
"type": "string"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"$ref": "#/definitions/Stream"
|
|
420
|
+
}
|
|
421
|
+
]
|
|
422
|
+
},
|
|
423
|
+
"type": "array"
|
|
424
|
+
}
|
|
425
|
+
],
|
|
426
|
+
"default": "'pipe'",
|
|
427
|
+
"description": "Can be set to 'pipe', 'inherit', 'overlapped', or 'ignore', or an array of these strings.\nIf passed as an array, the first element is used for `stdin`, the second for\n`stdout`, and the third for `stderr`. A fourth element can be used to\nspecify the `stdio` behavior beyond the standard streams. See\n{@link ChildProcess.stdio} for more information."
|
|
428
|
+
},
|
|
429
|
+
"timeout": {
|
|
430
|
+
"default": 0,
|
|
431
|
+
"type": "number"
|
|
432
|
+
},
|
|
433
|
+
"uid": {
|
|
434
|
+
"type": "number"
|
|
435
|
+
},
|
|
436
|
+
"windowsHide": {
|
|
437
|
+
"default": false,
|
|
438
|
+
"type": "boolean"
|
|
439
|
+
},
|
|
440
|
+
"windowsVerbatimArguments": {
|
|
441
|
+
"default": false,
|
|
442
|
+
"type": "boolean"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"type": "object"
|
|
446
|
+
},
|
|
447
|
+
"Stream": {
|
|
448
|
+
"additionalProperties": false,
|
|
449
|
+
"type": "object"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"description": "LocalRunner parameters",
|
|
453
|
+
"properties": {
|
|
454
|
+
"actions": {
|
|
455
|
+
"default": [],
|
|
456
|
+
"description": "Actions managed by the runner",
|
|
457
|
+
"items": {
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
"type": "array"
|
|
461
|
+
},
|
|
462
|
+
"args": {
|
|
463
|
+
"description": "Args",
|
|
464
|
+
"items": {
|
|
465
|
+
"type": "string"
|
|
466
|
+
},
|
|
467
|
+
"type": "array"
|
|
468
|
+
},
|
|
469
|
+
"autoStatus": {
|
|
470
|
+
"default": false,
|
|
471
|
+
"description": "Use the observability of ChildProcess to update status accordingly",
|
|
472
|
+
"type": "boolean"
|
|
473
|
+
},
|
|
474
|
+
"command": {
|
|
475
|
+
"description": "Command to launch",
|
|
476
|
+
"type": "string"
|
|
477
|
+
},
|
|
478
|
+
"options": {
|
|
479
|
+
"$ref": "#/definitions/SpawnOptions",
|
|
480
|
+
"description": "Options\n\nBased on https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options"
|
|
481
|
+
},
|
|
482
|
+
"type": {
|
|
483
|
+
"description": "Type of the service",
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
486
|
+
"openapi": {
|
|
487
|
+
"type": "object",
|
|
488
|
+
"additionalProperties": true
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"required": [
|
|
492
|
+
"command",
|
|
493
|
+
"type"
|
|
494
|
+
],
|
|
495
|
+
"type": "object",
|
|
496
|
+
"title": "LocalRunner"
|
|
51
497
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
498
|
+
"Configuration": "lib/services/localrunner.service:LocalRunnerParameters"
|
|
499
|
+
},
|
|
500
|
+
"Webda/ServiceRunner": {
|
|
501
|
+
"Import": "lib/services/servicerunner.service:default",
|
|
502
|
+
"Schema": {
|
|
503
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
504
|
+
"additionalProperties": false,
|
|
505
|
+
"description": "Add the log format to capture",
|
|
506
|
+
"properties": {
|
|
507
|
+
"actions": {
|
|
508
|
+
"default": [],
|
|
509
|
+
"description": "Actions managed by the runner",
|
|
510
|
+
"items": {
|
|
511
|
+
"type": "string"
|
|
512
|
+
},
|
|
513
|
+
"type": "array"
|
|
514
|
+
},
|
|
515
|
+
"logFormat": {
|
|
516
|
+
"default": "ConsoleLoggerDefaultFormat",
|
|
517
|
+
"description": "Define the log format",
|
|
518
|
+
"type": "string"
|
|
519
|
+
},
|
|
520
|
+
"logSaveDelay": {
|
|
521
|
+
"default": 5000,
|
|
522
|
+
"description": "How long before saving logs (in ms)",
|
|
523
|
+
"type": "number"
|
|
524
|
+
},
|
|
525
|
+
"type": {
|
|
526
|
+
"description": "Type of the service",
|
|
527
|
+
"type": "string"
|
|
528
|
+
},
|
|
529
|
+
"openapi": {
|
|
530
|
+
"type": "object",
|
|
531
|
+
"additionalProperties": true
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"required": [
|
|
535
|
+
"type"
|
|
536
|
+
],
|
|
537
|
+
"type": "object",
|
|
538
|
+
"title": "ServiceRunner"
|
|
75
539
|
},
|
|
76
|
-
"
|
|
77
|
-
"logLevel": "WorkerLogLevel",
|
|
78
|
-
"uuid": "string",
|
|
79
|
-
"status": "\"RUNNING\" | \"SUCCESS\" | \"ERROR\" | \"QUEUED\" | \"STARTING\" | \"TIMEOUT\" | \"SCHEDULED\" | \"CANCELLED\"",
|
|
80
|
-
"scheduled": "number",
|
|
81
|
-
"errorMessage": "string",
|
|
82
|
-
"job": "Job",
|
|
83
|
-
"_lastJobUpdate": "number",
|
|
84
|
-
"results": "any",
|
|
85
|
-
"statusDetails": "any",
|
|
86
|
-
"type": "string",
|
|
87
|
-
"arguments": "any[]",
|
|
88
|
-
"logs": "string[]",
|
|
89
|
-
"__secretKey": "string",
|
|
90
|
-
"action": "\"STOP\" | string",
|
|
91
|
-
"__class": "CoreModelDefinition<this>",
|
|
92
|
-
"__type": "string",
|
|
93
|
-
"__types": "string[]",
|
|
94
|
-
"__ctx": "OperationContext",
|
|
95
|
-
"__store": "Store<this>",
|
|
96
|
-
"__dirty": "Set<string | symbol>",
|
|
97
|
-
"_creationDate": "Date",
|
|
98
|
-
"_lastUpdate": "Date",
|
|
99
|
-
"__deleted": "boolean"
|
|
100
|
-
}
|
|
540
|
+
"Configuration": "lib/services/servicerunner.service:ServiceRunnerParameters"
|
|
101
541
|
}
|
|
102
542
|
},
|
|
103
|
-
"
|
|
543
|
+
"models": {
|
|
104
544
|
"Webda/AsyncAction": {
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
|
|
117
|
-
|
|
545
|
+
"Plural": "AsyncActions",
|
|
546
|
+
"Import": "lib/asyncaction.model:default",
|
|
547
|
+
"Relations": {},
|
|
548
|
+
"Ancestors": [],
|
|
549
|
+
"Subclasses": [
|
|
550
|
+
"Webda/AsyncWebdaAction",
|
|
551
|
+
"Webda/AsyncOperationAction"
|
|
552
|
+
],
|
|
553
|
+
"Reflection": {
|
|
554
|
+
"status": {
|
|
555
|
+
"type": "\"RUNNING\" | \"SUCCESS\" | \"ERROR\" | \"QUEUED\" | \"STARTING\" | \"TIMEOUT\" | \"SCHEDULED\""
|
|
556
|
+
},
|
|
557
|
+
"scheduled": {
|
|
558
|
+
"type": "number"
|
|
559
|
+
},
|
|
560
|
+
"errorMessage": {
|
|
561
|
+
"type": "string"
|
|
562
|
+
},
|
|
563
|
+
"errorName": {
|
|
564
|
+
"type": "string"
|
|
565
|
+
},
|
|
566
|
+
"job": {
|
|
567
|
+
"type": "any"
|
|
568
|
+
},
|
|
569
|
+
"_lastJobUpdate": {
|
|
570
|
+
"type": "number"
|
|
571
|
+
},
|
|
572
|
+
"results": {
|
|
573
|
+
"type": "any"
|
|
574
|
+
},
|
|
575
|
+
"statusDetails": {
|
|
576
|
+
"type": "any"
|
|
577
|
+
},
|
|
578
|
+
"type": {
|
|
579
|
+
"type": "string"
|
|
580
|
+
},
|
|
581
|
+
"arguments": {
|
|
582
|
+
"type": "Array",
|
|
583
|
+
"typeParameters": [
|
|
584
|
+
"any"
|
|
585
|
+
]
|
|
586
|
+
},
|
|
587
|
+
"logs": {
|
|
588
|
+
"type": "Array",
|
|
589
|
+
"typeParameters": [
|
|
590
|
+
"string"
|
|
591
|
+
]
|
|
592
|
+
},
|
|
593
|
+
"__secretKey": {
|
|
594
|
+
"type": "string"
|
|
595
|
+
},
|
|
596
|
+
"action": {
|
|
597
|
+
"type": "\"STOP\" | string"
|
|
118
598
|
},
|
|
119
599
|
"uuid": {
|
|
120
|
-
"type": "string"
|
|
121
|
-
|
|
600
|
+
"type": "string"
|
|
601
|
+
}
|
|
602
|
+
},
|
|
603
|
+
"Schemas": {
|
|
604
|
+
"Output": {
|
|
605
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
606
|
+
"WebdaModel": true,
|
|
607
|
+
"WebdaPlural": "AsyncActions",
|
|
608
|
+
"additionalProperties": false,
|
|
609
|
+
"description": "Define here a model that can be used along with Store service",
|
|
610
|
+
"properties": {
|
|
611
|
+
"__secretKey": {
|
|
612
|
+
"description": "Secret key to post feedback",
|
|
613
|
+
"type": "string"
|
|
614
|
+
},
|
|
615
|
+
"_lastJobUpdate": {
|
|
616
|
+
"description": "Last time the job was updated",
|
|
617
|
+
"type": "number"
|
|
618
|
+
},
|
|
619
|
+
"action": {
|
|
620
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
621
|
+
"type": "string"
|
|
622
|
+
},
|
|
623
|
+
"arguments": {
|
|
624
|
+
"description": "Arguments of the action",
|
|
625
|
+
"items": {},
|
|
626
|
+
"type": "array"
|
|
627
|
+
},
|
|
628
|
+
"errorMessage": {
|
|
629
|
+
"description": "If an error occured it should contain the message",
|
|
630
|
+
"type": "string"
|
|
631
|
+
},
|
|
632
|
+
"errorName": {
|
|
633
|
+
"description": "If an error occured it should contain the name",
|
|
634
|
+
"type": "string"
|
|
635
|
+
},
|
|
636
|
+
"job": {
|
|
637
|
+
"description": "Job information"
|
|
638
|
+
},
|
|
639
|
+
"logs": {
|
|
640
|
+
"description": "Current logs",
|
|
641
|
+
"items": {
|
|
642
|
+
"type": "string"
|
|
643
|
+
},
|
|
644
|
+
"type": "array"
|
|
645
|
+
},
|
|
646
|
+
"results": {
|
|
647
|
+
"description": "Results from the job"
|
|
648
|
+
},
|
|
649
|
+
"scheduled": {
|
|
650
|
+
"description": "Timestamp when the action was scheduled",
|
|
651
|
+
"type": "number"
|
|
652
|
+
},
|
|
653
|
+
"status": {
|
|
654
|
+
"description": "Current status",
|
|
655
|
+
"enum": [
|
|
656
|
+
"RUNNING",
|
|
657
|
+
"SUCCESS",
|
|
658
|
+
"ERROR",
|
|
659
|
+
"QUEUED",
|
|
660
|
+
"STARTING",
|
|
661
|
+
"TIMEOUT",
|
|
662
|
+
"SCHEDULED"
|
|
663
|
+
],
|
|
664
|
+
"type": "string"
|
|
665
|
+
},
|
|
666
|
+
"statusDetails": {
|
|
667
|
+
"description": "Job current status"
|
|
668
|
+
},
|
|
669
|
+
"type": {
|
|
670
|
+
"description": "Type of action",
|
|
671
|
+
"type": "string"
|
|
672
|
+
},
|
|
673
|
+
"uuid": {
|
|
674
|
+
"description": "UUID of the model",
|
|
675
|
+
"format": "uuid",
|
|
676
|
+
"type": "string"
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
"required": [
|
|
680
|
+
"__secretKey",
|
|
681
|
+
"_lastJobUpdate",
|
|
682
|
+
"job",
|
|
683
|
+
"logs",
|
|
684
|
+
"results",
|
|
685
|
+
"status",
|
|
686
|
+
"statusDetails",
|
|
687
|
+
"type",
|
|
688
|
+
"uuid"
|
|
689
|
+
],
|
|
690
|
+
"type": "object",
|
|
691
|
+
"$webda": "toDto$auto"
|
|
692
|
+
},
|
|
693
|
+
"Input": {
|
|
694
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
695
|
+
"WebdaModel": true,
|
|
696
|
+
"WebdaPlural": "AsyncActions",
|
|
697
|
+
"additionalProperties": false,
|
|
698
|
+
"description": "Define here a model that can be used along with Store service",
|
|
699
|
+
"properties": {
|
|
700
|
+
"__secretKey": {
|
|
701
|
+
"description": "Secret key to post feedback",
|
|
702
|
+
"type": "string"
|
|
703
|
+
},
|
|
704
|
+
"_lastJobUpdate": {
|
|
705
|
+
"description": "Last time the job was updated",
|
|
706
|
+
"type": "number"
|
|
707
|
+
},
|
|
708
|
+
"action": {
|
|
709
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
710
|
+
"type": "string"
|
|
711
|
+
},
|
|
712
|
+
"arguments": {
|
|
713
|
+
"description": "Arguments of the action",
|
|
714
|
+
"items": {},
|
|
715
|
+
"type": "array"
|
|
716
|
+
},
|
|
717
|
+
"errorMessage": {
|
|
718
|
+
"description": "If an error occured it should contain the message",
|
|
719
|
+
"type": "string"
|
|
720
|
+
},
|
|
721
|
+
"errorName": {
|
|
722
|
+
"description": "If an error occured it should contain the name",
|
|
723
|
+
"type": "string"
|
|
724
|
+
},
|
|
725
|
+
"job": {
|
|
726
|
+
"description": "Job information"
|
|
727
|
+
},
|
|
728
|
+
"logs": {
|
|
729
|
+
"description": "Current logs",
|
|
730
|
+
"items": {
|
|
731
|
+
"type": "string"
|
|
732
|
+
},
|
|
733
|
+
"type": "array"
|
|
734
|
+
},
|
|
735
|
+
"results": {
|
|
736
|
+
"description": "Results from the job"
|
|
737
|
+
},
|
|
738
|
+
"scheduled": {
|
|
739
|
+
"description": "Timestamp when the action was scheduled",
|
|
740
|
+
"type": "number"
|
|
741
|
+
},
|
|
742
|
+
"status": {
|
|
743
|
+
"description": "Current status",
|
|
744
|
+
"enum": [
|
|
745
|
+
"RUNNING",
|
|
746
|
+
"SUCCESS",
|
|
747
|
+
"ERROR",
|
|
748
|
+
"QUEUED",
|
|
749
|
+
"STARTING",
|
|
750
|
+
"TIMEOUT",
|
|
751
|
+
"SCHEDULED"
|
|
752
|
+
],
|
|
753
|
+
"type": "string"
|
|
754
|
+
},
|
|
755
|
+
"statusDetails": {
|
|
756
|
+
"description": "Job current status"
|
|
757
|
+
},
|
|
758
|
+
"type": {
|
|
759
|
+
"description": "Type of action",
|
|
760
|
+
"type": "string"
|
|
761
|
+
},
|
|
762
|
+
"uuid": {
|
|
763
|
+
"description": "UUID of the model",
|
|
764
|
+
"format": "uuid",
|
|
765
|
+
"type": "string"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"required": [
|
|
769
|
+
"__secretKey",
|
|
770
|
+
"_lastJobUpdate",
|
|
771
|
+
"job",
|
|
772
|
+
"logs",
|
|
773
|
+
"results",
|
|
774
|
+
"status",
|
|
775
|
+
"statusDetails",
|
|
776
|
+
"type",
|
|
777
|
+
"uuid"
|
|
778
|
+
],
|
|
779
|
+
"type": "object",
|
|
780
|
+
"$webda": "fromDto$auto"
|
|
781
|
+
},
|
|
782
|
+
"Stored": {
|
|
783
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
784
|
+
"WebdaModel": true,
|
|
785
|
+
"WebdaPlural": "AsyncActions",
|
|
786
|
+
"additionalProperties": false,
|
|
787
|
+
"description": "Define here a model that can be used along with Store service",
|
|
788
|
+
"properties": {
|
|
789
|
+
"__secretKey": {
|
|
790
|
+
"description": "Secret key to post feedback",
|
|
791
|
+
"type": "string"
|
|
792
|
+
},
|
|
793
|
+
"_lastJobUpdate": {
|
|
794
|
+
"description": "Last time the job was updated",
|
|
795
|
+
"type": "number"
|
|
796
|
+
},
|
|
797
|
+
"action": {
|
|
798
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
799
|
+
"type": "string"
|
|
800
|
+
},
|
|
801
|
+
"arguments": {
|
|
802
|
+
"description": "Arguments of the action",
|
|
803
|
+
"items": {},
|
|
804
|
+
"type": "array"
|
|
805
|
+
},
|
|
806
|
+
"errorMessage": {
|
|
807
|
+
"description": "If an error occured it should contain the message",
|
|
808
|
+
"type": "string"
|
|
809
|
+
},
|
|
810
|
+
"errorName": {
|
|
811
|
+
"description": "If an error occured it should contain the name",
|
|
812
|
+
"type": "string"
|
|
813
|
+
},
|
|
814
|
+
"job": {
|
|
815
|
+
"description": "Job information"
|
|
816
|
+
},
|
|
817
|
+
"logs": {
|
|
818
|
+
"description": "Current logs",
|
|
819
|
+
"items": {
|
|
820
|
+
"type": "string"
|
|
821
|
+
},
|
|
822
|
+
"type": "array"
|
|
823
|
+
},
|
|
824
|
+
"results": {
|
|
825
|
+
"description": "Results from the job"
|
|
826
|
+
},
|
|
827
|
+
"scheduled": {
|
|
828
|
+
"description": "Timestamp when the action was scheduled",
|
|
829
|
+
"type": "number"
|
|
830
|
+
},
|
|
831
|
+
"status": {
|
|
832
|
+
"description": "Current status",
|
|
833
|
+
"enum": [
|
|
834
|
+
"RUNNING",
|
|
835
|
+
"SUCCESS",
|
|
836
|
+
"ERROR",
|
|
837
|
+
"QUEUED",
|
|
838
|
+
"STARTING",
|
|
839
|
+
"TIMEOUT",
|
|
840
|
+
"SCHEDULED"
|
|
841
|
+
],
|
|
842
|
+
"type": "string"
|
|
843
|
+
},
|
|
844
|
+
"statusDetails": {
|
|
845
|
+
"description": "Job current status"
|
|
846
|
+
},
|
|
847
|
+
"type": {
|
|
848
|
+
"description": "Type of action",
|
|
849
|
+
"type": "string"
|
|
850
|
+
},
|
|
851
|
+
"uuid": {
|
|
852
|
+
"description": "UUID of the model",
|
|
853
|
+
"format": "uuid",
|
|
854
|
+
"type": "string"
|
|
855
|
+
}
|
|
856
|
+
},
|
|
857
|
+
"required": [
|
|
858
|
+
"__secretKey",
|
|
859
|
+
"_lastJobUpdate",
|
|
860
|
+
"job",
|
|
861
|
+
"logs",
|
|
862
|
+
"results",
|
|
863
|
+
"status",
|
|
864
|
+
"statusDetails",
|
|
865
|
+
"type",
|
|
866
|
+
"uuid"
|
|
867
|
+
],
|
|
868
|
+
"type": "object",
|
|
869
|
+
"$webda": "toJSON$return"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"Actions": {
|
|
873
|
+
"status": {
|
|
874
|
+
"handler": "statusAction"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"Events": [
|
|
878
|
+
"Create",
|
|
879
|
+
"PartialUpdate",
|
|
880
|
+
"Delete",
|
|
881
|
+
"Update",
|
|
882
|
+
"Patch",
|
|
883
|
+
"Query",
|
|
884
|
+
"Aggregate",
|
|
885
|
+
"Created",
|
|
886
|
+
"PartialUpdated",
|
|
887
|
+
"Deleted",
|
|
888
|
+
"Patched",
|
|
889
|
+
"Updated",
|
|
890
|
+
"Queried",
|
|
891
|
+
"Aggregated"
|
|
892
|
+
],
|
|
893
|
+
"PrimaryKey": [
|
|
894
|
+
"uuid"
|
|
895
|
+
],
|
|
896
|
+
"Identifier": "Webda/AsyncAction"
|
|
897
|
+
},
|
|
898
|
+
"Webda/AsyncOperationAction": {
|
|
899
|
+
"Plural": "AsyncOperationActions",
|
|
900
|
+
"Import": "lib/asyncaction.model:AsyncOperationAction",
|
|
901
|
+
"Relations": {},
|
|
902
|
+
"Ancestors": [
|
|
903
|
+
"Webda/AsyncAction"
|
|
904
|
+
],
|
|
905
|
+
"Subclasses": [],
|
|
906
|
+
"Reflection": {
|
|
907
|
+
"operationId": {
|
|
908
|
+
"type": "string"
|
|
909
|
+
},
|
|
910
|
+
"context": {
|
|
911
|
+
"type": "any"
|
|
912
|
+
},
|
|
913
|
+
"logLevel": {
|
|
914
|
+
"type": "WorkerLogLevel"
|
|
122
915
|
},
|
|
123
916
|
"status": {
|
|
124
|
-
"type": "
|
|
125
|
-
"enum": [
|
|
126
|
-
"RUNNING",
|
|
127
|
-
"SUCCESS",
|
|
128
|
-
"ERROR",
|
|
129
|
-
"QUEUED",
|
|
130
|
-
"STARTING",
|
|
131
|
-
"TIMEOUT",
|
|
132
|
-
"SCHEDULED",
|
|
133
|
-
"CANCELLED"
|
|
134
|
-
],
|
|
135
|
-
"description": "Current status"
|
|
917
|
+
"type": "\"RUNNING\" | \"SUCCESS\" | \"ERROR\" | \"QUEUED\" | \"STARTING\" | \"TIMEOUT\" | \"SCHEDULED\""
|
|
136
918
|
},
|
|
137
919
|
"scheduled": {
|
|
138
|
-
"type": "number"
|
|
139
|
-
"description": "Timestamp when the action was scheduled"
|
|
920
|
+
"type": "number"
|
|
140
921
|
},
|
|
141
922
|
"errorMessage": {
|
|
142
|
-
"type": "string"
|
|
143
|
-
|
|
923
|
+
"type": "string"
|
|
924
|
+
},
|
|
925
|
+
"errorName": {
|
|
926
|
+
"type": "string"
|
|
144
927
|
},
|
|
145
928
|
"job": {
|
|
146
|
-
"type": "
|
|
147
|
-
"description": "Job information"
|
|
929
|
+
"type": "any"
|
|
148
930
|
},
|
|
149
931
|
"_lastJobUpdate": {
|
|
150
|
-
"type": "number"
|
|
151
|
-
"description": "Last time the job was updated",
|
|
152
|
-
"readOnly": true
|
|
932
|
+
"type": "number"
|
|
153
933
|
},
|
|
154
934
|
"results": {
|
|
155
|
-
"
|
|
935
|
+
"type": "any"
|
|
156
936
|
},
|
|
157
937
|
"statusDetails": {
|
|
158
|
-
"
|
|
938
|
+
"type": "any"
|
|
159
939
|
},
|
|
160
940
|
"type": {
|
|
161
941
|
"type": "string"
|
|
162
942
|
},
|
|
163
943
|
"arguments": {
|
|
164
|
-
"type": "
|
|
165
|
-
"
|
|
944
|
+
"type": "Array",
|
|
945
|
+
"typeParameters": [
|
|
946
|
+
"any"
|
|
947
|
+
]
|
|
166
948
|
},
|
|
167
949
|
"logs": {
|
|
168
|
-
"type": "
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
950
|
+
"type": "Array",
|
|
951
|
+
"typeParameters": [
|
|
952
|
+
"string"
|
|
953
|
+
]
|
|
954
|
+
},
|
|
955
|
+
"__secretKey": {
|
|
956
|
+
"type": "string"
|
|
173
957
|
},
|
|
174
958
|
"action": {
|
|
175
|
-
"type": "string"
|
|
176
|
-
|
|
959
|
+
"type": "\"STOP\" | string"
|
|
960
|
+
},
|
|
961
|
+
"uuid": {
|
|
962
|
+
"type": "string"
|
|
177
963
|
}
|
|
178
964
|
},
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
965
|
+
"Schemas": {
|
|
966
|
+
"Output": {
|
|
967
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
968
|
+
"WebdaModel": true,
|
|
969
|
+
"WebdaPlural": "AsyncOperationActions",
|
|
970
|
+
"additionalProperties": false,
|
|
971
|
+
"description": "Operation called asynchronously",
|
|
972
|
+
"properties": {
|
|
973
|
+
"__secretKey": {
|
|
974
|
+
"description": "Secret key to post feedback",
|
|
975
|
+
"type": "string"
|
|
976
|
+
},
|
|
977
|
+
"_lastJobUpdate": {
|
|
978
|
+
"description": "Last time the job was updated",
|
|
979
|
+
"type": "number"
|
|
980
|
+
},
|
|
981
|
+
"action": {
|
|
982
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
983
|
+
"type": "string"
|
|
984
|
+
},
|
|
985
|
+
"arguments": {
|
|
986
|
+
"description": "Arguments of the action",
|
|
987
|
+
"items": {},
|
|
988
|
+
"type": "array"
|
|
989
|
+
},
|
|
990
|
+
"context": {
|
|
991
|
+
"description": "Context to call the operation with"
|
|
992
|
+
},
|
|
993
|
+
"errorMessage": {
|
|
994
|
+
"description": "If an error occured it should contain the message",
|
|
995
|
+
"type": "string"
|
|
996
|
+
},
|
|
997
|
+
"errorName": {
|
|
998
|
+
"description": "If an error occured it should contain the name",
|
|
999
|
+
"type": "string"
|
|
1000
|
+
},
|
|
1001
|
+
"job": {
|
|
1002
|
+
"description": "Job information"
|
|
1003
|
+
},
|
|
1004
|
+
"logLevel": {
|
|
1005
|
+
"description": "Log level to capture",
|
|
1006
|
+
"enum": [
|
|
1007
|
+
"ERROR",
|
|
1008
|
+
"WARN",
|
|
1009
|
+
"INFO",
|
|
1010
|
+
"DEBUG",
|
|
1011
|
+
"TRACE"
|
|
1012
|
+
],
|
|
1013
|
+
"type": "string"
|
|
1014
|
+
},
|
|
1015
|
+
"logs": {
|
|
1016
|
+
"description": "Current logs",
|
|
1017
|
+
"items": {
|
|
1018
|
+
"type": "string"
|
|
1019
|
+
},
|
|
1020
|
+
"type": "array"
|
|
1021
|
+
},
|
|
1022
|
+
"operationId": {
|
|
1023
|
+
"description": "Operation to call",
|
|
1024
|
+
"type": "string"
|
|
1025
|
+
},
|
|
1026
|
+
"results": {
|
|
1027
|
+
"description": "Results from the job"
|
|
1028
|
+
},
|
|
1029
|
+
"scheduled": {
|
|
1030
|
+
"description": "Timestamp when the action was scheduled",
|
|
1031
|
+
"type": "number"
|
|
1032
|
+
},
|
|
1033
|
+
"status": {
|
|
1034
|
+
"description": "Current status",
|
|
1035
|
+
"enum": [
|
|
1036
|
+
"RUNNING",
|
|
1037
|
+
"SUCCESS",
|
|
1038
|
+
"ERROR",
|
|
1039
|
+
"QUEUED",
|
|
1040
|
+
"STARTING",
|
|
1041
|
+
"TIMEOUT",
|
|
1042
|
+
"SCHEDULED"
|
|
1043
|
+
],
|
|
1044
|
+
"type": "string"
|
|
1045
|
+
},
|
|
1046
|
+
"statusDetails": {
|
|
1047
|
+
"description": "Job current status"
|
|
1048
|
+
},
|
|
1049
|
+
"type": {
|
|
1050
|
+
"description": "Type of action",
|
|
1051
|
+
"type": "string"
|
|
1052
|
+
},
|
|
1053
|
+
"uuid": {
|
|
1054
|
+
"description": "UUID of the model",
|
|
1055
|
+
"format": "uuid",
|
|
1056
|
+
"type": "string"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"required": [
|
|
1060
|
+
"__secretKey",
|
|
1061
|
+
"_lastJobUpdate",
|
|
1062
|
+
"context",
|
|
1063
|
+
"job",
|
|
1064
|
+
"logLevel",
|
|
1065
|
+
"logs",
|
|
1066
|
+
"operationId",
|
|
1067
|
+
"results",
|
|
1068
|
+
"status",
|
|
1069
|
+
"statusDetails",
|
|
1070
|
+
"type",
|
|
1071
|
+
"uuid"
|
|
1072
|
+
],
|
|
1073
|
+
"type": "object",
|
|
1074
|
+
"$webda": "toDto$auto"
|
|
1075
|
+
},
|
|
1076
|
+
"Input": {
|
|
1077
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1078
|
+
"WebdaModel": true,
|
|
1079
|
+
"WebdaPlural": "AsyncOperationActions",
|
|
1080
|
+
"additionalProperties": false,
|
|
1081
|
+
"description": "Operation called asynchronously",
|
|
1082
|
+
"properties": {
|
|
1083
|
+
"__secretKey": {
|
|
1084
|
+
"description": "Secret key to post feedback",
|
|
1085
|
+
"type": "string"
|
|
1086
|
+
},
|
|
1087
|
+
"_lastJobUpdate": {
|
|
1088
|
+
"description": "Last time the job was updated",
|
|
1089
|
+
"type": "number"
|
|
1090
|
+
},
|
|
1091
|
+
"action": {
|
|
1092
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
1093
|
+
"type": "string"
|
|
1094
|
+
},
|
|
1095
|
+
"arguments": {
|
|
1096
|
+
"description": "Arguments of the action",
|
|
1097
|
+
"items": {},
|
|
1098
|
+
"type": "array"
|
|
1099
|
+
},
|
|
1100
|
+
"context": {
|
|
1101
|
+
"description": "Context to call the operation with"
|
|
1102
|
+
},
|
|
1103
|
+
"errorMessage": {
|
|
1104
|
+
"description": "If an error occured it should contain the message",
|
|
1105
|
+
"type": "string"
|
|
1106
|
+
},
|
|
1107
|
+
"errorName": {
|
|
1108
|
+
"description": "If an error occured it should contain the name",
|
|
1109
|
+
"type": "string"
|
|
1110
|
+
},
|
|
1111
|
+
"job": {
|
|
1112
|
+
"description": "Job information"
|
|
1113
|
+
},
|
|
1114
|
+
"logLevel": {
|
|
1115
|
+
"description": "Log level to capture",
|
|
1116
|
+
"enum": [
|
|
1117
|
+
"ERROR",
|
|
1118
|
+
"WARN",
|
|
1119
|
+
"INFO",
|
|
1120
|
+
"DEBUG",
|
|
1121
|
+
"TRACE"
|
|
1122
|
+
],
|
|
1123
|
+
"type": "string"
|
|
1124
|
+
},
|
|
1125
|
+
"logs": {
|
|
1126
|
+
"description": "Current logs",
|
|
1127
|
+
"items": {
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
"type": "array"
|
|
1131
|
+
},
|
|
1132
|
+
"operationId": {
|
|
1133
|
+
"description": "Operation to call",
|
|
1134
|
+
"type": "string"
|
|
1135
|
+
},
|
|
1136
|
+
"results": {
|
|
1137
|
+
"description": "Results from the job"
|
|
1138
|
+
},
|
|
1139
|
+
"scheduled": {
|
|
1140
|
+
"description": "Timestamp when the action was scheduled",
|
|
1141
|
+
"type": "number"
|
|
1142
|
+
},
|
|
1143
|
+
"status": {
|
|
1144
|
+
"description": "Current status",
|
|
1145
|
+
"enum": [
|
|
1146
|
+
"RUNNING",
|
|
1147
|
+
"SUCCESS",
|
|
1148
|
+
"ERROR",
|
|
1149
|
+
"QUEUED",
|
|
1150
|
+
"STARTING",
|
|
1151
|
+
"TIMEOUT",
|
|
1152
|
+
"SCHEDULED"
|
|
1153
|
+
],
|
|
1154
|
+
"type": "string"
|
|
1155
|
+
},
|
|
1156
|
+
"statusDetails": {
|
|
1157
|
+
"description": "Job current status"
|
|
1158
|
+
},
|
|
1159
|
+
"type": {
|
|
1160
|
+
"description": "Type of action",
|
|
1161
|
+
"type": "string"
|
|
1162
|
+
},
|
|
1163
|
+
"uuid": {
|
|
1164
|
+
"description": "UUID of the model",
|
|
1165
|
+
"format": "uuid",
|
|
1166
|
+
"type": "string"
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
"required": [
|
|
1170
|
+
"__secretKey",
|
|
1171
|
+
"_lastJobUpdate",
|
|
1172
|
+
"context",
|
|
1173
|
+
"job",
|
|
1174
|
+
"logLevel",
|
|
1175
|
+
"logs",
|
|
1176
|
+
"operationId",
|
|
1177
|
+
"results",
|
|
1178
|
+
"status",
|
|
1179
|
+
"statusDetails",
|
|
1180
|
+
"type",
|
|
1181
|
+
"uuid"
|
|
1182
|
+
],
|
|
1183
|
+
"type": "object",
|
|
1184
|
+
"$webda": "fromDto$auto"
|
|
1185
|
+
},
|
|
1186
|
+
"Stored": {
|
|
1187
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1188
|
+
"WebdaModel": true,
|
|
1189
|
+
"WebdaPlural": "AsyncOperationActions",
|
|
1190
|
+
"additionalProperties": false,
|
|
1191
|
+
"description": "Operation called asynchronously",
|
|
1192
|
+
"properties": {
|
|
1193
|
+
"__secretKey": {
|
|
1194
|
+
"description": "Secret key to post feedback",
|
|
1195
|
+
"type": "string"
|
|
1196
|
+
},
|
|
1197
|
+
"_lastJobUpdate": {
|
|
1198
|
+
"description": "Last time the job was updated",
|
|
1199
|
+
"type": "number"
|
|
1200
|
+
},
|
|
1201
|
+
"action": {
|
|
1202
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
1203
|
+
"type": "string"
|
|
1204
|
+
},
|
|
1205
|
+
"arguments": {
|
|
1206
|
+
"description": "Arguments of the action",
|
|
1207
|
+
"items": {},
|
|
1208
|
+
"type": "array"
|
|
1209
|
+
},
|
|
1210
|
+
"context": {
|
|
1211
|
+
"description": "Context to call the operation with"
|
|
1212
|
+
},
|
|
1213
|
+
"errorMessage": {
|
|
1214
|
+
"description": "If an error occured it should contain the message",
|
|
1215
|
+
"type": "string"
|
|
1216
|
+
},
|
|
1217
|
+
"errorName": {
|
|
1218
|
+
"description": "If an error occured it should contain the name",
|
|
1219
|
+
"type": "string"
|
|
1220
|
+
},
|
|
1221
|
+
"job": {
|
|
1222
|
+
"description": "Job information"
|
|
1223
|
+
},
|
|
1224
|
+
"logLevel": {
|
|
1225
|
+
"description": "Log level to capture",
|
|
1226
|
+
"enum": [
|
|
1227
|
+
"ERROR",
|
|
1228
|
+
"WARN",
|
|
1229
|
+
"INFO",
|
|
1230
|
+
"DEBUG",
|
|
1231
|
+
"TRACE"
|
|
1232
|
+
],
|
|
1233
|
+
"type": "string"
|
|
1234
|
+
},
|
|
1235
|
+
"logs": {
|
|
1236
|
+
"description": "Current logs",
|
|
1237
|
+
"items": {
|
|
1238
|
+
"type": "string"
|
|
1239
|
+
},
|
|
1240
|
+
"type": "array"
|
|
1241
|
+
},
|
|
1242
|
+
"operationId": {
|
|
1243
|
+
"description": "Operation to call",
|
|
1244
|
+
"type": "string"
|
|
1245
|
+
},
|
|
1246
|
+
"results": {
|
|
1247
|
+
"description": "Results from the job"
|
|
1248
|
+
},
|
|
1249
|
+
"scheduled": {
|
|
1250
|
+
"description": "Timestamp when the action was scheduled",
|
|
1251
|
+
"type": "number"
|
|
1252
|
+
},
|
|
1253
|
+
"status": {
|
|
1254
|
+
"description": "Current status",
|
|
1255
|
+
"enum": [
|
|
1256
|
+
"RUNNING",
|
|
1257
|
+
"SUCCESS",
|
|
1258
|
+
"ERROR",
|
|
1259
|
+
"QUEUED",
|
|
1260
|
+
"STARTING",
|
|
1261
|
+
"TIMEOUT",
|
|
1262
|
+
"SCHEDULED"
|
|
1263
|
+
],
|
|
1264
|
+
"type": "string"
|
|
1265
|
+
},
|
|
1266
|
+
"statusDetails": {
|
|
1267
|
+
"description": "Job current status"
|
|
1268
|
+
},
|
|
1269
|
+
"type": {
|
|
1270
|
+
"description": "Type of action",
|
|
1271
|
+
"type": "string"
|
|
1272
|
+
},
|
|
1273
|
+
"uuid": {
|
|
1274
|
+
"description": "UUID of the model",
|
|
1275
|
+
"format": "uuid",
|
|
1276
|
+
"type": "string"
|
|
1277
|
+
}
|
|
229
1278
|
},
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
"default": true
|
|
245
|
-
},
|
|
246
|
-
"includeSchedulerInWorker": {
|
|
247
|
-
"type": "boolean",
|
|
248
|
-
"description": "Include the scheduler system in the worker"
|
|
249
|
-
},
|
|
250
|
-
"schedulerResolution": {
|
|
251
|
-
"type": "number",
|
|
252
|
-
"description": "Schedule action resolution\n\nIf set to 1000ms, you can schedule action per second by default it resolve per minute",
|
|
253
|
-
"default": 60000
|
|
254
|
-
},
|
|
255
|
-
"logsLimit": {
|
|
256
|
-
"type": "number",
|
|
257
|
-
"description": "Limit the number of lines of logs available for an async action\n\nIf you need to store large amount of logs then you should use the CloudWatchLogger or similar logger",
|
|
258
|
-
"default": 500
|
|
259
|
-
},
|
|
260
|
-
"logFormat": {
|
|
261
|
-
"type": "string",
|
|
262
|
-
"description": "Define the log format",
|
|
263
|
-
"default": "ConsoleLoggerDefaultFormat"
|
|
264
|
-
},
|
|
265
|
-
"logSaveDelay": {
|
|
266
|
-
"type": "number",
|
|
267
|
-
"description": "How long before saving logs (in ms)",
|
|
268
|
-
"default": 5000
|
|
269
|
-
},
|
|
270
|
-
"asyncActionModel": {
|
|
271
|
-
"type": "string",
|
|
272
|
-
"description": "Model to use when launching async action",
|
|
273
|
-
"default": "Webda/AsyncWebdaAction"
|
|
274
|
-
},
|
|
275
|
-
"asyncOperationModel": {
|
|
276
|
-
"type": "string",
|
|
277
|
-
"description": "Model to use when launching async operation",
|
|
278
|
-
"default": "Webda/AsyncOperationAction"
|
|
279
|
-
},
|
|
280
|
-
"asyncOperationDefinition": {
|
|
281
|
-
"type": "string",
|
|
282
|
-
"description": "JSON file of the AsyncOperation definition\n\nGenerated with `webda operations operations.json`"
|
|
283
|
-
},
|
|
284
|
-
"openapi": {
|
|
1279
|
+
"required": [
|
|
1280
|
+
"__secretKey",
|
|
1281
|
+
"_lastJobUpdate",
|
|
1282
|
+
"context",
|
|
1283
|
+
"job",
|
|
1284
|
+
"logLevel",
|
|
1285
|
+
"logs",
|
|
1286
|
+
"operationId",
|
|
1287
|
+
"results",
|
|
1288
|
+
"status",
|
|
1289
|
+
"statusDetails",
|
|
1290
|
+
"type",
|
|
1291
|
+
"uuid"
|
|
1292
|
+
],
|
|
285
1293
|
"type": "object",
|
|
286
|
-
"
|
|
1294
|
+
"$webda": "toJSON$return"
|
|
287
1295
|
}
|
|
288
1296
|
},
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
"
|
|
1297
|
+
"Actions": {
|
|
1298
|
+
"status": {
|
|
1299
|
+
"handler": "statusAction"
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
"Events": [
|
|
1303
|
+
"Create",
|
|
1304
|
+
"PartialUpdate",
|
|
1305
|
+
"Delete",
|
|
1306
|
+
"Update",
|
|
1307
|
+
"Patch",
|
|
1308
|
+
"Query",
|
|
1309
|
+
"Aggregate",
|
|
1310
|
+
"Created",
|
|
1311
|
+
"PartialUpdated",
|
|
1312
|
+
"Deleted",
|
|
1313
|
+
"Patched",
|
|
1314
|
+
"Updated",
|
|
1315
|
+
"Queried",
|
|
1316
|
+
"Aggregated"
|
|
296
1317
|
],
|
|
297
|
-
"
|
|
298
|
-
|
|
1318
|
+
"PrimaryKey": [
|
|
1319
|
+
"uuid"
|
|
1320
|
+
],
|
|
1321
|
+
"Identifier": "Webda/AsyncOperationAction"
|
|
299
1322
|
},
|
|
300
|
-
"Webda/
|
|
301
|
-
"
|
|
302
|
-
"
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
"
|
|
310
|
-
"type": "
|
|
311
|
-
"format": "date-time",
|
|
312
|
-
"description": "Last update date",
|
|
313
|
-
"readOnly": true
|
|
1323
|
+
"Webda/AsyncWebdaAction": {
|
|
1324
|
+
"Plural": "AsyncWebdaActions",
|
|
1325
|
+
"Import": "lib/asyncaction.model:AsyncWebdaAction",
|
|
1326
|
+
"Relations": {},
|
|
1327
|
+
"Ancestors": [
|
|
1328
|
+
"Webda/AsyncAction"
|
|
1329
|
+
],
|
|
1330
|
+
"Subclasses": [],
|
|
1331
|
+
"Reflection": {
|
|
1332
|
+
"logLevel": {
|
|
1333
|
+
"type": "WorkerLogLevel"
|
|
314
1334
|
},
|
|
315
|
-
"
|
|
316
|
-
"type": "string"
|
|
317
|
-
|
|
1335
|
+
"serviceName": {
|
|
1336
|
+
"type": "string"
|
|
1337
|
+
},
|
|
1338
|
+
"method": {
|
|
1339
|
+
"type": "string"
|
|
318
1340
|
},
|
|
319
1341
|
"status": {
|
|
320
|
-
"type": "
|
|
321
|
-
"enum": [
|
|
322
|
-
"RUNNING",
|
|
323
|
-
"SUCCESS",
|
|
324
|
-
"ERROR",
|
|
325
|
-
"QUEUED",
|
|
326
|
-
"STARTING",
|
|
327
|
-
"TIMEOUT",
|
|
328
|
-
"SCHEDULED",
|
|
329
|
-
"CANCELLED"
|
|
330
|
-
],
|
|
331
|
-
"description": "Current status"
|
|
1342
|
+
"type": "\"RUNNING\" | \"SUCCESS\" | \"ERROR\" | \"QUEUED\" | \"STARTING\" | \"TIMEOUT\" | \"SCHEDULED\""
|
|
332
1343
|
},
|
|
333
1344
|
"scheduled": {
|
|
334
|
-
"type": "number"
|
|
335
|
-
"description": "Timestamp when the action was scheduled"
|
|
1345
|
+
"type": "number"
|
|
336
1346
|
},
|
|
337
1347
|
"errorMessage": {
|
|
338
|
-
"type": "string"
|
|
339
|
-
|
|
1348
|
+
"type": "string"
|
|
1349
|
+
},
|
|
1350
|
+
"errorName": {
|
|
1351
|
+
"type": "string"
|
|
340
1352
|
},
|
|
341
1353
|
"job": {
|
|
342
|
-
"type": "
|
|
343
|
-
"description": "Job information"
|
|
1354
|
+
"type": "any"
|
|
344
1355
|
},
|
|
345
1356
|
"_lastJobUpdate": {
|
|
346
|
-
"type": "number"
|
|
347
|
-
"description": "Last time the job was updated",
|
|
348
|
-
"readOnly": true
|
|
1357
|
+
"type": "number"
|
|
349
1358
|
},
|
|
350
1359
|
"results": {
|
|
351
|
-
"
|
|
1360
|
+
"type": "any"
|
|
352
1361
|
},
|
|
353
1362
|
"statusDetails": {
|
|
354
|
-
"
|
|
1363
|
+
"type": "any"
|
|
355
1364
|
},
|
|
356
1365
|
"type": {
|
|
357
1366
|
"type": "string"
|
|
358
1367
|
},
|
|
359
1368
|
"arguments": {
|
|
360
|
-
"type": "
|
|
361
|
-
"
|
|
1369
|
+
"type": "Array",
|
|
1370
|
+
"typeParameters": [
|
|
1371
|
+
"any"
|
|
1372
|
+
]
|
|
362
1373
|
},
|
|
363
1374
|
"logs": {
|
|
364
|
-
"type": "
|
|
365
|
-
"
|
|
366
|
-
"
|
|
367
|
-
|
|
368
|
-
|
|
1375
|
+
"type": "Array",
|
|
1376
|
+
"typeParameters": [
|
|
1377
|
+
"string"
|
|
1378
|
+
]
|
|
1379
|
+
},
|
|
1380
|
+
"__secretKey": {
|
|
1381
|
+
"type": "string"
|
|
369
1382
|
},
|
|
370
1383
|
"action": {
|
|
371
|
-
"type": "string"
|
|
372
|
-
"description": "Expected action for the job\n\nIt should be a verb"
|
|
1384
|
+
"type": "\"STOP\" | string"
|
|
373
1385
|
},
|
|
374
|
-
"
|
|
1386
|
+
"uuid": {
|
|
375
1387
|
"type": "string"
|
|
376
|
-
}
|
|
377
|
-
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
"Schemas": {
|
|
1391
|
+
"Output": {
|
|
1392
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1393
|
+
"WebdaModel": true,
|
|
1394
|
+
"WebdaPlural": "AsyncWebdaActions",
|
|
1395
|
+
"additionalProperties": false,
|
|
1396
|
+
"description": "Define a Webda Async Action",
|
|
1397
|
+
"properties": {
|
|
1398
|
+
"__secretKey": {
|
|
1399
|
+
"description": "Secret key to post feedback",
|
|
1400
|
+
"type": "string"
|
|
1401
|
+
},
|
|
1402
|
+
"_lastJobUpdate": {
|
|
1403
|
+
"description": "Last time the job was updated",
|
|
1404
|
+
"type": "number"
|
|
1405
|
+
},
|
|
1406
|
+
"action": {
|
|
1407
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
1408
|
+
"type": "string"
|
|
1409
|
+
},
|
|
1410
|
+
"arguments": {
|
|
1411
|
+
"description": "Arguments of the action",
|
|
1412
|
+
"items": {},
|
|
1413
|
+
"type": "array"
|
|
1414
|
+
},
|
|
1415
|
+
"errorMessage": {
|
|
1416
|
+
"description": "If an error occured it should contain the message",
|
|
1417
|
+
"type": "string"
|
|
1418
|
+
},
|
|
1419
|
+
"errorName": {
|
|
1420
|
+
"description": "If an error occured it should contain the name",
|
|
1421
|
+
"type": "string"
|
|
1422
|
+
},
|
|
1423
|
+
"job": {
|
|
1424
|
+
"description": "Job information"
|
|
1425
|
+
},
|
|
1426
|
+
"logLevel": {
|
|
1427
|
+
"description": "Log level to capture",
|
|
1428
|
+
"enum": [
|
|
1429
|
+
"ERROR",
|
|
1430
|
+
"WARN",
|
|
1431
|
+
"INFO",
|
|
1432
|
+
"DEBUG",
|
|
1433
|
+
"TRACE"
|
|
1434
|
+
],
|
|
1435
|
+
"type": "string"
|
|
1436
|
+
},
|
|
1437
|
+
"logs": {
|
|
1438
|
+
"description": "Current logs",
|
|
1439
|
+
"items": {
|
|
1440
|
+
"type": "string"
|
|
1441
|
+
},
|
|
1442
|
+
"type": "array"
|
|
1443
|
+
},
|
|
1444
|
+
"method": {
|
|
1445
|
+
"description": "Method to call",
|
|
1446
|
+
"type": "string"
|
|
1447
|
+
},
|
|
1448
|
+
"results": {
|
|
1449
|
+
"description": "Results from the job"
|
|
1450
|
+
},
|
|
1451
|
+
"scheduled": {
|
|
1452
|
+
"description": "Timestamp when the action was scheduled",
|
|
1453
|
+
"type": "number"
|
|
1454
|
+
},
|
|
1455
|
+
"serviceName": {
|
|
1456
|
+
"description": "Service to call",
|
|
1457
|
+
"type": "string"
|
|
1458
|
+
},
|
|
1459
|
+
"status": {
|
|
1460
|
+
"description": "Current status",
|
|
1461
|
+
"enum": [
|
|
1462
|
+
"RUNNING",
|
|
1463
|
+
"SUCCESS",
|
|
1464
|
+
"ERROR",
|
|
1465
|
+
"QUEUED",
|
|
1466
|
+
"STARTING",
|
|
1467
|
+
"TIMEOUT",
|
|
1468
|
+
"SCHEDULED"
|
|
1469
|
+
],
|
|
1470
|
+
"type": "string"
|
|
1471
|
+
},
|
|
1472
|
+
"statusDetails": {
|
|
1473
|
+
"description": "Job current status"
|
|
1474
|
+
},
|
|
1475
|
+
"type": {
|
|
1476
|
+
"description": "Type of action",
|
|
1477
|
+
"type": "string"
|
|
1478
|
+
},
|
|
1479
|
+
"uuid": {
|
|
1480
|
+
"description": "UUID of the model",
|
|
1481
|
+
"format": "uuid",
|
|
1482
|
+
"type": "string"
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
"required": [
|
|
1486
|
+
"__secretKey",
|
|
1487
|
+
"_lastJobUpdate",
|
|
1488
|
+
"job",
|
|
1489
|
+
"logLevel",
|
|
1490
|
+
"logs",
|
|
1491
|
+
"results",
|
|
1492
|
+
"status",
|
|
1493
|
+
"statusDetails",
|
|
1494
|
+
"type",
|
|
1495
|
+
"uuid"
|
|
1496
|
+
],
|
|
378
1497
|
"type": "object",
|
|
1498
|
+
"$webda": "toDto$auto"
|
|
1499
|
+
},
|
|
1500
|
+
"Input": {
|
|
1501
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1502
|
+
"WebdaModel": true,
|
|
1503
|
+
"WebdaPlural": "AsyncWebdaActions",
|
|
1504
|
+
"additionalProperties": false,
|
|
1505
|
+
"description": "Define a Webda Async Action",
|
|
379
1506
|
"properties": {
|
|
380
|
-
"
|
|
381
|
-
"
|
|
1507
|
+
"__secretKey": {
|
|
1508
|
+
"description": "Secret key to post feedback",
|
|
1509
|
+
"type": "string"
|
|
1510
|
+
},
|
|
1511
|
+
"_lastJobUpdate": {
|
|
1512
|
+
"description": "Last time the job was updated",
|
|
1513
|
+
"type": "number"
|
|
1514
|
+
},
|
|
1515
|
+
"action": {
|
|
1516
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
1517
|
+
"type": "string"
|
|
1518
|
+
},
|
|
1519
|
+
"arguments": {
|
|
1520
|
+
"description": "Arguments of the action",
|
|
382
1521
|
"items": {},
|
|
383
|
-
"
|
|
384
|
-
"readOnly": true
|
|
1522
|
+
"type": "array"
|
|
385
1523
|
},
|
|
386
|
-
"
|
|
387
|
-
"
|
|
388
|
-
"
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
"
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
1524
|
+
"errorMessage": {
|
|
1525
|
+
"description": "If an error occured it should contain the message",
|
|
1526
|
+
"type": "string"
|
|
1527
|
+
},
|
|
1528
|
+
"errorName": {
|
|
1529
|
+
"description": "If an error occured it should contain the name",
|
|
1530
|
+
"type": "string"
|
|
1531
|
+
},
|
|
1532
|
+
"job": {
|
|
1533
|
+
"description": "Job information"
|
|
1534
|
+
},
|
|
1535
|
+
"logLevel": {
|
|
1536
|
+
"description": "Log level to capture",
|
|
1537
|
+
"enum": [
|
|
1538
|
+
"ERROR",
|
|
1539
|
+
"WARN",
|
|
1540
|
+
"INFO",
|
|
1541
|
+
"DEBUG",
|
|
1542
|
+
"TRACE"
|
|
1543
|
+
],
|
|
1544
|
+
"type": "string"
|
|
1545
|
+
},
|
|
1546
|
+
"logs": {
|
|
1547
|
+
"description": "Current logs",
|
|
1548
|
+
"items": {
|
|
1549
|
+
"type": "string"
|
|
1550
|
+
},
|
|
1551
|
+
"type": "array"
|
|
1552
|
+
},
|
|
1553
|
+
"method": {
|
|
1554
|
+
"description": "Method to call",
|
|
1555
|
+
"type": "string"
|
|
1556
|
+
},
|
|
1557
|
+
"results": {
|
|
1558
|
+
"description": "Results from the job"
|
|
1559
|
+
},
|
|
1560
|
+
"scheduled": {
|
|
1561
|
+
"description": "Timestamp when the action was scheduled",
|
|
1562
|
+
"type": "number"
|
|
1563
|
+
},
|
|
1564
|
+
"serviceName": {
|
|
1565
|
+
"description": "Service to call",
|
|
1566
|
+
"type": "string"
|
|
1567
|
+
},
|
|
1568
|
+
"status": {
|
|
1569
|
+
"description": "Current status",
|
|
1570
|
+
"enum": [
|
|
1571
|
+
"RUNNING",
|
|
1572
|
+
"SUCCESS",
|
|
1573
|
+
"ERROR",
|
|
1574
|
+
"QUEUED",
|
|
1575
|
+
"STARTING",
|
|
1576
|
+
"TIMEOUT",
|
|
1577
|
+
"SCHEDULED"
|
|
1578
|
+
],
|
|
1579
|
+
"type": "string"
|
|
1580
|
+
},
|
|
1581
|
+
"statusDetails": {
|
|
1582
|
+
"description": "Job current status"
|
|
1583
|
+
},
|
|
1584
|
+
"type": {
|
|
1585
|
+
"description": "Type of action",
|
|
1586
|
+
"type": "string"
|
|
1587
|
+
},
|
|
1588
|
+
"uuid": {
|
|
1589
|
+
"description": "UUID of the model",
|
|
1590
|
+
"format": "uuid",
|
|
1591
|
+
"type": "string"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"required": [
|
|
1595
|
+
"__secretKey",
|
|
1596
|
+
"_lastJobUpdate",
|
|
1597
|
+
"job",
|
|
1598
|
+
"logLevel",
|
|
1599
|
+
"logs",
|
|
1600
|
+
"results",
|
|
1601
|
+
"status",
|
|
1602
|
+
"statusDetails",
|
|
1603
|
+
"type",
|
|
1604
|
+
"uuid"
|
|
1605
|
+
],
|
|
1606
|
+
"type": "object",
|
|
1607
|
+
"$webda": "fromDto$auto"
|
|
1608
|
+
},
|
|
1609
|
+
"Stored": {
|
|
1610
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1611
|
+
"WebdaModel": true,
|
|
1612
|
+
"WebdaPlural": "AsyncWebdaActions",
|
|
1613
|
+
"additionalProperties": false,
|
|
1614
|
+
"description": "Define a Webda Async Action",
|
|
1615
|
+
"properties": {
|
|
1616
|
+
"__secretKey": {
|
|
1617
|
+
"description": "Secret key to post feedback",
|
|
1618
|
+
"type": "string"
|
|
1619
|
+
},
|
|
1620
|
+
"_lastJobUpdate": {
|
|
1621
|
+
"description": "Last time the job was updated",
|
|
1622
|
+
"type": "number"
|
|
1623
|
+
},
|
|
1624
|
+
"action": {
|
|
1625
|
+
"description": "Expected action for the job\n\nIt should be a verb",
|
|
1626
|
+
"type": "string"
|
|
1627
|
+
},
|
|
1628
|
+
"arguments": {
|
|
1629
|
+
"description": "Arguments of the action",
|
|
1630
|
+
"items": {},
|
|
1631
|
+
"type": "array"
|
|
1632
|
+
},
|
|
1633
|
+
"errorMessage": {
|
|
1634
|
+
"description": "If an error occured it should contain the message",
|
|
1635
|
+
"type": "string"
|
|
1636
|
+
},
|
|
1637
|
+
"errorName": {
|
|
1638
|
+
"description": "If an error occured it should contain the name",
|
|
1639
|
+
"type": "string"
|
|
1640
|
+
},
|
|
1641
|
+
"job": {
|
|
1642
|
+
"description": "Job information"
|
|
1643
|
+
},
|
|
1644
|
+
"logLevel": {
|
|
1645
|
+
"description": "Log level to capture",
|
|
1646
|
+
"enum": [
|
|
1647
|
+
"ERROR",
|
|
1648
|
+
"WARN",
|
|
1649
|
+
"INFO",
|
|
1650
|
+
"DEBUG",
|
|
1651
|
+
"TRACE"
|
|
1652
|
+
],
|
|
1653
|
+
"type": "string"
|
|
1654
|
+
},
|
|
1655
|
+
"logs": {
|
|
1656
|
+
"description": "Current logs",
|
|
1657
|
+
"items": {
|
|
1658
|
+
"type": "string"
|
|
455
1659
|
},
|
|
456
|
-
"
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
1660
|
+
"type": "array"
|
|
1661
|
+
},
|
|
1662
|
+
"method": {
|
|
1663
|
+
"description": "Method to call",
|
|
1664
|
+
"type": "string"
|
|
1665
|
+
},
|
|
1666
|
+
"results": {
|
|
1667
|
+
"description": "Results from the job"
|
|
1668
|
+
},
|
|
1669
|
+
"scheduled": {
|
|
1670
|
+
"description": "Timestamp when the action was scheduled",
|
|
1671
|
+
"type": "number"
|
|
1672
|
+
},
|
|
1673
|
+
"serviceName": {
|
|
1674
|
+
"description": "Service to call",
|
|
1675
|
+
"type": "string"
|
|
1676
|
+
},
|
|
1677
|
+
"status": {
|
|
1678
|
+
"description": "Current status",
|
|
1679
|
+
"enum": [
|
|
1680
|
+
"RUNNING",
|
|
1681
|
+
"SUCCESS",
|
|
1682
|
+
"ERROR",
|
|
1683
|
+
"QUEUED",
|
|
1684
|
+
"STARTING",
|
|
1685
|
+
"TIMEOUT",
|
|
1686
|
+
"SCHEDULED"
|
|
468
1687
|
],
|
|
469
|
-
"
|
|
470
|
-
|
|
1688
|
+
"type": "string"
|
|
1689
|
+
},
|
|
1690
|
+
"statusDetails": {
|
|
1691
|
+
"description": "Job current status"
|
|
1692
|
+
},
|
|
1693
|
+
"type": {
|
|
1694
|
+
"description": "Type of action",
|
|
1695
|
+
"type": "string"
|
|
1696
|
+
},
|
|
1697
|
+
"uuid": {
|
|
1698
|
+
"description": "UUID of the model",
|
|
1699
|
+
"format": "uuid",
|
|
1700
|
+
"type": "string"
|
|
471
1701
|
}
|
|
472
1702
|
},
|
|
473
|
-
"
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
"operationId",
|
|
485
|
-
"results",
|
|
486
|
-
"status",
|
|
487
|
-
"statusDetails",
|
|
488
|
-
"type",
|
|
489
|
-
"uuid"
|
|
490
|
-
],
|
|
491
|
-
"description": "Operation called asynchronously",
|
|
492
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
493
|
-
"definitions": {
|
|
494
|
-
"WorkerLogLevel": {
|
|
495
|
-
"type": "string",
|
|
496
|
-
"enum": [
|
|
497
|
-
"ERROR",
|
|
498
|
-
"WARN",
|
|
499
|
-
"INFO",
|
|
500
|
-
"DEBUG",
|
|
501
|
-
"TRACE"
|
|
1703
|
+
"required": [
|
|
1704
|
+
"__secretKey",
|
|
1705
|
+
"_lastJobUpdate",
|
|
1706
|
+
"job",
|
|
1707
|
+
"logLevel",
|
|
1708
|
+
"logs",
|
|
1709
|
+
"results",
|
|
1710
|
+
"status",
|
|
1711
|
+
"statusDetails",
|
|
1712
|
+
"type",
|
|
1713
|
+
"uuid"
|
|
502
1714
|
],
|
|
503
|
-
"
|
|
1715
|
+
"type": "object",
|
|
1716
|
+
"$webda": "toJSON$return"
|
|
504
1717
|
}
|
|
505
1718
|
},
|
|
506
|
-
"
|
|
507
|
-
},
|
|
508
|
-
"Webda/AsyncWebdaAction": {
|
|
509
|
-
"type": "object",
|
|
510
|
-
"properties": {
|
|
511
|
-
"_creationDate": {
|
|
512
|
-
"type": "string",
|
|
513
|
-
"format": "date-time",
|
|
514
|
-
"description": "Creation date",
|
|
515
|
-
"readOnly": true
|
|
516
|
-
},
|
|
517
|
-
"_lastUpdate": {
|
|
518
|
-
"type": "string",
|
|
519
|
-
"format": "date-time",
|
|
520
|
-
"description": "Last update date",
|
|
521
|
-
"readOnly": true
|
|
522
|
-
},
|
|
523
|
-
"uuid": {
|
|
524
|
-
"type": "string",
|
|
525
|
-
"description": "Action uuid"
|
|
526
|
-
},
|
|
1719
|
+
"Actions": {
|
|
527
1720
|
"status": {
|
|
528
|
-
"
|
|
529
|
-
"enum": [
|
|
530
|
-
"RUNNING",
|
|
531
|
-
"SUCCESS",
|
|
532
|
-
"ERROR",
|
|
533
|
-
"QUEUED",
|
|
534
|
-
"STARTING",
|
|
535
|
-
"TIMEOUT",
|
|
536
|
-
"SCHEDULED",
|
|
537
|
-
"CANCELLED"
|
|
538
|
-
],
|
|
539
|
-
"description": "Current status"
|
|
540
|
-
},
|
|
541
|
-
"scheduled": {
|
|
542
|
-
"type": "number",
|
|
543
|
-
"description": "Timestamp when the action was scheduled"
|
|
544
|
-
},
|
|
545
|
-
"errorMessage": {
|
|
546
|
-
"type": "string",
|
|
547
|
-
"description": "If an error occured it should contain the message"
|
|
548
|
-
},
|
|
549
|
-
"job": {
|
|
550
|
-
"type": "object",
|
|
551
|
-
"description": "Job information"
|
|
552
|
-
},
|
|
553
|
-
"_lastJobUpdate": {
|
|
554
|
-
"type": "number",
|
|
555
|
-
"description": "Last time the job was updated",
|
|
556
|
-
"readOnly": true
|
|
557
|
-
},
|
|
558
|
-
"results": {
|
|
559
|
-
"description": "Results from the job"
|
|
560
|
-
},
|
|
561
|
-
"statusDetails": {
|
|
562
|
-
"description": "Job current status"
|
|
563
|
-
},
|
|
564
|
-
"type": {
|
|
565
|
-
"type": "string"
|
|
566
|
-
},
|
|
567
|
-
"arguments": {
|
|
568
|
-
"type": "array",
|
|
569
|
-
"items": {}
|
|
570
|
-
},
|
|
571
|
-
"logs": {
|
|
572
|
-
"type": "array",
|
|
573
|
-
"items": {
|
|
574
|
-
"type": "string"
|
|
575
|
-
},
|
|
576
|
-
"description": "Current logs"
|
|
577
|
-
},
|
|
578
|
-
"action": {
|
|
579
|
-
"type": "string",
|
|
580
|
-
"description": "Expected action for the job\n\nIt should be a verb"
|
|
581
|
-
},
|
|
582
|
-
"logLevel": {
|
|
583
|
-
"$ref": "#/definitions/WorkerLogLevel"
|
|
584
|
-
},
|
|
585
|
-
"serviceName": {
|
|
586
|
-
"type": "string",
|
|
587
|
-
"description": "service to call"
|
|
588
|
-
},
|
|
589
|
-
"method": {
|
|
590
|
-
"type": "string",
|
|
591
|
-
"description": "method to call"
|
|
1721
|
+
"handler": "statusAction"
|
|
592
1722
|
}
|
|
593
1723
|
},
|
|
594
|
-
"
|
|
595
|
-
"
|
|
596
|
-
"
|
|
597
|
-
"
|
|
598
|
-
"
|
|
599
|
-
"
|
|
600
|
-
"
|
|
601
|
-
"
|
|
1724
|
+
"Events": [
|
|
1725
|
+
"Create",
|
|
1726
|
+
"PartialUpdate",
|
|
1727
|
+
"Delete",
|
|
1728
|
+
"Update",
|
|
1729
|
+
"Patch",
|
|
1730
|
+
"Query",
|
|
1731
|
+
"Aggregate",
|
|
1732
|
+
"Created",
|
|
1733
|
+
"PartialUpdated",
|
|
1734
|
+
"Deleted",
|
|
1735
|
+
"Patched",
|
|
1736
|
+
"Updated",
|
|
1737
|
+
"Queried",
|
|
1738
|
+
"Aggregated"
|
|
1739
|
+
],
|
|
1740
|
+
"PrimaryKey": [
|
|
602
1741
|
"uuid"
|
|
603
1742
|
],
|
|
604
|
-
"
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
"type": "string",
|
|
609
|
-
"enum": [
|
|
610
|
-
"ERROR",
|
|
611
|
-
"WARN",
|
|
612
|
-
"INFO",
|
|
613
|
-
"DEBUG",
|
|
614
|
-
"TRACE"
|
|
615
|
-
],
|
|
616
|
-
"description": "LogLevel as intersection to compare with integer values"
|
|
617
|
-
}
|
|
618
|
-
},
|
|
619
|
-
"title": "AsyncWebdaAction"
|
|
620
|
-
},
|
|
1743
|
+
"Identifier": "Webda/AsyncWebdaAction"
|
|
1744
|
+
}
|
|
1745
|
+
},
|
|
1746
|
+
"schemas": {
|
|
621
1747
|
"Webda/BinaryFile": {
|
|
622
|
-
"
|
|
1748
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1749
|
+
"WebdaSchema": true,
|
|
1750
|
+
"additionalProperties": false,
|
|
1751
|
+
"description": "Represent a file to store",
|
|
623
1752
|
"properties": {
|
|
624
1753
|
"hash": {
|
|
625
|
-
"
|
|
626
|
-
"
|
|
627
|
-
},
|
|
628
|
-
"challenge": {
|
|
629
|
-
"type": "string",
|
|
630
|
-
"description": "Will be computed by the service\n\nhash of the content prefixed by 'WEBDA'"
|
|
631
|
-
},
|
|
632
|
-
"size": {
|
|
633
|
-
"type": "number",
|
|
634
|
-
"description": "Size of the binary"
|
|
1754
|
+
"description": "Will be computed by the service\n\nhash of the content",
|
|
1755
|
+
"type": "string"
|
|
635
1756
|
},
|
|
636
|
-
"
|
|
637
|
-
"
|
|
638
|
-
"description": "Current name"
|
|
1757
|
+
"metadata": {
|
|
1758
|
+
"description": "Metadatas stored along with the binary"
|
|
639
1759
|
},
|
|
640
1760
|
"mimetype": {
|
|
641
|
-
"
|
|
642
|
-
"
|
|
1761
|
+
"description": "Mimetype of the binary",
|
|
1762
|
+
"type": "string"
|
|
643
1763
|
},
|
|
644
|
-
"
|
|
645
|
-
"description": "
|
|
1764
|
+
"name": {
|
|
1765
|
+
"description": "Current name",
|
|
1766
|
+
"type": "string"
|
|
646
1767
|
},
|
|
647
1768
|
"originalname": {
|
|
648
|
-
"
|
|
649
|
-
"
|
|
1769
|
+
"description": "Original name",
|
|
1770
|
+
"type": "string"
|
|
1771
|
+
},
|
|
1772
|
+
"size": {
|
|
1773
|
+
"description": "Size of the binary",
|
|
1774
|
+
"type": "number"
|
|
650
1775
|
}
|
|
651
1776
|
},
|
|
652
1777
|
"required": [
|
|
@@ -654,353 +1779,270 @@
|
|
|
654
1779
|
"name",
|
|
655
1780
|
"size"
|
|
656
1781
|
],
|
|
657
|
-
"
|
|
658
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1782
|
+
"type": "object",
|
|
659
1783
|
"title": "BinaryFile"
|
|
660
1784
|
},
|
|
661
|
-
"Webda/
|
|
1785
|
+
"Webda/AsyncAction.status.input": {
|
|
662
1786
|
"type": "object",
|
|
663
1787
|
"properties": {
|
|
664
|
-
"
|
|
665
|
-
"
|
|
666
|
-
"description": "
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
"actions": {
|
|
673
|
-
"type": "array",
|
|
674
|
-
"items": {
|
|
675
|
-
"type": "string"
|
|
676
|
-
},
|
|
677
|
-
"description": "Actions managed by the runner",
|
|
678
|
-
"default": []
|
|
679
|
-
},
|
|
680
|
-
"command": {
|
|
681
|
-
"type": "string",
|
|
682
|
-
"description": "Command to launch"
|
|
683
|
-
},
|
|
684
|
-
"args": {
|
|
685
|
-
"type": "array",
|
|
686
|
-
"items": {
|
|
687
|
-
"type": "string"
|
|
688
|
-
},
|
|
689
|
-
"description": "Args"
|
|
690
|
-
},
|
|
691
|
-
"options": {
|
|
692
|
-
"type": "object",
|
|
1788
|
+
"context": {
|
|
1789
|
+
"additionalProperties": false,
|
|
1790
|
+
"description": "OperationContext is used when call to an operation",
|
|
1791
|
+
"param": [
|
|
1792
|
+
"T type of input for this context",
|
|
1793
|
+
"U type of output for this context",
|
|
1794
|
+
"P type of parameters for this context"
|
|
1795
|
+
],
|
|
693
1796
|
"properties": {
|
|
694
|
-
"
|
|
695
|
-
"
|
|
696
|
-
"
|
|
697
|
-
"
|
|
698
|
-
"type": "boolean"
|
|
699
|
-
},
|
|
700
|
-
"onabort": {
|
|
701
|
-
"anyOf": [
|
|
702
|
-
{},
|
|
703
|
-
{
|
|
704
|
-
"type": "null"
|
|
705
|
-
}
|
|
706
|
-
]
|
|
707
|
-
},
|
|
708
|
-
"reason": {}
|
|
1797
|
+
"_promises": {
|
|
1798
|
+
"description": "Contain all registered promises to this context",
|
|
1799
|
+
"items": {
|
|
1800
|
+
"$ref": "#/definitions/Promise%3Cany%3E"
|
|
709
1801
|
},
|
|
710
|
-
"
|
|
711
|
-
"aborted",
|
|
712
|
-
"onabort",
|
|
713
|
-
"reason"
|
|
714
|
-
],
|
|
715
|
-
"description": "When provided the corresponding `AbortController` can be used to cancel an asynchronous action."
|
|
716
|
-
},
|
|
717
|
-
"serialization": {
|
|
718
|
-
"$ref": "#/definitions/SerializationType",
|
|
719
|
-
"description": "Specify the kind of serialization used for sending messages between processes.",
|
|
720
|
-
"default": "json"
|
|
721
|
-
},
|
|
722
|
-
"killSignal": {
|
|
723
|
-
"anyOf": [
|
|
724
|
-
{
|
|
725
|
-
"$ref": "#/definitions/global.NodeJS.Signals"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
"type": "number"
|
|
729
|
-
}
|
|
730
|
-
],
|
|
731
|
-
"description": "The signal value to be used when the spawned process will be killed by the abort signal.",
|
|
732
|
-
"default": "SIGTERM"
|
|
733
|
-
},
|
|
734
|
-
"timeout": {
|
|
735
|
-
"type": "number",
|
|
736
|
-
"default": 0
|
|
737
|
-
},
|
|
738
|
-
"uid": {
|
|
739
|
-
"type": "number"
|
|
740
|
-
},
|
|
741
|
-
"gid": {
|
|
742
|
-
"type": "number"
|
|
1802
|
+
"type": "array"
|
|
743
1803
|
},
|
|
744
|
-
"
|
|
745
|
-
"
|
|
746
|
-
|
|
747
|
-
"type": "string"
|
|
748
|
-
},
|
|
749
|
-
{
|
|
750
|
-
"type": "object",
|
|
751
|
-
"properties": {
|
|
752
|
-
"hash": {
|
|
753
|
-
"type": "string",
|
|
754
|
-
"description": "Gets and sets the fragment portion of the URL.\n\n```js const myURL = new URL('https://example.org/foo#bar'); console.log(myURL.hash); // Prints #bar\n\nmyURL.hash = 'baz'; console.log(myURL.href); // Prints https://example.org/foo#baz ```\n\nInvalid URL characters included in the value assigned to the `hash` property are `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
755
|
-
},
|
|
756
|
-
"host": {
|
|
757
|
-
"type": "string",
|
|
758
|
-
"description": "Gets and sets the host portion of the URL.\n\n```js const myURL = new URL('https://example.org:81/foo'); console.log(myURL.host); // Prints example.org:81\n\nmyURL.host = 'example.com:82'; console.log(myURL.href); // Prints https://example.com:82/foo ```\n\nInvalid host values assigned to the `host` property are ignored."
|
|
759
|
-
},
|
|
760
|
-
"hostname": {
|
|
761
|
-
"type": "string",
|
|
762
|
-
"description": "Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the port.\n\n```js const myURL = new URL('https://example.org:81/foo'); console.log(myURL.hostname); // Prints example.org\n\n// Setting the hostname does not change the port myURL.hostname = 'example.com:82'; console.log(myURL.href); // Prints https://example.com:81/foo\n\n// Use myURL.host to change the hostname and port myURL.host = 'example.org:82'; console.log(myURL.href); // Prints https://example.org:82/foo ```\n\nInvalid host name values assigned to the `hostname` property are ignored."
|
|
763
|
-
},
|
|
764
|
-
"href": {
|
|
765
|
-
"type": "string",
|
|
766
|
-
"description": "Gets and sets the serialized URL.\n\n```js const myURL = new URL('https://example.org/foo'); console.log(myURL.href); // Prints https://example.org/foo\n\nmyURL.href = 'https://example.com/bar'; console.log(myURL.href); // Prints https://example.com/bar ```\n\nGetting the value of the `href` property is equivalent to calling {@link toString } .\n\nSetting the value of this property to a new value is equivalent to creating a new `URL` object using `new URL(value)`. Each of the `URL`object's properties will be modified.\n\nIf the value assigned to the `href` property is not a valid URL, a `TypeError`will be thrown."
|
|
767
|
-
},
|
|
768
|
-
"origin": {
|
|
769
|
-
"type": "string",
|
|
770
|
-
"description": "Gets the read-only serialization of the URL's origin.\n\n```js const myURL = new URL('https://example.org/foo/bar?baz'); console.log(myURL.origin); // Prints https://example.org ```\n\n```js const idnURL = new URL('https://測試'); console.log(idnURL.origin); // Prints https://xn--g6w251d\n\nconsole.log(idnURL.hostname); // Prints xn--g6w251d ```"
|
|
771
|
-
},
|
|
772
|
-
"password": {
|
|
773
|
-
"type": "string",
|
|
774
|
-
"description": "Gets and sets the password portion of the URL.\n\n```js const myURL = new URL('https://abc:xyz@example.com'); console.log(myURL.password); // Prints xyz\n\nmyURL.password = '123'; console.log(myURL.href); // Prints https://abc:123@example.com ```\n\nInvalid URL characters included in the value assigned to the `password` property are `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
775
|
-
},
|
|
776
|
-
"pathname": {
|
|
777
|
-
"type": "string",
|
|
778
|
-
"description": "Gets and sets the path portion of the URL.\n\n```js const myURL = new URL('https://example.org/abc/xyz?123'); console.log(myURL.pathname); // Prints /abc/xyz\n\nmyURL.pathname = '/abcdef'; console.log(myURL.href); // Prints https://example.org/abcdef?123 ```\n\nInvalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
779
|
-
},
|
|
780
|
-
"port": {
|
|
781
|
-
"type": "string",
|
|
782
|
-
"description": "Gets and sets the port portion of the URL.\n\nThe port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will result in the `port` value becoming the empty string (`''`).\n\nThe port value can be an empty string in which case the port depends on the protocol/scheme:\n\n<omitted>\n\nUpon assigning a value to the port, the value will first be converted to a string using `.toString()`.\n\nIf that string is invalid but it begins with a number, the leading number is assigned to `port`. If the number lies outside the range denoted above, it is ignored.\n\n```js const myURL = new URL('https://example.org:8888'); console.log(myURL.port); // Prints 8888\n\n// Default ports are automatically transformed to the empty string // (HTTPS protocol's default port is 443) myURL.port = '443'; console.log(myURL.port); // Prints the empty string console.log(myURL.href); // Prints https://example.org/\n\nmyURL.port = 1234; console.log(myURL.port); // Prints 1234 console.log(myURL.href); // Prints https://example.org:1234/\n\n// Completely invalid port strings are ignored myURL.port = 'abcd'; console.log(myURL.port); // Prints 1234\n\n// Leading numbers are treated as a port number myURL.port = '5678abcd'; console.log(myURL.port); // Prints 5678\n\n// Non-integers are truncated myURL.port = 1234.5678; console.log(myURL.port); // Prints 1234\n\n// Out-of-range numbers which are not represented in scientific notation // will be ignored. myURL.port = 1e10; // 10000000000, will be range-checked as described below console.log(myURL.port); // Prints 1234 ```\n\nNumbers which contain a decimal point, such as floating-point numbers or numbers in scientific notation, are not an exception to this rule. Leading numbers up to the decimal point will be set as the URL's port, assuming they are valid:\n\n```js myURL.port = 4.567e21; console.log(myURL.port); // Prints 4 (because it is the leading number in the string '4.567e21') ```"
|
|
783
|
-
},
|
|
784
|
-
"protocol": {
|
|
785
|
-
"type": "string",
|
|
786
|
-
"description": "Gets and sets the protocol portion of the URL.\n\n```js const myURL = new URL('https://example.org'); console.log(myURL.protocol); // Prints https:\n\nmyURL.protocol = 'ftp'; console.log(myURL.href); // Prints ftp://example.org/ ```\n\nInvalid URL protocol values assigned to the `protocol` property are ignored."
|
|
787
|
-
},
|
|
788
|
-
"search": {
|
|
789
|
-
"type": "string",
|
|
790
|
-
"description": "Gets and sets the serialized query portion of the URL.\n\n```js const myURL = new URL('https://example.org/abc?123'); console.log(myURL.search); // Prints ?123\n\nmyURL.search = 'abc=xyz'; console.log(myURL.href); // Prints https://example.org/abc?abc=xyz ```\n\nAny invalid URL characters appearing in the value assigned the `search`property will be `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
791
|
-
},
|
|
792
|
-
"searchParams": {
|
|
793
|
-
"type": "object",
|
|
794
|
-
"properties": {},
|
|
795
|
-
"description": "Gets the `URLSearchParams` object representing the query parameters of the URL. This property is read-only but the `URLSearchParams` object it provides can be used to mutate the URL instance; to replace the entirety of query parameters of the URL, use the {@link search } setter. See `URLSearchParams` documentation for details.\n\nUse care when using `.searchParams` to modify the `URL` because, per the WHATWG specification, the `URLSearchParams` object uses different rules to determine which characters to percent-encode. For instance, the `URL` object will not percent encode the ASCII tilde (`~`) character, while `URLSearchParams` will always encode it:\n\n```js const myUrl = new URL('https://example.org/abc?foo=~bar');\n\nconsole.log(myUrl.search); // prints ?foo=~bar\n\n// Modify the URL via searchParams... myUrl.searchParams.sort();\n\nconsole.log(myUrl.search); // prints ?foo=%7Ebar ```"
|
|
796
|
-
},
|
|
797
|
-
"username": {
|
|
798
|
-
"type": "string",
|
|
799
|
-
"description": "Gets and sets the username portion of the URL.\n\n```js const myURL = new URL('https://abc:xyz@example.com'); console.log(myURL.username); // Prints abc\n\nmyURL.username = '123'; console.log(myURL.href); // Prints https://123:xyz@example.com/ ```\n\nAny invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which characters to percent-encode may vary somewhat from what the {@link parse } and {@link format } methods would produce."
|
|
800
|
-
}
|
|
801
|
-
},
|
|
802
|
-
"required": [
|
|
803
|
-
"hash",
|
|
804
|
-
"host",
|
|
805
|
-
"hostname",
|
|
806
|
-
"href",
|
|
807
|
-
"origin",
|
|
808
|
-
"password",
|
|
809
|
-
"pathname",
|
|
810
|
-
"port",
|
|
811
|
-
"protocol",
|
|
812
|
-
"search",
|
|
813
|
-
"searchParams",
|
|
814
|
-
"username"
|
|
815
|
-
],
|
|
816
|
-
"description": "Browser-compatible `URL` class, implemented by following the WHATWG URL Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. The `URL` class is also available on the global object.\n\nIn accordance with browser conventions, all properties of `URL` objects are implemented as getters and setters on the class prototype, rather than as data properties on the object itself. Thus, unlike `legacy urlObject` s, using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still return `true`."
|
|
817
|
-
}
|
|
818
|
-
]
|
|
819
|
-
},
|
|
820
|
-
"env": {
|
|
821
|
-
"type": "object",
|
|
822
|
-
"properties": {
|
|
823
|
-
"TZ": {
|
|
824
|
-
"type": "string",
|
|
825
|
-
"description": "Can be used to change the default timezone at runtime"
|
|
826
|
-
}
|
|
827
|
-
}
|
|
1804
|
+
"_stream": {
|
|
1805
|
+
"$ref": "#/definitions/Writable",
|
|
1806
|
+
"description": "Output stream"
|
|
828
1807
|
},
|
|
829
|
-
"
|
|
830
|
-
"
|
|
831
|
-
"default": true
|
|
1808
|
+
"caches": {
|
|
1809
|
+
"description": "Get the caches linked to the context"
|
|
832
1810
|
},
|
|
833
|
-
"
|
|
1811
|
+
"parameters": {}
|
|
1812
|
+
},
|
|
1813
|
+
"required": [
|
|
1814
|
+
"_promises",
|
|
1815
|
+
"_stream",
|
|
1816
|
+
"caches",
|
|
1817
|
+
"parameters"
|
|
1818
|
+
],
|
|
1819
|
+
"type": "object"
|
|
1820
|
+
}
|
|
1821
|
+
},
|
|
1822
|
+
"definitions": {
|
|
1823
|
+
"Error": {
|
|
1824
|
+
"additionalProperties": false,
|
|
1825
|
+
"properties": {
|
|
1826
|
+
"message": {
|
|
834
1827
|
"type": "string"
|
|
835
1828
|
},
|
|
836
|
-
"
|
|
837
|
-
"
|
|
838
|
-
},
|
|
839
|
-
"shell": {
|
|
840
|
-
"type": [
|
|
841
|
-
"boolean",
|
|
842
|
-
"string"
|
|
843
|
-
]
|
|
1829
|
+
"name": {
|
|
1830
|
+
"type": "string"
|
|
844
1831
|
},
|
|
845
|
-
"
|
|
1832
|
+
"stack": {
|
|
1833
|
+
"type": "string"
|
|
1834
|
+
}
|
|
1835
|
+
},
|
|
1836
|
+
"required": [
|
|
1837
|
+
"message",
|
|
1838
|
+
"name"
|
|
1839
|
+
],
|
|
1840
|
+
"type": "object"
|
|
1841
|
+
},
|
|
1842
|
+
"Promise<any>": {
|
|
1843
|
+
"additionalProperties": false,
|
|
1844
|
+
"description": "Represents the completion of an asynchronous operation",
|
|
1845
|
+
"type": "object"
|
|
1846
|
+
},
|
|
1847
|
+
"Writable": {
|
|
1848
|
+
"additionalProperties": false,
|
|
1849
|
+
"properties": {
|
|
1850
|
+
"destroyed": {
|
|
1851
|
+
"default": false,
|
|
1852
|
+
"description": "Is `true` after `writable.destroy()` has been called.",
|
|
1853
|
+
"since": "v8.0.0",
|
|
846
1854
|
"type": "boolean"
|
|
847
1855
|
},
|
|
848
|
-
"
|
|
1856
|
+
"writable": {
|
|
1857
|
+
"default": false,
|
|
1858
|
+
"description": "Is `true` if it is safe to call `writable.write()`, which means\nthe stream has not been destroyed, errored, or ended.",
|
|
1859
|
+
"since": "v11.4.0",
|
|
849
1860
|
"type": "boolean"
|
|
850
1861
|
}
|
|
851
1862
|
},
|
|
852
|
-
"
|
|
853
|
-
|
|
854
|
-
"autoStatus": {
|
|
855
|
-
"type": "boolean",
|
|
856
|
-
"description": "Use the observability of ChildProcess to update status accordingly"
|
|
857
|
-
},
|
|
858
|
-
"openapi": {
|
|
859
|
-
"type": "object",
|
|
860
|
-
"additionalProperties": true
|
|
1863
|
+
"since": "v0.9.4",
|
|
1864
|
+
"type": "object"
|
|
861
1865
|
}
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
"type"
|
|
866
|
-
],
|
|
1866
|
+
}
|
|
1867
|
+
},
|
|
1868
|
+
"Webda/AsyncAction.status.output": {
|
|
867
1869
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1870
|
+
"not": {}
|
|
1871
|
+
},
|
|
1872
|
+
"Webda/AsyncOperationAction.status.input": {
|
|
1873
|
+
"type": "object",
|
|
1874
|
+
"properties": {
|
|
1875
|
+
"context": {
|
|
1876
|
+
"additionalProperties": false,
|
|
1877
|
+
"description": "OperationContext is used when call to an operation",
|
|
1878
|
+
"param": [
|
|
1879
|
+
"T type of input for this context",
|
|
1880
|
+
"U type of output for this context",
|
|
1881
|
+
"P type of parameters for this context"
|
|
1882
|
+
],
|
|
1883
|
+
"properties": {
|
|
1884
|
+
"_promises": {
|
|
1885
|
+
"description": "Contain all registered promises to this context",
|
|
1886
|
+
"items": {
|
|
1887
|
+
"$ref": "#/definitions/Promise%3Cany%3E"
|
|
1888
|
+
},
|
|
1889
|
+
"type": "array"
|
|
1890
|
+
},
|
|
1891
|
+
"_stream": {
|
|
1892
|
+
"$ref": "#/definitions/Writable",
|
|
1893
|
+
"description": "Output stream"
|
|
1894
|
+
},
|
|
1895
|
+
"caches": {
|
|
1896
|
+
"description": "Get the caches linked to the context"
|
|
1897
|
+
},
|
|
1898
|
+
"parameters": {}
|
|
1899
|
+
},
|
|
1900
|
+
"required": [
|
|
1901
|
+
"_promises",
|
|
1902
|
+
"_stream",
|
|
1903
|
+
"caches",
|
|
1904
|
+
"parameters"
|
|
1905
|
+
],
|
|
1906
|
+
"type": "object"
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
868
1909
|
"definitions": {
|
|
869
|
-
"
|
|
870
|
-
"
|
|
871
|
-
"
|
|
872
|
-
"
|
|
873
|
-
|
|
874
|
-
|
|
1910
|
+
"Error": {
|
|
1911
|
+
"additionalProperties": false,
|
|
1912
|
+
"properties": {
|
|
1913
|
+
"message": {
|
|
1914
|
+
"type": "string"
|
|
1915
|
+
},
|
|
1916
|
+
"name": {
|
|
1917
|
+
"type": "string"
|
|
1918
|
+
},
|
|
1919
|
+
"stack": {
|
|
1920
|
+
"type": "string"
|
|
1921
|
+
}
|
|
1922
|
+
},
|
|
1923
|
+
"required": [
|
|
1924
|
+
"message",
|
|
1925
|
+
"name"
|
|
1926
|
+
],
|
|
1927
|
+
"type": "object"
|
|
875
1928
|
},
|
|
876
|
-
"
|
|
877
|
-
"
|
|
878
|
-
"
|
|
879
|
-
|
|
880
|
-
"SIGALRM",
|
|
881
|
-
"SIGBUS",
|
|
882
|
-
"SIGCHLD",
|
|
883
|
-
"SIGCONT",
|
|
884
|
-
"SIGFPE",
|
|
885
|
-
"SIGHUP",
|
|
886
|
-
"SIGILL",
|
|
887
|
-
"SIGINT",
|
|
888
|
-
"SIGIO",
|
|
889
|
-
"SIGIOT",
|
|
890
|
-
"SIGKILL",
|
|
891
|
-
"SIGPIPE",
|
|
892
|
-
"SIGPOLL",
|
|
893
|
-
"SIGPROF",
|
|
894
|
-
"SIGPWR",
|
|
895
|
-
"SIGQUIT",
|
|
896
|
-
"SIGSEGV",
|
|
897
|
-
"SIGSTKFLT",
|
|
898
|
-
"SIGSTOP",
|
|
899
|
-
"SIGSYS",
|
|
900
|
-
"SIGTERM",
|
|
901
|
-
"SIGTRAP",
|
|
902
|
-
"SIGTSTP",
|
|
903
|
-
"SIGTTIN",
|
|
904
|
-
"SIGTTOU",
|
|
905
|
-
"SIGUNUSED",
|
|
906
|
-
"SIGURG",
|
|
907
|
-
"SIGUSR1",
|
|
908
|
-
"SIGUSR2",
|
|
909
|
-
"SIGVTALRM",
|
|
910
|
-
"SIGWINCH",
|
|
911
|
-
"SIGXCPU",
|
|
912
|
-
"SIGXFSZ",
|
|
913
|
-
"SIGBREAK",
|
|
914
|
-
"SIGLOST",
|
|
915
|
-
"SIGINFO"
|
|
916
|
-
]
|
|
1929
|
+
"Promise<any>": {
|
|
1930
|
+
"additionalProperties": false,
|
|
1931
|
+
"description": "Represents the completion of an asynchronous operation",
|
|
1932
|
+
"type": "object"
|
|
917
1933
|
},
|
|
918
|
-
"
|
|
919
|
-
"
|
|
920
|
-
|
|
921
|
-
|
|
1934
|
+
"Writable": {
|
|
1935
|
+
"additionalProperties": false,
|
|
1936
|
+
"properties": {
|
|
1937
|
+
"destroyed": {
|
|
1938
|
+
"default": false,
|
|
1939
|
+
"description": "Is `true` after `writable.destroy()` has been called.",
|
|
1940
|
+
"since": "v8.0.0",
|
|
1941
|
+
"type": "boolean"
|
|
922
1942
|
},
|
|
923
|
-
{
|
|
924
|
-
"
|
|
925
|
-
"
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
"$ref": "#/definitions/IOType"
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
"type": "string",
|
|
932
|
-
"const": "ipc"
|
|
933
|
-
},
|
|
934
|
-
{
|
|
935
|
-
"type": "object",
|
|
936
|
-
"properties": {}
|
|
937
|
-
},
|
|
938
|
-
{
|
|
939
|
-
"type": "number"
|
|
940
|
-
},
|
|
941
|
-
{
|
|
942
|
-
"type": "null"
|
|
943
|
-
},
|
|
944
|
-
{
|
|
945
|
-
"not": {}
|
|
946
|
-
}
|
|
947
|
-
]
|
|
948
|
-
}
|
|
1943
|
+
"writable": {
|
|
1944
|
+
"default": false,
|
|
1945
|
+
"description": "Is `true` if it is safe to call `writable.write()`, which means\nthe stream has not been destroyed, errored, or ended.",
|
|
1946
|
+
"since": "v11.4.0",
|
|
1947
|
+
"type": "boolean"
|
|
949
1948
|
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
"type": "string",
|
|
954
|
-
"enum": [
|
|
955
|
-
"overlapped",
|
|
956
|
-
"pipe",
|
|
957
|
-
"ignore",
|
|
958
|
-
"inherit"
|
|
959
|
-
]
|
|
1949
|
+
},
|
|
1950
|
+
"since": "v0.9.4",
|
|
1951
|
+
"type": "object"
|
|
960
1952
|
}
|
|
961
|
-
}
|
|
962
|
-
"title": "LocalRunner"
|
|
1953
|
+
}
|
|
963
1954
|
},
|
|
964
|
-
"Webda/
|
|
1955
|
+
"Webda/AsyncOperationAction.status.output": {
|
|
1956
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1957
|
+
"not": {}
|
|
1958
|
+
},
|
|
1959
|
+
"Webda/AsyncWebdaAction.status.input": {
|
|
965
1960
|
"type": "object",
|
|
966
1961
|
"properties": {
|
|
967
|
-
"
|
|
968
|
-
"
|
|
969
|
-
"description": "
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1962
|
+
"context": {
|
|
1963
|
+
"additionalProperties": false,
|
|
1964
|
+
"description": "OperationContext is used when call to an operation",
|
|
1965
|
+
"param": [
|
|
1966
|
+
"T type of input for this context",
|
|
1967
|
+
"U type of output for this context",
|
|
1968
|
+
"P type of parameters for this context"
|
|
1969
|
+
],
|
|
1970
|
+
"properties": {
|
|
1971
|
+
"_promises": {
|
|
1972
|
+
"description": "Contain all registered promises to this context",
|
|
1973
|
+
"items": {
|
|
1974
|
+
"$ref": "#/definitions/Promise%3Cany%3E"
|
|
1975
|
+
},
|
|
1976
|
+
"type": "array"
|
|
1977
|
+
},
|
|
1978
|
+
"_stream": {
|
|
1979
|
+
"$ref": "#/definitions/Writable",
|
|
1980
|
+
"description": "Output stream"
|
|
1981
|
+
},
|
|
1982
|
+
"caches": {
|
|
1983
|
+
"description": "Get the caches linked to the context"
|
|
1984
|
+
},
|
|
1985
|
+
"parameters": {}
|
|
979
1986
|
},
|
|
980
|
-
"
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
"
|
|
1987
|
+
"required": [
|
|
1988
|
+
"_promises",
|
|
1989
|
+
"_stream",
|
|
1990
|
+
"caches",
|
|
1991
|
+
"parameters"
|
|
1992
|
+
],
|
|
1993
|
+
"type": "object"
|
|
1994
|
+
}
|
|
1995
|
+
},
|
|
1996
|
+
"definitions": {
|
|
1997
|
+
"Error": {
|
|
1998
|
+
"additionalProperties": false,
|
|
1999
|
+
"properties": {
|
|
2000
|
+
"message": {
|
|
2001
|
+
"type": "string"
|
|
2002
|
+
},
|
|
2003
|
+
"name": {
|
|
2004
|
+
"type": "string"
|
|
2005
|
+
},
|
|
2006
|
+
"stack": {
|
|
2007
|
+
"type": "string"
|
|
2008
|
+
}
|
|
2009
|
+
},
|
|
2010
|
+
"required": [
|
|
2011
|
+
"message",
|
|
2012
|
+
"name"
|
|
2013
|
+
],
|
|
2014
|
+
"type": "object"
|
|
987
2015
|
},
|
|
988
|
-
"
|
|
989
|
-
"
|
|
990
|
-
"description": "
|
|
991
|
-
"
|
|
2016
|
+
"Promise<any>": {
|
|
2017
|
+
"additionalProperties": false,
|
|
2018
|
+
"description": "Represents the completion of an asynchronous operation",
|
|
2019
|
+
"type": "object"
|
|
992
2020
|
},
|
|
993
|
-
"
|
|
994
|
-
"
|
|
995
|
-
"
|
|
2021
|
+
"Writable": {
|
|
2022
|
+
"additionalProperties": false,
|
|
2023
|
+
"properties": {
|
|
2024
|
+
"destroyed": {
|
|
2025
|
+
"default": false,
|
|
2026
|
+
"description": "Is `true` after `writable.destroy()` has been called.",
|
|
2027
|
+
"since": "v8.0.0",
|
|
2028
|
+
"type": "boolean"
|
|
2029
|
+
},
|
|
2030
|
+
"writable": {
|
|
2031
|
+
"default": false,
|
|
2032
|
+
"description": "Is `true` if it is safe to call `writable.write()`, which means\nthe stream has not been destroyed, errored, or ended.",
|
|
2033
|
+
"since": "v11.4.0",
|
|
2034
|
+
"type": "boolean"
|
|
2035
|
+
}
|
|
2036
|
+
},
|
|
2037
|
+
"since": "v0.9.4",
|
|
2038
|
+
"type": "object"
|
|
996
2039
|
}
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
],
|
|
1001
|
-
"description": "Add the log format to capture",
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"Webda/AsyncWebdaAction.status.output": {
|
|
1002
2043
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
1003
|
-
"
|
|
2044
|
+
"not": {}
|
|
1004
2045
|
}
|
|
1005
|
-
}
|
|
2046
|
+
},
|
|
2047
|
+
"behaviors": {}
|
|
1006
2048
|
}
|