@teemill/projects 1.51.0 → 1.53.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/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.51.0
7
+ * The version of the OpenAPI document: 1.53.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -319,6 +319,43 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
319
319
  options: localVarRequestOptions,
320
320
  };
321
321
  }),
322
+ /**
323
+ * Create a user group in the project
324
+ * @summary Create group
325
+ * @param {string} project Projects unique identifier
326
+ * @param {CreateUserGroupRequest} [createUserGroupRequest] Create a new user group in the project
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ createUserGroup: (project_1, createUserGroupRequest_1, ...args_1) => __awaiter(this, [project_1, createUserGroupRequest_1, ...args_1], void 0, function* (project, createUserGroupRequest, options = {}) {
331
+ // verify required parameter 'project' is not null or undefined
332
+ assertParamExists('createUserGroup', 'project', project);
333
+ const localVarPath = `/v1/projects/{project}/user-groups`
334
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
335
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
336
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
337
+ let baseOptions;
338
+ if (configuration) {
339
+ baseOptions = configuration.baseOptions;
340
+ }
341
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
342
+ const localVarHeaderParameter = {};
343
+ const localVarQueryParameter = {};
344
+ // authentication session-oauth required
345
+ // oauth required
346
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
347
+ // authentication api-key required
348
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
349
+ localVarHeaderParameter['Content-Type'] = 'application/json';
350
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
353
+ localVarRequestOptions.data = serializeDataIfNeeded(createUserGroupRequest, localVarRequestOptions, configuration);
354
+ return {
355
+ url: toPathString(localVarUrlObj),
356
+ options: localVarRequestOptions,
357
+ };
358
+ }),
322
359
  /**
323
360
  * Delete an auth token for the project
324
361
  * @summary Delete auth token
@@ -543,6 +580,44 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
543
580
  options: localVarRequestOptions,
544
581
  };
545
582
  }),
583
+ /**
584
+ * Delete a user group in the project
585
+ * @summary Delete group
586
+ * @param {string} project Projects unique identifier
587
+ * @param {string} userGroup The user group identifier
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ deleteUserGroup: (project_1, userGroup_1, ...args_1) => __awaiter(this, [project_1, userGroup_1, ...args_1], void 0, function* (project, userGroup, options = {}) {
592
+ // verify required parameter 'project' is not null or undefined
593
+ assertParamExists('deleteUserGroup', 'project', project);
594
+ // verify required parameter 'userGroup' is not null or undefined
595
+ assertParamExists('deleteUserGroup', 'userGroup', userGroup);
596
+ const localVarPath = `/v1/projects/{project}/user-groups/{userGroup}`
597
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
598
+ .replace(`{${"userGroup"}}`, encodeURIComponent(String(userGroup)));
599
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
600
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
601
+ let baseOptions;
602
+ if (configuration) {
603
+ baseOptions = configuration.baseOptions;
604
+ }
605
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
606
+ const localVarHeaderParameter = {};
607
+ const localVarQueryParameter = {};
608
+ // authentication session-oauth required
609
+ // oauth required
610
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
611
+ // authentication api-key required
612
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
613
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
614
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
615
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
616
+ return {
617
+ url: toPathString(localVarUrlObj),
618
+ options: localVarRequestOptions,
619
+ };
620
+ }),
546
621
  /**
547
622
  * Export all the OKRs in the planner
548
623
  * @summary Export all OKRs
@@ -1055,6 +1130,44 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
1055
1130
  options: localVarRequestOptions,
1056
1131
  };
1057
1132
  }),
1133
+ /**
1134
+ * Get a user group in the project
1135
+ * @summary Get group
1136
+ * @param {string} project Projects unique identifier
1137
+ * @param {string} userGroup The user group identifier
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ getUserGroup: (project_1, userGroup_1, ...args_1) => __awaiter(this, [project_1, userGroup_1, ...args_1], void 0, function* (project, userGroup, options = {}) {
1142
+ // verify required parameter 'project' is not null or undefined
1143
+ assertParamExists('getUserGroup', 'project', project);
1144
+ // verify required parameter 'userGroup' is not null or undefined
1145
+ assertParamExists('getUserGroup', 'userGroup', userGroup);
1146
+ const localVarPath = `/v1/projects/{project}/user-groups/{userGroup}`
1147
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1148
+ .replace(`{${"userGroup"}}`, encodeURIComponent(String(userGroup)));
1149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1151
+ let baseOptions;
1152
+ if (configuration) {
1153
+ baseOptions = configuration.baseOptions;
1154
+ }
1155
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1156
+ const localVarHeaderParameter = {};
1157
+ const localVarQueryParameter = {};
1158
+ // authentication session-oauth required
1159
+ // oauth required
1160
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1161
+ // authentication api-key required
1162
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1163
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1164
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1165
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1166
+ return {
1167
+ url: toPathString(localVarUrlObj),
1168
+ options: localVarRequestOptions,
1169
+ };
1170
+ }),
1058
1171
  /**
1059
1172
  * Get the details of the user\'s invite to the project
1060
1173
  * @summary Get invite
@@ -1322,6 +1435,40 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
1322
1435
  options: localVarRequestOptions,
1323
1436
  };
1324
1437
  }),
1438
+ /**
1439
+ * List the user groups in the project
1440
+ * @summary List groups
1441
+ * @param {string} project Projects unique identifier
1442
+ * @param {*} [options] Override http request option.
1443
+ * @throws {RequiredError}
1444
+ */
1445
+ listUserGroups: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
1446
+ // verify required parameter 'project' is not null or undefined
1447
+ assertParamExists('listUserGroups', 'project', project);
1448
+ const localVarPath = `/v1/projects/{project}/user-groups`
1449
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
1450
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1451
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1452
+ let baseOptions;
1453
+ if (configuration) {
1454
+ baseOptions = configuration.baseOptions;
1455
+ }
1456
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1457
+ const localVarHeaderParameter = {};
1458
+ const localVarQueryParameter = {};
1459
+ // authentication session-oauth required
1460
+ // oauth required
1461
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1462
+ // authentication api-key required
1463
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1466
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1467
+ return {
1468
+ url: toPathString(localVarUrlObj),
1469
+ options: localVarRequestOptions,
1470
+ };
1471
+ }),
1325
1472
  /**
1326
1473
  * Reset 2FA for a given user
1327
1474
  * @summary Reset 2FA
@@ -1689,6 +1836,47 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
1689
1836
  options: localVarRequestOptions,
1690
1837
  };
1691
1838
  }),
1839
+ /**
1840
+ * Update a user group in the project
1841
+ * @summary Update group
1842
+ * @param {string} project Projects unique identifier
1843
+ * @param {string} userGroup The user group identifier
1844
+ * @param {UpdateUserGroupRequest} [updateUserGroupRequest] Update a user group in the project
1845
+ * @param {*} [options] Override http request option.
1846
+ * @throws {RequiredError}
1847
+ */
1848
+ updateUserGroup: (project_1, userGroup_1, updateUserGroupRequest_1, ...args_1) => __awaiter(this, [project_1, userGroup_1, updateUserGroupRequest_1, ...args_1], void 0, function* (project, userGroup, updateUserGroupRequest, options = {}) {
1849
+ // verify required parameter 'project' is not null or undefined
1850
+ assertParamExists('updateUserGroup', 'project', project);
1851
+ // verify required parameter 'userGroup' is not null or undefined
1852
+ assertParamExists('updateUserGroup', 'userGroup', userGroup);
1853
+ const localVarPath = `/v1/projects/{project}/user-groups/{userGroup}`
1854
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
1855
+ .replace(`{${"userGroup"}}`, encodeURIComponent(String(userGroup)));
1856
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1857
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1858
+ let baseOptions;
1859
+ if (configuration) {
1860
+ baseOptions = configuration.baseOptions;
1861
+ }
1862
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
1863
+ const localVarHeaderParameter = {};
1864
+ const localVarQueryParameter = {};
1865
+ // authentication session-oauth required
1866
+ // oauth required
1867
+ yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
1868
+ // authentication api-key required
1869
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1870
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1871
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1872
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1873
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1874
+ localVarRequestOptions.data = serializeDataIfNeeded(updateUserGroupRequest, localVarRequestOptions, configuration);
1875
+ return {
1876
+ url: toPathString(localVarUrlObj),
1877
+ options: localVarRequestOptions,
1878
+ };
1879
+ }),
1692
1880
  };
