@enonic-types/lib-task 7.11.2 → 7.12.0-B1

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/task.d.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enonic-types/lib-task",
3
- "version": "7.11.2",
3
+ "version": "7.12.0-B1",
4
4
  "description": "Type definitions for lib-task.",
5
5
  "types": "task.d.ts",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/enonic/xp/tree/master#readme",
29
29
  "dependencies": {
30
- "@enonic-types/core": "7.11.2"
30
+ "@enonic-types/core": "7.12.0-B1"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"
package/task.d.ts CHANGED
@@ -67,7 +67,7 @@ export declare function submit(params: SubmitParams): string;
67
67
  * @returns {string} Id of the task that will be executed.
68
68
  */
69
69
  export declare function executeFunction(params: ExecuteFunctionParams): string;
70
- export interface SubmitNamedTaskParams<Config extends object = Record<string, unknown>> {
70
+ export interface SubmitNamedTaskParams<Config extends Record<string, unknown>> {
71
71
  name: string;
72
72
  config?: Config;
73
73
  }
@@ -86,8 +86,8 @@ export interface SubmitNamedTaskParams<Config extends object = Record<string, un
86
86
  * The object must be valid according to the schema defined in the form of the task descriptor XML.
87
87
  * @returns {string} Id of the task that will be executed.
88
88
  */
89
- export declare function submitNamed<Config extends object = Record<string, unknown>>(params: SubmitNamedTaskParams<Config>): string;
90
- export interface SubmitTaskParams<Config extends object = Record<string, unknown>> {
89
+ export declare function submitNamed<Config extends Record<string, unknown> = Record<string, unknown>>(params: SubmitNamedTaskParams<Config>): string;
90
+ export interface SubmitTaskParams<Config extends Record<string, unknown>> {
91
91
  descriptor: string;
92
92
  config?: Config;
93
93
  }
@@ -104,7 +104,7 @@ export interface SubmitTaskParams<Config extends object = Record<string, unknown
104
104
  * The object must be valid according to the schema defined in the form of the task descriptor XML.
105
105
  * @returns {string} Id of the task that will be executed.
106
106
  */
107
- export declare function submitTask<Config extends object = Record<string, unknown>>(params: SubmitTaskParams<Config>): string;
107
+ export declare function submitTask<Config extends Record<string, unknown> = Record<string, unknown>>(params: SubmitTaskParams<Config>): string;
108
108
  export declare type TaskStateType = 'WAITING' | 'RUNNING' | 'FINISHED' | 'FAILED';
109
109
  export interface ListTasksParams {
110
110
  name?: string | null;