@emilgroup/task-sdk-node 1.0.1-beta.1 → 1.0.1-beta.11
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 +9 -11
- package/README.md +2 -2
- package/api/assignees-api.ts +166 -0
- package/api/categories-api.ts +74 -60
- package/api/statuses-api.ts +70 -56
- package/api/tasks-api.ts +105 -63
- package/api.ts +2 -2
- package/dist/api/assignees-api.d.ts +96 -0
- package/dist/api/{priorities-api.js → assignees-api.js} +41 -141
- package/dist/api/categories-api.d.ts +58 -49
- package/dist/api/categories-api.js +53 -47
- package/dist/api/statuses-api.d.ts +54 -45
- package/dist/api/statuses-api.js +49 -43
- package/dist/api/tasks-api.d.ts +77 -50
- package/dist/api/tasks-api.js +66 -48
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/models/{create-priority-request-dto.d.ts → assignee-class.d.ts} +5 -5
- package/dist/models/category-class.d.ts +6 -0
- package/dist/models/create-category-request-dto.d.ts +7 -1
- package/dist/models/create-status-request-dto.d.ts +7 -1
- package/dist/models/create-task-request-dto.d.ts +31 -13
- package/dist/models/create-task-request-dto.js +6 -0
- package/dist/models/index.d.ts +8 -10
- package/dist/models/index.js +8 -10
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/patch-category-request-dto.d.ts +36 -0
- package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
- package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +13 -7
- package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
- package/dist/models/patch-task-request-dto.d.ts +108 -0
- package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
- package/dist/models/status-class.d.ts +6 -0
- package/dist/models/task-class.d.ts +25 -8
- package/dist/models/task-class.js +6 -0
- package/models/{create-priority-request-dto.ts → assignee-class.ts} +5 -5
- package/models/category-class.ts +6 -0
- package/models/create-category-request-dto.ts +7 -1
- package/models/create-status-request-dto.ts +7 -1
- package/models/create-task-request-dto.ts +34 -13
- package/models/index.ts +8 -10
- package/models/list-assignees-response-class.ts +49 -0
- package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +13 -7
- package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
- package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +13 -7
- package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
- package/models/patch-task-request-dto.ts +114 -0
- package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
- package/models/status-class.ts +6 -0
- package/models/task-class.ts +28 -8
- package/package.json +1 -1
- package/api/priorities-api.ts +0 -288
- package/dist/api/priorities-api.d.ts +0 -162
- package/dist/models/create-priority-response-class.d.ts +0 -25
- package/dist/models/get-priority-response-class.d.ts +0 -25
- package/dist/models/priority-class.d.ts +0 -60
- package/dist/models/update-category-request-dto.d.ts +0 -30
- package/dist/models/update-task-request-dto.d.ts +0 -60
- package/dist/models/update-task-request-dto.js +0 -15
- package/dist/models/update-task-response-class.js +0 -15
- package/models/create-priority-response-class.ts +0 -31
- package/models/get-priority-response-class.ts +0 -31
- package/models/priority-class.ts +0 -66
- package/models/update-task-request-dto.ts +0 -66
- /package/dist/models/{create-priority-request-dto.js → assignee-class.js} +0 -0
- /package/dist/models/{create-priority-response-class.js → list-assignees-response-class.js} +0 -0
- /package/dist/models/{get-priority-response-class.js → patch-category-request-dto.js} +0 -0
- /package/dist/models/{priority-class.js → patch-category-response-class.js} +0 -0
- /package/dist/models/{update-category-request-dto.js → patch-status-request-dto.js} +0 -0
- /package/dist/models/{update-category-response-class.js → patch-status-response-class.js} +0 -0
- /package/dist/models/{update-status-request-dto.js → patch-task-request-dto.js} +0 -0
- /package/dist/models/{update-status-response-class.js → patch-task-response-class.js} +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
* Task subject: title of the task
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PatchTaskRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'subject'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Task description: detailed description of the task
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PatchTaskRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'description'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Task assignee: person assigned to the task
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PatchTaskRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'assignee'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Task category slugs (array of category slugs)
|
|
49
|
+
* @type {Array<string>}
|
|
50
|
+
* @memberof PatchTaskRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'categorySlugs': Array<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Task status slug
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PatchTaskRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'statusSlug'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Task priority
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PatchTaskRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'priority'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Task reporter: person who reported the task
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PatchTaskRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'reporter'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Task due date
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PatchTaskRequestDto
|
|
75
|
+
*/
|
|
76
|
+
'dueDate'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Set to true to clear/remove the due date.
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof PatchTaskRequestDto
|
|
81
|
+
*/
|
|
82
|
+
'clearDueDate'?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Set to true to clear/remove the assignee.
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof PatchTaskRequestDto
|
|
87
|
+
*/
|
|
88
|
+
'clearAssignee'?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Set to true to clear/remove the categories.
|
|
91
|
+
* @type {boolean}
|
|
92
|
+
* @memberof PatchTaskRequestDto
|
|
93
|
+
*/
|
|
94
|
+
'clearCategories'?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Set to true to clear/remove the status.
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof PatchTaskRequestDto
|
|
99
|
+
*/
|
|
100
|
+
'clearStatus'?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Set to true to clear/remove the priority.
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof PatchTaskRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'clearPriority'?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Set to true to clear/remove the reporter.
|
|
109
|
+
* @type {boolean}
|
|
110
|
+
* @memberof PatchTaskRequestDto
|
|
111
|
+
*/
|
|
112
|
+
'clearReporter'?: boolean;
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -18,13 +18,13 @@ import { TaskClass } from './task-class';
|
|
|
18
18
|
/**
|
|
19
19
|
*
|
|
20
20
|
* @export
|
|
21
|
-
* @interface
|
|
21
|
+
* @interface PatchTaskResponseClass
|
|
22
22
|
*/
|
|
23
|
-
export interface
|
|
23
|
+
export interface PatchTaskResponseClass {
|
|
24
24
|
/**
|
|
25
25
|
* task
|
|
26
26
|
* @type {TaskClass}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof PatchTaskResponseClass
|
|
28
28
|
*/
|
|
29
29
|
'task'?: TaskClass;
|
|
30
30
|
}
|
package/models/status-class.ts
CHANGED
package/models/task-class.ts
CHANGED
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { CategoryClass } from './category-class';
|
|
17
|
-
import { PriorityClass } from './priority-class';
|
|
18
17
|
import { StatusClass } from './status-class';
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -52,13 +51,13 @@ export interface TaskClass {
|
|
|
52
51
|
* @type {string}
|
|
53
52
|
* @memberof TaskClass
|
|
54
53
|
*/
|
|
55
|
-
'assignee'
|
|
54
|
+
'assignee'?: string;
|
|
56
55
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @type {CategoryClass}
|
|
56
|
+
* categories
|
|
57
|
+
* @type {Array<CategoryClass>}
|
|
59
58
|
* @memberof TaskClass
|
|
60
59
|
*/
|
|
61
|
-
'
|
|
60
|
+
'categories': Array<CategoryClass>;
|
|
62
61
|
/**
|
|
63
62
|
* status
|
|
64
63
|
* @type {StatusClass}
|
|
@@ -66,11 +65,23 @@ export interface TaskClass {
|
|
|
66
65
|
*/
|
|
67
66
|
'status'?: StatusClass;
|
|
68
67
|
/**
|
|
69
|
-
* priority
|
|
70
|
-
* @type {
|
|
68
|
+
* Task priority
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof TaskClass
|
|
71
|
+
*/
|
|
72
|
+
'priority': TaskClassPriorityEnum;
|
|
73
|
+
/**
|
|
74
|
+
* Task reporter: person who reported the task
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof TaskClass
|
|
77
|
+
*/
|
|
78
|
+
'reporter'?: string;
|
|
79
|
+
/**
|
|
80
|
+
* Task due date
|
|
81
|
+
* @type {string}
|
|
71
82
|
* @memberof TaskClass
|
|
72
83
|
*/
|
|
73
|
-
'
|
|
84
|
+
'dueDate'?: string;
|
|
74
85
|
/**
|
|
75
86
|
* createdBy
|
|
76
87
|
* @type {string}
|
|
@@ -103,3 +114,12 @@ export interface TaskClass {
|
|
|
103
114
|
'updatedAt'?: string;
|
|
104
115
|
}
|
|
105
116
|
|
|
117
|
+
export const TaskClassPriorityEnum = {
|
|
118
|
+
Low: 'LOW',
|
|
119
|
+
Medium: 'MEDIUM',
|
|
120
|
+
High: 'HIGH'
|
|
121
|
+
} as const;
|
|
122
|
+
|
|
123
|
+
export type TaskClassPriorityEnum = typeof TaskClassPriorityEnum[keyof typeof TaskClassPriorityEnum];
|
|
124
|
+
|
|
125
|
+
|
package/package.json
CHANGED
package/api/priorities-api.ts
DELETED
|
@@ -1,288 +0,0 @@
|
|
|
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 globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
-
import { Configuration } from '../configuration';
|
|
18
|
-
// Some imports not used depending on template conditions
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CreatePriorityRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePriorityResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPriorityResponseClass } from '../models';
|
|
29
|
-
// URLSearchParams not necessarily used
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
import { URL, URLSearchParams } from 'url';
|
|
32
|
-
const FormData = require('form-data');
|
|
33
|
-
/**
|
|
34
|
-
* PrioritiesApi - axios parameter creator
|
|
35
|
-
* @export
|
|
36
|
-
*/
|
|
37
|
-
export const PrioritiesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
-
return {
|
|
39
|
-
/**
|
|
40
|
-
* This will create priority.
|
|
41
|
-
* @summary Create the priority
|
|
42
|
-
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
43
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
44
|
-
* @param {*} [options] Override http request option.
|
|
45
|
-
* @throws {RequiredError}
|
|
46
|
-
*/
|
|
47
|
-
createPriority: async (createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
-
// verify required parameter 'createPriorityRequestDto' is not null or undefined
|
|
49
|
-
assertParamExists('createPriority', 'createPriorityRequestDto', createPriorityRequestDto)
|
|
50
|
-
const localVarPath = `/taskservice/v1/priorities`;
|
|
51
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
-
let baseOptions;
|
|
54
|
-
let baseAccessToken;
|
|
55
|
-
if (configuration) {
|
|
56
|
-
baseOptions = configuration.baseOptions;
|
|
57
|
-
baseAccessToken = configuration.accessToken;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61
|
-
const localVarHeaderParameter = {} as any;
|
|
62
|
-
const localVarQueryParameter = {} as any;
|
|
63
|
-
|
|
64
|
-
// authentication bearer required
|
|
65
|
-
// http bearer authentication required
|
|
66
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
-
|
|
68
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
|
-
|
|
76
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createPriorityRequestDto, localVarRequestOptions, configuration)
|
|
80
|
-
|
|
81
|
-
return {
|
|
82
|
-
url: toPathString(localVarUrlObj),
|
|
83
|
-
options: localVarRequestOptions,
|
|
84
|
-
};
|
|
85
|
-
},
|
|
86
|
-
/**
|
|
87
|
-
* This will get priority.
|
|
88
|
-
* @summary Retrieve the priority
|
|
89
|
-
* @param {string} code
|
|
90
|
-
* @param {string} expand
|
|
91
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
getPriority: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
96
|
-
// verify required parameter 'code' is not null or undefined
|
|
97
|
-
assertParamExists('getPriority', 'code', code)
|
|
98
|
-
// verify required parameter 'expand' is not null or undefined
|
|
99
|
-
assertParamExists('getPriority', 'expand', expand)
|
|
100
|
-
const localVarPath = `/taskservice/v1/priorities/{code}`
|
|
101
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
102
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
-
let baseOptions;
|
|
105
|
-
let baseAccessToken;
|
|
106
|
-
if (configuration) {
|
|
107
|
-
baseOptions = configuration.baseOptions;
|
|
108
|
-
baseAccessToken = configuration.accessToken;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
112
|
-
const localVarHeaderParameter = {} as any;
|
|
113
|
-
const localVarQueryParameter = {} as any;
|
|
114
|
-
|
|
115
|
-
// authentication bearer required
|
|
116
|
-
// http bearer authentication required
|
|
117
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
118
|
-
|
|
119
|
-
if (expand !== undefined) {
|
|
120
|
-
localVarQueryParameter['expand'] = expand;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
124
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
-
|
|
133
|
-
return {
|
|
134
|
-
url: toPathString(localVarUrlObj),
|
|
135
|
-
options: localVarRequestOptions,
|
|
136
|
-
};
|
|
137
|
-
},
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* PrioritiesApi - functional programming interface
|
|
143
|
-
* @export
|
|
144
|
-
*/
|
|
145
|
-
export const PrioritiesApiFp = function(configuration?: Configuration) {
|
|
146
|
-
const localVarAxiosParamCreator = PrioritiesApiAxiosParamCreator(configuration)
|
|
147
|
-
return {
|
|
148
|
-
/**
|
|
149
|
-
* This will create priority.
|
|
150
|
-
* @summary Create the priority
|
|
151
|
-
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
152
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
async createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePriorityResponseClass>> {
|
|
157
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPriority(createPriorityRequestDto, authorization, options);
|
|
158
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* This will get priority.
|
|
162
|
-
* @summary Retrieve the priority
|
|
163
|
-
* @param {string} code
|
|
164
|
-
* @param {string} expand
|
|
165
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
166
|
-
* @param {*} [options] Override http request option.
|
|
167
|
-
* @throws {RequiredError}
|
|
168
|
-
*/
|
|
169
|
-
async getPriority(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPriorityResponseClass>> {
|
|
170
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPriority(code, expand, authorization, options);
|
|
171
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
172
|
-
},
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* PrioritiesApi - factory interface
|
|
178
|
-
* @export
|
|
179
|
-
*/
|
|
180
|
-
export const PrioritiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
181
|
-
const localVarFp = PrioritiesApiFp(configuration)
|
|
182
|
-
return {
|
|
183
|
-
/**
|
|
184
|
-
* This will create priority.
|
|
185
|
-
* @summary Create the priority
|
|
186
|
-
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
187
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
188
|
-
* @param {*} [options] Override http request option.
|
|
189
|
-
* @throws {RequiredError}
|
|
190
|
-
*/
|
|
191
|
-
createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePriorityResponseClass> {
|
|
192
|
-
return localVarFp.createPriority(createPriorityRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
193
|
-
},
|
|
194
|
-
/**
|
|
195
|
-
* This will get priority.
|
|
196
|
-
* @summary Retrieve the priority
|
|
197
|
-
* @param {string} code
|
|
198
|
-
* @param {string} expand
|
|
199
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
200
|
-
* @param {*} [options] Override http request option.
|
|
201
|
-
* @throws {RequiredError}
|
|
202
|
-
*/
|
|
203
|
-
getPriority(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPriorityResponseClass> {
|
|
204
|
-
return localVarFp.getPriority(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
205
|
-
},
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* Request parameters for createPriority operation in PrioritiesApi.
|
|
211
|
-
* @export
|
|
212
|
-
* @interface PrioritiesApiCreatePriorityRequest
|
|
213
|
-
*/
|
|
214
|
-
export interface PrioritiesApiCreatePriorityRequest {
|
|
215
|
-
/**
|
|
216
|
-
*
|
|
217
|
-
* @type {CreatePriorityRequestDto}
|
|
218
|
-
* @memberof PrioritiesApiCreatePriority
|
|
219
|
-
*/
|
|
220
|
-
readonly createPriorityRequestDto: CreatePriorityRequestDto
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
224
|
-
* @type {string}
|
|
225
|
-
* @memberof PrioritiesApiCreatePriority
|
|
226
|
-
*/
|
|
227
|
-
readonly authorization?: string
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Request parameters for getPriority operation in PrioritiesApi.
|
|
232
|
-
* @export
|
|
233
|
-
* @interface PrioritiesApiGetPriorityRequest
|
|
234
|
-
*/
|
|
235
|
-
export interface PrioritiesApiGetPriorityRequest {
|
|
236
|
-
/**
|
|
237
|
-
*
|
|
238
|
-
* @type {string}
|
|
239
|
-
* @memberof PrioritiesApiGetPriority
|
|
240
|
-
*/
|
|
241
|
-
readonly code: string
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
*
|
|
245
|
-
* @type {string}
|
|
246
|
-
* @memberof PrioritiesApiGetPriority
|
|
247
|
-
*/
|
|
248
|
-
readonly expand: string
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
252
|
-
* @type {string}
|
|
253
|
-
* @memberof PrioritiesApiGetPriority
|
|
254
|
-
*/
|
|
255
|
-
readonly authorization?: string
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* PrioritiesApi - object-oriented interface
|
|
260
|
-
* @export
|
|
261
|
-
* @class PrioritiesApi
|
|
262
|
-
* @extends {BaseAPI}
|
|
263
|
-
*/
|
|
264
|
-
export class PrioritiesApi extends BaseAPI {
|
|
265
|
-
/**
|
|
266
|
-
* This will create priority.
|
|
267
|
-
* @summary Create the priority
|
|
268
|
-
* @param {PrioritiesApiCreatePriorityRequest} requestParameters Request parameters.
|
|
269
|
-
* @param {*} [options] Override http request option.
|
|
270
|
-
* @throws {RequiredError}
|
|
271
|
-
* @memberof PrioritiesApi
|
|
272
|
-
*/
|
|
273
|
-
public createPriority(requestParameters: PrioritiesApiCreatePriorityRequest, options?: AxiosRequestConfig) {
|
|
274
|
-
return PrioritiesApiFp(this.configuration).createPriority(requestParameters.createPriorityRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* This will get priority.
|
|
279
|
-
* @summary Retrieve the priority
|
|
280
|
-
* @param {PrioritiesApiGetPriorityRequest} requestParameters Request parameters.
|
|
281
|
-
* @param {*} [options] Override http request option.
|
|
282
|
-
* @throws {RequiredError}
|
|
283
|
-
* @memberof PrioritiesApi
|
|
284
|
-
*/
|
|
285
|
-
public getPriority(requestParameters: PrioritiesApiGetPriorityRequest, options?: AxiosRequestConfig) {
|
|
286
|
-
return PrioritiesApiFp(this.configuration).getPriority(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
287
|
-
}
|
|
288
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL TaskService
|
|
3
|
-
* The EMIL Task API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
-
import { Configuration } from '../configuration';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreatePriorityRequestDto } from '../models';
|
|
16
|
-
import { CreatePriorityResponseClass } from '../models';
|
|
17
|
-
import { GetPriorityResponseClass } from '../models';
|
|
18
|
-
/**
|
|
19
|
-
* PrioritiesApi - axios parameter creator
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
|
-
export declare const PrioritiesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
-
/**
|
|
24
|
-
* This will create priority.
|
|
25
|
-
* @summary Create the priority
|
|
26
|
-
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
27
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
28
|
-
* @param {*} [options] Override http request option.
|
|
29
|
-
* @throws {RequiredError}
|
|
30
|
-
*/
|
|
31
|
-
createPriority: (createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
-
/**
|
|
33
|
-
* This will get priority.
|
|
34
|
-
* @summary Retrieve the priority
|
|
35
|
-
* @param {string} code
|
|
36
|
-
* @param {string} expand
|
|
37
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
|
-
* @param {*} [options] Override http request option.
|
|
39
|
-
* @throws {RequiredError}
|
|
40
|
-
*/
|
|
41
|
-
getPriority: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* PrioritiesApi - functional programming interface
|
|
45
|
-
* @export
|
|
46
|
-
*/
|
|
47
|
-
export declare const PrioritiesApiFp: (configuration?: Configuration) => {
|
|
48
|
-
/**
|
|
49
|
-
* This will create priority.
|
|
50
|
-
* @summary Create the priority
|
|
51
|
-
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
52
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
|
-
* @param {*} [options] Override http request option.
|
|
54
|
-
* @throws {RequiredError}
|
|
55
|
-
*/
|
|
56
|
-
createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePriorityResponseClass>>;
|
|
57
|
-
/**
|
|
58
|
-
* This will get priority.
|
|
59
|
-
* @summary Retrieve the priority
|
|
60
|
-
* @param {string} code
|
|
61
|
-
* @param {string} expand
|
|
62
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
63
|
-
* @param {*} [options] Override http request option.
|
|
64
|
-
* @throws {RequiredError}
|
|
65
|
-
*/
|
|
66
|
-
getPriority(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPriorityResponseClass>>;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* PrioritiesApi - factory interface
|
|
70
|
-
* @export
|
|
71
|
-
*/
|
|
72
|
-
export declare const PrioritiesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
73
|
-
/**
|
|
74
|
-
* This will create priority.
|
|
75
|
-
* @summary Create the priority
|
|
76
|
-
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
77
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
78
|
-
* @param {*} [options] Override http request option.
|
|
79
|
-
* @throws {RequiredError}
|
|
80
|
-
*/
|
|
81
|
-
createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePriorityResponseClass>;
|
|
82
|
-
/**
|
|
83
|
-
* This will get priority.
|
|
84
|
-
* @summary Retrieve the priority
|
|
85
|
-
* @param {string} code
|
|
86
|
-
* @param {string} expand
|
|
87
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
88
|
-
* @param {*} [options] Override http request option.
|
|
89
|
-
* @throws {RequiredError}
|
|
90
|
-
*/
|
|
91
|
-
getPriority(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPriorityResponseClass>;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Request parameters for createPriority operation in PrioritiesApi.
|
|
95
|
-
* @export
|
|
96
|
-
* @interface PrioritiesApiCreatePriorityRequest
|
|
97
|
-
*/
|
|
98
|
-
export interface PrioritiesApiCreatePriorityRequest {
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @type {CreatePriorityRequestDto}
|
|
102
|
-
* @memberof PrioritiesApiCreatePriority
|
|
103
|
-
*/
|
|
104
|
-
readonly createPriorityRequestDto: CreatePriorityRequestDto;
|
|
105
|
-
/**
|
|
106
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
107
|
-
* @type {string}
|
|
108
|
-
* @memberof PrioritiesApiCreatePriority
|
|
109
|
-
*/
|
|
110
|
-
readonly authorization?: string;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Request parameters for getPriority operation in PrioritiesApi.
|
|
114
|
-
* @export
|
|
115
|
-
* @interface PrioritiesApiGetPriorityRequest
|
|
116
|
-
*/
|
|
117
|
-
export interface PrioritiesApiGetPriorityRequest {
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof PrioritiesApiGetPriority
|
|
122
|
-
*/
|
|
123
|
-
readonly code: string;
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof PrioritiesApiGetPriority
|
|
128
|
-
*/
|
|
129
|
-
readonly expand: string;
|
|
130
|
-
/**
|
|
131
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof PrioritiesApiGetPriority
|
|
134
|
-
*/
|
|
135
|
-
readonly authorization?: string;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* PrioritiesApi - object-oriented interface
|
|
139
|
-
* @export
|
|
140
|
-
* @class PrioritiesApi
|
|
141
|
-
* @extends {BaseAPI}
|
|
142
|
-
*/
|
|
143
|
-
export declare class PrioritiesApi extends BaseAPI {
|
|
144
|
-
/**
|
|
145
|
-
* This will create priority.
|
|
146
|
-
* @summary Create the priority
|
|
147
|
-
* @param {PrioritiesApiCreatePriorityRequest} requestParameters Request parameters.
|
|
148
|
-
* @param {*} [options] Override http request option.
|
|
149
|
-
* @throws {RequiredError}
|
|
150
|
-
* @memberof PrioritiesApi
|
|
151
|
-
*/
|
|
152
|
-
createPriority(requestParameters: PrioritiesApiCreatePriorityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePriorityResponseClass, any, {}>>;
|
|
153
|
-
/**
|
|
154
|
-
* This will get priority.
|
|
155
|
-
* @summary Retrieve the priority
|
|
156
|
-
* @param {PrioritiesApiGetPriorityRequest} requestParameters Request parameters.
|
|
157
|
-
* @param {*} [options] Override http request option.
|
|
158
|
-
* @throws {RequiredError}
|
|
159
|
-
* @memberof PrioritiesApi
|
|
160
|
-
*/
|
|
161
|
-
getPriority(requestParameters: PrioritiesApiGetPriorityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPriorityResponseClass, any, {}>>;
|
|
162
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EMIL TaskService
|
|
3
|
-
* The EMIL Task API description
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
* Contact: kontakt@emil.de
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { PriorityClass } from './priority-class';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface CreatePriorityResponseClass
|
|
17
|
-
*/
|
|
18
|
-
export interface CreatePriorityResponseClass {
|
|
19
|
-
/**
|
|
20
|
-
* priority
|
|
21
|
-
* @type {PriorityClass}
|
|
22
|
-
* @memberof CreatePriorityResponseClass
|
|
23
|
-
*/
|
|
24
|
-
'priority'?: PriorityClass;
|
|
25
|
-
}
|