@webda/async 4.0.0-beta.11 → 4.0.0-beta.13
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 +14 -14
- package/lib/asyncaction.model.d.ts +14 -1
- package/lib/asyncaction.model.d.ts.map +1 -1
- package/lib/asyncaction.model.js +50 -9
- package/lib/asyncaction.model.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/services/asyncevents.service.d.ts +7 -5
- package/lib/services/asyncevents.service.d.ts.map +1 -1
- package/lib/services/asyncevents.service.js +11 -7
- package/lib/services/asyncevents.service.js.map +1 -1
- package/lib/services/asyncjobservice.service.d.ts +12 -8
- package/lib/services/asyncjobservice.service.d.ts.map +1 -1
- package/lib/services/asyncjobservice.service.js +49 -16
- package/lib/services/asyncjobservice.service.js.map +1 -1
- package/lib/services/localrunner.service.d.ts +2 -2
- package/lib/services/localrunner.service.d.ts.map +1 -1
- package/lib/services/localrunner.service.js +3 -3
- package/lib/services/localrunner.service.js.map +1 -1
- package/lib/services/runner.service.d.ts.map +1 -1
- package/lib/services/runner.service.js.map +1 -1
- package/lib/services/servicerunner.service.d.ts +6 -5
- package/lib/services/servicerunner.service.d.ts.map +1 -1
- package/lib/services/servicerunner.service.js +14 -10
- package/lib/services/servicerunner.service.js.map +1 -1
- package/package.json +18 -19
- package/webda.module.json +64 -246
package/webda.module.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"additionalProperties": {
|
|
14
14
|
"type": "string"
|
|
15
15
|
},
|
|
16
|
-
"
|
|
16
|
+
"default": {},
|
|
17
17
|
"type": "object"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
@@ -21,11 +21,10 @@
|
|
|
21
21
|
"properties": {
|
|
22
22
|
"queues": {
|
|
23
23
|
"$ref": "#/definitions/queues",
|
|
24
|
-
"
|
|
24
|
+
"default": {}
|
|
25
25
|
},
|
|
26
26
|
"sync": {
|
|
27
27
|
"default": false,
|
|
28
|
-
"description": "Make the event sending asynchronous",
|
|
29
28
|
"type": "boolean"
|
|
30
29
|
},
|
|
31
30
|
"type": {
|
|
@@ -169,6 +168,16 @@
|
|
|
169
168
|
"AbortSignal": {
|
|
170
169
|
"additionalProperties": false,
|
|
171
170
|
"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)",
|
|
171
|
+
"properties": {
|
|
172
|
+
"onabort": {
|
|
173
|
+
"const": null,
|
|
174
|
+
"description": "[MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event)",
|
|
175
|
+
"type": "null"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"required": [
|
|
179
|
+
"onabort"
|
|
180
|
+
],
|
|
172
181
|
"type": "object"
|
|
173
182
|
},
|
|
174
183
|
"ProcessEnv": {
|
|
@@ -392,6 +401,10 @@
|
|
|
392
401
|
{
|
|
393
402
|
"items": {
|
|
394
403
|
"anyOf": [
|
|
404
|
+
{
|
|
405
|
+
"const": null,
|
|
406
|
+
"type": "null"
|
|
407
|
+
},
|
|
395
408
|
{
|
|
396
409
|
"type": "number"
|
|
397
410
|
},
|
|
@@ -871,6 +884,9 @@
|
|
|
871
884
|
},
|
|
872
885
|
"Actions": {
|
|
873
886
|
"status": {
|
|
887
|
+
"openapi": {
|
|
888
|
+
"hidden": true
|
|
889
|
+
},
|
|
874
890
|
"handler": "statusAction"
|
|
875
891
|
}
|
|
876
892
|
},
|
|
@@ -913,6 +929,9 @@
|
|
|
913
929
|
"logLevel": {
|
|
914
930
|
"type": "WorkerLogLevel"
|
|
915
931
|
},
|
|
932
|
+
"system": {
|
|
933
|
+
"type": "boolean"
|
|
934
|
+
},
|
|
916
935
|
"status": {
|
|
917
936
|
"type": "\"RUNNING\" | \"SUCCESS\" | \"ERROR\" | \"QUEUED\" | \"STARTING\" | \"TIMEOUT\" | \"SCHEDULED\""
|
|
918
937
|
},
|
|
@@ -1046,6 +1065,11 @@
|
|
|
1046
1065
|
"statusDetails": {
|
|
1047
1066
|
"description": "Job current status"
|
|
1048
1067
|
},
|
|
1068
|
+
"system": {
|
|
1069
|
+
"default": false,
|
|
1070
|
+
"description": "The operation is called as the system (`useSystem`), a cron for example\n\nThe context is stored as data: the runner rebuilds a system context from this flag",
|
|
1071
|
+
"type": "boolean"
|
|
1072
|
+
},
|
|
1049
1073
|
"type": {
|
|
1050
1074
|
"description": "Type of action",
|
|
1051
1075
|
"type": "string"
|
|
@@ -1063,7 +1087,6 @@
|
|
|
1063
1087
|
"job",
|
|
1064
1088
|
"logLevel",
|
|
1065
1089
|
"logs",
|
|
1066
|
-
"operationId",
|
|
1067
1090
|
"results",
|
|
1068
1091
|
"status",
|
|
1069
1092
|
"statusDetails",
|
|
@@ -1156,6 +1179,11 @@
|
|
|
1156
1179
|
"statusDetails": {
|
|
1157
1180
|
"description": "Job current status"
|
|
1158
1181
|
},
|
|
1182
|
+
"system": {
|
|
1183
|
+
"default": false,
|
|
1184
|
+
"description": "The operation is called as the system (`useSystem`), a cron for example\n\nThe context is stored as data: the runner rebuilds a system context from this flag",
|
|
1185
|
+
"type": "boolean"
|
|
1186
|
+
},
|
|
1159
1187
|
"type": {
|
|
1160
1188
|
"description": "Type of action",
|
|
1161
1189
|
"type": "string"
|
|
@@ -1173,7 +1201,6 @@
|
|
|
1173
1201
|
"job",
|
|
1174
1202
|
"logLevel",
|
|
1175
1203
|
"logs",
|
|
1176
|
-
"operationId",
|
|
1177
1204
|
"results",
|
|
1178
1205
|
"status",
|
|
1179
1206
|
"statusDetails",
|
|
@@ -1266,6 +1293,11 @@
|
|
|
1266
1293
|
"statusDetails": {
|
|
1267
1294
|
"description": "Job current status"
|
|
1268
1295
|
},
|
|
1296
|
+
"system": {
|
|
1297
|
+
"default": false,
|
|
1298
|
+
"description": "The operation is called as the system (`useSystem`), a cron for example\n\nThe context is stored as data: the runner rebuilds a system context from this flag",
|
|
1299
|
+
"type": "boolean"
|
|
1300
|
+
},
|
|
1269
1301
|
"type": {
|
|
1270
1302
|
"description": "Type of action",
|
|
1271
1303
|
"type": "string"
|
|
@@ -1283,7 +1315,6 @@
|
|
|
1283
1315
|
"job",
|
|
1284
1316
|
"logLevel",
|
|
1285
1317
|
"logs",
|
|
1286
|
-
"operationId",
|
|
1287
1318
|
"results",
|
|
1288
1319
|
"status",
|
|
1289
1320
|
"statusDetails",
|
|
@@ -1296,6 +1327,9 @@
|
|
|
1296
1327
|
},
|
|
1297
1328
|
"Actions": {
|
|
1298
1329
|
"status": {
|
|
1330
|
+
"openapi": {
|
|
1331
|
+
"hidden": true
|
|
1332
|
+
},
|
|
1299
1333
|
"handler": "statusAction"
|
|
1300
1334
|
}
|
|
1301
1335
|
},
|
|
@@ -1718,6 +1752,9 @@
|
|
|
1718
1752
|
},
|
|
1719
1753
|
"Actions": {
|
|
1720
1754
|
"status": {
|
|
1755
|
+
"openapi": {
|
|
1756
|
+
"hidden": true
|
|
1757
|
+
},
|
|
1721
1758
|
"handler": "statusAction"
|
|
1722
1759
|
}
|
|
1723
1760
|
},
|
|
@@ -1784,86 +1821,13 @@
|
|
|
1784
1821
|
},
|
|
1785
1822
|
"Webda/AsyncAction.status.input": {
|
|
1786
1823
|
"type": "object",
|
|
1787
|
-
"properties": {
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
"P type of parameters for this context"
|
|
1795
|
-
],
|
|
1796
|
-
"properties": {
|
|
1797
|
-
"_promises": {
|
|
1798
|
-
"description": "Contain all registered promises to this context",
|
|
1799
|
-
"items": {
|
|
1800
|
-
"$ref": "#/definitions/Promise%3Cany%3E"
|
|
1801
|
-
},
|
|
1802
|
-
"type": "array"
|
|
1803
|
-
},
|
|
1804
|
-
"_stream": {
|
|
1805
|
-
"$ref": "#/definitions/Writable",
|
|
1806
|
-
"description": "Output stream"
|
|
1807
|
-
},
|
|
1808
|
-
"caches": {
|
|
1809
|
-
"description": "Get the caches linked to the context"
|
|
1810
|
-
},
|
|
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": {
|
|
1827
|
-
"type": "string"
|
|
1828
|
-
},
|
|
1829
|
-
"name": {
|
|
1830
|
-
"type": "string"
|
|
1831
|
-
},
|
|
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",
|
|
1854
|
-
"type": "boolean"
|
|
1855
|
-
},
|
|
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",
|
|
1860
|
-
"type": "boolean"
|
|
1861
|
-
}
|
|
1862
|
-
},
|
|
1863
|
-
"since": "v0.9.4",
|
|
1864
|
-
"type": "object"
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1824
|
+
"properties": {},
|
|
1825
|
+
"x-webda-arguments": [
|
|
1826
|
+
"context"
|
|
1827
|
+
],
|
|
1828
|
+
"x-webda-context": [
|
|
1829
|
+
"context"
|
|
1830
|
+
]
|
|
1867
1831
|
},
|
|
1868
1832
|
"Webda/AsyncAction.status.output": {
|
|
1869
1833
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -1871,86 +1835,13 @@
|
|
|
1871
1835
|
},
|
|
1872
1836
|
"Webda/AsyncOperationAction.status.input": {
|
|
1873
1837
|
"type": "object",
|
|
1874
|
-
"properties": {
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
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
|
-
},
|
|
1909
|
-
"definitions": {
|
|
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"
|
|
1928
|
-
},
|
|
1929
|
-
"Promise<any>": {
|
|
1930
|
-
"additionalProperties": false,
|
|
1931
|
-
"description": "Represents the completion of an asynchronous operation",
|
|
1932
|
-
"type": "object"
|
|
1933
|
-
},
|
|
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"
|
|
1942
|
-
},
|
|
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"
|
|
1948
|
-
}
|
|
1949
|
-
},
|
|
1950
|
-
"since": "v0.9.4",
|
|
1951
|
-
"type": "object"
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1838
|
+
"properties": {},
|
|
1839
|
+
"x-webda-arguments": [
|
|
1840
|
+
"context"
|
|
1841
|
+
],
|
|
1842
|
+
"x-webda-context": [
|
|
1843
|
+
"context"
|
|
1844
|
+
]
|
|
1954
1845
|
},
|
|
1955
1846
|
"Webda/AsyncOperationAction.status.output": {
|
|
1956
1847
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
@@ -1958,86 +1849,13 @@
|
|
|
1958
1849
|
},
|
|
1959
1850
|
"Webda/AsyncWebdaAction.status.input": {
|
|
1960
1851
|
"type": "object",
|
|
1961
|
-
"properties": {
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
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": {}
|
|
1986
|
-
},
|
|
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"
|
|
2015
|
-
},
|
|
2016
|
-
"Promise<any>": {
|
|
2017
|
-
"additionalProperties": false,
|
|
2018
|
-
"description": "Represents the completion of an asynchronous operation",
|
|
2019
|
-
"type": "object"
|
|
2020
|
-
},
|
|
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"
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
1852
|
+
"properties": {},
|
|
1853
|
+
"x-webda-arguments": [
|
|
1854
|
+
"context"
|
|
1855
|
+
],
|
|
1856
|
+
"x-webda-context": [
|
|
1857
|
+
"context"
|
|
1858
|
+
]
|
|
2041
1859
|
},
|
|
2042
1860
|
"Webda/AsyncWebdaAction.status.output": {
|
|
2043
1861
|
"$schema": "http://json-schema.org/draft-07/schema#",
|