@se-uulm/snowballr-api-client 0.1.1-alpha.ff0ab99 → 0.1.1-alpha.ffc778d
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 +1 -6
- package/CHANGELOG.md +49 -0
- package/README.md +2 -2
- package/dist/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/apis/ProjectsControllerApi.js +7 -7
- package/dist/apis/index.d.ts +0 -2
- package/dist/apis/index.js +0 -2
- package/dist/esm/apis/ProjectsControllerApi.d.ts +13 -13
- package/dist/esm/apis/ProjectsControllerApi.js +8 -8
- package/dist/esm/apis/index.d.ts +0 -2
- package/dist/esm/apis/index.js +0 -2
- package/dist/esm/models/{ProjectResponse.d.ts → Project.d.ts} +25 -25
- package/dist/esm/models/{ProjectResponse.js → Project.js} +10 -10
- package/dist/esm/models/index.d.ts +1 -4
- package/dist/esm/models/index.js +1 -4
- package/dist/models/{ProjectResponse.d.ts → Project.d.ts} +25 -25
- package/dist/models/{ProjectResponse.js → Project.js} +16 -16
- package/dist/models/index.d.ts +1 -4
- package/dist/models/index.js +1 -4
- package/package.json +1 -1
- package/src/apis/ProjectsControllerApi.ts +22 -22
- package/src/apis/index.ts +0 -2
- package/src/models/{ProjectResponse.ts → Project.ts} +27 -27
- package/src/models/index.ts +1 -4
- package/dist/apis/AuthControllerApi.d.ts +0 -118
- package/dist/apis/AuthControllerApi.js +0 -170
- package/dist/apis/UsersControllerApi.d.ts +0 -46
- package/dist/apis/UsersControllerApi.js +0 -61
- package/dist/esm/apis/AuthControllerApi.d.ts +0 -118
- package/dist/esm/apis/AuthControllerApi.js +0 -166
- package/dist/esm/apis/UsersControllerApi.d.ts +0 -46
- package/dist/esm/apis/UsersControllerApi.js +0 -57
- package/dist/esm/models/ChangePasswordRequest.d.ts +0 -38
- package/dist/esm/models/ChangePasswordRequest.js +0 -43
- package/dist/esm/models/LoginRequest.d.ts +0 -38
- package/dist/esm/models/LoginRequest.js +0 -43
- package/dist/esm/models/RegisterRequest.d.ts +0 -50
- package/dist/esm/models/RegisterRequest.js +0 -47
- package/dist/models/ChangePasswordRequest.d.ts +0 -38
- package/dist/models/ChangePasswordRequest.js +0 -50
- package/dist/models/LoginRequest.d.ts +0 -38
- package/dist/models/LoginRequest.js +0 -50
- package/dist/models/RegisterRequest.d.ts +0 -50
- package/dist/models/RegisterRequest.js +0 -54
- package/src/apis/AuthControllerApi.ts +0 -283
- package/src/apis/UsersControllerApi.ts +0 -92
- package/src/models/ChangePasswordRequest.ts +0 -73
- package/src/models/LoginRequest.ts +0 -73
- package/src/models/RegisterRequest.ts +0 -89
|
@@ -1,283 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
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
|
-
RegisterRequest,
|
|
19
|
-
} from '../models/index';
|
|
20
|
-
import {
|
|
21
|
-
RegisterRequestFromJSON,
|
|
22
|
-
RegisterRequestToJSON,
|
|
23
|
-
} from '../models/index';
|
|
24
|
-
|
|
25
|
-
export interface RegisterOperationRequest {
|
|
26
|
-
registerRequest: RegisterRequest;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* UsersControllerApi - interface
|
|
31
|
-
*
|
|
32
|
-
* @export
|
|
33
|
-
* @interface UsersControllerApiInterface
|
|
34
|
-
*/
|
|
35
|
-
export interface UsersControllerApiInterface {
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @param {RegisterRequest} registerRequest
|
|
39
|
-
* @param {*} [options] Override http request option.
|
|
40
|
-
* @throws {RequiredError}
|
|
41
|
-
* @memberof UsersControllerApiInterface
|
|
42
|
-
*/
|
|
43
|
-
registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*/
|
|
47
|
-
register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
export class UsersControllerApi extends runtime.BaseAPI implements UsersControllerApiInterface {
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
*/
|
|
58
|
-
async registerRaw(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
59
|
-
if (requestParameters['registerRequest'] == null) {
|
|
60
|
-
throw new runtime.RequiredError(
|
|
61
|
-
'registerRequest',
|
|
62
|
-
'Required parameter "registerRequest" was null or undefined when calling register().'
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
const queryParameters: any = {};
|
|
67
|
-
|
|
68
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
69
|
-
|
|
70
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
let urlPath = `/api/v1/users`;
|
|
74
|
-
|
|
75
|
-
const response = await this.request({
|
|
76
|
-
path: urlPath,
|
|
77
|
-
method: 'POST',
|
|
78
|
-
headers: headerParameters,
|
|
79
|
-
query: queryParameters,
|
|
80
|
-
body: RegisterRequestToJSON(requestParameters['registerRequest']),
|
|
81
|
-
}, initOverrides);
|
|
82
|
-
|
|
83
|
-
return new runtime.VoidApiResponse(response);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
*/
|
|
88
|
-
async register(requestParameters: RegisterOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
89
|
-
await this.registerRaw(requestParameters, initOverrides);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ChangePasswordRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface ChangePasswordRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ChangePasswordRequest
|
|
26
|
-
*/
|
|
27
|
-
oldPassword?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ChangePasswordRequest
|
|
32
|
-
*/
|
|
33
|
-
newPassword?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the ChangePasswordRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfChangePasswordRequest(value: object): value is ChangePasswordRequest {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function ChangePasswordRequestFromJSON(json: any): ChangePasswordRequest {
|
|
44
|
-
return ChangePasswordRequestFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function ChangePasswordRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePasswordRequest {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
|
|
53
|
-
'oldPassword': json['oldPassword'] == null ? undefined : json['oldPassword'],
|
|
54
|
-
'newPassword': json['newPassword'] == null ? undefined : json['newPassword'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function ChangePasswordRequestToJSON(json: any): ChangePasswordRequest {
|
|
59
|
-
return ChangePasswordRequestToJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function ChangePasswordRequestToJSONTyped(value?: ChangePasswordRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
-
if (value == null) {
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'oldPassword': value['oldPassword'],
|
|
70
|
-
'newPassword': value['newPassword'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,73 +0,0 @@
|
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface LoginRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface LoginRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof LoginRequest
|
|
26
|
-
*/
|
|
27
|
-
email?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof LoginRequest
|
|
32
|
-
*/
|
|
33
|
-
password?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the LoginRequest interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfLoginRequest(value: object): value is LoginRequest {
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function LoginRequestFromJSON(json: any): LoginRequest {
|
|
44
|
-
return LoginRequestFromJSONTyped(json, false);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest {
|
|
48
|
-
if (json == null) {
|
|
49
|
-
return json;
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
|
|
53
|
-
'email': json['email'] == null ? undefined : json['email'],
|
|
54
|
-
'password': json['password'] == null ? undefined : json['password'],
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function LoginRequestToJSON(json: any): LoginRequest {
|
|
59
|
-
return LoginRequestToJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
-
if (value == null) {
|
|
64
|
-
return value;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
|
|
69
|
-
'email': value['email'],
|
|
70
|
-
'password': value['password'],
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|
|
@@ -1,89 +0,0 @@
|
|
|
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
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface RegisterRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface RegisterRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof RegisterRequest
|
|
26
|
-
*/
|
|
27
|
-
firstName?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof RegisterRequest
|
|
32
|
-
*/
|
|
33
|
-
lastName?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof RegisterRequest
|
|
38
|
-
*/
|
|
39
|
-
email?: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof RegisterRequest
|
|
44
|
-
*/
|
|
45
|
-
password?: string;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Check if a given object implements the RegisterRequest interface.
|
|
50
|
-
*/
|
|
51
|
-
export function instanceOfRegisterRequest(value: object): value is RegisterRequest {
|
|
52
|
-
return true;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function RegisterRequestFromJSON(json: any): RegisterRequest {
|
|
56
|
-
return RegisterRequestFromJSONTyped(json, false);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function RegisterRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterRequest {
|
|
60
|
-
if (json == null) {
|
|
61
|
-
return json;
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
|
|
65
|
-
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
66
|
-
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
67
|
-
'email': json['email'] == null ? undefined : json['email'],
|
|
68
|
-
'password': json['password'] == null ? undefined : json['password'],
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function RegisterRequestToJSON(json: any): RegisterRequest {
|
|
73
|
-
return RegisterRequestToJSONTyped(json, false);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function RegisterRequestToJSONTyped(value?: RegisterRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
-
if (value == null) {
|
|
78
|
-
return value;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return {
|
|
82
|
-
|
|
83
|
-
'firstName': value['firstName'],
|
|
84
|
-
'lastName': value['lastName'],
|
|
85
|
-
'email': value['email'],
|
|
86
|
-
'password': value['password'],
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
|