@jugarhoy/api 1.1.33 → 1.1.35

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
package/models/UserDto.ts CHANGED
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { UserSportProfileDto } from './UserSportProfileDto';
17
+ import {
18
+ UserSportProfileDtoFromJSON,
19
+ UserSportProfileDtoFromJSONTyped,
20
+ UserSportProfileDtoToJSON,
21
+ UserSportProfileDtoToJSONTyped,
22
+ } from './UserSportProfileDto';
16
23
  import type { Gender } from './Gender';
17
24
  import {
18
25
  GenderFromJSON,
@@ -69,6 +76,18 @@ export interface UserDto {
69
76
  * @memberof UserDto
70
77
  */
71
78
  instagramHandle?: string;
79
+ /**
80
+ * Unique user handle/username (no spaces, lowercase)
81
+ * @type {string}
82
+ * @memberof UserDto
83
+ */
84
+ handle?: string;
85
+ /**
86
+ * Short user bio (max 120 chars)
87
+ * @type {string}
88
+ * @memberof UserDto
89
+ */
90
+ bio?: string;
72
91
  /**
73
92
  * User's geographical latitude coordinate
74
93
  * @type {number}
@@ -111,6 +130,12 @@ export interface UserDto {
111
130
  * @memberof UserDto
112
131
  */
113
132
  inviteCode?: string;
133
+ /**
134
+ *
135
+ * @type {UserSportProfileDto}
136
+ * @memberof UserDto
137
+ */
138
+ sportProfile?: UserSportProfileDto;
114
139
  }
115
140
 
116
141
 
@@ -142,6 +167,8 @@ export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): U
142
167
  'birthDate': json['birthDate'] == null ? undefined : (new Date(json['birthDate'])),
143
168
  'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
144
169
  'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
170
+ 'handle': json['handle'] == null ? undefined : json['handle'],
171
+ 'bio': json['bio'] == null ? undefined : json['bio'],
145
172
  'latitude': json['latitude'] == null ? undefined : json['latitude'],
146
173
  'longitude': json['longitude'] == null ? undefined : json['longitude'],
147
174
  'distanceInKm': json['distanceInKm'] == null ? undefined : json['distanceInKm'],
@@ -149,6 +176,7 @@ export function UserDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): U
149
176
  'searchDistanceEnabled': json['searchDistanceEnabled'] == null ? undefined : json['searchDistanceEnabled'],
150
177
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
151
178
  'inviteCode': json['inviteCode'] == null ? undefined : json['inviteCode'],
179
+ 'sportProfile': json['sportProfile'] == null ? undefined : UserSportProfileDtoFromJSON(json['sportProfile']),
152
180
  };
153
181
  }
154
182
 
@@ -170,6 +198,8 @@ export function UserDtoToJSONTyped(value?: UserDto | null, ignoreDiscriminator:
170
198
  'birthDate': value['birthDate'] == null ? undefined : ((value['birthDate']).toISOString().substring(0,10)),
171
199
  'avatarBase64': value['avatarBase64'],
172
200
  'instagramHandle': value['instagramHandle'],
201
+ 'handle': value['handle'],
202
+ 'bio': value['bio'],
173
203
  'latitude': value['latitude'],
174
204
  'longitude': value['longitude'],
175
205
  'distanceInKm': value['distanceInKm'],
@@ -177,6 +207,7 @@ export function UserDtoToJSONTyped(value?: UserDto | null, ignoreDiscriminator:
177
207
  'searchDistanceEnabled': value['searchDistanceEnabled'],
178
208
  'timezone': value['timezone'],
179
209
  'inviteCode': value['inviteCode'],
210
+ 'sportProfile': UserSportProfileDtoToJSON(value['sportProfile']),
180
211
  };
181
212
  }
182
213
 
@@ -129,6 +129,36 @@ export interface UserReserveDto {
129
129
  * @memberof UserReserveDto
130
130
  */
131
131
  clubName: string;
132
+ /**
133
+ * The price of the reservation from spotPrice
134
+ * @type {number}
135
+ * @memberof UserReserveDto
136
+ */
137
+ price?: number | null;
138
+ /**
139
+ * Coach user ID (if this is a coach-led class)
140
+ * @type {string}
141
+ * @memberof UserReserveDto
142
+ */
143
+ coachId?: string | null;
144
+ /**
145
+ * Coach full name (if this is a coach-led class)
146
+ * @type {string}
147
+ * @memberof UserReserveDto
148
+ */
149
+ coachName?: string | null;
150
+ /**
151
+ * Coach avatar URL (if this is a coach-led class)
152
+ * @type {string}
153
+ * @memberof UserReserveDto
154
+ */
155
+ coachAvatarUrl?: string | null;
156
+ /**
157
+ * Player full name (populated when the viewer is the coach)
158
+ * @type {string}
159
+ * @memberof UserReserveDto
160
+ */
161
+ playerName?: string | null;
132
162
  }
