@emilgroup/task-sdk-node 1.0.1-beta.10 → 1.0.1-beta.4
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 +30 -30
- package/api/statuses-api.ts +30 -30
- package/api/tasks-api.ts +58 -86
- package/dist/api/categories-api.d.ts +22 -22
- package/dist/api/categories-api.js +20 -20
- package/dist/api/statuses-api.d.ts +22 -22
- package/dist/api/statuses-api.js +20 -20
- package/dist/api/tasks-api.d.ts +43 -61
- package/dist/api/tasks-api.js +41 -53
- package/dist/models/create-task-request-dto.d.ts +3 -3
- package/dist/models/index.d.ts +6 -6
- package/dist/models/index.js +6 -6
- package/dist/models/task-class.d.ts +3 -3
- package/dist/models/{patch-category-request-dto.d.ts → update-category-request-dto.d.ts} +7 -7
- package/dist/models/{patch-category-response-class.d.ts → update-category-response-class.d.ts} +3 -3
- package/dist/models/{patch-status-request-dto.d.ts → update-status-request-dto.d.ts} +7 -7
- package/dist/models/{patch-status-response-class.d.ts → update-status-response-class.d.ts} +3 -3
- package/dist/models/update-task-request-dto.d.ts +72 -0
- package/dist/models/{patch-task-response-class.d.ts → update-task-response-class.d.ts} +3 -3
- package/models/create-task-request-dto.ts +3 -3
- package/models/index.ts +6 -6
- package/models/task-class.ts +3 -3
- package/models/{patch-category-request-dto.ts → update-category-request-dto.ts} +7 -7
- package/models/{patch-category-response-class.ts → update-category-response-class.ts} +3 -3
- package/models/{patch-status-request-dto.ts → update-status-request-dto.ts} +7 -7
- package/models/{patch-status-response-class.ts → update-status-response-class.ts} +3 -3
- package/models/update-task-request-dto.ts +78 -0
- package/models/{patch-task-response-class.ts → update-task-response-class.ts} +3 -3
- package/package.json +1 -1
- package/dist/models/patch-task-request-dto.d.ts +0 -108
- package/models/patch-task-request-dto.ts +0 -114
- /package/dist/models/{patch-category-request-dto.js → update-category-request-dto.js} +0 -0
- /package/dist/models/{patch-category-response-class.js → update-category-response-class.js} +0 -0
- /package/dist/models/{patch-status-request-dto.js → update-status-request-dto.js} +0 -0
- /package/dist/models/{patch-status-response-class.js → update-status-response-class.js} +0 -0
- /package/dist/models/{patch-task-request-dto.js → update-task-request-dto.js} +0 -0
- /package/dist/models/{patch-task-response-class.js → update-task-response-class.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -34,13 +34,13 @@ models/inline-response503.ts
|
|
|
34
34
|
models/list-categories-response-class.ts
|
|
35
35
|
models/list-statuses-response-class.ts
|
|
36
36
|
models/list-tasks-response-class.ts
|
|
37
|
-
models/patch-category-request-dto.ts
|
|
38
|
-
models/patch-category-response-class.ts
|
|
39
|
-
models/patch-status-request-dto.ts
|
|
40
|
-
models/patch-status-response-class.ts
|
|
41
|
-
models/patch-task-request-dto.ts
|
|
42
|
-
models/patch-task-response-class.ts
|
|
43
37
|
models/status-class.ts
|
|
44
38
|
models/task-class.ts
|
|
39
|
+
models/update-category-request-dto.ts
|
|
40
|
+
models/update-category-response-class.ts
|
|
41
|
+
models/update-status-request-dto.ts
|
|
42
|
+
models/update-status-response-class.ts
|
|
43
|
+
models/update-task-request-dto.ts
|
|
44
|
+
models/update-task-response-class.ts
|
|
45
45
|
package.json
|
|
46
46
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/task-sdk-node@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/task-sdk-node@1.0.1-beta.4 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/task-sdk-node@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/task-sdk-node@1.0.1-beta.4
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `TasksApi`.
|
package/api/categories-api.ts
CHANGED
|
@@ -29,9 +29,9 @@ import { GetCategoryResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListCategoriesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { UpdateCategoryRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import {
|
|
34
|
+
import { UpdateCategoryResponseClass } from '../models';
|
|
35
35
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -253,19 +253,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
253
253
|
};
|
|
254
254
|
},
|
|
255
255
|
/**
|
|
256
|
-
* This will
|
|
256
|
+
* This will update category.
|
|
257
257
|
* @summary Update the category
|
|
258
258
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
259
|
+
* @param {UpdateCategoryRequestDto} updateCategoryRequestDto
|
|
260
260
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
|
|
264
|
+
updateCategory: async (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
265
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
266
|
+
assertParamExists('updateCategory', 'code', code)
|
|
267
|
+
// verify required parameter 'updateCategoryRequestDto' is not null or undefined
|
|
268
|
+
assertParamExists('updateCategory', 'updateCategoryRequestDto', updateCategoryRequestDto)
|
|
269
269
|
const localVarPath = `/taskservice/v1/categories/{code}`
|
|
270
270
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +277,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
277
277
|
baseAccessToken = configuration.accessToken;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
280
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
281
281
|
const localVarHeaderParameter = {} as any;
|
|
282
282
|
const localVarQueryParameter = {} as any;
|
|
283
283
|
|
|
@@ -296,7 +296,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
296
296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
298
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCategoryRequestDto, localVarRequestOptions, configuration)
|
|
300
300
|
|
|
301
301
|
return {
|
|
302
302
|
url: toPathString(localVarUrlObj),
|
|
@@ -367,16 +367,16 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
|
|
|
367
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
368
|
},
|
|
369
369
|
/**
|
|
370
|
-
* This will
|
|
370
|
+
* This will update category.
|
|
371
371
|
* @summary Update the category
|
|
372
372
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
373
|
+
* @param {UpdateCategoryRequestDto} updateCategoryRequestDto
|
|
374
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
375
|
* @param {*} [options] Override http request option.
|
|
376
376
|
* @throws {RequiredError}
|
|
377
377
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
378
|
+
async updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCategoryResponseClass>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCategory(code, updateCategoryRequestDto, authorization, options);
|
|
380
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
381
|
},
|
|
382
382
|
}
|
|
@@ -439,16 +439,16 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
|
|
|
439
439
|
return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
440
|
},
|
|
441
441
|
/**
|
|
442
|
-
* This will
|
|
442
|
+
* This will update category.
|
|
443
443
|
* @summary Update the category
|
|
444
444
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
445
|
+
* @param {UpdateCategoryRequestDto} updateCategoryRequestDto
|
|
446
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
447
|
* @param {*} [options] Override http request option.
|
|
448
448
|
* @throws {RequiredError}
|
|
449
449
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
450
|
+
updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCategoryResponseClass> {
|
|
451
|
+
return localVarFp.updateCategory(code, updateCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
452
|
},
|
|
453
453
|
};
|
|
454
454
|
};
|
|
@@ -573,29 +573,29 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
|
-
* Request parameters for
|
|
576
|
+
* Request parameters for updateCategory operation in CategoriesApi.
|
|
577
577
|
* @export
|
|
578
|
-
* @interface
|
|
578
|
+
* @interface CategoriesApiUpdateCategoryRequest
|
|
579
579
|
*/
|
|
580
|
-
export interface
|
|
580
|
+
export interface CategoriesApiUpdateCategoryRequest {
|
|
581
581
|
/**
|
|
582
582
|
*
|
|
583
583
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
584
|
+
* @memberof CategoriesApiUpdateCategory
|
|
585
585
|
*/
|
|
586
586
|
readonly code: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
590
|
+
* @type {UpdateCategoryRequestDto}
|
|
591
|
+
* @memberof CategoriesApiUpdateCategory
|
|
592
592
|
*/
|
|
593
|
-
readonly
|
|
593
|
+
readonly updateCategoryRequestDto: UpdateCategoryRequestDto
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
597
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
598
|
+
* @memberof CategoriesApiUpdateCategory
|
|
599
599
|
*/
|
|
600
600
|
readonly authorization?: string
|
|
601
601
|
}
|
|
@@ -656,14 +656,14 @@ export class CategoriesApi extends BaseAPI {
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
|
-
* This will
|
|
659
|
+
* This will update category.
|
|
660
660
|
* @summary Update the category
|
|
661
|
-
* @param {
|
|
661
|
+
* @param {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
663
663
|
* @throws {RequiredError}
|
|
664
664
|
* @memberof CategoriesApi
|
|
665
665
|
*/
|
|
666
|
-
public
|
|
667
|
-
return CategoriesApiFp(this.configuration).
|
|
666
|
+
public updateCategory(requestParameters: CategoriesApiUpdateCategoryRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return CategoriesApiFp(this.configuration).updateCategory(requestParameters.code, requestParameters.updateCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
668
|
}
|
|
669
669
|
}
|
package/api/statuses-api.ts
CHANGED
|
@@ -29,9 +29,9 @@ import { GetStatusResponseClass } from '../models';
|
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListStatusesResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { UpdateStatusRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
-
import {
|
|
34
|
+
import { UpdateStatusResponseClass } from '../models';
|
|
35
35
|
// URLSearchParams not necessarily used
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -253,19 +253,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
253
253
|
};
|
|
254
254
|
},
|
|
255
255
|
/**
|
|
256
|
-
* This will
|
|
256
|
+
* This will update status.
|
|
257
257
|
* @summary Update the status
|
|
258
258
|
* @param {string} code
|
|
259
|
-
* @param {
|
|
259
|
+
* @param {UpdateStatusRequestDto} updateStatusRequestDto
|
|
260
260
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
261
|
* @param {*} [options] Override http request option.
|
|
262
262
|
* @throws {RequiredError}
|
|
263
263
|
*/
|
|
264
|
-
|
|
264
|
+
updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
265
|
// verify required parameter 'code' is not null or undefined
|
|
266
|
-
assertParamExists('
|
|
267
|
-
// verify required parameter '
|
|
268
|
-
assertParamExists('
|
|
266
|
+
assertParamExists('updateStatus', 'code', code)
|
|
267
|
+
// verify required parameter 'updateStatusRequestDto' is not null or undefined
|
|
268
|
+
assertParamExists('updateStatus', 'updateStatusRequestDto', updateStatusRequestDto)
|
|
269
269
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
270
270
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
271
271
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -277,7 +277,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
277
277
|
baseAccessToken = configuration.accessToken;
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
-
const localVarRequestOptions = { method: '
|
|
280
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
281
281
|
const localVarHeaderParameter = {} as any;
|
|
282
282
|
const localVarQueryParameter = {} as any;
|
|
283
283
|
|
|
@@ -296,7 +296,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
296
296
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
297
297
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
298
298
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
299
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
299
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, localVarRequestOptions, configuration)
|
|
300
300
|
|
|
301
301
|
return {
|
|
302
302
|
url: toPathString(localVarUrlObj),
|
|
@@ -367,16 +367,16 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
367
367
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
368
368
|
},
|
|
369
369
|
/**
|
|
370
|
-
* This will
|
|
370
|
+
* This will update status.
|
|
371
371
|
* @summary Update the status
|
|
372
372
|
* @param {string} code
|
|
373
|
-
* @param {
|
|
373
|
+
* @param {UpdateStatusRequestDto} updateStatusRequestDto
|
|
374
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
375
|
* @param {*} [options] Override http request option.
|
|
376
376
|
* @throws {RequiredError}
|
|
377
377
|
*/
|
|
378
|
-
async
|
|
379
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
378
|
+
async updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateStatusResponseClass>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateStatus(code, updateStatusRequestDto, authorization, options);
|
|
380
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
381
|
},
|
|
382
382
|
}
|
|
@@ -439,16 +439,16 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
439
439
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
440
440
|
},
|
|
441
441
|
/**
|
|
442
|
-
* This will
|
|
442
|
+
* This will update status.
|
|
443
443
|
* @summary Update the status
|
|
444
444
|
* @param {string} code
|
|
445
|
-
* @param {
|
|
445
|
+
* @param {UpdateStatusRequestDto} updateStatusRequestDto
|
|
446
446
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
447
|
* @param {*} [options] Override http request option.
|
|
448
448
|
* @throws {RequiredError}
|
|
449
449
|
*/
|
|
450
|
-
|
|
451
|
-
return localVarFp.
|
|
450
|
+
updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateStatusResponseClass> {
|
|
451
|
+
return localVarFp.updateStatus(code, updateStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
452
|
},
|
|
453
453
|
};
|
|
454
454
|
};
|
|
@@ -573,29 +573,29 @@ export interface StatusesApiListStatusesRequest {
|
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
|
-
* Request parameters for
|
|
576
|
+
* Request parameters for updateStatus operation in StatusesApi.
|
|
577
577
|
* @export
|
|
578
|
-
* @interface
|
|
578
|
+
* @interface StatusesApiUpdateStatusRequest
|
|
579
579
|
*/
|
|
580
|
-
export interface
|
|
580
|
+
export interface StatusesApiUpdateStatusRequest {
|
|
581
581
|
/**
|
|
582
582
|
*
|
|
583
583
|
* @type {string}
|
|
584
|
-
* @memberof
|
|
584
|
+
* @memberof StatusesApiUpdateStatus
|
|
585
585
|
*/
|
|
586
586
|
readonly code: string
|
|
587
587
|
|
|
588
588
|
/**
|
|
589
589
|
*
|
|
590
|
-
* @type {
|
|
591
|
-
* @memberof
|
|
590
|
+
* @type {UpdateStatusRequestDto}
|
|
591
|
+
* @memberof StatusesApiUpdateStatus
|
|
592
592
|
*/
|
|
593
|
-
readonly
|
|
593
|
+
readonly updateStatusRequestDto: UpdateStatusRequestDto
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
597
597
|
* @type {string}
|
|
598
|
-
* @memberof
|
|
598
|
+
* @memberof StatusesApiUpdateStatus
|
|
599
599
|
*/
|
|
600
600
|
readonly authorization?: string
|
|
601
601
|
}
|
|
@@ -656,14 +656,14 @@ export class StatusesApi extends BaseAPI {
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
|
-
* This will
|
|
659
|
+
* This will update status.
|
|
660
660
|
* @summary Update the status
|
|
661
|
-
* @param {
|
|
661
|
+
* @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
|
|
662
662
|
* @param {*} [options] Override http request option.
|
|
663
663
|
* @throws {RequiredError}
|
|
664
664
|
* @memberof StatusesApi
|
|
665
665
|
*/
|
|
666
|
-
public
|
|
667
|
-
return StatusesApiFp(this.configuration).
|
|
666
|
+
public updateStatus(requestParameters: StatusesApiUpdateStatusRequest, options?: AxiosRequestConfig) {
|
|
667
|
+
return StatusesApiFp(this.configuration).updateStatus(requestParameters.code, requestParameters.updateStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
668
|
}
|
|
669
669
|
}
|