1693
1881
  };
1694
1882
  /**
@@ -1813,6 +2001,23 @@ export const ProjectsApiFp = function (configuration) {
1813
2001
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1814
2002
  });
1815
2003
  },
2004
+ /**
2005
+ * Create a user group in the project
2006
+ * @summary Create group
2007
+ * @param {string} project Projects unique identifier
2008
+ * @param {CreateUserGroupRequest} [createUserGroupRequest] Create a new user group in the project
2009
+ * @param {*} [options] Override http request option.
2010
+ * @throws {RequiredError}
2011
+ */
2012
+ createUserGroup(project, createUserGroupRequest, options) {
2013
+ return __awaiter(this, void 0, void 0, function* () {
2014
+ var _a, _b, _c;
2015
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserGroup(project, createUserGroupRequest, options);
2016
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2017
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.createUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2018
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2019
+ });
2020
+ },
1816
2021
  /**
1817
2022
  * Delete an auth token for the project
1818
2023
  * @summary Delete auth token
@@ -1914,6 +2119,23 @@ export const ProjectsApiFp = function (configuration) {
1914
2119
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1915
2120
  });
1916
2121
  },
2122
+ /**
2123
+ * Delete a user group in the project
2124
+ * @summary Delete group
2125
+ * @param {string} project Projects unique identifier
2126
+ * @param {string} userGroup The user group identifier
2127
+ * @param {*} [options] Override http request option.
2128
+ * @throws {RequiredError}
2129
+ */
2130
+ deleteUserGroup(project, userGroup, options) {
2131
+ return __awaiter(this, void 0, void 0, function* () {
2132
+ var _a, _b, _c;
2133
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserGroup(project, userGroup, options);
2134
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2135
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.deleteUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2136
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2137
+ });
2138
+ },
1917
2139
  /**
1918
2140
  * Export all the OKRs in the planner
1919
2141
  * @summary Export all OKRs
@@ -2147,6 +2369,23 @@ export const ProjectsApiFp = function (configuration) {
2147
2369
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2148
2370
  });
2149
2371
  },
2372
+ /**
2373
+ * Get a user group in the project
2374
+ * @summary Get group
2375
+ * @param {string} project Projects unique identifier
2376
+ * @param {string} userGroup The user group identifier
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ */
2380
+ getUserGroup(project, userGroup, options) {
2381
+ return __awaiter(this, void 0, void 0, function* () {
2382
+ var _a, _b, _c;
2383
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroup(project, userGroup, options);
2384
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2385
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.getUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2386
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2387
+ });
2388
+ },
2150
2389
  /**
2151
2390
  * Get the details of the user\'s invite to the project
2152
2391
  * @summary Get invite
@@ -2266,6 +2505,22 @@ export const ProjectsApiFp = function (configuration) {
2266
2505
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2267
2506
  });
2268
2507
  },
2508
+ /**
2509
+ * List the user groups in the project
2510
+ * @summary List groups
2511
+ * @param {string} project Projects unique identifier
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ */
2515
+ listUserGroups(project, options) {
2516
+ return __awaiter(this, void 0, void 0, function* () {
2517
+ var _a, _b, _c;
2518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserGroups(project, options);
2519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2520
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.listUserGroups']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2522
+ });
2523
+ },
2269
2524
  /**
2270
2525
  * Reset 2FA for a given user
2271
2526
  * @summary Reset 2FA
@@ -2424,6 +2679,24 @@ export const ProjectsApiFp = function (configuration) {
2424
2679
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2425
2680
  });
2426
2681
  },
2682
+ /**
2683
+ * Update a user group in the project
2684
+ * @summary Update group
2685
+ * @param {string} project Projects unique identifier
2686
+ * @param {string} userGroup The user group identifier
2687
+ * @param {UpdateUserGroupRequest} [updateUserGroupRequest] Update a user group in the project
2688
+ * @param {*} [options] Override http request option.
2689
+ * @throws {RequiredError}
2690
+ */
2691
+ updateUserGroup(project, userGroup, updateUserGroupRequest, options) {
2692
+ return __awaiter(this, void 0, void 0, function* () {
2693
+ var _a, _b, _c;
2694
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserGroup(project, userGroup, updateUserGroupRequest, options);
2695
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2696
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.updateUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2697
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2698
+ });
2699
+ },
2427
2700
  };
