@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
@@ -34,17 +34,47 @@ export interface CoachSearchParams {
34
34
  */
35
35
  sport?: Sport;
36
36
  /**
37
- * Filter by location ID
37
+ * Filter by specific location ID
38
38
  * @type {string}
39
39
  * @memberof CoachSearchParams
40
40
  */
41
41
  locationId?: string;
42
42
  /**
43
- * Filter by category
43
+ * Filter by player category coached
44
44
  * @type {string}
45
45
  * @memberof CoachSearchParams
46
46
  */
47
47
  category?: string;
48
+ /**
49
+ * Geo-search center latitude (required when using radius search)
50
+ * @type {number}
51
+ * @memberof CoachSearchParams
52
+ */
53
+ latitude?: number;
54
+ /**
55
+ * Geo-search center longitude (required when using radius search)
56
+ * @type {number}
57
+ * @memberof CoachSearchParams
58
+ */
59
+ longitude?: number;
60
+ /**
61
+ * Search radius in km (default 10). Requires latitude + longitude.
62
+ * @type {number}
63
+ * @memberof CoachSearchParams
64
+ */
65
+ radiusKm?: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof CoachSearchParams
70
+ */
71
+ page?: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof CoachSearchParams
76
+ */
77
+ size?: number;
48
78
  }
49
79
 
50
80
 
@@ -69,6 +99,11 @@ export function CoachSearchParamsFromJSONTyped(json: any, ignoreDiscriminator: b
69
99
  'sport': json['sport'] == null ? undefined : SportFromJSON(json['sport']),
70
100
  'locationId': json['locationId'] == null ? undefined : json['locationId'],
71
101
  'category': json['category'] == null ? undefined : json['category'],
102
+ 'latitude': json['latitude'] == null ? undefined : json['latitude'],
103
+ 'longitude': json['longitude'] == null ? undefined : json['longitude'],
104
+ 'radiusKm': json['radiusKm'] == null ? undefined : json['radiusKm'],
105
+ 'page': json['page'] == null ? undefined : json['page'],
106
+ 'size': json['size'] == null ? undefined : json['size'],
72
107
  };
73
108
  }
74
109
 
@@ -86,6 +121,11 @@ export function CoachSearchParamsToJSONTyped(value?: CoachSearchParams | null, i
86
121
  'sport': SportToJSON(value['sport']),
87
122
  'locationId': value['locationId'],
88
123
  'category': value['category'],
124
+ 'latitude': value['latitude'],
125
+ 'longitude': value['longitude'],
126
+ 'radiusKm': value['radiusKm'],
127
+ 'page': value['page'],
128
+ 'size': value['size'],
89
129
  };
90
130
  }
91
131
 
