@jugarhoy/api 1.1.10 → 1.1.12

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 (58) hide show
  1. package/apis/PositionsApi.ts +235 -0
  2. package/apis/RecurringGamesApi.ts +279 -0
  3. package/apis/SportEventsApi.ts +133 -0
  4. package/apis/TeamFeedApi.ts +386 -0
  5. package/apis/TeamsApi.ts +578 -0
  6. package/apis/VotingApi.ts +404 -0
  7. package/apis/index.ts +6 -0
  8. package/models/ApiAppTeamsTeamIdEventsGet200Response.ts +73 -0
  9. package/models/ApiAppTeamsTeamIdEventsGet200ResponseEventsInner.ts +97 -0
  10. package/models/ApiAppTeamsTeamIdEventsPostRequest.ts +139 -0
  11. package/models/ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest.ts +81 -0
  12. package/models/ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest.ts +66 -0
  13. package/models/ApiAppTeamsTeamIdFeedSummaryGet200Response.ts +81 -0
  14. package/models/ApiAppVotingHasVotedPlaySearchIdGet200Response.ts +65 -0
  15. package/models/AssignPositionsRequest.ts +92 -0
  16. package/models/AssignPositionsRequestPositionsInner.ts +130 -0
  17. package/models/AutoAssignPositionsRequest.ts +93 -0
  18. package/models/CreatePlaySearchRequest.ts +8 -0
  19. package/models/CreateRecurringGameRequest.ts +130 -0
  20. package/models/CreateTeamFeedRequest.ts +82 -0
  21. package/models/CreateTeamRequest.ts +134 -0
  22. package/models/FeedMediaType.ts +56 -0
  23. package/models/GroupedPositionsResponse.ts +83 -0
  24. package/models/GroupedPositionsResponseHome.ts +83 -0
  25. package/models/JoinTeamRequest.ts +66 -0
  26. package/models/MatchVote.ts +134 -0
  27. package/models/NotificationChannelType.ts +3 -1
  28. package/models/PlaySearch.ts +8 -0
  29. package/models/PlaySearchDTO.ts +8 -0
  30. package/models/PlaySearchDetailDTO.ts +8 -0
  31. package/models/PlaySearchPosition.ts +153 -0
  32. package/models/PlayerRatingResponse.ts +111 -0
  33. package/models/PositionResponse.ts +157 -0
  34. package/models/PositionStatus.ts +53 -0
  35. package/models/PositionTeam.ts +53 -0
  36. package/models/RecurringGame.ts +164 -0
  37. package/models/RecurringGameResponse.ts +155 -0
  38. package/models/SportEventData.ts +113 -0
  39. package/models/SportEventType.ts +77 -0
  40. package/models/SubmitRatingsRequest.ts +92 -0
  41. package/models/SubmitRatingsRequestRatingsInner.ts +99 -0
  42. package/models/Team.ts +186 -0
  43. package/models/TeamFeedItem.ts +188 -0
  44. package/models/TeamFeedItemResponse.ts +168 -0
  45. package/models/TeamFeedListResponse.ts +89 -0
  46. package/models/TeamFeedMedia.ts +101 -0
  47. package/models/TeamMember.ts +121 -0
  48. package/models/TeamMemberResponse.ts +123 -0
  49. package/models/TeamMemberRole.ts +54 -0
  50. package/models/TeamResponse.ts +194 -0
  51. package/models/TeamType.ts +53 -0
  52. package/models/UpdateMemberRoleRequest.ts +76 -0
  53. package/models/UpdateRecurringGameRequest.ts +124 -0
  54. package/models/UpdateTeamRequest.ts +105 -0
  55. package/models/VotingStatsResponse.ts +93 -0
  56. package/models/VotingStatusResponse.ts +82 -0
  57. package/models/index.ts +44 -0
  58. package/package.json +1 -1
