@jugarhoy/api 1.0.8 → 1.0.10

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.
Files changed (38) hide show
  1. package/apis/AppPlayRegistrationApi.ts +177 -0
  2. package/apis/AppPlaySearchApi.ts +323 -0
  3. package/apis/AuthApi.ts +12 -12
  4. package/apis/NotificationsApi.ts +167 -0
  5. package/apis/index.ts +3 -0
  6. package/models/ClubPlace.ts +184 -0
  7. package/models/CreateClubPlaceRequest.ts +161 -0
  8. package/models/CreatePlayRegistrationRequest.ts +92 -0
  9. package/models/CreatePlaySearchRequest.ts +197 -0
  10. package/models/DominantSide.ts +53 -0
  11. package/models/MarkNotificationAsRead200Response.ts +65 -0
  12. package/models/Notification.ts +147 -0
  13. package/models/NotificationCategory.ts +58 -0
  14. package/models/NotificationChannelType.ts +55 -0
  15. package/models/NotificationDto.ts +139 -0
  16. package/models/NotificationListResponseDto.ts +89 -0
  17. package/models/NotificationType.ts +5 -5
  18. package/models/PlayRegistration.ts +159 -0
  19. package/models/PlayRegistrationDTO.ts +151 -0
  20. package/models/PlayRegistrationDTOUser.ts +97 -0
  21. package/models/PlayRegistrationListResponse.ts +97 -0
  22. package/models/PlayRegistrationType.ts +55 -0
  23. package/models/PlaySearch.ts +252 -0
  24. package/models/PlaySearchDTO.ts +266 -0
  25. package/models/PlaySearchDTOClubPlace.ts +121 -0
  26. package/models/PlaySearchDetailDTO.ts +296 -0
  27. package/models/PlaySearchDetailDTOAllOfCounts.ts +73 -0
  28. package/models/PlaySearchDetailDTOAllOfRegistrations.ts +124 -0
  29. package/models/PlaySearchDetailDTOAllOfUser.ts +89 -0
  30. package/models/PlaySearchListResponse.ts +97 -0
  31. package/models/PlaySearchStatus.ts +56 -0
  32. package/models/RegistrationStatus.ts +55 -0
  33. package/models/SubscriptionStatus.ts +58 -0
  34. package/models/UnreadCountResponseDto.ts +65 -0
  35. package/models/{UserNotification.ts → UserNotificationConfig.ts} +27 -27
  36. package/models/index.ts +29 -2
  37. package/package.json +1 -1
  38. package/models/RequestPasswordReset200Response.ts +0 -65
