@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,102 @@
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 PublicAgendaSlotDto
20
+ */
21
+ export interface PublicAgendaSlotDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PublicAgendaSlotDto
26
+ */
27
+ hour: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PublicAgendaSlotDto
32
+ */
33
+ status: PublicAgendaSlotDtoStatusEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PublicAgendaSlotDto
38
+ */
39
+ shiftId?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PublicAgendaSlotDto
44
+ */
45
+ playSpotId?: string;
46
+ }
47
+
48
+
49
+ /**
50
+ * @export
51
+ */
52
+ export const PublicAgendaSlotDtoStatusEnum = {
53
+ Available: 'available',
54
+ Disabled: 'disabled'
55
+ } as const;
56
+ export type PublicAgendaSlotDtoStatusEnum = typeof PublicAgendaSlotDtoStatusEnum[keyof typeof PublicAgendaSlotDtoStatusEnum];
57
+
58
+
59
+ /**
60
+ * Check if a given object implements the PublicAgendaSlotDto interface.
61
+ */
62
+ export function instanceOfPublicAgendaSlotDto(value: object): value is PublicAgendaSlotDto {
63
+ if (!('hour' in value) || value['hour'] === undefined) return false;
64
+ if (!('status' in value) || value['status'] === undefined) return false;
65
+ return true;
66
+ }
67
+
68
+ export function PublicAgendaSlotDtoFromJSON(json: any): PublicAgendaSlotDto {
69
+ return PublicAgendaSlotDtoFromJSONTyped(json, false);
70
+ }
71
+
72
+ export function PublicAgendaSlotDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicAgendaSlotDto {
73
+ if (json == null) {
74
+ return json;
75
+ }
76
+ return {
77
+
78
+ 'hour': json['hour'],
79
+ 'status': json['status'],
80
+ 'shiftId': json['shiftId'] == null ? undefined : json['shiftId'],
81
+ 'playSpotId': json['playSpotId'] == null ? undefined : json['playSpotId'],
82
+ };
83
+ }
84
+
85
+ export function PublicAgendaSlotDtoToJSON(json: any): PublicAgendaSlotDto {
86
+ return PublicAgendaSlotDtoToJSONTyped(json, false);
87
+ }
88
+
89
+ export function PublicAgendaSlotDtoToJSONTyped(value?: PublicAgendaSlotDto | null, ignoreDiscriminator: boolean = false): any {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+
94
+ return {
95
+
96
+ 'hour': value['hour'],
97
+ 'status': value['status'],
98
+ 'shiftId': value['shiftId'],
99
+ 'playSpotId': value['playSpotId'],
100
+ };
101
+ }
102
+
@@ -0,0 +1,92 @@
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 { PublicAgendaSlotDto } from './PublicAgendaSlotDto';
17
+ import {
18
+ PublicAgendaSlotDtoFromJSON,
19
+ PublicAgendaSlotDtoFromJSONTyped,
20
+ PublicAgendaSlotDtoToJSON,
21
+ PublicAgendaSlotDtoToJSONTyped,
22
+ } from './PublicAgendaSlotDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PublicDayAgendaDto
28
+ */
29
+ export interface PublicDayAgendaDto {
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof PublicDayAgendaDto
34
+ */
35
+ date: Date;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PublicDayAgendaDto
40
+ */
41
+ dayOfWeek: string;
42
+ /**
43
+ *
44
+ * @type {Array<PublicAgendaSlotDto>}
45
+ * @memberof PublicDayAgendaDto
46
+ */
47
+ slots: Array<PublicAgendaSlotDto>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the PublicDayAgendaDto interface.
52
+ */
53
+ export function instanceOfPublicDayAgendaDto(value: object): value is PublicDayAgendaDto {
54
+ if (!('date' in value) || value['date'] === undefined) return false;
55
+ if (!('dayOfWeek' in value) || value['dayOfWeek'] === undefined) return false;
56
+ if (!('slots' in value) || value['slots'] === undefined) return false;
57
+ return true;
58
+ }
59
+
60
+ export function PublicDayAgendaDtoFromJSON(json: any): PublicDayAgendaDto {
61
+ return PublicDayAgendaDtoFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PublicDayAgendaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicDayAgendaDto {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'date': (new Date(json['date'])),
71
+ 'dayOfWeek': json['dayOfWeek'],
72
+ 'slots': ((json['slots'] as Array<any>).map(PublicAgendaSlotDtoFromJSON)),
73
+ };
74
+ }
75
+
76
+ export function PublicDayAgendaDtoToJSON(json: any): PublicDayAgendaDto {
77
+ return PublicDayAgendaDtoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function PublicDayAgendaDtoToJSONTyped(value?: PublicDayAgendaDto | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'date': ((value['date']).toISOString().substring(0,10)),
88
+ 'dayOfWeek': value['dayOfWeek'],
89
+ 'slots': ((value['slots'] as Array<any>).map(PublicAgendaSlotDtoToJSON)),
90
+ };
91
+ }
92
+
@@ -0,0 +1,83 @@
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 { PublicDayAgendaDto } from './PublicDayAgendaDto';
17
+ import {
18
+ PublicDayAgendaDtoFromJSON,
19
+ PublicDayAgendaDtoFromJSONTyped,
20
+ PublicDayAgendaDtoToJSON,
21
+ PublicDayAgendaDtoToJSONTyped,
22
+ } from './PublicDayAgendaDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface PublicWeeklyAgendaDto
28
+ */
29
+ export interface PublicWeeklyAgendaDto {
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof PublicWeeklyAgendaDto
34
+ */
35
+ weekStart: Date;
36
+ /**
37
+ *
38
+ * @type {Array<PublicDayAgendaDto>}
39
+ * @memberof PublicWeeklyAgendaDto
40
+ */
41
+ days: Array<PublicDayAgendaDto>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the PublicWeeklyAgendaDto interface.
46
+ */
47
+ export function instanceOfPublicWeeklyAgendaDto(value: object): value is PublicWeeklyAgendaDto {
48
+ if (!('weekStart' in value) || value['weekStart'] === undefined) return false;
49
+ if (!('days' in value) || value['days'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function PublicWeeklyAgendaDtoFromJSON(json: any): PublicWeeklyAgendaDto {
54
+ return PublicWeeklyAgendaDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function PublicWeeklyAgendaDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PublicWeeklyAgendaDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'weekStart': (new Date(json['weekStart'])),
64
+ 'days': ((json['days'] as Array<any>).map(PublicDayAgendaDtoFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function PublicWeeklyAgendaDtoToJSON(json: any): PublicWeeklyAgendaDto {
69
+ return PublicWeeklyAgendaDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function PublicWeeklyAgendaDtoToJSONTyped(value?: PublicWeeklyAgendaDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'weekStart': ((value['weekStart']).toISOString().substring(0,10)),
80
+ 'days': ((value['days'] as Array<any>).map(PublicDayAgendaDtoToJSON)),
81
+ };
82
+ }
83
+
@@ -73,6 +73,18 @@ export interface RecurringGame {
73
73
  * @memberof RecurringGame
74
74
  */
75
75
  daysBeforeMatch: number;
76
+ /**
77
+ * Video recording/streaming service provider
78
+ * @type {string}
79
+ * @memberof RecurringGame
80
+ */
81
+ videoServiceProvider?: RecurringGameVideoServiceProviderEnum | null;
82
+ /**
83
+ * URL for the video service
84
+ * @type {string}
85
+ * @memberof RecurringGame
86
+ */
87
+ videoUrl?: string | null;
76
88
  /**
77
89
  *
78
90
  * @type {boolean}
@@ -103,6 +115,17 @@ export const RecurringGameDurationEnum = {
103
115
  } as const;
104
116
  export type RecurringGameDurationEnum = typeof RecurringGameDurationEnum[keyof typeof RecurringGameDurationEnum];
105
117
 
118
+ /**
119
+ * @export
120
+ */
121
+ export const RecurringGameVideoServiceProviderEnum = {
122
+ BeelUp: 'BEEL_UP',
123
+ Youtube: 'YOUTUBE',
124
+ Twitch: 'TWITCH',
125
+ Instagram: 'INSTAGRAM'
126
+ } as const;
127
+ export type RecurringGameVideoServiceProviderEnum = typeof RecurringGameVideoServiceProviderEnum[keyof typeof RecurringGameVideoServiceProviderEnum];
128
+
106
129
 
107
130
  /**
108
131
  * Check if a given object implements the RecurringGame interface.
@@ -138,6 +161,8 @@ export function RecurringGameFromJSONTyped(json: any, ignoreDiscriminator: boole
138
161
  'precio': json['precio'] == null ? undefined : json['precio'],
139
162
  'quota': json['quota'] == null ? undefined : json['quota'],
140
163
  'daysBeforeMatch': json['daysBeforeMatch'],
164
+ 'videoServiceProvider': json['videoServiceProvider'] == null ? undefined : json['videoServiceProvider'],
165
+ 'videoUrl': json['videoUrl'] == null ? undefined : json['videoUrl'],
141
166
  'isActive': json['isActive'],
142
167
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
143
168
  'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
@@ -164,6 +189,8 @@ export function RecurringGameToJSONTyped(value?: RecurringGame | null, ignoreDis
164
189
  'precio': value['precio'],
165
190
  'quota': value['quota'],
166
191
  'daysBeforeMatch': value['daysBeforeMatch'],
192
+ 'videoServiceProvider': value['videoServiceProvider'],
193
+ 'videoUrl': value['videoUrl'],
167
194
  'isActive': value['isActive'],
168
195
  'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
169
196
  'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
@@ -79,6 +79,18 @@ export interface RecurringGameResponse {
79
79
  * @memberof RecurringGameResponse
80
80
  */
81
81
  daysBeforeMatch: number;
82
+ /**
83
+ * Video recording/streaming service provider
84
+ * @type {string}
85
+ * @memberof RecurringGameResponse
86
+ */
87
+ videoServiceProvider?: RecurringGameResponseVideoServiceProviderEnum | null;
88
+ /**
89
+ * URL for the video service
90
+ * @type {string}
91
+ * @memberof RecurringGameResponse
92
+ */
93
+ videoUrl?: string | null;
82
94
  /**
83
95
  *
84
96
  * @type {boolean}
@@ -99,6 +111,19 @@ export interface RecurringGameResponse {
99
111
  updatedAt: Date;
100
112
  }
101
113
 
114
+
115
+ /**
116
+ * @export
117
+ */
118
+ export const RecurringGameResponseVideoServiceProviderEnum = {
119
+ BeelUp: 'BEEL_UP',
120
+ Youtube: 'YOUTUBE',
121
+ Twitch: 'TWITCH',
122
+ Instagram: 'INSTAGRAM'
123
+ } as const;
124
+ export type RecurringGameResponseVideoServiceProviderEnum = typeof RecurringGameResponseVideoServiceProviderEnum[keyof typeof RecurringGameResponseVideoServiceProviderEnum];
125
+
126
+
102
127
  /**
103
128
  * Check if a given object implements the RecurringGameResponse interface.
104
129
  */
@@ -136,6 +161,8 @@ export function RecurringGameResponseFromJSONTyped(json: any, ignoreDiscriminato
136
161
  'precio': json['precio'] == null ? undefined : json['precio'],
137
162
  'quota': json['quota'] == null ? undefined : json['quota'],
138
163
  'daysBeforeMatch': json['daysBeforeMatch'],
164
+ 'videoServiceProvider': json['videoServiceProvider'] == null ? undefined : json['videoServiceProvider'],
165
+ 'videoUrl': json['videoUrl'] == null ? undefined : json['videoUrl'],
139
166
  'isActive': json['isActive'],
140
167
  'createdAt': (new Date(json['createdAt'])),
141
168
  'updatedAt': (new Date(json['updatedAt'])),
@@ -163,6 +190,8 @@ export function RecurringGameResponseToJSONTyped(value?: RecurringGameResponse |
163
190
  'precio': value['precio'],
164
191
  'quota': value['quota'],
165
192
  'daysBeforeMatch': value['daysBeforeMatch'],
193
+ 'videoServiceProvider': value['videoServiceProvider'],
194
+ 'videoUrl': value['videoUrl'],
166
195
  'isActive': value['isActive'],
167
196
  'createdAt': ((value['createdAt']).toISOString()),
168
197
  'updatedAt': ((value['updatedAt']).toISOString()),
@@ -0,0 +1,213 @@
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 { UserDto } from './UserDto';
17
+ import {
18
+ UserDtoFromJSON,
19
+ UserDtoFromJSONTyped,
20
+ UserDtoToJSON,
21
+ UserDtoToJSONTyped,
22
+ } from './UserDto';
23
+ import type { CoachLocationRegistrationDto } from './CoachLocationRegistrationDto';
24
+ import {
25
+ CoachLocationRegistrationDtoFromJSON,
26
+ CoachLocationRegistrationDtoFromJSONTyped,
27
+ CoachLocationRegistrationDtoToJSON,
28
+ CoachLocationRegistrationDtoToJSONTyped,
29
+ } from './CoachLocationRegistrationDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface RegisterCoachProfileDto
35
+ */
36
+ export interface RegisterCoachProfileDto {
37
+ /**
38
+ *
39
+ * @type {UserDto}
40
+ * @memberof RegisterCoachProfileDto
41
+ */
42
+ user: UserDto;
43
+ /**
44
+ * Sport the coach teaches
45
+ * @type {string}
46
+ * @memberof RegisterCoachProfileDto
47
+ */
48
+ sport: string;
49
+ /**
50
+ * Coach's own player level/category
51
+ * @type {string}
52
+ * @memberof RegisterCoachProfileDto
53
+ */
54
+ playerCategory: string;
55
+ /**
56
+ * Player categories this coach teaches
57
+ * @type {Array<string>}
58
+ * @memberof RegisterCoachProfileDto
59
+ */
60
+ categories: Array<string>;
61
+ /**
62
+ *
63
+ * @type {number}
64
+ * @memberof RegisterCoachProfileDto
65
+ */
66
+ yearsExperience?: number;
67
+ /**
68
+ *
69
+ * @type {Array<string>}
70
+ * @memberof RegisterCoachProfileDto
71
+ */
72
+ specialties?: Array<string>;
73
+ /**
74
+ *
75
+ * @type {Array<string>}
76
+ * @memberof RegisterCoachProfileDto
77
+ */
78
+ certifications?: Array<string>;
79
+ /**
80
+ *
81
+ * @type {Array<string>}
82
+ * @memberof RegisterCoachProfileDto
83
+ */
84
+ photoUrls?: Array<string>;
85
+ /**
86
+ * Base64 encoded photos to upload (data:image/jpeg;base64,...)
87
+ * @type {Array<string>}
88
+ * @memberof RegisterCoachProfileDto
89
+ */
90
+ photoBase64s?: Array<string>;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof RegisterCoachProfileDto
95
+ */
96
+ heroPhotoUrl?: string;
97
+ /**
98
+ * Base64 encoded hero/banner image (data:image/jpeg;base64,...)
99
+ * @type {string}
100
+ * @memberof RegisterCoachProfileDto
101
+ */
102
+ heroPhotoBase64?: string;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof RegisterCoachProfileDto
107
+ */
108
+ profileColor?: string;
109
+ /**
110
+ *
111
+ * @type {boolean}
112
+ * @memberof RegisterCoachProfileDto
113
+ */
114
+ isActive?: boolean;
115
+ /**
116
+ *
117
+ * @type {Array<CoachLocationRegistrationDto>}
118
+ * @memberof RegisterCoachProfileDto
119
+ */
120
+ locations: Array<CoachLocationRegistrationDto>;
121
+ /**
122
+ *
123
+ * @type {boolean}
124
+ * @memberof RegisterCoachProfileDto
125
+ */
126
+ mercadoPagoLinked?: boolean;
127
+ /**
128
+ *
129
+ * @type {boolean}
130
+ * @memberof RegisterCoachProfileDto
131
+ */
132
+ allowCashPayment?: boolean;
133
+ /**
134
+ *
135
+ * @type {boolean}
136
+ * @memberof RegisterCoachProfileDto
137
+ */
138
+ communityAlertEnabled?: boolean;
139
+ }
140
+
141
+ /**
142
+ * Check if a given object implements the RegisterCoachProfileDto interface.
143
+ */
144
+ export function instanceOfRegisterCoachProfileDto(value: object): value is RegisterCoachProfileDto {
145
+ if (!('user' in value) || value['user'] === undefined) return false;
146
+ if (!('sport' in value) || value['sport'] === undefined) return false;
147
+ if (!('playerCategory' in value) || value['playerCategory'] === undefined) return false;
148
+ if (!('categories' in value) || value['categories'] === undefined) return false;
149
+ if (!('locations' in value) || value['locations'] === undefined) return false;
150
+ return true;
151
+ }
152
+
153
+ export function RegisterCoachProfileDtoFromJSON(json: any): RegisterCoachProfileDto {
154
+ return RegisterCoachProfileDtoFromJSONTyped(json, false);
155
+ }
156
+
157
+ export function RegisterCoachProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterCoachProfileDto {
158
+ if (json == null) {
159
+ return json;
160
+ }
161
+ return {
162
+
163
+ 'user': UserDtoFromJSON(json['user']),
164
+ 'sport': json['sport'],
165
+ 'playerCategory': json['playerCategory'],
166
+ 'categories': json['categories'],
167
+ 'yearsExperience': json['yearsExperience'] == null ? undefined : json['yearsExperience'],
168
+ 'specialties': json['specialties'] == null ? undefined : json['specialties'],
169
+ 'certifications': json['certifications'] == null ? undefined : json['certifications'],
170
+ 'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
171
+ 'photoBase64s': json['photoBase64s'] == null ? undefined : json['photoBase64s'],
172
+ 'heroPhotoUrl': json['heroPhotoUrl'] == null ? undefined : json['heroPhotoUrl'],
173
+ 'heroPhotoBase64': json['heroPhotoBase64'] == null ? undefined : json['heroPhotoBase64'],
174
+ 'profileColor': json['profileColor'] == null ? undefined : json['profileColor'],
175
+ 'isActive': json['isActive'] == null ? undefined : json['isActive'],
176
+ 'locations': ((json['locations'] as Array<any>).map(CoachLocationRegistrationDtoFromJSON)),
177
+ 'mercadoPagoLinked': json['mercadoPagoLinked'] == null ? undefined : json['mercadoPagoLinked'],
178
+ 'allowCashPayment': json['allowCashPayment'] == null ? undefined : json['allowCashPayment'],
179
+ 'communityAlertEnabled': json['communityAlertEnabled'] == null ? undefined : json['communityAlertEnabled'],
180
+ };
181
+ }
182
+
183
+ export function RegisterCoachProfileDtoToJSON(json: any): RegisterCoachProfileDto {
184
+ return RegisterCoachProfileDtoToJSONTyped(json, false);
185
+ }
186
+
187
+ export function RegisterCoachProfileDtoToJSONTyped(value?: RegisterCoachProfileDto | null, ignoreDiscriminator: boolean = false): any {
188
+ if (value == null) {
189
+ return value;
190
+ }
191
+
192
+ return {
193
+
194
+ 'user': UserDtoToJSON(value['user']),
195
+ 'sport': value['sport'],
196
+ 'playerCategory': value['playerCategory'],
197
+ 'categories': value['categories'],
198
+ 'yearsExperience': value['yearsExperience'],
199
+ 'specialties': value['specialties'],
200
+ 'certifications': value['certifications'],
201
+ 'photoUrls': value['photoUrls'],
202
+ 'photoBase64s': value['photoBase64s'],
203
+ 'heroPhotoUrl': value['heroPhotoUrl'],
204
+ 'heroPhotoBase64': value['heroPhotoBase64'],
205
+ 'profileColor': value['profileColor'],
206
+ 'isActive': value['isActive'],
207
+ 'locations': ((value['locations'] as Array<any>).map(CoachLocationRegistrationDtoToJSON)),
208
+ 'mercadoPagoLinked': value['mercadoPagoLinked'],
209
+ 'allowCashPayment': value['allowCashPayment'],
210
+ 'communityAlertEnabled': value['communityAlertEnabled'],
211
+ };
212
+ }
213
+
@@ -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 RegisterCoachProfileResponseDto
20
+ */
21
+ export interface RegisterCoachProfileResponseDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof RegisterCoachProfileResponseDto
26
+ */
27
+ coachProfileId?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RegisterCoachProfileResponseDto
32
+ */
33
+ teamId?: string;
34
+ /**
35
+ *
36
+ * @type {Array<string>}
37
+ * @memberof RegisterCoachProfileResponseDto
38
+ */
39
+ locationIds?: Array<string>;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof RegisterCoachProfileResponseDto
44
+ */
45
+ status?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the RegisterCoachProfileResponseDto interface.
50
+ */
51
+ export function instanceOfRegisterCoachProfileResponseDto(value: object): value is RegisterCoachProfileResponseDto {
52
+ return true;
53
+ }
54
+
55
+ export function RegisterCoachProfileResponseDtoFromJSON(json: any): RegisterCoachProfileResponseDto {
56
+ return RegisterCoachProfileResponseDtoFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function RegisterCoachProfileResponseDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterCoachProfileResponseDto {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'coachProfileId': json['coachProfileId'] == null ? undefined : json['coachProfileId'],
66
+ 'teamId': json['teamId'] == null ? undefined : json['teamId'],
67
+ 'locationIds': json['locationIds'] == null ? undefined : json['locationIds'],
68
+ 'status': json['status'] == null ? undefined : json['status'],
69
+ };
70
+ }
71
+
72
+ export function RegisterCoachProfileResponseDtoToJSON(json: any): RegisterCoachProfileResponseDto {
73
+ return RegisterCoachProfileResponseDtoToJSONTyped(json, false);
74
+ }
75
+
76
+ export function RegisterCoachProfileResponseDtoToJSONTyped(value?: RegisterCoachProfileResponseDto | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'coachProfileId': value['coachProfileId'],
84
+ 'teamId': value['teamId'],
85
+ 'locationIds': value['locationIds'],
86
+ 'status': value['status'],
87
+ };
88
+ }
89
+
@@ -21,6 +21,7 @@ export const ReserveStatus = {
21
21
  Pending: 'PENDING',
22
22
  PendingPayment: 'PENDING_PAYMENT',
23
23
  PendingApproval: 'PENDING_APPROVAL',
24
+ PreReservation: 'PRE_RESERVATION',
24
25
  Confirmed: 'CONFIRMED',
25
26
  Cancelled: 'CANCELLED',
26
27
  Refunded: 'REFUNDED'