133
163
 
134
164
 
@@ -139,6 +169,7 @@ export const UserReserveDtoStatusEnum = {
139
169
  Pending: 'PENDING',
140
170
  PendingPayment: 'PENDING_PAYMENT',
141
171
  PendingApproval: 'PENDING_APPROVAL',
172
+ PreReservation: 'PRE_RESERVATION',
142
173
  Confirmed: 'CONFIRMED',
143
174
  Cancelled: 'CANCELLED',
144
175
  Refunded: 'REFUNDED'
@@ -194,6 +225,11 @@ export function UserReserveDtoFromJSONTyped(json: any, ignoreDiscriminator: bool
194
225
  'locationAddressUrl': json['locationAddressUrl'] == null ? undefined : json['locationAddressUrl'],
195
226
  'clubId': json['clubId'],
196
227
  'clubName': json['clubName'],
228
+ 'price': json['price'] == null ? undefined : json['price'],
229
+ 'coachId': json['coachId'] == null ? undefined : json['coachId'],
230
+ 'coachName': json['coachName'] == null ? undefined : json['coachName'],
231
+ 'coachAvatarUrl': json['coachAvatarUrl'] == null ? undefined : json['coachAvatarUrl'],
232
+ 'playerName': json['playerName'] == null ? undefined : json['playerName'],
197
233
  };
198
234
  }
199
235
 
@@ -225,6 +261,11 @@ export function UserReserveDtoToJSONTyped(value?: UserReserveDto | null, ignoreD
225
261
  'locationAddressUrl': value['locationAddressUrl'],
226
262
  'clubId': value['clubId'],
227
263
  'clubName': value['clubName'],
264
+ 'price': value['price'],
265
+ 'coachId': value['coachId'],
266
+ 'coachName': value['coachName'],
267
+ 'coachAvatarUrl': value['coachAvatarUrl'],
268
+ 'playerName': value['playerName'],
228
269
  };
229
270
  }
230
271
 
@@ -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
+ import type { DayAgendaDto } from './DayAgendaDto';
17
+ import {
18
+ DayAgendaDtoFromJSON,
19
+ DayAgendaDtoFromJSONTyped,
20
+ DayAgendaDtoToJSON,
21
+ DayAgendaDtoToJSONTyped,
22
+ } from './DayAgendaDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface WeeklyAgendaDto
28
+ */
29
+ export interface WeeklyAgendaDto {
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof WeeklyAgendaDto
34
+ */
35
+ weekStart?: Date;
36
+ /**
37
+ *
38
+ * @type {Array<DayAgendaDto>}
39
+ * @memberof WeeklyAgendaDto
40
+ */
41
+ days?: Array<DayAgendaDto>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the WeeklyAgendaDto interface.
46
+ */
47
+ export function instanceOfWeeklyAgendaDto(value: object): value is WeeklyAgendaDto {
48
+ return true;
49
+ }
50
+
51
+ export function WeeklyAgendaDtoFromJSON(json: any): WeeklyAgendaDto {
52
+ return WeeklyAgendaDtoFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function WeeklyAgendaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): WeeklyAgendaDto {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'weekStart': json['weekStart'] == null ? undefined : (new Date(json['weekStart'])),
62
+ 'days': json['days'] == null ? undefined : ((json['days'] as Array<any>).map(DayAgendaDtoFromJSON)),
63
+ };
64
+ }
65
+
66
+ export function WeeklyAgendaDtoToJSON(json: any): WeeklyAgendaDto {
67
+ return WeeklyAgendaDtoToJSONTyped(json, false);
68
+ }
69
+
70
+ export function WeeklyAgendaDtoToJSONTyped(value?: WeeklyAgendaDto | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'weekStart': value['weekStart'] == null ? undefined : ((value['weekStart']).toISOString().substring(0,10)),
78
+ 'days': value['days'] == null ? undefined : ((value['days'] as Array<any>).map(DayAgendaDtoToJSON)),
79
+ };
80
+ }
81
+
package/models/index.ts CHANGED
@@ -3,9 +3,12 @@
3
3
  export * from './ActivateCoachProfileRequest';
