@teemill/projects 1.43.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/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.43.0
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
@@ -1469,6 +1503,49 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
1469
1503
  options: localVarRequestOptions,
1470
1504
  };
1471
1505
  }),
1506
+ /**
1507
+ * Update a project user
1508
+ * @summary Update a user
1509
+ * @param {string} project Projects unique identifier
1510
+ * @param {string} user the unique id of the user
1511
+ * @param {UpdateUserRequest} updateUserRequest Updated project user data
1512
+ * @param {*} [options] Override http request option.
1513
+ * @throws {RequiredError}
1514
+ */
1515
+ updateUser: (project_1, user_1, updateUserRequest_1, ...args_1) => __awaiter(this, [project_1, user_1, updateUserRequest_1, ...args_1], void 0, function* (project, user, updateUserRequest, options = {}) {
1516
+ // verify required parameter 'project' is not null or undefined
1517
+ assertParamExists('updateUser', 'project', project);
1518
+ // verify required parameter 'user' is not null or undefined
1519
+ assertParamExists('updateUser', 'user', user);
1520
+ // verify required parameter 'updateUserRequest' is not null or undefined
1521
+ assertParamExists('updateUser', 'updateUserRequest', updateUserRequest);
1522
+ const localVarPath = `/v1/projects/{project}/users/{user}`
1523
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1524
+ .replace(`{${"user"}}`, encodeURIComponent(String(user)));
1525
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1526
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1527
+ let baseOptions;
1528
+ if (configuration) {
1529
+ baseOptions = configuration.baseOptions;
1530
+ }
1531
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1532
+ const localVarHeaderParameter = {};
1533
+ const localVarQueryParameter = {};
1534
+ // authentication session-oauth required
1535
+ // oauth required
1536
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1537
+ // authentication api-key required
1538
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1539
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1540
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1541
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1542
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1543
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserRequest, localVarRequestOptions, configuration);
1544
+ return {
1545
+ url: toPathString(localVarUrlObj),
1546
+ options: localVarRequestOptions,
1547
+ };
1548
+ }),
1472
1549
  };
1473
1550
  };
1474
1551
  /**
@@ -1478,6 +1555,22 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
1478
1555
  export const ProjectsApiFp = function (configuration) {
1479
1556
  const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
1480
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
+ },
1481
1574
  /**
1482
1575
  * Update multiple tasks in the workflow at once
1483
1576
  * @summary Bulk update tasks
@@ -2103,6 +2196,24 @@ export const ProjectsApiFp = function (configuration) {
2103
2196
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2104
2197
  });
2105
2198
  },
2199
+ /**
2200
+ * Update a project user
2201
+ * @summary Update a user
2202
+ * @param {string} project Projects unique identifier
2203
+ * @param {string} user the unique id of the user
2204
+ * @param {UpdateUserRequest} updateUserRequest Updated project user data
2205
+ * @param {*} [options] Override http request option.
2206
+ * @throws {RequiredError}
2207
+ */
2208
+ updateUser(project, user, updateUserRequest, options) {
2209
+ return __awaiter(this, void 0, void 0, function* () {
2210
+ var _a, _b, _c;
2211
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUser(project, user, updateUserRequest, options);
2212
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2213
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.updateUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2214
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2215
+ });
2216
+ },
2106
2217
  };
2107
2218
  };
2108
2219
  /**
@@ -2112,6 +2223,16 @@ export const ProjectsApiFp = function (configuration) {
2112
2223
  export const ProjectsApiFactory = function (configuration, basePath, axios) {
2113
2224
  const localVarFp = ProjectsApiFp(configuration);
2114
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
+ },
2115
2236
  /**
2116
2237
  * Update multiple tasks in the workflow at once
2117
2238
  * @summary Bulk update tasks
@@ -2482,6 +2603,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
2482
2603
  updateTask(requestParameters, options) {
2483
2604
  return localVarFp.updateTask(requestParameters.project, requestParameters.id, requestParameters.updateTaskRequest, options).then((request) => request(axios, basePath));
2484
2605
  },
2606
+ /**
2607
+ * Update a project user
2608
+ * @summary Update a user
2609
+ * @param {ProjectsApiUpdateUserRequest} requestParameters Request parameters.
2610
+ * @param {*} [options] Override http request option.
2611
+ * @throws {RequiredError}
2612
+ */
2613
+ updateUser(requestParameters, options) {
2614
+ return localVarFp.updateUser(requestParameters.project, requestParameters.user, requestParameters.updateUserRequest, options).then((request) => request(axios, basePath));
2615
+ },
2485
2616
  };
2486
2617
  };
2487
2618
  /**
@@ -2491,6 +2622,17 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
2491
2622
  * @extends {BaseAPI}
2492
2623
  */
