@jugarhoy/api 1.1.16 → 1.1.17
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 +350 -0
- package/apis/CoachPricingApi.ts +263 -0
- package/apis/CoachWorkspaceApi.ts +254 -0
- package/apis/PlayerCoachBookingApi.ts +244 -0
- package/apis/index.ts +4 -0
- package/models/ActivateCoachProfileRequest.ts +81 -0
- package/models/AddCoachLocation200Response.ts +103 -0
- package/models/AddCoachLocationRequest.ts +120 -0
- package/models/BookCoachClassDto.ts +130 -0
- package/models/CoachAvailabilityDto.ts +108 -0
- package/models/CoachClassFilters.ts +99 -0
- package/models/CoachProfileDto.ts +160 -0
- package/models/CoachProfileDtoRating.ts +73 -0
- package/models/CoachSearchParams.ts +91 -0
- package/models/CreateCoachPriceDto.ts +122 -0
- package/models/DefineCoachScheduleRequest.ts +83 -0
- package/models/DefineCoachScheduleRequestShiftsInner.ts +110 -0
- package/models/ReservationParams.ts +8 -0
- package/models/SaveCoachBasicInfoRequest.ts +91 -0
- package/models/TrainerFeedDto.ts +99 -0
- package/models/TrainerFeedDtoStats.ts +89 -0
- package/models/UpdateCoachPriceDto.ts +116 -0
- package/models/UserCoachProfile.ts +187 -0
- package/models/UserCoachProfileRating.ts +73 -0
- package/models/index.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TrainerFeedDtoStats
|
|
20
|
+
*/
|
|
21
|
+
export interface TrainerFeedDtoStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof TrainerFeedDtoStats
|
|
26
|
+
*/
|
|
27
|
+
totalClassesToday?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof TrainerFeedDtoStats
|
|
32
|
+
*/
|
|
33
|
+
totalClassesThisWeek?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof TrainerFeedDtoStats
|
|
38
|
+
*/
|
|
39
|
+
totalClassesThisMonth?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof TrainerFeedDtoStats
|
|
44
|
+
*/
|
|
45
|
+
activeStudents?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the TrainerFeedDtoStats interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfTrainerFeedDtoStats(value: object): value is TrainerFeedDtoStats {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function TrainerFeedDtoStatsFromJSON(json: any): TrainerFeedDtoStats {
|
|
56
|
+
return TrainerFeedDtoStatsFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function TrainerFeedDtoStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TrainerFeedDtoStats {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'totalClassesToday': json['totalClassesToday'] == null ? undefined : json['totalClassesToday'],
|
|
66
|
+
'totalClassesThisWeek': json['totalClassesThisWeek'] == null ? undefined : json['totalClassesThisWeek'],
|
|
67
|
+
'totalClassesThisMonth': json['totalClassesThisMonth'] == null ? undefined : json['totalClassesThisMonth'],
|
|
68
|
+
'activeStudents': json['activeStudents'] == null ? undefined : json['activeStudents'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function TrainerFeedDtoStatsToJSON(json: any): TrainerFeedDtoStats {
|
|
73
|
+
return TrainerFeedDtoStatsToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function TrainerFeedDtoStatsToJSONTyped(value?: TrainerFeedDtoStats | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'totalClassesToday': value['totalClassesToday'],
|
|
84
|
+
'totalClassesThisWeek': value['totalClassesThisWeek'],
|
|
85
|
+
'totalClassesThisMonth': value['totalClassesThisMonth'],
|
|
86
|
+
'activeStudents': value['activeStudents'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,116 @@
|
|
|
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 UpdateCoachPriceDto
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateCoachPriceDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateCoachPriceDto
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UpdateCoachPriceDto
|
|
32
|
+
*/
|
|
33
|
+
duration?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof UpdateCoachPriceDto
|
|
38
|
+
*/
|
|
39
|
+
price?: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof UpdateCoachPriceDto
|
|
44
|
+
*/
|
|
45
|
+
playSpotShiftIds?: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof UpdateCoachPriceDto
|
|
50
|
+
*/
|
|
51
|
+
isSubscription?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UpdateCoachPriceDto
|
|
56
|
+
*/
|
|
57
|
+
chargeOn?: UpdateCoachPriceDtoChargeOnEnum;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const UpdateCoachPriceDtoChargeOnEnum = {
|
|
65
|
+
Session: 'session',
|
|
66
|
+
Subscription: 'subscription'
|
|
67
|
+
} as const;
|
|
68
|
+
export type UpdateCoachPriceDtoChargeOnEnum = typeof UpdateCoachPriceDtoChargeOnEnum[keyof typeof UpdateCoachPriceDtoChargeOnEnum];
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the UpdateCoachPriceDto interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfUpdateCoachPriceDto(value: object): value is UpdateCoachPriceDto {
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function UpdateCoachPriceDtoFromJSON(json: any): UpdateCoachPriceDto {
|
|
79
|
+
return UpdateCoachPriceDtoFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function UpdateCoachPriceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCoachPriceDto {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
89
|
+
'duration': json['duration'] == null ? undefined : json['duration'],
|
|
90
|
+
'price': json['price'] == null ? undefined : json['price'],
|
|
91
|
+
'playSpotShiftIds': json['playSpotShiftIds'] == null ? undefined : json['playSpotShiftIds'],
|
|
92
|
+
'isSubscription': json['isSubscription'] == null ? undefined : json['isSubscription'],
|
|
93
|
+
'chargeOn': json['chargeOn'] == null ? undefined : json['chargeOn'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function UpdateCoachPriceDtoToJSON(json: any): UpdateCoachPriceDto {
|
|
98
|
+
return UpdateCoachPriceDtoToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function UpdateCoachPriceDtoToJSONTyped(value?: UpdateCoachPriceDto | null, ignoreDiscriminator: boolean = false): any {
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'name': value['name'],
|
|
109
|
+
'duration': value['duration'],
|
|
110
|
+
'price': value['price'],
|
|
111
|
+
'playSpotShiftIds': value['playSpotShiftIds'],
|
|
112
|
+
'isSubscription': value['isSubscription'],
|
|
113
|
+
'chargeOn': value['chargeOn'],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
@@ -0,0 +1,187 @@
|
|
|
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 { UserCoachProfileRating } from './UserCoachProfileRating';
|
|
17
|
+
import {
|
|
18
|
+
UserCoachProfileRatingFromJSON,
|
|
19
|
+
UserCoachProfileRatingFromJSONTyped,
|
|
20
|
+
UserCoachProfileRatingToJSON,
|
|
21
|
+
UserCoachProfileRatingToJSONTyped,
|
|
22
|
+
} from './UserCoachProfileRating';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UserCoachProfile
|
|
28
|
+
*/
|
|
29
|
+
export interface UserCoachProfile {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the coach profile
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UserCoachProfile
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* User ID (links to User model)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UserCoachProfile
|
|
40
|
+
*/
|
|
41
|
+
userId: string;
|
|
42
|
+
/**
|
|
43
|
+
* Array of sports the coach teaches
|
|
44
|
+
* @type {Array<string>}
|
|
45
|
+
* @memberof UserCoachProfile
|
|
46
|
+
*/
|
|
47
|
+
sports: Array<string>;
|
|
48
|
+
/**
|
|
49
|
+
* Player categories (KIDS, ADULTS, etc.)
|
|
50
|
+
* @type {Array<string>}
|
|
51
|
+
* @memberof UserCoachProfile
|
|
52
|
+
*/
|
|
53
|
+
categories: Array<string>;
|
|
54
|
+
/**
|
|
55
|
+
* Coach portfolio/certification photos
|
|
56
|
+
* @type {Array<string>}
|
|
57
|
+
* @memberof UserCoachProfile
|
|
58
|
+
*/
|
|
59
|
+
photoUrls?: Array<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Coach biography
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UserCoachProfile
|
|
64
|
+
*/
|
|
65
|
+
bio?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Profile status
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UserCoachProfile
|
|
70
|
+
*/
|
|
71
|
+
status: UserCoachProfileStatusEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Whether MercadoPago account is linked
|
|
74
|
+
* @type {boolean}
|
|
75
|
+
* @memberof UserCoachProfile
|
|
76
|
+
*/
|
|
77
|
+
mercadoPagoLinked?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* MercadoPago account ID
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof UserCoachProfile
|
|
82
|
+
*/
|
|
83
|
+
mercadoPagoAccountId?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Whether coach accepts cash payments
|
|
86
|
+
* @type {boolean}
|
|
87
|
+
* @memberof UserCoachProfile
|
|
88
|
+
*/
|
|
89
|
+
allowCashPayment?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {UserCoachProfileRating}
|
|
93
|
+
* @memberof UserCoachProfile
|
|
94
|
+
*/
|
|
95
|
+
rating?: UserCoachProfileRating;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Date}
|
|
99
|
+
* @memberof UserCoachProfile
|
|
100
|
+
*/
|
|
101
|
+
createdAt?: Date;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {Date}
|
|
105
|
+
* @memberof UserCoachProfile
|
|
106
|
+
*/
|
|
107
|
+
updatedAt?: Date;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export const UserCoachProfileStatusEnum = {
|
|
115
|
+
Inactive: 'INACTIVE',
|
|
116
|
+
Active: 'ACTIVE',
|
|
117
|
+
Suspended: 'SUSPENDED',
|
|
118
|
+
Deactivated: 'DEACTIVATED'
|
|
119
|
+
} as const;
|
|
120
|
+
export type UserCoachProfileStatusEnum = typeof UserCoachProfileStatusEnum[keyof typeof UserCoachProfileStatusEnum];
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Check if a given object implements the UserCoachProfile interface.
|
|
125
|
+
*/
|
|
126
|
+
export function instanceOfUserCoachProfile(value: object): value is UserCoachProfile {
|
|
127
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
128
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
129
|
+
if (!('sports' in value) || value['sports'] === undefined) return false;
|
|
130
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
131
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
132
|
+
return true;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function UserCoachProfileFromJSON(json: any): UserCoachProfile {
|
|
136
|
+
return UserCoachProfileFromJSONTyped(json, false);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function UserCoachProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCoachProfile {
|
|
140
|
+
if (json == null) {
|
|
141
|
+
return json;
|
|
142
|
+
}
|
|
143
|
+
return {
|
|
144
|
+
|
|
145
|
+
'id': json['id'],
|
|
146
|
+
'userId': json['userId'],
|
|
147
|
+
'sports': json['sports'],
|
|
148
|
+
'categories': json['categories'],
|
|
149
|
+
'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
|
|
150
|
+
'bio': json['bio'] == null ? undefined : json['bio'],
|
|
151
|
+
'status': json['status'],
|
|
152
|
+
'mercadoPagoLinked': json['mercadoPagoLinked'] == null ? undefined : json['mercadoPagoLinked'],
|
|
153
|
+
'mercadoPagoAccountId': json['mercadoPagoAccountId'] == null ? undefined : json['mercadoPagoAccountId'],
|
|
154
|
+
'allowCashPayment': json['allowCashPayment'] == null ? undefined : json['allowCashPayment'],
|
|
155
|
+
'rating': json['rating'] == null ? undefined : UserCoachProfileRatingFromJSON(json['rating']),
|
|
156
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
157
|
+
'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function UserCoachProfileToJSON(json: any): UserCoachProfile {
|
|
162
|
+
return UserCoachProfileToJSONTyped(json, false);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export function UserCoachProfileToJSONTyped(value?: UserCoachProfile | null, ignoreDiscriminator: boolean = false): any {
|
|
166
|
+
if (value == null) {
|
|
167
|
+
return value;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return {
|
|
171
|
+
|
|
172
|
+
'id': value['id'],
|
|
173
|
+
'userId': value['userId'],
|
|
174
|
+
'sports': value['sports'],
|
|
175
|
+
'categories': value['categories'],
|
|
176
|
+
'photoUrls': value['photoUrls'],
|
|
177
|
+
'bio': value['bio'],
|
|
178
|
+
'status': value['status'],
|
|
179
|
+
'mercadoPagoLinked': value['mercadoPagoLinked'],
|
|
180
|
+
'mercadoPagoAccountId': value['mercadoPagoAccountId'],
|
|
181
|
+
'allowCashPayment': value['allowCashPayment'],
|
|
182
|
+
'rating': UserCoachProfileRatingToJSON(value['rating']),
|
|
183
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
184
|
+
'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
* Coach rating
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UserCoachProfileRating
|
|
20
|
+
*/
|
|
21
|
+
export interface UserCoachProfileRating {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UserCoachProfileRating
|
|
26
|
+
*/
|
|
27
|
+
rating?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof UserCoachProfileRating
|
|
32
|
+
*/
|
|
33
|
+
reviewCount?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the UserCoachProfileRating interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfUserCoachProfileRating(value: object): value is UserCoachProfileRating {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function UserCoachProfileRatingFromJSON(json: any): UserCoachProfileRating {
|
|
44
|
+
return UserCoachProfileRatingFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function UserCoachProfileRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCoachProfileRating {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'rating': json['rating'] == null ? undefined : json['rating'],
|
|
54
|
+
'reviewCount': json['reviewCount'] == null ? undefined : json['reviewCount'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function UserCoachProfileRatingToJSON(json: any): UserCoachProfileRating {
|
|
59
|
+
return UserCoachProfileRatingToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function UserCoachProfileRatingToJSONTyped(value?: UserCoachProfileRating | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'rating': value['rating'],
|
|
70
|
+
'reviewCount': value['reviewCount'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
package/models/index.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ActivateCoachProfileRequest';
|
|
4
|
+
export * from './AddCoachLocation200Response';
|
|
5
|
+
export * from './AddCoachLocationRequest';
|
|
3
6
|
export * from './AddCoachToSubscriptionRequest';
|
|
4
7
|
export * from './AddMemberToSubscriptionRequest';
|
|
5
8
|
export * from './AddPlayerToSubscriptionRequest';
|
|
@@ -27,6 +30,7 @@ export * from './AvailabilityShiftSpot';
|
|
|
27
30
|
export * from './BlockSpotItem';
|
|
28
31
|
export * from './BlockSpots200Response';
|
|
29
32
|
export * from './BlockSpotsCommand';
|
|
33
|
+
export * from './BookCoachClassDto';
|
|
30
34
|
export * from './CancelReservationParams';
|
|
31
35
|
export * from './CancelReservationRequest';
|
|
32
36
|
export * from './CancelReservationResult';
|
|
@@ -43,8 +47,13 @@ export * from './ClubSearchResponse';
|
|
|
43
47
|
export * from './ClubSearchResponseDataInner';
|
|
44
48
|
export * from './ClubSearchResponsePagination';
|
|
45
49
|
export * from './Coach';
|
|
50
|
+
export * from './CoachAvailabilityDto';
|
|
51
|
+
export * from './CoachClassFilters';
|
|
46
52
|
export * from './CoachDto';
|
|
47
53
|
export * from './CoachDtoAvailabilityInner';
|
|
54
|
+
export * from './CoachProfileDto';
|
|
55
|
+
export * from './CoachProfileDtoRating';
|
|
56
|
+
export * from './CoachSearchParams';
|
|
48
57
|
export * from './ComputedValueType';
|
|
49
58
|
export * from './ConfirmReservationParams';
|
|
50
59
|
export * from './ConfirmReservationResponse';
|
|
@@ -58,6 +67,7 @@ export * from './CreateClubForSuperadminResponse';
|
|
|
58
67
|
export * from './CreateClubForSuperadminResponseResult';
|
|
59
68
|
export * from './CreateClubForSuperadminResponseResultAdminUser';
|
|
60
69
|
export * from './CreateClubPlaceRequest';
|
|
70
|
+
export * from './CreateCoachPriceDto';
|
|
61
71
|
export * from './CreateCustomerPaymentConfigDto';
|
|
62
72
|
export * from './CreateDefault500Response';
|
|
63
73
|
export * from './CreateFeatureRequest';
|
|
@@ -83,6 +93,8 @@ export * from './CustomerServiceConfig';
|
|
|
83
93
|
export * from './CustomerServiceConfigDto';
|
|
84
94
|
export * from './CustomerStatus';
|
|
85
95
|
export * from './DayOfWeek';
|
|
96
|
+
export * from './DefineCoachScheduleRequest';
|
|
97
|
+
export * from './DefineCoachScheduleRequestShiftsInner';
|
|
86
98
|
export * from './DeleteShift200Response';
|
|
87
99
|
export * from './Device';
|
|
88
100
|
export * from './DeviceDto';
|
|
@@ -217,6 +229,7 @@ export * from './ResetPassword200Response';
|
|
|
217
229
|
export * from './ResetPassword400Response';
|
|
218
230
|
export * from './ResetPassword500Response';
|
|
219
231
|
export * from './ResetPasswordRequest';
|
|
232
|
+
export * from './SaveCoachBasicInfoRequest';
|
|
220
233
|
export * from './SavePushTokenRequest';
|
|
221
234
|
export * from './SearchClubs400Response';
|
|
222
235
|
export * from './SearchClubs500Response';
|
|
@@ -248,10 +261,13 @@ export * from './TestNotificationTemplateRequest';
|
|
|
248
261
|
export * from './TimeOfDay';
|
|
249
262
|
export * from './ToggleNotificationByType200Response';
|
|
250
263
|
export * from './ToggleServiceConfigRequest';
|
|
264
|
+
export * from './TrainerFeedDto';
|
|
265
|
+
export * from './TrainerFeedDtoStats';
|
|
251
266
|
export * from './TriggerDeviceAction200Response';
|
|
252
267
|
export * from './TriggerDeviceActionRequest';
|
|
253
268
|
export * from './UnreadCountResponseDto';
|
|
254
269
|
export * from './UpdateBillRequest';
|
|
270
|
+
export * from './UpdateCoachPriceDto';
|
|
255
271
|
export * from './UpdateFeatureRequest';
|
|
256
272
|
export * from './UpdateMemberRoleRequest';
|
|
257
273
|
export * from './UpdateRecurringGameRequest';
|
|
@@ -263,6 +279,8 @@ export * from './UpdateUserNotificationDto';
|
|
|
263
279
|
export * from './UpsertNotificationTemplateRequest';
|
|
264
280
|
export * from './User';
|
|
265
281
|
export * from './UserAuth';
|
|
282
|
+
export * from './UserCoachProfile';
|
|
283
|
+
export * from './UserCoachProfileRating';
|
|
266
284
|
export * from './UserDto';
|
|
267
285
|
export * from './UserInvitation';
|
|
268
286
|
export * from './UserNotificationConfig';
|