@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/README.md +12 -2
- package/api.ts +501 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +261 -1
- package/dist/api.js +374 -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 +261 -1
- package/dist/esm/api.js +374 -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/CreateUserGroupRequest.md +24 -0
- package/docs/ListUserGroupsResponse.md +20 -0
- package/docs/Project.md +2 -0
- package/docs/ProjectBanner.md +20 -0
- package/docs/ProjectsApi.md +295 -0
- package/docs/UpdateUserGroupRequest.md +26 -0
- package/docs/UserGroup.md +28 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.53.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -322,6 +322,43 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
322
322
|
options: localVarRequestOptions,
|
|
323
323
|
};
|
|
324
324
|
}),
|
|
325
|
+
/**
|
|
326
|
+
* Create a user group in the project
|
|
327
|
+
* @summary Create group
|
|
328
|
+
* @param {string} project Projects unique identifier
|
|
329
|
+
* @param {CreateUserGroupRequest} [createUserGroupRequest] Create a new user group in the project
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
createUserGroup: (project_1, createUserGroupRequest_1, ...args_1) => __awaiter(this, [project_1, createUserGroupRequest_1, ...args_1], void 0, function* (project, createUserGroupRequest, options = {}) {
|
|
334
|
+
// verify required parameter 'project' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('createUserGroup', 'project', project);
|
|
336
|
+
const localVarPath = `/v1/projects/{project}/user-groups`
|
|
337
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
338
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
339
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
340
|
+
let baseOptions;
|
|
341
|
+
if (configuration) {
|
|
342
|
+
baseOptions = configuration.baseOptions;
|
|
343
|
+
}
|
|
344
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
345
|
+
const localVarHeaderParameter = {};
|
|
346
|
+
const localVarQueryParameter = {};
|
|
347
|
+
// authentication session-oauth required
|
|
348
|
+
// oauth required
|
|
349
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
350
|
+
// authentication api-key required
|
|
351
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
353
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
354
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
355
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
356
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserGroupRequest, localVarRequestOptions, configuration);
|
|
357
|
+
return {
|
|
358
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
359
|
+
options: localVarRequestOptions,
|
|
360
|
+
};
|
|
361
|
+
}),
|
|
325
362
|
/**
|
|
326
363
|
* Delete an auth token for the project
|
|
327
364
|
* @summary Delete auth token
|
|
@@ -546,6 +583,44 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
546
583
|
options: localVarRequestOptions,
|
|
547
584
|
};
|
|
548
585
|
}),
|
|
586
|
+
/**
|
|
587
|
+
* Delete a user group in the project
|
|
588
|
+
* @summary Delete group
|
|
589
|
+
* @param {string} project Projects unique identifier
|
|
590
|
+
* @param {string} userGroup The user group identifier
|
|
591
|
+
* @param {*} [options] Override http request option.
|
|
592
|
+
* @throws {RequiredError}
|
|
593
|
+
*/
|
|
594
|
+
deleteUserGroup: (project_1, userGroup_1, ...args_1) => __awaiter(this, [project_1, userGroup_1, ...args_1], void 0, function* (project, userGroup, options = {}) {
|
|
595
|
+
// verify required parameter 'project' is not null or undefined
|
|
596
|
+
(0, common_1.assertParamExists)('deleteUserGroup', 'project', project);
|
|
597
|
+
// verify required parameter 'userGroup' is not null or undefined
|
|
598
|
+
(0, common_1.assertParamExists)('deleteUserGroup', 'userGroup', userGroup);
|
|
599
|
+
const localVarPath = `/v1/projects/{project}/user-groups/{userGroup}`
|
|
600
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
601
|
+
.replace(`{${"userGroup"}}`, encodeURIComponent(String(userGroup)));
|
|
602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
604
|
+
let baseOptions;
|
|
605
|
+
if (configuration) {
|
|
606
|
+
baseOptions = configuration.baseOptions;
|
|
607
|
+
}
|
|
608
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
609
|
+
const localVarHeaderParameter = {};
|
|
610
|
+
const localVarQueryParameter = {};
|
|
611
|
+
// authentication session-oauth required
|
|
612
|
+
// oauth required
|
|
613
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
614
|
+
// authentication api-key required
|
|
615
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
616
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
617
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
618
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
619
|
+
return {
|
|
620
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
621
|
+
options: localVarRequestOptions,
|
|
622
|
+
};
|
|
623
|
+
}),
|
|
549
624
|
/**
|
|
550
625
|
* Export all the OKRs in the planner
|
|
551
626
|
* @summary Export all OKRs
|
|
@@ -1058,6 +1133,44 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1058
1133
|
options: localVarRequestOptions,
|
|
1059
1134
|
};
|
|
1060
1135
|
}),
|
|
1136
|
+
/**
|
|
1137
|
+
* Get a user group in the project
|
|
1138
|
+
* @summary Get group
|
|
1139
|
+
* @param {string} project Projects unique identifier
|
|
1140
|
+
* @param {string} userGroup The user group identifier
|
|
1141
|
+
* @param {*} [options] Override http request option.
|
|
1142
|
+
* @throws {RequiredError}
|
|
1143
|
+
*/
|
|
1144
|
+
getUserGroup: (project_1, userGroup_1, ...args_1) => __awaiter(this, [project_1, userGroup_1, ...args_1], void 0, function* (project, userGroup, options = {}) {
|
|
1145
|
+
// verify required parameter 'project' is not null or undefined
|
|
1146
|
+
(0, common_1.assertParamExists)('getUserGroup', 'project', project);
|
|
1147
|
+
// verify required parameter 'userGroup' is not null or undefined
|
|
1148
|
+
(0, common_1.assertParamExists)('getUserGroup', 'userGroup', userGroup);
|
|
1149
|
+
const localVarPath = `/v1/projects/{project}/user-groups/{userGroup}`
|
|
1150
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1151
|
+
.replace(`{${"userGroup"}}`, encodeURIComponent(String(userGroup)));
|
|
1152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1153
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1154
|
+
let baseOptions;
|
|
1155
|
+
if (configuration) {
|
|
1156
|
+
baseOptions = configuration.baseOptions;
|
|
1157
|
+
}
|
|
1158
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1159
|
+
const localVarHeaderParameter = {};
|
|
1160
|
+
const localVarQueryParameter = {};
|
|
1161
|
+
// authentication session-oauth required
|
|
1162
|
+
// oauth required
|
|
1163
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1164
|
+
// authentication api-key required
|
|
1165
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1166
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1168
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1169
|
+
return {
|
|
1170
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1171
|
+
options: localVarRequestOptions,
|
|
1172
|
+
};
|
|
1173
|
+
}),
|
|
1061
1174
|
/**
|
|
1062
1175
|
* Get the details of the user\'s invite to the project
|
|
1063
1176
|
* @summary Get invite
|
|
@@ -1325,6 +1438,40 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1325
1438
|
options: localVarRequestOptions,
|
|
1326
1439
|
};
|
|
1327
1440
|
}),
|
|
1441
|
+
/**
|
|
1442
|
+
* List the user groups in the project
|
|
1443
|
+
* @summary List groups
|
|
1444
|
+
* @param {string} project Projects unique identifier
|
|
1445
|
+
* @param {*} [options] Override http request option.
|
|
1446
|
+
* @throws {RequiredError}
|
|
1447
|
+
*/
|
|
1448
|
+
listUserGroups: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
1449
|
+
// verify required parameter 'project' is not null or undefined
|
|
1450
|
+
(0, common_1.assertParamExists)('listUserGroups', 'project', project);
|
|
1451
|
+
const localVarPath = `/v1/projects/{project}/user-groups`
|
|
1452
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
1453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1454
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1455
|
+
let baseOptions;
|
|
1456
|
+
if (configuration) {
|
|
1457
|
+
baseOptions = configuration.baseOptions;
|
|
1458
|
+
}
|
|
1459
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1460
|
+
const localVarHeaderParameter = {};
|
|
1461
|
+
const localVarQueryParameter = {};
|
|
1462
|
+
// authentication session-oauth required
|
|
1463
|
+
// oauth required
|
|
1464
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1465
|
+
// authentication api-key required
|
|
1466
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1467
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1468
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1469
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1470
|
+
return {
|
|
1471
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1472
|
+
options: localVarRequestOptions,
|
|
1473
|
+
};
|
|
1474
|
+
}),
|
|
1328
1475
|
/**
|
|
1329
1476
|
* Reset 2FA for a given user
|
|
1330
1477
|
* @summary Reset 2FA
|
|
@@ -1692,6 +1839,47 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1692
1839
|
options: localVarRequestOptions,
|
|
1693
1840
|
};
|
|
1694
1841
|
}),
|
|
1842
|
+
/**
|
|
1843
|
+
* Update a user group in the project
|
|
1844
|
+
* @summary Update group
|
|
1845
|
+
* @param {string} project Projects unique identifier
|
|
1846
|
+
* @param {string} userGroup The user group identifier
|
|
1847
|
+
* @param {UpdateUserGroupRequest} [updateUserGroupRequest] Update a user group in the project
|
|
1848
|
+
* @param {*} [options] Override http request option.
|
|
1849
|
+
* @throws {RequiredError}
|
|
1850
|
+
*/
|
|
1851
|
+
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 = {}) {
|
|
1852
|
+
// verify required parameter 'project' is not null or undefined
|
|
1853
|
+
(0, common_1.assertParamExists)('updateUserGroup', 'project', project);
|
|
1854
|
+
// verify required parameter 'userGroup' is not null or undefined
|
|
1855
|
+
(0, common_1.assertParamExists)('updateUserGroup', 'userGroup', userGroup);
|
|
1856
|
+
const localVarPath = `/v1/projects/{project}/user-groups/{userGroup}`
|
|
1857
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1858
|
+
.replace(`{${"userGroup"}}`, encodeURIComponent(String(userGroup)));
|
|
1859
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1860
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1861
|
+
let baseOptions;
|
|
1862
|
+
if (configuration) {
|
|
1863
|
+
baseOptions = configuration.baseOptions;
|
|
1864
|
+
}
|
|
1865
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
1866
|
+
const localVarHeaderParameter = {};
|
|
1867
|
+
const localVarQueryParameter = {};
|
|
1868
|
+
// authentication session-oauth required
|
|
1869
|
+
// oauth required
|
|
1870
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1871
|
+
// authentication api-key required
|
|
1872
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1873
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1874
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1875
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1876
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1877
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserGroupRequest, localVarRequestOptions, configuration);
|
|
1878
|
+
return {
|
|
1879
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1880
|
+
options: localVarRequestOptions,
|
|
1881
|
+
};
|
|
1882
|
+
}),
|
|
1695
1883
|
};
|
|
1696
1884
|
};
|
|
1697
1885
|
exports.ProjectsApiAxiosParamCreator = ProjectsApiAxiosParamCreator;
|
|
@@ -1817,6 +2005,23 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1817
2005
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1818
2006
|
});
|
|
1819
2007
|
},
|
|
2008
|
+
/**
|
|
2009
|
+
* Create a user group in the project
|
|
2010
|
+
* @summary Create group
|
|
2011
|
+
* @param {string} project Projects unique identifier
|
|
2012
|
+
* @param {CreateUserGroupRequest} [createUserGroupRequest] Create a new user group in the project
|
|
2013
|
+
* @param {*} [options] Override http request option.
|
|
2014
|
+
* @throws {RequiredError}
|
|
2015
|
+
*/
|
|
2016
|
+
createUserGroup(project, createUserGroupRequest, options) {
|
|
2017
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2018
|
+
var _a, _b, _c;
|
|
2019
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserGroup(project, createUserGroupRequest, options);
|
|
2020
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2021
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.createUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2022
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2023
|
+
});
|
|
2024
|
+
},
|
|
1820
2025
|
/**
|
|
1821
2026
|
* Delete an auth token for the project
|
|
1822
2027
|
* @summary Delete auth token
|
|
@@ -1918,6 +2123,23 @@ const ProjectsApiFp = function (configuration) {
|
|
|
1918
2123
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1919
2124
|
});
|
|
1920
2125
|
},
|
|
2126
|
+
/**
|
|
2127
|
+
* Delete a user group in the project
|
|
2128
|
+
* @summary Delete group
|
|
2129
|
+
* @param {string} project Projects unique identifier
|
|
2130
|
+
* @param {string} userGroup The user group identifier
|
|
2131
|
+
* @param {*} [options] Override http request option.
|
|
2132
|
+
* @throws {RequiredError}
|
|
2133
|
+
*/
|
|
2134
|
+
deleteUserGroup(project, userGroup, options) {
|
|
2135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2136
|
+
var _a, _b, _c;
|
|
2137
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteUserGroup(project, userGroup, options);
|
|
2138
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2139
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.deleteUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2140
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2141
|
+
});
|
|
2142
|
+
},
|
|
1921
2143
|
/**
|
|
1922
2144
|
* Export all the OKRs in the planner
|
|
1923
2145
|
* @summary Export all OKRs
|
|
@@ -2151,6 +2373,23 @@ const ProjectsApiFp = function (configuration) {
|
|
|
2151
2373
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2152
2374
|
});
|
|
2153
2375
|
},
|
|
2376
|
+
/**
|
|
2377
|
+
* Get a user group in the project
|
|
2378
|
+
* @summary Get group
|
|
2379
|
+
* @param {string} project Projects unique identifier
|
|
2380
|
+
* @param {string} userGroup The user group identifier
|
|
2381
|
+
* @param {*} [options] Override http request option.
|
|
2382
|
+
* @throws {RequiredError}
|
|
2383
|
+
*/
|
|
2384
|
+
getUserGroup(project, userGroup, options) {
|
|
2385
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2386
|
+
var _a, _b, _c;
|
|
2387
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroup(project, userGroup, options);
|
|
2388
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2389
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.getUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2390
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2391
|
+
});
|
|
2392
|
+
},
|
|
2154
2393
|
/**
|
|
2155
2394
|
* Get the details of the user\'s invite to the project
|
|
2156
2395
|
* @summary Get invite
|
|
@@ -2270,6 +2509,22 @@ const ProjectsApiFp = function (configuration) {
|
|
|
2270
2509
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2271
2510
|
});
|
|
2272
2511
|
},
|
|
2512
|
+
/**
|
|
2513
|
+
* List the user groups in the project
|
|
2514
|
+
* @summary List groups
|
|
2515
|
+
* @param {string} project Projects unique identifier
|
|
2516
|
+
* @param {*} [options] Override http request option.
|
|
2517
|
+
* @throws {RequiredError}
|
|
2518
|
+
*/
|
|
2519
|
+
listUserGroups(project, options) {
|
|
2520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2521
|
+
var _a, _b, _c;
|
|
2522
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUserGroups(project, options);
|
|
2523
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2524
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.listUserGroups']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2525
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2526
|
+
});
|
|
2527
|
+
},
|
|
2273
2528
|
/**
|
|
2274
2529
|
* Reset 2FA for a given user
|
|
2275
2530
|
* @summary Reset 2FA
|
|
@@ -2428,6 +2683,24 @@ const ProjectsApiFp = function (configuration) {
|
|
|
2428
2683
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2429
2684
|
});
|
|
2430
2685
|
},
|
|
2686
|
+
/**
|
|
2687
|
+
* Update a user group in the project
|
|
2688
|
+
* @summary Update group
|
|
2689
|
+
* @param {string} project Projects unique identifier
|
|
2690
|
+
* @param {string} userGroup The user group identifier
|
|
2691
|
+
* @param {UpdateUserGroupRequest} [updateUserGroupRequest] Update a user group in the project
|
|
2692
|
+
* @param {*} [options] Override http request option.
|
|
2693
|
+
* @throws {RequiredError}
|
|
2694
|
+
*/
|
|
2695
|
+
updateUserGroup(project, userGroup, updateUserGroupRequest, options) {
|
|
2696
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2697
|
+
var _a, _b, _c;
|
|
2698
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateUserGroup(project, userGroup, updateUserGroupRequest, options);
|
|
2699
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2700
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ProjectsApi.updateUserGroup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2701
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2702
|
+
});
|
|
2703
|
+
},
|
|
2431
2704
|
};
|
|
2432
2705
|
};
|
|
2433
2706
|
exports.ProjectsApiFp = ProjectsApiFp;
|
|
@@ -2507,6 +2780,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2507
2780
|
createTask(requestParameters, options) {
|
|
2508
2781
|
return localVarFp.createTask(requestParameters.project, requestParameters.createTaskRequest, options).then((request) => request(axios, basePath));
|
|
2509
2782
|
},
|
|
2783
|
+
/**
|
|
2784
|
+
* Create a user group in the project
|
|
2785
|
+
* @summary Create group
|
|
2786
|
+
* @param {ProjectsApiCreateUserGroupRequest} requestParameters Request parameters.
|
|
2787
|
+
* @param {*} [options] Override http request option.
|
|
2788
|
+
* @throws {RequiredError}
|
|
2789
|
+
*/
|
|
2790
|
+
createUserGroup(requestParameters, options) {
|
|
2791
|
+
return localVarFp.createUserGroup(requestParameters.project, requestParameters.createUserGroupRequest, options).then((request) => request(axios, basePath));
|
|
2792
|
+
},
|
|
2510
2793
|
/**
|
|
2511
2794
|
* Delete an auth token for the project
|
|
2512
2795
|
* @summary Delete auth token
|
|
@@ -2567,6 +2850,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2567
2850
|
deleteUser(requestParameters, options) {
|
|
2568
2851
|
return localVarFp.deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
2569
2852
|
},
|
|
2853
|
+
/**
|
|
2854
|
+
* Delete a user group in the project
|
|
2855
|
+
* @summary Delete group
|
|
2856
|
+
* @param {ProjectsApiDeleteUserGroupRequest} requestParameters Request parameters.
|
|
2857
|
+
* @param {*} [options] Override http request option.
|
|
2858
|
+
* @throws {RequiredError}
|
|
2859
|
+
*/
|
|
2860
|
+
deleteUserGroup(requestParameters, options) {
|
|
2861
|
+
return localVarFp.deleteUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(axios, basePath));
|
|
2862
|
+
},
|
|
2570
2863
|
/**
|
|
2571
2864
|
* Export all the OKRs in the planner
|
|
2572
2865
|
* @summary Export all OKRs
|
|
@@ -2707,6 +3000,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2707
3000
|
getUser(requestParameters, options) {
|
|
2708
3001
|
return localVarFp.getUser(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
2709
3002
|
},
|
|
3003
|
+
/**
|
|
3004
|
+
* Get a user group in the project
|
|
3005
|
+
* @summary Get group
|
|
3006
|
+
* @param {ProjectsApiGetUserGroupRequest} requestParameters Request parameters.
|
|
3007
|
+
* @param {*} [options] Override http request option.
|
|
3008
|
+
* @throws {RequiredError}
|
|
3009
|
+
*/
|
|
3010
|
+
getUserGroup(requestParameters, options) {
|
|
3011
|
+
return localVarFp.getUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(axios, basePath));
|
|
3012
|
+
},
|
|
2710
3013
|
/**
|
|
2711
3014
|
* Get the details of the user\'s invite to the project
|
|
2712
3015
|
* @summary Get invite
|
|
@@ -2777,6 +3080,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2777
3080
|
listTasks(requestParameters, options) {
|
|
2778
3081
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2779
3082
|
},
|
|
3083
|
+
/**
|
|
3084
|
+
* List the user groups in the project
|
|
3085
|
+
* @summary List groups
|
|
3086
|
+
* @param {ProjectsApiListUserGroupsRequest} requestParameters Request parameters.
|
|
3087
|
+
* @param {*} [options] Override http request option.
|
|
3088
|
+
* @throws {RequiredError}
|
|
3089
|
+
*/
|
|
3090
|
+
listUserGroups(requestParameters, options) {
|
|
3091
|
+
return localVarFp.listUserGroups(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
3092
|
+
},
|
|
2780
3093
|
/**
|
|
2781
3094
|
* Reset 2FA for a given user
|
|
2782
3095
|
* @summary Reset 2FA
|
|
@@ -2867,6 +3180,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2867
3180
|
updateUser(requestParameters, options) {
|
|
2868
3181
|
return localVarFp.updateUser(requestParameters.project, requestParameters.user, requestParameters.updateUserRequest, options).then((request) => request(axios, basePath));
|
|
2869
3182
|
},
|
|
3183
|
+
/**
|
|
3184
|
+
* Update a user group in the project
|
|
3185
|
+
* @summary Update group
|
|
3186
|
+
* @param {ProjectsApiUpdateUserGroupRequest} requestParameters Request parameters.
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
*/
|
|
3190
|
+
updateUserGroup(requestParameters, options) {
|
|
3191
|
+
return localVarFp.updateUserGroup(requestParameters.project, requestParameters.userGroup, requestParameters.updateUserGroupRequest, options).then((request) => request(axios, basePath));
|
|
3192
|
+
},
|
|
2870
3193
|
};
|
|
2871
3194
|
};
|
|
2872
3195
|
exports.ProjectsApiFactory = ProjectsApiFactory;
|
|
@@ -2944,6 +3267,16 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
2944
3267
|
createTask(requestParameters, options) {
|
|
2945
3268
|
return (0, exports.ProjectsApiFp)(this.configuration).createTask(requestParameters.project, requestParameters.createTaskRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2946
3269
|
}
|
|
3270
|
+
/**
|
|
3271
|
+
* Create a user group in the project
|
|
3272
|
+
* @summary Create group
|
|
3273
|
+
* @param {ProjectsApiCreateUserGroupRequest} requestParameters Request parameters.
|
|
3274
|
+
* @param {*} [options] Override http request option.
|
|
3275
|
+
* @throws {RequiredError}
|
|
3276
|
+
*/
|
|
3277
|
+
createUserGroup(requestParameters, options) {
|
|
3278
|
+
return (0, exports.ProjectsApiFp)(this.configuration).createUserGroup(requestParameters.project, requestParameters.createUserGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3279
|
+
}
|
|
2947
3280
|
/**
|
|
2948
3281
|
* Delete an auth token for the project
|
|
2949
3282
|
* @summary Delete auth token
|
|
@@ -3004,6 +3337,16 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
3004
3337
|
deleteUser(requestParameters, options) {
|
|
3005
3338
|
return (0, exports.ProjectsApiFp)(this.configuration).deleteUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
3006
3339
|
}
|
|
3340
|
+
/**
|
|
3341
|
+
* Delete a user group in the project
|
|
3342
|
+
* @summary Delete group
|
|
3343
|
+
* @param {ProjectsApiDeleteUserGroupRequest} requestParameters Request parameters.
|
|
3344
|
+
* @param {*} [options] Override http request option.
|
|
3345
|
+
* @throws {RequiredError}
|
|
3346
|
+
*/
|
|
3347
|
+
deleteUserGroup(requestParameters, options) {
|
|
3348
|
+
return (0, exports.ProjectsApiFp)(this.configuration).deleteUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(this.axios, this.basePath));
|
|
3349
|
+
}
|
|
3007
3350
|
/**
|
|
3008
3351
|
* Export all the OKRs in the planner
|
|
3009
3352
|
* @summary Export all OKRs
|
|
@@ -3144,6 +3487,16 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
3144
3487
|
getUser(requestParameters, options) {
|
|
3145
3488
|
return (0, exports.ProjectsApiFp)(this.configuration).getUser(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
3146
3489
|
}
|
|
3490
|
+
/**
|
|
3491
|
+
* Get a user group in the project
|
|
3492
|
+
* @summary Get group
|
|
3493
|
+
* @param {ProjectsApiGetUserGroupRequest} requestParameters Request parameters.
|
|
3494
|
+
* @param {*} [options] Override http request option.
|
|
3495
|
+
* @throws {RequiredError}
|
|
3496
|
+
*/
|
|
3497
|
+
getUserGroup(requestParameters, options) {
|
|
3498
|
+
return (0, exports.ProjectsApiFp)(this.configuration).getUserGroup(requestParameters.project, requestParameters.userGroup, options).then((request) => request(this.axios, this.basePath));
|
|
3499
|
+
}
|
|
3147
3500
|
/**
|
|
3148
3501
|
* Get the details of the user\'s invite to the project
|
|
3149
3502
|
* @summary Get invite
|
|
@@ -3214,6 +3567,16 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
3214
3567
|
listTasks(requestParameters, options) {
|
|
3215
3568
|
return (0, exports.ProjectsApiFp)(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3216
3569
|
}
|
|
3570
|
+
/**
|
|
3571
|
+
* List the user groups in the project
|
|
3572
|
+
* @summary List groups
|
|
3573
|
+
* @param {ProjectsApiListUserGroupsRequest} requestParameters Request parameters.
|
|
3574
|
+
* @param {*} [options] Override http request option.
|
|
3575
|
+
* @throws {RequiredError}
|
|
3576
|
+
*/
|
|
3577
|
+
listUserGroups(requestParameters, options) {
|
|
3578
|
+
return (0, exports.ProjectsApiFp)(this.configuration).listUserGroups(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3579
|
+
}
|
|
3217
3580
|
/**
|
|
3218
3581
|
* Reset 2FA for a given user
|
|
3219
3582
|
* @summary Reset 2FA
|
|
@@ -3304,5 +3667,15 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
3304
3667
|
updateUser(requestParameters, options) {
|
|
3305
3668
|
return (0, exports.ProjectsApiFp)(this.configuration).updateUser(requestParameters.project, requestParameters.user, requestParameters.updateUserRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3306
3669
|
}
|
|
3670
|
+
/**
|
|
3671
|
+
* Update a user group in the project
|
|
3672
|
+
* @summary Update group
|
|
3673
|
+
* @param {ProjectsApiUpdateUserGroupRequest} requestParameters Request parameters.
|
|
3674
|
+
* @param {*} [options] Override http request option.
|
|
3675
|
+
* @throws {RequiredError}
|
|
3676
|
+
*/
|
|
3677
|
+
updateUserGroup(requestParameters, options) {
|
|
3678
|
+
return (0, exports.ProjectsApiFp)(this.configuration).updateUserGroup(requestParameters.project, requestParameters.userGroup, requestParameters.updateUserGroupRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3679
|
+
}
|
|
3307
3680
|
}
|
|
3308
3681
|
exports.ProjectsApi = ProjectsApi;
|
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