@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.
- package/apis/PositionsApi.ts +235 -0
- package/apis/RecurringGamesApi.ts +279 -0
- package/apis/SportEventsApi.ts +133 -0
- package/apis/TeamFeedApi.ts +386 -0
- package/apis/TeamsApi.ts +578 -0
- package/apis/VotingApi.ts +404 -0
- package/apis/index.ts +6 -0
- package/models/ApiAppTeamsTeamIdEventsGet200Response.ts +73 -0
- package/models/ApiAppTeamsTeamIdEventsGet200ResponseEventsInner.ts +97 -0
- package/models/ApiAppTeamsTeamIdEventsPostRequest.ts +139 -0
- package/models/ApiAppTeamsTeamIdFeedFeedItemIdPatchRequest.ts +81 -0
- package/models/ApiAppTeamsTeamIdFeedFeedItemIdReactionsPatchRequest.ts +66 -0
- package/models/ApiAppTeamsTeamIdFeedSummaryGet200Response.ts +81 -0
- package/models/ApiAppVotingHasVotedPlaySearchIdGet200Response.ts +65 -0
- package/models/AssignPositionsRequest.ts +92 -0
- package/models/AssignPositionsRequestPositionsInner.ts +130 -0
- package/models/AutoAssignPositionsRequest.ts +93 -0
- package/models/CreatePlaySearchRequest.ts +8 -0
- package/models/CreateRecurringGameRequest.ts +130 -0
- package/models/CreateTeamFeedRequest.ts +82 -0
- package/models/CreateTeamRequest.ts +134 -0
- package/models/FeedMediaType.ts +56 -0
- package/models/GroupedPositionsResponse.ts +83 -0
- package/models/GroupedPositionsResponseHome.ts +83 -0
- package/models/JoinTeamRequest.ts +66 -0
- package/models/MatchVote.ts +134 -0
- package/models/NotificationChannelType.ts +3 -1
- package/models/PlaySearch.ts +8 -0
- package/models/PlaySearchDTO.ts +8 -0
- package/models/PlaySearchDetailDTO.ts +8 -0
- package/models/PlaySearchPosition.ts +153 -0
- package/models/PlayerRatingResponse.ts +111 -0
- package/models/PositionResponse.ts +157 -0
- package/models/PositionStatus.ts +53 -0
- package/models/PositionTeam.ts +53 -0
- package/models/RecurringGame.ts +164 -0
- package/models/RecurringGameResponse.ts +155 -0
- package/models/SportEventData.ts +113 -0
- package/models/SportEventType.ts +77 -0
- package/models/SubmitRatingsRequest.ts +92 -0
- package/models/SubmitRatingsRequestRatingsInner.ts +99 -0
- package/models/Team.ts +186 -0
- package/models/TeamFeedItem.ts +188 -0
- package/models/TeamFeedItemResponse.ts +168 -0
- package/models/TeamFeedListResponse.ts +89 -0
- package/models/TeamFeedMedia.ts +101 -0
- package/models/TeamMember.ts +121 -0
- package/models/TeamMemberResponse.ts +123 -0
- package/models/TeamMemberRole.ts +54 -0
- package/models/TeamResponse.ts +194 -0
- package/models/TeamType.ts +53 -0
- package/models/UpdateMemberRoleRequest.ts +76 -0
- package/models/UpdateRecurringGameRequest.ts +124 -0
- package/models/UpdateTeamRequest.ts +105 -0
- package/models/VotingStatsResponse.ts +93 -0
- package/models/VotingStatusResponse.ts +82 -0
- package/models/index.ts +44 -0
- package/package.json +1 -1
|
@@ -0,0 +1,157 @@
|
|
|
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 PositionResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PositionResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PositionResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PositionResponse
|
|
32
|
+
*/
|
|
33
|
+
playSearchId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PositionResponse
|
|
38
|
+
*/
|
|
39
|
+
playerId: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PositionResponse
|
|
44
|
+
*/
|
|
45
|
+
team: PositionResponseTeamEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PositionResponse
|
|
50
|
+
*/
|
|
51
|
+
positionType: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof PositionResponse
|
|
56
|
+
*/
|
|
57
|
+
positionNumber: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof PositionResponse
|
|
62
|
+
*/
|
|
63
|
+
status: PositionResponseStatusEnum;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof PositionResponse
|
|
68
|
+
*/
|
|
69
|
+
benchOrder?: number | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Date}
|
|
73
|
+
* @memberof PositionResponse
|
|
74
|
+
*/
|
|
75
|
+
createdAt: Date;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const PositionResponseTeamEnum = {
|
|
83
|
+
H: 'H',
|
|
84
|
+
A: 'A'
|
|
85
|
+
} as const;
|
|
86
|
+
export type PositionResponseTeamEnum = typeof PositionResponseTeamEnum[keyof typeof PositionResponseTeamEnum];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const PositionResponseStatusEnum = {
|
|
92
|
+
Titular: 'TITULAR',
|
|
93
|
+
Suplente: 'SUPLENTE'
|
|
94
|
+
} as const;
|
|
95
|
+
export type PositionResponseStatusEnum = typeof PositionResponseStatusEnum[keyof typeof PositionResponseStatusEnum];
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the PositionResponse interface.
|
|
100
|
+
*/
|
|
101
|
+
export function instanceOfPositionResponse(value: object): value is PositionResponse {
|
|
102
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
103
|
+
if (!('playSearchId' in value) || value['playSearchId'] === undefined) return false;
|
|
104
|
+
if (!('playerId' in value) || value['playerId'] === undefined) return false;
|
|
105
|
+
if (!('team' in value) || value['team'] === undefined) return false;
|
|
106
|
+
if (!('positionType' in value) || value['positionType'] === undefined) return false;
|
|
107
|
+
if (!('positionNumber' in value) || value['positionNumber'] === undefined) return false;
|
|
108
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
109
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
110
|
+
return true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function PositionResponseFromJSON(json: any): PositionResponse {
|
|
114
|
+
return PositionResponseFromJSONTyped(json, false);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function PositionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionResponse {
|
|
118
|
+
if (json == null) {
|
|
119
|
+
return json;
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
|
|
123
|
+
'id': json['id'],
|
|
124
|
+
'playSearchId': json['playSearchId'],
|
|
125
|
+
'playerId': json['playerId'],
|
|
126
|
+
'team': json['team'],
|
|
127
|
+
'positionType': json['positionType'],
|
|
128
|
+
'positionNumber': json['positionNumber'],
|
|
129
|
+
'status': json['status'],
|
|
130
|
+
'benchOrder': json['benchOrder'] == null ? undefined : json['benchOrder'],
|
|
131
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function PositionResponseToJSON(json: any): PositionResponse {
|
|
136
|
+
return PositionResponseToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function PositionResponseToJSONTyped(value?: PositionResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'id': value['id'],
|
|
147
|
+
'playSearchId': value['playSearchId'],
|
|
148
|
+
'playerId': value['playerId'],
|
|
149
|
+
'team': value['team'],
|
|
150
|
+
'positionType': value['positionType'],
|
|
151
|
+
'positionNumber': value['positionNumber'],
|
|
152
|
+
'status': value['status'],
|
|
153
|
+
'benchOrder': value['benchOrder'],
|
|
154
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Player status (TITULAR=Starting lineup, SUPLENTE=Bench/substitute)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PositionStatus = {
|
|
21
|
+
Titular: 'TITULAR',
|
|
22
|
+
Suplente: 'SUPLENTE'
|
|
23
|
+
} as const;
|
|
24
|
+
export type PositionStatus = typeof PositionStatus[keyof typeof PositionStatus];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfPositionStatus(value: any): boolean {
|
|
28
|
+
for (const key in PositionStatus) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PositionStatus, key)) {
|
|
30
|
+
if (PositionStatus[key as keyof typeof PositionStatus] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PositionStatusFromJSON(json: any): PositionStatus {
|
|
39
|
+
return PositionStatusFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PositionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionStatus {
|
|
43
|
+
return json as PositionStatus;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PositionStatusToJSON(value?: PositionStatus | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PositionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PositionStatus {
|
|
51
|
+
return value as PositionStatus;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Team designation (H=Home/Local, A=Away/Visitante)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PositionTeam = {
|
|
21
|
+
H: 'H',
|
|
22
|
+
A: 'A'
|
|
23
|
+
} as const;
|
|
24
|
+
export type PositionTeam = typeof PositionTeam[keyof typeof PositionTeam];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfPositionTeam(value: any): boolean {
|
|
28
|
+
for (const key in PositionTeam) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PositionTeam, key)) {
|
|
30
|
+
if (PositionTeam[key as keyof typeof PositionTeam] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PositionTeamFromJSON(json: any): PositionTeam {
|
|
39
|
+
return PositionTeamFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PositionTeamFromJSONTyped(json: any, ignoreDiscriminator: boolean): PositionTeam {
|
|
43
|
+
return json as PositionTeam;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function PositionTeamToJSON(value?: PositionTeam | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function PositionTeamToJSONTyped(value: any, ignoreDiscriminator: boolean): PositionTeam {
|
|
51
|
+
return value as PositionTeam;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
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 RecurringGame
|
|
20
|
+
*/
|
|
21
|
+
export interface RecurringGame {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RecurringGame
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RecurringGame
|
|
32
|
+
*/
|
|
33
|
+
teamId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Day of week (0=Sunday, 1=Monday, ..., 6=Saturday)
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof RecurringGame
|
|
38
|
+
*/
|
|
39
|
+
weekday: number;
|
|
40
|
+
/**
|
|
41
|
+
* Match time in HH:MM format (24-hour)
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RecurringGame
|
|
44
|
+
*/
|
|
45
|
+
time: string;
|
|
46
|
+
/**
|
|
47
|
+
* Match duration (MUST be exactly 60 or 120 minutes)
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof RecurringGame
|
|
50
|
+
*/
|
|
51
|
+
duration: RecurringGameDurationEnum;
|
|
52
|
+
/**
|
|
53
|
+
* REQUIRED - physical location where match is played
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RecurringGame
|
|
56
|
+
*/
|
|
57
|
+
clubPlaceId: string;
|
|
58
|
+
/**
|
|
59
|
+
* Optional price, copied to PlaySearch.price when match is created
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof RecurringGame
|
|
62
|
+
*/
|
|
63
|
+
precio?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
* How many days before match to create PlaySearch
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof RecurringGame
|
|
68
|
+
*/
|
|
69
|
+
daysBeforeMatch: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof RecurringGame
|
|
74
|
+
*/
|
|
75
|
+
isActive: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof RecurringGame
|
|
80
|
+
*/
|
|
81
|
+
createdAt?: Date;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof RecurringGame
|
|
86
|
+
*/
|
|
87
|
+
updatedAt?: Date;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const RecurringGameDurationEnum = {
|
|
95
|
+
NUMBER_60: 60,
|
|
96
|
+
NUMBER_120: 120
|
|
97
|
+
} as const;
|
|
98
|
+
export type RecurringGameDurationEnum = typeof RecurringGameDurationEnum[keyof typeof RecurringGameDurationEnum];
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Check if a given object implements the RecurringGame interface.
|
|
103
|
+
*/
|
|
104
|
+
export function instanceOfRecurringGame(value: object): value is RecurringGame {
|
|
105
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
106
|
+
if (!('teamId' in value) || value['teamId'] === undefined) return false;
|
|
107
|
+
if (!('weekday' in value) || value['weekday'] === undefined) return false;
|
|
108
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
109
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
110
|
+
if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
|
|
111
|
+
if (!('daysBeforeMatch' in value) || value['daysBeforeMatch'] === undefined) return false;
|
|
112
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function RecurringGameFromJSON(json: any): RecurringGame {
|
|
117
|
+
return RecurringGameFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function RecurringGameFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurringGame {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': json['id'],
|
|
127
|
+
'teamId': json['teamId'],
|
|
128
|
+
'weekday': json['weekday'],
|
|
129
|
+
'time': json['time'],
|
|
130
|
+
'duration': json['duration'],
|
|
131
|
+
'clubPlaceId': json['clubPlaceId'],
|
|
132
|
+
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
133
|
+
'daysBeforeMatch': json['daysBeforeMatch'],
|
|
134
|
+
'isActive': json['isActive'],
|
|
135
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
136
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function RecurringGameToJSON(json: any): RecurringGame {
|
|
141
|
+
return RecurringGameToJSONTyped(json, false);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function RecurringGameToJSONTyped(value?: RecurringGame | null, ignoreDiscriminator: boolean = false): any {
|
|
145
|
+
if (value == null) {
|
|
146
|
+
return value;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
return {
|
|
150
|
+
|
|
151
|
+
'id': value['id'],
|
|
152
|
+
'teamId': value['teamId'],
|
|
153
|
+
'weekday': value['weekday'],
|
|
154
|
+
'time': value['time'],
|
|
155
|
+
'duration': value['duration'],
|
|
156
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
157
|
+
'precio': value['precio'],
|
|
158
|
+
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
159
|
+
'isActive': value['isActive'],
|
|
160
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
161
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -0,0 +1,155 @@
|
|
|
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 RecurringGameResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface RecurringGameResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RecurringGameResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RecurringGameResponse
|
|
32
|
+
*/
|
|
33
|
+
teamId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof RecurringGameResponse
|
|
38
|
+
*/
|
|
39
|
+
weekday: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof RecurringGameResponse
|
|
44
|
+
*/
|
|
45
|
+
time: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof RecurringGameResponse
|
|
50
|
+
*/
|
|
51
|
+
duration: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof RecurringGameResponse
|
|
56
|
+
*/
|
|
57
|
+
clubPlaceId: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof RecurringGameResponse
|
|
62
|
+
*/
|
|
63
|
+
precio?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof RecurringGameResponse
|
|
68
|
+
*/
|
|
69
|
+
daysBeforeMatch: number;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof RecurringGameResponse
|
|
74
|
+
*/
|
|
75
|
+
isActive: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Date}
|
|
79
|
+
* @memberof RecurringGameResponse
|
|
80
|
+
*/
|
|
81
|
+
createdAt: Date;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof RecurringGameResponse
|
|
86
|
+
*/
|
|
87
|
+
updatedAt: Date;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Check if a given object implements the RecurringGameResponse interface.
|
|
92
|
+
*/
|
|
93
|
+
export function instanceOfRecurringGameResponse(value: object): value is RecurringGameResponse {
|
|
94
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
95
|
+
if (!('teamId' in value) || value['teamId'] === undefined) return false;
|
|
96
|
+
if (!('weekday' in value) || value['weekday'] === undefined) return false;
|
|
97
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
98
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
99
|
+
if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
|
|
100
|
+
if (!('daysBeforeMatch' in value) || value['daysBeforeMatch'] === undefined) return false;
|
|
101
|
+
if (!('isActive' in value) || value['isActive'] === undefined) return false;
|
|
102
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
103
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
104
|
+
return true;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function RecurringGameResponseFromJSON(json: any): RecurringGameResponse {
|
|
108
|
+
return RecurringGameResponseFromJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function RecurringGameResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecurringGameResponse {
|
|
112
|
+
if (json == null) {
|
|
113
|
+
return json;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'id': json['id'],
|
|
118
|
+
'teamId': json['teamId'],
|
|
119
|
+
'weekday': json['weekday'],
|
|
120
|
+
'time': json['time'],
|
|
121
|
+
'duration': json['duration'],
|
|
122
|
+
'clubPlaceId': json['clubPlaceId'],
|
|
123
|
+
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
124
|
+
'daysBeforeMatch': json['daysBeforeMatch'],
|
|
125
|
+
'isActive': json['isActive'],
|
|
126
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
127
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function RecurringGameResponseToJSON(json: any): RecurringGameResponse {
|
|
132
|
+
return RecurringGameResponseToJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function RecurringGameResponseToJSONTyped(value?: RecurringGameResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
136
|
+
if (value == null) {
|
|
137
|
+
return value;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
return {
|
|
141
|
+
|
|
142
|
+
'id': value['id'],
|
|
143
|
+
'teamId': value['teamId'],
|
|
144
|
+
'weekday': value['weekday'],
|
|
145
|
+
'time': value['time'],
|
|
146
|
+
'duration': value['duration'],
|
|
147
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
148
|
+
'precio': value['precio'],
|
|
149
|
+
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
150
|
+
'isActive': value['isActive'],
|
|
151
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
152
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
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
|
+
* Additional data for sport events
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SportEventData
|
|
20
|
+
*/
|
|
21
|
+
export interface SportEventData {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SportEventData
|
|
26
|
+
*/
|
|
27
|
+
playerId?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SportEventData
|
|
32
|
+
*/
|
|
33
|
+
playerName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof SportEventData
|
|
38
|
+
*/
|
|
39
|
+
minute?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SportEventData
|
|
44
|
+
*/
|
|
45
|
+
team?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SportEventData
|
|
50
|
+
*/
|
|
51
|
+
score?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SportEventData
|
|
56
|
+
*/
|
|
57
|
+
assistPlayerId?: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof SportEventData
|
|
62
|
+
*/
|
|
63
|
+
assistPlayerName?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the SportEventData interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfSportEventData(value: object): value is SportEventData {
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function SportEventDataFromJSON(json: any): SportEventData {
|
|
74
|
+
return SportEventDataFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function SportEventDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): SportEventData {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'playerId': json['playerId'] == null ? undefined : json['playerId'],
|
|
84
|
+
'playerName': json['playerName'] == null ? undefined : json['playerName'],
|
|
85
|
+
'minute': json['minute'] == null ? undefined : json['minute'],
|
|
86
|
+
'team': json['team'] == null ? undefined : json['team'],
|
|
87
|
+
'score': json['score'] == null ? undefined : json['score'],
|
|
88
|
+
'assistPlayerId': json['assistPlayerId'] == null ? undefined : json['assistPlayerId'],
|
|
89
|
+
'assistPlayerName': json['assistPlayerName'] == null ? undefined : json['assistPlayerName'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function SportEventDataToJSON(json: any): SportEventData {
|
|
94
|
+
return SportEventDataToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function SportEventDataToJSONTyped(value?: SportEventData | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'playerId': value['playerId'],
|
|
105
|
+
'playerName': value['playerName'],
|
|
106
|
+
'minute': value['minute'],
|
|
107
|
+
'team': value['team'],
|
|
108
|
+
'score': value['score'],
|
|
109
|
+
'assistPlayerId': value['assistPlayerId'],
|
|
110
|
+
'assistPlayerName': value['assistPlayerName'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|