@emilgroup/task-sdk-node 1.0.3 → 1.1.0
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/.openapi-generator/FILES +49 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +84 -1
- package/api/assignees-api.ts +166 -0
- package/api/categories-api.ts +695 -0
- package/api/default-api.ts +128 -0
- package/api/hub-spot-api.ts +169 -0
- package/api/statuses-api.ts +667 -0
- package/api/tasks-api.ts +695 -0
- package/api.ts +41 -0
- package/base.ts +327 -0
- package/common.ts +199 -0
- package/configuration.ts +118 -0
- package/dist/api/assignees-api.d.ts +96 -0
- package/dist/api/assignees-api.js +228 -0
- package/dist/api/categories-api.d.ts +393 -0
- package/dist/api/categories-api.js +646 -0
- package/dist/api/default-api.d.ts +70 -0
- package/dist/api/default-api.js +204 -0
- package/dist/api/hub-spot-api.d.ts +97 -0
- package/dist/api/hub-spot-api.js +228 -0
- package/dist/api/statuses-api.d.ts +375 -0
- package/dist/api/statuses-api.js +634 -0
- package/dist/api/tasks-api.d.ts +393 -0
- package/dist/api/tasks-api.js +646 -0
- package/dist/api.d.ts +17 -0
- package/dist/api.js +35 -0
- package/dist/base.d.ts +88 -0
- package/dist/base.js +434 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/assignee-class.d.ts +24 -0
- package/dist/models/assignee-class.js +15 -0
- package/dist/models/category-class.d.ts +66 -0
- package/dist/models/category-class.js +15 -0
- package/dist/models/create-category-request-dto.d.ts +30 -0
- package/dist/models/create-category-request-dto.js +15 -0
- package/dist/models/create-category-response-class.d.ts +25 -0
- package/dist/models/create-category-response-class.js +15 -0
- package/dist/models/create-hub-spot-ticket-request-dto.d.ts +31 -0
- package/dist/models/create-hub-spot-ticket-request-dto.js +15 -0
- package/dist/models/create-hub-spot-ticket-response-class.d.ts +25 -0
- package/dist/models/create-hub-spot-ticket-response-class.js +15 -0
- package/dist/models/create-status-request-dto.d.ts +36 -0
- package/dist/models/create-status-request-dto.js +15 -0
- package/dist/models/create-status-response-class.d.ts +25 -0
- package/dist/models/create-status-response-class.js +15 -0
- package/dist/models/create-task-request-dto.d.ts +72 -0
- package/dist/models/create-task-request-dto.js +21 -0
- package/dist/models/create-task-response-class.d.ts +25 -0
- package/dist/models/create-task-response-class.js +15 -0
- package/dist/models/get-category-response-class.d.ts +25 -0
- package/dist/models/get-category-response-class.js +15 -0
- package/dist/models/get-status-response-class.d.ts +25 -0
- package/dist/models/get-status-response-class.js +15 -0
- package/dist/models/get-task-response-class.d.ts +25 -0
- package/dist/models/get-task-response-class.js +15 -0
- package/dist/models/hub-spot-ticket-class.d.ts +49 -0
- package/dist/models/hub-spot-ticket-class.js +15 -0
- package/dist/models/hub-spot-ticket-error-class.d.ts +30 -0
- package/dist/models/hub-spot-ticket-error-class.js +15 -0
- package/dist/models/hub-spot-ticket-name-value-dto.d.ts +30 -0
- package/dist/models/hub-spot-ticket-name-value-dto.js +15 -0
- package/dist/models/index.d.ts +30 -0
- package/dist/models/index.js +46 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/list-assignees-response-class.js +15 -0
- package/dist/models/list-categories-response-class.d.ts +43 -0
- package/dist/models/list-categories-response-class.js +15 -0
- package/dist/models/list-statuses-response-class.d.ts +43 -0
- package/dist/models/list-statuses-response-class.js +15 -0
- package/dist/models/list-tasks-response-class.d.ts +43 -0
- package/dist/models/list-tasks-response-class.js +15 -0
- package/dist/models/patch-category-request-dto.d.ts +36 -0
- package/dist/models/patch-category-request-dto.js +15 -0
- package/dist/models/patch-category-response-class.d.ts +25 -0
- package/dist/models/patch-category-response-class.js +15 -0
- package/dist/models/patch-status-request-dto.d.ts +42 -0
- package/dist/models/patch-status-request-dto.js +15 -0
- package/dist/models/patch-status-response-class.d.ts +25 -0
- package/dist/models/patch-status-response-class.js +15 -0
- package/dist/models/patch-task-request-dto.d.ts +114 -0
- package/dist/models/patch-task-request-dto.js +15 -0
- package/dist/models/patch-task-response-class.d.ts +25 -0
- package/dist/models/patch-task-response-class.js +15 -0
- package/dist/models/status-class.d.ts +72 -0
- package/dist/models/status-class.js +15 -0
- package/dist/models/task-class.d.ts +128 -0
- package/dist/models/task-class.js +21 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/assignee-class.ts +30 -0
- package/models/category-class.ts +72 -0
- package/models/create-category-request-dto.ts +36 -0
- package/models/create-category-response-class.ts +31 -0
- package/models/create-hub-spot-ticket-request-dto.ts +37 -0
- package/models/create-hub-spot-ticket-response-class.ts +31 -0
- package/models/create-status-request-dto.ts +42 -0
- package/models/create-status-response-class.ts +31 -0
- package/models/create-task-request-dto.ts +81 -0
- package/models/create-task-response-class.ts +31 -0
- package/models/get-category-response-class.ts +31 -0
- package/models/get-status-response-class.ts +31 -0
- package/models/get-task-response-class.ts +31 -0
- package/models/hub-spot-ticket-class.ts +55 -0
- package/models/hub-spot-ticket-error-class.ts +36 -0
- package/models/hub-spot-ticket-name-value-dto.ts +36 -0
- package/models/index.ts +30 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-assignees-response-class.ts +49 -0
- package/models/list-categories-response-class.ts +49 -0
- package/models/list-statuses-response-class.ts +49 -0
- package/models/list-tasks-response-class.ts +49 -0
- package/models/patch-category-request-dto.ts +42 -0
- package/models/patch-category-response-class.ts +31 -0
- package/models/patch-status-request-dto.ts +48 -0
- package/models/patch-status-response-class.ts +31 -0
- package/models/patch-task-request-dto.ts +120 -0
- package/models/patch-task-response-class.ts +31 -0
- package/models/status-class.ts +78 -0
- package/models/task-class.ts +137 -0
- package/package.json +24 -8
- package/tsconfig.json +23 -0
- package/index.js +0 -99
- package/scripts/deploy.js +0 -81
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { StatusClass } from './status-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListStatusesResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListStatusesResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* items
|
|
26
|
+
* @type {Array<StatusClass>}
|
|
27
|
+
* @memberof ListStatusesResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<StatusClass>;
|
|
30
|
+
/**
|
|
31
|
+
* nextPageToken
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListStatusesResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
/**
|
|
37
|
+
* itemsPerPage
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListStatusesResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* totalItems
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListStatusesResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'totalItems': number;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { TaskClass } from './task-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface ListTasksResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface ListTasksResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* items
|
|
26
|
+
* @type {Array<TaskClass>}
|
|
27
|
+
* @memberof ListTasksResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'items': Array<TaskClass>;
|
|
30
|
+
/**
|
|
31
|
+
* nextPageToken
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ListTasksResponseClass
|
|
34
|
+
*/
|
|
35
|
+
'nextPageToken': string;
|
|
36
|
+
/**
|
|
37
|
+
* itemsPerPage
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof ListTasksResponseClass
|
|
40
|
+
*/
|
|
41
|
+
'itemsPerPage': number;
|
|
42
|
+
/**
|
|
43
|
+
* totalItems
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof ListTasksResponseClass
|
|
46
|
+
*/
|
|
47
|
+
'totalItems': number;
|
|
48
|
+
}
|
|
49
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PatchCategoryRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface PatchCategoryRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Category code: unique identifier of the category
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PatchCategoryRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Category name: display name of the category
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PatchCategoryRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'name'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Category slug: URL-friendly identifier
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PatchCategoryRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'slug'?: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { CategoryClass } from './category-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface PatchCategoryResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface PatchCategoryResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* category
|
|
26
|
+
* @type {CategoryClass}
|
|
27
|
+
* @memberof PatchCategoryResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'category'?: CategoryClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PatchStatusRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface PatchStatusRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Status code: unique identifier of the status
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PatchStatusRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Status name: display name of the status
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PatchStatusRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'name'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Status slug: URL-friendly identifier
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PatchStatusRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'slug'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Sort order for workflow display (must be unique per tenant). Lower values appear first.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PatchStatusRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'sortOrder'?: number;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { StatusClass } from './status-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface PatchStatusResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface PatchStatusResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* status
|
|
26
|
+
* @type {StatusClass}
|
|
27
|
+
* @memberof PatchStatusResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'status'?: StatusClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface PatchTaskRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface PatchTaskRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Task code: unique identifier of the task
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PatchTaskRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
/**
|
|
30
|
+
* Entity version for optimistic locking. If provided, update fails if version does not match current version.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof PatchTaskRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'version'?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Task subject: title of the task
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PatchTaskRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'subject'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Task description: detailed description of the task
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PatchTaskRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'description'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Task assignee: person assigned to the task
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PatchTaskRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'assignee'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Task category slugs (array of category slugs)
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof PatchTaskRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'categorySlugs'?: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
* Task status slug
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PatchTaskRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'statusSlug'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Task priority
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PatchTaskRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'priority'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Task reporter: person who reported the task
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PatchTaskRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'reporter'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Task due date
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof PatchTaskRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'dueDate'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Set to true to clear/remove the due date.
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof PatchTaskRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'clearDueDate'?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Set to true to clear/remove the assignee.
|
|
91
|
+
* @type {boolean}
|
|
92
|
+
* @memberof PatchTaskRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'clearAssignee'?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Set to true to clear/remove the categories.
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof PatchTaskRequestDto
|
|
99
|
+
*/
|
|
100
|
+
'clearCategories'?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Set to true to clear/remove the status.
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof PatchTaskRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'clearStatus'?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Set to true to clear/remove the priority.
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof PatchTaskRequestDto
|
|
111
|
+
*/
|
|
112
|
+
'clearPriority'?: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Set to true to clear/remove the reporter.
|
|
115
|
+
* @type {boolean}
|
|
116
|
+
* @memberof PatchTaskRequestDto
|
|
117
|
+
*/
|
|
118
|
+
'clearReporter'?: boolean;
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { TaskClass } from './task-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface PatchTaskResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface PatchTaskResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* task
|
|
26
|
+
* @type {TaskClass}
|
|
27
|
+
* @memberof PatchTaskResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'task'?: TaskClass;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface StatusClass
|
|
21
|
+
*/
|
|
22
|
+
export interface StatusClass {
|
|
23
|
+
/**
|
|
24
|
+
* id
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof StatusClass
|
|
27
|
+
*/
|
|
28
|
+
'id': number;
|
|
29
|
+
/**
|
|
30
|
+
* code
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof StatusClass
|
|
33
|
+
*/
|
|
34
|
+
'code': string;
|
|
35
|
+
/**
|
|
36
|
+
* name
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof StatusClass
|
|
39
|
+
*/
|
|
40
|
+
'name': string;
|
|
41
|
+
/**
|
|
42
|
+
* createdBy
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof StatusClass
|
|
45
|
+
*/
|
|
46
|
+
'createdBy': string;
|
|
47
|
+
/**
|
|
48
|
+
* updatedBy
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof StatusClass
|
|
51
|
+
*/
|
|
52
|
+
'updatedBy': string;
|
|
53
|
+
/**
|
|
54
|
+
* createdAt
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof StatusClass
|
|
57
|
+
*/
|
|
58
|
+
'createdAt'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* updatedAt
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof StatusClass
|
|
63
|
+
*/
|
|
64
|
+
'updatedAt'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* slug
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof StatusClass
|
|
69
|
+
*/
|
|
70
|
+
'slug': string;
|
|
71
|
+
/**
|
|
72
|
+
* Sort order for workflow display (unique per tenant)
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof StatusClass
|
|
75
|
+
*/
|
|
76
|
+
'sortOrder': number;
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { CategoryClass } from './category-class';
|
|
17
|
+
import { StatusClass } from './status-class';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface TaskClass
|
|
23
|
+
*/
|
|
24
|
+
export interface TaskClass {
|
|
25
|
+
/**
|
|
26
|
+
* id
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof TaskClass
|
|
29
|
+
*/
|
|
30
|
+
'id': number;
|
|
31
|
+
/**
|
|
32
|
+
* code
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof TaskClass
|
|
35
|
+
*/
|
|
36
|
+
'code': string;
|
|
37
|
+
/**
|
|
38
|
+
* subject
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TaskClass
|
|
41
|
+
*/
|
|
42
|
+
'subject': string;
|
|
43
|
+
/**
|
|
44
|
+
* description
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof TaskClass
|
|
47
|
+
*/
|
|
48
|
+
'description': string;
|
|
49
|
+
/**
|
|
50
|
+
* assignee
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof TaskClass
|
|
53
|
+
*/
|
|
54
|
+
'assignee'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Category slugs
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof TaskClass
|
|
59
|
+
*/
|
|
60
|
+
'categorySlugs'?: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Status slug (always returned)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof TaskClass
|
|
65
|
+
*/
|
|
66
|
+
'statusSlug': string;
|
|
67
|
+
/**
|
|
68
|
+
* categories (only populated when expand=categories)
|
|
69
|
+
* @type {Array<CategoryClass>}
|
|
70
|
+
* @memberof TaskClass
|
|
71
|
+
*/
|
|
72
|
+
'categories'?: Array<CategoryClass>;
|
|
73
|
+
/**
|
|
74
|
+
* status (only populated when expand=status)
|
|
75
|
+
* @type {StatusClass}
|
|
76
|
+
* @memberof TaskClass
|
|
77
|
+
*/
|
|
78
|
+
'status'?: StatusClass;
|
|
79
|
+
/**
|
|
80
|
+
* Task priority
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof TaskClass
|
|
83
|
+
*/
|
|
84
|
+
'priority': TaskClassPriorityEnum;
|
|
85
|
+
/**
|
|
86
|
+
* Task reporter: person who reported the task
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof TaskClass
|
|
89
|
+
*/
|
|
90
|
+
'reporter'?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Task due date
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof TaskClass
|
|
95
|
+
*/
|
|
96
|
+
'dueDate'?: string;
|
|
97
|
+
/**
|
|
98
|
+
* createdBy
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof TaskClass
|
|
101
|
+
*/
|
|
102
|
+
'createdBy': string;
|
|
103
|
+
/**
|
|
104
|
+
* updatedBy
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof TaskClass
|
|
107
|
+
*/
|
|
108
|
+
'updatedBy': string;
|
|
109
|
+
/**
|
|
110
|
+
* version
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @memberof TaskClass
|
|
113
|
+
*/
|
|
114
|
+
'version': number;
|
|
115
|
+
/**
|
|
116
|
+
* createdAt
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof TaskClass
|
|
119
|
+
*/
|
|
120
|
+
'createdAt'?: string;
|
|
121
|
+
/**
|
|
122
|
+
* updatedAt
|
|
123
|
+
* @type {string}
|
|
124
|
+
* @memberof TaskClass
|
|
125
|
+
*/
|
|
126
|
+
'updatedAt'?: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export const TaskClassPriorityEnum = {
|
|
130
|
+
Low: 'LOW',
|
|
131
|
+
Medium: 'MEDIUM',
|
|
132
|
+
High: 'HIGH'
|
|
133
|
+
} as const;
|
|
134
|
+
|
|
135
|
+
export type TaskClassPriorityEnum = typeof TaskClassPriorityEnum[keyof typeof TaskClassPriorityEnum];
|
|
136
|
+
|
|
137
|
+
|
package/package.json
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/task-sdk-node",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "OpenAPI client for @emilgroup/task-sdk-node",
|
|
5
|
+
"author": "OpenAPI-Generator Contributors",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"axios",
|
|
8
|
+
"typescript",
|
|
9
|
+
"openapi-client",
|
|
10
|
+
"openapi-generator",
|
|
11
|
+
"@emilgroup/task-sdk-node"
|
|
12
|
+
],
|
|
13
|
+
"license": "Unlicense",
|
|
14
|
+
"main": "./dist/index.js",
|
|
15
|
+
"typings": "./dist/index.d.ts",
|
|
6
16
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
17
|
+
"build": "tsc --outDir dist/",
|
|
18
|
+
"prepare": "npm run build"
|
|
9
19
|
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"axios": "^1.12.0",
|
|
22
|
+
"form-data": "^4.0.0",
|
|
23
|
+
"url": "^0.11.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^12.11.5",
|
|
27
|
+
"typescript": "^4.0"
|
|
28
|
+
}
|
|
13
29
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": true,
|
|
4
|
+
"target": "ES5",
|
|
5
|
+
"module": "CommonJS",
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"noImplicitOverride": true,
|
|
9
|
+
"outDir": "dist",
|
|
10
|
+
"rootDir": ".",
|
|
11
|
+
"lib": [
|
|
12
|
+
"es6",
|
|
13
|
+
"dom"
|
|
14
|
+
],
|
|
15
|
+
"typeRoots": [
|
|
16
|
+
"node_modules/@types"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"exclude": [
|
|
20
|
+
"dist",
|
|
21
|
+
"node_modules"
|
|
22
|
+
]
|
|
23
|
+
}
|