@emilgroup/task-sdk-node 1.0.1-beta.4 → 1.0.1-beta.6
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 +6 -6
- package/README.md +2 -2
- package/api/categories-api.ts +36 -50
- package/api/statuses-api.ts +36 -50
- package/api/tasks-api.ts +79 -51
- package/dist/api/categories-api.d.ts +25 -34
- package/dist/api/categories-api.js +26 -32
- package/dist/api/statuses-api.d.ts +25 -34
- package/dist/api/statuses-api.js +26 -32
- package/dist/api/tasks-api.d.ts +54 -36
- package/dist/api/tasks-api.js +47 -35
- package/dist/models/index.d.ts +6 -6
- package/dist/models/index.js +6 -6
- 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} +7 -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/models/index.ts +6 -6
- 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} +7 -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/package.json +1 -1
- 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 → patch-category-request-dto.js} +0 -0
- /package/dist/models/{update-category-response-class.js → patch-category-response-class.js} +0 -0
- /package/dist/models/{update-status-request-dto.js → patch-status-request-dto.js} +0 -0
- /package/dist/models/{update-status-response-class.js → patch-status-response-class.js} +0 -0
- /package/dist/models/{update-task-request-dto.js → patch-task-request-dto.js} +0 -0
- /package/dist/models/{update-task-response-class.js → patch-task-response-class.js} +0 -0
|
@@ -253,13 +253,12 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
253
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
254
|
* @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>
|
|
255
255
|
* @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>
|
|
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: id, code, name, slug</i>
|
|
257
256
|
* @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
257
|
* @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
258
|
* @param {*} [options] Override http request option.
|
|
260
259
|
* @throws {RequiredError}
|
|
261
260
|
*/
|
|
262
|
-
listCategories: function (authorization, filter, filters,
|
|
261
|
+
listCategories: function (authorization, filter, filters, order, expand, options) {
|
|
263
262
|
if (options === void 0) { options = {}; }
|
|
264
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
265
264
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -288,9 +287,6 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
288
287
|
if (filters !== undefined) {
|
|
289
288
|
localVarQueryParameter['filters'] = filters;
|
|
290
289
|
}
|
|
291
|
-
if (search !== undefined) {
|
|
292
|
-
localVarQueryParameter['search'] = search;
|
|
293
|
-
}
|
|
294
290
|
if (order !== undefined) {
|
|
295
291
|
localVarQueryParameter['order'] = order;
|
|
296
292
|
}
|
|
@@ -312,15 +308,15 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
312
308
|
});
|
|
313
309
|
},
|
|
314
310
|
/**
|
|
315
|
-
* This will update category.
|
|
311
|
+
* This will partially update a category by code with the provided fields.
|
|
316
312
|
* @summary Update the category
|
|
317
313
|
* @param {string} code
|
|
318
|
-
* @param {
|
|
314
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
319
315
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
320
316
|
* @param {*} [options] Override http request option.
|
|
321
317
|
* @throws {RequiredError}
|
|
322
318
|
*/
|
|
323
|
-
|
|
319
|
+
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
324
320
|
if (options === void 0) { options = {}; }
|
|
325
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
326
322
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -328,9 +324,9 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
328
324
|
switch (_a.label) {
|
|
329
325
|
case 0:
|
|
330
326
|
// verify required parameter 'code' is not null or undefined
|
|
331
|
-
(0, common_1.assertParamExists)('
|
|
332
|
-
// verify required parameter '
|
|
333
|
-
(0, common_1.assertParamExists)('
|
|
327
|
+
(0, common_1.assertParamExists)('patchCategory', 'code', code);
|
|
328
|
+
// verify required parameter 'patchCategoryRequestDto' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('patchCategory', 'patchCategoryRequestDto', patchCategoryRequestDto);
|
|
334
330
|
localVarPath = "/taskservice/v1/categories/{code}"
|
|
335
331
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
332
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -338,7 +334,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
338
334
|
baseOptions = configuration.baseOptions;
|
|
339
335
|
baseAccessToken = configuration.accessToken;
|
|
340
336
|
}
|
|
341
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
337
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
342
338
|
localVarHeaderParameter = {};
|
|
343
339
|
localVarQueryParameter = {};
|
|
344
340
|
// authentication bearer required
|
|
@@ -355,7 +351,7 @@ var CategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
355
351
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
352
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
353
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
354
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchCategoryRequestDto, localVarRequestOptions, configuration);
|
|
359
355
|
return [2 /*return*/, {
|
|
360
356
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
357
|
options: localVarRequestOptions,
|
|
@@ -444,18 +440,17 @@ var CategoriesApiFp = function (configuration) {
|
|
|
444
440
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
441
|
* @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>
|
|
446
442
|
* @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>
|
|
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: id, code, name, slug</i>
|
|
448
443
|
* @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
444
|
* @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
445
|
* @param {*} [options] Override http request option.
|
|
451
446
|
* @throws {RequiredError}
|
|
452
447
|
*/
|
|
453
|
-
listCategories: function (authorization, filter, filters,
|
|
448
|
+
listCategories: function (authorization, filter, filters, order, expand, options) {
|
|
454
449
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
450
|
var localVarAxiosArgs;
|
|
456
451
|
return __generator(this, function (_a) {
|
|
457
452
|
switch (_a.label) {
|
|
458
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCategories(authorization, filter, filters,
|
|
453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCategories(authorization, filter, filters, order, expand, options)];
|
|
459
454
|
case 1:
|
|
460
455
|
localVarAxiosArgs = _a.sent();
|
|
461
456
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -464,20 +459,20 @@ var CategoriesApiFp = function (configuration) {
|
|
|
464
459
|
});
|
|
465
460
|
},
|
|
466
461
|
/**
|
|
467
|
-
* This will update category.
|
|
462
|
+
* This will partially update a category by code with the provided fields.
|
|
468
463
|
* @summary Update the category
|
|
469
464
|
* @param {string} code
|
|
470
|
-
* @param {
|
|
465
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
471
466
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
472
467
|
* @param {*} [options] Override http request option.
|
|
473
468
|
* @throws {RequiredError}
|
|
474
469
|
*/
|
|
475
|
-
|
|
470
|
+
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
476
471
|
return __awaiter(this, void 0, void 0, function () {
|
|
477
472
|
var localVarAxiosArgs;
|
|
478
473
|
return __generator(this, function (_a) {
|
|
479
474
|
switch (_a.label) {
|
|
480
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
475
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCategory(code, patchCategoryRequestDto, authorization, options)];
|
|
481
476
|
case 1:
|
|
482
477
|
localVarAxiosArgs = _a.sent();
|
|
483
478
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -535,26 +530,25 @@ var CategoriesApiFactory = function (configuration, basePath, axios) {
|
|
|
535
530
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
536
531
|
* @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>
|
|
537
532
|
* @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>
|
|
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: id, code, name, slug</i>
|
|
539
533
|
* @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
534
|
* @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
535
|
* @param {*} [options] Override http request option.
|
|
542
536
|
* @throws {RequiredError}
|
|
543
537
|
*/
|
|
544
|
-
listCategories: function (authorization, filter, filters,
|
|
545
|
-
return localVarFp.listCategories(authorization, filter, filters,
|
|
538
|
+
listCategories: function (authorization, filter, filters, order, expand, options) {
|
|
539
|
+
return localVarFp.listCategories(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
546
540
|
},
|
|
547
541
|
/**
|
|
548
|
-
* This will update category.
|
|
542
|
+
* This will partially update a category by code with the provided fields.
|
|
549
543
|
* @summary Update the category
|
|
550
544
|
* @param {string} code
|
|
551
|
-
* @param {
|
|
545
|
+
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
552
546
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
553
547
|
* @param {*} [options] Override http request option.
|
|
554
548
|
* @throws {RequiredError}
|
|
555
549
|
*/
|
|
556
|
-
|
|
557
|
-
return localVarFp.
|
|
550
|
+
patchCategory: function (code, patchCategoryRequestDto, authorization, options) {
|
|
551
|
+
return localVarFp.patchCategory(code, patchCategoryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
552
|
},
|
|
559
553
|
};
|
|
560
554
|
};
|
|
@@ -617,19 +611,19 @@ var CategoriesApi = /** @class */ (function (_super) {
|
|
|
617
611
|
CategoriesApi.prototype.listCategories = function (requestParameters, options) {
|
|
618
612
|
var _this = this;
|
|
619
613
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
620
|
-
return (0, exports.CategoriesApiFp)(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
614
|
+
return (0, exports.CategoriesApiFp)(this.configuration).listCategories(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
615
|
};
|
|
622
616
|
/**
|
|
623
|
-
* This will update category.
|
|
617
|
+
* This will partially update a category by code with the provided fields.
|
|
624
618
|
* @summary Update the category
|
|
625
|
-
* @param {
|
|
619
|
+
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
626
620
|
* @param {*} [options] Override http request option.
|
|
627
621
|
* @throws {RequiredError}
|
|
628
622
|
* @memberof CategoriesApi
|
|
629
623
|
*/
|
|
630
|
-
CategoriesApi.prototype.
|
|
624
|
+
CategoriesApi.prototype.patchCategory = function (requestParameters, options) {
|
|
631
625
|
var _this = this;
|
|
632
|
-
return (0, exports.CategoriesApiFp)(this.configuration).
|
|
626
|
+
return (0, exports.CategoriesApiFp)(this.configuration).patchCategory(requestParameters.code, requestParameters.patchCategoryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
627
|
};
|
|
634
628
|
return CategoriesApi;
|
|
635
629
|
}(base_1.BaseAPI));
|
|
@@ -16,8 +16,8 @@ import { CreateStatusRequestDto } from '../models';
|
|
|
16
16
|
import { CreateStatusResponseClass } from '../models';
|
|
17
17
|
import { GetStatusResponseClass } from '../models';
|
|
18
18
|
import { ListStatusesResponseClass } from '../models';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { PatchStatusRequestDto } from '../models';
|
|
20
|
+
import { PatchStatusResponseClass } from '../models';
|
|
21
21
|
/**
|
|
22
22
|
* StatusesApi - axios parameter creator
|
|
23
23
|
* @export
|
|
@@ -57,23 +57,22 @@ export declare const StatusesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
58
|
* @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>
|
|
59
59
|
* @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>
|
|
60
|
-
* @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: id, code, name, slug</i>
|
|
61
60
|
* @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>
|
|
62
61
|
* @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/>
|
|
63
62
|
* @param {*} [options] Override http request option.
|
|
64
63
|
* @throws {RequiredError}
|
|
65
64
|
*/
|
|
66
|
-
listStatuses: (authorization?: string, filter?: string, filters?: string,
|
|
65
|
+
listStatuses: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
66
|
/**
|
|
68
|
-
* This will update status.
|
|
67
|
+
* This will partially update a status by code with the provided fields.
|
|
69
68
|
* @summary Update the status
|
|
70
69
|
* @param {string} code
|
|
71
|
-
* @param {
|
|
70
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
72
71
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
73
72
|
* @param {*} [options] Override http request option.
|
|
74
73
|
* @throws {RequiredError}
|
|
75
74
|
*/
|
|
76
|
-
|
|
75
|
+
patchStatus: (code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
77
76
|
};
|
|
78
77
|
/**
|
|
79
78
|
* StatusesApi - functional programming interface
|
|
@@ -114,23 +113,22 @@ export declare const StatusesApiFp: (configuration?: Configuration) => {
|
|
|
114
113
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
114
|
* @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>
|
|
116
115
|
* @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>
|
|
117
|
-
* @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: id, code, name, slug</i>
|
|
118
116
|
* @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>
|
|
119
117
|
* @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/>
|
|
120
118
|
* @param {*} [options] Override http request option.
|
|
121
119
|
* @throws {RequiredError}
|
|
122
120
|
*/
|
|
123
|
-
listStatuses(authorization?: string, filter?: string, filters?: string,
|
|
121
|
+
listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListStatusesResponseClass>>;
|
|
124
122
|
/**
|
|
125
|
-
* This will update status.
|
|
123
|
+
* This will partially update a status by code with the provided fields.
|
|
126
124
|
* @summary Update the status
|
|
127
125
|
* @param {string} code
|
|
128
|
-
* @param {
|
|
126
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
129
127
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
130
128
|
* @param {*} [options] Override http request option.
|
|
131
129
|
* @throws {RequiredError}
|
|
132
130
|
*/
|
|
133
|
-
|
|
131
|
+
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchStatusResponseClass>>;
|
|
134
132
|
};
|
|
135
133
|
/**
|
|
136
134
|
* StatusesApi - factory interface
|
|
@@ -171,23 +169,22 @@ export declare const StatusesApiFactory: (configuration?: Configuration, basePat
|
|
|
171
169
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
172
170
|
* @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>
|
|
173
171
|
* @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>
|
|
174
|
-
* @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: id, code, name, slug</i>
|
|
175
172
|
* @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>
|
|
176
173
|
* @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/>
|
|
177
174
|
* @param {*} [options] Override http request option.
|
|
178
175
|
* @throws {RequiredError}
|
|
179
176
|
*/
|
|
180
|
-
listStatuses(authorization?: string, filter?: string, filters?: string,
|
|
177
|
+
listStatuses(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListStatusesResponseClass>;
|
|
181
178
|
/**
|
|
182
|
-
* This will update status.
|
|
179
|
+
* This will partially update a status by code with the provided fields.
|
|
183
180
|
* @summary Update the status
|
|
184
181
|
* @param {string} code
|
|
185
|
-
* @param {
|
|
182
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
186
183
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
184
|
* @param {*} [options] Override http request option.
|
|
188
185
|
* @throws {RequiredError}
|
|
189
186
|
*/
|
|
190
|
-
|
|
187
|
+
patchStatus(code: string, patchStatusRequestDto: PatchStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchStatusResponseClass>;
|
|
191
188
|
};
|
|
192
189
|
/**
|
|
193
190
|
* Request parameters for createStatus operation in StatusesApi.
|
|
@@ -276,12 +273,6 @@ export interface StatusesApiListStatusesRequest {
|
|
|
276
273
|
* @memberof StatusesApiListStatuses
|
|
277
274
|
*/
|
|
278
275
|
readonly filters?: string;
|
|
279
|
-
/**
|
|
280
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: id, code, name, slug</i>
|
|
281
|
-
* @type {string}
|
|
282
|
-
* @memberof StatusesApiListStatuses
|
|
283
|
-
*/
|
|
284
|
-
readonly search?: string;
|
|
285
276
|
/**
|
|
286
277
|
* 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>
|
|
287
278
|
* @type {string}
|
|
@@ -296,27 +287,27 @@ export interface StatusesApiListStatusesRequest {
|
|
|
296
287
|
readonly expand?: string;
|
|
297
288
|
}
|
|
298
289
|
/**
|
|
299
|
-
* Request parameters for
|
|
290
|
+
* Request parameters for patchStatus operation in StatusesApi.
|
|
300
291
|
* @export
|
|
301
|
-
* @interface
|
|
292
|
+
* @interface StatusesApiPatchStatusRequest
|
|
302
293
|
*/
|
|
303
|
-
export interface
|
|
294
|
+
export interface StatusesApiPatchStatusRequest {
|
|
304
295
|
/**
|
|
305
296
|
*
|
|
306
297
|
* @type {string}
|
|
307
|
-
* @memberof
|
|
298
|
+
* @memberof StatusesApiPatchStatus
|
|
308
299
|
*/
|
|
309
300
|
readonly code: string;
|
|
310
301
|
/**
|
|
311
302
|
*
|
|
312
|
-
* @type {
|
|
313
|
-
* @memberof
|
|
303
|
+
* @type {PatchStatusRequestDto}
|
|
304
|
+
* @memberof StatusesApiPatchStatus
|
|
314
305
|
*/
|
|
315
|
-
readonly
|
|
306
|
+
readonly patchStatusRequestDto: PatchStatusRequestDto;
|
|
316
307
|
/**
|
|
317
308
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
318
309
|
* @type {string}
|
|
319
|
-
* @memberof
|
|
310
|
+
* @memberof StatusesApiPatchStatus
|
|
320
311
|
*/
|
|
321
312
|
readonly authorization?: string;
|
|
322
313
|
}
|
|
@@ -364,12 +355,12 @@ export declare class StatusesApi extends BaseAPI {
|
|
|
364
355
|
*/
|
|
365
356
|
listStatuses(requestParameters?: StatusesApiListStatusesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListStatusesResponseClass, any, {}>>;
|
|
366
357
|
/**
|
|
367
|
-
* This will update status.
|
|
358
|
+
* This will partially update a status by code with the provided fields.
|
|
368
359
|
* @summary Update the status
|
|
369
|
-
* @param {
|
|
360
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
370
361
|
* @param {*} [options] Override http request option.
|
|
371
362
|
* @throws {RequiredError}
|
|
372
363
|
* @memberof StatusesApi
|
|
373
364
|
*/
|
|
374
|
-
|
|
365
|
+
patchStatus(requestParameters: StatusesApiPatchStatusRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchStatusResponseClass, any, {}>>;
|
|
375
366
|
}
|
package/dist/api/statuses-api.js
CHANGED
|
@@ -253,13 +253,12 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
253
253
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
254
|
* @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>
|
|
255
255
|
* @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>
|
|
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: id, code, name, slug</i>
|
|
257
256
|
* @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
257
|
* @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
258
|
* @param {*} [options] Override http request option.
|
|
260
259
|
* @throws {RequiredError}
|
|
261
260
|
*/
|
|
262
|
-
listStatuses: function (authorization, filter, filters,
|
|
261
|
+
listStatuses: function (authorization, filter, filters, order, expand, options) {
|
|
263
262
|
if (options === void 0) { options = {}; }
|
|
264
263
|
return __awaiter(_this, void 0, void 0, function () {
|
|
265
264
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -288,9 +287,6 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
288
287
|
if (filters !== undefined) {
|
|
289
288
|
localVarQueryParameter['filters'] = filters;
|
|
290
289
|
}
|
|
291
|
-
if (search !== undefined) {
|
|
292
|
-
localVarQueryParameter['search'] = search;
|
|
293
|
-
}
|
|
294
290
|
if (order !== undefined) {
|
|
295
291
|
localVarQueryParameter['order'] = order;
|
|
296
292
|
}
|
|
@@ -312,15 +308,15 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
312
308
|
});
|
|
313
309
|
},
|
|
314
310
|
/**
|
|
315
|
-
* This will update status.
|
|
311
|
+
* This will partially update a status by code with the provided fields.
|
|
316
312
|
* @summary Update the status
|
|
317
313
|
* @param {string} code
|
|
318
|
-
* @param {
|
|
314
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
319
315
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
320
316
|
* @param {*} [options] Override http request option.
|
|
321
317
|
* @throws {RequiredError}
|
|
322
318
|
*/
|
|
323
|
-
|
|
319
|
+
patchStatus: function (code, patchStatusRequestDto, authorization, options) {
|
|
324
320
|
if (options === void 0) { options = {}; }
|
|
325
321
|
return __awaiter(_this, void 0, void 0, function () {
|
|
326
322
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -328,9 +324,9 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
328
324
|
switch (_a.label) {
|
|
329
325
|
case 0:
|
|
330
326
|
// verify required parameter 'code' is not null or undefined
|
|
331
|
-
(0, common_1.assertParamExists)('
|
|
332
|
-
// verify required parameter '
|
|
333
|
-
(0, common_1.assertParamExists)('
|
|
327
|
+
(0, common_1.assertParamExists)('patchStatus', 'code', code);
|
|
328
|
+
// verify required parameter 'patchStatusRequestDto' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('patchStatus', 'patchStatusRequestDto', patchStatusRequestDto);
|
|
334
330
|
localVarPath = "/taskservice/v1/statuses/{code}"
|
|
335
331
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
336
332
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -338,7 +334,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
338
334
|
baseOptions = configuration.baseOptions;
|
|
339
335
|
baseAccessToken = configuration.accessToken;
|
|
340
336
|
}
|
|
341
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
337
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
342
338
|
localVarHeaderParameter = {};
|
|
343
339
|
localVarQueryParameter = {};
|
|
344
340
|
// authentication bearer required
|
|
@@ -355,7 +351,7 @@ var StatusesApiAxiosParamCreator = function (configuration) {
|
|
|
355
351
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
352
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
353
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
354
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchStatusRequestDto, localVarRequestOptions, configuration);
|
|
359
355
|
return [2 /*return*/, {
|
|
360
356
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
357
|
options: localVarRequestOptions,
|
|
@@ -444,18 +440,17 @@ var StatusesApiFp = function (configuration) {
|
|
|
444
440
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
445
441
|
* @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>
|
|
446
442
|
* @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>
|
|
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: id, code, name, slug</i>
|
|
448
443
|
* @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
444
|
* @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
445
|
* @param {*} [options] Override http request option.
|
|
451
446
|
* @throws {RequiredError}
|
|
452
447
|
*/
|
|
453
|
-
listStatuses: function (authorization, filter, filters,
|
|
448
|
+
listStatuses: function (authorization, filter, filters, order, expand, options) {
|
|
454
449
|
return __awaiter(this, void 0, void 0, function () {
|
|
455
450
|
var localVarAxiosArgs;
|
|
456
451
|
return __generator(this, function (_a) {
|
|
457
452
|
switch (_a.label) {
|
|
458
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listStatuses(authorization, filter, filters,
|
|
453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listStatuses(authorization, filter, filters, order, expand, options)];
|
|
459
454
|
case 1:
|
|
460
455
|
localVarAxiosArgs = _a.sent();
|
|
461
456
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -464,20 +459,20 @@ var StatusesApiFp = function (configuration) {
|
|
|
464
459
|
});
|
|
465
460
|
},
|
|
466
461
|
/**
|
|
467
|
-
* This will update status.
|
|
462
|
+
* This will partially update a status by code with the provided fields.
|
|
468
463
|
* @summary Update the status
|
|
469
464
|
* @param {string} code
|
|
470
|
-
* @param {
|
|
465
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
471
466
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
472
467
|
* @param {*} [options] Override http request option.
|
|
473
468
|
* @throws {RequiredError}
|
|
474
469
|
*/
|
|
475
|
-
|
|
470
|
+
patchStatus: function (code, patchStatusRequestDto, authorization, options) {
|
|
476
471
|
return __awaiter(this, void 0, void 0, function () {
|
|
477
472
|
var localVarAxiosArgs;
|
|
478
473
|
return __generator(this, function (_a) {
|
|
479
474
|
switch (_a.label) {
|
|
480
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
475
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchStatus(code, patchStatusRequestDto, authorization, options)];
|
|
481
476
|
case 1:
|
|
482
477
|
localVarAxiosArgs = _a.sent();
|
|
483
478
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -535,26 +530,25 @@ var StatusesApiFactory = function (configuration, basePath, axios) {
|
|
|
535
530
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
536
531
|
* @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>
|
|
537
532
|
* @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>
|
|
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: id, code, name, slug</i>
|
|
539
533
|
* @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
534
|
* @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
535
|
* @param {*} [options] Override http request option.
|
|
542
536
|
* @throws {RequiredError}
|
|
543
537
|
*/
|
|
544
|
-
listStatuses: function (authorization, filter, filters,
|
|
545
|
-
return localVarFp.listStatuses(authorization, filter, filters,
|
|
538
|
+
listStatuses: function (authorization, filter, filters, order, expand, options) {
|
|
539
|
+
return localVarFp.listStatuses(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
546
540
|
},
|
|
547
541
|
/**
|
|
548
|
-
* This will update status.
|
|
542
|
+
* This will partially update a status by code with the provided fields.
|
|
549
543
|
* @summary Update the status
|
|
550
544
|
* @param {string} code
|
|
551
|
-
* @param {
|
|
545
|
+
* @param {PatchStatusRequestDto} patchStatusRequestDto
|
|
552
546
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
553
547
|
* @param {*} [options] Override http request option.
|
|
554
548
|
* @throws {RequiredError}
|
|
555
549
|
*/
|
|
556
|
-
|
|
557
|
-
return localVarFp.
|
|
550
|
+
patchStatus: function (code, patchStatusRequestDto, authorization, options) {
|
|
551
|
+
return localVarFp.patchStatus(code, patchStatusRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
558
552
|
},
|
|
559
553
|
};
|
|
560
554
|
};
|
|
@@ -617,19 +611,19 @@ var StatusesApi = /** @class */ (function (_super) {
|
|
|
617
611
|
StatusesApi.prototype.listStatuses = function (requestParameters, options) {
|
|
618
612
|
var _this = this;
|
|
619
613
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
620
|
-
return (0, exports.StatusesApiFp)(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.
|
|
614
|
+
return (0, exports.StatusesApiFp)(this.configuration).listStatuses(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
621
615
|
};
|
|
622
616
|
/**
|
|
623
|
-
* This will update status.
|
|
617
|
+
* This will partially update a status by code with the provided fields.
|
|
624
618
|
* @summary Update the status
|
|
625
|
-
* @param {
|
|
619
|
+
* @param {StatusesApiPatchStatusRequest} requestParameters Request parameters.
|
|
626
620
|
* @param {*} [options] Override http request option.
|
|
627
621
|
* @throws {RequiredError}
|
|
628
622
|
* @memberof StatusesApi
|
|
629
623
|
*/
|
|
630
|
-
StatusesApi.prototype.
|
|
624
|
+
StatusesApi.prototype.patchStatus = function (requestParameters, options) {
|
|
631
625
|
var _this = this;
|
|
632
|
-
return (0, exports.StatusesApiFp)(this.configuration).
|
|
626
|
+
return (0, exports.StatusesApiFp)(this.configuration).patchStatus(requestParameters.code, requestParameters.patchStatusRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
633
627
|
};
|
|
634
628
|
return StatusesApi;
|
|
635
629
|
}(base_1.BaseAPI));
|