@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.
Files changed (55) hide show
  1. package/apis/CoachApi.ts +1199 -42
  2. package/apis/CoachWorkspaceApi.ts +93 -0
  3. package/apis/MyActivitiesApi.ts +72 -0
  4. package/apis/PlayerCoachBookingApi.ts +92 -7
  5. package/apis/PublicCoachDiscoveryApi.ts +292 -0
  6. package/apis/SubscriptionsApi.ts +64 -0
  7. package/apis/index.ts +3 -0
  8. package/models/AddCoachSubscriptionMemberRequest.ts +97 -0
  9. package/models/AddShiftWithLocationDto.ts +231 -0
  10. package/models/AgendaSlotDto.ts +142 -0
  11. package/models/CoachClassDetailDto.ts +88 -0
  12. package/models/CoachClassFilters.ts +3 -3
  13. package/models/CoachClassLocationDto.ts +89 -0
  14. package/models/CoachLocationRegistrationDto.ts +149 -0
  15. package/models/CoachPaymentsDto.ts +81 -0
  16. package/models/CoachProfileDto.ts +104 -0
  17. package/models/CoachPublicSubscriptionDto.ts +183 -0
  18. package/models/CoachSearchParams.ts +42 -2
  19. package/models/CoachShiftInputDto.ts +170 -0
  20. package/models/CoachShiftRegistrationDto.ts +176 -0
  21. package/models/CoachTeamPlayerDto.ts +97 -0
  22. package/models/CoachTrainingTeamDto.ts +121 -0
  23. package/models/CoachWorkspaceLocationDto.ts +137 -0
  24. package/models/CoachWorkspaceProfileDto.ts +225 -0
  25. package/models/CoachWorkspaceShiftDto.ts +201 -0
  26. package/models/CreatePreReservationDto.ts +110 -0
  27. package/models/CreateRecurringGameRequest.ts +27 -0
  28. package/models/DayAgendaDto.ts +89 -0
  29. package/models/GenerateCoachSubscriptionBillsRequest.ts +74 -0
  30. package/models/GetCoachMercadoPagoAuthUrl200Response.ts +65 -0
  31. package/models/GetCoachSubscriptionMemberDebt200ResponseInner.ts +81 -0
  32. package/models/LinkCoachMercadoPagoRequest.ts +66 -0
  33. package/models/LinkPreview.ts +97 -0
  34. package/models/LinkShiftToTeamRequest.ts +65 -0
  35. package/models/MarkCoachSubscriptionBillPaid200Response.ts +65 -0
  36. package/models/PlaySubscription.ts +8 -0
  37. package/models/PublicAgendaSlotDto.ts +102 -0
  38. package/models/PublicDayAgendaDto.ts +92 -0
  39. package/models/PublicWeeklyAgendaDto.ts +83 -0
  40. package/models/RecurringGame.ts +27 -0
  41. package/models/RecurringGameResponse.ts +29 -0
  42. package/models/RegisterCoachProfileDto.ts +213 -0
  43. package/models/RegisterCoachProfileResponseDto.ts +89 -0
  44. package/models/ReserveStatus.ts +1 -0
  45. package/models/SubscriptionRequestResponseDto.ts +96 -0
  46. package/models/TeamResponse.ts +16 -0
  47. package/models/TrainingSubscriptionDto.ts +167 -0
  48. package/models/UpcomingActivityDto.ts +217 -0
  49. package/models/UpdateCoachProfileDto.ts +161 -0
  50. package/models/UpdateRecurringGameRequest.ts +27 -0
  51. package/models/UserDto.ts +31 -0
  52. package/models/UserReserveDto.ts +41 -0
  53. package/models/WeeklyAgendaDto.ts +81 -0
  54. package/models/index.ts +34 -0
  55. package/package.json +1 -1