@@ -0,0 +1,139 @@
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
+ import type { NotificationCategory } from './NotificationCategory';
17
+ import {
18
+ NotificationCategoryFromJSON,
19
+ NotificationCategoryFromJSONTyped,
20
+ NotificationCategoryToJSON,
21
+ NotificationCategoryToJSONTyped,
22
+ } from './NotificationCategory';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NotificationDto
28
+ */
29
+ export interface NotificationDto {
30
+ /**
31
+ * Unique identifier for the notification
32
+ * @type {string}
33
+ * @memberof NotificationDto
34
+ */
35
+ id?: string;
36
+ /**
37
+ *
38
+ * @type {NotificationCategory}
39
+ * @memberof NotificationDto
40
+ */
41
+ type?: NotificationCategory;
42
+ /**
43
+ * Notification title (Spanish)
44
+ * @type {string}
45
+ * @memberof NotificationDto
46
+ */
47
+ title?: string;
48
+ /**
49
+ * Notification message body (Spanish)
50
+ * @type {string}
51
+ * @memberof NotificationDto
52
+ */
53
+ message?: string;
54
+ /**
55
+ * Whether the user has read this notification
56
+ * @type {boolean}
57
+ * @memberof NotificationDto
58
+ */
59
+ read?: boolean;
60
+ /**
61
+ * Optional ID of related entity for deep linking
62
+ * @type {string}
63
+ * @memberof NotificationDto
64
+ */
65
+ relatedId?: string | null;
66
+ /**
67
+ * Optional JSON object with additional data
68
+ * @type {{ [key: string]: any; }}
69
+ * @memberof NotificationDto
70
+ */
71
+ metadata?: { [key: string]: any; } | null;
72
+ /**
73
+ * When the notification was created
74
+ * @type {Date}
75
+ * @memberof NotificationDto
76
+ */
77
+ createdAt?: Date;
78
+ /**
79
+ * When the notification was last updated
80
+ * @type {Date}
81
+ * @memberof NotificationDto
82
+ */
83
+ updatedAt?: Date;
84
+ }
85
+
86
+
87
+
88
+ /**
89
+ * Check if a given object implements the NotificationDto interface.
90
+ */
91
+ export function instanceOfNotificationDto(value: object): value is NotificationDto {
92
+ return true;
93
+ }
94
+
95
+ export function NotificationDtoFromJSON(json: any): NotificationDto {
96
+ return NotificationDtoFromJSONTyped(json, false);
97
+ }
98
+
99
+ export function NotificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationDto {
100
+ if (json == null) {
101
+ return json;
102
+ }
103
+ return {
104
+
105
+ 'id': json['id'] == null ? undefined : json['id'],
106
+ 'type': json['type'] == null ? undefined : NotificationCategoryFromJSON(json['type']),
107
+ 'title': json['title'] == null ? undefined : json['title'],
108
+ 'message': json['message'] == null ? undefined : json['message'],
109
+ 'read': json['read'] == null ? undefined : json['read'],
110
+ 'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
111
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
112
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
113
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
114
+ };
115
+ }
116
+
117
+ export function NotificationDtoToJSON(json: any): NotificationDto {
118
+ return NotificationDtoToJSONTyped(json, false);
119
+ }
120
+
121
+ export function NotificationDtoToJSONTyped(value?: NotificationDto | null, ignoreDiscriminator: boolean = false): any {
122
+ if (value == null) {
123
+ return value;
124
+ }
125
+
126
+ return {
127
+
128
+ 'id': value['id'],
129
+ 'type': NotificationCategoryToJSON(value['type']),
130
+ 'title': value['title'],
131
+ 'message': value['message'],
132
+ 'read': value['read'],
133
+ 'relatedId': value['relatedId'],
134
+ 'metadata': value['metadata'],
135
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
136
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
137
+ };
138
+ }
139
+
@@ -0,0 +1,89 @@
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
+ import type { NotificationDto } from './NotificationDto';
17
+ import {
18
+ NotificationDtoFromJSON,
19
+ NotificationDtoFromJSONTyped,
20
+ NotificationDtoToJSON,
21
+ NotificationDtoToJSONTyped,
22
+ } from './NotificationDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface NotificationListResponseDto
28
+ */
29
+ export interface NotificationListResponseDto {
30
+ /**
31
+ * List of notifications
32
+ * @type {Array<NotificationDto>}
33
+ * @memberof NotificationListResponseDto
34
+ */
35
+ notifications?: Array<NotificationDto>;
36
+ /**
37
+ * Total number of notifications for the user
38
+ * @type {number}
39
+ * @memberof NotificationListResponseDto
40
+ */
41
+ total?: number;
42
+ /**
43
+ * Whether there are more notifications to load
44
+ * @type {boolean}
45
+ * @memberof NotificationListResponseDto
46
+ */
47
+ hasMore?: boolean;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the NotificationListResponseDto interface.
52
+ */
53
+ export function instanceOfNotificationListResponseDto(value: object): value is NotificationListResponseDto {
54
+ return true;
55
+ }
56
+
57
+ export function NotificationListResponseDtoFromJSON(json: any): NotificationListResponseDto {
58
+ return NotificationListResponseDtoFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function NotificationListResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationListResponseDto {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'notifications': json['notifications'] == null ? undefined : ((json['notifications'] as Array<any>).map(NotificationDtoFromJSON)),
68
+ 'total': json['total'] == null ? undefined : json['total'],
69
+ 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
70
+ };
71
+ }
72
+
73
+ export function NotificationListResponseDtoToJSON(json: any): NotificationListResponseDto {
74
+ return NotificationListResponseDtoToJSONTyped(json, false);
75
+ }
76
+
77
+ export function NotificationListResponseDtoToJSONTyped(value?: NotificationListResponseDto | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'notifications': value['notifications'] == null ? undefined : ((value['notifications'] as Array<any>).map(NotificationDtoToJSON)),
85
+ 'total': value['total'],
86
+ 'hasMore': value['hasMore'],
87
+ };
88
+ }
89
+
@@ -14,14 +14,14 @@
14
14
 