2428
2701
  };
2429
2702
  /**
@@ -2502,6 +2775,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
2502
2775
  createTask(requestParameters, options) {
2503
2776
  return localVarFp.createTask(requestParameters.project, requestParameters.createTaskRequest, options).then((request) => request(axios, basePath));
2504
2777
  },
2778
+ /**
2779
+ * Create a user group in the project
2780
+ * @summary Create group
2781
+ * @param {ProjectsApiCreateUserGroupRequest} requestParameters Request parameters.
2782
+ * @param {*} [options] Override http request option.
2783
+ * @throws {RequiredError}
2784
+ */
2785
+ createUserGroup(requestParameters, options) {
2786
+ return localVarFp.createUserGroup(requestParameters.project, requestParameters.createUserGroupRequest, options).then((request) => request(axios, basePath));
2787
+ },
2505
2788
  /**
2506
2789
  * Delete an auth token for the project
2507
2790
  * @summary Delete auth token
@@ -2562,6 +2845,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
2562
2845
  deleteUser(requestParameters, options) {
2563
2846
  return localVarFp.deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
2564
2847
  },
2848
+ /**
2849
+ * Delete a user group in the project
2850
+ * @summary Delete group
2851
+ * @param {ProjectsApiDeleteUserGroupRequest} requestParameters Request parameters.
2852
+ * @param {*} [options] Override http request option.
2853
+ * @throws {RequiredError}
2854
+ */
2855
+ deleteUserGroup(requestParameters, options) {
2856
+ return localVarFp.deleteUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(axios, basePath));
2857
+ },
2565
2858
  /**
2566
2859
  * Export all the OKRs in the planner
2567
2860
  * @summary Export all OKRs
@@ -2702,6 +2995,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
2702
2995
  getUser(requestParameters, options) {
2703
2996
  return localVarFp.getUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
2704
2997
  },
2998
+ /**
2999
+ * Get a user group in the project
3000
+ * @summary Get group
3001
+ * @param {ProjectsApiGetUserGroupRequest} requestParameters Request parameters.
3002
+ * @param {*} [options] Override http request option.
3003
+ * @throws {RequiredError}
3004
+ */
3005
+ getUserGroup(requestParameters, options) {
3006
+ return localVarFp.getUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(axios, basePath));
3007
+ },
2705
3008
  /**
2706
3009
  * Get the details of the user\'s invite to the project
2707
3010
  * @summary Get invite
@@ -2772,6 +3075,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
2772
3075
  listTasks(requestParameters, options) {
2773
3076
  return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
2774
3077
  },
3078
+ /**
3079
+ * List the user groups in the project
3080
+ * @summary List groups
3081
+ * @param {ProjectsApiListUserGroupsRequest} requestParameters Request parameters.
3082
+ * @param {*} [options] Override http request option.
3083
+ * @throws {RequiredError}
3084
+ */
3085
+ listUserGroups(requestParameters, options) {
3086
+ return localVarFp.listUserGroups(requestParameters.project, options).then((request) => request(axios, basePath));
3087
+ },
2775
3088
  /**
2776
3089
  * Reset 2FA for a given user
2777
3090
  * @summary Reset 2FA
@@ -2862,6 +3175,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
2862
3175
  updateUser(requestParameters, options) {
2863
3176
  return localVarFp.updateUser(requestParameters.project, requestParameters.user, requestParameters.updateUserRequest, options).then((request) => request(axios, basePath));
2864
3177
  },
3178
+ /**
3179
+ * Update a user group in the project
3180
+ * @summary Update group
3181
+ * @param {ProjectsApiUpdateUserGroupRequest} requestParameters Request parameters.
3182
+ * @param {*} [options] Override http request option.
3183
+ * @throws {RequiredError}
3184
+ */
3185
+ updateUserGroup(requestParameters, options) {
3186
+ return localVarFp.updateUserGroup(requestParameters.project, requestParameters.userGroup, requestParameters.updateUserGroupRequest, options).then((request) => request(axios, basePath));
3187
+ },
2865
3188
  };