@@ -0,0 +1,170 @@
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 CoachShiftInputDto
20
+ */
21
+ export interface CoachShiftInputDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CoachShiftInputDto
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof CoachShiftInputDto
32
+ */
33
+ days: Array<string>;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CoachShiftInputDto
38
+ */
39
+ fromHour: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CoachShiftInputDto
44
+ */
45
+ toHour: string;
46
+ /**
47
+ *
48
+ * @type {Array<number>}
49
+ * @memberof CoachShiftInputDto
50
+ */
51
+ durations: Array<number>;
52
+ /**
53
+ *
54
+ * @type {boolean}
55
+ * @memberof CoachShiftInputDto
56
+ */
57
+ isGroupal: boolean;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof CoachShiftInputDto
62
+ */
63
+ maxPlayers?: number;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof CoachShiftInputDto
68
+ */
69
+ billingType?: CoachShiftInputDtoBillingTypeEnum;
70
+ /**
71
+ *
72
+ * @type {{ [key: string]: number; }}
73
+ * @memberof CoachShiftInputDto
74
+ */
75
+ pricePerDuration?: { [key: string]: number; };
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof CoachShiftInputDto
80
+ */
81
+ monthlyPrice?: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof CoachShiftInputDto
86
+ */
87
+ pricePerClass?: number;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof CoachShiftInputDto
92
+ */
93
+ teamId?: string;
94
+ }
95
+
96
+
97
+ /**
98
+ * @export
99
+ */
100
+ export const CoachShiftInputDtoBillingTypeEnum = {
101
+ PerClass: 'PER_CLASS',
102
+ Monthly: 'MONTHLY'
103
+ } as const;
104
+ export type CoachShiftInputDtoBillingTypeEnum = typeof CoachShiftInputDtoBillingTypeEnum[keyof typeof CoachShiftInputDtoBillingTypeEnum];
105
+
106
+
107
+ /**
108
+ * Check if a given object implements the CoachShiftInputDto interface.
109
+ */
110
+ export function instanceOfCoachShiftInputDto(value: object): value is CoachShiftInputDto {
111
+ if (!('name' in value) || value['name'] === undefined) return false;
112
+ if (!('days' in value) || value['days'] === undefined) return false;
113
+ if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
114
+ if (!('toHour' in value) || value['toHour'] === undefined) return false;
115
+ if (!('durations' in value) || value['durations'] === undefined) return false;
116
+ if (!('isGroupal' in value) || value['isGroupal'] === undefined) return false;
117
+ return true;
118
+ }
119
+
120
+ export function CoachShiftInputDtoFromJSON(json: any): CoachShiftInputDto {
121
+ return CoachShiftInputDtoFromJSONTyped(json, false);
122
+ }
123
+
124
+ export function CoachShiftInputDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachShiftInputDto {
125
+ if (json == null) {
126
+ return json;
127
+ }
128
+ return {
129
+
130
+ 'name': json['name'],
131
+ 'days': json['days'],
132
+ 'fromHour': json['fromHour'],
133
+ 'toHour': json['toHour'],
134
+ 'durations': json['durations'],
135
+ 'isGroupal': json['isGroupal'],
136
+ 'maxPlayers': json['maxPlayers'] == null ? undefined : json['maxPlayers'],
137
+ 'billingType': json['billingType'] == null ? undefined : json['billingType'],
138
+ 'pricePerDuration': json['pricePerDuration'] == null ? undefined : json['pricePerDuration'],
139
+ 'monthlyPrice': json['monthlyPrice'] == null ? undefined : json['monthlyPrice'],
140
+ 'pricePerClass': json['pricePerClass'] == null ? undefined : json['pricePerClass'],
141
+ 'teamId': json['teamId'] == null ? undefined : json['teamId'],
142
+ };
143
+ }
144
+
145
+ export function CoachShiftInputDtoToJSON(json: any): CoachShiftInputDto {
146
+ return CoachShiftInputDtoToJSONTyped(json, false);
147
+ }
148
+
149
+ export function CoachShiftInputDtoToJSONTyped(value?: CoachShiftInputDto | null, ignoreDiscriminator: boolean = false): any {
150
+ if (value == null) {
151
+ return value;
152
+ }
153
+
154
+ return {
155
+
156
+ 'name': value['name'],
157
+ 'days': value['days'],
158
+ 'fromHour': value['fromHour'],
159
+ 'toHour': value['toHour'],
160
+ 'durations': value['durations'],
161
+ 'isGroupal': value['isGroupal'],
162
+ 'maxPlayers': value['maxPlayers'],
163
+ 'billingType': value['billingType'],
164
+ 'pricePerDuration': value['pricePerDuration'],
165
+ 'monthlyPrice': value['monthlyPrice'],
166
+ 'pricePerClass': value['pricePerClass'],
167
+ 'teamId': value['teamId'],
168
+ };
169
+ }
170
+
@@ -0,0 +1,176 @@
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 CoachShiftRegistrationDto
20
+ */
21
+ export interface CoachShiftRegistrationDto {
22
+ /**
23
+ * Shift name/identifier
24
+ * @type {string}
25
+ * @memberof CoachShiftRegistrationDto
26
+ */
27
+ name: string;
28
+ /**
29
+ * Days of week (DayOfWeek enum values)
30
+ * @type {Array<string>}
31
+ * @memberof CoachShiftRegistrationDto
32
+ */
33
+ days: Array<string>;
34
+ /**
35
+ * Start time HH:MM
36
+ * @type {string}
37
+ * @memberof CoachShiftRegistrationDto
38
+ */
39
+ fromHour: string;
40
+ /**
41
+ * End time HH:MM
42
+ * @type {string}
43
+ * @memberof CoachShiftRegistrationDto
44
+ */
45
+ toHour: string;
46
+ /**
47
+ * Allowed session durations in minutes (individual sessions)
48
+ * @type {Array<number>}
49
+ * @memberof CoachShiftRegistrationDto
50
+ */
51
+ durations?: Array<number>;
52
+ /**
53
+ * Whether this is a group class shift
54
+ * @type {boolean}
55
+ * @memberof CoachShiftRegistrationDto
56
+ */
57
+ isGroupal?: boolean;
58
+ /**
59
+ * Max players per session (for group shifts)
60
+ * @type {number}
61
+ * @memberof CoachShiftRegistrationDto
62
+ */
63
+ maxPlayers?: number;
64
+ /**
65
+ * Billing model for group shifts
66
+ * @type {string}
67
+ * @memberof CoachShiftRegistrationDto
68
+ */
69
+ billingType?: CoachShiftRegistrationDtoBillingTypeEnum;
70
+ /**
71
+ * Monthly price if billingType=MONTHLY
72
+ * @type {number}
73
+ * @memberof CoachShiftRegistrationDto
74
+ */
75
+ monthlyPrice?: number;
76
+ /**
77
+ * Price per session if billingType=PER_CLASS
78
+ * @type {number}
79
+ * @memberof CoachShiftRegistrationDto
80
+ */
81
+ pricePerClass?: number;
82
+ /**
83
+ * Price per duration in minutes for individual sessions
84
+ * @type {object}
85
+ * @memberof CoachShiftRegistrationDto
86
+ */
87
+ pricePerDuration?: object;
88
+ /**
89
+ * Optional pre-existing Team to link (social/community)
90
+ * @type {string}
91
+ * @memberof CoachShiftRegistrationDto
92
+ */
93
+ teamId?: string;
94
+ /**
95
+ * Whether this shift is active
96
+ * @type {boolean}
97
+ * @memberof CoachShiftRegistrationDto
98
+ */
99
+ enabled?: boolean;
100
+ }
101
+
102
+
103
+ /**
104
+ * @export
105
+ */
106
+ export const CoachShiftRegistrationDtoBillingTypeEnum = {
107
+ PerClass: 'PER_CLASS',
108
+ Monthly: 'MONTHLY'
109
+ } as const;
110
+ export type CoachShiftRegistrationDtoBillingTypeEnum = typeof CoachShiftRegistrationDtoBillingTypeEnum[keyof typeof CoachShiftRegistrationDtoBillingTypeEnum];
111
+
112
+
113
+ /**
114
+ * Check if a given object implements the CoachShiftRegistrationDto interface.
115
+ */
116
+ export function instanceOfCoachShiftRegistrationDto(value: object): value is CoachShiftRegistrationDto {
117
+ if (!('name' in value) || value['name'] === undefined) return false;
118
+ if (!('days' in value) || value['days'] === undefined) return false;
119
+ if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
120
+ if (!('toHour' in value) || value['toHour'] === undefined) return false;
121
+ return true;
122
+ }
123
+
124
+ export function CoachShiftRegistrationDtoFromJSON(json: any): CoachShiftRegistrationDto {
125
+ return CoachShiftRegistrationDtoFromJSONTyped(json, false);
126
+ }
127
+
128
+ export function CoachShiftRegistrationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachShiftRegistrationDto {
129
+ if (json == null) {
130
+ return json;
131
+ }
132
+ return {
133
+
134
+ 'name': json['name'],
135
+ 'days': json['days'],
136
+ 'fromHour': json['fromHour'],
137
+ 'toHour': json['toHour'],
138
+ 'durations': json['durations'] == null ? undefined : json['durations'],
139
+ 'isGroupal': json['isGroupal'] == null ? undefined : json['isGroupal'],
140
+ 'maxPlayers': json['maxPlayers'] == null ? undefined : json['maxPlayers'],
141
+ 'billingType': json['billingType'] == null ? undefined : json['billingType'],
142
+ 'monthlyPrice': json['monthlyPrice'] == null ? undefined : json['monthlyPrice'],
143
+ 'pricePerClass': json['pricePerClass'] == null ? undefined : json['pricePerClass'],
144
+ 'pricePerDuration': json['pricePerDuration'] == null ? undefined : json['pricePerDuration'],
145
+ 'teamId': json['teamId'] == null ? undefined : json['teamId'],
146
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
147
+ };
148
+ }
149
+
150
+ export function CoachShiftRegistrationDtoToJSON(json: any): CoachShiftRegistrationDto {
151
+ return CoachShiftRegistrationDtoToJSONTyped(json, false);
152
+ }
153
+
154
+ export function CoachShiftRegistrationDtoToJSONTyped(value?: CoachShiftRegistrationDto | null, ignoreDiscriminator: boolean = false): any {
155
+ if (value == null) {
156
+ return value;
157
+ }
158
+
159
+ return {
160
+
161
+ 'name': value['name'],
162
+ 'days': value['days'],
163
+ 'fromHour': value['fromHour'],
164
+ 'toHour': value['toHour'],
165
+ 'durations': value['durations'],
166
+ 'isGroupal': value['isGroupal'],
167
+ 'maxPlayers': value['maxPlayers'],
168
+ 'billingType': value['billingType'],
169
+ 'monthlyPrice': value['monthlyPrice'],
170
+ 'pricePerClass': value['pricePerClass'],
171
+ 'pricePerDuration': value['pricePerDuration'],
172
+ 'teamId': value['teamId'],
173
+ 'enabled': value['enabled'],
174
+ };
175
+ }
176
+
@@ -0,0 +1,97 @@
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 CoachTeamPlayerDto
20
+ */
21
+ export interface CoachTeamPlayerDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CoachTeamPlayerDto
26
+ */
27
+ userId?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CoachTeamPlayerDto
32
+ */
33
+ firstName?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CoachTeamPlayerDto
38
+ */
39
+ lastName?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof CoachTeamPlayerDto
44
+ */
45
+ avatarUrl?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CoachTeamPlayerDto
50
+ */
51
+ phone?: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the CoachTeamPlayerDto interface.
56
+ */
57
+ export function instanceOfCoachTeamPlayerDto(value: object): value is CoachTeamPlayerDto {
58
+ return true;
59
+ }
60
+
61
+ export function CoachTeamPlayerDtoFromJSON(json: any): CoachTeamPlayerDto {
62
+ return CoachTeamPlayerDtoFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function CoachTeamPlayerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachTeamPlayerDto {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'userId': json['userId'] == null ? undefined : json['userId'],
72
+ 'firstName': json['firstName'] == null ? undefined : json['firstName'],
73
+ 'lastName': json['lastName'] == null ? undefined : json['lastName'],
74
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
75
+ 'phone': json['phone'] == null ? undefined : json['phone'],
76
+ };
77
+ }
78
+
79
+ export function CoachTeamPlayerDtoToJSON(json: any): CoachTeamPlayerDto {
80
+ return CoachTeamPlayerDtoToJSONTyped(json, false);
81
+ }
82
+
83
+ export function CoachTeamPlayerDtoToJSONTyped(value?: CoachTeamPlayerDto | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'userId': value['userId'],
91
+ 'firstName': value['firstName'],
92
+ 'lastName': value['lastName'],
93
+ 'avatarUrl': value['avatarUrl'],
94
+ 'phone': value['phone'],
95
+ };
96
+ }
97
+
@@ -0,0 +1,121 @@
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 CoachTrainingTeamDto
20
+ */
21
+ export interface CoachTrainingTeamDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CoachTrainingTeamDto
26
+ */
27
+ teamId?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CoachTrainingTeamDto
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof CoachTrainingTeamDto
38
+ */
39
+ sport?: string;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof CoachTrainingTeamDto
44
+ */
45
+ playerCount?: number;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof CoachTrainingTeamDto
50
+ */
51
+ inviteCode?: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof CoachTrainingTeamDto
56
+ */
57
+ avatarUrl?: string;
58
+ /**
59
+ * PlaySubscription linked to this team via a group shift
60
+ * @type {string}
61
+ * @memberof CoachTrainingTeamDto
62
+ */
63
+ subscriptionId?: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof CoachTrainingTeamDto
68
+ */
69
+ subscriptionName?: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the CoachTrainingTeamDto interface.
74
+ */
75
+ export function instanceOfCoachTrainingTeamDto(value: object): value is CoachTrainingTeamDto {
76
+ return true;
77
+ }
78
+
79
+ export function CoachTrainingTeamDtoFromJSON(json: any): CoachTrainingTeamDto {
80
+ return CoachTrainingTeamDtoFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function CoachTrainingTeamDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachTrainingTeamDto {
84
+ if (json == null) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'teamId': json['teamId'] == null ? undefined : json['teamId'],
90
+ 'name': json['name'] == null ? undefined : json['name'],
91
+ 'sport': json['sport'] == null ? undefined : json['sport'],
92
+ 'playerCount': json['playerCount'] == null ? undefined : json['playerCount'],
93
+ 'inviteCode': json['inviteCode'] == null ? undefined : json['inviteCode'],
94
+ 'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
95
+ 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
96
+ 'subscriptionName': json['subscriptionName'] == null ? undefined : json['subscriptionName'],
97
+ };
98
+ }
99
+
100
+ export function CoachTrainingTeamDtoToJSON(json: any): CoachTrainingTeamDto {
101
+ return CoachTrainingTeamDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function CoachTrainingTeamDtoToJSONTyped(value?: CoachTrainingTeamDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'teamId': value['teamId'],
112
+ 'name': value['name'],
113
+ 'sport': value['sport'],
114
+ 'playerCount': value['playerCount'],
115
+ 'inviteCode': value['inviteCode'],
116
+ 'avatarUrl': value['avatarUrl'],
117
+ 'subscriptionId': value['subscriptionId'],
118
+ 'subscriptionName': value['subscriptionName'],
119
+ };
120
+ }
121
+