4
4
  export * from './AddCoachLocation200Response';
5
5
  export * from './AddCoachLocationRequest';
6
+ export * from './AddCoachSubscriptionMemberRequest';
6
7
  export * from './AddCoachToSubscriptionRequest';
7
8
  export * from './AddMemberToSubscriptionRequest';
8
9
  export * from './AddPlayerToSubscriptionRequest';
10
+ export * from './AddShiftWithLocationDto';
11
+ export * from './AgendaSlotDto';
9
12
  export * from './ApiAdminInvitationsPost200Response';
10
13
  export * from './ApiAdminPlayPricesIdPutRequest';
11
14
  export * from './ApiAdminPlayPricesPostRequest';
@@ -55,12 +58,24 @@ export * from './ClubSearchResponsePagination';
55
58
  export * from './ClubSubscriptionOfferingDto';
56
59
  export * from './Coach';
57
60
  export * from './CoachAvailabilityDto';
61
+ export * from './CoachClassDetailDto';
58
62
  export * from './CoachClassFilters';
63
+ export * from './CoachClassLocationDto';
59
64
  export * from './CoachDto';
60
65
  export * from './CoachDtoAvailabilityInner';
66
+ export * from './CoachLocationRegistrationDto';
67
+ export * from './CoachPaymentsDto';
61
68
  export * from './CoachProfileDto';
62
69
  export * from './CoachProfileDtoRating';
70
+ export * from './CoachPublicSubscriptionDto';
63
71
  export * from './CoachSearchParams';
72
+ export * from './CoachShiftInputDto';
73
+ export * from './CoachShiftRegistrationDto';
74
+ export * from './CoachTeamPlayerDto';
75
+ export * from './CoachTrainingTeamDto';
76
+ export * from './CoachWorkspaceLocationDto';
77
+ export * from './CoachWorkspaceProfileDto';
78
+ export * from './CoachWorkspaceShiftDto';
64
79
  export * from './ComputedValueType';
65
80
  export * from './ConfirmReservationParams';
66
81
  export * from './ConfirmReservationResponse';
@@ -82,6 +97,7 @@ export * from './CreateFromInvite400Response';
82
97
  export * from './CreateInvitationDto';
83
98
  export * from './CreatePlayRegistrationRequest';
84
99
  export * from './CreatePlaySearchRequest';
100
+ export * from './CreatePreReservationDto';
85
101
  export * from './CreateRecurringGameRequest';
86
102
  export * from './CreateServiceConfigRequest';
87
103
  export * from './CreateShiftRequest';
@@ -100,6 +116,7 @@ export * from './CustomerRefund';
100
116
  export * from './CustomerServiceConfig';
101
117
  export * from './CustomerServiceConfigDto';
102
118
  export * from './CustomerStatus';
119
+ export * from './DayAgendaDto';
103
120
  export * from './DayOfWeek';
104
121
  export * from './DefineCoachScheduleRequest';
105
122
  export * from './DefineCoachScheduleRequestShiftsInner';
@@ -122,6 +139,7 @@ export * from './FeedMediaType';
122
139
  export * from './FindOccurrences200Response';
123
140
  export * from './Frequency';
124
141
  export * from './Gender';
142
+ export * from './GenerateCoachSubscriptionBillsRequest';
125
143
  export * from './GenerateCode500Response';
126
144
  export * from './GenerateRecurringGames200Response';
127
145
  export * from './GenerateSubscriptionBillsRequest';
@@ -130,6 +148,8 @@ export * from './GetAllPlaySpots200ResponseInner';
130
148
  export * from './GetAllShifts200ResponseInner';
131
149
  export * from './GetAvailableSportEvents200Response';
132
150
  export * from './GetAvailableSportEvents200ResponseEventsInner';
151
+ export * from './GetCoachMercadoPagoAuthUrl200Response';
152
+ export * from './GetCoachSubscriptionMemberDebt200ResponseInner';
133
153
  export * from './GetHourlyReservationStatus200Response';
134
154
  export * from './GetHourlyReservationStatus200ResponseHourlyStatusInner';
135
155
  export * from './GetMercadoPagoAuthUrl200Response';
