@emilgroup/task-sdk-node 1.0.1-beta.3 → 1.0.1-beta.34
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 -6
- package/README.md +2 -2
- package/api/assignees-api.ts +166 -0
- package/api/categories-api.ts +111 -85
- package/api/default-api.ts +1 -1
- package/api/hub-spot-api.ts +4 -4
- package/api/statuses-api.ts +71 -73
- package/api/tasks-api.ts +119 -93
- package/api.ts +2 -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 +83 -65
- package/dist/api/categories-api.js +75 -65
- package/dist/api/default-api.js +1 -1
- package/dist/api/hub-spot-api.d.ts +4 -4
- package/dist/api/hub-spot-api.js +4 -4
- package/dist/api/statuses-api.d.ts +60 -60
- package/dist/api/statuses-api.js +54 -56
- package/dist/api/tasks-api.d.ts +91 -73
- package/dist/api/tasks-api.js +81 -71
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/assignee-class.d.ts +24 -0
- package/dist/models/create-status-request-dto.d.ts +6 -0
- package/dist/models/create-task-request-dto.d.ts +4 -4
- package/dist/models/index.d.ts +8 -6
- package/dist/models/index.js +8 -6
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/{update-category-request-dto.d.ts → patch-category-request-dto.d.ts} +7 -7
- 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 +114 -0
- package/dist/models/patch-task-request-dto.js +15 -0
- package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
- package/dist/models/patch-task-response-class.js +15 -0
- package/dist/models/status-class.d.ts +6 -0
- package/dist/models/task-class.d.ts +16 -4
- package/models/assignee-class.ts +30 -0
- package/models/create-status-request-dto.ts +6 -0
- package/models/create-task-request-dto.ts +4 -4
- package/models/index.ts +8 -6
- package/models/list-assignees-response-class.ts +49 -0
- package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +7 -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 +120 -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 +16 -4
- package/package.json +2 -2
- package/dist/models/update-task-request-dto.d.ts +0 -72
- package/models/update-task-request-dto.ts +0 -78
- /package/dist/models/{update-category-request-dto.js → assignee-class.js} +0 -0
- /package/dist/models/{update-category-response-class.js → list-assignees-response-class.js} +0 -0
- /package/dist/models/{update-status-request-dto.js → patch-category-request-dto.js} +0 -0
- /package/dist/models/{update-status-response-class.js → patch-category-response-class.js} +0 -0
- /package/dist/models/{update-task-request-dto.js → patch-status-request-dto.js} +0 -0
- /package/dist/models/{update-task-response-class.js → patch-status-response-class.js} +0 -0
package/dist/api/statuses-api.js
CHANGED
|
@@ -97,7 +97,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create a status.
|
|
100
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
101
101
|
* @summary Create the status
|
|
102
102
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -146,7 +146,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* This will delete status.
|
|
149
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
150
150
|
* @summary Delete the status
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -194,15 +194,15 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Get status by code.
|
|
197
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
198
198
|
* @summary Retrieve the status
|
|
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 status.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
getStatus: function (code,
|
|
205
|
+
getStatus: 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 StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
211
211
|
case 0:
|
|
212
212
|
// verify required parameter 'code' is not null or undefined
|
|
213
213
|
(0, common_1.assertParamExists)('getStatus', 'code', code);
|
|
214
|
-
// verify required parameter 'expand' is not null or undefined
|
|
215
|
-
(0, common_1.assertParamExists)('getStatus', 'expand', expand);
|
|
216
214
|
localVarPath = "/taskservice/v1/statuses/{code}"
|
|
217
215
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
218
216
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -248,12 +246,12 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
248
246
|
});
|
|
249
247
|
},
|
|
250
248
|
/**
|
|
251
|
-
* Retrieves a list of statuses.
|
|
249
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
252
250
|
* @summary List statuses
|
|
253
251
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
255
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
256
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
252
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
253
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
254
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
257
255
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
258
256
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
259
257
|
* @param {*} [options] Override http request option.
|
|
@@ -312,15 +310,15 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
312
310
|
});
|
|
313
311
|
},
|
|
314
312
|
/**
|
|
315
|
-
* This will update status.
|
|
313
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
316
314
|
* @summary Update the status
|
|
317
315
|
* @param {string} code
|
|
318
|
-
* @param {
|
|
316
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
319
317
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
320
318
|
* @param {*} [options] Override http request option.
|
|
321
319
|
* @throws {RequiredError}
|
|
322
320
|
*/
|
|
323
|
-
|
|
321
|
+
patchStatus: function (code, patchStatusRequestDto, authorization, options) {
|
|
324
322
|
if (options === void 0) { options = {}; }
|
|
325
323
|
return __awaiter(_this, void 0, void 0, function () {
|
|
326
324
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -328,9 +326,9 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
328
326
|
switch (_a.label) {
|
|
329
327
|
case 0:
|
|
330
328
|
// verify required parameter 'code' is not null or undefined
|
|
331
|
-
(0, common_1.assertParamExists)('
|
|
332
|
-
// verify required parameter '
|
|
333
|
-
(0, common_1.assertParamExists)('
|
|
329
|
+
(0, common_1.assertParamExists)('patchStatus', 'code', code);
|
|
330
|
+
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto);
|
|
334
332
|
localVarPath = "/taskservice/v1/statuses/{code}"
|
|
335
333
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
334
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -338,7 +336,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
338
336
|
baseOptions = configuration.baseOptions;
|
|
339
337
|
baseAccessToken = configuration.accessToken;
|
|
340
338
|
}
|
|
341
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
339
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
342
340
|
localVarHeaderParameter = {};
|
|
343
341
|
localVarQueryParameter = {};
|
|
344
342
|
// authentication bearer required
|
|
@@ -355,7 +353,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
355
353
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
354
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
355
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
356
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchStatusRequestDto, localVarRequestOptions, configuration);
|
|
359
357
|
return [2 /*return*/, {
|
|
360
358
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
359
|
options: localVarRequestOptions,
|
|
@@ -375,7 +373,7 @@ var StatusesApiFp = function (configuration) {
|
|
|
375
373
|
var localVarAxiosParamCreator = (0, exports.StatusesApiAxiosParamCreator)(configuration);
|
|
376
374
|
return {
|
|
377
375
|
/**
|
|
378
|
-
* This will create a status.
|
|
376
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
379
377
|
* @summary Create the status
|
|
380
378
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
381
379
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -396,7 +394,7 @@ var StatusesApiFp = function (configuration) {
|
|
|
396
394
|
});
|
|
397
395
|
},
|
|
398
396
|
/**
|
|
399
|
-
* This will delete status.
|
|
397
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
400
398
|
* @summary Delete the status
|
|
401
399
|
* @param {string} code Unique identifier for the object.
|
|
402
400
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -417,20 +415,20 @@ var StatusesApiFp = function (configuration) {
|
|
|
417
415
|
});
|
|
418
416
|
},
|
|
419
417
|
/**
|
|
420
|
-
* Get status by code.
|
|
418
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
421
419
|
* @summary Retrieve the status
|
|
422
420
|
* @param {string} code
|
|
423
|
-
* @param {string} expand
|
|
424
421
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
425
423
|
* @param {*} [options] Override http request option.
|
|
426
424
|
* @throws {RequiredError}
|
|
427
425
|
*/
|
|
428
|
-
getStatus: function (code,
|
|
426
|
+
getStatus: function (code, authorization, expand, options) {
|
|
429
427
|
return __awaiter(this, void 0, void 0, function () {
|
|
430
428
|
var localVarAxiosArgs;
|
|
431
429
|
return __generator(this, function (_a) {
|
|
432
430
|
switch (_a.label) {
|
|
433
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStatus(code,
|
|
431
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getStatus(code, authorization, expand, options)];
|
|
434
432
|
case 1:
|
|
435
433
|
localVarAxiosArgs = _a.sent();
|
|
436
434
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -439,12 +437,12 @@ var StatusesApiFp = function (configuration) {
|
|
|
439
437
|
});
|
|
440
438
|
},
|
|
441
439
|
/**
|
|
442
|
-
* Retrieves a list of statuses.
|
|
440
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
443
441
|
* @summary List statuses
|
|
444
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
446
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
447
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
443
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
444
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
445
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
448
446
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
449
447
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
450
448
|
* @param {*} [options] Override http request option.
|
|
@@ -464,20 +462,20 @@ var StatusesApiFp = function (configuration) {
|
|
|
464
462
|
});
|
|
465
463
|
},
|
|
466
464
|
/**
|
|
467
|
-
* This will update status.
|
|
465
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
468
466
|
* @summary Update the status
|
|
469
467
|
* @param {string} code
|
|
470
|
-
* @param {
|
|
468
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
471
469
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
472
470
|
* @param {*} [options] Override http request option.
|
|
473
471
|
* @throws {RequiredError}
|
|
474
472
|
*/
|
|
475
|
-
|
|
473
|
+
patchStatus: function (code, patchStatusRequestDto, authorization, options) {
|
|
476
474
|
return __awaiter(this, void 0, void 0, function () {
|
|
477
475
|
var localVarAxiosArgs;
|
|
478
476
|
return __generator(this, function (_a) {
|
|
479
477
|
switch (_a.label) {
|
|
480
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
478
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options)];
|
|
481
479
|
case 1:
|
|
482
480
|
localVarAxiosArgs = _a.sent();
|
|
483
481
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -496,7 +494,7 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
496
494
|
var localVarFp = (0, exports.StatusesApiFp)(configuration);
|
|
497
495
|
return {
|
|
498
496
|
/**
|
|
499
|
-
* This will create a status.
|
|
497
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
500
498
|
* @summary Create the status
|
|
501
499
|
* @param {CreateStatusRequestDto} createStatusRequestDto
|
|
502
500
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -507,7 +505,7 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
507
505
|
return localVarFp.createStatus(createStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
508
506
|
},
|
|
509
507
|
/**
|
|
510
|
-
* This will delete status.
|
|
508
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
511
509
|
* @summary Delete the status
|
|
512
510
|
* @param {string} code Unique identifier for the object.
|
|
513
511
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -518,24 +516,24 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
518
516
|
return localVarFp.deleteStatus(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
519
517
|
},
|
|
520
518
|
/**
|
|
521
|
-
* Get status by code.
|
|
519
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
522
520
|
* @summary Retrieve the status
|
|
523
521
|
* @param {string} code
|
|
524
|
-
* @param {string} expand
|
|
525
522
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
|
+
* @param {string} [expand] Expand to fetch additional information about the status.
|
|
526
524
|
* @param {*} [options] Override http request option.
|
|
527
525
|
* @throws {RequiredError}
|
|
528
526
|
*/
|
|
529
|
-
getStatus: function (code,
|
|
530
|
-
return localVarFp.getStatus(code,
|
|
527
|
+
getStatus: function (code, authorization, expand, options) {
|
|
528
|
+
return localVarFp.getStatus(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
531
529
|
},
|
|
532
530
|
/**
|
|
533
|
-
* Retrieves a list of statuses.
|
|
531
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
534
532
|
* @summary List statuses
|
|
535
533
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
536
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
537
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
538
|
-
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
534
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
535
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
536
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, name, slug</i>
|
|
539
537
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
540
538
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
541
539
|
* @param {*} [options] Override http request option.
|
|
@@ -545,16 +543,16 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
545
543
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
546
544
|
},
|
|
547
545
|
/**
|
|
548
|
-
* This will update status.
|
|
546
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
549
547
|
* @summary Update the status
|
|
550
548
|
* @param {string} code
|
|
551
|
-
* @param {
|
|
549
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
552
550
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
553
551
|
* @param {*} [options] Override http request option.
|
|
554
552
|
* @throws {RequiredError}
|
|
555
553
|
*/
|
|
556
|
-
|
|
557
|
-
return localVarFp.
|
|
554
|
+
patchStatus: function (code, patchStatusRequestDto, authorization, options) {
|
|
555
|
+
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
556
|
},
|
|
559
557
|
};
|
|
560
558
|
};
|
|
@@ -571,7 +569,7 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
571
569
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
572
570
|
}
|
|
573
571
|
/**
|
|
574
|
-
* This will create a status.
|
|
572
|
+
* This will create a status. **Required Permissions** \"task-management.tasks.create\"
|
|
575
573
|
* @summary Create the status
|
|
576
574
|
* @param {StatusesApiCreateStatusRequest} requestParameters Request parameters.
|
|
577
575
|
* @param {*} [options] Override http request option.
|
|
@@ -583,7 +581,7 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
583
581
|
return (0, exports.StatusesApiFp)(this.configuration).createStatus(requestParameters.createStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
584
582
|
};
|
|
585
583
|
/**
|
|
586
|
-
* This will delete status.
|
|
584
|
+
* This will delete status. **Required Permissions** \"task-management.tasks.delete\"
|
|
587
585
|
* @summary Delete the status
|
|
588
586
|
* @param {StatusesApiDeleteStatusRequest} requestParameters Request parameters.
|
|
589
587
|
* @param {*} [options] Override http request option.
|
|
@@ -595,7 +593,7 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
595
593
|
return (0, exports.StatusesApiFp)(this.configuration).deleteStatus(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
596
594
|
};
|
|
597
595
|
/**
|
|
598
|
-
* Get status by code.
|
|
596
|
+
* Get status by code. **Required Permissions** \"task-management.tasks.view\"
|
|
599
597
|
* @summary Retrieve the status
|
|
600
598
|
* @param {StatusesApiGetStatusRequest} requestParameters Request parameters.
|
|
601
599
|
* @param {*} [options] Override http request option.
|
|
@@ -604,10 +602,10 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
604
602
|
*/
|
|
605
603
|
StatusesApi.prototype.getStatus = function (requestParameters, options) {
|
|
606
604
|
var _this = this;
|
|
607
|
-
return (0, exports.StatusesApiFp)(this.configuration).getStatus(requestParameters.code, requestParameters.
|
|
605
|
+
return (0, exports.StatusesApiFp)(this.configuration).getStatus(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
606
|
};
|
|
609
607
|
/**
|
|
610
|
-
* Retrieves a list of statuses.
|
|
608
|
+
* Retrieves a list of statuses. **Required Permissions** \"task-management.tasks.view\"
|
|
611
609
|
* @summary List statuses
|
|
612
610
|
* @param {StatusesApiListStatusesRequest} requestParameters Request parameters.
|
|
613
611
|
* @param {*} [options] Override http request option.
|
|
@@ -620,16 +618,16 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
620
618
|
return (0, exports.StatusesApiFp)(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
619
|
};
|
|
622
620
|
/**
|
|
623
|
-
* This will update status.
|
|
621
|
+
* This will partially update a status by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
624
622
|
* @summary Update the status
|
|
625
|
-
* @param {
|
|
623
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
626
624
|
* @param {*} [options] Override http request option.
|
|
627
625
|
* @throws {RequiredError}
|
|
628
626
|
* @memberof StatusesApi
|
|
629
627
|
*/
|
|
630
|
-
StatusesApi.prototype.
|
|
628
|
+
StatusesApi.prototype.patchStatus = function (requestParameters, options) {
|
|
631
629
|
var _this = this;
|
|
632
|
-
return (0, exports.StatusesApiFp)(this.configuration).
|
|
630
|
+
return (0, exports.StatusesApiFp)(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
631
|
};
|
|
634
632
|
return StatusesApi;
|
|
635
633
|
}(base_1.BaseAPI));
|