@@ -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 JoinTeamRequest
20
+ */
21
+ export interface JoinTeamRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof JoinTeamRequest
26
+ */
27
+ inviteCode: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the JoinTeamRequest interface.
32
+ */
33
+ export function instanceOfJoinTeamRequest(value: object): value is JoinTeamRequest {
34
+ if (!('inviteCode' in value) || value['inviteCode'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function JoinTeamRequestFromJSON(json: any): JoinTeamRequest {
39
+ return JoinTeamRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function JoinTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): JoinTeamRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'inviteCode': json['inviteCode'],
49
+ };
50
+ }
51
+
52
+ export function JoinTeamRequestToJSON(json: any): JoinTeamRequest {
53
+ return JoinTeamRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function JoinTeamRequestToJSONTyped(value?: JoinTeamRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'inviteCode': value['inviteCode'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,134 @@
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 MatchVote
20
+ */
21
+ export interface MatchVote {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof MatchVote
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof MatchVote
32
+ */
33
+ playSearchId: string;
34
+ /**
35
+ * User who is rating
36
+ * @type {string}
37
+ * @memberof MatchVote
38
+ */
39
+ voterId: string;
40
+ /**
41
+ * User being rated
42
+ * @type {string}
43
+ * @memberof MatchVote
44
+ */
45
+ ratedPlayerId: string;
46
+ /**
47
+ * Optional reference to position
48
+ * @type {string}
49
+ * @memberof MatchVote
50
+ */
51
+ ratedPositionId?: string | null;
52
+ /**
53
+ * Rating on 1-10 scale
54
+ * @type {number}
55
+ * @memberof MatchVote
56
+ */
57
+ rating: number;
58
+ /**
59
+ * Optional feedback message
60
+ * @type {string}
61
+ * @memberof MatchVote
62
+ */
63
+ message?: string | null;
64
+ /**
65
+ * Optional emoji reactions
66
+ * @type {Array<string>}
67
+ * @memberof MatchVote
68
+ */
69
+ reactions?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Date}
73
+ * @memberof MatchVote
74
+ */
75
+ createdAt?: Date;
76
+ }
77
+
78
+ /**
79
+ * Check if a given object implements the MatchVote interface.
80
+ */
81
+ export function instanceOfMatchVote(value: object): value is MatchVote {
82
+ if (!('id' in value) || value['id'] === undefined) return false;
83
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
84
+ if (!('voterId' in value) || value['voterId'] === undefined) return false;
85
+ if (!('ratedPlayerId' in value) || value['ratedPlayerId'] === undefined) return false;
86
+ if (!('rating' in value) || value['rating'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function MatchVoteFromJSON(json: any): MatchVote {
91
+ return MatchVoteFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function MatchVoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): MatchVote {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'id': json['id'],
101
+ 'playSearchId': json['playSearchId'],
102
+ 'voterId': json['voterId'],
103
+ 'ratedPlayerId': json['ratedPlayerId'],
104
+ 'ratedPositionId': json['ratedPositionId'] == null ? undefined : json['ratedPositionId'],
105
+ 'rating': json['rating'],
106
+ 'message': json['message'] == null ? undefined : json['message'],
107
+ 'reactions': json['reactions'] == null ? undefined : json['reactions'],
108
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
109
+ };
110
+ }
111
+
112
+ export function MatchVoteToJSON(json: any): MatchVote {
113
+ return MatchVoteToJSONTyped(json, false);
114
+ }
115
+
116
+ export function MatchVoteToJSONTyped(value?: MatchVote | null, ignoreDiscriminator: boolean = false): any {
117
+ if (value == null) {
118
+ return value;
119
+ }
120
+
121
+ return {
122
+
123
+ 'id': value['id'],
124
+ 'playSearchId': value['playSearchId'],
125
+ 'voterId': value['voterId'],
126
+ 'ratedPlayerId': value['ratedPlayerId'],
127
+ 'ratedPositionId': value['ratedPositionId'],
128
+ 'rating': value['rating'],
129
+ 'message': value['message'],
130
+ 'reactions': value['reactions'],
131
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
132
+ };
133
+ }
134
+
@@ -22,7 +22,9 @@ export const NotificationChannelType = {
22
22
  PushWeb: 'PUSH_WEB',
23
23
  PushNative: 'PUSH_NATIVE',
24
24
  Email: 'EMAIL',
25
- Falta1: 'FALTA1'
25
+ Falta1: 'FALTA1',
26
+ SearchTournament: 'SEARCH_TOURNAMENT',
27
+ SearchTraining: 'SEARCH_TRAINING'
26
28
  } as const;
27
29
  export type NotificationChannelType = typeof NotificationChannelType[keyof typeof NotificationChannelType];
28
30
 
@@ -78,6 +78,12 @@ export interface PlaySearch {
78
78
  * @memberof PlaySearch
79
79
  */
80
80
  type: PlaySearchType;
81
+ /**
82
+ * Optional tournament name (typically for CANCHA_ABIERTA type)
83
+ * @type {string}
84
+ * @memberof PlaySearch
85
+ */
86
+ tournamentName?: string | null;
81
87
  /**
82
88
  * Format of play (1=Singles, 2=Dobles, 5+=Equipo)
83
89
  * @type {number}
@@ -236,6 +242,7 @@ export function PlaySearchFromJSONTyped(json: any, ignoreDiscriminator: boolean)
236
242
  'clubPlaceId': json['clubPlaceId'],
237
243
  'sport': SportFromJSON(json['sport']),
238
244
  'type': PlaySearchTypeFromJSON(json['type']),
245
+ 'tournamentName': json['tournamentName'] == null ? undefined : json['tournamentName'],
239
246
  'playersPerTeam': json['playersPerTeam'] == null ? undefined : json['playersPerTeam'],
240
247
  'matchDateTime': (new Date(json['matchDateTime'])),
241
248
  'duration': json['duration'],
@@ -275,6 +282,7 @@ export function PlaySearchToJSONTyped(value?: PlaySearch | null, ignoreDiscrimin
275
282
  'clubPlaceId': value['clubPlaceId'],
276
283
  'sport': SportToJSON(value['sport']),
277
284
  'type': PlaySearchTypeToJSON(value['type']),
285
+ 'tournamentName': value['tournamentName'],
278
286
  'playersPerTeam': value['playersPerTeam'],
279
287
  'matchDateTime': ((value['matchDateTime']).toISOString()),
280
288
  'duration': value['duration'],
@@ -98,6 +98,12 @@ export interface PlaySearchDTO {
98
98
  * @memberof PlaySearchDTO
99
99
  */
100
100
  type: PlaySearchType;
101
+ /**
102
+ * Optional tournament name (typically for CANCHA_ABIERTA type)
103
+ * @type {string}
104
+ * @memberof PlaySearchDTO
105
+ */
106
+ tournamentName?: string | null;
101
107
  /**
102
108
  *
103
109
  * @type {number}
@@ -233,6 +239,7 @@ export function PlaySearchDTOFromJSONTyped(json: any, ignoreDiscriminator: boole
233
239
  'clubPlace': PlaySearchDTOClubPlaceFromJSON(json['clubPlace']),
234
240
  'sport': SportFromJSON(json['sport']),
235
241
  'type': PlaySearchTypeFromJSON(json['type']),
242
+ 'tournamentName': json['tournamentName'] == null ? undefined : json['tournamentName'],
236
243
  'playersPerTeam': json['playersPerTeam'] == null ? undefined : json['playersPerTeam'],
237
244
  'matchDateTime': (new Date(json['matchDateTime'])),
238
245
  'duration': json['duration'],
@@ -269,6 +276,7 @@ export function PlaySearchDTOToJSONTyped(value?: PlaySearchDTO | null, ignoreDis
269
276
  'clubPlace': PlaySearchDTOClubPlaceToJSON(value['clubPlace']),
270
277
  'sport': SportToJSON(value['sport']),
271
278
  'type': PlaySearchTypeToJSON(value['type']),
279
+ 'tournamentName': value['tournamentName'],
272
280
  'playersPerTeam': value['playersPerTeam'],
273
281
  'matchDateTime': ((value['matchDateTime']).toISOString()),
274
282
  'duration': value['duration'],
@@ -112,6 +112,12 @@ export interface PlaySearchDetailDTO {
112
112
  * @memberof PlaySearchDetailDTO
113
113
  */
114
114
  type: PlaySearchType;
115
+ /**
116
+ * Optional tournament name (typically for CANCHA_ABIERTA type)
117
+ * @type {string}
118
+ * @memberof PlaySearchDetailDTO
119
+ */
120
+ tournamentName?: string | null;
115
121
  /**
116
122
  *
117
123
  * @type {number}
@@ -265,6 +271,7 @@ export function PlaySearchDetailDTOFromJSONTyped(json: any, ignoreDiscriminator:
265
271
  'clubPlace': PlaySearchDTOClubPlaceFromJSON(json['clubPlace']),
266
272
  'sport': SportFromJSON(json['sport']),
267
273
  'type': PlaySearchTypeFromJSON(json['type']),
274
+ 'tournamentName': json['tournamentName'] == null ? undefined : json['tournamentName'],
268
275
  'playersPerTeam': json['playersPerTeam'] == null ? undefined : json['playersPerTeam'],
269
276
  'matchDateTime': (new Date(json['matchDateTime'])),
270
277
  'duration': json['duration'],
@@ -304,6 +311,7 @@ export function PlaySearchDetailDTOToJSONTyped(value?: PlaySearchDetailDTO | nul
304
311
  'clubPlace': PlaySearchDTOClubPlaceToJSON(value['clubPlace']),
305
312
  'sport': SportToJSON(value['sport']),
306
313
  'type': PlaySearchTypeToJSON(value['type']),
314
+ 'tournamentName': value['tournamentName'],
307
315
  'playersPerTeam': value['playersPerTeam'],
308
316
  'matchDateTime': ((value['matchDateTime']).toISOString()),
309
317
  'duration': value['duration'],
@@ -0,0 +1,153 @@
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 { PositionTeam } from './PositionTeam';
17
+ import {
18
+ PositionTeamFromJSON,
19
+ PositionTeamFromJSONTyped,
20
+ PositionTeamToJSON,
21
+ PositionTeamToJSONTyped,
22
+ } from './PositionTeam';
23
+ import type { PositionStatus } from './PositionStatus';
24
+ import {
25
+ PositionStatusFromJSON,
26
+ PositionStatusFromJSONTyped,
27
+ PositionStatusToJSON,
28
+ PositionStatusToJSONTyped,
29
+ } from './PositionStatus';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PlaySearchPosition
35
+ */
36
+ export interface PlaySearchPosition {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof PlaySearchPosition
41
+ */
42
+ id: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof PlaySearchPosition
47
+ */
48
+ playSearchId: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof PlaySearchPosition
53
+ */
54
+ playerId: string;
55
+ /**
56
+ *
57
+ * @type {PositionTeam}
58
+ * @memberof PlaySearchPosition
59
+ */
60
+ team: PositionTeam;
61
+ /**
62
+ * Position type (GK, DEF, MID, FWD, etc.)
63
+ * @type {string}
64
+ * @memberof PlaySearchPosition
65
+ */
66
+ positionType: string;
67
+ /**
68
+ * Field slot number (1=GK in soccer, etc.)
69
+ * @type {number}
70
+ * @memberof PlaySearchPosition
71
+ */
72
+ positionNumber: number;
73
+ /**
74
+ *
75
+ * @type {PositionStatus}
76
+ * @memberof PlaySearchPosition
77
+ */
78
+ status: PositionStatus;
79
+ /**
80
+ * Required for SUPLENTE, null for TITULAR
81
+ * @type {number}
82
+ * @memberof PlaySearchPosition
83
+ */
84
+ benchOrder?: number | null;
85
+ /**
86
+ *
87
+ * @type {Date}
88
+ * @memberof PlaySearchPosition
89
+ */
90
+ createdAt?: Date;
91
+ }
92
+
93
+
94
+
95
+ /**
96
+ * Check if a given object implements the PlaySearchPosition interface.
97
+ */
98
+ export function instanceOfPlaySearchPosition(value: object): value is PlaySearchPosition {
99
+ if (!('id' in value) || value['id'] === undefined) return false;
100
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
101
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
102
+ if (!('team' in value) || value['team'] === undefined) return false;
103
+ if (!('positionType' in value) || value['positionType'] === undefined) return false;
104
+ if (!('positionNumber' in value) || value['positionNumber'] === undefined) return false;
105
+ if (!('status' in value) || value['status'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function PlaySearchPositionFromJSON(json: any): PlaySearchPosition {
110
+ return PlaySearchPositionFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function PlaySearchPositionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchPosition {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'id': json['id'],
120
+ 'playSearchId': json['playSearchId'],
121
+ 'playerId': json['playerId'],
122
+ 'team': PositionTeamFromJSON(json['team']),
123
+ 'positionType': json['positionType'],
124
+ 'positionNumber': json['positionNumber'],
125
+ 'status': PositionStatusFromJSON(json['status']),
126
+ 'benchOrder': json['benchOrder'] == null ? undefined : json['benchOrder'],
127
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
128
+ };
129
+ }
130
+
131
+ export function PlaySearchPositionToJSON(json: any): PlaySearchPosition {
132
+ return PlaySearchPositionToJSONTyped(json, false);
133
+ }
134
+
135
+ export function PlaySearchPositionToJSONTyped(value?: PlaySearchPosition | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'id': value['id'],
143
+ 'playSearchId': value['playSearchId'],
144
+ 'playerId': value['playerId'],
145
+ 'team': PositionTeamToJSON(value['team']),
146
+ 'positionType': value['positionType'],
147
+ 'positionNumber': value['positionNumber'],
148
+ 'status': PositionStatusToJSON(value['status']),
149
+ 'benchOrder': value['benchOrder'],
150
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
151
+ };
152
+ }
153
+
@@ -0,0 +1,111 @@
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 PlayerRatingResponse
20
+ */
21
+ export interface PlayerRatingResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PlayerRatingResponse
26
+ */
27
+ playerId: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof PlayerRatingResponse
32
+ */
33
+ averageRating: number;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PlayerRatingResponse
38
+ */
39
+ totalRatings: number;
40
+ /**
41
+ *
42
+ * @type {Array<string>}
43
+ * @memberof PlayerRatingResponse
44
+ */
45
+ messages: Array<string>;
46
+ /**
47
+ * Map of emoji to count
48
+ * @type {{ [key: string]: number; }}
49
+ * @memberof PlayerRatingResponse
50
+ */
51
+ reactions: { [key: string]: number; };
52
+ /**
53
+ * Map of rating (1-10) to count
54
+ * @type {{ [key: string]: number; }}
55
+ * @memberof PlayerRatingResponse
56
+ */
57
+ ratingDistribution: { [key: string]: number; };
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the PlayerRatingResponse interface.
62
+ */
63
+ export function instanceOfPlayerRatingResponse(value: object): value is PlayerRatingResponse {
64
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
65
+ if (!('averageRating' in value) || value['averageRating'] === undefined) return false;
66
+ if (!('totalRatings' in value) || value['totalRatings'] === undefined) return false;
67
+ if (!('messages' in value) || value['messages'] === undefined) return false;
68
+ if (!('reactions' in value) || value['reactions'] === undefined) return false;
69
+ if (!('ratingDistribution' in value) || value['ratingDistribution'] === undefined) return false;
70
+ return true;
71
+ }
72
+
73
+ export function PlayerRatingResponseFromJSON(json: any): PlayerRatingResponse {
74
+ return PlayerRatingResponseFromJSONTyped(json, false);
75
+ }
76
+
77
+ export function PlayerRatingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayerRatingResponse {
78
+ if (json == null) {
79
+ return json;
80
+ }
81
+ return {
82
+
83
+ 'playerId': json['playerId'],
84
+ 'averageRating': json['averageRating'],
85
+ 'totalRatings': json['totalRatings'],
86
+ 'messages': json['messages'],
87
+ 'reactions': json['reactions'],
88
+ 'ratingDistribution': json['ratingDistribution'],
89
+ };
90
+ }
91
+
92
+ export function PlayerRatingResponseToJSON(json: any): PlayerRatingResponse {
93
+ return PlayerRatingResponseToJSONTyped(json, false);
94
+ }
95
+
96
+ export function PlayerRatingResponseToJSONTyped(value?: PlayerRatingResponse | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'playerId': value['playerId'],
104
+ 'averageRating': value['averageRating'],
105
+ 'totalRatings': value['totalRatings'],
106
+ 'messages': value['messages'],
107
+ 'reactions': value['reactions'],
108
+ 'ratingDistribution': value['ratingDistribution'],
109
+ };
110
+ }
111
+