@emilgroup/task-sdk 1.0.1-beta.10 → 1.0.1-beta.3
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@1.0.1-beta.
|
|
20
|
+
npm install @emilgroup/task-sdk@1.0.1-beta.3 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/task-sdk@1.0.1-beta.
|
|
24
|
+
yarn add @emilgroup/task-sdk@1.0.1-beta.3
|
|
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
|
/**
|
|
36
36
|
* CategoriesApi - axios parameter creator
|
|
37
37
|
* @export
|
|
@@ -249,19 +249,19 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
249
249
|
};
|
|
250
250
|
},
|
|
251
251
|
/**
|
|
252
|
-
* This will
|
|
252
|
+
* This will update category.
|
|
253
253
|
* @summary Update the category
|
|
254
254
|
* @param {string} code
|
|
255
|
-
* @param {
|
|
255
|
+
* @param {UpdateCategoryRequestDto} updateCategoryRequestDto
|
|
256
256
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
updateCategory: async (code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
261
|
// verify required parameter 'code' is not null or undefined
|
|
262
|
-
assertParamExists('
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
262
|
+
assertParamExists('updateCategory', 'code', code)
|
|
263
|
+
// verify required parameter 'updateCategoryRequestDto' is not null or undefined
|
|
264
|
+
assertParamExists('updateCategory', 'updateCategoryRequestDto', updateCategoryRequestDto)
|
|
265
265
|
const localVarPath = `/taskservice/v1/categories/{code}`
|
|
266
266
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -273,7 +273,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
273
273
|
baseAccessToken = configuration.accessToken;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
const localVarRequestOptions = { method: '
|
|
276
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
277
277
|
const localVarHeaderParameter = {} as any;
|
|
278
278
|
const localVarQueryParameter = {} as any;
|
|
279
279
|
|
|
@@ -292,7 +292,7 @@ export const CategoriesApiAxiosParamCreator = function (configuration?: Configur
|
|
|
292
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
293
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
295
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateCategoryRequestDto, localVarRequestOptions, configuration)
|
|
296
296
|
|
|
297
297
|
return {
|
|
298
298
|
url: toPathString(localVarUrlObj),
|
|
@@ -363,16 +363,16 @@ export const CategoriesApiFp = function(configuration?: Configuration) {
|
|
|
363
363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
|
-
* This will
|
|
366
|
+
* This will update category.
|
|
367
367
|
* @summary Update the category
|
|
368
368
|
* @param {string} code
|
|
369
|
-
* @param {
|
|
369
|
+
* @param {UpdateCategoryRequestDto} updateCategoryRequestDto
|
|
370
370
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
371
|
* @param {*} [options] Override http request option.
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
*/
|
|
374
|
-
async
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
374
|
+
async updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCategoryResponseClass>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCategory(code, updateCategoryRequestDto, authorization, options);
|
|
376
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
377
|
},
|
|
378
378
|
}
|
|
@@ -435,16 +435,16 @@ export const CategoriesApiFactory = function (configuration?: Configuration, bas
|
|
|
435
435
|
return localVarFp.listCategories(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
436
436
|
},
|
|
437
437
|
/**
|
|
438
|
-
* This will
|
|
438
|
+
* This will update category.
|
|
439
439
|
* @summary Update the category
|
|
440
440
|
* @param {string} code
|
|
441
|
-
* @param {
|
|
441
|
+
* @param {UpdateCategoryRequestDto} updateCategoryRequestDto
|
|
442
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
|
|
447
|
-
return localVarFp.
|
|
446
|
+
updateCategory(code: string, updateCategoryRequestDto: UpdateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCategoryResponseClass> {
|
|
447
|
+
return localVarFp.updateCategory(code, updateCategoryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
448
|
},
|
|
449
449
|
};
|
|
450
450
|
};
|
|
@@ -569,29 +569,29 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
|
-
* Request parameters for
|
|
572
|
+
* Request parameters for updateCategory operation in CategoriesApi.
|
|
573
573
|
* @export
|
|
574
|
-
* @interface
|
|
574
|
+
* @interface CategoriesApiUpdateCategoryRequest
|
|
575
575
|
*/
|
|
576
|
-
export interface
|
|
576
|
+
export interface CategoriesApiUpdateCategoryRequest {
|
|
577
577
|
/**
|
|
578
578
|
*
|
|
579
579
|
* @type {string}
|
|
580
|
-
* @memberof
|
|
580
|
+
* @memberof CategoriesApiUpdateCategory
|
|
581
581
|
*/
|
|
582
582
|
readonly code: string
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
*
|
|
586
|
-
* @type {
|
|
587
|
-
* @memberof
|
|
586
|
+
* @type {UpdateCategoryRequestDto}
|
|
587
|
+
* @memberof CategoriesApiUpdateCategory
|
|
588
588
|
*/
|
|
589
|
-
readonly
|
|
589
|
+
readonly updateCategoryRequestDto: UpdateCategoryRequestDto
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
593
|
* @type {string}
|
|
594
|
-
* @memberof
|
|
594
|
+
* @memberof CategoriesApiUpdateCategory
|
|
595
595
|
*/
|
|
596
596
|
readonly authorization?: string
|
|
597
597
|
}
|
|
@@ -652,14 +652,14 @@ export class CategoriesApi extends BaseAPI {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* This will
|
|
655
|
+
* This will update category.
|
|
656
656
|
* @summary Update the category
|
|
657
|
-
* @param {
|
|
657
|
+
* @param {CategoriesApiUpdateCategoryRequest} requestParameters Request parameters.
|
|
658
658
|
* @param {*} [options] Override http request option.
|
|
659
659
|
* @throws {RequiredError}
|
|
660
660
|
* @memberof CategoriesApi
|
|
661
661
|
*/
|
|
662
|
-
public
|
|
663
|
-
return CategoriesApiFp(this.configuration).
|
|
662
|
+
public updateCategory(requestParameters: CategoriesApiUpdateCategoryRequest, options?: AxiosRequestConfig) {
|
|
663
|
+
return CategoriesApiFp(this.configuration).updateCategory(requestParameters.code, requestParameters.updateCategoryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
664
664
|
}
|
|
665
665
|
}
|
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
|
/**
|
|
36
36
|
* StatusesApi - axios parameter creator
|
|
37
37
|
* @export
|
|
@@ -249,19 +249,19 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
249
249
|
};
|
|
250
250
|
},
|
|
251
251
|
/**
|
|
252
|
-
* This will
|
|
252
|
+
* This will update status.
|
|
253
253
|
* @summary Update the status
|
|
254
254
|
* @param {string} code
|
|
255
|
-
* @param {
|
|
255
|
+
* @param {UpdateStatusRequestDto} updateStatusRequestDto
|
|
256
256
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
259
259
|
*/
|
|
260
|
-
|
|
260
|
+
updateStatus: async (code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
261
261
|
// verify required parameter 'code' is not null or undefined
|
|
262
|
-
assertParamExists('
|
|
263
|
-
// verify required parameter '
|
|
264
|
-
assertParamExists('
|
|
262
|
+
assertParamExists('updateStatus', 'code', code)
|
|
263
|
+
// verify required parameter 'updateStatusRequestDto' is not null or undefined
|
|
264
|
+
assertParamExists('updateStatus', 'updateStatusRequestDto', updateStatusRequestDto)
|
|
265
265
|
const localVarPath = `/taskservice/v1/statuses/{code}`
|
|
266
266
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
267
267
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -273,7 +273,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
273
273
|
baseAccessToken = configuration.accessToken;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
const localVarRequestOptions = { method: '
|
|
276
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
277
277
|
const localVarHeaderParameter = {} as any;
|
|
278
278
|
const localVarQueryParameter = {} as any;
|
|
279
279
|
|
|
@@ -292,7 +292,7 @@ export const StatusesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
292
292
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
293
293
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
294
294
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
295
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateStatusRequestDto, localVarRequestOptions, configuration)
|
|
296
296
|
|
|
297
297
|
return {
|
|
298
298
|
url: toPathString(localVarUrlObj),
|
|
@@ -363,16 +363,16 @@ export const StatusesApiFp = function(configuration?: Configuration) {
|
|
|
363
363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
|
-
* This will
|
|
366
|
+
* This will update status.
|
|
367
367
|
* @summary Update the status
|
|
368
368
|
* @param {string} code
|
|
369
|
-
* @param {
|
|
369
|
+
* @param {UpdateStatusRequestDto} updateStatusRequestDto
|
|
370
370
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
371
|
* @param {*} [options] Override http request option.
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
*/
|
|
374
|
-
async
|
|
375
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
374
|
+
async updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateStatusResponseClass>> {
|
|
375
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateStatus(code, updateStatusRequestDto, authorization, options);
|
|
376
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
377
|
},
|
|
378
378
|
}
|
|
@@ -435,16 +435,16 @@ export const StatusesApiFactory = function (configuration?: Configuration, baseP
|
|
|
435
435
|
return localVarFp.listStatuses(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
436
436
|
},
|
|
437
437
|
/**
|
|
438
|
-
* This will
|
|
438
|
+
* This will update status.
|
|
439
439
|
* @summary Update the status
|
|
440
440
|
* @param {string} code
|
|
441
|
-
* @param {
|
|
441
|
+
* @param {UpdateStatusRequestDto} updateStatusRequestDto
|
|
442
442
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
|
|
447
|
-
return localVarFp.
|
|
446
|
+
updateStatus(code: string, updateStatusRequestDto: UpdateStatusRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateStatusResponseClass> {
|
|
447
|
+
return localVarFp.updateStatus(code, updateStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
448
|
},
|
|
449
449
|
};
|
|
450
450
|
};
|
|
@@ -569,29 +569,29 @@ export interface StatusesApiListStatusesRequest {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
/**
|
|
572
|
-
* Request parameters for
|
|
572
|
+
* Request parameters for updateStatus operation in StatusesApi.
|
|
573
573
|
* @export
|
|
574
|
-
* @interface
|
|
574
|
+
* @interface StatusesApiUpdateStatusRequest
|
|
575
575
|
*/
|
|
576
|
-
export interface
|
|
576
|
+
export interface StatusesApiUpdateStatusRequest {
|
|
577
577
|
/**
|
|
578
578
|
*
|
|
579
579
|
* @type {string}
|
|
580
|
-
* @memberof
|
|
580
|
+
* @memberof StatusesApiUpdateStatus
|
|
581
581
|
*/
|
|
582
582
|
readonly code: string
|
|
583
583
|
|
|
584
584
|
/**
|
|
585
585
|
*
|
|
586
|
-
* @type {
|
|
587
|
-
* @memberof
|
|
586
|
+
* @type {UpdateStatusRequestDto}
|
|
587
|
+
* @memberof StatusesApiUpdateStatus
|
|
588
588
|
*/
|
|
589
|
-
readonly
|
|
589
|
+
readonly updateStatusRequestDto: UpdateStatusRequestDto
|
|
590
590
|
|
|
591
591
|
/**
|
|
592
592
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
593
593
|
* @type {string}
|
|
594
|
-
* @memberof
|
|
594
|
+
* @memberof StatusesApiUpdateStatus
|
|
595
595
|
*/
|
|
596
596
|
readonly authorization?: string
|
|
597
597
|
}
|
|
@@ -652,14 +652,14 @@ export class StatusesApi extends BaseAPI {
|
|
|
652
652
|
}
|
|
653
653
|
|
|
654
654
|
/**
|
|
655
|
-
* This will
|
|
655
|
+
* This will update status.
|
|
656
656
|
* @summary Update the status
|
|
657
|
-
* @param {
|
|
657
|
+
* @param {StatusesApiUpdateStatusRequest} requestParameters Request parameters.
|
|
658
658
|
* @param {*} [options] Override http request option.
|
|
659
659
|
* @throws {RequiredError}
|
|
660
660
|
* @memberof StatusesApi
|
|
661
661
|
*/
|
|
662
|
-
public
|
|
663
|
-
return StatusesApiFp(this.configuration).
|
|
662
|
+
public updateStatus(requestParameters: StatusesApiUpdateStatusRequest, options?: AxiosRequestConfig) {
|
|
663
|
+
return StatusesApiFp(this.configuration).updateStatus(requestParameters.code, requestParameters.updateStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
664
664
|
}
|
|
665
665
|
}
|