@se-uulm/snowballr-api-client 0.2.1-alpha.5864cf1 → 0.2.1-alpha.5b91c23
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 +111 -28
- package/dist/apis/AuthControllerApi.d.ts +64 -1
- package/dist/apis/AuthControllerApi.js +64 -18
- package/dist/apis/ProjectsControllerApi.d.ts +54 -1
- package/dist/apis/ProjectsControllerApi.js +56 -19
- package/dist/apis/UsersControllerApi.d.ts +15 -1
- package/dist/apis/UsersControllerApi.js +14 -5
- package/dist/esm/apis/AuthControllerApi.d.ts +64 -1
- package/dist/esm/apis/AuthControllerApi.js +62 -16
- package/dist/esm/apis/ProjectsControllerApi.d.ts +54 -1
- package/dist/esm/apis/ProjectsControllerApi.js +52 -15
- package/dist/esm/apis/UsersControllerApi.d.ts +15 -1
- package/dist/esm/apis/UsersControllerApi.js +13 -4
- package/dist/esm/models/ChangePasswordRequest.d.ts +0 -4
- package/dist/esm/models/CreateProjectRequest.d.ts +0 -2
- package/dist/esm/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPattern.js +1 -1
- package/dist/esm/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/esm/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/esm/models/LoginRequest.d.ts +0 -4
- package/dist/esm/models/ProjectResponse.d.ts +2 -53
- package/dist/esm/models/ProjectResponse.js +7 -22
- package/dist/esm/models/ProjectSettings.d.ts +60 -0
- package/dist/esm/models/ProjectSettings.js +58 -0
- package/dist/esm/models/RegisterRequest.d.ts +0 -8
- package/dist/esm/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/runtime.d.ts +34 -1
- package/dist/esm/runtime.js +130 -4
- package/dist/models/ChangePasswordRequest.d.ts +0 -4
- package/dist/models/CreateProjectRequest.d.ts +0 -2
- package/dist/models/DecisionMatrixPattern.d.ts +0 -4
- package/dist/models/DecisionMatrixPattern.js +1 -1
- package/dist/models/DecisionMatrixPatternEntry.d.ts +0 -4
- package/dist/models/DecisionMatrixPatternEntry.js +1 -1
- package/dist/models/LoginRequest.d.ts +0 -4
- package/dist/models/ProjectResponse.d.ts +2 -53
- package/dist/models/ProjectResponse.js +8 -23
- package/dist/models/ProjectSettings.d.ts +60 -0
- package/dist/models/ProjectSettings.js +66 -0
- package/dist/models/RegisterRequest.d.ts +0 -8
- package/dist/models/ReviewDecisionMatrix.d.ts +0 -4
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/runtime.d.ts +34 -1
- package/dist/runtime.js +136 -4
- package/package.json +2 -2
|
@@ -24,14 +24,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ProjectsControllerApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const CreateProjectRequest_1 = require("../models/CreateProjectRequest");
|
|
28
|
+
const ProjectResponse_1 = require("../models/ProjectResponse");
|
|
28
29
|
/**
|
|
29
30
|
*
|
|
30
31
|
*/
|
|
31
32
|
class ProjectsControllerApi extends runtime.BaseAPI {
|
|
32
33
|
/**
|
|
34
|
+
* Creates request options for createProject without sending the request
|
|
33
35
|
*/
|
|
34
|
-
|
|
36
|
+
createProjectRequestOpts(requestParameters) {
|
|
35
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
38
|
if (requestParameters['createProjectRequest'] == null) {
|
|
37
39
|
throw new runtime.RequiredError('createProjectRequest', 'Required parameter "createProjectRequest" was null or undefined when calling createProject().');
|
|
@@ -40,14 +42,22 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
40
42
|
const headerParameters = {};
|
|
41
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
44
|
let urlPath = `/api/v1/projects`;
|
|
43
|
-
|
|
45
|
+
return {
|
|
44
46
|
path: urlPath,
|
|
45
47
|
method: 'POST',
|
|
46
48
|
headers: headerParameters,
|
|
47
49
|
query: queryParameters,
|
|
48
|
-
body: (0,
|
|
49
|
-
}
|
|
50
|
-
|
|
50
|
+
body: (0, CreateProjectRequest_1.CreateProjectRequestToJSON)(requestParameters['createProjectRequest']),
|
|
51
|
+
};
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
*/
|
|
56
|
+
createProjectRaw(requestParameters, initOverrides) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const requestOptions = yield this.createProjectRequestOpts(requestParameters);
|
|
59
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
60
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ProjectResponse_1.ProjectResponseFromJSON)(jsonValue));
|
|
51
61
|
});
|
|
52
62
|
}
|
|
53
63
|
/**
|
|
@@ -59,8 +69,9 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
59
69
|
});
|
|
60
70
|
}
|
|
61
71
|
/**
|
|
72
|
+
* Creates request options for deleteProject without sending the request
|
|
62
73
|
*/
|
|
63
|
-
|
|
74
|
+
deleteProjectRequestOpts(requestParameters) {
|
|
64
75
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
76
|
if (requestParameters['id'] == null) {
|
|
66
77
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteProject().');
|
|
@@ -68,13 +79,21 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
68
79
|
const queryParameters = {};
|
|
69
80
|
const headerParameters = {};
|
|
70
81
|
let urlPath = `/api/v1/projects/{id}`;
|
|
71
|
-
urlPath = urlPath.replace(
|
|
72
|
-
|
|
82
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
83
|
+
return {
|
|
73
84
|
path: urlPath,
|
|
74
85
|
method: 'DELETE',
|
|
75
86
|
headers: headerParameters,
|
|
76
87
|
query: queryParameters,
|
|
77
|
-
}
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
*/
|
|
93
|
+
deleteProjectRaw(requestParameters, initOverrides) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const requestOptions = yield this.deleteProjectRequestOpts(requestParameters);
|
|
96
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
78
97
|
return new runtime.VoidApiResponse(response);
|
|
79
98
|
});
|
|
80
99
|
}
|
|
@@ -86,19 +105,28 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
86
105
|
});
|
|
87
106
|
}
|
|
88
107
|
/**
|
|
108
|
+
* Creates request options for getAllProjects without sending the request
|
|
89
109
|
*/
|
|
90
|
-
|
|
110
|
+
getAllProjectsRequestOpts() {
|
|
91
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
112
|
const queryParameters = {};
|
|
93
113
|
const headerParameters = {};
|
|
94
114
|
let urlPath = `/api/v1/projects`;
|
|
95
|
-
|
|
115
|
+
return {
|
|
96
116
|
path: urlPath,
|
|
97
117
|
method: 'GET',
|
|
98
118
|
headers: headerParameters,
|
|
99
119
|
query: queryParameters,
|
|
100
|
-
}
|
|
101
|
-
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
*/
|
|
125
|
+
getAllProjectsRaw(initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const requestOptions = yield this.getAllProjectsRequestOpts();
|
|
128
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ProjectResponse_1.ProjectResponseFromJSON));
|
|
102
130
|
});
|
|
103
131
|
}
|
|
104
132
|
/**
|
|
@@ -110,8 +138,9 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
110
138
|
});
|
|
111
139
|
}
|
|
112
140
|
/**
|
|
141
|
+
* Creates request options for getProject without sending the request
|
|
113
142
|
*/
|
|
114
|
-
|
|
143
|
+
getProjectRequestOpts(requestParameters) {
|
|
115
144
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
145
|
if (requestParameters['id'] == null) {
|
|
117
146
|
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getProject().');
|
|
@@ -119,14 +148,22 @@ class ProjectsControllerApi extends runtime.BaseAPI {
|
|
|
119
148
|
const queryParameters = {};
|
|
120
149
|
const headerParameters = {};
|
|
121
150
|
let urlPath = `/api/v1/projects/{id}`;
|
|
122
|
-
urlPath = urlPath.replace(
|
|
123
|
-
|
|
151
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
152
|
+
return {
|
|
124
153
|
path: urlPath,
|
|
125
154
|
method: 'GET',
|
|
126
155
|
headers: headerParameters,
|
|
127
156
|
query: queryParameters,
|
|
128
|
-
}
|
|
129
|
-
|
|
157
|
+
};
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
*/
|
|
162
|
+
getProjectRaw(requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const requestOptions = yield this.getProjectRequestOpts(requestParameters);
|
|
165
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
166
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ProjectResponse_1.ProjectResponseFromJSON)(jsonValue));
|
|
130
167
|
});
|
|
131
168
|
}
|
|
132
169
|
/**
|
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type RegisterRequest } from '../models/RegisterRequest';
|
|
14
14
|
export interface RegisterOperationRequest {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
15
18
|
registerRequest: RegisterRequest;
|
|
16
19
|
}
|
|
17
20
|
/**
|
|
@@ -21,6 +24,13 @@ export interface RegisterOperationRequest {
|
|
|
21
24
|
* @interface UsersControllerApiInterface
|
|
22
25
|
*/
|
|
23
26
|
export interface UsersControllerApiInterface {
|
|
27
|
+
/**
|
|
28
|
+
* Creates request options for register without sending the request
|
|
29
|
+
* @param {RegisterRequest} registerRequest
|
|
30
|
+
* @throws {RequiredError}
|
|
31
|
+
* @memberof UsersControllerApiInterface
|
|
32
|
+
*/
|
|
33
|
+
registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
|
|
24
34
|
/**
|
|
25
35
|
*
|
|
26
36
|
* @param {RegisterRequest} registerRequest
|
|
@@ -37,6 +47,10 @@ export interface UsersControllerApiInterface {
|
|
|
37
47
|
*
|
|
38
48
|
*/
|
|
39
49
|
export declare class UsersControllerApi extends runtime.BaseAPI implements UsersControllerApiInterface {
|
|
50
|
+
/**
|
|
51
|
+
* Creates request options for register without sending the request
|
|
52
|
+
*/
|
|
53
|
+
registerRequestOpts(requestParameters: RegisterOperationRequest): Promise<runtime.RequestOpts>;
|
|
40
54
|
/**
|
|
41
55
|
*/
|
|
42
56
|
registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
@@ -24,14 +24,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.UsersControllerApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
-
const
|
|
27
|
+
const RegisterRequest_1 = require("../models/RegisterRequest");
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
*/
|
|
31
31
|
class UsersControllerApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
+
* Creates request options for register without sending the request
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
+
registerRequestOpts(requestParameters) {
|
|
35
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
37
|
if (requestParameters['registerRequest'] == null) {
|
|
37
38
|
throw new runtime.RequiredError('registerRequest', 'Required parameter "registerRequest" was null or undefined when calling register().');
|
|
@@ -40,13 +41,21 @@ class UsersControllerApi extends runtime.BaseAPI {
|
|
|
40
41
|
const headerParameters = {};
|
|
41
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
43
|
let urlPath = `/api/v1/users`;
|
|
43
|
-
|
|
44
|
+
return {
|
|
44
45
|
path: urlPath,
|
|
45
46
|
method: 'POST',
|
|
46
47
|
headers: headerParameters,
|
|
47
48
|
query: queryParameters,
|
|
48
|
-
body: (0,
|
|
49
|
-
}
|
|
49
|
+
body: (0, RegisterRequest_1.RegisterRequestToJSON)(requestParameters['registerRequest']),
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
*/
|
|
55
|
+
registerRaw(requestParameters, initOverrides) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const requestOptions = yield this.registerRequestOpts(requestParameters);
|
|
58
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
50
59
|
return new runtime.VoidApiResponse(response);
|
|
51
60
|
});
|
|
52
61
|
}
|
|
@@ -10,14 +10,24 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type ChangePasswordRequest } from '../models/ChangePasswordRequest';
|
|
14
|
+
import { type LoginRequest } from '../models/LoginRequest';
|
|
14
15
|
export interface ChangePasswordOperationRequest {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
15
19
|
changePasswordRequest: ChangePasswordRequest;
|
|
16
20
|
}
|
|
17
21
|
export interface LoginOperationRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
18
25
|
loginRequest: LoginRequest;
|
|
19
26
|
}
|
|
20
27
|
export interface VerifyEmailRequest {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
21
31
|
token: string;
|
|
22
32
|
}
|
|
23
33
|
/**
|
|
@@ -27,6 +37,13 @@ export interface VerifyEmailRequest {
|
|
|
27
37
|
* @interface AuthControllerApiInterface
|
|
28
38
|
*/
|
|
29
39
|
export interface AuthControllerApiInterface {
|
|
40
|
+
/**
|
|
41
|
+
* Creates request options for changePassword without sending the request
|
|
42
|
+
* @param {ChangePasswordRequest} changePasswordRequest
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof AuthControllerApiInterface
|
|
45
|
+
*/
|
|
46
|
+
changePasswordRequestOpts(requestParameters: ChangePasswordOperationRequest): Promise<runtime.RequestOpts>;
|
|
30
47
|
/**
|
|
31
48
|
*
|
|
32
49
|
* @param {ChangePasswordRequest} changePasswordRequest
|
|
@@ -38,6 +55,12 @@ export interface AuthControllerApiInterface {
|
|
|
38
55
|
/**
|
|
39
56
|
*/
|
|
40
57
|
changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for getAuthStatus without sending the request
|
|
60
|
+
* @throws {RequiredError}
|
|
61
|
+
* @memberof AuthControllerApiInterface
|
|
62
|
+
*/
|
|
63
|
+
getAuthStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
41
64
|
/**
|
|
42
65
|
*
|
|
43
66
|
* @param {*} [options] Override http request option.
|
|
@@ -48,6 +71,13 @@ export interface AuthControllerApiInterface {
|
|
|
48
71
|
/**
|
|
49
72
|
*/
|
|
50
73
|
getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
74
|
+
/**
|
|
75
|
+
* Creates request options for login without sending the request
|
|
76
|
+
* @param {LoginRequest} loginRequest
|
|
77
|
+
* @throws {RequiredError}
|
|
78
|
+
* @memberof AuthControllerApiInterface
|
|
79
|
+
*/
|
|
80
|
+
loginRequestOpts(requestParameters: LoginOperationRequest): Promise<runtime.RequestOpts>;
|
|
51
81
|
/**
|
|
52
82
|
*
|
|
53
83
|
* @param {LoginRequest} loginRequest
|
|
@@ -59,6 +89,12 @@ export interface AuthControllerApiInterface {
|
|
|
59
89
|
/**
|
|
60
90
|
*/
|
|
61
91
|
login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates request options for logout without sending the request
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
* @memberof AuthControllerApiInterface
|
|
96
|
+
*/
|
|
97
|
+
logoutRequestOpts(): Promise<runtime.RequestOpts>;
|
|
62
98
|
/**
|
|
63
99
|
*
|
|
64
100
|
* @param {*} [options] Override http request option.
|
|
@@ -69,6 +105,13 @@ export interface AuthControllerApiInterface {
|
|
|
69
105
|
/**
|
|
70
106
|
*/
|
|
71
107
|
logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* Creates request options for verifyEmail without sending the request
|
|
110
|
+
* @param {string} token
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
* @memberof AuthControllerApiInterface
|
|
113
|
+
*/
|
|
114
|
+
verifyEmailRequestOpts(requestParameters: VerifyEmailRequest): Promise<runtime.RequestOpts>;
|
|
72
115
|
/**
|
|
73
116
|
*
|
|
74
117
|
* @param {string} token
|
|
@@ -85,30 +128,50 @@ export interface AuthControllerApiInterface {
|
|
|
85
128
|
*
|
|
86
129
|
*/
|
|
87
130
|
export declare class AuthControllerApi extends runtime.BaseAPI implements AuthControllerApiInterface {
|
|
131
|
+
/**
|
|
132
|
+
* Creates request options for changePassword without sending the request
|
|
133
|
+
*/
|
|
134
|
+
changePasswordRequestOpts(requestParameters: ChangePasswordOperationRequest): Promise<runtime.RequestOpts>;
|
|
88
135
|
/**
|
|
89
136
|
*/
|
|
90
137
|
changePasswordRaw(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
91
138
|
/**
|
|
92
139
|
*/
|
|
93
140
|
changePassword(requestParameters: ChangePasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Creates request options for getAuthStatus without sending the request
|
|
143
|
+
*/
|
|
144
|
+
getAuthStatusRequestOpts(): Promise<runtime.RequestOpts>;
|
|
94
145
|
/**
|
|
95
146
|
*/
|
|
96
147
|
getAuthStatusRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
|
|
97
148
|
/**
|
|
98
149
|
*/
|
|
99
150
|
getAuthStatus(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
|
|
151
|
+
/**
|
|
152
|
+
* Creates request options for login without sending the request
|
|
153
|
+
*/
|
|
154
|
+
loginRequestOpts(requestParameters: LoginOperationRequest): Promise<runtime.RequestOpts>;
|
|
100
155
|
/**
|
|
101
156
|
*/
|
|
102
157
|
loginRaw(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
103
158
|
/**
|
|
104
159
|
*/
|
|
105
160
|
login(requestParameters: LoginOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for logout without sending the request
|
|
163
|
+
*/
|
|
164
|
+
logoutRequestOpts(): Promise<runtime.RequestOpts>;
|
|
106
165
|
/**
|
|
107
166
|
*/
|
|
108
167
|
logoutRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
109
168
|
/**
|
|
110
169
|
*/
|
|
111
170
|
logout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* Creates request options for verifyEmail without sending the request
|
|
173
|
+
*/
|
|
174
|
+
verifyEmailRequestOpts(requestParameters: VerifyEmailRequest): Promise<runtime.RequestOpts>;
|
|
112
175
|
/**
|
|
113
176
|
*/
|
|
114
177
|
verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
@@ -21,14 +21,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { ChangePasswordRequestToJSON,
|
|
24
|
+
import { ChangePasswordRequestToJSON, } from '../models/ChangePasswordRequest';
|
|
25
|
+
import { LoginRequestToJSON, } from '../models/LoginRequest';
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
*/
|
|
28
29
|
export class AuthControllerApi extends runtime.BaseAPI {
|
|
29
30
|
/**
|
|
31
|
+
* Creates request options for changePassword without sending the request
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
changePasswordRequestOpts(requestParameters) {
|
|
32
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
33
35
|
if (requestParameters['changePasswordRequest'] == null) {
|
|
34
36
|
throw new runtime.RequiredError('changePasswordRequest', 'Required parameter "changePasswordRequest" was null or undefined when calling changePassword().');
|
|
@@ -37,13 +39,21 @@ export class AuthControllerApi extends runtime.BaseAPI {
|
|
|
37
39
|
const headerParameters = {};
|
|
38
40
|
headerParameters['Content-Type'] = 'application/json';
|
|
39
41
|
let urlPath = `/api/v1/auth/change-password`;
|
|
40
|
-
|
|
42
|
+
return {
|
|
41
43
|
path: urlPath,
|
|
42
44
|
method: 'POST',
|
|
43
45
|
headers: headerParameters,
|
|
44
46
|
query: queryParameters,
|
|
45
47
|
body: ChangePasswordRequestToJSON(requestParameters['changePasswordRequest']),
|
|
46
|
-
}
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
changePasswordRaw(requestParameters, initOverrides) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const requestOptions = yield this.changePasswordRequestOpts(requestParameters);
|
|
56
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
47
57
|
return new runtime.VoidApiResponse(response);
|
|
48
58
|
});
|
|
49
59
|
}
|
|
@@ -55,18 +65,27 @@ export class AuthControllerApi extends runtime.BaseAPI {
|
|
|
55
65
|
});
|
|
56
66
|
}
|
|
57
67
|
/**
|
|
68
|
+
* Creates request options for getAuthStatus without sending the request
|
|
58
69
|
*/
|
|
59
|
-
|
|
70
|
+
getAuthStatusRequestOpts() {
|
|
60
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
72
|
const queryParameters = {};
|
|
62
73
|
const headerParameters = {};
|
|
63
74
|
let urlPath = `/api/v1/auth/status`;
|
|
64
|
-
|
|
75
|
+
return {
|
|
65
76
|
path: urlPath,
|
|
66
77
|
method: 'GET',
|
|
67
78
|
headers: headerParameters,
|
|
68
79
|
query: queryParameters,
|
|
69
|
-
}
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
*/
|
|
85
|
+
getAuthStatusRaw(initOverrides) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const requestOptions = yield this.getAuthStatusRequestOpts();
|
|
88
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
70
89
|
if (this.isJsonMime(response.headers.get('content-type'))) {
|
|
71
90
|
return new runtime.JSONApiResponse(response);
|
|
72
91
|
}
|
|
@@ -84,8 +103,9 @@ export class AuthControllerApi extends runtime.BaseAPI {
|
|
|
84
103
|
});
|
|
85
104
|
}
|
|
86
105
|
/**
|
|
106
|
+
* Creates request options for login without sending the request
|
|
87
107
|
*/
|
|
88
|
-
|
|
108
|
+
loginRequestOpts(requestParameters) {
|
|
89
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
110
|
if (requestParameters['loginRequest'] == null) {
|
|
91
111
|
throw new runtime.RequiredError('loginRequest', 'Required parameter "loginRequest" was null or undefined when calling login().');
|
|
@@ -94,13 +114,21 @@ export class AuthControllerApi extends runtime.BaseAPI {
|
|
|
94
114
|
const headerParameters = {};
|
|
95
115
|
headerParameters['Content-Type'] = 'application/json';
|
|
96
116
|
let urlPath = `/api/v1/auth/login`;
|
|
97
|
-
|
|
117
|
+
return {
|
|
98
118
|
path: urlPath,
|
|
99
119
|
method: 'POST',
|
|
100
120
|
headers: headerParameters,
|
|
101
121
|
query: queryParameters,
|
|
102
122
|
body: LoginRequestToJSON(requestParameters['loginRequest']),
|
|
103
|
-
}
|
|
123
|
+
};
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
*/
|
|
128
|
+
loginRaw(requestParameters, initOverrides) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
const requestOptions = yield this.loginRequestOpts(requestParameters);
|
|
131
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
104
132
|
return new runtime.VoidApiResponse(response);
|
|
105
133
|
});
|
|
106
134
|
}
|
|
@@ -112,18 +140,27 @@ export class AuthControllerApi extends runtime.BaseAPI {
|
|
|
112
140
|
});
|
|
113
141
|
}
|
|
114
142
|
/**
|
|
143
|
+
* Creates request options for logout without sending the request
|
|
115
144
|
*/
|
|
116
|
-
|
|
145
|
+
logoutRequestOpts() {
|
|
117
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
147
|
const queryParameters = {};
|
|
119
148
|
const headerParameters = {};
|
|
120
149
|
let urlPath = `/api/v1/auth/logout`;
|
|
121
|
-
|
|
150
|
+
return {
|
|
122
151
|
path: urlPath,
|
|
123
152
|
method: 'POST',
|
|
124
153
|
headers: headerParameters,
|
|
125
154
|
query: queryParameters,
|
|
126
|
-
}
|
|
155
|
+
};
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
*/
|
|
160
|
+
logoutRaw(initOverrides) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
const requestOptions = yield this.logoutRequestOpts();
|
|
163
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
127
164
|
return new runtime.VoidApiResponse(response);
|
|
128
165
|
});
|
|
129
166
|
}
|
|
@@ -135,8 +172,9 @@ export class AuthControllerApi extends runtime.BaseAPI {
|
|
|
135
172
|
});
|
|
136
173
|
}
|
|
137
174
|
/**
|
|
175
|
+
* Creates request options for verifyEmail without sending the request
|
|
138
176
|
*/
|
|
139
|
-
|
|
177
|
+
verifyEmailRequestOpts(requestParameters) {
|
|
140
178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
179
|
if (requestParameters['token'] == null) {
|
|
142
180
|
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling verifyEmail().');
|
|
@@ -147,12 +185,20 @@ export class AuthControllerApi extends runtime.BaseAPI {
|
|
|
147
185
|
}
|
|
148
186
|
const headerParameters = {};
|
|
149
187
|
let urlPath = `/api/v1/auth/verify-email`;
|
|
150
|
-
|
|
188
|
+
return {
|
|
151
189
|
path: urlPath,
|
|
152
190
|
method: 'POST',
|
|
153
191
|
headers: headerParameters,
|
|
154
192
|
query: queryParameters,
|
|
155
|
-
}
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
*/
|
|
198
|
+
verifyEmailRaw(requestParameters, initOverrides) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
const requestOptions = yield this.verifyEmailRequestOpts(requestParameters);
|
|
201
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
156
202
|
return new runtime.VoidApiResponse(response);
|
|
157
203
|
});
|
|
158
204
|
}
|
|
@@ -10,14 +10,24 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CreateProjectRequest } from '../models/CreateProjectRequest';
|
|
14
|
+
import { type ProjectResponse } from '../models/ProjectResponse';
|
|
14
15
|
export interface CreateProjectOperationRequest {
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
15
19
|
createProjectRequest: CreateProjectRequest;
|
|
16
20
|
}
|
|
17
21
|
export interface DeleteProjectRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
18
25
|
id: string;
|
|
19
26
|
}
|
|
20
27
|
export interface GetProjectRequest {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
21
31
|
id: string;
|
|
22
32
|
}
|
|
23
33
|
/**
|
|
@@ -27,6 +37,13 @@ export interface GetProjectRequest {
|
|
|
27
37
|
* @interface ProjectsControllerApiInterface
|
|
28
38
|
*/
|
|
29
39
|
export interface ProjectsControllerApiInterface {
|
|
40
|
+
/**
|
|
41
|
+
* Creates request options for createProject without sending the request
|
|
42
|
+
* @param {CreateProjectRequest} createProjectRequest
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
* @memberof ProjectsControllerApiInterface
|
|
45
|
+
*/
|
|
46
|
+
createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
|
|
30
47
|
/**
|
|
31
48
|
*
|
|
32
49
|
* @param {CreateProjectRequest} createProjectRequest
|
|
@@ -38,6 +55,13 @@ export interface ProjectsControllerApiInterface {
|
|
|
38
55
|
/**
|
|
39
56
|
*/
|
|
40
57
|
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Creates request options for deleteProject without sending the request
|
|
60
|
+
* @param {string} id
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
* @memberof ProjectsControllerApiInterface
|
|
63
|
+
*/
|
|
64
|
+
deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
|
|
41
65
|
/**
|
|
42
66
|
*
|
|
43
67
|
* @param {string} id
|
|
@@ -49,6 +73,12 @@ export interface ProjectsControllerApiInterface {
|
|
|
49
73
|
/**
|
|
50
74
|
*/
|
|
51
75
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for getAllProjects without sending the request
|
|
78
|
+
* @throws {RequiredError}
|
|
79
|
+
* @memberof ProjectsControllerApiInterface
|
|
80
|
+
*/
|
|
81
|
+
getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
52
82
|
/**
|
|
53
83
|
*
|
|
54
84
|
* @param {*} [options] Override http request option.
|
|
@@ -59,6 +89,13 @@ export interface ProjectsControllerApiInterface {
|
|
|
59
89
|
/**
|
|
60
90
|
*/
|
|
61
91
|
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
92
|
+
/**
|
|
93
|
+
* Creates request options for getProject without sending the request
|
|
94
|
+
* @param {string} id
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
* @memberof ProjectsControllerApiInterface
|
|
97
|
+
*/
|
|
98
|
+
getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
|
|
62
99
|
/**
|
|
63
100
|
*
|
|
64
101
|
* @param {string} id
|
|
@@ -75,24 +112,40 @@ export interface ProjectsControllerApiInterface {
|
|
|
75
112
|
*
|
|
76
113
|
*/
|
|
77
114
|
export declare class ProjectsControllerApi extends runtime.BaseAPI implements ProjectsControllerApiInterface {
|
|
115
|
+
/**
|
|
116
|
+
* Creates request options for createProject without sending the request
|
|
117
|
+
*/
|
|
118
|
+
createProjectRequestOpts(requestParameters: CreateProjectOperationRequest): Promise<runtime.RequestOpts>;
|
|
78
119
|
/**
|
|
79
120
|
*/
|
|
80
121
|
createProjectRaw(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|
|
81
122
|
/**
|
|
82
123
|
*/
|
|
83
124
|
createProject(requestParameters: CreateProjectOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates request options for deleteProject without sending the request
|
|
127
|
+
*/
|
|
128
|
+
deleteProjectRequestOpts(requestParameters: DeleteProjectRequest): Promise<runtime.RequestOpts>;
|
|
84
129
|
/**
|
|
85
130
|
*/
|
|
86
131
|
deleteProjectRaw(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
87
132
|
/**
|
|
88
133
|
*/
|
|
89
134
|
deleteProject(requestParameters: DeleteProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
135
|
+
/**
|
|
136
|
+
* Creates request options for getAllProjects without sending the request
|
|
137
|
+
*/
|
|
138
|
+
getAllProjectsRequestOpts(): Promise<runtime.RequestOpts>;
|
|
90
139
|
/**
|
|
91
140
|
*/
|
|
92
141
|
getAllProjectsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectResponse>>>;
|
|
93
142
|
/**
|
|
94
143
|
*/
|
|
95
144
|
getAllProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectResponse>>;
|
|
145
|
+
/**
|
|
146
|
+
* Creates request options for getProject without sending the request
|
|
147
|
+
*/
|
|
148
|
+
getProjectRequestOpts(requestParameters: GetProjectRequest): Promise<runtime.RequestOpts>;
|
|
96
149
|
/**
|
|
97
150
|
*/
|
|
98
151
|
getProjectRaw(requestParameters: GetProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectResponse>>;
|