@se-uulm/snowballr-api-client 0.1.1-alpha.ddb669e → 0.1.1-alpha.ff0ab99
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/.openapi-generator/FILES +6 -1
- package/README.md +2 -2
- package/dist/apis/AuthControllerApi.d.ts +118 -0
- package/dist/apis/AuthControllerApi.js +170 -0
- package/dist/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/apis/ProjectsControllerApi.js +7 -7
- package/dist/apis/UsersControllerApi.d.ts +46 -0
- package/dist/apis/UsersControllerApi.js +61 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/AuthControllerApi.d.ts +118 -0
- package/dist/esm/apis/AuthControllerApi.js +166 -0
- package/dist/esm/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/esm/apis/ProjectsControllerApi.js +8 -8
- package/dist/esm/apis/UsersControllerApi.d.ts +46 -0
- package/dist/esm/apis/UsersControllerApi.js +57 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/ChangePasswordRequest.d.ts +38 -0
- package/dist/esm/models/ChangePasswordRequest.js +43 -0
- package/dist/esm/models/LoginRequest.d.ts +38 -0
- package/dist/esm/models/LoginRequest.js +43 -0
- package/dist/esm/models/{Project.d.ts → ProjectResponse.d.ts} +25 -25
- package/dist/esm/models/{Project.js → ProjectResponse.js} +10 -10
- package/dist/esm/models/RegisterRequest.d.ts +50 -0
- package/dist/esm/models/RegisterRequest.js +47 -0
- package/dist/esm/models/index.d.ts +4 -1
- package/dist/esm/models/index.js +4 -1
- package/dist/models/ChangePasswordRequest.d.ts +38 -0
- package/dist/models/ChangePasswordRequest.js +50 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +50 -0
- package/dist/models/{Project.d.ts → ProjectResponse.d.ts} +25 -25
- package/dist/models/{Project.js → ProjectResponse.js} +16 -16
- package/dist/models/RegisterRequest.d.ts +50 -0
- package/dist/models/RegisterRequest.js +54 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/src/apis/AuthControllerApi.ts +283 -0
- package/src/apis/ProjectsControllerApi.ts +22 -22
- package/src/apis/UsersControllerApi.ts +92 -0
- package/src/apis/index.ts +2 -0
- package/src/models/ChangePasswordRequest.ts +73 -0
- package/src/models/LoginRequest.ts +73 -0
- package/src/models/{Project.ts → ProjectResponse.ts} +27 -27
- package/src/models/RegisterRequest.ts +89 -0
- package/src/models/index.ts +4 -1
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
16
|
+
exports.ProjectResponseSnowballingTypeEnum = exports.ProjectResponseStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfProjectResponse = instanceOfProjectResponse;
|
|
18
|
+
exports.ProjectResponseFromJSON = ProjectResponseFromJSON;
|
|
19
|
+
exports.ProjectResponseFromJSONTyped = ProjectResponseFromJSONTyped;
|
|
20
|
+
exports.ProjectResponseToJSON = ProjectResponseToJSON;
|
|
21
|
+
exports.ProjectResponseToJSONTyped = ProjectResponseToJSONTyped;
|
|
22
22
|
const ReviewDecisionMatrix_1 = require("./ReviewDecisionMatrix");
|
|
23
23
|
/**
|
|
24
24
|
* @export
|
|
25
25
|
*/
|
|
26
|
-
exports.
|
|
26
|
+
exports.ProjectResponseStatusEnum = {
|
|
27
27
|
ACTIVE: 'ACTIVE',
|
|
28
28
|
ACTIVE_LOCKED: 'ACTIVE_LOCKED',
|
|
29
29
|
ARCHIVED: 'ARCHIVED',
|
|
@@ -33,21 +33,21 @@ exports.ProjectStatusEnum = {
|
|
|
33
33
|
/**
|
|
34
34
|
* @export
|
|
35
35
|
*/
|
|
36
|
-
exports.
|
|
36
|
+
exports.ProjectResponseSnowballingTypeEnum = {
|
|
37
37
|
FORWARD: 'FORWARD',
|
|
38
38
|
BACKWARD: 'BACKWARD',
|
|
39
39
|
BOTH: 'BOTH'
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
|
-
* Check if a given object implements the
|
|
42
|
+
* Check if a given object implements the ProjectResponse interface.
|
|
43
43
|
*/
|
|
44
|
-
function
|
|
44
|
+
function instanceOfProjectResponse(value) {
|
|
45
45
|
return true;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
return
|
|
47
|
+
function ProjectResponseFromJSON(json) {
|
|
48
|
+
return ProjectResponseFromJSONTyped(json, false);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function ProjectResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
51
|
if (json == null) {
|
|
52
52
|
return json;
|
|
53
53
|
}
|
|
@@ -65,10 +65,10 @@ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
65
|
'currentStageStartedAt': json['currentStageStartedAt'] == null ? undefined : (new Date(json['currentStageStartedAt'])),
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function ProjectResponseToJSON(json) {
|
|
69
|
+
return ProjectResponseToJSONTyped(json, false);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function ProjectResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
72
|
if (value == null) {
|
|
73
73
|
return value;
|
|
74
74
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SnowballR API
|
|
3
|
+
* REST API for the SnowballR Application
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: v1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RegisterRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface RegisterRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RegisterRequest
|
|
22
|
+
*/
|
|
23
|
+
firstName?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RegisterRequest
|
|
28
|
+
*/
|
|
29
|
+
lastName?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof RegisterRequest
|
|
34
|
+
*/
|
|
35
|
+
email?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RegisterRequest
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfRegisterRequest(value: object): value is RegisterRequest;
|
|
47
|
+
export declare function RegisterRequestFromJSON(json: any): RegisterRequest;
|
|
48
|
+
export declare function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest;
|
|
49
|
+
export declare function RegisterRequestToJSON(json: any): RegisterRequest;
|
|
50
|
+
export declare function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* SnowballR API
|
|
6
|
+
* REST API for the SnowballR Application
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: v1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfRegisterRequest = instanceOfRegisterRequest;
|
|
17
|
+
exports.RegisterRequestFromJSON = RegisterRequestFromJSON;
|
|
18
|
+
exports.RegisterRequestFromJSONTyped = RegisterRequestFromJSONTyped;
|
|
19
|
+
exports.RegisterRequestToJSON = RegisterRequestToJSON;
|
|
20
|
+
exports.RegisterRequestToJSONTyped = RegisterRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the RegisterRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfRegisterRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function RegisterRequestFromJSON(json) {
|
|
28
|
+
return RegisterRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function RegisterRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
36
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
37
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
38
|
+
'password': json['password'] == null ? undefined : json['password'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function RegisterRequestToJSON(json) {
|
|
42
|
+
return RegisterRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function RegisterRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'firstName': value['firstName'],
|
|
50
|
+
'lastName': value['lastName'],
|
|
51
|
+
'email': value['email'],
|
|
52
|
+
'password': value['password'],
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * from './ChangePasswordRequest';
|
|
1
2
|
export * from './CreateProjectRequest';
|
|
2
3
|
export * from './DecisionMatrixPattern';
|
|
3
4
|
export * from './DecisionMatrixPatternEntry';
|
|
4
|
-
export * from './
|
|
5
|
+
export * from './LoginRequest';
|
|
6
|
+
export * from './ProjectResponse';
|
|
7
|
+
export * from './RegisterRequest';
|
|
5
8
|
export * from './ReviewDecisionMatrix';
|
package/dist/models/index.js
CHANGED
|
@@ -16,8 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ChangePasswordRequest"), exports);
|
|
19
20
|
__exportStar(require("./CreateProjectRequest"), exports);
|
|
20
21
|
__exportStar(require("./DecisionMatrixPattern"), exports);
|
|
21
22
|
__exportStar(require("./DecisionMatrixPatternEntry"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./LoginRequest"), exports);
|
|
24
|
+
__exportStar(require("./ProjectResponse"), exports);
|
|
25
|
+
__exportStar(require("./RegisterRequest"), exports);
|
|
23
26
|
__exportStar(require("./ReviewDecisionMatrix"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* SnowballR API
|
|
5
|
+
* REST API for the SnowballR Application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: v1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ChangePasswordRequest,
|
|
19
|
+
LoginRequest,
|
|
20
|
+
} from '../models/index';
|
|
21
|
+
import {
|
|
22
|
+
ChangePasswordRequestFromJSON,
|
|
23
|
+
ChangePasswordRequestToJSON,
|
|
24
|
+
LoginRequestFromJSON,
|
|
25
|
+
LoginRequestToJSON,
|
|
26
|
+
} from '../models/index';
|
|
27
|
+
|
|
28
|
+
export interface ChangePasswordOperationRequest {
|
|
29
|
+
changePasswordRequest: ChangePasswordRequest;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface LoginOperationRequest {
|
|
33
|
+
loginRequest: LoginRequest;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface VerifyEmailRequest {
|
|
37
|
+
token: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* AuthControllerApi - interface
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @interface AuthControllerApiInterface
|
|
45
|
+
*/
|
|
46
|
+
export interface AuthControllerApiInterface {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @param {ChangePasswordRequest} changePasswordRequest
|
|
50
|
+
* @param {*} [options] Override http request option.
|
|
51
|
+
* @throws {RequiredError}
|
|
52
|
+
* @memberof AuthControllerApiInterface
|
|
53
|
+
*/
|
|
54
|
+
changePasswordRaw(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*/
|
|
58
|
+
changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @param {*} [options] Override http request option.
|
|
63
|
+
* @throws {RequiredError}
|
|
64
|
+
* @memberof AuthControllerApiInterface
|
|
65
|
+
*/
|
|
66
|
+
getAuthStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*/
|
|
70
|
+
getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @param {LoginRequest} loginRequest
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
* @memberof AuthControllerApiInterface
|
|
78
|
+
*/
|
|
79
|
+
loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*/
|
|
83
|
+
login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
* @memberof AuthControllerApiInterface
|
|
90
|
+
*/
|
|
91
|
+
logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
*/
|
|
95
|
+
logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @param {string} token
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
* @memberof AuthControllerApiInterface
|
|
103
|
+
*/
|
|
104
|
+
verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
*/
|
|
108
|
+
verifyEmail(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
109
|
+
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
export class AuthControllerApi extends runtime.BaseAPI implements AuthControllerApiInterface {
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
*/
|
|
119
|
+
async changePasswordRaw(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
120
|
+
if (requestParameters['changePasswordRequest'] == null) {
|
|
121
|
+
throw new runtime.RequiredError(
|
|
122
|
+
'changePasswordRequest',
|
|
123
|
+
'Required parameter "changePasswordRequest" was null or undefined when calling changePassword().'
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const queryParameters: any = {};
|
|
128
|
+
|
|
129
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
130
|
+
|
|
131
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
let urlPath = `/api/v1/auth/change-password`;
|
|
135
|
+
|
|
136
|
+
const response = await this.request({
|
|
137
|
+
path: urlPath,
|
|
138
|
+
method: 'POST',
|
|
139
|
+
headers: headerParameters,
|
|
140
|
+
query: queryParameters,
|
|
141
|
+
body: ChangePasswordRequestToJSON(requestParameters['changePasswordRequest']),
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
|
|
144
|
+
return new runtime.VoidApiResponse(response);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
*/
|
|
149
|
+
async changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
150
|
+
await this.changePasswordRaw(requestParameters, initOverrides);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
*/
|
|
155
|
+
async getAuthStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>> {
|
|
156
|
+
const queryParameters: any = {};
|
|
157
|
+
|
|
158
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
let urlPath = `/api/v1/auth/status`;
|
|
162
|
+
|
|
163
|
+
const response = await this.request({
|
|
164
|
+
path: urlPath,
|
|
165
|
+
method: 'GET',
|
|
166
|
+
headers: headerParameters,
|
|
167
|
+
query: queryParameters,
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
|
|
170
|
+
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
171
|
+
return new runtime.JSONApiResponse<string>(response);
|
|
172
|
+
} else {
|
|
173
|
+
return new runtime.TextApiResponse(response) as any;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
*/
|
|
179
|
+
async getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string> {
|
|
180
|
+
const response = await this.getAuthStatusRaw(initOverrides);
|
|
181
|
+
return await response.value();
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
*/
|
|
186
|
+
async loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
187
|
+
if (requestParameters['loginRequest'] == null) {
|
|
188
|
+
throw new runtime.RequiredError(
|
|
189
|
+
'loginRequest',
|
|
190
|
+
'Required parameter "loginRequest" was null or undefined when calling login().'
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const queryParameters: any = {};
|
|
195
|
+
|
|
196
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
197
|
+
|
|
198
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
let urlPath = `/api/v1/auth/login`;
|
|
202
|
+
|
|
203
|
+
const response = await this.request({
|
|
204
|
+
path: urlPath,
|
|
205
|
+
method: 'POST',
|
|
206
|
+
headers: headerParameters,
|
|
207
|
+
query: queryParameters,
|
|
208
|
+
body: LoginRequestToJSON(requestParameters['loginRequest']),
|
|
209
|
+
}, initOverrides);
|
|
210
|
+
|
|
211
|
+
return new runtime.VoidApiResponse(response);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
*/
|
|
216
|
+
async login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
217
|
+
await this.loginRaw(requestParameters, initOverrides);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
*/
|
|
222
|
+
async logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
223
|
+
const queryParameters: any = {};
|
|
224
|
+
|
|
225
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
let urlPath = `/api/v1/auth/logout`;
|
|
229
|
+
|
|
230
|
+
const response = await this.request({
|
|
231
|
+
path: urlPath,
|
|
232
|
+
method: 'POST',
|
|
233
|
+
headers: headerParameters,
|
|
234
|
+
query: queryParameters,
|
|
235
|
+
}, initOverrides);
|
|
236
|
+
|
|
237
|
+
return new runtime.VoidApiResponse(response);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
*/
|
|
242
|
+
async logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
243
|
+
await this.logoutRaw(initOverrides);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
*/
|
|
248
|
+
async verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
249
|
+
if (requestParameters['token'] == null) {
|
|
250
|
+
throw new runtime.RequiredError(
|
|
251
|
+
'token',
|
|
252
|
+
'Required parameter "token" was null or undefined when calling verifyEmail().'
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
const queryParameters: any = {};
|
|
257
|
+
|
|
258
|
+
if (requestParameters['token'] != null) {
|
|
259
|
+
queryParameters['token'] = requestParameters['token'];
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
let urlPath = `/api/v1/auth/verify-email`;
|
|
266
|
+
|
|
267
|
+
const response = await this.request({
|
|
268
|
+
path: urlPath,
|
|
269
|
+
method: 'POST',
|
|
270
|
+
headers: headerParameters,
|
|
271
|
+
query: queryParameters,
|
|
272
|
+
}, initOverrides);
|
|
273
|
+
|
|
274
|
+
return new runtime.VoidApiResponse(response);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
*/
|
|
279
|
+
async verifyEmail(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
280
|
+
await this.verifyEmailRaw(requestParameters, initOverrides);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
}
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
CreateProjectRequest,
|
|
19
|
-
|
|
19
|
+
ProjectResponse,
|
|
20
20
|
} from '../models/index';
|
|
21
21
|
import {
|
|
22
22
|
CreateProjectRequestFromJSON,
|
|
23
23
|
CreateProjectRequestToJSON,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
ProjectResponseFromJSON,
|
|
25
|
+
ProjectResponseToJSON,
|
|
26
26
|
} from '../models/index';
|
|
27
27
|
|
|
28
28
|
export interface CreateProjectOperationRequest {
|
|
@@ -51,11 +51,11 @@ export interface ProjectsControllerApiInterface {
|
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
* @memberof ProjectsControllerApiInterface
|
|
53
53
|
*/
|
|
54
|
-
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
54
|
+
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
57
|
*/
|
|
58
|
-
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
58
|
+
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
*
|
|
@@ -76,11 +76,11 @@ export interface ProjectsControllerApiInterface {
|
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
* @memberof ProjectsControllerApiInterface
|
|
78
78
|
*/
|
|
79
|
-
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
79
|
+
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
*/
|
|
83
|
-
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
83
|
+
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
@@ -89,11 +89,11 @@ export interface ProjectsControllerApiInterface {
|
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
* @memberof ProjectsControllerApiInterface
|
|
91
91
|
*/
|
|
92
|
-
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
92
|
+
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
*/
|
|
96
|
-
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
96
|
+
getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
97
97
|
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -104,7 +104,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
*/
|
|
107
|
-
async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
107
|
+
async createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>> {
|
|
108
108
|
if (requestParameters['createProjectRequest'] == null) {
|
|
109
109
|
throw new runtime.RequiredError(
|
|
110
110
|
'createProjectRequest',
|
|
@@ -119,7 +119,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
119
119
|
headerParameters['Content-Type'] = 'application/json';
|
|
120
120
|
|
|
121
121
|
|
|
122
|
-
let urlPath = `/projects`;
|
|
122
|
+
let urlPath = `/api/v1/projects`;
|
|
123
123
|
|
|
124
124
|
const response = await this.request({
|
|
125
125
|
path: urlPath,
|
|
@@ -129,12 +129,12 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
129
129
|
body: CreateProjectRequestToJSON(requestParameters['createProjectRequest']),
|
|
130
130
|
}, initOverrides);
|
|
131
131
|
|
|
132
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
*/
|
|
137
|
-
async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
137
|
+
async createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse> {
|
|
138
138
|
const response = await this.createProjectRaw(requestParameters, initOverrides);
|
|
139
139
|
return await response.value();
|
|
140
140
|
}
|
|
@@ -154,7 +154,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
154
154
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
let urlPath = `/projects/{id}`;
|
|
157
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
158
158
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
159
159
|
|
|
160
160
|
const response = await this.request({
|
|
@@ -175,13 +175,13 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
*/
|
|
178
|
-
async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<
|
|
178
|
+
async getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>> {
|
|
179
179
|
const queryParameters: any = {};
|
|
180
180
|
|
|
181
181
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
182
182
|
|
|
183
183
|
|
|
184
|
-
let urlPath = `/projects`;
|
|
184
|
+
let urlPath = `/api/v1/projects`;
|
|
185
185
|
|
|
186
186
|
const response = await this.request({
|
|
187
187
|
path: urlPath,
|
|
@@ -190,19 +190,19 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
190
190
|
query: queryParameters,
|
|
191
191
|
}, initOverrides);
|
|
192
192
|
|
|
193
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(
|
|
193
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponseFromJSON));
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
*/
|
|
198
|
-
async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<
|
|
198
|
+
async getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>> {
|
|
199
199
|
const response = await this.getAllProjectsRaw(initOverrides);
|
|
200
200
|
return await response.value();
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
/**
|
|
204
204
|
*/
|
|
205
|
-
async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
205
|
+
async getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>> {
|
|
206
206
|
if (requestParameters['id'] == null) {
|
|
207
207
|
throw new runtime.RequiredError(
|
|
208
208
|
'id',
|
|
@@ -215,7 +215,7 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
215
215
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
216
216
|
|
|
217
217
|
|
|
218
|
-
let urlPath = `/projects/{id}`;
|
|
218
|
+
let urlPath = `/api/v1/projects/{id}`;
|
|
219
219
|
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
220
220
|
|
|
221
221
|
const response = await this.request({
|
|
@@ -225,12 +225,12 @@ export class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsCo
|
|
|
225
225
|
query: queryParameters,
|
|
226
226
|
}, initOverrides);
|
|
227
227
|
|
|
228
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
228
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProjectResponseFromJSON(jsonValue));
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
*/
|
|
233
|
-
async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
233
|
+
async getProject(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse> {
|
|
234
234
|
const response = await this.getProjectRaw(requestParameters, initOverrides);
|
|
235
235
|
return await response.value();
|
|
236
236
|
}
|