@twin.org/background-task-models 0.0.1-next.11 → 0.0.1-next.12
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/docs/changelog.md
CHANGED
|
@@ -104,19 +104,19 @@ The payload for the task.
|
|
|
104
104
|
|
|
105
105
|
Additional options for the task.
|
|
106
106
|
|
|
107
|
-
###### retryCount
|
|
107
|
+
###### retryCount?
|
|
108
108
|
|
|
109
109
|
`number`
|
|
110
110
|
|
|
111
111
|
The number of times to retry the task if it fails, leave undefined to retry forever.
|
|
112
112
|
|
|
113
|
-
###### retryInterval
|
|
113
|
+
###### retryInterval?
|
|
114
114
|
|
|
115
115
|
`number`
|
|
116
116
|
|
|
117
117
|
The interval in milliseconds to wait between retries, defaults to 5000, leave undefined for default scheduling.
|
|
118
118
|
|
|
119
|
-
###### retainFor
|
|
119
|
+
###### retainFor?
|
|
120
120
|
|
|
121
121
|
`number`
|
|
122
122
|
|
|
@@ -226,7 +226,7 @@ Nothing.
|
|
|
226
226
|
|
|
227
227
|
### query()
|
|
228
228
|
|
|
229
|
-
> **query**(`taskType`?, `taskStatus`?, `sortProperty`?, `sortDirection`?, `cursor`?, `pageSize`?): `Promise`\<\{ `entities`: [`IBackgroundTask`](IBackgroundTask.md)[]; `cursor`: `string`; \}\>
|
|
229
|
+
> **query**(`taskType`?, `taskStatus`?, `sortProperty`?, `sortDirection`?, `cursor`?, `pageSize`?): `Promise`\<\{ `entities`: [`IBackgroundTask`](IBackgroundTask.md)\<`any`, `any`\>[]; `cursor`: `string`; \}\>
|
|
230
230
|
|
|
231
231
|
Get a list of tasks.
|
|
232
232
|
|
|
@@ -270,6 +270,6 @@ The maximum number of entities in a page.
|
|
|
270
270
|
|
|
271
271
|
#### Returns
|
|
272
272
|
|
|
273
|
-
`Promise`\<\{ `entities`: [`IBackgroundTask`](IBackgroundTask.md)[]; `cursor`: `string`; \}\>
|
|
273
|
+
`Promise`\<\{ `entities`: [`IBackgroundTask`](IBackgroundTask.md)\<`any`, `any`\>[]; `cursor`: `string`; \}\>
|
|
274
274
|
|
|
275
275
|
The list of tasks.
|
package/package.json
CHANGED