@@ -0,0 +1,225 @@
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 { CoachWorkspaceLocationDto } from './CoachWorkspaceLocationDto';
17
+ import {
18
+ CoachWorkspaceLocationDtoFromJSON,
19
+ CoachWorkspaceLocationDtoFromJSONTyped,
20
+ CoachWorkspaceLocationDtoToJSON,
21
+ CoachWorkspaceLocationDtoToJSONTyped,
22
+ } from './CoachWorkspaceLocationDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CoachWorkspaceProfileDto
28
+ */
29
+ export interface CoachWorkspaceProfileDto {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CoachWorkspaceProfileDto
34
+ */
35
+ firstName?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CoachWorkspaceProfileDto
40
+ */
41
+ lastName?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CoachWorkspaceProfileDto
46
+ */
47
+ handle?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CoachWorkspaceProfileDto
52
+ */
53
+ avatarUrl?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CoachWorkspaceProfileDto
58
+ */
59
+ heroPhotoUrl?: string;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof CoachWorkspaceProfileDto
64
+ */
65
+ bio?: string;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof CoachWorkspaceProfileDto
70
+ */
71
+ profileColor?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof CoachWorkspaceProfileDto
76
+ */
77
+ sport?: string;
78
+ /**
79
+ *
80
+ * @type {Array<string>}
81
+ * @memberof CoachWorkspaceProfileDto
82
+ */
83
+ categories?: Array<string>;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof CoachWorkspaceProfileDto
88
+ */
89
+ yearsExperience?: number;
90
+ /**
91
+ *
92
+ * @type {Array<string>}
93
+ * @memberof CoachWorkspaceProfileDto
94
+ */
95
+ specialties?: Array<string>;
96
+ /**
97
+ *
98
+ * @type {Array<string>}
99
+ * @memberof CoachWorkspaceProfileDto
100
+ */
101
+ certifications?: Array<string>;
102
+ /**
103
+ *
104
+ * @type {boolean}
105
+ * @memberof CoachWorkspaceProfileDto
106
+ */
107
+ isActive?: boolean;
108
+ /**
109
+ *
110
+ * @type {boolean}
111
+ * @memberof CoachWorkspaceProfileDto
112
+ */
113
+ allowCashPayment?: boolean;
114
+ /**
115
+ *
116
+ * @type {boolean}
117
+ * @memberof CoachWorkspaceProfileDto
118
+ */
119
+ communityAlertEnabled?: boolean;
120
+ /**
121
+ *
122
+ * @type {boolean}
123
+ * @memberof CoachWorkspaceProfileDto
124
+ */
125
+ mercadoPagoLinked?: boolean;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof CoachWorkspaceProfileDto
130
+ */
131
+ rating?: number;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof CoachWorkspaceProfileDto
136
+ */
137
+ defaultTeamId?: string;
138
+ /**
139
+ *
140
+ * @type {string}
141
+ * @memberof CoachWorkspaceProfileDto
142
+ */
143
+ defaultTeamInviteCode?: string;
144
+ /**
145
+ *
146
+ * @type {Array<CoachWorkspaceLocationDto>}
147
+ * @memberof CoachWorkspaceProfileDto
148
+ */
149
+ locations?: Array<CoachWorkspaceLocationDto>;
150
+ }
151
+
152
+ /**
153
+ * Check if a given object implements the CoachWorkspaceProfileDto interface.
154
+ */
155
+ export function instanceOfCoachWorkspaceProfileDto(value: object): value is CoachWorkspaceProfileDto {
156
+ return true;
157
+ }
158
+
159
+ export function CoachWorkspaceProfileDtoFromJSON(json: any): CoachWorkspaceProfileDto {
160
+ return CoachWorkspaceProfileDtoFromJSONTyped(json, false);
161
+ }
162
+
163
+ export function CoachWorkspaceProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachWorkspaceProfileDto {
164
+ if (json == null) {
165
+ return json;
166
+ }
167
+ return {
168
+
169
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
170
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
171
+ 'handle': json['handle'] == null ? undefined : json['handle'],
172
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
173
+ 'heroPhotoUrl': json['heroPhotoUrl'] == null ? undefined : json['heroPhotoUrl'],
174
+ 'bio': json['bio'] == null ? undefined : json['bio'],
175
+ 'profileColor': json['profileColor'] == null ? undefined : json['profileColor'],
176
+ 'sport': json['sport'] == null ? undefined : json['sport'],
177
+ 'categories': json['categories'] == null ? undefined : json['categories'],
178
+ 'yearsExperience': json['yearsExperience'] == null ? undefined : json['yearsExperience'],
179
+ 'specialties': json['specialties'] == null ? undefined : json['specialties'],
180
+ 'certifications': json['certifications'] == null ? undefined : json['certifications'],
181
+ 'isActive': json['isActive'] == null ? undefined : json['isActive'],
182
+ 'allowCashPayment': json['allowCashPayment'] == null ? undefined : json['allowCashPayment'],
183
+ 'communityAlertEnabled': json['communityAlertEnabled'] == null ? undefined : json['communityAlertEnabled'],
184
+ 'mercadoPagoLinked': json['mercadoPagoLinked'] == null ? undefined : json['mercadoPagoLinked'],
185
+ 'rating': json['rating'] == null ? undefined : json['rating'],
186
+ 'defaultTeamId': json['defaultTeamId'] == null ? undefined : json['defaultTeamId'],
187
+ 'defaultTeamInviteCode': json['defaultTeamInviteCode'] == null ? undefined : json['defaultTeamInviteCode'],
188
+ 'locations': json['locations'] == null ? undefined : ((json['locations'] as Array<any>).map(CoachWorkspaceLocationDtoFromJSON)),
189
+ };
190
+ }
191
+
192
+ export function CoachWorkspaceProfileDtoToJSON(json: any): CoachWorkspaceProfileDto {
193
+ return CoachWorkspaceProfileDtoToJSONTyped(json, false);
194
+ }
195
+
196
+ export function CoachWorkspaceProfileDtoToJSONTyped(value?: CoachWorkspaceProfileDto | null, ignoreDiscriminator: boolean = false): any {
197
+ if (value == null) {
198
+ return value;
199
+ }
200
+
201
+ return {
202
+
203
+ 'firstName': value['firstName'],
204
+ 'lastName': value['lastName'],
205
+ 'handle': value['handle'],
206
+ 'avatarUrl': value['avatarUrl'],
207
+ 'heroPhotoUrl': value['heroPhotoUrl'],
208
+ 'bio': value['bio'],
209
+ 'profileColor': value['profileColor'],
210
+ 'sport': value['sport'],
211
+ 'categories': value['categories'],
212
+ 'yearsExperience': value['yearsExperience'],
213
+ 'specialties': value['specialties'],
214
+ 'certifications': value['certifications'],
215
+ 'isActive': value['isActive'],
216
+ 'allowCashPayment': value['allowCashPayment'],
217
+ 'communityAlertEnabled': value['communityAlertEnabled'],
218
+ 'mercadoPagoLinked': value['mercadoPagoLinked'],
219
+ 'rating': value['rating'],
220
+ 'defaultTeamId': value['defaultTeamId'],
221
+ 'defaultTeamInviteCode': value['defaultTeamInviteCode'],
222
+ 'locations': value['locations'] == null ? undefined : ((value['locations'] as Array<any>).map(CoachWorkspaceLocationDtoToJSON)),
223
+ };
224
+ }
225
+
@@ -0,0 +1,201 @@
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 CoachWorkspaceShiftDto
20
+ */
21
+ export interface CoachWorkspaceShiftDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CoachWorkspaceShiftDto
26
+ */
27
+ shiftId?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CoachWorkspaceShiftDto
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {Array<string>}
37
+ * @memberof CoachWorkspaceShiftDto
38
+ */
39
+ days?: Array<string>;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CoachWorkspaceShiftDto
44
+ */
45
+ fromHour?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CoachWorkspaceShiftDto
50
+ */
51
+ toHour?: string;
52
+ /**
53
+ *
54
+ * @type {Array<number>}
55
+ * @memberof CoachWorkspaceShiftDto
56
+ */
57
+ durations?: Array<number>;
58
+ /**
59
+ *
60
+ * @type {boolean}
61
+ * @memberof CoachWorkspaceShiftDto
62
+ */
63
+ isGroupal?: boolean;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof CoachWorkspaceShiftDto
68
+ */
69
+ maxPlayers?: number;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof CoachWorkspaceShiftDto
74
+ */
75
+ billingType?: string;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof CoachWorkspaceShiftDto
80
+ */
81
+ monthlyPrice?: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof CoachWorkspaceShiftDto
86
+ */
87
+ pricePerClass?: number;
88
+ /**
89
+ *
90
+ * @type {{ [key: string]: number; }}
91
+ * @memberof CoachWorkspaceShiftDto
92
+ */
93
+ pricePerDuration?: { [key: string]: number; };
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof CoachWorkspaceShiftDto
98
+ */
99
+ teamId?: string;
100
+ /**
101
+ * Invite code for the team linked to this shift
102
+ * @type {string}
103
+ * @memberof CoachWorkspaceShiftDto
104
+ */
105
+ teamInviteCode?: string;
106
+ /**
107
+ * Number of players in the linked team
108
+ * @type {number}
109
+ * @memberof CoachWorkspaceShiftDto
110
+ */
111
+ teamPlayerCount?: number;
112
+ /**
113
+ * Name of the linked team
114
+ * @type {string}
115
+ * @memberof CoachWorkspaceShiftDto
116
+ */
117
+ teamName?: string;
118
+ /**
119
+ * Linked PlaySubscription ID (only set for group shifts)
120
+ * @type {string}
121
+ * @memberof CoachWorkspaceShiftDto
122
+ */
123
+ subscriptionId?: string;
124
+ /**
125
+ *
126
+ * @type {boolean}
127
+ * @memberof CoachWorkspaceShiftDto
128
+ */
129
+ enabled?: boolean;
130
+ }
131
+
132
+ /**
133
+ * Check if a given object implements the CoachWorkspaceShiftDto interface.
134
+ */
135
+ export function instanceOfCoachWorkspaceShiftDto(value: object): value is CoachWorkspaceShiftDto {
136
+ return true;
137
+ }
138
+
139
+ export function CoachWorkspaceShiftDtoFromJSON(json: any): CoachWorkspaceShiftDto {
140
+ return CoachWorkspaceShiftDtoFromJSONTyped(json, false);
141
+ }
142
+
143
+ export function CoachWorkspaceShiftDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachWorkspaceShiftDto {
144
+ if (json == null) {
145
+ return json;
146
+ }
147
+ return {
148
+
149
+ 'shiftId': json['shiftId'] == null ? undefined : json['shiftId'],
150
+ 'name': json['name'] == null ? undefined : json['name'],
151
+ 'days': json['days'] == null ? undefined : json['days'],
152
+ 'fromHour': json['fromHour'] == null ? undefined : json['fromHour'],
153
+ 'toHour': json['toHour'] == null ? undefined : json['toHour'],
154
+ 'durations': json['durations'] == null ? undefined : json['durations'],
155
+ 'isGroupal': json['isGroupal'] == null ? undefined : json['isGroupal'],
156
+ 'maxPlayers': json['maxPlayers'] == null ? undefined : json['maxPlayers'],
157
+ 'billingType': json['billingType'] == null ? undefined : json['billingType'],
158
+ 'monthlyPrice': json['monthlyPrice'] == null ? undefined : json['monthlyPrice'],
159
+ 'pricePerClass': json['pricePerClass'] == null ? undefined : json['pricePerClass'],
160
+ 'pricePerDuration': json['pricePerDuration'] == null ? undefined : json['pricePerDuration'],
161
+ 'teamId': json['teamId'] == null ? undefined : json['teamId'],
162
+ 'teamInviteCode': json['teamInviteCode'] == null ? undefined : json['teamInviteCode'],
163
+ 'teamPlayerCount': json['teamPlayerCount'] == null ? undefined : json['teamPlayerCount'],
164
+ 'teamName': json['teamName'] == null ? undefined : json['teamName'],
165
+ 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
166
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
167
+ };
168
+ }
169
+
170
+ export function CoachWorkspaceShiftDtoToJSON(json: any): CoachWorkspaceShiftDto {
171
+ return CoachWorkspaceShiftDtoToJSONTyped(json, false);
172
+ }
173
+
174
+ export function CoachWorkspaceShiftDtoToJSONTyped(value?: CoachWorkspaceShiftDto | null, ignoreDiscriminator: boolean = false): any {
175
+ if (value == null) {
176
+ return value;
177
+ }
178
+
179
+ return {
180
+
181
+ 'shiftId': value['shiftId'],
182
+ 'name': value['name'],
183
+ 'days': value['days'],
184
+ 'fromHour': value['fromHour'],
185
+ 'toHour': value['toHour'],
186
+ 'durations': value['durations'],
187
+ 'isGroupal': value['isGroupal'],
188
+ 'maxPlayers': value['maxPlayers'],
189
+ 'billingType': value['billingType'],
190
+ 'monthlyPrice': value['monthlyPrice'],
191
+ 'pricePerClass': value['pricePerClass'],
192
+ 'pricePerDuration': value['pricePerDuration'],
193
+ 'teamId': value['teamId'],
194
+ 'teamInviteCode': value['teamInviteCode'],
195
+ 'teamPlayerCount': value['teamPlayerCount'],
196
+ 'teamName': value['teamName'],
197
+ 'subscriptionId': value['subscriptionId'],
198
+ 'enabled': value['enabled'],
199
+ };
200
+ }
201
+
@@ -0,0 +1,110 @@
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 CreatePreReservationDto
20
+ */
21
+ export interface CreatePreReservationDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreatePreReservationDto
26
+ */
27
+ shiftId: string;
28
+ /**
29
+ *
30
+ * @type {Date}
31
+ * @memberof CreatePreReservationDto
32
+ */
33
+ date: Date;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CreatePreReservationDto
38
+ */
39
+ hour: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CreatePreReservationDto
44
+ */
45
+ playerId: string;
46
+ /**
47
+ *
48
+ * @type {boolean}
49
+ * @memberof CreatePreReservationDto
50
+ */
51
+ repeatWeekly: boolean;
52
+ /**
53
+ * Days before session by which it must be confirmed or auto-released
54
+ * @type {number}
55
+ * @memberof CreatePreReservationDto
56
+ */
57
+ confirmationDays?: number;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the CreatePreReservationDto interface.
62
+ */
63
+ export function instanceOfCreatePreReservationDto(value: object): value is CreatePreReservationDto {
64
+ if (!('shiftId' in value) || value['shiftId'] === undefined) return false;
65
+ if (!('date' in value) || value['date'] === undefined) return false;
66
+ if (!('hour' in value) || value['hour'] === undefined) return false;
67
+ if (!('playerId' in value) || value['playerId'] === undefined) return false;
68
+ if (!('repeatWeekly' in value) || value['repeatWeekly'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function CreatePreReservationDtoFromJSON(json: any): CreatePreReservationDto {
73
+ return CreatePreReservationDtoFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function CreatePreReservationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePreReservationDto {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'shiftId': json['shiftId'],
83
+ 'date': (new Date(json['date'])),
84
+ 'hour': json['hour'],
85
+ 'playerId': json['playerId'],
86
+ 'repeatWeekly': json['repeatWeekly'],
87
+ 'confirmationDays': json['confirmationDays'] == null ? undefined : json['confirmationDays'],
88
+ };
89
+ }
90
+
91
+ export function CreatePreReservationDtoToJSON(json: any): CreatePreReservationDto {
92
+ return CreatePreReservationDtoToJSONTyped(json, false);
93
+ }
94
+
95
+ export function CreatePreReservationDtoToJSONTyped(value?: CreatePreReservationDto | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'shiftId': value['shiftId'],
103
+ 'date': ((value['date']).toISOString().substring(0,10)),
104
+ 'hour': value['hour'],
105
+ 'playerId': value['playerId'],
106
+ 'repeatWeekly': value['repeatWeekly'],
107
+ 'confirmationDays': value['confirmationDays'],
108
+ };
109
+ }
110
+
@@ -91,6 +91,18 @@ export interface CreateRecurringGameRequest {
91
91
  * @memberof CreateRecurringGameRequest
92
92
  */
93
93
  daysBeforeMatch: number;
94
+ /**
95
+ * Video recording/streaming service provider
96
+ * @type {string}
97
+ * @memberof CreateRecurringGameRequest
98
+ */
99
+ videoServiceProvider?: CreateRecurringGameRequestVideoServiceProviderEnum;
100
+ /**
101
+ * URL for the video service
102
+ * @type {string}
103
+ * @memberof CreateRecurringGameRequest
104
+ */
105
+ videoUrl?: string;
94
106
  }
95
107
 
96
108
 
@@ -103,6 +115,17 @@ export const CreateRecurringGameRequestDurationEnum = {
103
115
  } as const;
104
116
  export type CreateRecurringGameRequestDurationEnum = typeof CreateRecurringGameRequestDurationEnum[keyof typeof CreateRecurringGameRequestDurationEnum];
105
117
 
118
+ /**
119
+ * @export
120
+ */
121
+ export const CreateRecurringGameRequestVideoServiceProviderEnum = {
122
+ BeelUp: 'BEEL_UP',
123
+ Youtube: 'YOUTUBE',
124
+ Twitch: 'TWITCH',
125
+ Instagram: 'INSTAGRAM'
126
+ } as const;
127
+ export type CreateRecurringGameRequestVideoServiceProviderEnum = typeof CreateRecurringGameRequestVideoServiceProviderEnum[keyof typeof CreateRecurringGameRequestVideoServiceProviderEnum];
128
+
106
129
 
107
130
  /**
108
131
  * Check if a given object implements the CreateRecurringGameRequest interface.
@@ -139,6 +162,8 @@ export function CreateRecurringGameRequestFromJSONTyped(json: any, ignoreDiscrim
139
162
  'precio': json['precio'] == null ? undefined : json['precio'],
140
163
  'quota': json['quota'] == null ? undefined : json['quota'],
141
164
  'daysBeforeMatch': json['daysBeforeMatch'],
165
+ 'videoServiceProvider': json['videoServiceProvider'] == null ? undefined : json['videoServiceProvider'],
166
+ 'videoUrl': json['videoUrl'] == null ? undefined : json['videoUrl'],
142
167
  };
143
168
  }
144
169
 
@@ -165,6 +190,8 @@ export function CreateRecurringGameRequestToJSONTyped(value?: CreateRecurringGam
165
190
  'precio': value['precio'],
166
191
  'quota': value['quota'],
167
192
  'daysBeforeMatch': value['daysBeforeMatch'],
193
+ 'videoServiceProvider': value['videoServiceProvider'],
194
+ 'videoUrl': value['videoUrl'],
168
195
  };
169
196
  }
170
197
 
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { AgendaSlotDto } from './AgendaSlotDto';
17
+ import {
18
+ AgendaSlotDtoFromJSON,
19
+ AgendaSlotDtoFromJSONTyped,
20
+ AgendaSlotDtoToJSON,
21
+ AgendaSlotDtoToJSONTyped,
22
+ } from './AgendaSlotDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface DayAgendaDto
28
+ */
29
+ export interface DayAgendaDto {
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof DayAgendaDto
34
+ */
35
+ date?: Date;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof DayAgendaDto
40
+ */
41
+ dayOfWeek?: string;
42
+ /**
43
+ *
44
+ * @type {Array<AgendaSlotDto>}
45
+ * @memberof DayAgendaDto
46
+ */
47
+ slots?: Array<AgendaSlotDto>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the DayAgendaDto interface.
52
+ */
53
+ export function instanceOfDayAgendaDto(value: object): value is DayAgendaDto {
54
+ return true;
55
+ }
56
+
57
+ export function DayAgendaDtoFromJSON(json: any): DayAgendaDto {
58
+ return DayAgendaDtoFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function DayAgendaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DayAgendaDto {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'date': json['date'] == null ? undefined : (new Date(json['date'])),
68
+ 'dayOfWeek': json['dayOfWeek'] == null ? undefined : json['dayOfWeek'],
69
+ 'slots': json['slots'] == null ? undefined : ((json['slots'] as Array<any>).map(AgendaSlotDtoFromJSON)),
70
+ };
71
+ }
72
+
73
+ export function DayAgendaDtoToJSON(json: any): DayAgendaDto {
74
+ return DayAgendaDtoToJSONTyped(json, false);
75
+ }
76
+
77
+ export function DayAgendaDtoToJSONTyped(value?: DayAgendaDto | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0,10)),
85
+ 'dayOfWeek': value['dayOfWeek'],
86
+ 'slots': value['slots'] == null ? undefined : ((value['slots'] as Array<any>).map(AgendaSlotDtoToJSON)),
87
+ };
88
+ }
89
+