@emilgroup/task-sdk 1.0.1-beta.12 → 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/models/create-task-request-dto.ts +2 -2
- 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
|
@@ -193,12 +193,12 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
* This will get a task by code.
|
|
194
194
|
* @summary Retrieve the task
|
|
195
195
|
* @param {string} code
|
|
196
|
-
* @param {string} expand
|
|
197
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
198
198
|
* @param {*} [options] Override http request option.
|
|
199
199
|
* @throws {RequiredError}
|
|
200
200
|
*/
|
|
201
|
-
getTask: function (code,
|
|
201
|
+
getTask: function (code, authorization, expand, options) {
|
|
202
202
|
if (options === void 0) { options = {}; }
|
|
203
203
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
204
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -207,8 +207,6 @@ var TasksApiAxiosParamCreator = function (configuration) {
|
|
|
207
207
|
case 0:
|
|
208
208
|
// verify required parameter 'code' is not null or undefined
|
|
209
209
|
(0, common_1.assertParamExists)('getTask', 'code', code);
|
|
210
|
-
// verify required parameter 'expand' is not null or undefined
|
|
211
|
-
(0, common_1.assertParamExists)('getTask', 'expand', expand);
|
|
212
210
|
localVarPath = "/taskservice/v1/tasks/{code}"
|
|
213
211
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
214
212
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -424,17 +422,17 @@ var TasksApiFp = function (configuration) {
|
|
|
424
422
|
* This will get a task by code.
|
|
425
423
|
* @summary Retrieve the task
|
|
426
424
|
* @param {string} code
|
|
427
|
-
* @param {string} expand
|
|
428
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
426
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
429
427
|
* @param {*} [options] Override http request option.
|
|
430
428
|
* @throws {RequiredError}
|
|
431
429
|
*/
|
|
432
|
-
getTask: function (code,
|
|
430
|
+
getTask: function (code, authorization, expand, options) {
|
|
433
431
|
return __awaiter(this, void 0, void 0, function () {
|
|
434
432
|
var localVarAxiosArgs;
|
|
435
433
|
return __generator(this, function (_a) {
|
|
436
434
|
switch (_a.label) {
|
|
437
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code,
|
|
435
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getTask(code, authorization, expand, options)];
|
|
438
436
|
case 1:
|
|
439
437
|
localVarAxiosArgs = _a.sent();
|
|
440
438
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -527,13 +525,13 @@ var TasksApiFactory = function (configuration, basePath, axios) {
|
|
|
527
525
|
* This will get a task by code.
|
|
528
526
|
* @summary Retrieve the task
|
|
529
527
|
* @param {string} code
|
|
530
|
-
* @param {string} expand
|
|
531
528
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
529
|
+
* @param {string} [expand] Expand to fetch additional information about the task.
|
|
532
530
|
* @param {*} [options] Override http request option.
|
|
533
531
|
* @throws {RequiredError}
|
|
534
532
|
*/
|
|
535
|
-
getTask: function (code,
|
|
536
|
-
return localVarFp.getTask(code,
|
|
533
|
+
getTask: function (code, authorization, expand, options) {
|
|
534
|
+
return localVarFp.getTask(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
537
535
|
},
|
|
538
536
|
/**
|
|
539
537
|
* Retrieves a list of tasks.
|
|
@@ -612,7 +610,7 @@ var TasksApi = /** @class */ (function (_super) {
|
|
|
612
610
|
*/
|
|
613
611
|
TasksApi.prototype.getTask = function (requestParameters, options) {
|
|
614
612
|
var _this = this;
|
|
615
|
-
return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.
|
|
613
|
+
return (0, exports.TasksApiFp)(this.configuration).getTask(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
616
614
|
};
|
|
617
615
|
/**
|
|
618
616
|
* 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}
|
|
@@ -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}
|