@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.
- package/apis/CoachApi.ts +1199 -42
- package/apis/CoachWorkspaceApi.ts +93 -0
- package/apis/MyActivitiesApi.ts +72 -0
- package/apis/PlayerCoachBookingApi.ts +92 -7
- package/apis/PublicCoachDiscoveryApi.ts +292 -0
- package/apis/SubscriptionsApi.ts +64 -0
- package/apis/index.ts +3 -0
- package/models/AddCoachSubscriptionMemberRequest.ts +97 -0
- package/models/AddShiftWithLocationDto.ts +231 -0
- package/models/AgendaSlotDto.ts +142 -0
- package/models/CoachClassDetailDto.ts +88 -0
- package/models/CoachClassFilters.ts +3 -3
- package/models/CoachClassLocationDto.ts +89 -0
- package/models/CoachLocationRegistrationDto.ts +149 -0
- package/models/CoachPaymentsDto.ts +81 -0
- package/models/CoachProfileDto.ts +104 -0
- package/models/CoachPublicSubscriptionDto.ts +183 -0
- package/models/CoachSearchParams.ts +42 -2
- package/models/CoachShiftInputDto.ts +170 -0
- package/models/CoachShiftRegistrationDto.ts +176 -0
- package/models/CoachTeamPlayerDto.ts +97 -0
- package/models/CoachTrainingTeamDto.ts +121 -0
- package/models/CoachWorkspaceLocationDto.ts +137 -0
- package/models/CoachWorkspaceProfileDto.ts +225 -0
- package/models/CoachWorkspaceShiftDto.ts +201 -0
- package/models/CreatePreReservationDto.ts +110 -0
- package/models/CreateRecurringGameRequest.ts +27 -0
- package/models/DayAgendaDto.ts +89 -0
- package/models/GenerateCoachSubscriptionBillsRequest.ts +74 -0
- package/models/GetCoachMercadoPagoAuthUrl200Response.ts +65 -0
- package/models/GetCoachSubscriptionMemberDebt200ResponseInner.ts +81 -0
- package/models/LinkCoachMercadoPagoRequest.ts +66 -0
- package/models/LinkPreview.ts +97 -0
- package/models/LinkShiftToTeamRequest.ts +65 -0
- package/models/MarkCoachSubscriptionBillPaid200Response.ts +65 -0
- package/models/PlaySubscription.ts +8 -0
- package/models/PublicAgendaSlotDto.ts +102 -0
- package/models/PublicDayAgendaDto.ts +92 -0
- package/models/PublicWeeklyAgendaDto.ts +83 -0
- package/models/RecurringGame.ts +27 -0
- package/models/RecurringGameResponse.ts +29 -0
- package/models/RegisterCoachProfileDto.ts +213 -0
- package/models/RegisterCoachProfileResponseDto.ts +89 -0
- package/models/ReserveStatus.ts +1 -0
- package/models/SubscriptionRequestResponseDto.ts +96 -0
- package/models/TeamResponse.ts +16 -0
- package/models/TrainingSubscriptionDto.ts +167 -0
- package/models/UpcomingActivityDto.ts +217 -0
- package/models/UpdateCoachProfileDto.ts +161 -0
- package/models/UpdateRecurringGameRequest.ts +27 -0
- package/models/UserDto.ts +31 -0
- package/models/UserReserveDto.ts +41 -0
- package/models/WeeklyAgendaDto.ts +81 -0
- package/models/index.ts +34 -0
- package/package.json +1 -1
|
@@ -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
|
+
|
|
@@ -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
|
+
|