@jugarhoy/api 1.0.5 → 1.0.6
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/apis/AuthApi.ts +159 -0
- package/models/ResendEmailVerification500Response.ts +65 -0
- package/models/ResendEmailVerificationRequest.ts +66 -0
- package/models/SendEmailVerification500Response.ts +65 -0
- package/models/SendEmailVerificationRequest.ts +66 -0
- package/models/UserSession.ts +8 -0
- package/models/VerifyEmail400Response.ts +77 -0
- package/models/index.ts +5 -0
- package/package.json +1 -1
package/apis/AuthApi.ts
CHANGED
|
@@ -22,12 +22,17 @@ import type {
|
|
|
22
22
|
RequestPasswordReset200Response,
|
|
23
23
|
RequestPasswordReset500Response,
|
|
24
24
|
RequestPasswordResetRequest,
|
|
25
|
+
ResendEmailVerification500Response,
|
|
26
|
+
ResendEmailVerificationRequest,
|
|
25
27
|
ResetPassword200Response,
|
|
26
28
|
ResetPassword400Response,
|
|
27
29
|
ResetPassword500Response,
|
|
28
30
|
ResetPasswordRequest,
|
|
31
|
+
SendEmailVerification500Response,
|
|
32
|
+
SendEmailVerificationRequest,
|
|
29
33
|
UserAuth,
|
|
30
34
|
UserSession,
|
|
35
|
+
VerifyEmail400Response,
|
|
31
36
|
} from '../models/index';
|
|
32
37
|
import {
|
|
33
38
|
CreateDefault500ResponseFromJSON,
|
|
@@ -44,6 +49,10 @@ import {
|
|
|
44
49
|
RequestPasswordReset500ResponseToJSON,
|
|
45
50
|
RequestPasswordResetRequestFromJSON,
|
|
46
51
|
RequestPasswordResetRequestToJSON,
|
|
52
|
+
ResendEmailVerification500ResponseFromJSON,
|
|
53
|
+
ResendEmailVerification500ResponseToJSON,
|
|
54
|
+
ResendEmailVerificationRequestFromJSON,
|
|
55
|
+
ResendEmailVerificationRequestToJSON,
|
|
47
56
|
ResetPassword200ResponseFromJSON,
|
|
48
57
|
ResetPassword200ResponseToJSON,
|
|
49
58
|
ResetPassword400ResponseFromJSON,
|
|
@@ -52,10 +61,16 @@ import {
|
|
|
52
61
|
ResetPassword500ResponseToJSON,
|
|
53
62
|
ResetPasswordRequestFromJSON,
|
|
54
63
|
ResetPasswordRequestToJSON,
|
|
64
|
+
SendEmailVerification500ResponseFromJSON,
|
|
65
|
+
SendEmailVerification500ResponseToJSON,
|
|
66
|
+
SendEmailVerificationRequestFromJSON,
|
|
67
|
+
SendEmailVerificationRequestToJSON,
|
|
55
68
|
UserAuthFromJSON,
|
|
56
69
|
UserAuthToJSON,
|
|
57
70
|
UserSessionFromJSON,
|
|
58
71
|
UserSessionToJSON,
|
|
72
|
+
VerifyEmail400ResponseFromJSON,
|
|
73
|
+
VerifyEmail400ResponseToJSON,
|
|
59
74
|
} from '../models/index';
|
|
60
75
|
|
|
61
76
|
export interface CreateFromInviteRequest {
|
|
@@ -66,10 +81,22 @@ export interface RequestPasswordResetOperationRequest {
|
|
|
66
81
|
requestPasswordResetRequest: RequestPasswordResetRequest;
|
|
67
82
|
}
|
|
68
83
|
|
|
84
|
+
export interface ResendEmailVerificationOperationRequest {
|
|
85
|
+
resendEmailVerificationRequest: ResendEmailVerificationRequest;
|
|
86
|
+
}
|
|
87
|
+
|
|
69
88
|
export interface ResetPasswordOperationRequest {
|
|
70
89
|
resetPasswordRequest: ResetPasswordRequest;
|
|
71
90
|
}
|
|
72
91
|
|
|
92
|
+
export interface SendEmailVerificationOperationRequest {
|
|
93
|
+
sendEmailVerificationRequest: SendEmailVerificationRequest;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface VerifyEmailRequest {
|
|
97
|
+
token: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
73
100
|
/**
|
|
74
101
|
*
|
|
75
102
|
*/
|
|
@@ -266,6 +293,50 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
266
293
|
return await response.value();
|
|
267
294
|
}
|
|
268
295
|
|
|
296
|
+
/**
|
|
297
|
+
* Resend email verification link
|
|
298
|
+
*/
|
|
299
|
+
async resendEmailVerificationRaw(requestParameters: ResendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RequestPasswordReset200Response>> {
|
|
300
|
+
if (requestParameters['resendEmailVerificationRequest'] == null) {
|
|
301
|
+
throw new runtime.RequiredError(
|
|
302
|
+
'resendEmailVerificationRequest',
|
|
303
|
+
'Required parameter "resendEmailVerificationRequest" was null or undefined when calling resendEmailVerification().'
|
|
304
|
+
);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const queryParameters: any = {};
|
|
308
|
+
|
|
309
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
310
|
+
|
|
311
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
312
|
+
|
|
313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
314
|
+
const token = this.configuration.accessToken;
|
|
315
|
+
const tokenString = await token("bearerAuth", []);
|
|
316
|
+
|
|
317
|
+
if (tokenString) {
|
|
318
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
const response = await this.request({
|
|
322
|
+
path: `/api/auth/resend-email-verification`,
|
|
323
|
+
method: 'POST',
|
|
324
|
+
headers: headerParameters,
|
|
325
|
+
query: queryParameters,
|
|
326
|
+
body: ResendEmailVerificationRequestToJSON(requestParameters['resendEmailVerificationRequest']),
|
|
327
|
+
}, initOverrides);
|
|
328
|
+
|
|
329
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RequestPasswordReset200ResponseFromJSON(jsonValue));
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Resend email verification link
|
|
334
|
+
*/
|
|
335
|
+
async resendEmailVerification(requestParameters: ResendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RequestPasswordReset200Response> {
|
|
336
|
+
const response = await this.resendEmailVerificationRaw(requestParameters, initOverrides);
|
|
337
|
+
return await response.value();
|
|
338
|
+
}
|
|
339
|
+
|
|
269
340
|
/**
|
|
270
341
|
* Reset user password with oobCode
|
|
271
342
|
*/
|
|
@@ -310,4 +381,92 @@ export class AuthApi extends runtime.BaseAPI {
|
|
|
310
381
|
return await response.value();
|
|
311
382
|
}
|
|
312
383
|
|
|
384
|
+
/**
|
|
385
|
+
* Send an email verification link
|
|
386
|
+
*/
|
|
387
|
+
async sendEmailVerificationRaw(requestParameters: SendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RequestPasswordReset200Response>> {
|
|
388
|
+
if (requestParameters['sendEmailVerificationRequest'] == null) {
|
|
389
|
+
throw new runtime.RequiredError(
|
|
390
|
+
'sendEmailVerificationRequest',
|
|
391
|
+
'Required parameter "sendEmailVerificationRequest" was null or undefined when calling sendEmailVerification().'
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
const queryParameters: any = {};
|
|
396
|
+
|
|
397
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
398
|
+
|
|
399
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
400
|
+
|
|
401
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
402
|
+
const token = this.configuration.accessToken;
|
|
403
|
+
const tokenString = await token("bearerAuth", []);
|
|
404
|
+
|
|
405
|
+
if (tokenString) {
|
|
406
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
const response = await this.request({
|
|
410
|
+
path: `/api/auth/send-email-verification`,
|
|
411
|
+
method: 'POST',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
body: SendEmailVerificationRequestToJSON(requestParameters['sendEmailVerificationRequest']),
|
|
415
|
+
}, initOverrides);
|
|
416
|
+
|
|
417
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RequestPasswordReset200ResponseFromJSON(jsonValue));
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Send an email verification link
|
|
422
|
+
*/
|
|
423
|
+
async sendEmailVerification(requestParameters: SendEmailVerificationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RequestPasswordReset200Response> {
|
|
424
|
+
const response = await this.sendEmailVerificationRaw(requestParameters, initOverrides);
|
|
425
|
+
return await response.value();
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Verify email with token
|
|
430
|
+
*/
|
|
431
|
+
async verifyEmailRaw(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
432
|
+
if (requestParameters['token'] == null) {
|
|
433
|
+
throw new runtime.RequiredError(
|
|
434
|
+
'token',
|
|
435
|
+
'Required parameter "token" was null or undefined when calling verifyEmail().'
|
|
436
|
+
);
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
const queryParameters: any = {};
|
|
440
|
+
|
|
441
|
+
if (requestParameters['token'] != null) {
|
|
442
|
+
queryParameters['token'] = requestParameters['token'];
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
446
|
+
|
|
447
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
448
|
+
const token = this.configuration.accessToken;
|
|
449
|
+
const tokenString = await token("bearerAuth", []);
|
|
450
|
+
|
|
451
|
+
if (tokenString) {
|
|
452
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
const response = await this.request({
|
|
456
|
+
path: `/api/auth/verify-email`,
|
|
457
|
+
method: 'GET',
|
|
458
|
+
headers: headerParameters,
|
|
459
|
+
query: queryParameters,
|
|
460
|
+
}, initOverrides);
|
|
461
|
+
|
|
462
|
+
return new runtime.VoidApiResponse(response);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* Verify email with token
|
|
467
|
+
*/
|
|
468
|
+
async verifyEmail(requestParameters: VerifyEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
469
|
+
await this.verifyEmailRaw(requestParameters, initOverrides);
|
|
470
|
+
}
|
|
471
|
+
|
|
313
472
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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 ResendEmailVerification500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ResendEmailVerification500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ResendEmailVerification500Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResendEmailVerification500Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResendEmailVerification500Response(value: object): value is ResendEmailVerification500Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ResendEmailVerification500ResponseFromJSON(json: any): ResendEmailVerification500Response {
|
|
38
|
+
return ResendEmailVerification500ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ResendEmailVerification500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResendEmailVerification500Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ResendEmailVerification500ResponseToJSON(json: any): ResendEmailVerification500Response {
|
|
52
|
+
return ResendEmailVerification500ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ResendEmailVerification500ResponseToJSONTyped(value?: ResendEmailVerification500Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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 ResendEmailVerificationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ResendEmailVerificationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Email address to resend verification
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ResendEmailVerificationRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ResendEmailVerificationRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfResendEmailVerificationRequest(value: object): value is ResendEmailVerificationRequest {
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ResendEmailVerificationRequestFromJSON(json: any): ResendEmailVerificationRequest {
|
|
39
|
+
return ResendEmailVerificationRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ResendEmailVerificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResendEmailVerificationRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ResendEmailVerificationRequestToJSON(json: any): ResendEmailVerificationRequest {
|
|
53
|
+
return ResendEmailVerificationRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ResendEmailVerificationRequestToJSONTyped(value?: ResendEmailVerificationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'email': value['email'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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 SendEmailVerification500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface SendEmailVerification500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SendEmailVerification500Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SendEmailVerification500Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSendEmailVerification500Response(value: object): value is SendEmailVerification500Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function SendEmailVerification500ResponseFromJSON(json: any): SendEmailVerification500Response {
|
|
38
|
+
return SendEmailVerification500ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function SendEmailVerification500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendEmailVerification500Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SendEmailVerification500ResponseToJSON(json: any): SendEmailVerification500Response {
|
|
52
|
+
return SendEmailVerification500ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SendEmailVerification500ResponseToJSONTyped(value?: SendEmailVerification500Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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 SendEmailVerificationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface SendEmailVerificationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Email address to verify
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SendEmailVerificationRequest
|
|
26
|
+
*/
|
|
27
|
+
email: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the SendEmailVerificationRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfSendEmailVerificationRequest(value: object): value is SendEmailVerificationRequest {
|
|
34
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function SendEmailVerificationRequestFromJSON(json: any): SendEmailVerificationRequest {
|
|
39
|
+
return SendEmailVerificationRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function SendEmailVerificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SendEmailVerificationRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'email': json['email'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SendEmailVerificationRequestToJSON(json: any): SendEmailVerificationRequest {
|
|
53
|
+
return SendEmailVerificationRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SendEmailVerificationRequestToJSONTyped(value?: SendEmailVerificationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'email': value['email'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/models/UserSession.ts
CHANGED
|
@@ -75,6 +75,12 @@ export interface UserSession {
|
|
|
75
75
|
* @memberof UserSession
|
|
76
76
|
*/
|
|
77
77
|
userAuthId?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Firebase authentication provider (e.g., 'password', 'google.com')
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof UserSession
|
|
82
|
+
*/
|
|
83
|
+
signInProvider?: string | null;
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
/**
|
|
@@ -102,6 +108,7 @@ export function UserSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
102
108
|
'locationId': json['locationId'] == null ? undefined : json['locationId'],
|
|
103
109
|
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
104
110
|
'userAuthId': json['userAuthId'] == null ? undefined : json['userAuthId'],
|
|
111
|
+
'signInProvider': json['signInProvider'] == null ? undefined : json['signInProvider'],
|
|
105
112
|
};
|
|
106
113
|
}
|
|
107
114
|
|
|
@@ -124,6 +131,7 @@ export function UserSessionToJSONTyped(value?: UserSession | null, ignoreDiscrim
|
|
|
124
131
|
'locationId': value['locationId'],
|
|
125
132
|
'userId': value['userId'],
|
|
126
133
|
'userAuthId': value['userAuthId'],
|
|
134
|
+
'signInProvider': value['signInProvider'],
|
|
127
135
|
};
|
|
128
136
|
}
|
|
129
137
|
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
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 VerifyEmail400Response
|
|
20
|
+
*/
|
|
21
|
+
export interface VerifyEmail400Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof VerifyEmail400Response
|
|
26
|
+
*/
|
|
27
|
+
error?: VerifyEmail400ResponseErrorEnum;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export const VerifyEmail400ResponseErrorEnum = {
|
|
35
|
+
VerificationExpired: 'VERIFICATION_EXPIRED',
|
|
36
|
+
VerificationInvalid: 'VERIFICATION_INVALID',
|
|
37
|
+
VerificationFailed: 'VERIFICATION_FAILED'
|
|
38
|
+
} as const;
|
|
39
|
+
export type VerifyEmail400ResponseErrorEnum = typeof VerifyEmail400ResponseErrorEnum[keyof typeof VerifyEmail400ResponseErrorEnum];
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the VerifyEmail400Response interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfVerifyEmail400Response(value: object): value is VerifyEmail400Response {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function VerifyEmail400ResponseFromJSON(json: any): VerifyEmail400Response {
|
|
50
|
+
return VerifyEmail400ResponseFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function VerifyEmail400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VerifyEmail400Response {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function VerifyEmail400ResponseToJSON(json: any): VerifyEmail400Response {
|
|
64
|
+
return VerifyEmail400ResponseToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function VerifyEmail400ResponseToJSONTyped(value?: VerifyEmail400Response | null, ignoreDiscriminator: boolean = false): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'error': value['error'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
package/models/index.ts
CHANGED
|
@@ -135,6 +135,8 @@ export * from './RentHour';
|
|
|
135
135
|
export * from './RequestPasswordReset200Response';
|
|
136
136
|
export * from './RequestPasswordReset500Response';
|
|
137
137
|
export * from './RequestPasswordResetRequest';
|
|
138
|
+
export * from './ResendEmailVerification500Response';
|
|
139
|
+
export * from './ResendEmailVerificationRequest';
|
|
138
140
|
export * from './ReservationAccessCodeResponse';
|
|
139
141
|
export * from './ReservationAccessCodeResponseResult';
|
|
140
142
|
export * from './ReservationParams';
|
|
@@ -151,6 +153,8 @@ export * from './ResetPasswordRequest';
|
|
|
151
153
|
export * from './SavePushTokenRequest';
|
|
152
154
|
export * from './SearchClubs400Response';
|
|
153
155
|
export * from './SearchClubs500Response';
|
|
156
|
+
export * from './SendEmailVerification500Response';
|
|
157
|
+
export * from './SendEmailVerificationRequest';
|
|
154
158
|
export * from './SetAuthCodeDto';
|
|
155
159
|
export * from './Shift';
|
|
156
160
|
export * from './Sport';
|
|
@@ -178,5 +182,6 @@ export * from './UserSessionCustomer';
|
|
|
178
182
|
export * from './UserSportProfile';
|
|
179
183
|
export * from './UserSportProfileDto';
|
|
180
184
|
export * from './UserType';
|
|
185
|
+
export * from './VerifyEmail400Response';
|
|
181
186
|
export * from './VerifyPhoneNumber200Response';
|
|
182
187
|
export * from './VerifyPhoneNumberRequest';
|