@teemill/projects 1.45.1 → 1.46.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 +5 -2
- package/api.ts +150 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +98 -1
- package/dist/api.js +83 -3
- 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 +98 -1
- package/dist/esm/api.js +82 -2
- 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/ProjectUser.md +2 -0
- package/docs/ProjectsApi.md +60 -0
- package/docs/SetupMethod.md +20 -0
- package/docs/TaskStatus.md +2 -0
- package/docs/TwoFactorAuthentication.md +22 -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.46.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.46.1 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -82,6 +82,7 @@ Class | Method | HTTP request | Description
|
|
|
82
82
|
*ProjectsApi* | [**listBookmarks**](docs/ProjectsApi.md#listbookmarks) | **GET** /v1/projects/{project}/bookmarks | List bookmarks
|
|
83
83
|
*ProjectsApi* | [**listBookmarktabs**](docs/ProjectsApi.md#listbookmarktabs) | **GET** /v1/projects/{project}/bookmarktabs | List bookmark tabs
|
|
84
84
|
*ProjectsApi* | [**listTasks**](docs/ProjectsApi.md#listtasks) | **GET** /v1/projects/{project}/tasks | List Tasks
|
|
85
|
+
*ProjectsApi* | [**reset2FA**](docs/ProjectsApi.md#reset2fa) | **POST** /v1/projects/{project}/users/{user}/reset-2fa | Reset 2FA
|
|
85
86
|
*ProjectsApi* | [**setupIntegration**](docs/ProjectsApi.md#setupintegration) | **POST** /v1/projects/{project}/integrations/{integration}/setup | Setup integration
|
|
86
87
|
*ProjectsApi* | [**uninstallIntegration**](docs/ProjectsApi.md#uninstallintegration) | **DELETE** /v1/projects/{project}/integrations/{integration} | Uninstall integration
|
|
87
88
|
*ProjectsApi* | [**updateBookmark**](docs/ProjectsApi.md#updatebookmark) | **PATCH** /v1/projects/{project}/bookmarks/{id} | Update bookmark
|
|
@@ -132,12 +133,14 @@ Class | Method | HTTP request | Description
|
|
|
132
133
|
- [ProjectUserAvatar](docs/ProjectUserAvatar.md)
|
|
133
134
|
- [ProjectUsers](docs/ProjectUsers.md)
|
|
134
135
|
- [ProjectsResponse](docs/ProjectsResponse.md)
|
|
136
|
+
- [SetupMethod](docs/SetupMethod.md)
|
|
135
137
|
- [Task](docs/Task.md)
|
|
136
138
|
- [TaskStatus](docs/TaskStatus.md)
|
|
137
139
|
- [TaskSummary](docs/TaskSummary.md)
|
|
138
140
|
- [Template](docs/Template.md)
|
|
139
141
|
- [TemplateCode](docs/TemplateCode.md)
|
|
140
142
|
- [TemplatesResponse](docs/TemplatesResponse.md)
|
|
143
|
+
- [TwoFactorAuthentication](docs/TwoFactorAuthentication.md)
|
|
141
144
|
- [UpdateBookmarkRequest](docs/UpdateBookmarkRequest.md)
|
|
142
145
|
- [UpdateBookmarkTabsRequest](docs/UpdateBookmarkTabsRequest.md)
|
|
143
146
|
- [UpdateBookmarkTabsRequestTabsInner](docs/UpdateBookmarkTabsRequestTabsInner.md)
|
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Projects API
|
|
5
5
|
* Manage PodOS Projects
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.
|
|
7
|
+
* The version of the OpenAPI document: 1.46.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -851,6 +851,12 @@ export interface ProjectUser {
|
|
|
851
851
|
* @memberof ProjectUser
|
|
852
852
|
*/
|
|
853
853
|
'avatar': ProjectUserAvatar;
|
|
854
|
+
/**
|
|
855
|
+
*
|
|
856
|
+
* @type {TwoFactorAuthentication}
|
|
857
|
+
* @memberof ProjectUser
|
|
858
|
+
*/
|
|
859
|
+
'twoFactorAuthentication': TwoFactorAuthentication;
|
|
854
860
|
}
|
|
855
861
|
|
|
856
862
|
export const ProjectUserTypeEnum = {
|
|
@@ -906,6 +912,26 @@ export interface ProjectsResponse {
|
|
|
906
912
|
*/
|
|
907
913
|
'projects': Array<Project>;
|
|
908
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
*
|
|
917
|
+
* @export
|
|
918
|
+
* @interface SetupMethod
|
|
919
|
+
*/
|
|
920
|
+
export interface SetupMethod {
|
|
921
|
+
/**
|
|
922
|
+
*
|
|
923
|
+
* @type {string}
|
|
924
|
+
* @memberof SetupMethod
|
|
925
|
+
*/
|
|
926
|
+
'type': SetupMethodTypeEnum;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export const SetupMethodTypeEnum = {
|
|
930
|
+
Authenticator: 'authenticator'
|
|
931
|
+
} as const;
|
|
932
|
+
|
|
933
|
+
export type SetupMethodTypeEnum = typeof SetupMethodTypeEnum[keyof typeof SetupMethodTypeEnum];
|
|
934
|
+
|
|
909
935
|
/**
|
|
910
936
|
*
|
|
911
937
|
* @export
|
|
@@ -1015,7 +1041,8 @@ export const TaskStatus = {
|
|
|
1015
1041
|
Nice: 'nice',
|
|
1016
1042
|
Need: 'need',
|
|
1017
1043
|
Doing: 'doing',
|
|
1018
|
-
Done: 'done'
|
|
1044
|
+
Done: 'done',
|
|
1045
|
+
Archived: 'archived'
|
|
1019
1046
|
} as const;
|
|
1020
1047
|
|
|
1021
1048
|
export type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
|
|
@@ -1172,6 +1199,25 @@ export interface TemplatesResponse {
|
|
|
1172
1199
|
*/
|
|
1173
1200
|
'templates': Array<Template>;
|
|
1174
1201
|
}
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @export
|
|
1205
|
+
* @interface TwoFactorAuthentication
|
|
1206
|
+
*/
|
|
1207
|
+
export interface TwoFactorAuthentication {
|
|
1208
|
+
/**
|
|
1209
|
+
*
|
|
1210
|
+
* @type {boolean}
|
|
1211
|
+
* @memberof TwoFactorAuthentication
|
|
1212
|
+
*/
|
|
1213
|
+
'required'?: boolean;
|
|
1214
|
+
/**
|
|
1215
|
+
*
|
|
1216
|
+
* @type {Array<SetupMethod>}
|
|
1217
|
+
* @memberof TwoFactorAuthentication
|
|
1218
|
+
*/
|
|
1219
|
+
'setupMethods'?: Array<SetupMethod>;
|
|
1220
|
+
}
|
|
1175
1221
|
/**
|
|
1176
1222
|
*
|
|
1177
1223
|
* @export
|
|
@@ -2755,6 +2801,51 @@ export const ProjectsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
2755
2801
|
|
|
2756
2802
|
|
|
2757
2803
|
|
|
2804
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2805
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2806
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2807
|
+
|
|
2808
|
+
return {
|
|
2809
|
+
url: toPathString(localVarUrlObj),
|
|
2810
|
+
options: localVarRequestOptions,
|
|
2811
|
+
};
|
|
2812
|
+
},
|
|
2813
|
+
/**
|
|
2814
|
+
* Reset 2FA for a given user
|
|
2815
|
+
* @summary Reset 2FA
|
|
2816
|
+
* @param {string} project Projects unique identifier
|
|
2817
|
+
* @param {string} user the unique id of the user
|
|
2818
|
+
* @param {*} [options] Override http request option.
|
|
2819
|
+
* @throws {RequiredError}
|
|
2820
|
+
*/
|
|
2821
|
+
reset2FA: async (project: string, user: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2822
|
+
// verify required parameter 'project' is not null or undefined
|
|
2823
|
+
assertParamExists('reset2FA', 'project', project)
|
|
2824
|
+
// verify required parameter 'user' is not null or undefined
|
|
2825
|
+
assertParamExists('reset2FA', 'user', user)
|
|
2826
|
+
const localVarPath = `/v1/projects/{project}/users/{user}/reset-2fa`
|
|
2827
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
2828
|
+
.replace(`{${"user"}}`, encodeURIComponent(String(user)));
|
|
2829
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2830
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2831
|
+
let baseOptions;
|
|
2832
|
+
if (configuration) {
|
|
2833
|
+
baseOptions = configuration.baseOptions;
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
2837
|
+
const localVarHeaderParameter = {} as any;
|
|
2838
|
+
const localVarQueryParameter = {} as any;
|
|
2839
|
+
|
|
2840
|
+
// authentication session-oauth required
|
|
2841
|
+
// oauth required
|
|
2842
|
+
await setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration)
|
|
2843
|
+
|
|
2844
|
+
// authentication api-key required
|
|
2845
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2846
|
+
|
|
2847
|
+
|
|
2848
|
+
|
|
2758
2849
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2759
2850
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2760
2851
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3591,6 +3682,20 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
3591
3682
|
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.listTasks']?.[localVarOperationServerIndex]?.url;
|
|
3592
3683
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3593
3684
|
},
|
|
3685
|
+
/**
|
|
3686
|
+
* Reset 2FA for a given user
|
|
3687
|
+
* @summary Reset 2FA
|
|
3688
|
+
* @param {string} project Projects unique identifier
|
|
3689
|
+
* @param {string} user the unique id of the user
|
|
3690
|
+
* @param {*} [options] Override http request option.
|
|
3691
|
+
* @throws {RequiredError}
|
|
3692
|
+
*/
|
|
3693
|
+
async reset2FA(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3694
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.reset2FA(project, user, options);
|
|
3695
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3696
|
+
const localVarOperationServerBasePath = operationServerMap['ProjectsApi.reset2FA']?.[localVarOperationServerIndex]?.url;
|
|
3697
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3698
|
+
},
|
|
3594
3699
|
/**
|
|
3595
3700
|
* Setup an integration on the project
|
|
3596
3701
|
* @summary Setup integration
|
|
@@ -4028,6 +4133,16 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
4028
4133
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTasksResponse> {
|
|
4029
4134
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
4030
4135
|
},
|
|
4136
|
+
/**
|
|
4137
|
+
* Reset 2FA for a given user
|
|
4138
|
+
* @summary Reset 2FA
|
|
4139
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
4140
|
+
* @param {*} [options] Override http request option.
|
|
4141
|
+
* @throws {RequiredError}
|
|
4142
|
+
*/
|
|
4143
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
4144
|
+
return localVarFp.reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
4145
|
+
},
|
|
4031
4146
|
/**
|
|
4032
4147
|
* Setup an integration on the project
|
|
4033
4148
|
* @summary Setup integration
|
|
@@ -4699,6 +4814,27 @@ export interface ProjectsApiListTasksRequest {
|
|
|
4699
4814
|
readonly project: string
|
|
4700
4815
|
}
|
|
4701
4816
|
|
|
4817
|
+
/**
|
|
4818
|
+
* Request parameters for reset2FA operation in ProjectsApi.
|
|
4819
|
+
* @export
|
|
4820
|
+
* @interface ProjectsApiReset2FARequest
|
|
4821
|
+
*/
|
|
4822
|
+
export interface ProjectsApiReset2FARequest {
|
|
4823
|
+
/**
|
|
4824
|
+
* Projects unique identifier
|
|
4825
|
+
* @type {string}
|
|
4826
|
+
* @memberof ProjectsApiReset2FA
|
|
4827
|
+
*/
|
|
4828
|
+
readonly project: string
|
|
4829
|
+
|
|
4830
|
+
/**
|
|
4831
|
+
* the unique id of the user
|
|
4832
|
+
* @type {string}
|
|
4833
|
+
* @memberof ProjectsApiReset2FA
|
|
4834
|
+
*/
|
|
4835
|
+
readonly user: string
|
|
4836
|
+
}
|
|
4837
|
+
|
|
4702
4838
|
/**
|
|
4703
4839
|
* Request parameters for setupIntegration operation in ProjectsApi.
|
|
4704
4840
|
* @export
|
|
@@ -5281,6 +5417,18 @@ export class ProjectsApi extends BaseAPI {
|
|
|
5281
5417
|
return ProjectsApiFp(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
5282
5418
|
}
|
|
5283
5419
|
|
|
5420
|
+
/**
|
|
5421
|
+
* Reset 2FA for a given user
|
|
5422
|
+
* @summary Reset 2FA
|
|
5423
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
5424
|
+
* @param {*} [options] Override http request option.
|
|
5425
|
+
* @throws {RequiredError}
|
|
5426
|
+
* @memberof ProjectsApi
|
|
5427
|
+
*/
|
|
5428
|
+
public reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig) {
|
|
5429
|
+
return ProjectsApiFp(this.configuration).reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
5430
|
+
}
|
|
5431
|
+
|
|
5284
5432
|
/**
|
|
5285
5433
|
* Setup an integration on the project
|
|
5286
5434
|
* @summary Setup integration
|
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.46.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -836,6 +836,12 @@ export interface ProjectUser {
|
|
|
836
836
|
* @memberof ProjectUser
|
|
837
837
|
*/
|
|
838
838
|
'avatar': ProjectUserAvatar;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {TwoFactorAuthentication}
|
|
842
|
+
* @memberof ProjectUser
|
|
843
|
+
*/
|
|
844
|
+
'twoFactorAuthentication': TwoFactorAuthentication;
|
|
839
845
|
}
|
|
840
846
|
export declare const ProjectUserTypeEnum: {
|
|
841
847
|
readonly User: "user";
|
|
@@ -888,6 +894,23 @@ export interface ProjectsResponse {
|
|
|
888
894
|
*/
|
|
889
895
|
'projects': Array<Project>;
|
|
890
896
|
}
|
|
897
|
+
/**
|
|
898
|
+
*
|
|
899
|
+
* @export
|
|
900
|
+
* @interface SetupMethod
|
|
901
|
+
*/
|
|
902
|
+
export interface SetupMethod {
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @type {string}
|
|
906
|
+
* @memberof SetupMethod
|
|
907
|
+
*/
|
|
908
|
+
'type': SetupMethodTypeEnum;
|
|
909
|
+
}
|
|
910
|
+
export declare const SetupMethodTypeEnum: {
|
|
911
|
+
readonly Authenticator: "authenticator";
|
|
912
|
+
};
|
|
913
|
+
export type SetupMethodTypeEnum = typeof SetupMethodTypeEnum[keyof typeof SetupMethodTypeEnum];
|
|
891
914
|
/**
|
|
892
915
|
*
|
|
893
916
|
* @export
|
|
@@ -995,6 +1018,7 @@ export declare const TaskStatus: {
|
|
|
995
1018
|
readonly Need: "need";
|
|
996
1019
|
readonly Doing: "doing";
|
|
997
1020
|
readonly Done: "done";
|
|
1021
|
+
readonly Archived: "archived";
|
|
998
1022
|
};
|
|
999
1023
|
export type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
|
|
1000
1024
|
/**
|
|
@@ -1140,6 +1164,25 @@ export interface TemplatesResponse {
|
|
|
1140
1164
|
*/
|
|
1141
1165
|
'templates': Array<Template>;
|
|
1142
1166
|
}
|
|
1167
|
+
/**
|
|
1168
|
+
*
|
|
1169
|
+
* @export
|
|
1170
|
+
* @interface TwoFactorAuthentication
|
|
1171
|
+
*/
|
|
1172
|
+
export interface TwoFactorAuthentication {
|
|
1173
|
+
/**
|
|
1174
|
+
*
|
|
1175
|
+
* @type {boolean}
|
|
1176
|
+
* @memberof TwoFactorAuthentication
|
|
1177
|
+
*/
|
|
1178
|
+
'required'?: boolean;
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @type {Array<SetupMethod>}
|
|
1182
|
+
* @memberof TwoFactorAuthentication
|
|
1183
|
+
*/
|
|
1184
|
+
'setupMethods'?: Array<SetupMethod>;
|
|
1185
|
+
}
|
|
1143
1186
|
/**
|
|
1144
1187
|
*
|
|
1145
1188
|
* @export
|
|
@@ -1620,6 +1663,15 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1620
1663
|
* @throws {RequiredError}
|
|
1621
1664
|
*/
|
|
1622
1665
|
listTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1666
|
+
/**
|
|
1667
|
+
* Reset 2FA for a given user
|
|
1668
|
+
* @summary Reset 2FA
|
|
1669
|
+
* @param {string} project Projects unique identifier
|
|
1670
|
+
* @param {string} user the unique id of the user
|
|
1671
|
+
* @param {*} [options] Override http request option.
|
|
1672
|
+
* @throws {RequiredError}
|
|
1673
|
+
*/
|
|
1674
|
+
reset2FA: (project: string, user: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1623
1675
|
/**
|
|
1624
1676
|
* Setup an integration on the project
|
|
1625
1677
|
* @summary Setup integration
|
|
@@ -1973,6 +2025,15 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
1973
2025
|
* @throws {RequiredError}
|
|
1974
2026
|
*/
|
|
1975
2027
|
listTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponse>>;
|
|
2028
|
+
/**
|
|
2029
|
+
* Reset 2FA for a given user
|
|
2030
|
+
* @summary Reset 2FA
|
|
2031
|
+
* @param {string} project Projects unique identifier
|
|
2032
|
+
* @param {string} user the unique id of the user
|
|
2033
|
+
* @param {*} [options] Override http request option.
|
|
2034
|
+
* @throws {RequiredError}
|
|
2035
|
+
*/
|
|
2036
|
+
reset2FA(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1976
2037
|
/**
|
|
1977
2038
|
* Setup an integration on the project
|
|
1978
2039
|
* @summary Setup integration
|
|
@@ -2304,6 +2365,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
2304
2365
|
* @throws {RequiredError}
|
|
2305
2366
|
*/
|
|
2306
2367
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTasksResponse>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Reset 2FA for a given user
|
|
2370
|
+
* @summary Reset 2FA
|
|
2371
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
*/
|
|
2375
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2307
2376
|
/**
|
|
2308
2377
|
* Setup an integration on the project
|
|
2309
2378
|
* @summary Setup integration
|
|
@@ -2904,6 +2973,25 @@ export interface ProjectsApiListTasksRequest {
|
|
|
2904
2973
|
*/
|
|
2905
2974
|
readonly project: string;
|
|
2906
2975
|
}
|
|
2976
|
+
/**
|
|
2977
|
+
* Request parameters for reset2FA operation in ProjectsApi.
|
|
2978
|
+
* @export
|
|
2979
|
+
* @interface ProjectsApiReset2FARequest
|
|
2980
|
+
*/
|
|
2981
|
+
export interface ProjectsApiReset2FARequest {
|
|
2982
|
+
/**
|
|
2983
|
+
* Projects unique identifier
|
|
2984
|
+
* @type {string}
|
|
2985
|
+
* @memberof ProjectsApiReset2FA
|
|
2986
|
+
*/
|
|
2987
|
+
readonly project: string;
|
|
2988
|
+
/**
|
|
2989
|
+
* the unique id of the user
|
|
2990
|
+
* @type {string}
|
|
2991
|
+
* @memberof ProjectsApiReset2FA
|
|
2992
|
+
*/
|
|
2993
|
+
readonly user: string;
|
|
2994
|
+
}
|
|
2907
2995
|
/**
|
|
2908
2996
|
* Request parameters for setupIntegration operation in ProjectsApi.
|
|
2909
2997
|
* @export
|
|
@@ -3372,6 +3460,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
3372
3460
|
* @memberof ProjectsApi
|
|
3373
3461
|
*/
|
|
3374
3462
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTasksResponse, any>>;
|
|
3463
|
+
/**
|
|
3464
|
+
* Reset 2FA for a given user
|
|
3465
|
+
* @summary Reset 2FA
|
|
3466
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3467
|
+
* @param {*} [options] Override http request option.
|
|
3468
|
+
* @throws {RequiredError}
|
|
3469
|
+
* @memberof ProjectsApi
|
|
3470
|
+
*/
|
|
3471
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3375
3472
|
/**
|
|
3376
3473
|
* Setup an integration on the project
|
|
3377
3474
|
* @summary Setup integration
|
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.46.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.TemplateCode = exports.TaskStatus = exports.ProjectUserTypeEnum = exports.OkrLevel = void 0;
|
|
25
|
+
exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.TemplateCode = exports.TaskStatus = exports.SetupMethodTypeEnum = exports.ProjectUserTypeEnum = exports.OkrLevel = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -44,6 +44,9 @@ exports.ProjectUserTypeEnum = {
|
|
|
44
44
|
Service: 'service',
|
|
45
45
|
Ghost: 'ghost'
|
|
46
46
|
};
|
|
47
|
+
exports.SetupMethodTypeEnum = {
|
|
48
|
+
Authenticator: 'authenticator'
|
|
49
|
+
};
|
|
47
50
|
/**
|
|
48
51
|
*
|
|
49
52
|
* @export
|
|
@@ -53,7 +56,8 @@ exports.TaskStatus = {
|
|
|
53
56
|
Nice: 'nice',
|
|
54
57
|
Need: 'need',
|
|
55
58
|
Doing: 'doing',
|
|
56
|
-
Done: 'done'
|
|
59
|
+
Done: 'done',
|
|
60
|
+
Archived: 'archived'
|
|
57
61
|
};
|
|
58
62
|
/**
|
|
59
63
|
*
|
|
@@ -1220,6 +1224,44 @@ const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1220
1224
|
options: localVarRequestOptions,
|
|
1221
1225
|
};
|
|
1222
1226
|
}),
|
|
1227
|
+
/**
|
|
1228
|
+
* Reset 2FA for a given user
|
|
1229
|
+
* @summary Reset 2FA
|
|
1230
|
+
* @param {string} project Projects unique identifier
|
|
1231
|
+
* @param {string} user the unique id of the user
|
|
1232
|
+
* @param {*} [options] Override http request option.
|
|
1233
|
+
* @throws {RequiredError}
|
|
1234
|
+
*/
|
|
1235
|
+
reset2FA: (project_1, user_1, ...args_1) => __awaiter(this, [project_1, user_1, ...args_1], void 0, function* (project, user, options = {}) {
|
|
1236
|
+
// verify required parameter 'project' is not null or undefined
|
|
1237
|
+
(0, common_1.assertParamExists)('reset2FA', 'project', project);
|
|
1238
|
+
// verify required parameter 'user' is not null or undefined
|
|
1239
|
+
(0, common_1.assertParamExists)('reset2FA', 'user', user);
|
|
1240
|
+
const localVarPath = `/v1/projects/{project}/users/{user}/reset-2fa`
|
|
1241
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1242
|
+
.replace(`{${"user"}}`, encodeURIComponent(String(user)));
|
|
1243
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1244
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1245
|
+
let baseOptions;
|
|
1246
|
+
if (configuration) {
|
|
1247
|
+
baseOptions = configuration.baseOptions;
|
|
1248
|
+
}
|
|
1249
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1250
|
+
const localVarHeaderParameter = {};
|
|
1251
|
+
const localVarQueryParameter = {};
|
|
1252
|
+
// authentication session-oauth required
|
|
1253
|
+
// oauth required
|
|
1254
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1255
|
+
// authentication api-key required
|
|
1256
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1257
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1258
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1259
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1260
|
+
return {
|
|
1261
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1262
|
+
options: localVarRequestOptions,
|
|
1263
|
+
};
|
|
1264
|
+
}),
|
|
1223
1265
|
/**
|
|
1224
1266
|
* Setup an integration on the project
|
|
1225
1267
|
* @summary Setup integration
|
|
@@ -2077,6 +2119,23 @@ const ProjectsApiFp = function (configuration) {
|
|
|
2077
2119
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2078
2120
|
});
|
|
2079
2121
|
},
|
|
2122
|
+
/**
|
|
2123
|
+
* Reset 2FA for a given user
|
|
2124
|
+
* @summary Reset 2FA
|
|
2125
|
+
* @param {string} project Projects unique identifier
|
|
2126
|
+
* @param {string} user the unique id of the user
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
*/
|
|
2130
|
+
reset2FA(project, user, options) {
|
|
2131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2132
|
+
var _a, _b, _c;
|
|
2133
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reset2FA(project, user, 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 = base_1.operationServerMap['ProjectsApi.reset2FA']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2136
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2137
|
+
});
|
|
2138
|
+
},
|
|
2080
2139
|
/**
|
|
2081
2140
|
* Setup an integration on the project
|
|
2082
2141
|
* @summary Setup integration
|
|
@@ -2538,6 +2597,16 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2538
2597
|
listTasks(requestParameters, options) {
|
|
2539
2598
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2540
2599
|
},
|
|
2600
|
+
/**
|
|
2601
|
+
* Reset 2FA for a given user
|
|
2602
|
+
* @summary Reset 2FA
|
|
2603
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2604
|
+
* @param {*} [options] Override http request option.
|
|
2605
|
+
* @throws {RequiredError}
|
|
2606
|
+
*/
|
|
2607
|
+
reset2FA(requestParameters, options) {
|
|
2608
|
+
return localVarFp.reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
2609
|
+
},
|
|
2541
2610
|
/**
|
|
2542
2611
|
* Setup an integration on the project
|
|
2543
2612
|
* @summary Setup integration
|
|
@@ -2969,6 +3038,17 @@ class ProjectsApi extends base_1.BaseAPI {
|
|
|
2969
3038
|
listTasks(requestParameters, options) {
|
|
2970
3039
|
return (0, exports.ProjectsApiFp)(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2971
3040
|
}
|
|
3041
|
+
/**
|
|
3042
|
+
* Reset 2FA for a given user
|
|
3043
|
+
* @summary Reset 2FA
|
|
3044
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3045
|
+
* @param {*} [options] Override http request option.
|
|
3046
|
+
* @throws {RequiredError}
|
|
3047
|
+
* @memberof ProjectsApi
|
|
3048
|
+
*/
|
|
3049
|
+
reset2FA(requestParameters, options) {
|
|
3050
|
+
return (0, exports.ProjectsApiFp)(this.configuration).reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
3051
|
+
}
|
|
2972
3052
|
/**
|
|
2973
3053
|
* Setup an integration on the project
|
|
2974
3054
|
* @summary Setup integration
|
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.46.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -836,6 +836,12 @@ export interface ProjectUser {
|
|
|
836
836
|
* @memberof ProjectUser
|
|
837
837
|
*/
|
|
838
838
|
'avatar': ProjectUserAvatar;
|
|
839
|
+
/**
|
|
840
|
+
*
|
|
841
|
+
* @type {TwoFactorAuthentication}
|
|
842
|
+
* @memberof ProjectUser
|
|
843
|
+
*/
|
|
844
|
+
'twoFactorAuthentication': TwoFactorAuthentication;
|
|
839
845
|
}
|
|
840
846
|
export declare const ProjectUserTypeEnum: {
|
|
841
847
|
readonly User: "user";
|
|
@@ -888,6 +894,23 @@ export interface ProjectsResponse {
|
|
|
888
894
|
*/
|
|
889
895
|
'projects': Array<Project>;
|
|
890
896
|
}
|
|
897
|
+
/**
|
|
898
|
+
*
|
|
899
|
+
* @export
|
|
900
|
+
* @interface SetupMethod
|
|
901
|
+
*/
|
|
902
|
+
export interface SetupMethod {
|
|
903
|
+
/**
|
|
904
|
+
*
|
|
905
|
+
* @type {string}
|
|
906
|
+
* @memberof SetupMethod
|
|
907
|
+
*/
|
|
908
|
+
'type': SetupMethodTypeEnum;
|
|
909
|
+
}
|
|
910
|
+
export declare const SetupMethodTypeEnum: {
|
|
911
|
+
readonly Authenticator: "authenticator";
|
|
912
|
+
};
|
|
913
|
+
export type SetupMethodTypeEnum = typeof SetupMethodTypeEnum[keyof typeof SetupMethodTypeEnum];
|
|
891
914
|
/**
|
|
892
915
|
*
|
|
893
916
|
* @export
|
|
@@ -995,6 +1018,7 @@ export declare const TaskStatus: {
|
|
|
995
1018
|
readonly Need: "need";
|
|
996
1019
|
readonly Doing: "doing";
|
|
997
1020
|
readonly Done: "done";
|
|
1021
|
+
readonly Archived: "archived";
|
|
998
1022
|
};
|
|
999
1023
|
export type TaskStatus = typeof TaskStatus[keyof typeof TaskStatus];
|
|
1000
1024
|
/**
|
|
@@ -1140,6 +1164,25 @@ export interface TemplatesResponse {
|
|
|
1140
1164
|
*/
|
|
1141
1165
|
'templates': Array<Template>;
|
|
1142
1166
|
}
|
|
1167
|
+
/**
|
|
1168
|
+
*
|
|
1169
|
+
* @export
|
|
1170
|
+
* @interface TwoFactorAuthentication
|
|
1171
|
+
*/
|
|
1172
|
+
export interface TwoFactorAuthentication {
|
|
1173
|
+
/**
|
|
1174
|
+
*
|
|
1175
|
+
* @type {boolean}
|
|
1176
|
+
* @memberof TwoFactorAuthentication
|
|
1177
|
+
*/
|
|
1178
|
+
'required'?: boolean;
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @type {Array<SetupMethod>}
|
|
1182
|
+
* @memberof TwoFactorAuthentication
|
|
1183
|
+
*/
|
|
1184
|
+
'setupMethods'?: Array<SetupMethod>;
|
|
1185
|
+
}
|
|
1143
1186
|
/**
|
|
1144
1187
|
*
|
|
1145
1188
|
* @export
|
|
@@ -1620,6 +1663,15 @@ export declare const ProjectsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
1620
1663
|
* @throws {RequiredError}
|
|
1621
1664
|
*/
|
|
1622
1665
|
listTasks: (project: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1666
|
+
/**
|
|
1667
|
+
* Reset 2FA for a given user
|
|
1668
|
+
* @summary Reset 2FA
|
|
1669
|
+
* @param {string} project Projects unique identifier
|
|
1670
|
+
* @param {string} user the unique id of the user
|
|
1671
|
+
* @param {*} [options] Override http request option.
|
|
1672
|
+
* @throws {RequiredError}
|
|
1673
|
+
*/
|
|
1674
|
+
reset2FA: (project: string, user: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1623
1675
|
/**
|
|
1624
1676
|
* Setup an integration on the project
|
|
1625
1677
|
* @summary Setup integration
|
|
@@ -1973,6 +2025,15 @@ export declare const ProjectsApiFp: (configuration?: Configuration) => {
|
|
|
1973
2025
|
* @throws {RequiredError}
|
|
1974
2026
|
*/
|
|
1975
2027
|
listTasks(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTasksResponse>>;
|
|
2028
|
+
/**
|
|
2029
|
+
* Reset 2FA for a given user
|
|
2030
|
+
* @summary Reset 2FA
|
|
2031
|
+
* @param {string} project Projects unique identifier
|
|
2032
|
+
* @param {string} user the unique id of the user
|
|
2033
|
+
* @param {*} [options] Override http request option.
|
|
2034
|
+
* @throws {RequiredError}
|
|
2035
|
+
*/
|
|
2036
|
+
reset2FA(project: string, user: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
1976
2037
|
/**
|
|
1977
2038
|
* Setup an integration on the project
|
|
1978
2039
|
* @summary Setup integration
|
|
@@ -2304,6 +2365,14 @@ export declare const ProjectsApiFactory: (configuration?: Configuration, basePat
|
|
|
2304
2365
|
* @throws {RequiredError}
|
|
2305
2366
|
*/
|
|
2306
2367
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<ListTasksResponse>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Reset 2FA for a given user
|
|
2370
|
+
* @summary Reset 2FA
|
|
2371
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
*/
|
|
2375
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
2307
2376
|
/**
|
|
2308
2377
|
* Setup an integration on the project
|
|
2309
2378
|
* @summary Setup integration
|
|
@@ -2904,6 +2973,25 @@ export interface ProjectsApiListTasksRequest {
|
|
|
2904
2973
|
*/
|
|
2905
2974
|
readonly project: string;
|
|
2906
2975
|
}
|
|
2976
|
+
/**
|
|
2977
|
+
* Request parameters for reset2FA operation in ProjectsApi.
|
|
2978
|
+
* @export
|
|
2979
|
+
* @interface ProjectsApiReset2FARequest
|
|
2980
|
+
*/
|
|
2981
|
+
export interface ProjectsApiReset2FARequest {
|
|
2982
|
+
/**
|
|
2983
|
+
* Projects unique identifier
|
|
2984
|
+
* @type {string}
|
|
2985
|
+
* @memberof ProjectsApiReset2FA
|
|
2986
|
+
*/
|
|
2987
|
+
readonly project: string;
|
|
2988
|
+
/**
|
|
2989
|
+
* the unique id of the user
|
|
2990
|
+
* @type {string}
|
|
2991
|
+
* @memberof ProjectsApiReset2FA
|
|
2992
|
+
*/
|
|
2993
|
+
readonly user: string;
|
|
2994
|
+
}
|
|
2907
2995
|
/**
|
|
2908
2996
|
* Request parameters for setupIntegration operation in ProjectsApi.
|
|
2909
2997
|
* @export
|
|
@@ -3372,6 +3460,15 @@ export declare class ProjectsApi extends BaseAPI {
|
|
|
3372
3460
|
* @memberof ProjectsApi
|
|
3373
3461
|
*/
|
|
3374
3462
|
listTasks(requestParameters: ProjectsApiListTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTasksResponse, any>>;
|
|
3463
|
+
/**
|
|
3464
|
+
* Reset 2FA for a given user
|
|
3465
|
+
* @summary Reset 2FA
|
|
3466
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3467
|
+
* @param {*} [options] Override http request option.
|
|
3468
|
+
* @throws {RequiredError}
|
|
3469
|
+
* @memberof ProjectsApi
|
|
3470
|
+
*/
|
|
3471
|
+
reset2FA(requestParameters: ProjectsApiReset2FARequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
3375
3472
|
/**
|
|
3376
3473
|
* Setup an integration on the project
|
|
3377
3474
|
* @summary Setup integration
|
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.46.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,6 +41,9 @@ export const ProjectUserTypeEnum = {
|
|
|
41
41
|
Service: 'service',
|
|
42
42
|
Ghost: 'ghost'
|
|
43
43
|
};
|
|
44
|
+
export const SetupMethodTypeEnum = {
|
|
45
|
+
Authenticator: 'authenticator'
|
|
46
|
+
};
|
|
44
47
|
/**
|
|
45
48
|
*
|
|
46
49
|
* @export
|
|
@@ -50,7 +53,8 @@ export const TaskStatus = {
|
|
|
50
53
|
Nice: 'nice',
|
|
51
54
|
Need: 'need',
|
|
52
55
|
Doing: 'doing',
|
|
53
|
-
Done: 'done'
|
|
56
|
+
Done: 'done',
|
|
57
|
+
Archived: 'archived'
|
|
54
58
|
};
|
|
55
59
|
/**
|
|
56
60
|
*
|
|
@@ -1217,6 +1221,44 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
1217
1221
|
options: localVarRequestOptions,
|
|
1218
1222
|
};
|
|
1219
1223
|
}),
|
|
1224
|
+
/**
|
|
1225
|
+
* Reset 2FA for a given user
|
|
1226
|
+
* @summary Reset 2FA
|
|
1227
|
+
* @param {string} project Projects unique identifier
|
|
1228
|
+
* @param {string} user the unique id of the user
|
|
1229
|
+
* @param {*} [options] Override http request option.
|
|
1230
|
+
* @throws {RequiredError}
|
|
1231
|
+
*/
|
|
1232
|
+
reset2FA: (project_1, user_1, ...args_1) => __awaiter(this, [project_1, user_1, ...args_1], void 0, function* (project, user, options = {}) {
|
|
1233
|
+
// verify required parameter 'project' is not null or undefined
|
|
1234
|
+
assertParamExists('reset2FA', 'project', project);
|
|
1235
|
+
// verify required parameter 'user' is not null or undefined
|
|
1236
|
+
assertParamExists('reset2FA', 'user', user);
|
|
1237
|
+
const localVarPath = `/v1/projects/{project}/users/{user}/reset-2fa`
|
|
1238
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
1239
|
+
.replace(`{${"user"}}`, encodeURIComponent(String(user)));
|
|
1240
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1241
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1242
|
+
let baseOptions;
|
|
1243
|
+
if (configuration) {
|
|
1244
|
+
baseOptions = configuration.baseOptions;
|
|
1245
|
+
}
|
|
1246
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1247
|
+
const localVarHeaderParameter = {};
|
|
1248
|
+
const localVarQueryParameter = {};
|
|
1249
|
+
// authentication session-oauth required
|
|
1250
|
+
// oauth required
|
|
1251
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
1252
|
+
// authentication api-key required
|
|
1253
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1254
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1255
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1256
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1257
|
+
return {
|
|
1258
|
+
url: toPathString(localVarUrlObj),
|
|
1259
|
+
options: localVarRequestOptions,
|
|
1260
|
+
};
|
|
1261
|
+
}),
|
|
1220
1262
|
/**
|
|
1221
1263
|
* Setup an integration on the project
|
|
1222
1264
|
* @summary Setup integration
|
|
@@ -2073,6 +2115,23 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
2073
2115
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2074
2116
|
});
|
|
2075
2117
|
},
|
|
2118
|
+
/**
|
|
2119
|
+
* Reset 2FA for a given user
|
|
2120
|
+
* @summary Reset 2FA
|
|
2121
|
+
* @param {string} project Projects unique identifier
|
|
2122
|
+
* @param {string} user the unique id of the user
|
|
2123
|
+
* @param {*} [options] Override http request option.
|
|
2124
|
+
* @throws {RequiredError}
|
|
2125
|
+
*/
|
|
2126
|
+
reset2FA(project, user, options) {
|
|
2127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2128
|
+
var _a, _b, _c;
|
|
2129
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.reset2FA(project, user, options);
|
|
2130
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2131
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.reset2FA']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2132
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2133
|
+
});
|
|
2134
|
+
},
|
|
2076
2135
|
/**
|
|
2077
2136
|
* Setup an integration on the project
|
|
2078
2137
|
* @summary Setup integration
|
|
@@ -2533,6 +2592,16 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
2533
2592
|
listTasks(requestParameters, options) {
|
|
2534
2593
|
return localVarFp.listTasks(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2535
2594
|
},
|
|
2595
|
+
/**
|
|
2596
|
+
* Reset 2FA for a given user
|
|
2597
|
+
* @summary Reset 2FA
|
|
2598
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
2599
|
+
* @param {*} [options] Override http request option.
|
|
2600
|
+
* @throws {RequiredError}
|
|
2601
|
+
*/
|
|
2602
|
+
reset2FA(requestParameters, options) {
|
|
2603
|
+
return localVarFp.reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(axios, basePath));
|
|
2604
|
+
},
|
|
2536
2605
|
/**
|
|
2537
2606
|
* Setup an integration on the project
|
|
2538
2607
|
* @summary Setup integration
|
|
@@ -2963,6 +3032,17 @@ export class ProjectsApi extends BaseAPI {
|
|
|
2963
3032
|
listTasks(requestParameters, options) {
|
|
2964
3033
|
return ProjectsApiFp(this.configuration).listTasks(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2965
3034
|
}
|
|
3035
|
+
/**
|
|
3036
|
+
* Reset 2FA for a given user
|
|
3037
|
+
* @summary Reset 2FA
|
|
3038
|
+
* @param {ProjectsApiReset2FARequest} requestParameters Request parameters.
|
|
3039
|
+
* @param {*} [options] Override http request option.
|
|
3040
|
+
* @throws {RequiredError}
|
|
3041
|
+
* @memberof ProjectsApi
|
|
3042
|
+
*/
|
|
3043
|
+
reset2FA(requestParameters, options) {
|
|
3044
|
+
return ProjectsApiFp(this.configuration).reset2FA(requestParameters.project, requestParameters.user, options).then((request) => request(this.axios, this.basePath));
|
|
3045
|
+
}
|
|
2966
3046
|
/**
|
|
2967
3047
|
* Setup an integration on the project
|
|
2968
3048
|
* @summary Setup integration
|
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/ProjectUser.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**username** | **string** | | [default to undefined]
|
|
14
14
|
**email** | **string** | | [default to undefined]
|
|
15
15
|
**avatar** | [**ProjectUserAvatar**](ProjectUserAvatar.md) | | [default to undefined]
|
|
16
|
+
**twoFactorAuthentication** | [**TwoFactorAuthentication**](TwoFactorAuthentication.md) | | [default to undefined]
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const instance: ProjectUser = {
|
|
|
28
29
|
username,
|
|
29
30
|
email,
|
|
30
31
|
avatar,
|
|
32
|
+
twoFactorAuthentication,
|
|
31
33
|
};
|
|
32
34
|
```
|
|
33
35
|
|
package/docs/ProjectsApi.md
CHANGED
|
@@ -35,6 +35,7 @@ All URIs are relative to *https://localhost:8080*
|
|
|
35
35
|
|[**listBookmarks**](#listbookmarks) | **GET** /v1/projects/{project}/bookmarks | List bookmarks|
|
|
36
36
|
|[**listBookmarktabs**](#listbookmarktabs) | **GET** /v1/projects/{project}/bookmarktabs | List bookmark tabs|
|
|
37
37
|
|[**listTasks**](#listtasks) | **GET** /v1/projects/{project}/tasks | List Tasks|
|
|
38
|
+
|[**reset2FA**](#reset2fa) | **POST** /v1/projects/{project}/users/{user}/reset-2fa | Reset 2FA|
|
|
38
39
|
|[**setupIntegration**](#setupintegration) | **POST** /v1/projects/{project}/integrations/{integration}/setup | Setup integration|
|
|
39
40
|
|[**uninstallIntegration**](#uninstallintegration) | **DELETE** /v1/projects/{project}/integrations/{integration} | Uninstall integration|
|
|
40
41
|
|[**updateBookmark**](#updatebookmark) | **PATCH** /v1/projects/{project}/bookmarks/{id} | Update bookmark|
|
|
@@ -1822,6 +1823,65 @@ const { status, data } = await apiInstance.listTasks(
|
|
|
1822
1823
|
|
|
1823
1824
|
[[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)
|
|
1824
1825
|
|
|
1826
|
+
# **reset2FA**
|
|
1827
|
+
> reset2FA()
|
|
1828
|
+
|
|
1829
|
+
Reset 2FA for a given user
|
|
1830
|
+
|
|
1831
|
+
### Example
|
|
1832
|
+
|
|
1833
|
+
```typescript
|
|
1834
|
+
import {
|
|
1835
|
+
ProjectsApi,
|
|
1836
|
+
Configuration
|
|
1837
|
+
} from '@teemill/projects';
|
|
1838
|
+
|
|
1839
|
+
const configuration = new Configuration();
|
|
1840
|
+
const apiInstance = new ProjectsApi(configuration);
|
|
1841
|
+
|
|
1842
|
+
let project: string; //Projects unique identifier (default to undefined)
|
|
1843
|
+
let user: string; //the unique id of the user (default to undefined)
|
|
1844
|
+
|
|
1845
|
+
const { status, data } = await apiInstance.reset2FA(
|
|
1846
|
+
project,
|
|
1847
|
+
user
|
|
1848
|
+
);
|
|
1849
|
+
```
|
|
1850
|
+
|
|
1851
|
+
### Parameters
|
|
1852
|
+
|
|
1853
|
+
|Name | Type | Description | Notes|
|
|
1854
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1855
|
+
| **project** | [**string**] | Projects unique identifier | defaults to undefined|
|
|
1856
|
+
| **user** | [**string**] | the unique id of the user | defaults to undefined|
|
|
1857
|
+
|
|
1858
|
+
|
|
1859
|
+
### Return type
|
|
1860
|
+
|
|
1861
|
+
void (empty response body)
|
|
1862
|
+
|
|
1863
|
+
### Authorization
|
|
1864
|
+
|
|
1865
|
+
[session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
|
|
1866
|
+
|
|
1867
|
+
### HTTP request headers
|
|
1868
|
+
|
|
1869
|
+
- **Content-Type**: Not defined
|
|
1870
|
+
- **Accept**: application/json
|
|
1871
|
+
|
|
1872
|
+
|
|
1873
|
+
### HTTP response details
|
|
1874
|
+
| Status code | Description | Response headers |
|
|
1875
|
+
|-------------|-------------|------------------|
|
|
1876
|
+
|**200** | Two-factor authentication successfully reset | - |
|
|
1877
|
+
|**400** | Failed validation | - |
|
|
1878
|
+
|**401** | Not authorised to access this resource | - |
|
|
1879
|
+
|**403** | Refuse to authorize | - |
|
|
1880
|
+
|**404** | Resource not found | - |
|
|
1881
|
+
|**500** | Unknown server error | - |
|
|
1882
|
+
|
|
1883
|
+
[[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)
|
|
1884
|
+
|
|
1825
1885
|
# **setupIntegration**
|
|
1826
1886
|
> Integration setupIntegration(updateIntegrationRequest)
|
|
1827
1887
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# SetupMethod
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**type** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SetupMethod } from '@teemill/projects';
|
|
14
|
+
|
|
15
|
+
const instance: SetupMethod = {
|
|
16
|
+
type,
|
|
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/docs/TaskStatus.md
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# TwoFactorAuthentication
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**required** | **boolean** | | [optional] [default to undefined]
|
|
9
|
+
**setupMethods** | [**Array<SetupMethod>**](SetupMethod.md) | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { TwoFactorAuthentication } from '@teemill/projects';
|
|
15
|
+
|
|
16
|
+
const instance: TwoFactorAuthentication = {
|
|
17
|
+
required,
|
|
18
|
+
setupMethods,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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