@jugarhoy/api 1.1.15 → 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/TeamsApi.ts +2 -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/UserSession.ts +8 -0
- package/models/index.ts +18 -0
- package/package.json +1 -1
|
@@ -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
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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 { Sport } from './Sport';
|
|
17
|
+
import {
|
|
18
|
+
SportFromJSON,
|
|
19
|
+
SportFromJSONTyped,
|
|
20
|
+
SportToJSON,
|
|
21
|
+
SportToJSONTyped,
|
|
22
|
+
} from './Sport';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface CoachSearchParams
|
|
28
|
+
*/
|
|
29
|
+
export interface CoachSearchParams {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Sport}
|
|
33
|
+
* @memberof CoachSearchParams
|
|
34
|
+
*/
|
|
35
|
+
sport?: Sport;
|
|
36
|
+
/**
|
|
37
|
+
* Filter by location ID
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CoachSearchParams
|
|
40
|
+
*/
|
|
41
|
+
locationId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Filter by category
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CoachSearchParams
|
|
46
|
+
*/
|
|
47
|
+
category?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the CoachSearchParams interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfCoachSearchParams(value: object): value is CoachSearchParams {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function CoachSearchParamsFromJSON(json: any): CoachSearchParams {
|
|
60
|
+
return CoachSearchParamsFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function CoachSearchParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoachSearchParams {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'sport': json['sport'] == null ? undefined : SportFromJSON(json['sport']),
|
|
70
|
+
'locationId': json['locationId'] == null ? undefined : json['locationId'],
|
|
71
|
+
'category': json['category'] == null ? undefined : json['category'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function CoachSearchParamsToJSON(json: any): CoachSearchParams {
|
|
76
|
+
return CoachSearchParamsToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CoachSearchParamsToJSONTyped(value?: CoachSearchParams | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'sport': SportToJSON(value['sport']),
|
|
87
|
+
'locationId': value['locationId'],
|
|
88
|
+
'category': value['category'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -0,0 +1,122 @@
|
|
|
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 CreateCoachPriceDto
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateCoachPriceDto {
|
|
22
|
+
/**
|
|
23
|
+
* Name of the pricing option (e.g., "Clase Individual 60 min")
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateCoachPriceDto
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* Duration in minutes
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof CreateCoachPriceDto
|
|
32
|
+
*/
|
|
33
|
+
duration: number;
|
|
34
|
+
/**
|
|
35
|
+
* Price amount in ARS
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof CreateCoachPriceDto
|
|
38
|
+
*/
|
|
39
|
+
price: number;
|
|
40
|
+
/**
|
|
41
|
+
* IDs of the shifts this price applies to
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof CreateCoachPriceDto
|
|
44
|
+
*/
|
|
45
|
+
playSpotShiftIds: Array<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Whether this is for subscription-based access
|
|
48
|
+
* @type {boolean}
|
|
49
|
+
* @memberof CreateCoachPriceDto
|
|
50
|
+
*/
|
|
51
|
+
isSubscription: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* When to charge (per session or per subscription)
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof CreateCoachPriceDto
|
|
56
|
+
*/
|
|
57
|
+
chargeOn: CreateCoachPriceDtoChargeOnEnum;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const CreateCoachPriceDtoChargeOnEnum = {
|
|
65
|
+
Session: 'session',
|
|
66
|
+
Subscription: 'subscription'
|
|
67
|
+
} as const;
|
|
68
|
+
export type CreateCoachPriceDtoChargeOnEnum = typeof CreateCoachPriceDtoChargeOnEnum[keyof typeof CreateCoachPriceDtoChargeOnEnum];
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Check if a given object implements the CreateCoachPriceDto interface.
|
|
73
|
+
*/
|
|
74
|
+
export function instanceOfCreateCoachPriceDto(value: object): value is CreateCoachPriceDto {
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
76
|
+
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
77
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
78
|
+
if (!('playSpotShiftIds' in value) || value['playSpotShiftIds'] === undefined) return false;
|
|
79
|
+
if (!('isSubscription' in value) || value['isSubscription'] === undefined) return false;
|
|
80
|
+
if (!('chargeOn' in value) || value['chargeOn'] === undefined) return false;
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CreateCoachPriceDtoFromJSON(json: any): CreateCoachPriceDto {
|
|
85
|
+
return CreateCoachPriceDtoFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CreateCoachPriceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCoachPriceDto {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'name': json['name'],
|
|
95
|
+
'duration': json['duration'],
|
|
96
|
+
'price': json['price'],
|
|
97
|
+
'playSpotShiftIds': json['playSpotShiftIds'],
|
|
98
|
+
'isSubscription': json['isSubscription'],
|
|
99
|
+
'chargeOn': json['chargeOn'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function CreateCoachPriceDtoToJSON(json: any): CreateCoachPriceDto {
|
|
104
|
+
return CreateCoachPriceDtoToJSONTyped(json, false);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function CreateCoachPriceDtoToJSONTyped(value?: CreateCoachPriceDto | null, ignoreDiscriminator: boolean = false): any {
|
|
108
|
+
if (value == null) {
|
|
109
|
+
return value;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'name': value['name'],
|
|
115
|
+
'duration': value['duration'],
|
|
116
|
+
'price': value['price'],
|
|
117
|
+
'playSpotShiftIds': value['playSpotShiftIds'],
|
|
118
|
+
'isSubscription': value['isSubscription'],
|
|
119
|
+
'chargeOn': value['chargeOn'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { DefineCoachScheduleRequestShiftsInner } from './DefineCoachScheduleRequestShiftsInner';
|
|
17
|
+
import {
|
|
18
|
+
DefineCoachScheduleRequestShiftsInnerFromJSON,
|
|
19
|
+
DefineCoachScheduleRequestShiftsInnerFromJSONTyped,
|
|
20
|
+
DefineCoachScheduleRequestShiftsInnerToJSON,
|
|
21
|
+
DefineCoachScheduleRequestShiftsInnerToJSONTyped,
|
|
22
|
+
} from './DefineCoachScheduleRequestShiftsInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DefineCoachScheduleRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface DefineCoachScheduleRequest {
|
|
30
|
+
/**
|
|
31
|
+
* ID of the location for this schedule
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DefineCoachScheduleRequest
|
|
34
|
+
*/
|
|
35
|
+
locationId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<DefineCoachScheduleRequestShiftsInner>}
|
|
39
|
+
* @memberof DefineCoachScheduleRequest
|
|
40
|
+
*/
|
|
41
|
+
shifts: Array<DefineCoachScheduleRequestShiftsInner>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the DefineCoachScheduleRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfDefineCoachScheduleRequest(value: object): value is DefineCoachScheduleRequest {
|
|
48
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
49
|
+
if (!('shifts' in value) || value['shifts'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function DefineCoachScheduleRequestFromJSON(json: any): DefineCoachScheduleRequest {
|
|
54
|
+
return DefineCoachScheduleRequestFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function DefineCoachScheduleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefineCoachScheduleRequest {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'locationId': json['locationId'],
|
|
64
|
+
'shifts': ((json['shifts'] as Array<any>).map(DefineCoachScheduleRequestShiftsInnerFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DefineCoachScheduleRequestToJSON(json: any): DefineCoachScheduleRequest {
|
|
69
|
+
return DefineCoachScheduleRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function DefineCoachScheduleRequestToJSONTyped(value?: DefineCoachScheduleRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'locationId': value['locationId'],
|
|
80
|
+
'shifts': ((value['shifts'] as Array<any>).map(DefineCoachScheduleRequestShiftsInnerToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { DayOfWeek } from './DayOfWeek';
|
|
17
|
+
import {
|
|
18
|
+
DayOfWeekFromJSON,
|
|
19
|
+
DayOfWeekFromJSONTyped,
|
|
20
|
+
DayOfWeekToJSON,
|
|
21
|
+
DayOfWeekToJSONTyped,
|
|
22
|
+
} from './DayOfWeek';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DefineCoachScheduleRequestShiftsInner
|
|
28
|
+
*/
|
|
29
|
+
export interface DefineCoachScheduleRequestShiftsInner {
|
|
30
|
+
/**
|
|
31
|
+
* Name of the shift
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DefineCoachScheduleRequestShiftsInner
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Days of the week for this shift
|
|
38
|
+
* @type {Array<DayOfWeek>}
|
|
39
|
+
* @memberof DefineCoachScheduleRequestShiftsInner
|
|
40
|
+
*/
|
|
41
|
+
days: Array<DayOfWeek>;
|
|
42
|
+
/**
|
|
43
|
+
* Start time (HH:mm format)
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof DefineCoachScheduleRequestShiftsInner
|
|
46
|
+
*/
|
|
47
|
+
fromHour: string;
|
|
48
|
+
/**
|
|
49
|
+
* End time (HH:mm format)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof DefineCoachScheduleRequestShiftsInner
|
|
52
|
+
*/
|
|
53
|
+
toHour: string;
|
|
54
|
+
/**
|
|
55
|
+
* Available class durations in minutes
|
|
56
|
+
* @type {Array<number>}
|
|
57
|
+
* @memberof DefineCoachScheduleRequestShiftsInner
|
|
58
|
+
*/
|
|
59
|
+
durations: Array<number>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the DefineCoachScheduleRequestShiftsInner interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfDefineCoachScheduleRequestShiftsInner(value: object): value is DefineCoachScheduleRequestShiftsInner {
|
|
66
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
67
|
+
if (!('days' in value) || value['days'] === undefined) return false;
|
|
68
|
+
if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
|
|
69
|
+
if (!('toHour' in value) || value['toHour'] === undefined) return false;
|
|
70
|
+
if (!('durations' in value) || value['durations'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function DefineCoachScheduleRequestShiftsInnerFromJSON(json: any): DefineCoachScheduleRequestShiftsInner {
|
|
75
|
+
return DefineCoachScheduleRequestShiftsInnerFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function DefineCoachScheduleRequestShiftsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): DefineCoachScheduleRequestShiftsInner {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'name': json['name'],
|
|
85
|
+
'days': ((json['days'] as Array<any>).map(DayOfWeekFromJSON)),
|
|
86
|
+
'fromHour': json['fromHour'],
|
|
87
|
+
'toHour': json['toHour'],
|
|
88
|
+
'durations': json['durations'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function DefineCoachScheduleRequestShiftsInnerToJSON(json: any): DefineCoachScheduleRequestShiftsInner {
|
|
93
|
+
return DefineCoachScheduleRequestShiftsInnerToJSONTyped(json, false);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function DefineCoachScheduleRequestShiftsInnerToJSONTyped(value?: DefineCoachScheduleRequestShiftsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
97
|
+
if (value == null) {
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'name': value['name'],
|
|
104
|
+
'days': ((value['days'] as Array<any>).map(DayOfWeekToJSON)),
|
|
105
|
+
'fromHour': value['fromHour'],
|
|
106
|
+
'toHour': value['toHour'],
|
|
107
|
+
'durations': value['durations'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -69,6 +69,12 @@ export interface ReservationParams {
|
|
|
69
69
|
* @memberof ReservationParams
|
|
70
70
|
*/
|
|
71
71
|
mobile?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Optional coach ID for coach-led reservations
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof ReservationParams
|
|
76
|
+
*/
|
|
77
|
+
coachId?: string | null;
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
|
|
@@ -103,6 +109,7 @@ export function ReservationParamsFromJSONTyped(json: any, ignoreDiscriminator: b
|
|
|
103
109
|
'duration': json['duration'],
|
|
104
110
|
'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
|
|
105
111
|
'mobile': json['mobile'] == null ? undefined : json['mobile'],
|
|
112
|
+
'coachId': json['coachId'] == null ? undefined : json['coachId'],
|
|
106
113
|
};
|
|
107
114
|
}
|
|
108
115
|
|
|
@@ -124,6 +131,7 @@ export function ReservationParamsToJSONTyped(value?: ReservationParams | null, i
|
|
|
124
131
|
'duration': value['duration'],
|
|
125
132
|
'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
|
|
126
133
|
'mobile': value['mobile'],
|
|
134
|
+
'coachId': value['coachId'],
|
|
127
135
|
};
|
|
128
136
|
}
|
|
129
137
|
|