@jugarhoy/api 1.1.16 → 1.1.18
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,120 @@
|
|
|
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 AddCoachLocationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AddCoachLocationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Google Place ID of the location
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AddCoachLocationRequest
|
|
26
|
+
*/
|
|
27
|
+
clubPlaceId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the club/place
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AddCoachLocationRequest
|
|
32
|
+
*/
|
|
33
|
+
clubPlaceName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Full address
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AddCoachLocationRequest
|
|
38
|
+
*/
|
|
39
|
+
address: string;
|
|
40
|
+
/**
|
|
41
|
+
* Latitude coordinate
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AddCoachLocationRequest
|
|
44
|
+
*/
|
|
45
|
+
latitude: number;
|
|
46
|
+
/**
|
|
47
|
+
* Longitude coordinate
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof AddCoachLocationRequest
|
|
50
|
+
*/
|
|
51
|
+
longitude: number;
|
|
52
|
+
/**
|
|
53
|
+
* Contact phone number
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AddCoachLocationRequest
|
|
56
|
+
*/
|
|
57
|
+
phone: string;
|
|
58
|
+
/**
|
|
59
|
+
* Sports available at this location
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof AddCoachLocationRequest
|
|
62
|
+
*/
|
|
63
|
+
sports: Array<string>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the AddCoachLocationRequest interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfAddCoachLocationRequest(value: object): value is AddCoachLocationRequest {
|
|
70
|
+
if (!('clubPlaceId' in value) || value['clubPlaceId'] === undefined) return false;
|
|
71
|
+
if (!('clubPlaceName' in value) || value['clubPlaceName'] === undefined) return false;
|
|
72
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
73
|
+
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
74
|
+
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
75
|
+
if (!('phone' in value) || value['phone'] === undefined) return false;
|
|
76
|
+
if (!('sports' in value) || value['sports'] === undefined) return false;
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AddCoachLocationRequestFromJSON(json: any): AddCoachLocationRequest {
|
|
81
|
+
return AddCoachLocationRequestFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AddCoachLocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddCoachLocationRequest {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'clubPlaceId': json['clubPlaceId'],
|
|
91
|
+
'clubPlaceName': json['clubPlaceName'],
|
|
92
|
+
'address': json['address'],
|
|
93
|
+
'latitude': json['latitude'],
|
|
94
|
+
'longitude': json['longitude'],
|
|
95
|
+
'phone': json['phone'],
|
|
96
|
+
'sports': json['sports'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function AddCoachLocationRequestToJSON(json: any): AddCoachLocationRequest {
|
|
101
|
+
return AddCoachLocationRequestToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AddCoachLocationRequestToJSONTyped(value?: AddCoachLocationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'clubPlaceId': value['clubPlaceId'],
|
|
112
|
+
'clubPlaceName': value['clubPlaceName'],
|
|
113
|
+
'address': value['address'],
|
|
114
|
+
'latitude': value['latitude'],
|
|
115
|
+
'longitude': value['longitude'],
|
|
116
|
+
'phone': value['phone'],
|
|
117
|
+
'sports': value['sports'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,130 @@
|
|
|
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 { PaymentMethod } from './PaymentMethod';
|
|
17
|
+
import {
|
|
18
|
+
PaymentMethodFromJSON,
|
|
19
|
+
PaymentMethodFromJSONTyped,
|
|
20
|
+
PaymentMethodToJSON,
|
|
21
|
+
PaymentMethodToJSONTyped,
|
|
22
|
+
} from './PaymentMethod';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BookCoachClassDto
|
|
28
|
+
*/
|
|
29
|
+
export interface BookCoachClassDto {
|
|
30
|
+
/**
|
|
31
|
+
* The coach's user ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BookCoachClassDto
|
|
34
|
+
*/
|
|
35
|
+
coachId: string;
|
|
36
|
+
/**
|
|
37
|
+
* The location ID where the class will take place
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BookCoachClassDto
|
|
40
|
+
*/
|
|
41
|
+
locationId: string;
|
|
42
|
+
/**
|
|
43
|
+
* The play spot ID (usually DEFAULT for coaches)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BookCoachClassDto
|
|
46
|
+
*/
|
|
47
|
+
playSpotId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Start date and time of the class
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof BookCoachClassDto
|
|
52
|
+
*/
|
|
53
|
+
rentedFrom: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Duration in minutes
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof BookCoachClassDto
|
|
58
|
+
*/
|
|
59
|
+
duration: number;
|
|
60
|
+
/**
|
|
61
|
+
* The price ID to use
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BookCoachClassDto
|
|
64
|
+
*/
|
|
65
|
+
playPriceId: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {PaymentMethod}
|
|
69
|
+
* @memberof BookCoachClassDto
|
|
70
|
+
*/
|
|
71
|
+
paymentMethod: PaymentMethod;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the BookCoachClassDto interface.
|
|
78
|
+
*/
|
|
79
|
+
export function instanceOfBookCoachClassDto(value: object): value is BookCoachClassDto {
|
|
80
|
+
if (!('coachId' in value) || value['coachId'] === undefined) return false;
|
|
81
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
82
|
+
if (!('playSpotId' in value) || value['playSpotId'] === undefined) return false;
|
|
83
|
+
if (!('rentedFrom' in value) || value['rentedFrom'] === undefined) return false;
|
|
84
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
85
|
+
if (!('playPriceId' in value) || value['playPriceId'] === undefined) return false;
|
|
86
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function BookCoachClassDtoFromJSON(json: any): BookCoachClassDto {
|
|
91
|
+
return BookCoachClassDtoFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function BookCoachClassDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BookCoachClassDto {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'coachId': json['coachId'],
|
|
101
|
+
'locationId': json['locationId'],
|
|
102
|
+
'playSpotId': json['playSpotId'],
|
|
103
|
+
'rentedFrom': (new Date(json['rentedFrom'])),
|
|
104
|
+
'duration': json['duration'],
|
|
105
|
+
'playPriceId': json['playPriceId'],
|
|
106
|
+
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function BookCoachClassDtoToJSON(json: any): BookCoachClassDto {
|
|
111
|
+
return BookCoachClassDtoToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function BookCoachClassDtoToJSONTyped(value?: BookCoachClassDto | null, ignoreDiscriminator: boolean = false): any {
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'coachId': value['coachId'],
|
|
122
|
+
'locationId': value['locationId'],
|
|
123
|
+
'playSpotId': value['playSpotId'],
|
|
124
|
+
'rentedFrom': ((value['rentedFrom']).toISOString()),
|
|
125
|
+
'duration': value['duration'],
|
|
126
|
+
'playPriceId': value['playPriceId'],
|
|
127
|
+
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
@@ -0,0 +1,108 @@
|
|
|
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 { PlayPrice } from './PlayPrice';
|
|
17
|
+
import {
|
|
18
|
+
PlayPriceFromJSON,
|
|
19
|
+
PlayPriceFromJSONTyped,
|
|
20
|
+
PlayPriceToJSON,
|
|
21
|
+
PlayPriceToJSONTyped,
|
|
22
|
+
} from './PlayPrice';
|
|
23
|
+
import type { PlaySpotShift } from './PlaySpotShift';
|
|
24
|
+
import {
|
|
25
|
+
PlaySpotShiftFromJSON,
|
|
26
|
+
PlaySpotShiftFromJSONTyped,
|
|
27
|
+
PlaySpotShiftToJSON,
|
|
28
|
+
PlaySpotShiftToJSONTyped,
|
|
29
|
+
} from './PlaySpotShift';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface CoachAvailabilityDto
|
|
35
|
+
*/
|
|
36
|
+
export interface CoachAvailabilityDto {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CoachAvailabilityDto
|
|
41
|
+
*/
|
|
42
|
+
coachId: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CoachAvailabilityDto
|
|
47
|
+
*/
|
|
48
|
+
locationId: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Array<PlaySpotShift>}
|
|
52
|
+
* @memberof CoachAvailabilityDto
|
|
53
|
+
*/
|
|
54
|
+
shifts: Array<PlaySpotShift>;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Array<PlayPrice>}
|
|
58
|
+
* @memberof CoachAvailabilityDto
|
|
59
|
+
*/
|
|
60
|
+
prices: Array<PlayPrice>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the CoachAvailabilityDto interface.
|
|
65
|
+
*/
|
|
66
|
+
export function instanceOfCoachAvailabilityDto(value: object): value is CoachAvailabilityDto {
|
|
67
|
+
if (!('coachId' in value) || value['coachId'] === undefined) return false;
|
|
68
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
69
|
+
if (!('shifts' in value) || value['shifts'] === undefined) return false;
|
|
70
|
+
if (!('prices' in value) || value['prices'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function CoachAvailabilityDtoFromJSON(json: any): CoachAvailabilityDto {
|
|
75
|
+
return CoachAvailabilityDtoFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function CoachAvailabilityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachAvailabilityDto {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'coachId': json['coachId'],
|
|
85
|
+
'locationId': json['locationId'],
|
|
86
|
+
'shifts': ((json['shifts'] as Array<any>).map(PlaySpotShiftFromJSON)),
|
|
87
|
+
'prices': ((json['prices'] as Array<any>).map(PlayPriceFromJSON)),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function CoachAvailabilityDtoToJSON(json: any): CoachAvailabilityDto {
|
|
92
|
+
return CoachAvailabilityDtoToJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function CoachAvailabilityDtoToJSONTyped(value?: CoachAvailabilityDto | null, ignoreDiscriminator: boolean = false): any {
|
|
96
|
+
if (value == null) {
|
|
97
|
+
return value;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
|
|
102
|
+
'coachId': value['coachId'],
|
|
103
|
+
'locationId': value['locationId'],
|
|
104
|
+
'shifts': ((value['shifts'] as Array<any>).map(PlaySpotShiftToJSON)),
|
|
105
|
+
'prices': ((value['prices'] as Array<any>).map(PlayPriceToJSON)),
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
@@ -0,0 +1,99 @@
|
|
|
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 { ReserveStatus } from './ReserveStatus';
|
|
17
|
+
import {
|
|
18
|
+
ReserveStatusFromJSON,
|
|
19
|
+
ReserveStatusFromJSONTyped,
|
|
20
|
+
ReserveStatusToJSON,
|
|
21
|
+
ReserveStatusToJSONTyped,
|
|
22
|
+
} from './ReserveStatus';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CoachClassFilters
|
|
28
|
+
*/
|
|
29
|
+
export interface CoachClassFilters {
|
|
30
|
+
/**
|
|
31
|
+
* Filter by location
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CoachClassFilters
|
|
34
|
+
*/
|
|
35
|
+
locationId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ReserveStatus}
|
|
39
|
+
* @memberof CoachClassFilters
|
|
40
|
+
*/
|
|
41
|
+
status?: ReserveStatus;
|
|
42
|
+
/**
|
|
43
|
+
* Filter classes from this date
|
|
44
|
+
* @type {Date}
|
|
45
|
+
* @memberof CoachClassFilters
|
|
46
|
+
*/
|
|
47
|
+
fromDate?: Date;
|
|
48
|
+
/**
|
|
49
|
+
* Filter classes until this date
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof CoachClassFilters
|
|
52
|
+
*/
|
|
53
|
+
toDate?: Date;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the CoachClassFilters interface.
|
|
60
|
+
*/
|
|
61
|
+
export function instanceOfCoachClassFilters(value: object): value is CoachClassFilters {
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function CoachClassFiltersFromJSON(json: any): CoachClassFilters {
|
|
66
|
+
return CoachClassFiltersFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function CoachClassFiltersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachClassFilters {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'locationId': json['locationId'] == null ? undefined : json['locationId'],
|
|
76
|
+
'status': json['status'] == null ? undefined : ReserveStatusFromJSON(json['status']),
|
|
77
|
+
'fromDate': json['fromDate'] == null ? undefined : (new Date(json['fromDate'])),
|
|
78
|
+
'toDate': json['toDate'] == null ? undefined : (new Date(json['toDate'])),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function CoachClassFiltersToJSON(json: any): CoachClassFilters {
|
|
83
|
+
return CoachClassFiltersToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CoachClassFiltersToJSONTyped(value?: CoachClassFilters | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'locationId': value['locationId'],
|
|
94
|
+
'status': ReserveStatusToJSON(value['status']),
|
|
95
|
+
'fromDate': value['fromDate'] == null ? undefined : ((value['fromDate']).toISOString()),
|
|
96
|
+
'toDate': value['toDate'] == null ? undefined : ((value['toDate']).toISOString()),
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
@@ -0,0 +1,160 @@
|
|
|
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 { CoachProfileDtoRating } from './CoachProfileDtoRating';
|
|
17
|
+
import {
|
|
18
|
+
CoachProfileDtoRatingFromJSON,
|
|
19
|
+
CoachProfileDtoRatingFromJSONTyped,
|
|
20
|
+
CoachProfileDtoRatingToJSON,
|
|
21
|
+
CoachProfileDtoRatingToJSONTyped,
|
|
22
|
+
} from './CoachProfileDtoRating';
|
|
23
|
+
import type { Sport } from './Sport';
|
|
24
|
+
import {
|
|
25
|
+
SportFromJSON,
|
|
26
|
+
SportFromJSONTyped,
|
|
27
|
+
SportToJSON,
|
|
28
|
+
SportToJSONTyped,
|
|
29
|
+
} from './Sport';
|
|
30
|
+
import type { Location } from './Location';
|
|
31
|
+
import {
|
|
32
|
+
LocationFromJSON,
|
|
33
|
+
LocationFromJSONTyped,
|
|
34
|
+
LocationToJSON,
|
|
35
|
+
LocationToJSONTyped,
|
|
36
|
+
} from './Location';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface CoachProfileDto
|
|
42
|
+
*/
|
|
43
|
+
export interface CoachProfileDto {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CoachProfileDto
|
|
48
|
+
*/
|
|
49
|
+
userId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<Sport>}
|
|
53
|
+
* @memberof CoachProfileDto
|
|
54
|
+
*/
|
|
55
|
+
sports: Array<Sport>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<string>}
|
|
59
|
+
* @memberof CoachProfileDto
|
|
60
|
+
*/
|
|
61
|
+
categories: Array<string>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<string>}
|
|
65
|
+
* @memberof CoachProfileDto
|
|
66
|
+
*/
|
|
67
|
+
photoUrls?: Array<string>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof CoachProfileDto
|
|
72
|
+
*/
|
|
73
|
+
bio?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof CoachProfileDto
|
|
78
|
+
*/
|
|
79
|
+
status: CoachProfileDtoStatusEnum;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {CoachProfileDtoRating}
|
|
83
|
+
* @memberof CoachProfileDto
|
|
84
|
+
*/
|
|
85
|
+
rating?: CoachProfileDtoRating | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {Array<Location>}
|
|
89
|
+
* @memberof CoachProfileDto
|
|
90
|
+
*/
|
|
91
|
+
locations?: Array<Location>;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @export
|
|
97
|
+
*/
|
|
98
|
+
export const CoachProfileDtoStatusEnum = {
|
|
99
|
+
Inactive: 'INACTIVE',
|
|
100
|
+
Active: 'ACTIVE',
|
|
101
|
+
Suspended: 'SUSPENDED',
|
|
102
|
+
Deactivated: 'DEACTIVATED'
|
|
103
|
+
} as const;
|
|
104
|
+
export type CoachProfileDtoStatusEnum = typeof CoachProfileDtoStatusEnum[keyof typeof CoachProfileDtoStatusEnum];
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Check if a given object implements the CoachProfileDto interface.
|
|
109
|
+
*/
|
|
110
|
+
export function instanceOfCoachProfileDto(value: object): value is CoachProfileDto {
|
|
111
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
112
|
+
if (!('sports' in value) || value['sports'] === undefined) return false;
|
|
113
|
+
if (!('categories' in value) || value['categories'] === undefined) return false;
|
|
114
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function CoachProfileDtoFromJSON(json: any): CoachProfileDto {
|
|
119
|
+
return CoachProfileDtoFromJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function CoachProfileDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachProfileDto {
|
|
123
|
+
if (json == null) {
|
|
124
|
+
return json;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'userId': json['userId'],
|
|
129
|
+
'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
|
|
130
|
+
'categories': json['categories'],
|
|
131
|
+
'photoUrls': json['photoUrls'] == null ? undefined : json['photoUrls'],
|
|
132
|
+
'bio': json['bio'] == null ? undefined : json['bio'],
|
|
133
|
+
'status': json['status'],
|
|
134
|
+
'rating': json['rating'] == null ? undefined : CoachProfileDtoRatingFromJSON(json['rating']),
|
|
135
|
+
'locations': json['locations'] == null ? undefined : ((json['locations'] as Array<any>).map(LocationFromJSON)),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function CoachProfileDtoToJSON(json: any): CoachProfileDto {
|
|
140
|
+
return CoachProfileDtoToJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function CoachProfileDtoToJSONTyped(value?: CoachProfileDto | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
+
if (value == null) {
|
|
145
|
+
return value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'userId': value['userId'],
|
|
151
|
+
'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
|
|
152
|
+
'categories': value['categories'],
|
|
153
|
+
'photoUrls': value['photoUrls'],
|
|
154
|
+
'bio': value['bio'],
|
|
155
|
+
'status': value['status'],
|
|
156
|
+
'rating': CoachProfileDtoRatingToJSON(value['rating']),
|
|
157
|
+
'locations': value['locations'] == null ? undefined : ((value['locations'] as Array<any>).map(LocationToJSON)),
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CoachProfileDtoRating
|
|
20
|
+
*/
|
|
21
|
+
export interface CoachProfileDtoRating {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof CoachProfileDtoRating
|
|
26
|
+
*/
|
|
27
|
+
rating?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CoachProfileDtoRating
|
|
32
|
+
*/
|
|
33
|
+
reviewCount?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CoachProfileDtoRating interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCoachProfileDtoRating(value: object): value is CoachProfileDtoRating {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CoachProfileDtoRatingFromJSON(json: any): CoachProfileDtoRating {
|
|
44
|
+
return CoachProfileDtoRatingFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function CoachProfileDtoRatingFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachProfileDtoRating {
|
|
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 CoachProfileDtoRatingToJSON(json: any): CoachProfileDtoRating {
|
|
59
|
+
return CoachProfileDtoRatingToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function CoachProfileDtoRatingToJSONTyped(value?: CoachProfileDtoRating | 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
|
+
|