@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,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
+ /**
17
+ *
18
+ * @export
19
+ * @interface CoachClassLocationDto
20
+ */
21
+ export interface CoachClassLocationDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CoachClassLocationDto
26
+ */
27
+ locationId?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CoachClassLocationDto
32
+ */
33
+ locationName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CoachClassLocationDto
38
+ */
39
+ clubPlaceName?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CoachClassLocationDto
44
+ */
45
+ clubPlaceAddress?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the CoachClassLocationDto interface.
50
+ */
51
+ export function instanceOfCoachClassLocationDto(value: object): value is CoachClassLocationDto {
52
+ return true;
53
+ }
54
+
55
+ export function CoachClassLocationDtoFromJSON(json: any): CoachClassLocationDto {
56
+ return CoachClassLocationDtoFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function CoachClassLocationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachClassLocationDto {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'locationId': json['locationId'] == null ? undefined : json['locationId'],
66
+ 'locationName': json['locationName'] == null ? undefined : json['locationName'],
67
+ 'clubPlaceName': json['clubPlaceName'] == null ? undefined : json['clubPlaceName'],
68
+ 'clubPlaceAddress': json['clubPlaceAddress'] == null ? undefined : json['clubPlaceAddress'],
69
+ };
70
+ }
71
+
72
+ export function CoachClassLocationDtoToJSON(json: any): CoachClassLocationDto {
73
+ return CoachClassLocationDtoToJSONTyped(json, false);
74
+ }
75
+
76
+ export function CoachClassLocationDtoToJSONTyped(value?: CoachClassLocationDto | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'locationId': value['locationId'],
84
+ 'locationName': value['locationName'],
85
+ 'clubPlaceName': value['clubPlaceName'],
86
+ 'clubPlaceAddress': value['clubPlaceAddress'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,149 @@
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 { CoachShiftRegistrationDto } from './CoachShiftRegistrationDto';
17
+ import {
18
+ CoachShiftRegistrationDtoFromJSON,
19
+ CoachShiftRegistrationDtoFromJSONTyped,
20
+ CoachShiftRegistrationDtoToJSON,
21
+ CoachShiftRegistrationDtoToJSONTyped,
22
+ } from './CoachShiftRegistrationDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CoachLocationRegistrationDto
28
+ */
29
+ export interface CoachLocationRegistrationDto {
30
+ /**
31
+ * Google Maps Place ID (or 'domicilio' for at-home)
32
+ * @type {string}
33
+ * @memberof CoachLocationRegistrationDto
34
+ */
35
+ clubPlaceId?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CoachLocationRegistrationDto
40
+ */
41
+ clubPlaceName: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CoachLocationRegistrationDto
46
+ */
47
+ address: string;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof CoachLocationRegistrationDto
52
+ */
53
+ latitude: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof CoachLocationRegistrationDto
58
+ */
59
+ longitude: number;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof CoachLocationRegistrationDto
64
+ */
65
+ phone?: string;
66
+ /**
67
+ * True if coach travels to students
68
+ * @type {boolean}
69
+ * @memberof CoachLocationRegistrationDto
70
+ */
71
+ isDomicilio?: boolean;
72
+ /**
73
+ * Coach's starting address for at-home sessions
74
+ * @type {string}
75
+ * @memberof CoachLocationRegistrationDto
76
+ */
77
+ originAddress?: string;
78
+ /**
79
+ * Max travel radius for at-home sessions
80
+ * @type {number}
81
+ * @memberof CoachLocationRegistrationDto
82
+ */
83
+ maxDistanceKm?: number;
84
+ /**
85
+ *
86
+ * @type {Array<CoachShiftRegistrationDto>}
87
+ * @memberof CoachLocationRegistrationDto
88
+ */
89
+ shifts?: Array<CoachShiftRegistrationDto>;
90
+ }
91
+
92
+ /**
93
+ * Check if a given object implements the CoachLocationRegistrationDto interface.
94
+ */
95
+ export function instanceOfCoachLocationRegistrationDto(value: object): value is CoachLocationRegistrationDto {
96
+ if (!('clubPlaceName' in value) || value['clubPlaceName'] === undefined) return false;
97
+ if (!('address' in value) || value['address'] === undefined) return false;
98
+ if (!('latitude' in value) || value['latitude'] === undefined) return false;
99
+ if (!('longitude' in value) || value['longitude'] === undefined) return false;
100
+ return true;
101
+ }
102
+
103
+ export function CoachLocationRegistrationDtoFromJSON(json: any): CoachLocationRegistrationDto {
104
+ return CoachLocationRegistrationDtoFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function CoachLocationRegistrationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachLocationRegistrationDto {
108
+ if (json == null) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'clubPlaceId': json['clubPlaceId'] == null ? undefined : json['clubPlaceId'],
114
+ 'clubPlaceName': json['clubPlaceName'],
115
+ 'address': json['address'],
116
+ 'latitude': json['latitude'],
117
+ 'longitude': json['longitude'],
118
+ 'phone': json['phone'] == null ? undefined : json['phone'],
119
+ 'isDomicilio': json['isDomicilio'] == null ? undefined : json['isDomicilio'],
120
+ 'originAddress': json['originAddress'] == null ? undefined : json['originAddress'],
121
+ 'maxDistanceKm': json['maxDistanceKm'] == null ? undefined : json['maxDistanceKm'],
122
+ 'shifts': json['shifts'] == null ? undefined : ((json['shifts'] as Array<any>).map(CoachShiftRegistrationDtoFromJSON)),
123
+ };
124
+ }
125
+
126
+ export function CoachLocationRegistrationDtoToJSON(json: any): CoachLocationRegistrationDto {
127
+ return CoachLocationRegistrationDtoToJSONTyped(json, false);
128
+ }
129
+
130
+ export function CoachLocationRegistrationDtoToJSONTyped(value?: CoachLocationRegistrationDto | null, ignoreDiscriminator: boolean = false): any {
131
+ if (value == null) {
132
+ return value;
133
+ }
134
+
135
+ return {
136
+
137
+ 'clubPlaceId': value['clubPlaceId'],
138
+ 'clubPlaceName': value['clubPlaceName'],
139
+ 'address': value['address'],
140
+ 'latitude': value['latitude'],
141
+ 'longitude': value['longitude'],
142
+ 'phone': value['phone'],
143
+ 'isDomicilio': value['isDomicilio'],
144
+ 'originAddress': value['originAddress'],
145
+ 'maxDistanceKm': value['maxDistanceKm'],
146
+ 'shifts': value['shifts'] == null ? undefined : ((value['shifts'] as Array<any>).map(CoachShiftRegistrationDtoToJSON)),
147
+ };
148
+ }
149
+
@@ -0,0 +1,81 @@
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 CoachPaymentsDto
20
+ */
21
+ export interface CoachPaymentsDto {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof CoachPaymentsDto
26
+ */
27
+ allowCashPayment?: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof CoachPaymentsDto
32
+ */
33
+ mercadoPagoLinked?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CoachPaymentsDto
38
+ */
39
+ mercadoPagoAccountId?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the CoachPaymentsDto interface.
44
+ */
45
+ export function instanceOfCoachPaymentsDto(value: object): value is CoachPaymentsDto {
46
+ return true;
47
+ }
48
+
49
+ export function CoachPaymentsDtoFromJSON(json: any): CoachPaymentsDto {
50
+ return CoachPaymentsDtoFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function CoachPaymentsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachPaymentsDto {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'allowCashPayment': json['allowCashPayment'] == null ? undefined : json['allowCashPayment'],
60
+ 'mercadoPagoLinked': json['mercadoPagoLinked'] == null ? undefined : json['mercadoPagoLinked'],
61
+ 'mercadoPagoAccountId': json['mercadoPagoAccountId'] == null ? undefined : json['mercadoPagoAccountId'],
62
+ };
63
+ }
64
+
65
+ export function CoachPaymentsDtoToJSON(json: any): CoachPaymentsDto {
66
+ return CoachPaymentsDtoToJSONTyped(json, false);
67
+ }
68
+
69
+ export function CoachPaymentsDtoToJSONTyped(value?: CoachPaymentsDto | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'allowCashPayment': value['allowCashPayment'],
77
+ 'mercadoPagoLinked': value['mercadoPagoLinked'],
78
+ 'mercadoPagoAccountId': value['mercadoPagoAccountId'],
79
+ };
80
+ }
81
+
@@ -47,6 +47,30 @@ export interface CoachProfileDto {
47
47
  * @memberof CoachProfileDto
48
48
  */
49
49
  userId: string;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof CoachProfileDto
54
+ */
55
+ firstName?: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof CoachProfileDto
60
+ */
61
+ lastName?: string;
62
+ /**
63
+ *
64
+ * @type {string}
65
+ * @memberof CoachProfileDto
66
+ */
67
+ avatarUrl?: string | null;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof CoachProfileDto
72
+ */
73
+ handle?: string | null;
50
74
  /**
51
75
  *
52
76
  * @type {Array<Sport>}
@@ -59,12 +83,48 @@ export interface CoachProfileDto {
59
83
  * @memberof CoachProfileDto
60
84
  */
61
85
  categories: Array<string>;
86
+ /**
87
+ *
88
+ * @type {string}
89
+ * @memberof CoachProfileDto
90
+ */
91
+ playerCategory?: string | null;
92
+ /**
93
+ *
94
+ * @type {number}
95
+ * @memberof CoachProfileDto
96
+ */
97
+ yearsExperience?: number | null;
98
+ /**
99
+ *
100
+ * @type {Array<string>}
101
+ * @memberof CoachProfileDto
102
+ */
103
+ specialties?: Array<string>;
104
+ /**
105
+ *
106
+ * @type {Array<string>}
107
+ * @memberof CoachProfileDto
108
+ */
109
+ certifications?: Array<string>;
62
110
  /**
63
111
  *
64
112
  * @type {Array<string>}
65
113
  * @memberof CoachProfileDto
66
114
  */
67
115
  photoUrls?: Array<string>;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof CoachProfileDto
120
+ */
121
+ heroPhotoUrl?: string | null;
122
+ /**
123
+ *
124
+ * @type {string}
125
+ * @memberof CoachProfileDto
126
+ */
127
+ profileColor?: string | null;
68
128
  /**
69
129
  *
70
130
  * @type {string}
@@ -77,6 +137,18 @@ export interface CoachProfileDto {
77
137
  * @memberof CoachProfileDto
78
138
  */
79
139
  status: CoachProfileDtoStatusEnum;
140
+ /**
141
+ *
142
+ * @type {boolean}
143
+ * @memberof CoachProfileDto
144
+ */
145
+ allowCashPayment?: boolean;
146
+ /**
147
+ *
148
+ * @type {boolean}
149
+ * @memberof CoachProfileDto
150
+ */
151
+ mercadoPagoLinked?: boolean;
80
152
  /**
81
153
  *
82
154
  * @type {CoachProfileDtoRating}
@@ -89,6 +161,12 @@ export interface CoachProfileDto {
89
161
  * @memberof CoachProfileDto
90
162
  */
91
163
  locations?: Array<Location>;
164
+ /**
165
+ * Distance in km from the search center (only present in geo-search)
166
+ * @type {number}
167
+ * @memberof CoachProfileDto
168
+ */
169
+ distanceKm?: number | null;
92
170
  }
93
171
 
94
172
 
@@ -126,13 +204,26 @@ export function CoachProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
126
204
  return {
127
205
 
128
206
  'userId': json['userId'],
207
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
208
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
209
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
210
+ 'handle': json['handle'] == null ? undefined : json['handle'],
129
211
  'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
130
212
  'categories': json['categories'],
213
+ 'playerCategory': json['playerCategory'] == null ? undefined : json['playerCategory'],
214
+ 'yearsExperience': json['yearsExperience'] == null ? undefined : json['yearsExperience'],
215
+ 'specialties': json['specialties'] == null ? undefined : json['specialties'],
216
+ 'certifications': json['certifications'] == null ? undefined : json['certifications'],
131
217
  'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
218
+ 'heroPhotoUrl': json['heroPhotoUrl'] == null ? undefined : json['heroPhotoUrl'],
219
+ 'profileColor': json['profileColor'] == null ? undefined : json['profileColor'],
132
220
  'bio': json['bio'] == null ? undefined : json['bio'],
133
221
  'status': json['status'],
222
+ 'allowCashPayment': json['allowCashPayment'] == null ? undefined : json['allowCashPayment'],
223
+ 'mercadoPagoLinked': json['mercadoPagoLinked'] == null ? undefined : json['mercadoPagoLinked'],
134
224
  'rating': json['rating'] == null ? undefined : CoachProfileDtoRatingFromJSON(json['rating']),
135
225
  'locations': json['locations'] == null ? undefined : ((json['locations'] as Array<any>).map(LocationFromJSON)),
226
+ 'distanceKm': json['distanceKm'] == null ? undefined : json['distanceKm'],
136
227
  };
137
228
  }
138
229
 
@@ -148,13 +239,26 @@ export function CoachProfileDtoToJSONTyped(value?: CoachProfileDto | null, ignor
148
239
  return {
149
240
 
150
241
  'userId': value['userId'],
242
+ 'firstName': value['firstName'],
243
+ 'lastName': value['lastName'],
244
+ 'avatarUrl': value['avatarUrl'],
245
+ 'handle': value['handle'],
151
246
  'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
152
247
  'categories': value['categories'],
248
+ 'playerCategory': value['playerCategory'],
249
+ 'yearsExperience': value['yearsExperience'],
250
+ 'specialties': value['specialties'],
251
+ 'certifications': value['certifications'],
153
252
  'photoUrls': value['photoUrls'],
253
+ 'heroPhotoUrl': value['heroPhotoUrl'],
254
+ 'profileColor': value['profileColor'],
154
255
  'bio': value['bio'],
155
256
  'status': value['status'],
257
+ 'allowCashPayment': value['allowCashPayment'],
258
+ 'mercadoPagoLinked': value['mercadoPagoLinked'],
156
259
  'rating': CoachProfileDtoRatingToJSON(value['rating']),
157
260
  'locations': value['locations'] == null ? undefined : ((value['locations'] as Array<any>).map(LocationToJSON)),
261
+ 'distanceKm': value['distanceKm'],
158
262
  };
159
263
  }
160
264
 
@@ -0,0 +1,183 @@
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 CoachPublicSubscriptionDto
20
+ */
21
+ export interface CoachPublicSubscriptionDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CoachPublicSubscriptionDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CoachPublicSubscriptionDto
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CoachPublicSubscriptionDto
38
+ */
39
+ sport?: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CoachPublicSubscriptionDto
44
+ */
45
+ bio?: string | null;
46
+ /**
47
+ *
48
+ * @type {Array<string>}
49
+ * @memberof CoachPublicSubscriptionDto
50
+ */
51
+ daysOfWeek?: Array<string>;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CoachPublicSubscriptionDto
56
+ */
57
+ hourFrom?: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof CoachPublicSubscriptionDto
62
+ */
63
+ hourTo?: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof CoachPublicSubscriptionDto
68
+ */
69
+ playFrequency?: string | null;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof CoachPublicSubscriptionDto
74
+ */
75
+ playFrequencyCount?: number | null;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof CoachPublicSubscriptionDto
80
+ */
81
+ monthlyPrice?: number | null;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof CoachPublicSubscriptionDto
86
+ */
87
+ maxPlayers?: number | null;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof CoachPublicSubscriptionDto
92
+ */
93
+ memberCount: number;
94
+ /**
95
+ *
96
+ * @type {boolean}
97
+ * @memberof CoachPublicSubscriptionDto
98
+ */
99
+ isFull: boolean;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof CoachPublicSubscriptionDto
104
+ */
105
+ status: string;
106
+ /**
107
+ * Whether the requesting user already has a pending request for this subscription
108
+ * @type {boolean}
109
+ * @memberof CoachPublicSubscriptionDto
110
+ */
111
+ hasPendingRequest: boolean;
112
+ }
113
+
114
+ /**
115
+ * Check if a given object implements the CoachPublicSubscriptionDto interface.
116
+ */
117
+ export function instanceOfCoachPublicSubscriptionDto(value: object): value is CoachPublicSubscriptionDto {
118
+ if (!('id' in value) || value['id'] === undefined) return false;
119
+ if (!('name' in value) || value['name'] === undefined) return false;
120
+ if (!('memberCount' in value) || value['memberCount'] === undefined) return false;
121
+ if (!('isFull' in value) || value['isFull'] === undefined) return false;
122
+ if (!('status' in value) || value['status'] === undefined) return false;
123
+ if (!('hasPendingRequest' in value) || value['hasPendingRequest'] === undefined) return false;
124
+ return true;
125
+ }
126
+
127
+ export function CoachPublicSubscriptionDtoFromJSON(json: any): CoachPublicSubscriptionDto {
128
+ return CoachPublicSubscriptionDtoFromJSONTyped(json, false);
129
+ }
130
+
131
+ export function CoachPublicSubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachPublicSubscriptionDto {
132
+ if (json == null) {
133
+ return json;
134
+ }
135
+ return {
136
+
137
+ 'id': json['id'],
138
+ 'name': json['name'],
139
+ 'sport': json['sport'] == null ? undefined : json['sport'],
140
+ 'bio': json['bio'] == null ? undefined : json['bio'],
141
+ 'daysOfWeek': json['daysOfWeek'] == null ? undefined : json['daysOfWeek'],
142
+ 'hourFrom': json['hourFrom'] == null ? undefined : json['hourFrom'],
143
+ 'hourTo': json['hourTo'] == null ? undefined : json['hourTo'],
144
+ 'playFrequency': json['playFrequency'] == null ? undefined : json['playFrequency'],
145
+ 'playFrequencyCount': json['playFrequencyCount'] == null ? undefined : json['playFrequencyCount'],
146
+ 'monthlyPrice': json['monthlyPrice'] == null ? undefined : json['monthlyPrice'],
147
+ 'maxPlayers': json['maxPlayers'] == null ? undefined : json['maxPlayers'],
148
+ 'memberCount': json['memberCount'],
149
+ 'isFull': json['isFull'],
150
+ 'status': json['status'],
151
+ 'hasPendingRequest': json['hasPendingRequest'],
152
+ };
153
+ }
154
+
155
+ export function CoachPublicSubscriptionDtoToJSON(json: any): CoachPublicSubscriptionDto {
156
+ return CoachPublicSubscriptionDtoToJSONTyped(json, false);
157
+ }
158
+
159
+ export function CoachPublicSubscriptionDtoToJSONTyped(value?: CoachPublicSubscriptionDto | null, ignoreDiscriminator: boolean = false): any {
160
+ if (value == null) {
161
+ return value;
162
+ }
163
+
164
+ return {
165
+
166
+ 'id': value['id'],
167
+ 'name': value['name'],
168
+ 'sport': value['sport'],
169
+ 'bio': value['bio'],
170
+ 'daysOfWeek': value['daysOfWeek'],
171
+ 'hourFrom': value['hourFrom'],
172
+ 'hourTo': value['hourTo'],
173
+ 'playFrequency': value['playFrequency'],
174
+ 'playFrequencyCount': value['playFrequencyCount'],
175
+ 'monthlyPrice': value['monthlyPrice'],
176
+ 'maxPlayers': value['maxPlayers'],
177
+ 'memberCount': value['memberCount'],
178
+ 'isFull': value['isFull'],
179
+ 'status': value['status'],
180
+ 'hasPendingRequest': value['hasPendingRequest'],
181
+ };
182
+ }
183
+