@teemill/projects 1.44.0 → 1.45.1
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 +3 -2
- package/api.ts +91 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +47 -1
- package/dist/api.js +72 -1
- 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 +47 -1
- package/dist/esm/api.js +72 -1
- 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/ProjectsApi.md +55 -0
- 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.45.1
|
|
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.45.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -51,6 +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) | **GET** /v1/projects/{project}/tasks/archive | Archive all done tasks
|
|
54
55
|
*ProjectsApi* | [**bulkUpdateTasks**](docs/ProjectsApi.md#bulkupdatetasks) | **PATCH** /v1/projects/{project}/tasks | Bulk update tasks
|
|
55
56
|
*ProjectsApi* | [**createAuth**](docs/ProjectsApi.md#createauth) | **POST** /v1/projects/{project}/auth | Create auth token
|
|
56
57
|
*ProjectsApi* | [**createBookmark**](docs/ProjectsApi.md#createbookmark) | **POST** /v1/projects/{project}/bookmarks | Create bookmark
|
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.45.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1386,6 +1386,47 @@ export interface UpdateUserRequest {
|
|
|
1386
1386
|
*/
|
|
1387
1387
|
export const ProjectsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1388
1388
|
return {
|
|
1389
|
+
/**
|
|
1390
|
+
* Archive all the done tasks in the workflow
|
|
1391
|
+
* @summary Archive all done tasks
|
|
1392
|
+
* @param {string} project Projects unique identifier
|
|
1393
|
+
* @param {*} [options] Override http request option.
|
|
1394
|
+
* @throws {RequiredError}
|
|
1395
|
+
*/
|
|
1396
|
+
archiveTasks: async (project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1397
|
+
// verify required parameter 'project' is not null or undefined
|
|
1398
|
+
assertParamExists('archiveTasks', 'project', project)
|
|
1399
|
+
const localVarPath = `/v1/projects/{project}/tasks/archive`
|
|
1400
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
1401
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1402
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1403
|
+
let baseOptions;
|
|
1404
|
+
if (configuration) {
|
|
1405
|
+
baseOptions = configuration.baseOptions;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1409
|
+
const localVarHeaderParameter = {} as any;
|
|
1410
|
+
const localVarQueryParameter = {} as any;
|
|
1411
|
+
|
|
1412
|
+
// authentication session-oauth required
|
|
1413
|
+
// oauth required
|
|
1414
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
1415
|
+
|
|
1416
|
+
// authentication api-key required
|
|
1417
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1418
|
+
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1423
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1424
|
+
|
|
1425
|
+
return {
|
|
1426
|
+
url: toPathString(localVarUrlObj),
|
|
1427
|
+
options: localVarRequestOptions,
|
|
1428
|
+
};
|
|
1429
|
+
},
|
|
1389
1430
|
/**
|
|
1390
1431
|
* Update multiple tasks in the workflow at once
|
|
1391
1432
|
* @summary Bulk update tasks
|
|
@@ -3125,6 +3166,19 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
3125
3166
|
export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
3126
3167
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration)
|
|
3127
3168
|
return {
|
|
3169
|
+
/**
|
|
3170
|
+
* Archive all the done tasks in the workflow
|
|
3171
|
+
* @summary Archive all done tasks
|
|
3172
|
+
* @param {string} project Projects unique identifier
|
|
3173
|
+
* @param {*} [options] Override http request option.
|
|
3174
|
+
* @throws {RequiredError}
|
|
3175
|
+
*/
|
|
3176
|
+
async archiveTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.archiveTasks(project, options);
|
|
3178
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3179
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.archiveTasks']?.[localVarOperationServerIndex]?.url;
|
|
3180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3181
|
+
},
|
|
3128
3182
|
/**
|
|
3129
3183
|
* Update multiple tasks in the workflow at once
|
|
3130
3184
|
* @summary Bulk update tasks
|
|
@@ -3664,6 +3718,16 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
3664
3718
|
export const ProjectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3665
3719
|
const localVarFp = ProjectsApiFp(configuration)
|
|
3666
3720
|
return {
|
|
3721
|
+
/**
|
|
3722
|
+
* Archive all the done tasks in the workflow
|
|
3723
|
+
* @summary Archive all done tasks
|
|
3724
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
3725
|
+
* @param {*} [options] Override http request option.
|
|
3726
|
+
* @throws {RequiredError}
|
|
3727
|
+
*/
|
|
3728
|
+
archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3729
|
+
return localVarFp.archiveTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
3730
|
+
},
|
|
3667
3731
|
/**
|
|
3668
3732
|
* Update multiple tasks in the workflow at once
|
|
3669
3733
|
* @summary Bulk update tasks
|
|
@@ -4047,6 +4111,20 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4047
4111
|
};
|
|
4048
4112
|
};
|
|
4049
4113
|
|
|
4114
|
+
/**
|
|
4115
|
+
* Request parameters for archiveTasks operation in ProjectsApi.
|
|
4116
|
+
* @export
|
|
4117
|
+
* @interface ProjectsApiArchiveTasksRequest
|
|
4118
|
+
*/
|
|
4119
|
+
export interface ProjectsApiArchiveTasksRequest {
|
|
4120
|
+
/**
|
|
4121
|
+
* Projects unique identifier
|
|
4122
|
+
* @type {string}
|
|
4123
|
+
* @memberof ProjectsApiArchiveTasks
|
|
4124
|
+
*/
|
|
4125
|
+
readonly project: string
|
|
4126
|
+
}
|
|
4127
|
+
|
|
4050
4128
|
/**
|
|
4051
4129
|
* Request parameters for bulkUpdateTasks operation in ProjectsApi.
|
|
4052
4130
|
* @export
|
|
@@ -4831,6 +4909,18 @@ export interface ProjectsApiUpdateUserRequest {
|
|
|
4831
4909
|
* @extends {BaseAPI}
|
|
4832
4910
|
*/
|
|
4833
4911
|
export class ProjectsApi extends BaseAPI {
|
|
4912
|
+
/**
|
|
4913
|
+
* Archive all the done tasks in the workflow
|
|
4914
|
+
* @summary Archive all done tasks
|
|
4915
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
4916
|
+
* @param {*} [options] Override http request option.
|
|
4917
|
+
* @throws {RequiredError}
|
|
4918
|
+
* @memberof ProjectsApi
|
|
4919
|
+
*/
|
|
4920
|
+
public archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig) {
|
|
4921
|
+
return ProjectsApiFp(this.configuration).archiveTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4834
4924
|
/**
|
|
4835
4925
|
* Update multiple tasks in the workflow at once
|
|
4836
4926
|
* @summary Bulk update tasks
|
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.45.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1350,6 +1350,14 @@ export interface UpdateUserRequest {
|
|
|
1350
1350
|
* @export
|
|
1351
1351
|
*/
|
|
1352
1352
|
export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1353
|
+
/**
|
|
1354
|
+
* Archive all the done tasks in the workflow
|
|
1355
|
+
* @summary Archive all done tasks
|
|
1356
|
+
* @param {string} project Projects unique identifier
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
*/
|
|
1360
|
+
archiveTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1353
1361
|
/**
|
|
1354
1362
|
* Update multiple tasks in the workflow at once
|
|
1355
1363
|
* @summary Bulk update tasks
|
|
@@ -1695,6 +1703,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1695
1703
|
* @export
|
|
1696
1704
|
*/
|
|
1697
1705
|
export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
1706
|
+
/**
|
|
1707
|
+
* Archive all the done tasks in the workflow
|
|
1708
|
+
* @summary Archive all done tasks
|
|
1709
|
+
* @param {string} project Projects unique identifier
|
|
1710
|
+
* @param {*} [options] Override http request option.
|
|
1711
|
+
* @throws {RequiredError}
|
|
1712
|
+
*/
|
|
1713
|
+
archiveTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1698
1714
|
/**
|
|
1699
1715
|
* Update multiple tasks in the workflow at once
|
|
1700
1716
|
* @summary Bulk update tasks
|
|
@@ -2040,6 +2056,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
2040
2056
|
* @export
|
|
2041
2057
|
*/
|
|
2042
2058
|
export declare const ProjectsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2059
|
+
/**
|
|
2060
|
+
* Archive all the done tasks in the workflow
|
|
2061
|
+
* @summary Archive all done tasks
|
|
2062
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2063
|
+
* @param {*} [options] Override http request option.
|
|
2064
|
+
* @throws {RequiredError}
|
|
2065
|
+
*/
|
|
2066
|
+
archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2043
2067
|
/**
|
|
2044
2068
|
* Update multiple tasks in the workflow at once
|
|
2045
2069
|
* @summary Bulk update tasks
|
|
@@ -2345,6 +2369,19 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
2345
2369
|
*/
|
|
2346
2370
|
updateUser(requestParameters: ProjectsApiUpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectUser>;
|
|
2347
2371
|
};
|
|
2372
|
+
/**
|
|
2373
|
+
* Request parameters for archiveTasks operation in ProjectsApi.
|
|
2374
|
+
* @export
|
|
2375
|
+
* @interface ProjectsApiArchiveTasksRequest
|
|
2376
|
+
*/
|
|
2377
|
+
export interface ProjectsApiArchiveTasksRequest {
|
|
2378
|
+
/**
|
|
2379
|
+
* Projects unique identifier
|
|
2380
|
+
* @type {string}
|
|
2381
|
+
* @memberof ProjectsApiArchiveTasks
|
|
2382
|
+
*/
|
|
2383
|
+
readonly project: string;
|
|
2384
|
+
}
|
|
2348
2385
|
/**
|
|
2349
2386
|
* Request parameters for bulkUpdateTasks operation in ProjectsApi.
|
|
2350
2387
|
* @export
|
|
@@ -3056,6 +3093,15 @@ export interface ProjectsApiUpdateUserRequest {
|
|
|
3056
3093
|
* @extends {BaseAPI}
|
|
3057
3094
|
*/
|
|
3058
3095
|
export declare class ProjectsApi extends BaseAPI {
|
|
3096
|
+
/**
|
|
3097
|
+
* Archive all the done tasks in the workflow
|
|
3098
|
+
* @summary Archive all done tasks
|
|
3099
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
3100
|
+
* @param {*} [options] Override http request option.
|
|
3101
|
+
* @throws {RequiredError}
|
|
3102
|
+
* @memberof ProjectsApi
|
|
3103
|
+
*/
|
|
3104
|
+
archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3059
3105
|
/**
|
|
3060
3106
|
* Update multiple tasks in the workflow at once
|
|
3061
3107
|
* @summary Bulk update tasks
|
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.45.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -74,6 +74,40 @@ exports.TemplateCode = {
|
|
|
74
74
|
*/
|
|
75
75
|
const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
76
76
|
return {
|
|
77
|
+
/**
|
|
78
|
+
* Archive all the done tasks in the workflow
|
|
79
|
+
* @summary Archive all done tasks
|
|
80
|
+
* @param {string} project Projects unique identifier
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
archiveTasks: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
85
|
+
// verify required parameter 'project' is not null or undefined
|
|
86
|
+
(0, common_1.assertParamExists)('archiveTasks', 'project', project);
|
|
87
|
+
const localVarPath = `/v1/projects/{project}/tasks/archive`
|
|
88
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
89
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
if (configuration) {
|
|
93
|
+
baseOptions = configuration.baseOptions;
|
|
94
|
+
}
|
|
95
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
96
|
+
const localVarHeaderParameter = {};
|
|
97
|
+
const localVarQueryParameter = {};
|
|
98
|
+
// authentication session-oauth required
|
|
99
|
+
// oauth required
|
|
100
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
101
|
+
// authentication api-key required
|
|
102
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
103
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
106
|
+
return {
|
|
107
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
108
|
+
options: localVarRequestOptions,
|
|
109
|
+
};
|
|
110
|
+
}),
|
|
77
111
|
/**
|
|
78
112
|
* Update multiple tasks in the workflow at once
|
|
79
113
|
* @summary Bulk update tasks
|
|
@@ -1525,6 +1559,22 @@ exports.ProjectsApiAxiosParamCreator = ProjectsApiAxiosParamCreator;
|
|
|
1525
1559
|
const ProjectsApiFp = function (configuration) {
|
|
1526
1560
|
const localVarAxiosParamCreator = (0, exports.ProjectsApiAxiosParamCreator)(configuration);
|
|
1527
1561
|
return {
|
|
1562
|
+
/**
|
|
1563
|
+
* Archive all the done tasks in the workflow
|
|
1564
|
+
* @summary Archive all done tasks
|
|
1565
|
+
* @param {string} project Projects unique identifier
|
|
1566
|
+
* @param {*} [options] Override http request option.
|
|
1567
|
+
* @throws {RequiredError}
|
|
1568
|
+
*/
|
|
1569
|
+
archiveTasks(project, options) {
|
|
1570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1571
|
+
var _a, _b, _c;
|
|
1572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveTasks(project, options);
|
|
1573
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1574
|
+
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;
|
|
1575
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1576
|
+
});
|
|
1577
|
+
},
|
|
1528
1578
|
/**
|
|
1529
1579
|
* Update multiple tasks in the workflow at once
|
|
1530
1580
|
* @summary Bulk update tasks
|
|
@@ -2178,6 +2228,16 @@ exports.ProjectsApiFp = ProjectsApiFp;
|
|
|
2178
2228
|
const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
2179
2229
|
const localVarFp = (0, exports.ProjectsApiFp)(configuration);
|
|
2180
2230
|
return {
|
|
2231
|
+
/**
|
|
2232
|
+
* Archive all the done tasks in the workflow
|
|
2233
|
+
* @summary Archive all done tasks
|
|
2234
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2235
|
+
* @param {*} [options] Override http request option.
|
|
2236
|
+
* @throws {RequiredError}
|
|
2237
|
+
*/
|
|
2238
|
+
archiveTasks(requestParameters, options) {
|
|
2239
|
+
return localVarFp.archiveTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2240
|
+
},
|
|
2181
2241
|
/**
|
|
2182
2242
|
* Update multiple tasks in the workflow at once
|
|
2183
2243
|
* @summary Bulk update tasks
|
|
@@ -2568,6 +2628,17 @@ exports.ProjectsApiFactory = ProjectsApiFactory;
|
|
|
2568
2628
|
* @extends {BaseAPI}
|
|
2569
2629
|
*/
|
|
2570
2630
|
class ProjectsApi extends base_1.BaseAPI {
|
|
2631
|
+
/**
|
|
2632
|
+
* Archive all the done tasks in the workflow
|
|
2633
|
+
* @summary Archive all done tasks
|
|
2634
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2635
|
+
* @param {*} [options] Override http request option.
|
|
2636
|
+
* @throws {RequiredError}
|
|
2637
|
+
* @memberof ProjectsApi
|
|
2638
|
+
*/
|
|
2639
|
+
archiveTasks(requestParameters, options) {
|
|
2640
|
+
return (0, exports.ProjectsApiFp)(this.configuration).archiveTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2641
|
+
}
|
|
2571
2642
|
/**
|
|
2572
2643
|
* Update multiple tasks in the workflow at once
|
|
2573
2644
|
* @summary Bulk update tasks
|
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.45.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1350,6 +1350,14 @@ export interface UpdateUserRequest {
|
|
|
1350
1350
|
* @export
|
|
1351
1351
|
*/
|
|
1352
1352
|
export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1353
|
+
/**
|
|
1354
|
+
* Archive all the done tasks in the workflow
|
|
1355
|
+
* @summary Archive all done tasks
|
|
1356
|
+
* @param {string} project Projects unique identifier
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
*/
|
|
1360
|
+
archiveTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1353
1361
|
/**
|
|
1354
1362
|
* Update multiple tasks in the workflow at once
|
|
1355
1363
|
* @summary Bulk update tasks
|
|
@@ -1695,6 +1703,14 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1695
1703
|
* @export
|
|
1696
1704
|
*/
|
|
1697
1705
|
export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
1706
|
+
/**
|
|
1707
|
+
* Archive all the done tasks in the workflow
|
|
1708
|
+
* @summary Archive all done tasks
|
|
1709
|
+
* @param {string} project Projects unique identifier
|
|
1710
|
+
* @param {*} [options] Override http request option.
|
|
1711
|
+
* @throws {RequiredError}
|
|
1712
|
+
*/
|
|
1713
|
+
archiveTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1698
1714
|
/**
|
|
1699
1715
|
* Update multiple tasks in the workflow at once
|
|
1700
1716
|
* @summary Bulk update tasks
|
|
@@ -2040,6 +2056,14 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
2040
2056
|
* @export
|
|
2041
2057
|
*/
|
|
2042
2058
|
export declare const ProjectsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2059
|
+
/**
|
|
2060
|
+
* Archive all the done tasks in the workflow
|
|
2061
|
+
* @summary Archive all done tasks
|
|
2062
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2063
|
+
* @param {*} [options] Override http request option.
|
|
2064
|
+
* @throws {RequiredError}
|
|
2065
|
+
*/
|
|
2066
|
+
archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2043
2067
|
/**
|
|
2044
2068
|
* Update multiple tasks in the workflow at once
|
|
2045
2069
|
* @summary Bulk update tasks
|
|
@@ -2345,6 +2369,19 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
2345
2369
|
*/
|
|
2346
2370
|
updateUser(requestParameters: ProjectsApiUpdateUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProjectUser>;
|
|
2347
2371
|
};
|
|
2372
|
+
/**
|
|
2373
|
+
* Request parameters for archiveTasks operation in ProjectsApi.
|
|
2374
|
+
* @export
|
|
2375
|
+
* @interface ProjectsApiArchiveTasksRequest
|
|
2376
|
+
*/
|
|
2377
|
+
export interface ProjectsApiArchiveTasksRequest {
|
|
2378
|
+
/**
|
|
2379
|
+
* Projects unique identifier
|
|
2380
|
+
* @type {string}
|
|
2381
|
+
* @memberof ProjectsApiArchiveTasks
|
|
2382
|
+
*/
|
|
2383
|
+
readonly project: string;
|
|
2384
|
+
}
|
|
2348
2385
|
/**
|
|
2349
2386
|
* Request parameters for bulkUpdateTasks operation in ProjectsApi.
|
|
2350
2387
|
* @export
|
|
@@ -3056,6 +3093,15 @@ export interface ProjectsApiUpdateUserRequest {
|
|
|
3056
3093
|
* @extends {BaseAPI}
|
|
3057
3094
|
*/
|
|
3058
3095
|
export declare class ProjectsApi extends BaseAPI {
|
|
3096
|
+
/**
|
|
3097
|
+
* Archive all the done tasks in the workflow
|
|
3098
|
+
* @summary Archive all done tasks
|
|
3099
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
3100
|
+
* @param {*} [options] Override http request option.
|
|
3101
|
+
* @throws {RequiredError}
|
|
3102
|
+
* @memberof ProjectsApi
|
|
3103
|
+
*/
|
|
3104
|
+
archiveTasks(requestParameters: ProjectsApiArchiveTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3059
3105
|
/**
|
|
3060
3106
|
* Update multiple tasks in the workflow at once
|
|
3061
3107
|
* @summary Bulk update tasks
|
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.45.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -71,6 +71,40 @@ export const TemplateCode = {
|
|
|
71
71
|
*/
|
|
72
72
|
export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
73
73
|
return {
|
|
74
|
+
/**
|
|
75
|
+
* Archive all the done tasks in the workflow
|
|
76
|
+
* @summary Archive all done tasks
|
|
77
|
+
* @param {string} project Projects unique identifier
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
archiveTasks: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
82
|
+
// verify required parameter 'project' is not null or undefined
|
|
83
|
+
assertParamExists('archiveTasks', 'project', project);
|
|
84
|
+
const localVarPath = `/v1/projects/{project}/tasks/archive`
|
|
85
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
86
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
88
|
+
let baseOptions;
|
|
89
|
+
if (configuration) {
|
|
90
|
+
baseOptions = configuration.baseOptions;
|
|
91
|
+
}
|
|
92
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
93
|
+
const localVarHeaderParameter = {};
|
|
94
|
+
const localVarQueryParameter = {};
|
|
95
|
+
// authentication session-oauth required
|
|
96
|
+
// oauth required
|
|
97
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
98
|
+
// authentication api-key required
|
|
99
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
100
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
101
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
102
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
103
|
+
return {
|
|
104
|
+
url: toPathString(localVarUrlObj),
|
|
105
|
+
options: localVarRequestOptions,
|
|
106
|
+
};
|
|
107
|
+
}),
|
|
74
108
|
/**
|
|
75
109
|
* Update multiple tasks in the workflow at once
|
|
76
110
|
* @summary Bulk update tasks
|
|
@@ -1521,6 +1555,22 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1521
1555
|
export const ProjectsApiFp = function (configuration) {
|
|
1522
1556
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
|
|
1523
1557
|
return {
|
|
1558
|
+
/**
|
|
1559
|
+
* Archive all the done tasks in the workflow
|
|
1560
|
+
* @summary Archive all done tasks
|
|
1561
|
+
* @param {string} project Projects unique identifier
|
|
1562
|
+
* @param {*} [options] Override http request option.
|
|
1563
|
+
* @throws {RequiredError}
|
|
1564
|
+
*/
|
|
1565
|
+
archiveTasks(project, options) {
|
|
1566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1567
|
+
var _a, _b, _c;
|
|
1568
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.archiveTasks(project, options);
|
|
1569
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1570
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.archiveTasks']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1571
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1572
|
+
});
|
|
1573
|
+
},
|
|
1524
1574
|
/**
|
|
1525
1575
|
* Update multiple tasks in the workflow at once
|
|
1526
1576
|
* @summary Bulk update tasks
|
|
@@ -2173,6 +2223,16 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
2173
2223
|
export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
2174
2224
|
const localVarFp = ProjectsApiFp(configuration);
|
|
2175
2225
|
return {
|
|
2226
|
+
/**
|
|
2227
|
+
* Archive all the done tasks in the workflow
|
|
2228
|
+
* @summary Archive all done tasks
|
|
2229
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2230
|
+
* @param {*} [options] Override http request option.
|
|
2231
|
+
* @throws {RequiredError}
|
|
2232
|
+
*/
|
|
2233
|
+
archiveTasks(requestParameters, options) {
|
|
2234
|
+
return localVarFp.archiveTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2235
|
+
},
|
|
2176
2236
|
/**
|
|
2177
2237
|
* Update multiple tasks in the workflow at once
|
|
2178
2238
|
* @summary Bulk update tasks
|
|
@@ -2562,6 +2622,17 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2562
2622
|
* @extends {BaseAPI}
|
|
2563
2623
|
*/
|
|
2564
2624
|
export class ProjectsApi extends BaseAPI {
|
|
2625
|
+
/**
|
|
2626
|
+
* Archive all the done tasks in the workflow
|
|
2627
|
+
* @summary Archive all done tasks
|
|
2628
|
+
* @param {ProjectsApiArchiveTasksRequest} requestParameters Request parameters.
|
|
2629
|
+
* @param {*} [options] Override http request option.
|
|
2630
|
+
* @throws {RequiredError}
|
|
2631
|
+
* @memberof ProjectsApi
|
|
2632
|
+
*/
|
|
2633
|
+
archiveTasks(requestParameters, options) {
|
|
2634
|
+
return ProjectsApiFp(this.configuration).archiveTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2635
|
+
}
|
|
2565
2636
|
/**
|
|
2566
2637
|
* Update multiple tasks in the workflow at once
|
|
2567
2638
|
* @summary Bulk update tasks
|
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
package/docs/ProjectsApi.md
CHANGED
|
@@ -4,6 +4,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
+
|[**archiveTasks**](#archivetasks) | **GET** /v1/projects/{project}/tasks/archive | Archive all done tasks|
|
|
7
8
|
|[**bulkUpdateTasks**](#bulkupdatetasks) | **PATCH** /v1/projects/{project}/tasks | Bulk update tasks|
|
|
8
9
|
|[**createAuth**](#createauth) | **POST** /v1/projects/{project}/auth | Create auth token|
|
|
9
10
|
|[**createBookmark**](#createbookmark) | **POST** /v1/projects/{project}/bookmarks | Create bookmark|
|
|
@@ -43,6 +44,60 @@ All URIs are relative to *https://localhost:8080*
|
|
|
43
44
|
|[**updateTask**](#updatetask) | **PATCH** /v1/projects/{project}/tasks/{id} | Update Task|
|
|
44
45
|
|[**updateUser**](#updateuser) | **PATCH** /v1/projects/{project}/users/{user} | Update a user|
|
|
45
46
|
|
|
47
|
+
# **archiveTasks**
|
|
48
|
+
> archiveTasks()
|
|
49
|
+
|
|
50
|
+
Archive all the done tasks in the workflow
|
|
51
|
+
|
|
52
|
+
### Example
|
|
53
|
+
|
|
54
|
+
```typescript
|
|
55
|
+
import {
|
|
56
|
+
ProjectsApi,
|
|
57
|
+
Configuration
|
|
58
|
+
} from '@teemill/projects';
|
|
59
|
+
|
|
60
|
+
const configuration = new Configuration();
|
|
61
|
+
const apiInstance = new ProjectsApi(configuration);
|
|
62
|
+
|
|
63
|
+
let project: string; //Projects unique identifier (default to undefined)
|
|
64
|
+
|
|
65
|
+
const { status, data } = await apiInstance.archiveTasks(
|
|
66
|
+
project
|
|
67
|
+
);
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Parameters
|
|
71
|
+
|
|
72
|
+
|Name | Type | Description | Notes|
|
|
73
|
+
|------------- | ------------- | ------------- | -------------|
|
|
74
|
+
| **project** | [**string**] | Projects unique identifier | defaults to undefined|
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
### Return type
|
|
78
|
+
|
|
79
|
+
void (empty response body)
|
|
80
|
+
|
|
81
|
+
### Authorization
|
|
82
|
+
|
|
83
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
84
|
+
|
|
85
|
+
### HTTP request headers
|
|
86
|
+
|
|
87
|
+
- **Content-Type**: Not defined
|
|
88
|
+
- **Accept**: application/json
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
### HTTP response details
|
|
92
|
+
| Status code | Description | Response headers |
|
|
93
|
+
|-------------|-------------|------------------|
|
|
94
|
+
|**204** | Tasks archived | - |
|
|
95
|
+
|**401** | Not authorised to access this resource | - |
|
|
96
|
+
|**403** | Refuse to authorize | - |
|
|
97
|
+
|**500** | Unknown server error | - |
|
|
98
|
+
|
|
99
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
100
|
+
|
|
46
101
|
# **bulkUpdateTasks**
|
|
47
102
|
> ListTasksResponse bulkUpdateTasks(bulkUpdateTasksRequest)
|
|
48
103
|
|
package/index.ts
CHANGED