@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,93 @@
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 AutoAssignPositionsRequest
20
+ */
21
+ export interface AutoAssignPositionsRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AutoAssignPositionsRequest
26
+ */
27
+ playSearchId: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof AutoAssignPositionsRequest
32
+ */
33
+ teamId: string;
34
+ /**
35
+ * e.g., futbol, futbol5, padel, tenis
36
+ * @type {string}
37
+ * @memberof AutoAssignPositionsRequest
38
+ */
39
+ sport: string;
40
+ /**
41
+ * Array of player user IDs
42
+ * @type {Array<string>}
43
+ * @memberof AutoAssignPositionsRequest
44
+ */
45
+ registeredPlayers: Array<string>;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the AutoAssignPositionsRequest interface.
50
+ */
51
+ export function instanceOfAutoAssignPositionsRequest(value: object): value is AutoAssignPositionsRequest {
52
+ if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
53
+ if (!('teamId' in value) || value['teamId'] === undefined) return false;
54
+ if (!('sport' in value) || value['sport'] === undefined) return false;
55
+ if (!('registeredPlayers' in value) || value['registeredPlayers'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function AutoAssignPositionsRequestFromJSON(json: any): AutoAssignPositionsRequest {
60
+ return AutoAssignPositionsRequestFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function AutoAssignPositionsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoAssignPositionsRequest {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'playSearchId': json['playSearchId'],
70
+ 'teamId': json['teamId'],
71
+ 'sport': json['sport'],
72
+ 'registeredPlayers': json['registeredPlayers'],
73
+ };
74
+ }
75
+
76
+ export function AutoAssignPositionsRequestToJSON(json: any): AutoAssignPositionsRequest {
77
+ return AutoAssignPositionsRequestToJSONTyped(json, false);
78
+ }
79
+
80
+ export function AutoAssignPositionsRequestToJSONTyped(value?: AutoAssignPositionsRequest | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'playSearchId': value['playSearchId'],
88
+ 'teamId': value['teamId'],
89
+ 'sport': value['sport'],
90
+ 'registeredPlayers': value['registeredPlayers'],
91
+ };
92
+ }
93
+
@@ -53,6 +53,12 @@ export interface CreatePlaySearchRequest {
53
53
  * @memberof CreatePlaySearchRequest
54
54
  */
55
55
  type?: PlaySearchType;
56
+ /**
57
+ * Optional tournament name (typically for CANCHA_ABIERTA type)
58
+ * @type {string}
59
+ * @memberof CreatePlaySearchRequest
60
+ */
61
+ tournamentName?: string | null;
56
62
  /**
57
63
  * Format of play (optional)
58
64
  * @type {number}
@@ -173,6 +179,7 @@ export function CreatePlaySearchRequestFromJSONTyped(json: any, ignoreDiscrimina
173
179
 
174
180
  'clubPlace': CreateClubPlaceRequestFromJSON(json['clubPlace']),
175
181
  'type': json['type'] == null ? undefined : PlaySearchTypeFromJSON(json['type']),
182
+ 'tournamentName': json['tournamentName'] == null ? undefined : json['tournamentName'],
176
183
  'playersPerTeam': json['playersPerTeam'] == null ? undefined : json['playersPerTeam'],
177
184
  'matchDateTime': (new Date(json['matchDateTime'])),
178
185
  'duration': json['duration'],
@@ -202,6 +209,7 @@ export function CreatePlaySearchRequestToJSONTyped(value?: CreatePlaySearchReque
202
209
 
203
210
  'clubPlace': CreateClubPlaceRequestToJSON(value['clubPlace']),
204
211
  'type': PlaySearchTypeToJSON(value['type']),
212
+ 'tournamentName': value['tournamentName'],
205
213
  'playersPerTeam': value['playersPerTeam'],
206
214
  'matchDateTime': ((value['matchDateTime']).toISOString()),
207
215
  'duration': value['duration'],
@@ -0,0 +1,130 @@
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 CreateRecurringGameRequest
20
+ */
21
+ export interface CreateRecurringGameRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateRecurringGameRequest
26
+ */
27
+ teamId: string;
28
+ /**
29
+ * 0=Sunday, 1=Monday, ..., 6=Saturday
30
+ * @type {number}
31
+ * @memberof CreateRecurringGameRequest
32
+ */
33
+ weekday: number;
34
+ /**
35
+ * HH:MM format (24-hour)
36
+ * @type {string}
37
+ * @memberof CreateRecurringGameRequest
38
+ */
39
+ time: string;
40
+ /**
41
+ * Duration in minutes (60 or 120 only)
42
+ * @type {number}
43
+ * @memberof CreateRecurringGameRequest
44
+ */
45
+ duration: CreateRecurringGameRequestDurationEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CreateRecurringGameRequest
50
+ */
51
+ clubPlaceId: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof CreateRecurringGameRequest
56
+ */
57
+ precio?: number | null;
58
+ /**
59
+ * Days before match to create PlaySearch
60
+ * @type {number}
61
+ * @memberof CreateRecurringGameRequest
62
+ */
63
+ daysBeforeMatch: number;
64
+ }
65
+
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const CreateRecurringGameRequestDurationEnum = {
71
+ NUMBER_60: 60,
72
+ NUMBER_120: 120
73
+ } as const;
74
+ export type CreateRecurringGameRequestDurationEnum = typeof CreateRecurringGameRequestDurationEnum[keyof typeof CreateRecurringGameRequestDurationEnum];
75
+
76
+
77
+ /**
78
+ * Check if a given object implements the CreateRecurringGameRequest interface.
79
+ */
80
+ export function instanceOfCreateRecurringGameRequest(value: object): value is CreateRecurringGameRequest {
81
+ if (!('teamId' in value) || value['teamId'] === undefined) return false;
82
+ if (!('weekday' in value) || value['weekday'] === undefined) return false;
83
+ if (!('time' in value) || value['time'] === undefined) return false;
84
+ if (!('duration' in value) || value['duration'] === undefined) return false;
85
+ if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
86
+ if (!('daysBeforeMatch' in value) || value['daysBeforeMatch'] === undefined) return false;
87
+ return true;
88
+ }
89
+
90
+ export function CreateRecurringGameRequestFromJSON(json: any): CreateRecurringGameRequest {
91
+ return CreateRecurringGameRequestFromJSONTyped(json, false);
92
+ }
93
+
94
+ export function CreateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRecurringGameRequest {
95
+ if (json == null) {
96
+ return json;
97
+ }
98
+ return {
99
+
100
+ 'teamId': json['teamId'],
101
+ 'weekday': json['weekday'],
102
+ 'time': json['time'],
103
+ 'duration': json['duration'],
104
+ 'clubPlaceId': json['clubPlaceId'],
105
+ 'precio': json['precio'] == null ? undefined : json['precio'],
106
+ 'daysBeforeMatch': json['daysBeforeMatch'],
107
+ };
108
+ }
109
+
110
+ export function CreateRecurringGameRequestToJSON(json: any): CreateRecurringGameRequest {
111
+ return CreateRecurringGameRequestToJSONTyped(json, false);
112
+ }
113
+
114
+ export function CreateRecurringGameRequestToJSONTyped(value?: CreateRecurringGameRequest | null, ignoreDiscriminator: boolean = false): any {
115
+ if (value == null) {
116
+ return value;
117
+ }
118
+
119
+ return {
120
+
121
+ 'teamId': value['teamId'],
122
+ 'weekday': value['weekday'],
123
+ 'time': value['time'],
124
+ 'duration': value['duration'],
125
+ 'clubPlaceId': value['clubPlaceId'],
126
+ 'precio': value['precio'],
127
+ 'daysBeforeMatch': value['daysBeforeMatch'],
128
+ };
129
+ }
130
+
@@ -0,0 +1,82 @@
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 { TeamFeedMedia } from './TeamFeedMedia';
17
+ import {
18
+ TeamFeedMediaFromJSON,
19
+ TeamFeedMediaFromJSONTyped,
20
+ TeamFeedMediaToJSON,
21
+ TeamFeedMediaToJSONTyped,
22
+ } from './TeamFeedMedia';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateTeamFeedRequest
28
+ */
29
+ export interface CreateTeamFeedRequest {
30
+ /**
31
+ * Feed post content
32
+ * @type {string}
33
+ * @memberof CreateTeamFeedRequest
34
+ */
35
+ content: string;
36
+ /**
37
+ * Media attachments
38
+ * @type {Array<TeamFeedMedia>}
39
+ * @memberof CreateTeamFeedRequest
40
+ */
41
+ media?: Array<TeamFeedMedia> | null;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the CreateTeamFeedRequest interface.
46
+ */
47
+ export function instanceOfCreateTeamFeedRequest(value: object): value is CreateTeamFeedRequest {
48
+ if (!('content' in value) || value['content'] === undefined) return false;
49
+ return true;
50
+ }
51
+
52
+ export function CreateTeamFeedRequestFromJSON(json: any): CreateTeamFeedRequest {
53
+ return CreateTeamFeedRequestFromJSONTyped(json, false);
54
+ }
55
+
56
+ export function CreateTeamFeedRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTeamFeedRequest {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+
62
+ 'content': json['content'],
63
+ 'media': json['media'] == null ? undefined : ((json['media'] as Array<any>).map(TeamFeedMediaFromJSON)),
64
+ };
65
+ }
66
+
67
+ export function CreateTeamFeedRequestToJSON(json: any): CreateTeamFeedRequest {
68
+ return CreateTeamFeedRequestToJSONTyped(json, false);
69
+ }
70
+
71
+ export function CreateTeamFeedRequestToJSONTyped(value?: CreateTeamFeedRequest | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'content': value['content'],
79
+ 'media': value['media'] == null ? undefined : ((value['media'] as Array<any>).map(TeamFeedMediaToJSON)),
80
+ };
81
+ }
82
+
@@ -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
+ import type { TeamType } from './TeamType';
17
+ import {
18
+ TeamTypeFromJSON,
19
+ TeamTypeFromJSONTyped,
20
+ TeamTypeToJSON,
21
+ TeamTypeToJSONTyped,
22
+ } from './TeamType';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateTeamRequest
28
+ */
29
+ export interface CreateTeamRequest {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateTeamRequest
34
+ */
35
+ name: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateTeamRequest
40
+ */
41
+ sport: string;
42
+ /**
43
+ *
44
+ * @type {TeamType}
45
+ * @memberof CreateTeamRequest
46
+ */
47
+ type: TeamType;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateTeamRequest
52
+ */
53
+ nivel?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CreateTeamRequest
58
+ */
59
+ customerId?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof CreateTeamRequest
64
+ */
65
+ avatarUrl?: string;
66
+ /**
67
+ * Background color (hex code)
68
+ * @type {string}
69
+ * @memberof CreateTeamRequest
70
+ */
71
+ bgColor?: string;
72
+ /**
73
+ * Foreground color (hex code)
74
+ * @type {string}
75
+ * @memberof CreateTeamRequest
76
+ */
77
+ fgColor?: string;
78
+ }
79
+
80
+
81
+
82
+ /**
83
+ * Check if a given object implements the CreateTeamRequest interface.
84
+ */
85
+ export function instanceOfCreateTeamRequest(value: object): value is CreateTeamRequest {
86
+ if (!('name' in value) || value['name'] === undefined) return false;
87
+ if (!('sport' in value) || value['sport'] === undefined) return false;
88
+ if (!('type' in value) || value['type'] === undefined) return false;
89
+ return true;
90
+ }
91
+
92
+ export function CreateTeamRequestFromJSON(json: any): CreateTeamRequest {
93
+ return CreateTeamRequestFromJSONTyped(json, false);
94
+ }
95
+
96
+ export function CreateTeamRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTeamRequest {
97
+ if (json == null) {
98
+ return json;
99
+ }
100
+ return {
101
+
102
+ 'name': json['name'],
103
+ 'sport': json['sport'],
104
+ 'type': TeamTypeFromJSON(json['type']),
105
+ 'nivel': json['nivel'] == null ? undefined : json['nivel'],
106
+ 'customerId': json['customerId'] == null ? undefined : json['customerId'],
107
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
108
+ 'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
109
+ 'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
110
+ };
111
+ }
112
+
113
+ export function CreateTeamRequestToJSON(json: any): CreateTeamRequest {
114
+ return CreateTeamRequestToJSONTyped(json, false);
115
+ }
116
+
117
+ export function CreateTeamRequestToJSONTyped(value?: CreateTeamRequest | null, ignoreDiscriminator: boolean = false): any {
118
+ if (value == null) {
119
+ return value;
120
+ }
121
+
122
+ return {
123
+
124
+ 'name': value['name'],
125
+ 'sport': value['sport'],
126
+ 'type': TeamTypeToJSON(value['type']),
127
+ 'nivel': value['nivel'],
128
+ 'customerId': value['customerId'],
129
+ 'avatarUrl': value['avatarUrl'],
130
+ 'bgColor': value['bgColor'],
131
+ 'fgColor': value['fgColor'],
132
+ };
133
+ }
134
+
@@ -0,0 +1,56 @@
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
+
16
+ /**
17
+ * Type of media attachment
18
+ * @export
19
+ */
20
+ export const FeedMediaType = {
21
+ Image: 'IMAGE',
22
+ Video: 'VIDEO',
23
+ Gif: 'GIF',
24
+ ExternalLink: 'EXTERNAL_LINK',
25
+ CustomEmoji: 'CUSTOM_EMOJI'
26
+ } as const;
27
+ export type FeedMediaType = typeof FeedMediaType[keyof typeof FeedMediaType];
28
+
29
+
30
+ export function instanceOfFeedMediaType(value: any): boolean {
31
+ for (const key in FeedMediaType) {
32
+ if (Object.prototype.hasOwnProperty.call(FeedMediaType, key)) {
33
+ if (FeedMediaType[key as keyof typeof FeedMediaType] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+
41
+ export function FeedMediaTypeFromJSON(json: any): FeedMediaType {
42
+ return FeedMediaTypeFromJSONTyped(json, false);
43
+ }
44
+
45
+ export function FeedMediaTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeedMediaType {
46
+ return json as FeedMediaType;
47
+ }
48
+
49
+ export function FeedMediaTypeToJSON(value?: FeedMediaType | null): any {
50
+ return value as any;
51
+ }
52
+
53
+ export function FeedMediaTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): FeedMediaType {
54
+ return value as FeedMediaType;
55
+ }
56
+
@@ -0,0 +1,83 @@
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 { GroupedPositionsResponseHome } from './GroupedPositionsResponseHome';
17
+ import {
18
+ GroupedPositionsResponseHomeFromJSON,
19
+ GroupedPositionsResponseHomeFromJSONTyped,
20
+ GroupedPositionsResponseHomeToJSON,
21
+ GroupedPositionsResponseHomeToJSONTyped,
22
+ } from './GroupedPositionsResponseHome';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GroupedPositionsResponse
28
+ */
29
+ export interface GroupedPositionsResponse {
30
+ /**
31
+ *
32
+ * @type {GroupedPositionsResponseHome}
33
+ * @memberof GroupedPositionsResponse
34
+ */
35
+ home: GroupedPositionsResponseHome;
36
+ /**
37
+ *
38
+ * @type {GroupedPositionsResponseHome}
39
+ * @memberof GroupedPositionsResponse
40
+ */
41
+ away: GroupedPositionsResponseHome;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the GroupedPositionsResponse interface.
46
+ */
47
+ export function instanceOfGroupedPositionsResponse(value: object): value is GroupedPositionsResponse {
48
+ if (!('home' in value) || value['home'] === undefined) return false;
49
+ if (!('away' in value) || value['away'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function GroupedPositionsResponseFromJSON(json: any): GroupedPositionsResponse {
54
+ return GroupedPositionsResponseFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function GroupedPositionsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupedPositionsResponse {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'home': GroupedPositionsResponseHomeFromJSON(json['home']),
64
+ 'away': GroupedPositionsResponseHomeFromJSON(json['away']),
65
+ };
66
+ }
67
+
68
+ export function GroupedPositionsResponseToJSON(json: any): GroupedPositionsResponse {
69
+ return GroupedPositionsResponseToJSONTyped(json, false);
70
+ }
71
+
72
+ export function GroupedPositionsResponseToJSONTyped(value?: GroupedPositionsResponse | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'home': GroupedPositionsResponseHomeToJSON(value['home']),
80
+ 'away': GroupedPositionsResponseHomeToJSON(value['away']),
81
+ };
82
+ }
83
+
@@ -0,0 +1,83 @@
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 { PositionResponse } from './PositionResponse';
17
+ import {
18
+ PositionResponseFromJSON,
19
+ PositionResponseFromJSONTyped,
20
+ PositionResponseToJSON,
21
+ PositionResponseToJSONTyped,
22
+ } from './PositionResponse';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface GroupedPositionsResponseHome
28
+ */
29
+ export interface GroupedPositionsResponseHome {
30
+ /**
31
+ *
32
+ * @type {Array<PositionResponse>}
33
+ * @memberof GroupedPositionsResponseHome
34
+ */
35
+ titulares: Array<PositionResponse>;
36
+ /**
37
+ *
38
+ * @type {Array<PositionResponse>}
39
+ * @memberof GroupedPositionsResponseHome
40
+ */
41
+ suplentes: Array<PositionResponse>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the GroupedPositionsResponseHome interface.
46
+ */
47
+ export function instanceOfGroupedPositionsResponseHome(value: object): value is GroupedPositionsResponseHome {
48
+ if (!('titulares' in value) || value['titulares'] === undefined) return false;
49
+ if (!('suplentes' in value) || value['suplentes'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function GroupedPositionsResponseHomeFromJSON(json: any): GroupedPositionsResponseHome {
54
+ return GroupedPositionsResponseHomeFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function GroupedPositionsResponseHomeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupedPositionsResponseHome {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'titulares': ((json['titulares'] as Array<any>).map(PositionResponseFromJSON)),
64
+ 'suplentes': ((json['suplentes'] as Array<any>).map(PositionResponseFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function GroupedPositionsResponseHomeToJSON(json: any): GroupedPositionsResponseHome {
69
+ return GroupedPositionsResponseHomeToJSONTyped(json, false);
70
+ }
71
+
72
+ export function GroupedPositionsResponseHomeToJSONTyped(value?: GroupedPositionsResponseHome | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'titulares': ((value['titulares'] as Array<any>).map(PositionResponseToJSON)),
80
+ 'suplentes': ((value['suplentes'] as Array<any>).map(PositionResponseToJSON)),
81
+ };
82
+ }
83
+