@emilgroup/task-sdk-node 1.0.1-beta.11 → 1.0.1-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 +2 -2
- package/api/categories-api.ts +62 -36
- package/api/default-api.ts +1 -1
- package/api/statuses-api.ts +17 -19
- package/api/tasks-api.ts +13 -15
- package/dist/api/categories-api.d.ts +42 -24
- package/dist/api/categories-api.js +36 -26
- package/dist/api/default-api.js +1 -1
- package/dist/api/statuses-api.d.ts +14 -14
- package/dist/api/statuses-api.js +12 -14
- package/dist/api/tasks-api.d.ts +10 -10
- package/dist/api/tasks-api.js +9 -11
- package/dist/models/create-task-request-dto.d.ts +2 -2
- package/dist/models/patch-task-request-dto.d.ts +6 -0
- package/models/create-task-request-dto.ts +2 -2
- package/models/patch-task-request-dto.ts +6 -0
- package/package.json +1 -1
package/dist/api/tasks-api.d.ts
CHANGED
|
@@ -45,12 +45,12 @@ export declare const TasksApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
45
45
|
* This will get a task by code.
|
|
46
46
|
* @summary Retrieve the task
|
|
47
47
|
* @param {string} code
|
|
48
|
-
* @param {string} expand
|
|
49
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
49
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
getTask: (code: string,
|
|
53
|
+
getTask: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
55
|
* Retrieves a list of tasks.
|
|
56
56
|
* @summary List tasks
|
|
@@ -104,12 +104,12 @@ export declare const TasksApiFp: (configuration?: Configuration) => {
|
|
|
104
104
|
* This will get a task by code.
|
|
105
105
|
* @summary Retrieve the task
|
|
106
106
|
* @param {string} code
|
|
107
|
-
* @param {string} expand
|
|
108
107
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
108
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
*/
|
|
112
|
-
getTask(code: string,
|
|
112
|
+
getTask(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTaskResponseClass>>;
|
|
113
113
|
/**
|
|
114
114
|
* Retrieves a list of tasks.
|
|
115
115
|
* @summary List tasks
|
|
@@ -163,12 +163,12 @@ export declare const TasksApiFactory: (configuration?: Configuration, basePath?:
|
|
|
163
163
|
* This will get a task by code.
|
|
164
164
|
* @summary Retrieve the task
|
|
165
165
|
* @param {string} code
|
|
166
|
-
* @param {string} expand
|
|
167
166
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
167
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
168
168
|
* @param {*} [options] Override http request option.
|
|
169
169
|
* @throws {RequiredError}
|
|
170
170
|
*/
|
|
171
|
-
getTask(code: string,
|
|
171
|
+
getTask(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetTaskResponseClass>;
|
|
172
172
|
/**
|
|
173
173
|
* Retrieves a list of tasks.
|
|
174
174
|
* @summary List tasks
|
|
@@ -246,17 +246,17 @@ export interface TasksApiGetTaskRequest {
|
|
|
246
246
|
*/
|
|
247
247
|
readonly code: string;
|
|
248
248
|
/**
|
|
249
|
-
*
|
|
249
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
250
|
* @type {string}
|
|
251
251
|
* @memberof TasksApiGetTask
|
|
252
252
|
*/
|
|
253
|
-
readonly
|
|
253
|
+
readonly authorization?: string;
|
|
254
254
|
/**
|
|
255
|
-
*
|
|
255
|
+
* Expand to fetch additional information about the task.
|
|
256
256
|
* @type {string}
|
|
257
257
|
* @memberof TasksApiGetTask
|
|
258
258
|
*/
|
|
259
|
-
readonly
|
|
259
|
+
readonly expand?: string;
|
|
260
260
|
}
|
|
261
261
|
/**
|
|
262
262
|
* Request parameters for listTasks operation in TasksApi.
|
package/dist/api/tasks-api.js
CHANGED
|
@@ -197,12 +197,12 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
197
197
|
* This will get a task by code.
|
|
198
198
|
* @summary Retrieve the task
|
|
199
199
|
* @param {string} code
|
|
200
|
-
* @param {string} expand
|
|
201
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
getTask: function (code,
|
|
205
|
+
getTask: function (code, authorization, expand, options) {
|
|
206
206
|
if (options === void 0) { options = {}; }
|
|
207
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -211,8 +211,6 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
211
211
|
case 0:
|
|
212
212
|
// verify required parameter 'code' is not null or undefined
|
|
213
213
|
(0, common_1.assertParamExists)('getTask', 'code', code);
|
|
214
|
-
// verify required parameter 'expand' is not null or undefined
|
|
215
|
-
(0, common_1.assertParamExists)('getTask', 'expand', expand);
|
|
216
214
|
localVarPath = "/taskservice/v1/tasks/{code}"
|
|
217
215
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
218
216
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -428,17 +426,17 @@ var TasksApiFp = function (configuration) {
|
|
|
428
426
|
* This will get a task by code.
|
|
429
427
|
* @summary Retrieve the task
|
|
430
428
|
* @param {string} code
|
|
431
|
-
* @param {string} expand
|
|
432
429
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
430
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
433
431
|
* @param {*} [options] Override http request option.
|
|
434
432
|
* @throws {RequiredError}
|
|
435
433
|
*/
|
|
436
|
-
getTask: function (code,
|
|
434
|
+
getTask: function (code, authorization, expand, options) {
|
|
437
435
|
return __awaiter(this, void 0, void 0, function () {
|
|
438
436
|
var localVarAxiosArgs;
|
|
439
437
|
return __generator(this, function (_a) {
|
|
440
438
|
switch (_a.label) {
|
|
441
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code,
|
|
439
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code, authorization, expand, options)];
|
|
442
440
|
case 1:
|
|
443
441
|
localVarAxiosArgs = _a.sent();
|
|
444
442
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -531,13 +529,13 @@ var TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
531
529
|
* This will get a task by code.
|
|
532
530
|
* @summary Retrieve the task
|
|
533
531
|
* @param {string} code
|
|
534
|
-
* @param {string} expand
|
|
535
532
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
533
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
536
534
|
* @param {*} [options] Override http request option.
|
|
537
535
|
* @throws {RequiredError}
|
|
538
536
|
*/
|
|
539
|
-
getTask: function (code,
|
|
540
|
-
return localVarFp.getTask(code,
|
|
537
|
+
getTask: function (code, authorization, expand, options) {
|
|
538
|
+
return localVarFp.getTask(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
541
539
|
},
|
|
542
540
|
/**
|
|
543
541
|
* Retrieves a list of tasks.
|
|
@@ -616,7 +614,7 @@ var TasksApi = /** @class */ (function (_super) {
|
|
|
616
614
|
*/
|
|
617
615
|
TasksApi.prototype.getTask = function (requestParameters, options) {
|
|
618
616
|
var _this = this;
|
|
619
|
-
return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.
|
|
617
|
+
return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
620
618
|
};
|
|
621
619
|
/**
|
|
622
620
|
* Retrieves a list of tasks.
|
|
@@ -38,13 +38,13 @@ export interface CreateTaskRequestDto {
|
|
|
38
38
|
* @type {Array<string>}
|
|
39
39
|
* @memberof CreateTaskRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'categorySlugs'
|
|
41
|
+
'categorySlugs'?: Array<string>;
|
|
42
42
|
/**
|
|
43
43
|
* Task status slug
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateTaskRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'statusSlug'
|
|
47
|
+
'statusSlug': string;
|
|
48
48
|
/**
|
|
49
49
|
* Task priority
|
|
50
50
|
* @type {string}
|
|
@@ -21,6 +21,12 @@ export interface PatchTaskRequestDto {
|
|
|
21
21
|
* @memberof PatchTaskRequestDto
|
|
22
22
|
*/
|
|
23
23
|
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* Entity version for optimistic locking. If provided, update fails if version does not match current version.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof PatchTaskRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'version'?: number;
|
|
24
30
|
/**
|
|
25
31
|
* Task subject: title of the task
|
|
26
32
|
* @type {string}
|
|
@@ -43,13 +43,13 @@ export interface CreateTaskRequestDto {
|
|
|
43
43
|
* @type {Array<string>}
|
|
44
44
|
* @memberof CreateTaskRequestDto
|
|
45
45
|
*/
|
|
46
|
-
'categorySlugs'
|
|
46
|
+
'categorySlugs'?: Array<string>;
|
|
47
47
|
/**
|
|
48
48
|
* Task status slug
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof CreateTaskRequestDto
|
|
51
51
|
*/
|
|
52
|
-
'statusSlug'
|
|
52
|
+
'statusSlug': string;
|
|
53
53
|
/**
|
|
54
54
|
* Task priority
|
|
55
55
|
* @type {string}
|
|
@@ -26,6 +26,12 @@ export interface PatchTaskRequestDto {
|
|
|
26
26
|
* @memberof PatchTaskRequestDto
|
|
27
27
|
*/
|
|
28
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;
|
|
29
35
|
/**
|
|
30
36
|
* Task subject: title of the task
|
|
31
37
|
* @type {string}
|