@jugarhoy/api 1.1.32 → 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 (56) 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/ClubPlaceRegistrationStatus.ts +9 -0
  12. package/models/CoachClassDetailDto.ts +88 -0
  13. package/models/CoachClassFilters.ts +3 -3
  14. package/models/CoachClassLocationDto.ts +89 -0
  15. package/models/CoachLocationRegistrationDto.ts +149 -0
  16. package/models/CoachPaymentsDto.ts +81 -0
  17. package/models/CoachProfileDto.ts +104 -0
  18. package/models/CoachPublicSubscriptionDto.ts +183 -0
  19. package/models/CoachSearchParams.ts +42 -2
  20. package/models/CoachShiftInputDto.ts +170 -0
  21. package/models/CoachShiftRegistrationDto.ts +176 -0
  22. package/models/CoachTeamPlayerDto.ts +97 -0
  23. package/models/CoachTrainingTeamDto.ts +121 -0
  24. package/models/CoachWorkspaceLocationDto.ts +137 -0
  25. package/models/CoachWorkspaceProfileDto.ts +225 -0
  26. package/models/CoachWorkspaceShiftDto.ts +201 -0
  27. package/models/CreatePreReservationDto.ts +110 -0
  28. package/models/CreateRecurringGameRequest.ts +27 -0
  29. package/models/DayAgendaDto.ts +89 -0
  30. package/models/GenerateCoachSubscriptionBillsRequest.ts +74 -0
  31. package/models/GetCoachMercadoPagoAuthUrl200Response.ts +65 -0
  32. package/models/GetCoachSubscriptionMemberDebt200ResponseInner.ts +81 -0
  33. package/models/LinkCoachMercadoPagoRequest.ts +66 -0
  34. package/models/LinkPreview.ts +97 -0
  35. package/models/LinkShiftToTeamRequest.ts +65 -0
  36. package/models/MarkCoachSubscriptionBillPaid200Response.ts +65 -0
  37. package/models/PlaySubscription.ts +8 -0
  38. package/models/PublicAgendaSlotDto.ts +102 -0
  39. package/models/PublicDayAgendaDto.ts +92 -0
  40. package/models/PublicWeeklyAgendaDto.ts +83 -0
  41. package/models/RecurringGame.ts +27 -0
  42. package/models/RecurringGameResponse.ts +29 -0
  43. package/models/RegisterCoachProfileDto.ts +213 -0
  44. package/models/RegisterCoachProfileResponseDto.ts +89 -0
  45. package/models/ReserveStatus.ts +1 -0
  46. package/models/SubscriptionRequestResponseDto.ts +96 -0
  47. package/models/TeamResponse.ts +16 -0
  48. package/models/TrainingSubscriptionDto.ts +167 -0
  49. package/models/UpcomingActivityDto.ts +217 -0
  50. package/models/UpdateCoachProfileDto.ts +161 -0
  51. package/models/UpdateRecurringGameRequest.ts +27 -0
  52. package/models/UserDto.ts +31 -0
  53. package/models/UserReserveDto.ts +41 -0
  54. package/models/WeeklyAgendaDto.ts +81 -0
  55. package/models/index.ts +34 -0
  56. package/package.json +1 -1
@@ -0,0 +1,137 @@
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 { CoachWorkspaceShiftDto } from './CoachWorkspaceShiftDto';
17
+ import {
18
+ CoachWorkspaceShiftDtoFromJSON,
19
+ CoachWorkspaceShiftDtoFromJSONTyped,
20
+ CoachWorkspaceShiftDtoToJSON,
21
+ CoachWorkspaceShiftDtoToJSONTyped,
22
+ } from './CoachWorkspaceShiftDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CoachWorkspaceLocationDto
28
+ */
29
+ export interface CoachWorkspaceLocationDto {
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CoachWorkspaceLocationDto
34
+ */
35
+ locationId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CoachWorkspaceLocationDto
40
+ */
41
+ name?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CoachWorkspaceLocationDto
46
+ */
47
+ address?: string;
48
+ /**
49
+ *
50
+ * @type {boolean}
51
+ * @memberof CoachWorkspaceLocationDto
52
+ */
53
+ isDomicilio?: boolean;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CoachWorkspaceLocationDto
58
+ */
59
+ placeId?: string | null;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof CoachWorkspaceLocationDto
64
+ */
65
+ latitude?: number | null;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof CoachWorkspaceLocationDto
70
+ */
71
+ longitude?: number | null;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof CoachWorkspaceLocationDto
76
+ */
77
+ phone?: string | null;
78
+ /**
79
+ *
80
+ * @type {Array<CoachWorkspaceShiftDto>}
81
+ * @memberof CoachWorkspaceLocationDto
82
+ */
83
+ shifts?: Array<CoachWorkspaceShiftDto>;
84
+ }
85
+
86
+ /**
87
+ * Check if a given object implements the CoachWorkspaceLocationDto interface.
88
+ */
89
+ export function instanceOfCoachWorkspaceLocationDto(value: object): value is CoachWorkspaceLocationDto {
90
+ return true;
91
+ }
92
+
93
+ export function CoachWorkspaceLocationDtoFromJSON(json: any): CoachWorkspaceLocationDto {
94
+ return CoachWorkspaceLocationDtoFromJSONTyped(json, false);
95
+ }
96
+
97
+ export function CoachWorkspaceLocationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachWorkspaceLocationDto {
98
+ if (json == null) {
99
+ return json;
100
+ }
101
+ return {
102
+
103
+ 'locationId': json['locationId'] == null ? undefined : json['locationId'],
104
+ 'name': json['name'] == null ? undefined : json['name'],
105
+ 'address': json['address'] == null ? undefined : json['address'],
106
+ 'isDomicilio': json['isDomicilio'] == null ? undefined : json['isDomicilio'],
107
+ 'placeId': json['placeId'] == null ? undefined : json['placeId'],
108
+ 'latitude': json['latitude'] == null ? undefined : json['latitude'],
109
+ 'longitude': json['longitude'] == null ? undefined : json['longitude'],
110
+ 'phone': json['phone'] == null ? undefined : json['phone'],
111
+ 'shifts': json['shifts'] == null ? undefined : ((json['shifts'] as Array<any>).map(CoachWorkspaceShiftDtoFromJSON)),
112
+ };
113
+ }
114
+
115
+ export function CoachWorkspaceLocationDtoToJSON(json: any): CoachWorkspaceLocationDto {
116
+ return CoachWorkspaceLocationDtoToJSONTyped(json, false);
117
+ }
118
+
119
+ export function CoachWorkspaceLocationDtoToJSONTyped(value?: CoachWorkspaceLocationDto | null, ignoreDiscriminator: boolean = false): any {
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+
124
+ return {
125
+
126
+ 'locationId': value['locationId'],
127
+ 'name': value['name'],
128
+ 'address': value['address'],
129
+ 'isDomicilio': value['isDomicilio'],
130
+ 'placeId': value['placeId'],
131
+ 'latitude': value['latitude'],
132
+ 'longitude': value['longitude'],
133
+ 'phone': value['phone'],
134
+ 'shifts': value['shifts'] == null ? undefined : ((value['shifts'] as Array<any>).map(CoachWorkspaceShiftDtoToJSON)),
135
+ };
136
+ }
137
+
@@ -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
+