@@ -148,7 +168,10 @@ export * from './InvitationStatus';
148
168
  export * from './JoinTeamRequest';
149
169
  export * from './Level';
150
170
  export * from './LightControlResponse';
171
+ export * from './LinkCoachMercadoPagoRequest';
151
172
  export * from './LinkPaymentToBillRequest';
173
+ export * from './LinkPreview';
174
+ export * from './LinkShiftToTeamRequest';
152
175
  export * from './ListAllClubsResponse';
153
176
  export * from './ListAllClubsResponseResult';
154
177
  export * from './ListPlaySearchesByRecurringGame200Response';
@@ -159,6 +182,7 @@ export * from './LocationHour';
159
182
  export * from './ManageLightSwitch200Response';
160
183
  export * from './ManageLightSwitch500Response';
161
184
  export * from './MarkBillAsPaidRequest';
185
+ export * from './MarkCoachSubscriptionBillPaid200Response';
162
186
  export * from './MarkNotificationAsRead200Response';
163
187
  export * from './MatchRequirements';
164
188
  export * from './MatchVote';
@@ -224,6 +248,9 @@ export * from './ProcessMercadoPagoIPN200Response';
224
248
  export * from './ProcessMercadoPagoPaymentParams';
225
249
  export * from './ProcessMercadoPagoPaymentResponse';
226
250
  export * from './ProcessMercadoPagoPaymentResponseResult';
251
+ export * from './PublicAgendaSlotDto';
252
+ export * from './PublicDayAgendaDto';
253
+ export * from './PublicWeeklyAgendaDto';
227
254
  export * from './RecurringGame';
228
255
  export * from './RecurringGameResponse';
229
256
  export * from './RefundPolicy';
@@ -235,6 +262,8 @@ export * from './RegisterClubParams';
235
262
  export * from './RegisterClubParamsLocationHoursInner';
236
263
  export * from './RegisterClubResponse';
237
264
  export * from './RegisterClubResponseResult';
265
+ export * from './RegisterCoachProfileDto';
266
+ export * from './RegisterCoachProfileResponseDto';
238
267
  export * from './RegisterForPlaySearchRequest';
239
268
  export * from './RegistrationStatus';
240
269
  export * from './RentHour';
@@ -275,6 +304,7 @@ export * from './SubscriptionBillItemDto';
275
304
  export * from './SubscriptionBillPageDto';
276
305
  export * from './SubscriptionMemberDto';
277
306
  export * from './SubscriptionMembersPageDto';
307
+ export * from './SubscriptionRequestResponseDto';
278
308
  export * from './SubscriptionStatus';
279
309
  export * from './SuccessResponse';
280
310
  export * from './Team';
@@ -297,15 +327,18 @@ export * from './ToggleNotificationByType200Response';
297
327
  export * from './ToggleServiceConfigRequest';
298
328
  export * from './TrainerFeedDto';
299
329
  export * from './TrainerFeedDtoStats';
330
+ export * from './TrainingSubscriptionDto';
300
331
  export * from './TriggerDeviceAction200Response';
301
332
  export * from './TriggerDeviceActionRequest';
302
333
  export * from './UnreadCountResponseDto';
334
+ export * from './UpcomingActivityDto';
303
335
  export * from './UpdateAppLocationParams';
304
336
  export * from './UpdateBillRequest';
305
337
  export * from './UpdateClubSettingsParams';
306
338
  export * from './UpdateClubSettingsResponse';
307
339
  export * from './UpdateClubSettingsServiceTypeItem';
308
340
  export * from './UpdateCoachPriceDto';
341
+ export * from './UpdateCoachProfileDto';
309
342
  export * from './UpdateFeatureRequest';
310
343
  export * from './UpdateFeedItemReactionsRequest';
311
344
  export * from './UpdateMemberPaymentConfigRequest';
@@ -339,4 +372,5 @@ export * from './VerifyPhoneNumber200Response';
339
372
  export * from './VerifyPhoneNumberRequest';
340
373
  export * from './VotingStatsResponse';
341
374
  export * from './VotingStatusResponse';
375
+ export * from './WeeklyAgendaDto';
342
376
  export * from './WhatsAppProvider';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jugarhoy/api",
3
- "version": "1.1.33",
3
+ "version": "1.1.35",
4
4
  "description": "TypeScript SDK for Jugar Hoy API",
5
5
  "main": "index.ts",
6
6
  "types": "index.ts",