@jugarhoy/api 1.1.33 → 1.1.34
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/CoachApi.ts +1199 -42
- package/apis/CoachWorkspaceApi.ts +93 -0
- package/apis/MyActivitiesApi.ts +72 -0
- package/apis/PlayerCoachBookingApi.ts +92 -7
- package/apis/PublicCoachDiscoveryApi.ts +292 -0
- package/apis/SubscriptionsApi.ts +64 -0
- package/apis/index.ts +3 -0
- package/models/AddCoachSubscriptionMemberRequest.ts +97 -0
- package/models/AddShiftWithLocationDto.ts +231 -0
- package/models/AgendaSlotDto.ts +142 -0
- package/models/CoachClassDetailDto.ts +88 -0
- package/models/CoachClassFilters.ts +3 -3
- package/models/CoachClassLocationDto.ts +89 -0
- package/models/CoachLocationRegistrationDto.ts +149 -0
- package/models/CoachPaymentsDto.ts +81 -0
- package/models/CoachProfileDto.ts +104 -0
- package/models/CoachPublicSubscriptionDto.ts +183 -0
- package/models/CoachSearchParams.ts +42 -2
- package/models/CoachShiftInputDto.ts +170 -0
- package/models/CoachShiftRegistrationDto.ts +176 -0
- package/models/CoachTeamPlayerDto.ts +97 -0
- package/models/CoachTrainingTeamDto.ts +121 -0
- package/models/CoachWorkspaceLocationDto.ts +137 -0
- package/models/CoachWorkspaceProfileDto.ts +225 -0
- package/models/CoachWorkspaceShiftDto.ts +201 -0
- package/models/CreatePreReservationDto.ts +110 -0
- package/models/CreateRecurringGameRequest.ts +27 -0
- package/models/DayAgendaDto.ts +89 -0
- package/models/GenerateCoachSubscriptionBillsRequest.ts +74 -0
- package/models/GetCoachMercadoPagoAuthUrl200Response.ts +65 -0
- package/models/GetCoachSubscriptionMemberDebt200ResponseInner.ts +81 -0
- package/models/LinkCoachMercadoPagoRequest.ts +66 -0
- package/models/LinkPreview.ts +97 -0
- package/models/LinkShiftToTeamRequest.ts +65 -0
- package/models/MarkCoachSubscriptionBillPaid200Response.ts +65 -0
- package/models/PlaySubscription.ts +8 -0
- package/models/PublicAgendaSlotDto.ts +102 -0
- package/models/PublicDayAgendaDto.ts +92 -0
- package/models/PublicWeeklyAgendaDto.ts +83 -0
- package/models/RecurringGame.ts +27 -0
- package/models/RecurringGameResponse.ts +29 -0
- package/models/RegisterCoachProfileDto.ts +213 -0
- package/models/RegisterCoachProfileResponseDto.ts +89 -0
- package/models/ReserveStatus.ts +1 -0
- package/models/SubscriptionRequestResponseDto.ts +96 -0
- package/models/TeamResponse.ts +16 -0
- package/models/TrainingSubscriptionDto.ts +167 -0
- package/models/UpcomingActivityDto.ts +217 -0
- package/models/UpdateCoachProfileDto.ts +161 -0
- package/models/UpdateRecurringGameRequest.ts +27 -0
- package/models/UserDto.ts +31 -0
- package/models/UserReserveDto.ts +41 -0
- package/models/WeeklyAgendaDto.ts +81 -0
- package/models/index.ts +34 -0
- package/package.json +1 -1
package/models/TeamResponse.ts
CHANGED
|
@@ -148,6 +148,18 @@ export interface TeamResponse {
|
|
|
148
148
|
* @memberof TeamResponse
|
|
149
149
|
*/
|
|
150
150
|
userRole?: TeamMemberRole;
|
|
151
|
+
/**
|
|
152
|
+
* Coach display name for TRAINING_GROUP teams
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof TeamResponse
|
|
155
|
+
*/
|
|
156
|
+
coachName?: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* Coach avatar URL for TRAINING_GROUP teams
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @memberof TeamResponse
|
|
161
|
+
*/
|
|
162
|
+
coachAvatarUrl?: string | null;
|
|
151
163
|
}
|
|
152
164
|
|
|
153
165
|
|
|
@@ -188,6 +200,8 @@ export function TeamResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
188
200
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
189
201
|
'memberCount': json['memberCount'] == null ? undefined : json['memberCount'],
|
|
190
202
|
'userRole': json['userRole'] == null ? undefined : TeamMemberRoleFromJSON(json['userRole']),
|
|
203
|
+
'coachName': json['coachName'] == null ? undefined : json['coachName'],
|
|
204
|
+
'coachAvatarUrl': json['coachAvatarUrl'] == null ? undefined : json['coachAvatarUrl'],
|
|
191
205
|
};
|
|
192
206
|
}
|
|
193
207
|
|
|
@@ -221,6 +235,8 @@ export function TeamResponseToJSONTyped(value?: TeamResponse | null, ignoreDiscr
|
|
|
221
235
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
222
236
|
'memberCount': value['memberCount'],
|
|
223
237
|
'userRole': TeamMemberRoleToJSON(value['userRole']),
|
|
238
|
+
'coachName': value['coachName'],
|
|
239
|
+
'coachAvatarUrl': value['coachAvatarUrl'],
|
|
224
240
|
};
|
|
225
241
|
}
|
|
226
242
|
|
|
@@ -0,0 +1,167 @@
|
|
|
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 TrainingSubscriptionDto
|
|
20
|
+
*/
|
|
21
|
+
export interface TrainingSubscriptionDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TrainingSubscriptionDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Club code used for cancellation (same as Club page)
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TrainingSubscriptionDto
|
|
32
|
+
*/
|
|
33
|
+
clubCode: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TrainingSubscriptionDto
|
|
38
|
+
*/
|
|
39
|
+
name?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TrainingSubscriptionDto
|
|
44
|
+
*/
|
|
45
|
+
coachName: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TrainingSubscriptionDto
|
|
50
|
+
*/
|
|
51
|
+
coachAvatarUrl?: string | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof TrainingSubscriptionDto
|
|
56
|
+
*/
|
|
57
|
+
sport?: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof TrainingSubscriptionDto
|
|
62
|
+
*/
|
|
63
|
+
days: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof TrainingSubscriptionDto
|
|
68
|
+
*/
|
|
69
|
+
time: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof TrainingSubscriptionDto
|
|
74
|
+
*/
|
|
75
|
+
locationName?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof TrainingSubscriptionDto
|
|
80
|
+
*/
|
|
81
|
+
billingFrequency?: string | null;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {number}
|
|
85
|
+
* @memberof TrainingSubscriptionDto
|
|
86
|
+
*/
|
|
87
|
+
price?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof TrainingSubscriptionDto
|
|
92
|
+
*/
|
|
93
|
+
status: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof TrainingSubscriptionDto
|
|
98
|
+
*/
|
|
99
|
+
cancellationRequested?: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the TrainingSubscriptionDto interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfTrainingSubscriptionDto(value: object): value is TrainingSubscriptionDto {
|
|
106
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
107
|
+
if (!('clubCode' in value) || value['clubCode'] === undefined) return false;
|
|
108
|
+
if (!('coachName' in value) || value['coachName'] === undefined) return false;
|
|
109
|
+
if (!('days' in value) || value['days'] === undefined) return false;
|
|
110
|
+
if (!('time' in value) || value['time'] === undefined) return false;
|
|
111
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function TrainingSubscriptionDtoFromJSON(json: any): TrainingSubscriptionDto {
|
|
116
|
+
return TrainingSubscriptionDtoFromJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function TrainingSubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainingSubscriptionDto {
|
|
120
|
+
if (json == null) {
|
|
121
|
+
return json;
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
|
|
125
|
+
'id': json['id'],
|
|
126
|
+
'clubCode': json['clubCode'],
|
|
127
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
128
|
+
'coachName': json['coachName'],
|
|
129
|
+
'coachAvatarUrl': json['coachAvatarUrl'] == null ? undefined : json['coachAvatarUrl'],
|
|
130
|
+
'sport': json['sport'] == null ? undefined : json['sport'],
|
|
131
|
+
'days': json['days'],
|
|
132
|
+
'time': json['time'],
|
|
133
|
+
'locationName': json['locationName'] == null ? undefined : json['locationName'],
|
|
134
|
+
'billingFrequency': json['billingFrequency'] == null ? undefined : json['billingFrequency'],
|
|
135
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
136
|
+
'status': json['status'],
|
|
137
|
+
'cancellationRequested': json['cancellationRequested'] == null ? undefined : json['cancellationRequested'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export function TrainingSubscriptionDtoToJSON(json: any): TrainingSubscriptionDto {
|
|
142
|
+
return TrainingSubscriptionDtoToJSONTyped(json, false);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function TrainingSubscriptionDtoToJSONTyped(value?: TrainingSubscriptionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
146
|
+
if (value == null) {
|
|
147
|
+
return value;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return {
|
|
151
|
+
|
|
152
|
+
'id': value['id'],
|
|
153
|
+
'clubCode': value['clubCode'],
|
|
154
|
+
'name': value['name'],
|
|
155
|
+
'coachName': value['coachName'],
|
|
156
|
+
'coachAvatarUrl': value['coachAvatarUrl'],
|
|
157
|
+
'sport': value['sport'],
|
|
158
|
+
'days': value['days'],
|
|
159
|
+
'time': value['time'],
|
|
160
|
+
'locationName': value['locationName'],
|
|
161
|
+
'billingFrequency': value['billingFrequency'],
|
|
162
|
+
'price': value['price'],
|
|
163
|
+
'status': value['status'],
|
|
164
|
+
'cancellationRequested': value['cancellationRequested'],
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
@@ -0,0 +1,217 @@
|
|
|
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 UpcomingActivityDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UpcomingActivityDto {
|
|
22
|
+
/**
|
|
23
|
+
* The unique identifier of the activity
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpcomingActivityDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* The source type of this activity
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpcomingActivityDto
|
|
32
|
+
*/
|
|
33
|
+
source: UpcomingActivityDtoSourceEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Start date and time of the activity
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof UpcomingActivityDto
|
|
38
|
+
*/
|
|
39
|
+
dateTime: Date;
|
|
40
|
+
/**
|
|
41
|
+
* End date and time (reserves only)
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof UpcomingActivityDto
|
|
44
|
+
*/
|
|
45
|
+
endDateTime?: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
* Duration in minutes
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof UpcomingActivityDto
|
|
50
|
+
*/
|
|
51
|
+
duration?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* Main display title (play spot name, club place name, etc.)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UpcomingActivityDto
|
|
56
|
+
*/
|
|
57
|
+
title: string;
|
|
58
|
+
/**
|
|
59
|
+
* Secondary text (club name, tournament name, etc.)
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof UpcomingActivityDto
|
|
62
|
+
*/
|
|
63
|
+
subtitle: string;
|
|
64
|
+
/**
|
|
65
|
+
* Location name
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof UpcomingActivityDto
|
|
68
|
+
*/
|
|
69
|
+
location: string;
|
|
70
|
+
/**
|
|
71
|
+
* Full address of the location
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof UpcomingActivityDto
|
|
74
|
+
*/
|
|
75
|
+
locationAddress?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Badge type for display styling
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof UpcomingActivityDto
|
|
80
|
+
*/
|
|
81
|
+
badge: UpcomingActivityDtoBadgeEnum;
|
|
82
|
+
/**
|
|
83
|
+
* Sport type
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof UpcomingActivityDto
|
|
86
|
+
*/
|
|
87
|
+
sport?: string | null;
|
|
88
|
+
/**
|
|
89
|
+
* Current status of the activity
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof UpcomingActivityDto
|
|
92
|
+
*/
|
|
93
|
+
status: string;
|
|
94
|
+
/**
|
|
95
|
+
* Name of the other person (coach for player reserves, student for coach classes)
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof UpcomingActivityDto
|
|
98
|
+
*/
|
|
99
|
+
personName?: string | null;
|
|
100
|
+
/**
|
|
101
|
+
* Avatar URL of the other person
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof UpcomingActivityDto
|
|
104
|
+
*/
|
|
105
|
+
personAvatarUrl?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* Reserve ID for navigation (reserves and coach classes)
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof UpcomingActivityDto
|
|
110
|
+
*/
|
|
111
|
+
reservationId?: string | null;
|
|
112
|
+
/**
|
|
113
|
+
* PlaySearch ID for navigation (play registrations)
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof UpcomingActivityDto
|
|
116
|
+
*/
|
|
117
|
+
playSearchId?: string | null;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @export
|
|
123
|
+
*/
|
|
124
|
+
export const UpcomingActivityDtoSourceEnum = {
|
|
125
|
+
Reserve: 'reserve',
|
|
126
|
+
CoachClass: 'coach_class',
|
|
127
|
+
PlayRegistration: 'play_registration'
|
|
128
|
+
} as const;
|
|
129
|
+
export type UpcomingActivityDtoSourceEnum = typeof UpcomingActivityDtoSourceEnum[keyof typeof UpcomingActivityDtoSourceEnum];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @export
|
|
133
|
+
*/
|
|
134
|
+
export const UpcomingActivityDtoBadgeEnum = {
|
|
135
|
+
Reserva: 'reserva',
|
|
136
|
+
Clase: 'clase',
|
|
137
|
+
Falta1: 'falta1',
|
|
138
|
+
CanchaAbierta: 'cancha_abierta',
|
|
139
|
+
ClaseLibre: 'clase_libre'
|
|
140
|
+
} as const;
|
|
141
|
+
export type UpcomingActivityDtoBadgeEnum = typeof UpcomingActivityDtoBadgeEnum[keyof typeof UpcomingActivityDtoBadgeEnum];
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the UpcomingActivityDto interface.
|
|
146
|
+
*/
|
|
147
|
+
export function instanceOfUpcomingActivityDto(value: object): value is UpcomingActivityDto {
|
|
148
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
149
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
150
|
+
if (!('dateTime' in value) || value['dateTime'] === undefined) return false;
|
|
151
|
+
if (!('title' in value) || value['title'] === undefined) return false;
|
|
152
|
+
if (!('subtitle' in value) || value['subtitle'] === undefined) return false;
|
|
153
|
+
if (!('location' in value) || value['location'] === undefined) return false;
|
|
154
|
+
if (!('badge' in value) || value['badge'] === undefined) return false;
|
|
155
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function UpcomingActivityDtoFromJSON(json: any): UpcomingActivityDto {
|
|
160
|
+
return UpcomingActivityDtoFromJSONTyped(json, false);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function UpcomingActivityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpcomingActivityDto {
|
|
164
|
+
if (json == null) {
|
|
165
|
+
return json;
|
|
166
|
+
}
|
|
167
|
+
return {
|
|
168
|
+
|
|
169
|
+
'id': json['id'],
|
|
170
|
+
'source': json['source'],
|
|
171
|
+
'dateTime': (new Date(json['dateTime'])),
|
|
172
|
+
'endDateTime': json['endDateTime'] == null ? undefined : (new Date(json['endDateTime'])),
|
|
173
|
+
'duration': json['duration'] == null ? undefined : json['duration'],
|
|
174
|
+
'title': json['title'],
|
|
175
|
+
'subtitle': json['subtitle'],
|
|
176
|
+
'location': json['location'],
|
|
177
|
+
'locationAddress': json['locationAddress'] == null ? undefined : json['locationAddress'],
|
|
178
|
+
'badge': json['badge'],
|
|
179
|
+
'sport': json['sport'] == null ? undefined : json['sport'],
|
|
180
|
+
'status': json['status'],
|
|
181
|
+
'personName': json['personName'] == null ? undefined : json['personName'],
|
|
182
|
+
'personAvatarUrl': json['personAvatarUrl'] == null ? undefined : json['personAvatarUrl'],
|
|
183
|
+
'reservationId': json['reservationId'] == null ? undefined : json['reservationId'],
|
|
184
|
+
'playSearchId': json['playSearchId'] == null ? undefined : json['playSearchId'],
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function UpcomingActivityDtoToJSON(json: any): UpcomingActivityDto {
|
|
189
|
+
return UpcomingActivityDtoToJSONTyped(json, false);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export function UpcomingActivityDtoToJSONTyped(value?: UpcomingActivityDto | null, ignoreDiscriminator: boolean = false): any {
|
|
193
|
+
if (value == null) {
|
|
194
|
+
return value;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return {
|
|
198
|
+
|
|
199
|
+
'id': value['id'],
|
|
200
|
+
'source': value['source'],
|
|
201
|
+
'dateTime': ((value['dateTime']).toISOString()),
|
|
202
|
+
'endDateTime': value['endDateTime'] == null ? undefined : ((value['endDateTime'] as any).toISOString()),
|
|
203
|
+
'duration': value['duration'],
|
|
204
|
+
'title': value['title'],
|
|
205
|
+
'subtitle': value['subtitle'],
|
|
206
|
+
'location': value['location'],
|
|
207
|
+
'locationAddress': value['locationAddress'],
|
|
208
|
+
'badge': value['badge'],
|
|
209
|
+
'sport': value['sport'],
|
|
210
|
+
'status': value['status'],
|
|
211
|
+
'personName': value['personName'],
|
|
212
|
+
'personAvatarUrl': value['personAvatarUrl'],
|
|
213
|
+
'reservationId': value['reservationId'],
|
|
214
|
+
'playSearchId': value['playSearchId'],
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
|
|
@@ -0,0 +1,161 @@
|
|
|
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 UpdateCoachProfileDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateCoachProfileDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateCoachProfileDto
|
|
26
|
+
*/
|
|
27
|
+
bio?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Array<string>}
|
|
31
|
+
* @memberof UpdateCoachProfileDto
|
|
32
|
+
*/
|
|
33
|
+
categories?: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof UpdateCoachProfileDto
|
|
38
|
+
*/
|
|
39
|
+
yearsExperience?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof UpdateCoachProfileDto
|
|
44
|
+
*/
|
|
45
|
+
specialties?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof UpdateCoachProfileDto
|
|
50
|
+
*/
|
|
51
|
+
certifications?: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<string>}
|
|
55
|
+
* @memberof UpdateCoachProfileDto
|
|
56
|
+
*/
|
|
57
|
+
photoUrls?: Array<string>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof UpdateCoachProfileDto
|
|
62
|
+
*/
|
|
63
|
+
heroPhotoUrl?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Base64 encoded hero/banner image (data:image/jpeg;base64,...). Replaces heroPhotoUrl.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof UpdateCoachProfileDto
|
|
68
|
+
*/
|
|
69
|
+
heroPhotoBase64?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Base64 encoded new photos to add (data:image/jpeg;base64,...). Appended to existing photoUrls.
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof UpdateCoachProfileDto
|
|
74
|
+
*/
|
|
75
|
+
photoBase64s?: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof UpdateCoachProfileDto
|
|
80
|
+
*/
|
|
81
|
+
profileColor?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {boolean}
|
|
85
|
+
* @memberof UpdateCoachProfileDto
|
|
86
|
+
*/
|
|
87
|
+
isActive?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof UpdateCoachProfileDto
|
|
92
|
+
*/
|
|
93
|
+
communityAlertEnabled?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {boolean}
|
|
97
|
+
* @memberof UpdateCoachProfileDto
|
|
98
|
+
*/
|
|
99
|
+
allowCashPayment?: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the UpdateCoachProfileDto interface.
|
|
104
|
+
*/
|
|
105
|
+
export function instanceOfUpdateCoachProfileDto(value: object): value is UpdateCoachProfileDto {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function UpdateCoachProfileDtoFromJSON(json: any): UpdateCoachProfileDto {
|
|
110
|
+
return UpdateCoachProfileDtoFromJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function UpdateCoachProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCoachProfileDto {
|
|
114
|
+
if (json == null) {
|
|
115
|
+
return json;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'bio': json['bio'] == null ? undefined : json['bio'],
|
|
120
|
+
'categories': json['categories'] == null ? undefined : json['categories'],
|
|
121
|
+
'yearsExperience': json['yearsExperience'] == null ? undefined : json['yearsExperience'],
|
|
122
|
+
'specialties': json['specialties'] == null ? undefined : json['specialties'],
|
|
123
|
+
'certifications': json['certifications'] == null ? undefined : json['certifications'],
|
|
124
|
+
'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
|
|
125
|
+
'heroPhotoUrl': json['heroPhotoUrl'] == null ? undefined : json['heroPhotoUrl'],
|
|
126
|
+
'heroPhotoBase64': json['heroPhotoBase64'] == null ? undefined : json['heroPhotoBase64'],
|
|
127
|
+
'photoBase64s': json['photoBase64s'] == null ? undefined : json['photoBase64s'],
|
|
128
|
+
'profileColor': json['profileColor'] == null ? undefined : json['profileColor'],
|
|
129
|
+
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
130
|
+
'communityAlertEnabled': json['communityAlertEnabled'] == null ? undefined : json['communityAlertEnabled'],
|
|
131
|
+
'allowCashPayment': json['allowCashPayment'] == null ? undefined : json['allowCashPayment'],
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function UpdateCoachProfileDtoToJSON(json: any): UpdateCoachProfileDto {
|
|
136
|
+
return UpdateCoachProfileDtoToJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function UpdateCoachProfileDtoToJSONTyped(value?: UpdateCoachProfileDto | null, ignoreDiscriminator: boolean = false): any {
|
|
140
|
+
if (value == null) {
|
|
141
|
+
return value;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'bio': value['bio'],
|
|
147
|
+
'categories': value['categories'],
|
|
148
|
+
'yearsExperience': value['yearsExperience'],
|
|
149
|
+
'specialties': value['specialties'],
|
|
150
|
+
'certifications': value['certifications'],
|
|
151
|
+
'photoUrls': value['photoUrls'],
|
|
152
|
+
'heroPhotoUrl': value['heroPhotoUrl'],
|
|
153
|
+
'heroPhotoBase64': value['heroPhotoBase64'],
|
|
154
|
+
'photoBase64s': value['photoBase64s'],
|
|
155
|
+
'profileColor': value['profileColor'],
|
|
156
|
+
'isActive': value['isActive'],
|
|
157
|
+
'communityAlertEnabled': value['communityAlertEnabled'],
|
|
158
|
+
'allowCashPayment': value['allowCashPayment'],
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
@@ -61,6 +61,18 @@ export interface UpdateRecurringGameRequest {
|
|
|
61
61
|
* @memberof UpdateRecurringGameRequest
|
|
62
62
|
*/
|
|
63
63
|
daysBeforeMatch?: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof UpdateRecurringGameRequest
|
|
68
|
+
*/
|
|
69
|
+
videoServiceProvider?: UpdateRecurringGameRequestVideoServiceProviderEnum;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof UpdateRecurringGameRequest
|
|
74
|
+
*/
|
|
75
|
+
videoUrl?: string;
|
|
64
76
|
/**
|
|
65
77
|
*
|
|
66
78
|
* @type {boolean}
|
|
@@ -79,6 +91,17 @@ export const UpdateRecurringGameRequestDurationEnum = {
|
|
|
79
91
|
} as const;
|
|
80
92
|
export type UpdateRecurringGameRequestDurationEnum = typeof UpdateRecurringGameRequestDurationEnum[keyof typeof UpdateRecurringGameRequestDurationEnum];
|
|
81
93
|
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export const UpdateRecurringGameRequestVideoServiceProviderEnum = {
|
|
98
|
+
BeelUp: 'BEEL_UP',
|
|
99
|
+
Youtube: 'YOUTUBE',
|
|
100
|
+
Twitch: 'TWITCH',
|
|
101
|
+
Instagram: 'INSTAGRAM'
|
|
102
|
+
} as const;
|
|
103
|
+
export type UpdateRecurringGameRequestVideoServiceProviderEnum = typeof UpdateRecurringGameRequestVideoServiceProviderEnum[keyof typeof UpdateRecurringGameRequestVideoServiceProviderEnum];
|
|
104
|
+
|
|
82
105
|
|
|
83
106
|
/**
|
|
84
107
|
* Check if a given object implements the UpdateRecurringGameRequest interface.
|
|
@@ -104,6 +127,8 @@ export function UpdateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscrim
|
|
|
104
127
|
'precio': json['precio'] == null ? undefined : json['precio'],
|
|
105
128
|
'quota': json['quota'] == null ? undefined : json['quota'],
|
|
106
129
|
'daysBeforeMatch': json['daysBeforeMatch'] == null ? undefined : json['daysBeforeMatch'],
|
|
130
|
+
'videoServiceProvider': json['videoServiceProvider'] == null ? undefined : json['videoServiceProvider'],
|
|
131
|
+
'videoUrl': json['videoUrl'] == null ? undefined : json['videoUrl'],
|
|
107
132
|
'isActive': json['isActive'] == null ? undefined : json['isActive'],
|
|
108
133
|
};
|
|
109
134
|
}
|
|
@@ -126,6 +151,8 @@ export function UpdateRecurringGameRequestToJSONTyped(value?: UpdateRecurringGam
|
|
|
126
151
|
'precio': value['precio'],
|
|
127
152
|
'quota': value['quota'],
|
|
128
153
|
'daysBeforeMatch': value['daysBeforeMatch'],
|
|
154
|
+
'videoServiceProvider': value['videoServiceProvider'],
|
|
155
|
+
'videoUrl': value['videoUrl'],
|
|
129
156
|
'isActive': value['isActive'],
|
|
130
157
|
};
|
|
131
158
|
}
|