2866
3189
  };
2867
3190
  /**
@@ -2938,6 +3261,16 @@ export class ProjectsApi extends BaseAPI {
2938
3261
  createTask(requestParameters, options) {
2939
3262
  return ProjectsApiFp(this.configuration).createTask(requestParameters.project, requestParameters.createTaskRequest, options).then((request) => request(this.axios, this.basePath));
2940
3263
  }
3264
+ /**
3265
+ * Create a user group in the project
3266
+ * @summary Create group
3267
+ * @param {ProjectsApiCreateUserGroupRequest} requestParameters Request parameters.
3268
+ * @param {*} [options] Override http request option.
3269
+ * @throws {RequiredError}
3270
+ */
3271
+ createUserGroup(requestParameters, options) {
3272
+ return ProjectsApiFp(this.configuration).createUserGroup(requestParameters.project, requestParameters.createUserGroupRequest, options).then((request) => request(this.axios, this.basePath));
3273
+ }
2941
3274
  /**
2942
3275
  * Delete an auth token for the project
2943
3276
  * @summary Delete auth token
@@ -2998,6 +3331,16 @@ export class ProjectsApi extends BaseAPI {
2998
3331
  deleteUser(requestParameters, options) {
2999
3332
  return ProjectsApiFp(this.configuration).deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
3000
3333
  }
3334
+ /**
3335
+ * Delete a user group in the project
3336
+ * @summary Delete group
3337
+ * @param {ProjectsApiDeleteUserGroupRequest} requestParameters Request parameters.
3338
+ * @param {*} [options] Override http request option.
3339
+ * @throws {RequiredError}
3340
+ */
3341
+ deleteUserGroup(requestParameters, options) {
3342
+ return ProjectsApiFp(this.configuration).deleteUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(this.axios, this.basePath));
3343
+ }
3001
3344
  /**
3002
3345
  * Export all the OKRs in the planner
3003
3346
  * @summary Export all OKRs
@@ -3138,6 +3481,16 @@ export class ProjectsApi extends BaseAPI {
3138
3481
  getUser(requestParameters, options) {
3139
3482
  return ProjectsApiFp(this.configuration).getUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
3140
3483
  }
3484
+ /**
3485
+ * Get a user group in the project
3486
+ * @summary Get group
3487
+ * @param {ProjectsApiGetUserGroupRequest} requestParameters Request parameters.
3488
+ * @param {*} [options] Override http request option.
3489
+ * @throws {RequiredError}
3490
+ */
3491
+ getUserGroup(requestParameters, options) {
3492
+ return ProjectsApiFp(this.configuration).getUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(this.axios, this.basePath));
3493
+ }
3141
3494
  /**
3142
3495
  * Get the details of the user\'s invite to the project
3143
3496
  * @summary Get invite
@@ -3208,6 +3561,16 @@ export class ProjectsApi extends BaseAPI {
3208
3561
  listTasks(requestParameters, options) {
3209
3562
  return ProjectsApiFp(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3210
3563
  }
3564
+ /**
3565
+ * List the user groups in the project
3566
+ * @summary List groups
3567
+ * @param {ProjectsApiListUserGroupsRequest} requestParameters Request parameters.
3568
+ * @param {*} [options] Override http request option.
3569
+ * @throws {RequiredError}
3570
+ */
3571
+ listUserGroups(requestParameters, options) {
3572
+ return ProjectsApiFp(this.configuration).listUserGroups(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
3573
+ }
3211
3574
  /**
3212
3575
  * Reset 2FA for a given user
3213
3576
  * @summary Reset 2FA
@@ -3298,4 +3661,14 @@ export class ProjectsApi extends BaseAPI {
3298
3661
  updateUser(requestParameters, options) {
3299
3662
  return ProjectsApiFp(this.configuration).updateUser(requestParameters.project, requestParameters.user, requestParameters.updateUserRequest, options).then((request) => request(this.axios, this.basePath));
3300
3663
  }
3664
+ /**
3665
+ * Update a user group in the project
3666
+ * @summary Update group
3667
+ * @param {ProjectsApiUpdateUserGroupRequest} requestParameters Request parameters.
3668
+ * @param {*} [options] Override http request option.
3669
+ * @throws {RequiredError}
3670
+ */
3671
+ updateUserGroup(requestParameters, options) {
3672
+ return ProjectsApiFp(this.configuration).updateUserGroup(requestParameters.project, requestParameters.userGroup, requestParameters.updateUserGroupRequest, options).then((request) => request(this.axios, this.basePath));
3673
+ }
3301
3674
  }
