@jugarhoy/api 1.1.28 → 1.1.29
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/AdminServiceTypesApi.ts +259 -0
- package/apis/ClubApi.ts +230 -0
- package/apis/index.ts +1 -0
- package/models/AppLocationHourItem.ts +84 -0
- package/models/AppLocationItem.ts +164 -0
- package/models/ClubProfileDtoProfile.ts +94 -0
- package/models/ClubProfileDtoProfileLocationHoursInner.ts +81 -0
- package/models/Customer.ts +31 -0
- package/models/CustomerDto.ts +32 -0
- package/models/Location.ts +15 -0
- package/models/LocationDto.ts +15 -0
- package/models/LocationDtoLocationHoursInner.ts +84 -0
- package/models/LocationHour.ts +102 -0
- package/models/MyClubDto.ts +16 -0
- package/models/RegisterClubParams.ts +15 -0
- package/models/RegisterClubParamsLocationHoursInner.ts +84 -0
- package/models/ServiceType.ts +70 -22
- package/models/ServiceTypeDto.ts +92 -0
- package/models/UpdateAppLocationParams.ts +137 -0
- package/models/UpdateClubSettingsParams.ts +176 -0
- package/models/UpdateClubSettingsResponse.ts +100 -0
- package/models/UpdateClubSettingsServiceTypeItem.ts +83 -0
- package/models/index.ts +11 -0
- package/package.json +1 -1
- package/runtime.ts +1 -1
|
@@ -0,0 +1,164 @@
|
|
|
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 { AppLocationHourItem } from './AppLocationHourItem';
|
|
17
|
+
import {
|
|
18
|
+
AppLocationHourItemFromJSON,
|
|
19
|
+
AppLocationHourItemFromJSONTyped,
|
|
20
|
+
AppLocationHourItemToJSON,
|
|
21
|
+
AppLocationHourItemToJSONTyped,
|
|
22
|
+
} from './AppLocationHourItem';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AppLocationItem
|
|
28
|
+
*/
|
|
29
|
+
export interface AppLocationItem {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AppLocationItem
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AppLocationItem
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AppLocationItem
|
|
46
|
+
*/
|
|
47
|
+
code: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof AppLocationItem
|
|
52
|
+
*/
|
|
53
|
+
address?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof AppLocationItem
|
|
58
|
+
*/
|
|
59
|
+
phone?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof AppLocationItem
|
|
64
|
+
*/
|
|
65
|
+
email?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AppLocationItem
|
|
70
|
+
*/
|
|
71
|
+
website?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AppLocationItem
|
|
76
|
+
*/
|
|
77
|
+
instagramHandle?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof AppLocationItem
|
|
82
|
+
*/
|
|
83
|
+
facebookHandle?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof AppLocationItem
|
|
88
|
+
*/
|
|
89
|
+
twitterHandle?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof AppLocationItem
|
|
94
|
+
*/
|
|
95
|
+
youtubeHandle?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {Array<AppLocationHourItem>}
|
|
99
|
+
* @memberof AppLocationItem
|
|
100
|
+
*/
|
|
101
|
+
locationHours?: Array<AppLocationHourItem>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the AppLocationItem interface.
|
|
106
|
+
*/
|
|
107
|
+
export function instanceOfAppLocationItem(value: object): value is AppLocationItem {
|
|
108
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
109
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
110
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
111
|
+
return true;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function AppLocationItemFromJSON(json: any): AppLocationItem {
|
|
115
|
+
return AppLocationItemFromJSONTyped(json, false);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function AppLocationItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): AppLocationItem {
|
|
119
|
+
if (json == null) {
|
|
120
|
+
return json;
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
|
|
124
|
+
'id': json['id'],
|
|
125
|
+
'name': json['name'],
|
|
126
|
+
'code': json['code'],
|
|
127
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
128
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
129
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
130
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
131
|
+
'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
|
|
132
|
+
'facebookHandle': json['facebookHandle'] == null ? undefined : json['facebookHandle'],
|
|
133
|
+
'twitterHandle': json['twitterHandle'] == null ? undefined : json['twitterHandle'],
|
|
134
|
+
'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
|
|
135
|
+
'locationHours': json['locationHours'] == null ? undefined : ((json['locationHours'] as Array<any>).map(AppLocationHourItemFromJSON)),
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export function AppLocationItemToJSON(json: any): AppLocationItem {
|
|
140
|
+
return AppLocationItemToJSONTyped(json, false);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function AppLocationItemToJSONTyped(value?: AppLocationItem | null, ignoreDiscriminator: boolean = false): any {
|
|
144
|
+
if (value == null) {
|
|
145
|
+
return value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
|
|
150
|
+
'id': value['id'],
|
|
151
|
+
'name': value['name'],
|
|
152
|
+
'code': value['code'],
|
|
153
|
+
'address': value['address'],
|
|
154
|
+
'phone': value['phone'],
|
|
155
|
+
'email': value['email'],
|
|
156
|
+
'website': value['website'],
|
|
157
|
+
'instagramHandle': value['instagramHandle'],
|
|
158
|
+
'facebookHandle': value['facebookHandle'],
|
|
159
|
+
'twitterHandle': value['twitterHandle'],
|
|
160
|
+
'youtubeHandle': value['youtubeHandle'],
|
|
161
|
+
'locationHours': value['locationHours'] == null ? undefined : ((value['locationHours'] as Array<any>).map(AppLocationHourItemToJSON)),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -20,6 +20,20 @@ import {
|
|
|
20
20
|
SportToJSON,
|
|
21
21
|
SportToJSONTyped,
|
|
22
22
|
} from './Sport';
|
|
23
|
+
import type { ClubProfileDtoProfileLocationHoursInner } from './ClubProfileDtoProfileLocationHoursInner';
|
|
24
|
+
import {
|
|
25
|
+
ClubProfileDtoProfileLocationHoursInnerFromJSON,
|
|
26
|
+
ClubProfileDtoProfileLocationHoursInnerFromJSONTyped,
|
|
27
|
+
ClubProfileDtoProfileLocationHoursInnerToJSON,
|
|
28
|
+
ClubProfileDtoProfileLocationHoursInnerToJSONTyped,
|
|
29
|
+
} from './ClubProfileDtoProfileLocationHoursInner';
|
|
30
|
+
import type { ServiceType } from './ServiceType';
|
|
31
|
+
import {
|
|
32
|
+
ServiceTypeFromJSON,
|
|
33
|
+
ServiceTypeFromJSONTyped,
|
|
34
|
+
ServiceTypeToJSON,
|
|
35
|
+
ServiceTypeToJSONTyped,
|
|
36
|
+
} from './ServiceType';
|
|
23
37
|
|
|
24
38
|
/**
|
|
25
39
|
*
|
|
@@ -57,6 +71,18 @@ export interface ClubProfileDtoProfile {
|
|
|
57
71
|
* @memberof ClubProfileDtoProfile
|
|
58
72
|
*/
|
|
59
73
|
headerUrl?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Background color for the club header (hex)
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ClubProfileDtoProfile
|
|
78
|
+
*/
|
|
79
|
+
bgColor?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Foreground/text color for the club header (hex)
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof ClubProfileDtoProfile
|
|
84
|
+
*/
|
|
85
|
+
fgColor?: string | null;
|
|
60
86
|
/**
|
|
61
87
|
*
|
|
62
88
|
* @type {Array<Sport>}
|
|
@@ -117,6 +143,36 @@ export interface ClubProfileDtoProfile {
|
|
|
117
143
|
* @memberof ClubProfileDtoProfile
|
|
118
144
|
*/
|
|
119
145
|
userRole: ClubProfileDtoProfileUserRoleEnum;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {string}
|
|
149
|
+
* @memberof ClubProfileDtoProfile
|
|
150
|
+
*/
|
|
151
|
+
email?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @type {string}
|
|
155
|
+
* @memberof ClubProfileDtoProfile
|
|
156
|
+
*/
|
|
157
|
+
instagramHandle?: string | null;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof ClubProfileDtoProfile
|
|
162
|
+
*/
|
|
163
|
+
facebookHandle?: string | null;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {string}
|
|
167
|
+
* @memberof ClubProfileDtoProfile
|
|
168
|
+
*/
|
|
169
|
+
twitterHandle?: string | null;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof ClubProfileDtoProfile
|
|
174
|
+
*/
|
|
175
|
+
youtubeHandle?: string | null;
|
|
120
176
|
/**
|
|
121
177
|
*
|
|
122
178
|
* @type {string}
|
|
@@ -135,6 +191,24 @@ export interface ClubProfileDtoProfile {
|
|
|
135
191
|
* @memberof ClubProfileDtoProfile
|
|
136
192
|
*/
|
|
137
193
|
defaultLocationName?: string | null;
|
|
194
|
+
/**
|
|
195
|
+
* Number of courts (PlaySpots) at the default location
|
|
196
|
+
* @type {number}
|
|
197
|
+
* @memberof ClubProfileDtoProfile
|
|
198
|
+
*/
|
|
199
|
+
courtCount?: number | null;
|
|
200
|
+
/**
|
|
201
|
+
* Operating hours of the default location per day
|
|
202
|
+
* @type {Array<ClubProfileDtoProfileLocationHoursInner>}
|
|
203
|
+
* @memberof ClubProfileDtoProfile
|
|
204
|
+
*/
|
|
205
|
+
locationHours?: Array<ClubProfileDtoProfileLocationHoursInner> | null;
|
|
206
|
+
/**
|
|
207
|
+
* Services offered by the club
|
|
208
|
+
* @type {Array<ServiceType>}
|
|
209
|
+
* @memberof ClubProfileDtoProfile
|
|
210
|
+
*/
|
|
211
|
+
serviceTypes?: Array<ServiceType> | null;
|
|
138
212
|
}
|
|
139
213
|
|
|
140
214
|
|
|
@@ -177,6 +251,8 @@ export function ClubProfileDtoProfileFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
177
251
|
'customerName': json['customerName'],
|
|
178
252
|
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
179
253
|
'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
|
|
254
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
255
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
180
256
|
'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
|
|
181
257
|
'address': json['address'] == null ? undefined : json['address'],
|
|
182
258
|
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
@@ -187,9 +263,17 @@ export function ClubProfileDtoProfileFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
187
263
|
'memberSince': json['memberSince'] == null ? undefined : json['memberSince'],
|
|
188
264
|
'membershipLabel': json['membershipLabel'] == null ? undefined : json['membershipLabel'],
|
|
189
265
|
'userRole': json['userRole'],
|
|
266
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
267
|
+
'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
|
|
268
|
+
'facebookHandle': json['facebookHandle'] == null ? undefined : json['facebookHandle'],
|
|
269
|
+
'twitterHandle': json['twitterHandle'] == null ? undefined : json['twitterHandle'],
|
|
270
|
+
'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
|
|
190
271
|
'defaultLocationId': json['defaultLocationId'] == null ? undefined : json['defaultLocationId'],
|
|
191
272
|
'defaultLocationCode': json['defaultLocationCode'] == null ? undefined : json['defaultLocationCode'],
|
|
192
273
|
'defaultLocationName': json['defaultLocationName'] == null ? undefined : json['defaultLocationName'],
|
|
274
|
+
'courtCount': json['courtCount'] == null ? undefined : json['courtCount'],
|
|
275
|
+
'locationHours': json['locationHours'] == null ? undefined : ((json['locationHours'] as Array<any>).map(ClubProfileDtoProfileLocationHoursInnerFromJSON)),
|
|
276
|
+
'serviceTypes': json['serviceTypes'] == null ? undefined : ((json['serviceTypes'] as Array<any>).map(ServiceTypeFromJSON)),
|
|
193
277
|
};
|
|
194
278
|
}
|
|
195
279
|
|
|
@@ -209,6 +293,8 @@ export function ClubProfileDtoProfileToJSONTyped(value?: ClubProfileDtoProfile |
|
|
|
209
293
|
'customerName': value['customerName'],
|
|
210
294
|
'avatarUrl': value['avatarUrl'],
|
|
211
295
|
'headerUrl': value['headerUrl'],
|
|
296
|
+
'bgColor': value['bgColor'],
|
|
297
|
+
'fgColor': value['fgColor'],
|
|
212
298
|
'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
|
|
213
299
|
'address': value['address'],
|
|
214
300
|
'phone': value['phone'],
|
|
@@ -219,9 +305,17 @@ export function ClubProfileDtoProfileToJSONTyped(value?: ClubProfileDtoProfile |
|
|
|
219
305
|
'memberSince': value['memberSince'],
|
|
220
306
|
'membershipLabel': value['membershipLabel'],
|
|
221
307
|
'userRole': value['userRole'],
|
|
308
|
+
'email': value['email'],
|
|
309
|
+
'instagramHandle': value['instagramHandle'],
|
|
310
|
+
'facebookHandle': value['facebookHandle'],
|
|
311
|
+
'twitterHandle': value['twitterHandle'],
|
|
312
|
+
'youtubeHandle': value['youtubeHandle'],
|
|
222
313
|
'defaultLocationId': value['defaultLocationId'],
|
|
223
314
|
'defaultLocationCode': value['defaultLocationCode'],
|
|
224
315
|
'defaultLocationName': value['defaultLocationName'],
|
|
316
|
+
'courtCount': value['courtCount'],
|
|
317
|
+
'locationHours': value['locationHours'] == null ? undefined : ((value['locationHours'] as Array<any>).map(ClubProfileDtoProfileLocationHoursInnerToJSON)),
|
|
318
|
+
'serviceTypes': value['serviceTypes'] == null ? undefined : ((value['serviceTypes'] as Array<any>).map(ServiceTypeToJSON)),
|
|
225
319
|
};
|
|
226
320
|
}
|
|
227
321
|
|
|
@@ -0,0 +1,81 @@
|
|
|
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 ClubProfileDtoProfileLocationHoursInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ClubProfileDtoProfileLocationHoursInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ClubProfileDtoProfileLocationHoursInner
|
|
26
|
+
*/
|
|
27
|
+
day?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ClubProfileDtoProfileLocationHoursInner
|
|
32
|
+
*/
|
|
33
|
+
open?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ClubProfileDtoProfileLocationHoursInner
|
|
38
|
+
*/
|
|
39
|
+
close?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ClubProfileDtoProfileLocationHoursInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfClubProfileDtoProfileLocationHoursInner(value: object): value is ClubProfileDtoProfileLocationHoursInner {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ClubProfileDtoProfileLocationHoursInnerFromJSON(json: any): ClubProfileDtoProfileLocationHoursInner {
|
|
50
|
+
return ClubProfileDtoProfileLocationHoursInnerFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ClubProfileDtoProfileLocationHoursInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClubProfileDtoProfileLocationHoursInner {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'day': json['day'] == null ? undefined : json['day'],
|
|
60
|
+
'open': json['open'] == null ? undefined : json['open'],
|
|
61
|
+
'close': json['close'] == null ? undefined : json['close'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ClubProfileDtoProfileLocationHoursInnerToJSON(json: any): ClubProfileDtoProfileLocationHoursInner {
|
|
66
|
+
return ClubProfileDtoProfileLocationHoursInnerToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ClubProfileDtoProfileLocationHoursInnerToJSONTyped(value?: ClubProfileDtoProfileLocationHoursInner | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'day': value['day'],
|
|
77
|
+
'open': value['open'],
|
|
78
|
+
'close': value['close'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
package/models/Customer.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SportToJSON,
|
|
21
21
|
SportToJSONTyped,
|
|
22
22
|
} from './Sport';
|
|
23
|
+
import type { ServiceType } from './ServiceType';
|
|
24
|
+
import {
|
|
25
|
+
ServiceTypeFromJSON,
|
|
26
|
+
ServiceTypeFromJSONTyped,
|
|
27
|
+
ServiceTypeToJSON,
|
|
28
|
+
ServiceTypeToJSONTyped,
|
|
29
|
+
} from './ServiceType';
|
|
23
30
|
import type { CustomerRefund } from './CustomerRefund';
|
|
24
31
|
import {
|
|
25
32
|
CustomerRefundFromJSON,
|
|
@@ -101,6 +108,18 @@ export interface Customer {
|
|
|
101
108
|
* @memberof Customer
|
|
102
109
|
*/
|
|
103
110
|
headerUrl?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* Background color for the club header (hex, default
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof Customer
|
|
115
|
+
*/
|
|
116
|
+
bgColor?: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* Foreground/text color for the club header (hex, default
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof Customer
|
|
121
|
+
*/
|
|
122
|
+
fgColor?: string | null;
|
|
104
123
|
/**
|
|
105
124
|
* Instagram handle of the customer
|
|
106
125
|
* @type {string}
|
|
@@ -149,6 +168,12 @@ export interface Customer {
|
|
|
149
168
|
* @memberof Customer
|
|
150
169
|
*/
|
|
151
170
|
refund: CustomerRefund;
|
|
171
|
+
/**
|
|
172
|
+
* Services offered by this club
|
|
173
|
+
* @type {Array<ServiceType>}
|
|
174
|
+
* @memberof Customer
|
|
175
|
+
*/
|
|
176
|
+
serviceTypes?: Array<ServiceType>;
|
|
152
177
|
}
|
|
153
178
|
|
|
154
179
|
|
|
@@ -190,6 +215,8 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
190
215
|
'website': json['website'],
|
|
191
216
|
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
192
217
|
'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
|
|
218
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
219
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
193
220
|
'instagramHandle': json['instagramHandle'],
|
|
194
221
|
'facebookHandle': json['facebookHandle'] == null ? undefined : json['facebookHandle'],
|
|
195
222
|
'twitterHandle': json['twitterHandle'] == null ? undefined : json['twitterHandle'],
|
|
@@ -198,6 +225,7 @@ export function CustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
198
225
|
'status': json['status'] == null ? undefined : CustomerStatusFromJSON(json['status']),
|
|
199
226
|
'active': json['active'] == null ? undefined : json['active'],
|
|
200
227
|
'refund': CustomerRefundFromJSON(json['refund']),
|
|
228
|
+
'serviceTypes': json['serviceTypes'] == null ? undefined : ((json['serviceTypes'] as Array<any>).map(ServiceTypeFromJSON)),
|
|
201
229
|
};
|
|
202
230
|
}
|
|
203
231
|
|
|
@@ -222,6 +250,8 @@ export function CustomerToJSONTyped(value?: Customer | null, ignoreDiscriminator
|
|
|
222
250
|
'website': value['website'],
|
|
223
251
|
'avatarUrl': value['avatarUrl'],
|
|
224
252
|
'headerUrl': value['headerUrl'],
|
|
253
|
+
'bgColor': value['bgColor'],
|
|
254
|
+
'fgColor': value['fgColor'],
|
|
225
255
|
'instagramHandle': value['instagramHandle'],
|
|
226
256
|
'facebookHandle': value['facebookHandle'],
|
|
227
257
|
'twitterHandle': value['twitterHandle'],
|
|
@@ -230,6 +260,7 @@ export function CustomerToJSONTyped(value?: Customer | null, ignoreDiscriminator
|
|
|
230
260
|
'status': CustomerStatusToJSON(value['status']),
|
|
231
261
|
'active': value['active'],
|
|
232
262
|
'refund': CustomerRefundToJSON(value['refund']),
|
|
263
|
+
'serviceTypes': value['serviceTypes'] == null ? undefined : ((value['serviceTypes'] as Array<any>).map(ServiceTypeToJSON)),
|
|
233
264
|
};
|
|
234
265
|
}
|
|
235
266
|
|
package/models/CustomerDto.ts
CHANGED
|
@@ -82,6 +82,18 @@ export interface CustomerDto {
|
|
|
82
82
|
* @memberof CustomerDto
|
|
83
83
|
*/
|
|
84
84
|
headerUrl?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* Background color for the club header (hex)
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof CustomerDto
|
|
89
|
+
*/
|
|
90
|
+
bgColor?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* Foreground/text color for the club header (hex)
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CustomerDto
|
|
95
|
+
*/
|
|
96
|
+
fgColor?: string | null;
|
|
85
97
|
/**
|
|
86
98
|
* Instagram handle of the customer
|
|
87
99
|
* @type {string}
|
|
@@ -106,6 +118,18 @@ export interface CustomerDto {
|
|
|
106
118
|
* @memberof CustomerDto
|
|
107
119
|
*/
|
|
108
120
|
youtubeHandle?: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Array of sports offered by the customer
|
|
123
|
+
* @type {Array<string>}
|
|
124
|
+
* @memberof CustomerDto
|
|
125
|
+
*/
|
|
126
|
+
sports?: Array<string>;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the currently authenticated user is the owner of this customer
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
* @memberof CustomerDto
|
|
131
|
+
*/
|
|
132
|
+
isOwner?: boolean | null;
|
|
109
133
|
/**
|
|
110
134
|
* Array of customer locations
|
|
111
135
|
* @type {Array<CustomerLocationDto>}
|
|
@@ -166,10 +190,14 @@ export function CustomerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
166
190
|
'website': json['website'],
|
|
167
191
|
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
168
192
|
'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
|
|
193
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
194
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
169
195
|
'instagramHandle': json['instagramHandle'],
|
|
170
196
|
'facebookHandle': json['facebookHandle'] == null ? undefined : json['facebookHandle'],
|
|
171
197
|
'twitterHandle': json['twitterHandle'] == null ? undefined : json['twitterHandle'],
|
|
172
198
|
'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
|
|
199
|
+
'sports': json['sports'] == null ? undefined : json['sports'],
|
|
200
|
+
'isOwner': json['isOwner'] == null ? undefined : json['isOwner'],
|
|
173
201
|
'locations': json['locations'] == null ? undefined : ((json['locations'] as Array<any>).map(CustomerLocationDtoFromJSON)),
|
|
174
202
|
'inviteCode': json['inviteCode'],
|
|
175
203
|
'timezone': json['timezone'],
|
|
@@ -196,10 +224,14 @@ export function CustomerDtoToJSONTyped(value?: CustomerDto | null, ignoreDiscrim
|
|
|
196
224
|
'website': value['website'],
|
|
197
225
|
'avatarUrl': value['avatarUrl'],
|
|
198
226
|
'headerUrl': value['headerUrl'],
|
|
227
|
+
'bgColor': value['bgColor'],
|
|
228
|
+
'fgColor': value['fgColor'],
|
|
199
229
|
'instagramHandle': value['instagramHandle'],
|
|
200
230
|
'facebookHandle': value['facebookHandle'],
|
|
201
231
|
'twitterHandle': value['twitterHandle'],
|
|
202
232
|
'youtubeHandle': value['youtubeHandle'],
|
|
233
|
+
'sports': value['sports'],
|
|
234
|
+
'isOwner': value['isOwner'],
|
|
203
235
|
'locations': value['locations'] == null ? undefined : ((value['locations'] as Array<any>).map(CustomerLocationDtoToJSON)),
|
|
204
236
|
'inviteCode': value['inviteCode'],
|
|
205
237
|
'timezone': value['timezone'],
|
package/models/Location.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SportToJSON,
|
|
21
21
|
SportToJSONTyped,
|
|
22
22
|
} from './Sport';
|
|
23
|
+
import type { LocationHour } from './LocationHour';
|
|
24
|
+
import {
|
|
25
|
+
LocationHourFromJSON,
|
|
26
|
+
LocationHourFromJSONTyped,
|
|
27
|
+
LocationHourToJSON,
|
|
28
|
+
LocationHourToJSONTyped,
|
|
29
|
+
} from './LocationHour';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -129,6 +136,12 @@ export interface Location {
|
|
|
129
136
|
* @memberof Location
|
|
130
137
|
*/
|
|
131
138
|
rating?: number;
|
|
139
|
+
/**
|
|
140
|
+
* Operating hours per day of the week
|
|
141
|
+
* @type {Array<LocationHour>}
|
|
142
|
+
* @memberof Location
|
|
143
|
+
*/
|
|
144
|
+
locationHours?: Array<LocationHour>;
|
|
132
145
|
}
|
|
133
146
|
|
|
134
147
|
/**
|
|
@@ -173,6 +186,7 @@ export function LocationFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
173
186
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
174
187
|
'features': json['features'] == null ? undefined : json['features'],
|
|
175
188
|
'rating': json['rating'] == null ? undefined : json['rating'],
|
|
189
|
+
'locationHours': json['locationHours'] == null ? undefined : ((json['locationHours'] as Array<any>).map(LocationHourFromJSON)),
|
|
176
190
|
};
|
|
177
191
|
}
|
|
178
192
|
|
|
@@ -204,6 +218,7 @@ export function LocationToJSONTyped(value?: Location | null, ignoreDiscriminator
|
|
|
204
218
|
'isDefault': value['isDefault'],
|
|
205
219
|
'features': value['features'],
|
|
206
220
|
'rating': value['rating'],
|
|
221
|
+
'locationHours': value['locationHours'] == null ? undefined : ((value['locationHours'] as Array<any>).map(LocationHourToJSON)),
|
|
207
222
|
};
|
|
208
223
|
}
|
|
209
224
|
|
package/models/LocationDto.ts
CHANGED
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
SportToJSON,
|
|
21
21
|
SportToJSONTyped,
|
|
22
22
|
} from './Sport';
|
|
23
|
+
import type { LocationDtoLocationHoursInner } from './LocationDtoLocationHoursInner';
|
|
24
|
+
import {
|
|
25
|
+
LocationDtoLocationHoursInnerFromJSON,
|
|
26
|
+
LocationDtoLocationHoursInnerFromJSONTyped,
|
|
27
|
+
LocationDtoLocationHoursInnerToJSON,
|
|
28
|
+
LocationDtoLocationHoursInnerToJSONTyped,
|
|
29
|
+
} from './LocationDtoLocationHoursInner';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -135,6 +142,12 @@ export interface LocationDto {
|
|
|
135
142
|
* @memberof LocationDto
|
|
136
143
|
*/
|
|
137
144
|
placeId?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Operating hours per day. Replaces all existing hours for this location when provided.
|
|
147
|
+
* @type {Array<LocationDtoLocationHoursInner>}
|
|
148
|
+
* @memberof LocationDto
|
|
149
|
+
*/
|
|
150
|
+
locationHours?: Array<LocationDtoLocationHoursInner>;
|
|
138
151
|
}
|
|
139
152
|
|
|
140
153
|
/**
|
|
@@ -175,6 +188,7 @@ export function LocationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
175
188
|
'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
|
|
176
189
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
177
190
|
'placeId': json['placeId'] == null ? undefined : json['placeId'],
|
|
191
|
+
'locationHours': json['locationHours'] == null ? undefined : ((json['locationHours'] as Array<any>).map(LocationDtoLocationHoursInnerFromJSON)),
|
|
178
192
|
};
|
|
179
193
|
}
|
|
180
194
|
|
|
@@ -207,6 +221,7 @@ export function LocationDtoToJSONTyped(value?: LocationDto | null, ignoreDiscrim
|
|
|
207
221
|
'youtubeHandle': value['youtubeHandle'],
|
|
208
222
|
'isDefault': value['isDefault'],
|
|
209
223
|
'placeId': value['placeId'],
|
|
224
|
+
'locationHours': value['locationHours'] == null ? undefined : ((value['locationHours'] as Array<any>).map(LocationDtoLocationHoursInnerToJSON)),
|
|
210
225
|
};
|
|
211
226
|
}
|
|
212
227
|
|