15
15
 
16
16
  /**
17
- * Types of notifications that can be enabled/disabled
17
+ * Represents the type of notification to be sent
18
18
  * @export
19
19
  */
20
20
  export const NotificationType = {
21
- Whatsapp: 'WHATSAPP',
22
- PushWeb: 'PUSH_WEB',
23
- PushNative: 'PUSH_NATIVE',
24
- Email: 'EMAIL'
21
+ Reserve: 'RESERVE',
22
+ Cancellation: 'CANCELLATION',
23
+ Reminder: 'REMINDER',
24
+ PaymentConfirmation: 'PAYMENT_CONFIRMATION'
25
25
  } as const;
26
26
  export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
27
27
 
@@ -0,0 +1,159 @@
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
+ import type { RegistrationStatus } from './RegistrationStatus';
17
+ import {
18
+ RegistrationStatusFromJSON,
19
+ RegistrationStatusFromJSONTyped,
20
+ RegistrationStatusToJSON,
21
+ RegistrationStatusToJSONTyped,
22
+ } from './RegistrationStatus';
23
+ import type { PlayRegistrationType } from './PlayRegistrationType';
24
+ import {
25
+ PlayRegistrationTypeFromJSON,
26
+ PlayRegistrationTypeFromJSONTyped,
27
+ PlayRegistrationTypeToJSON,
28
+ PlayRegistrationTypeToJSONTyped,
29
+ } from './PlayRegistrationType';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PlayRegistration
35
+ */
36
+ export interface PlayRegistration {
37
+ /**
38
+ * Unique identifier for the registration
39
+ * @type {string}
40
+ * @memberof PlayRegistration
41
+ */
42
+ id: string;
43
+ /**
44
+ * ID of the user registering
45
+ * @type {string}
46
+ * @memberof PlayRegistration
47
+ */
48
+ userId: string;
49
+ /**
50
+ *
51
+ * @type {PlayRegistrationType}
52
+ * @memberof PlayRegistration
53
+ */
54
+ type: PlayRegistrationType;
55
+ /**
56
+ * ID of the PlaySearch (if type is FALTA1)
57
+ * @type {string}
58
+ * @memberof PlayRegistration
59
+ */
60
+ playSearchId?: string | null;
61
+ /**
62
+ * ID of the PlaySubscription (if type is TOURNAMENT)
63
+ * @type {string}
64
+ * @memberof PlayRegistration
65
+ */
66
+ subscriptionId?: string | null;
67
+ /**
68
+ * ID of the Reserve (for future WEEKLY_MATCH)
69
+ * @type {string}
70
+ * @memberof PlayRegistration
71
+ */
72
+ reserveId?: string | null;
73
+ /**
74
+ *
75
+ * @type {RegistrationStatus}
76
+ * @memberof PlayRegistration
77
+ */
78
+ status: RegistrationStatus;
79
+ /**
80
+ * Queue position for auto-promotion
81
+ * @type {number}
82
+ * @memberof PlayRegistration
83
+ */
84
+ registrationOrder: number;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof PlayRegistration
89
+ */
90
+ createdAt?: Date;
91
+ /**
92
+ *
93
+ * @type {Date}
94
+ * @memberof PlayRegistration
95
+ */
96
+ updatedAt?: Date;
97
+ }
98
+
99
+
100
+
101
+ /**
102
+ * Check if a given object implements the PlayRegistration interface.
103
+ */
104
+ export function instanceOfPlayRegistration(value: object): value is PlayRegistration {
105
+ if (!('id' in value) || value['id'] === undefined) return false;
106
+ if (!('userId' in value) || value['userId'] === undefined) return false;
107
+ if (!('type' in value) || value['type'] === undefined) return false;
108
+ if (!('status' in value) || value['status'] === undefined) return false;
109
+ if (!('registrationOrder' in value) || value['registrationOrder'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function PlayRegistrationFromJSON(json: any): PlayRegistration {
114
+ return PlayRegistrationFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function PlayRegistrationFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistration {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'id': json['id'],
124
+ 'userId': json['userId'],
125
+ 'type': PlayRegistrationTypeFromJSON(json['type']),
126
+ 'playSearchId': json['playSearchId'] == null ? undefined : json['playSearchId'],
127
+ 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
128
+ 'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
129
+ 'status': RegistrationStatusFromJSON(json['status']),
130
+ 'registrationOrder': json['registrationOrder'],
131
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
132
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
133
+ };
134
+ }
135
+
136
+ export function PlayRegistrationToJSON(json: any): PlayRegistration {
137
+ return PlayRegistrationToJSONTyped(json, false);
138
+ }
139
+
140
+ export function PlayRegistrationToJSONTyped(value?: PlayRegistration | null, ignoreDiscriminator: boolean = false): any {
141
+ if (value == null) {
142
+ return value;
143
+ }
144
+
145
+ return {
146
+
147
+ 'id': value['id'],
148
+ 'userId': value['userId'],
149
+ 'type': PlayRegistrationTypeToJSON(value['type']),
150
+ 'playSearchId': value['playSearchId'],
151
+ 'subscriptionId': value['subscriptionId'],
152
+ 'reserveId': value['reserveId'],
153
+ 'status': RegistrationStatusToJSON(value['status']),
154
+ 'registrationOrder': value['registrationOrder'],
155
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
156
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
157
+ };
158
+ }
159
+
@@ -0,0 +1,151 @@
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
+ import type { RegistrationStatus } from './RegistrationStatus';
17
+ import {
18
+ RegistrationStatusFromJSON,
19
+ RegistrationStatusFromJSONTyped,
20
+ RegistrationStatusToJSON,
21
+ RegistrationStatusToJSONTyped,
22
+ } from './RegistrationStatus';
23
+ import type { PlayRegistrationType } from './PlayRegistrationType';
24
+ import {
25
+ PlayRegistrationTypeFromJSON,
26
+ PlayRegistrationTypeFromJSONTyped,
27
+ PlayRegistrationTypeToJSON,
28
+ PlayRegistrationTypeToJSONTyped,
29
+ } from './PlayRegistrationType';
30
+ import type { PlayRegistrationDTOUser } from './PlayRegistrationDTOUser';
31
+ import {
32
+ PlayRegistrationDTOUserFromJSON,
33
+ PlayRegistrationDTOUserFromJSONTyped,
34
+ PlayRegistrationDTOUserToJSON,
35
+ PlayRegistrationDTOUserToJSONTyped,
36
+ } from './PlayRegistrationDTOUser';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface PlayRegistrationDTO
42
+ */
43
+ export interface PlayRegistrationDTO {
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PlayRegistrationDTO
48
+ */
49
+ id: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof PlayRegistrationDTO
54
+ */
55
+ playSearchId: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof PlayRegistrationDTO
60
+ */
61
+ userId: string;
62
+ /**
63
+ *
64
+ * @type {PlayRegistrationDTOUser}
65
+ * @memberof PlayRegistrationDTO
66
+ */
67
+ user?: PlayRegistrationDTOUser;
68
+ /**
69
+ *
70
+ * @type {PlayRegistrationType}
71
+ * @memberof PlayRegistrationDTO
72
+ */
73
+ type: PlayRegistrationType;
74
+ /**
75
+ *
76
+ * @type {RegistrationStatus}
77
+ * @memberof PlayRegistrationDTO
78
+ */
79
+ status: RegistrationStatus;
80
+ /**
81
+ *
82
+ * @type {number}
83
+ * @memberof PlayRegistrationDTO
84
+ */
85
+ registrationOrder: number;
86
+ /**
87
+ *
88
+ * @type {Date}
89
+ * @memberof PlayRegistrationDTO
90
+ */
91
+ createdAt?: Date;
92
+ }
93
+
94
+
95
+
96
+ /**
97
+ * Check if a given object implements the PlayRegistrationDTO interface.
98
+ */
99
+ export function instanceOfPlayRegistrationDTO(value: object): value is PlayRegistrationDTO {
100
+ if (!('id' in value) || value['id'] === undefined) return false;
101
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
102
+ if (!('userId' in value) || value['userId'] === undefined) return false;
103
+ if (!('type' in value) || value['type'] === undefined) return false;
104
+ if (!('status' in value) || value['status'] === undefined) return false;
105
+ if (!('registrationOrder' in value) || value['registrationOrder'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function PlayRegistrationDTOFromJSON(json: any): PlayRegistrationDTO {
110
+ return PlayRegistrationDTOFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function PlayRegistrationDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationDTO {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'playSearchId': json['playSearchId'],
121
+ 'userId': json['userId'],
122
+ 'user': json['user'] == null ? undefined : PlayRegistrationDTOUserFromJSON(json['user']),
123
+ 'type': PlayRegistrationTypeFromJSON(json['type']),
124
+ 'status': RegistrationStatusFromJSON(json['status']),
125
+ 'registrationOrder': json['registrationOrder'],
126
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
127
+ };
128
+ }
129
+
130
+ export function PlayRegistrationDTOToJSON(json: any): PlayRegistrationDTO {
131
+ return PlayRegistrationDTOToJSONTyped(json, false);
132
+ }
133
+
134
+ export function PlayRegistrationDTOToJSONTyped(value?: PlayRegistrationDTO | null, ignoreDiscriminator: boolean = false): any {
135
+ if (value == null) {
136
+ return value;
137
+ }
138
+
139
+ return {
140
+
141
+ 'id': value['id'],
142
+ 'playSearchId': value['playSearchId'],
143
+ 'userId': value['userId'],
144
+ 'user': PlayRegistrationDTOUserToJSON(value['user']),
145
+ 'type': PlayRegistrationTypeToJSON(value['type']),
146
+ 'status': RegistrationStatusToJSON(value['status']),
147
+ 'registrationOrder': value['registrationOrder'],
148
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
149
+ };
150
+ }
151
+
@@ -0,0 +1,97 @@
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 PlayRegistrationDTOUser
20
+ */
21
+ export interface PlayRegistrationDTOUser {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PlayRegistrationDTOUser
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PlayRegistrationDTOUser
32
+ */
33
+ firstName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PlayRegistrationDTOUser
38
+ */
39
+ lastName?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PlayRegistrationDTOUser
44
+ */
45
+ avatarUrl?: string | null;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof PlayRegistrationDTOUser
50
+ */
51
+ rating?: number | null;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the PlayRegistrationDTOUser interface.
56
+ */
57
+ export function instanceOfPlayRegistrationDTOUser(value: object): value is PlayRegistrationDTOUser {
58
+ return true;
59
+ }
60
+
61
+ export function PlayRegistrationDTOUserFromJSON(json: any): PlayRegistrationDTOUser {
62
+ return PlayRegistrationDTOUserFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function PlayRegistrationDTOUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationDTOUser {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'id': json['id'] == null ? undefined : json['id'],
72
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
73
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
74
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
75
+ 'rating': json['rating'] == null ? undefined : json['rating'],
76
+ };
77
+ }
78
+
79
+ export function PlayRegistrationDTOUserToJSON(json: any): PlayRegistrationDTOUser {
80
+ return PlayRegistrationDTOUserToJSONTyped(json, false);
81
+ }
82
+
83
+ export function PlayRegistrationDTOUserToJSONTyped(value?: PlayRegistrationDTOUser | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'id': value['id'],
91
+ 'firstName': value['firstName'],
92
+ 'lastName': value['lastName'],
93
+ 'avatarUrl': value['avatarUrl'],
94
+ 'rating': value['rating'],
95
+ };
96
+ }
97
+