@@ -2,7 +2,7 @@
2
2
  * Projects API
3
3
  * Manage PodOS Projects
4
4
  *
5
- * The version of the OpenAPI document: 1.51.0
5
+ * The version of the OpenAPI document: 1.53.0
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.51.0
7
+ * The version of the OpenAPI document: 1.53.0
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.51.0
5
+ * The version of the OpenAPI document: 1.53.0
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.51.0
7
+ * The version of the OpenAPI document: 1.53.0
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.51.0
5
+ * The version of the OpenAPI document: 1.53.0
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.51.0
7
+ * The version of the OpenAPI document: 1.53.0
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.51.0
5
+ * The version of the OpenAPI document: 1.53.0
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.51.0
7
+ * The version of the OpenAPI document: 1.53.0
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.51.0
5
+ * The version of the OpenAPI document: 1.53.0
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.51.0
8
+ * The version of the OpenAPI document: 1.53.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,24 @@
1
+ # CreateUserGroupRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **handle** | **string** | | [default to undefined]
10
+ **description** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { CreateUserGroupRequest } from '@teemill/projects';
16
+
17
+ const instance: CreateUserGroupRequest = {
18
+ name,
19
+ handle,
20
+ description,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # ListUserGroupsResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **userGroups** | [**Array<UserGroup>**](UserGroup.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ListUserGroupsResponse } from '@teemill/projects';
14
+
15
+ const instance: ListUserGroupsResponse = {
16
+ userGroups,
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)