2493
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
+ }
2494
2636
  /**
2495
2637
  * Update multiple tasks in the workflow at once
2496
2638
  * @summary Bulk update tasks
@@ -2898,4 +3040,15 @@ export class ProjectsApi extends BaseAPI {
2898
3040
  updateTask(requestParameters, options) {
2899
3041
  return ProjectsApiFp(this.configuration).updateTask(requestParameters.project, requestParameters.id, requestParameters.updateTaskRequest, options).then((request) => request(this.axios, this.basePath));
2900
3042
  }
3043
+ /**
3044
+ * Update a project user
3045
+ * @summary Update a user
3046
+ * @param {ProjectsApiUpdateUserRequest} requestParameters Request parameters.
3047
+ * @param {*} [options] Override http request option.
3048
+ * @throws {RequiredError}
3049
+ * @memberof ProjectsApi
3050
+ */
3051
+ updateUser(requestParameters, options) {
3052
+ return ProjectsApiFp(this.configuration).updateUser(requestParameters.project, requestParameters.user, requestParameters.updateUserRequest, options).then((request) => request(this.axios, this.basePath));
3053
+ }
2901
3054
  }
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage PodOS Projects
4
4
  *
5
- * The version of the OpenAPI document: 1.43.0
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).
package/dist/esm/base.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.43.0
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).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage PodOS Projects
4
4
  *
5
- * The version of the OpenAPI document: 1.43.0
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).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage PodOS Projects
6
6
  *
7
- * The version of the OpenAPI document: 1.43.0
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).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage PodOS Projects
4
4
  *
5
- * The version of the OpenAPI document: 1.43.0
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).
@@ -4,7 +4,7 @@
4
4
  * Projects API
5
5
  * Manage PodOS Projects
6
6
  *
7
- * The version of the OpenAPI document: 1.43.0
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).
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage PodOS Projects
4
4
  *
5
- * The version of the OpenAPI document: 1.43.0
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).
package/dist/esm/index.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.43.0
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).
package/dist/index.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.43.0
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).
package/dist/index.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.43.0
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).
@@ -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|
@@ -41,6 +42,61 @@ All URIs are relative to *https://localhost:8080*
41
42
  |[**updateIntegration**](#updateintegration) | **PATCH** /v1/projects/{project}/integrations/{integration} | Update integration|
42
43
  |[**updateProject**](#updateproject) | **PATCH** /v1/projects/{project} | Update project|
43
44
  |[**updateTask**](#updatetask) | **PATCH** /v1/projects/{project}/tasks/{id} | Update Task|
45
+ |[**updateUser**](#updateuser) | **PATCH** /v1/projects/{project}/users/{user} | Update a user|
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)
44
100
 
45
101
  # **bulkUpdateTasks**
46
102
  > ListTasksResponse bulkUpdateTasks(bulkUpdateTasksRequest)
@@ -2193,3 +2249,66 @@ const { status, data } = await apiInstance.updateTask(
2193
2249
 
2194
2250
  [[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)
2195
2251
 
2252
+ # **updateUser**
2253
+ > ProjectUser updateUser(updateUserRequest)
2254
+
2255
+ Update a project user
2256
+
2257
+ ### Example
2258
+
2259
+ ```typescript
2260
+ import {
2261
+ ProjectsApi,
2262
+ Configuration,
2263
+ UpdateUserRequest
2264
+ } from '@teemill/projects';
2265
+
2266
+ const configuration = new Configuration();
2267
+ const apiInstance = new ProjectsApi(configuration);
2268
+
2269
+ let project: string; //Projects unique identifier (default to undefined)
2270
+ let user: string; //the unique id of the user (default to undefined)
2271
+ let updateUserRequest: UpdateUserRequest; //Updated project user data
2272
+
2273
+ const { status, data } = await apiInstance.updateUser(
2274
+ project,
2275
+ user,
2276
+ updateUserRequest
2277
+ );
2278
+ ```
2279
+
2280
+ ### Parameters
2281
+
2282
+ |Name | Type | Description | Notes|
2283
+ |------------- | ------------- | ------------- | -------------|
2284
+ | **updateUserRequest** | **UpdateUserRequest**| Updated project user data | |
2285
+ | **project** | [**string**] | Projects unique identifier | defaults to undefined|
2286
+ | **user** | [**string**] | the unique id of the user | defaults to undefined|
2287
+
2288
+
2289
+ ### Return type
2290
+
2291
+ **ProjectUser**
2292
+
2293
+ ### Authorization
2294
+
2295
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
2296
+
2297
+ ### HTTP request headers
2298
+
2299
+ - **Content-Type**: application/json
2300
+ - **Accept**: application/json
2301
+
2302
+
2303
+ ### HTTP response details
2304
+ | Status code | Description | Response headers |
2305
+ |-------------|-------------|------------------|
2306
+ |**200** | Successfully retrieved a project user | - |
2307
+ |**400** | Failed validation | - |
2308
+ |**401** | Not authorised to access this resource | - |
2309
+ |**403** | Refuse to authorize | - |
2310
+ |**404** | Resource not found | - |
2311
+ |**500** | Unknown server error | - |
2312
+
2313
+ [[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)
2314
+
@@ -0,0 +1,20 @@
1
+ # UpdateUserRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **providesSupport** | **boolean** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { UpdateUserRequest } from '@teemill/projects';
14
+
15
+ const instance: UpdateUserRequest = {
16
+ providesSupport,
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)
package/index.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.43.0
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).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/projects",
3
- "version": "1.43.0",
3
+ "version": "1.45.1",
4
4
  "description": "OpenAPI client for @teemill/projects",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {