@teemill/projects 1.57.1 → 1.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/api.ts +22 -8
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +12 -4
- package/dist/api.js +13 -7
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +12 -4
- package/dist/esm/api.js +13 -7
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/ArchiveTasksRequest.md +20 -0
- package/docs/CreateTaskRequest.md +0 -2
- package/docs/ProjectsApi.md +9 -5
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @teemill/projects@1.
|
|
1
|
+
## @teemill/projects@1.58.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @teemill/projects@1.
|
|
39
|
+
npm install @teemill/projects@1.58.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -51,7 +51,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
51
51
|
|
|
52
52
|
Class | Method | HTTP request | Description
|
|
53
53
|
------------ | ------------- | ------------- | -------------
|
|
54
|
-
*ProjectsApi* | [**archiveTasks**](docs/ProjectsApi.md#archivetasks) | **
|
|
54
|
+
*ProjectsApi* | [**archiveTasks**](docs/ProjectsApi.md#archivetasks) | **POST** /v1/projects/{project}/tasks/archive | Archive all done tasks
|
|
55
55
|
*ProjectsApi* | [**bulkUpdateTasks**](docs/ProjectsApi.md#bulkupdatetasks) | **PATCH** /v1/projects/{project}/tasks | Bulk update tasks
|
|
56
56
|
*ProjectsApi* | [**createAuth**](docs/ProjectsApi.md#createauth) | **POST** /v1/projects/{project}/auth | Create auth token
|
|
57
57
|
*ProjectsApi* | [**createBookmark**](docs/ProjectsApi.md#createbookmark) | **POST** /v1/projects/{project}/bookmarks | Create bookmark
|
|
@@ -104,6 +104,7 @@ Class | Method | HTTP request | Description
|
|
|
104
104
|
### Documentation For Models
|
|
105
105
|
|
|
106
106
|
- [ApiError](docs/ApiError.md)
|
|
107
|
+
- [ArchiveTasksRequest](docs/ArchiveTasksRequest.md)
|
|
107
108
|
- [Auth](docs/Auth.md)
|
|
108
109
|
- [AuthResponse](docs/AuthResponse.md)
|
|
109
110
|
- [Bookmark](docs/Bookmark.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage PodOS Projects
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.58.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -27,6 +27,9 @@ export interface ApiError {
|
|
|
27
27
|
'code'?: string;
|
|
28
28
|
'message': string;
|
|
29
29
|
}
|
|
30
|
+
export interface ArchiveTasksRequest {
|
|
31
|
+
'tasks': Array<string>;
|
|
32
|
+
}
|
|
30
33
|
export interface Auth {
|
|
31
34
|
'id'?: string;
|
|
32
35
|
'projectId'?: string;
|
|
@@ -119,7 +122,6 @@ export interface CreateTaskRequest {
|
|
|
119
122
|
'content': string;
|
|
120
123
|
'status': TaskStatus;
|
|
121
124
|
'source'?: CreateTaskRequestSource;
|
|
122
|
-
'platformProject'?: string;
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
|
|
@@ -539,12 +541,15 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
539
541
|
* Archive all the done tasks in the workflow
|
|
540
542
|
* @summary Archive all done tasks
|
|
541
543
|
* @param {string} project Projects unique identifier
|
|
544
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
542
545
|
* @param {*} [options] Override http request option.
|
|
543
546
|
* @throws {RequiredError}
|
|
544
547
|
*/
|
|
545
|
-
archiveTasks: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
548
|
+
archiveTasks: async (project: string, archiveTasksRequest: ArchiveTasksRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
546
549
|
// verify required parameter 'project' is not null or undefined
|
|
547
550
|
assertParamExists('archiveTasks', 'project', project)
|
|
551
|
+
// verify required parameter 'archiveTasksRequest' is not null or undefined
|
|
552
|
+
assertParamExists('archiveTasks', 'archiveTasksRequest', archiveTasksRequest)
|
|
548
553
|
const localVarPath = `/v1/projects/{project}/tasks/archive`
|
|
549
554
|
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
550
555
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -554,7 +559,7 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
554
559
|
baseOptions = configuration.baseOptions;
|
|
555
560
|
}
|
|
556
561
|
|
|
557
|
-
const localVarRequestOptions = { method: '
|
|
562
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
558
563
|
const localVarHeaderParameter = {} as any;
|
|
559
564
|
const localVarQueryParameter = {} as any;
|
|
560
565
|
|
|
@@ -567,9 +572,12 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
567
572
|
|
|
568
573
|
|
|
569
574
|
|
|
575
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
576
|
+
|
|
570
577
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
571
578
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
572
579
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
580
|
+
localVarRequestOptions.data = serializeDataIfNeeded(archiveTasksRequest, localVarRequestOptions, configuration)
|
|
573
581
|
|
|
574
582
|
return {
|
|
575
583
|
url: toPathString(localVarUrlObj),
|
|
@@ -2723,11 +2731,12 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
2723
2731
|
* Archive all the done tasks in the workflow
|
|
2724
2732
|
* @summary Archive all done tasks
|
|
2725
2733
|
* @param {string} project Projects unique identifier
|
|
2734
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
2726
2735
|
* @param {*} [options] Override http request option.
|
|
2727
2736
|
* @throws {RequiredError}
|
|
2728
2737
|
*/
|
|
2729
|
-
async archiveTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2730
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveTasks(project, options);
|
|
2738
|
+
async archiveTasks(project: string, archiveTasksRequest: ArchiveTasksRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
2739
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveTasks(project, archiveTasksRequest, options);
|
|
2731
2740
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2732
2741
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.archiveTasks']?.[localVarOperationServerIndex]?.url;
|
|
2733
2742
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3404,7 +3413,7 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
3404
3413
|
* @throws {RequiredError}
|
|
3405
3414
|
*/
|
|
3406
3415
|
archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3407
|
-
return localVarFp.archiveTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
3416
|
+
return localVarFp.archiveTasks(requestParameters.project, requestParameters.archiveTasksRequest, options).then((request) => request(axios, basePath));
|
|
3408
3417
|
},
|
|
3409
3418
|
/**
|
|
3410
3419
|
* Update multiple tasks in the workflow at once
|
|
@@ -3887,6 +3896,11 @@ export interface ProjectsApiArchiveTasksRequest {
|
|
|
3887
3896
|
* Projects unique identifier
|
|
3888
3897
|
*/
|
|
3889
3898
|
readonly project: string
|
|
3899
|
+
|
|
3900
|
+
/**
|
|
3901
|
+
* Request body to archive tasks
|
|
3902
|
+
*/
|
|
3903
|
+
readonly archiveTasksRequest: ArchiveTasksRequest
|
|
3890
3904
|
}
|
|
3891
3905
|
|
|
3892
3906
|
/**
|
|
@@ -4591,7 +4605,7 @@ export class ProjectsApi extends BaseAPI {
|
|
|
4591
4605
|
* @throws {RequiredError}
|
|
4592
4606
|
*/
|
|
4593
4607
|
public archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig) {
|
|
4594
|
-
return ProjectsApiFp(this.configuration).archiveTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4608
|
+
return ProjectsApiFp(this.configuration).archiveTasks(requestParameters.project, requestParameters.archiveTasksRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4595
4609
|
}
|
|
4596
4610
|
|
|
4597
4611
|
/**
|
package/base.ts
CHANGED
package/common.ts
CHANGED
package/configuration.ts
CHANGED
package/dist/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage PodOS Projects
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.58.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,6 +17,9 @@ export interface ApiError {
|
|
|
17
17
|
'code'?: string;
|
|
18
18
|
'message': string;
|
|
19
19
|
}
|
|
20
|
+
export interface ArchiveTasksRequest {
|
|
21
|
+
'tasks': Array<string>;
|
|
22
|
+
}
|
|
20
23
|
export interface Auth {
|
|
21
24
|
'id'?: string;
|
|
22
25
|
'projectId'?: string;
|
|
@@ -108,7 +111,6 @@ export interface CreateTaskRequest {
|
|
|
108
111
|
'content': string;
|
|
109
112
|
'status': TaskStatus;
|
|
110
113
|
'source'?: CreateTaskRequestSource;
|
|
111
|
-
'platformProject'?: string;
|
|
112
114
|
}
|
|
113
115
|
export interface CreateTaskRequestSource {
|
|
114
116
|
'id'?: string;
|
|
@@ -504,10 +506,11 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
504
506
|
* Archive all the done tasks in the workflow
|
|
505
507
|
* @summary Archive all done tasks
|
|
506
508
|
* @param {string} project Projects unique identifier
|
|
509
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
507
510
|
* @param {*} [options] Override http request option.
|
|
508
511
|
* @throws {RequiredError}
|
|
509
512
|
*/
|
|
510
|
-
archiveTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
513
|
+
archiveTasks: (project: string, archiveTasksRequest: ArchiveTasksRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
511
514
|
/**
|
|
512
515
|
* Update multiple tasks in the workflow at once
|
|
513
516
|
* @summary Bulk update tasks
|
|
@@ -937,10 +940,11 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
937
940
|
* Archive all the done tasks in the workflow
|
|
938
941
|
* @summary Archive all done tasks
|
|
939
942
|
* @param {string} project Projects unique identifier
|
|
943
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
940
944
|
* @param {*} [options] Override http request option.
|
|
941
945
|
* @throws {RequiredError}
|
|
942
946
|
*/
|
|
943
|
-
archiveTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
947
|
+
archiveTasks(project: string, archiveTasksRequest: ArchiveTasksRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
944
948
|
/**
|
|
945
949
|
* Update multiple tasks in the workflow at once
|
|
946
950
|
* @summary Bulk update tasks
|
|
@@ -1759,6 +1763,10 @@ export interface ProjectsApiArchiveTasksRequest {
|
|
|
1759
1763
|
* Projects unique identifier
|
|
1760
1764
|
*/
|
|
1761
1765
|
readonly project: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* Request body to archive tasks
|
|
1768
|
+
*/
|
|
1769
|
+
readonly archiveTasksRequest: ArchiveTasksRequest;
|
|
1762
1770
|
}
|
|
1763
1771
|
/**
|
|
1764
1772
|
* Request parameters for bulkUpdateTasks operation in ProjectsApi.
|
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Projects API
|
|
6
6
|
* Manage PodOS Projects
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 1.
|
|
8
|
+
* The version of the OpenAPI document: 1.58.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -69,12 +69,15 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
69
69
|
* Archive all the done tasks in the workflow
|
|
70
70
|
* @summary Archive all done tasks
|
|
71
71
|
* @param {string} project Projects unique identifier
|
|
72
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
72
73
|
* @param {*} [options] Override http request option.
|
|
73
74
|
* @throws {RequiredError}
|
|
74
75
|
*/
|
|
75
|
-
archiveTasks: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
76
|
+
archiveTasks: (project_1, archiveTasksRequest_1, ...args_1) => __awaiter(this, [project_1, archiveTasksRequest_1, ...args_1], void 0, function* (project, archiveTasksRequest, options = {}) {
|
|
76
77
|
// verify required parameter 'project' is not null or undefined
|
|
77
78
|
(0, common_1.assertParamExists)('archiveTasks', 'project', project);
|
|
79
|
+
// verify required parameter 'archiveTasksRequest' is not null or undefined
|
|
80
|
+
(0, common_1.assertParamExists)('archiveTasks', 'archiveTasksRequest', archiveTasksRequest);
|
|
78
81
|
const localVarPath = `/v1/projects/{project}/tasks/archive`
|
|
79
82
|
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
80
83
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -83,7 +86,7 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
83
86
|
if (configuration) {
|
|
84
87
|
baseOptions = configuration.baseOptions;
|
|
85
88
|
}
|
|
86
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
87
90
|
const localVarHeaderParameter = {};
|
|
88
91
|
const localVarQueryParameter = {};
|
|
89
92
|
// authentication session-oauth required
|
|
@@ -91,9 +94,11 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
91
94
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
92
95
|
// authentication api-key required
|
|
93
96
|
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
97
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
94
98
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
95
99
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
100
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
101
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(archiveTasksRequest, localVarRequestOptions, configuration);
|
|
97
102
|
return {
|
|
98
103
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
99
104
|
options: localVarRequestOptions,
|
|
@@ -1893,13 +1898,14 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1893
1898
|
* Archive all the done tasks in the workflow
|
|
1894
1899
|
* @summary Archive all done tasks
|
|
1895
1900
|
* @param {string} project Projects unique identifier
|
|
1901
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
1896
1902
|
* @param {*} [options] Override http request option.
|
|
1897
1903
|
* @throws {RequiredError}
|
|
1898
1904
|
*/
|
|
1899
|
-
archiveTasks(project, options) {
|
|
1905
|
+
archiveTasks(project, archiveTasksRequest, options) {
|
|
1900
1906
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1901
1907
|
var _a, _b, _c;
|
|
1902
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveTasks(project, options);
|
|
1908
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveTasks(project, archiveTasksRequest, options);
|
|
1903
1909
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1904
1910
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.archiveTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1905
1911
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2718,7 +2724,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2718
2724
|
* @throws {RequiredError}
|
|
2719
2725
|
*/
|
|
2720
2726
|
archiveTasks(requestParameters, options) {
|
|
2721
|
-
return localVarFp.archiveTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2727
|
+
return localVarFp.archiveTasks(requestParameters.project, requestParameters.archiveTasksRequest, options).then((request) => request(axios, basePath));
|
|
2722
2728
|
},
|
|
2723
2729
|
/**
|
|
2724
2730
|
* Update multiple tasks in the workflow at once
|
|
@@ -3205,7 +3211,7 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
3205
3211
|
* @throws {RequiredError}
|
|
3206
3212
|
*/
|
|
3207
3213
|
archiveTasks(requestParameters, options) {
|
|
3208
|
-
return (0, exports.ProjectsApiFp)(this.configuration).archiveTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3214
|
+
return (0, exports.ProjectsApiFp)(this.configuration).archiveTasks(requestParameters.project, requestParameters.archiveTasksRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3209
3215
|
}
|
|
3210
3216
|
/**
|
|
3211
3217
|
* Update multiple tasks in the workflow at once
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/esm/api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Projects API
|
|
3
3
|
* Manage PodOS Projects
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 1.58.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,6 +17,9 @@ export interface ApiError {
|
|
|
17
17
|
'code'?: string;
|
|
18
18
|
'message': string;
|
|
19
19
|
}
|
|
20
|
+
export interface ArchiveTasksRequest {
|
|
21
|
+
'tasks': Array<string>;
|
|
22
|
+
}
|
|
20
23
|
export interface Auth {
|
|
21
24
|
'id'?: string;
|
|
22
25
|
'projectId'?: string;
|
|
@@ -108,7 +111,6 @@ export interface CreateTaskRequest {
|
|
|
108
111
|
'content': string;
|
|
109
112
|
'status': TaskStatus;
|
|
110
113
|
'source'?: CreateTaskRequestSource;
|
|
111
|
-
'platformProject'?: string;
|
|
112
114
|
}
|
|
113
115
|
export interface CreateTaskRequestSource {
|
|
114
116
|
'id'?: string;
|
|
@@ -504,10 +506,11 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
504
506
|
* Archive all the done tasks in the workflow
|
|
505
507
|
* @summary Archive all done tasks
|
|
506
508
|
* @param {string} project Projects unique identifier
|
|
509
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
507
510
|
* @param {*} [options] Override http request option.
|
|
508
511
|
* @throws {RequiredError}
|
|
509
512
|
*/
|
|
510
|
-
archiveTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
513
|
+
archiveTasks: (project: string, archiveTasksRequest: ArchiveTasksRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
511
514
|
/**
|
|
512
515
|
* Update multiple tasks in the workflow at once
|
|
513
516
|
* @summary Bulk update tasks
|
|
@@ -937,10 +940,11 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
937
940
|
* Archive all the done tasks in the workflow
|
|
938
941
|
* @summary Archive all done tasks
|
|
939
942
|
* @param {string} project Projects unique identifier
|
|
943
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
940
944
|
* @param {*} [options] Override http request option.
|
|
941
945
|
* @throws {RequiredError}
|
|
942
946
|
*/
|
|
943
|
-
archiveTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
947
|
+
archiveTasks(project: string, archiveTasksRequest: ArchiveTasksRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
944
948
|
/**
|
|
945
949
|
* Update multiple tasks in the workflow at once
|
|
946
950
|
* @summary Bulk update tasks
|
|
@@ -1759,6 +1763,10 @@ export interface ProjectsApiArchiveTasksRequest {
|
|
|
1759
1763
|
* Projects unique identifier
|
|
1760
1764
|
*/
|
|
1761
1765
|
readonly project: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* Request body to archive tasks
|
|
1768
|
+
*/
|
|
1769
|
+
readonly archiveTasksRequest: ArchiveTasksRequest;
|
|
1762
1770
|
}
|
|
1763
1771
|
/**
|
|
1764
1772
|
* Request parameters for bulkUpdateTasks operation in ProjectsApi.
|
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage PodOS Projects
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.58.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -66,12 +66,15 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
66
66
|
* Archive all the done tasks in the workflow
|
|
67
67
|
* @summary Archive all done tasks
|
|
68
68
|
* @param {string} project Projects unique identifier
|
|
69
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
69
70
|
* @param {*} [options] Override http request option.
|
|
70
71
|
* @throws {RequiredError}
|
|
71
72
|
*/
|
|
72
|
-
archiveTasks: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
73
|
+
archiveTasks: (project_1, archiveTasksRequest_1, ...args_1) => __awaiter(this, [project_1, archiveTasksRequest_1, ...args_1], void 0, function* (project, archiveTasksRequest, options = {}) {
|
|
73
74
|
// verify required parameter 'project' is not null or undefined
|
|
74
75
|
assertParamExists('archiveTasks', 'project', project);
|
|
76
|
+
// verify required parameter 'archiveTasksRequest' is not null or undefined
|
|
77
|
+
assertParamExists('archiveTasks', 'archiveTasksRequest', archiveTasksRequest);
|
|
75
78
|
const localVarPath = `/v1/projects/{project}/tasks/archive`
|
|
76
79
|
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
77
80
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -80,7 +83,7 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
80
83
|
if (configuration) {
|
|
81
84
|
baseOptions = configuration.baseOptions;
|
|
82
85
|
}
|
|
83
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
86
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
84
87
|
const localVarHeaderParameter = {};
|
|
85
88
|
const localVarQueryParameter = {};
|
|
86
89
|
// authentication session-oauth required
|
|
@@ -88,9 +91,11 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
88
91
|
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
89
92
|
// authentication api-key required
|
|
90
93
|
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
94
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
91
95
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
92
96
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
97
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
98
|
+
localVarRequestOptions.data = serializeDataIfNeeded(archiveTasksRequest, localVarRequestOptions, configuration);
|
|
94
99
|
return {
|
|
95
100
|
url: toPathString(localVarUrlObj),
|
|
96
101
|
options: localVarRequestOptions,
|
|
@@ -1889,13 +1894,14 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
1889
1894
|
* Archive all the done tasks in the workflow
|
|
1890
1895
|
* @summary Archive all done tasks
|
|
1891
1896
|
* @param {string} project Projects unique identifier
|
|
1897
|
+
* @param {ArchiveTasksRequest} archiveTasksRequest Request body to archive tasks
|
|
1892
1898
|
* @param {*} [options] Override http request option.
|
|
1893
1899
|
* @throws {RequiredError}
|
|
1894
1900
|
*/
|
|
1895
|
-
archiveTasks(project, options) {
|
|
1901
|
+
archiveTasks(project, archiveTasksRequest, options) {
|
|
1896
1902
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1897
1903
|
var _a, _b, _c;
|
|
1898
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveTasks(project, options);
|
|
1904
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveTasks(project, archiveTasksRequest, options);
|
|
1899
1905
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1900
1906
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.archiveTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1901
1907
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2713,7 +2719,7 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2713
2719
|
* @throws {RequiredError}
|
|
2714
2720
|
*/
|
|
2715
2721
|
archiveTasks(requestParameters, options) {
|
|
2716
|
-
return localVarFp.archiveTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2722
|
+
return localVarFp.archiveTasks(requestParameters.project, requestParameters.archiveTasksRequest, options).then((request) => request(axios, basePath));
|
|
2717
2723
|
},
|
|
2718
2724
|
/**
|
|
2719
2725
|
* Update multiple tasks in the workflow at once
|
|
@@ -3199,7 +3205,7 @@ export class ProjectsApi extends BaseAPI {
|
|
|
3199
3205
|
* @throws {RequiredError}
|
|
3200
3206
|
*/
|
|
3201
3207
|
archiveTasks(requestParameters, options) {
|
|
3202
|
-
return ProjectsApiFp(this.configuration).archiveTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3208
|
+
return ProjectsApiFp(this.configuration).archiveTasks(requestParameters.project, requestParameters.archiveTasksRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3203
3209
|
}
|
|
3204
3210
|
/**
|
|
3205
3211
|
* Update multiple tasks in the workflow at once
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ArchiveTasksRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**tasks** | **Array<string>** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { ArchiveTasksRequest } from '@teemill/projects';
|
|
14
|
+
|
|
15
|
+
const instance: ArchiveTasksRequest = {
|
|
16
|
+
tasks,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**content** | **string** | | [default to undefined]
|
|
9
9
|
**status** | [**TaskStatus**](TaskStatus.md) | | [default to undefined]
|
|
10
10
|
**source** | [**CreateTaskRequestSource**](CreateTaskRequestSource.md) | | [optional] [default to undefined]
|
|
11
|
-
**platformProject** | **string** | | [optional] [default to undefined]
|
|
12
11
|
|
|
13
12
|
## Example
|
|
14
13
|
|
|
@@ -19,7 +18,6 @@ const instance: CreateTaskRequest = {
|
|
|
19
18
|
content,
|
|
20
19
|
status,
|
|
21
20
|
source,
|
|
22
|
-
platformProject,
|
|
23
21
|
};
|
|
24
22
|
```
|
|
25
23
|
|
package/docs/ProjectsApi.md
CHANGED
|
@@ -4,7 +4,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**archiveTasks**](#archivetasks) | **
|
|
7
|
+
|[**archiveTasks**](#archivetasks) | **POST** /v1/projects/{project}/tasks/archive | Archive all done tasks|
|
|
8
8
|
|[**bulkUpdateTasks**](#bulkupdatetasks) | **PATCH** /v1/projects/{project}/tasks | Bulk update tasks|
|
|
9
9
|
|[**createAuth**](#createauth) | **POST** /v1/projects/{project}/auth | Create auth token|
|
|
10
10
|
|[**createBookmark**](#createbookmark) | **POST** /v1/projects/{project}/bookmarks | Create bookmark|
|
|
@@ -54,7 +54,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
54
54
|
|[**updateUserGroup**](#updateusergroup) | **PATCH** /v1/projects/{project}/user-groups/{userGroup} | Update group|
|
|
55
55
|
|
|
56
56
|
# **archiveTasks**
|
|
57
|
-
> archiveTasks()
|
|
57
|
+
> archiveTasks(archiveTasksRequest)
|
|
58
58
|
|
|
59
59
|
Archive all the done tasks in the workflow
|
|
60
60
|
|
|
@@ -63,16 +63,19 @@ Archive all the done tasks in the workflow
|
|
|
63
63
|
```typescript
|
|
64
64
|
import {
|
|
65
65
|
ProjectsApi,
|
|
66
|
-
Configuration
|
|
66
|
+
Configuration,
|
|
67
|
+
ArchiveTasksRequest
|
|
67
68
|
} from '@teemill/projects';
|
|
68
69
|
|
|
69
70
|
const configuration = new Configuration();
|
|
70
71
|
const apiInstance = new ProjectsApi(configuration);
|
|
71
72
|
|
|
72
73
|
let project: string; //Projects unique identifier (default to undefined)
|
|
74
|
+
let archiveTasksRequest: ArchiveTasksRequest; //Request body to archive tasks
|
|
73
75
|
|
|
74
76
|
const { status, data } = await apiInstance.archiveTasks(
|
|
75
|
-
project
|
|
77
|
+
project,
|
|
78
|
+
archiveTasksRequest
|
|
76
79
|
);
|
|
77
80
|
```
|
|
78
81
|
|
|
@@ -80,6 +83,7 @@ const { status, data } = await apiInstance.archiveTasks(
|
|
|
80
83
|
|
|
81
84
|
|Name | Type | Description | Notes|
|
|
82
85
|
|------------- | ------------- | ------------- | -------------|
|
|
86
|
+
| **archiveTasksRequest** | **ArchiveTasksRequest**| Request body to archive tasks | |
|
|
83
87
|
| **project** | [**string**] | Projects unique identifier | defaults to undefined|
|
|
84
88
|
|
|
85
89
|
|
|
@@ -93,7 +97,7 @@ void (empty response body)
|
|
|
93
97
|
|
|
94
98
|
### HTTP request headers
|
|
95
99
|
|
|
96
|
-
- **Content-Type**:
|
|
100
|
+
- **Content-Type**: application/json
|
|
97
101
|
- **Accept**: application/json
|
|
98
102
|
|
|
99
103
|
|
package/index.ts
CHANGED