@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,84 @@
|
|
|
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 LocationDtoLocationHoursInner
|
|
20
|
+
*/
|
|
21
|
+
export interface LocationDtoLocationHoursInner {
|
|
22
|
+
/**
|
|
23
|
+
* Day key (monday|tuesday|wednesday|thursday|friday|saturday|sunday|holiday)
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LocationDtoLocationHoursInner
|
|
26
|
+
*/
|
|
27
|
+
day: string;
|
|
28
|
+
/**
|
|
29
|
+
* Opening time in HH:mm format
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LocationDtoLocationHoursInner
|
|
32
|
+
*/
|
|
33
|
+
open: string;
|
|
34
|
+
/**
|
|
35
|
+
* Closing time in HH:mm format
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LocationDtoLocationHoursInner
|
|
38
|
+
*/
|
|
39
|
+
close: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the LocationDtoLocationHoursInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfLocationDtoLocationHoursInner(value: object): value is LocationDtoLocationHoursInner {
|
|
46
|
+
if (!('day' in value) || value['day'] === undefined) return false;
|
|
47
|
+
if (!('open' in value) || value['open'] === undefined) return false;
|
|
48
|
+
if (!('close' in value) || value['close'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function LocationDtoLocationHoursInnerFromJSON(json: any): LocationDtoLocationHoursInner {
|
|
53
|
+
return LocationDtoLocationHoursInnerFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function LocationDtoLocationHoursInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationDtoLocationHoursInner {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'day': json['day'],
|
|
63
|
+
'open': json['open'],
|
|
64
|
+
'close': json['close'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function LocationDtoLocationHoursInnerToJSON(json: any): LocationDtoLocationHoursInner {
|
|
69
|
+
return LocationDtoLocationHoursInnerToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LocationDtoLocationHoursInnerToJSONTyped(value?: LocationDtoLocationHoursInner | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'day': value['day'],
|
|
80
|
+
'open': value['open'],
|
|
81
|
+
'close': value['close'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,102 @@
|
|
|
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 LocationHour
|
|
20
|
+
*/
|
|
21
|
+
export interface LocationHour {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LocationHour
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the location this hour belongs to
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof LocationHour
|
|
32
|
+
*/
|
|
33
|
+
locationId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Day of the week or holiday (monday|tuesday|wednesday|thursday|friday|saturday|sunday|holiday)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof LocationHour
|
|
38
|
+
*/
|
|
39
|
+
day: string;
|
|
40
|
+
/**
|
|
41
|
+
* Opening time in HH:mm format (e.g. "10:00")
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof LocationHour
|
|
44
|
+
*/
|
|
45
|
+
open: string;
|
|
46
|
+
/**
|
|
47
|
+
* Closing time in HH:mm format (e.g. "23:00")
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof LocationHour
|
|
50
|
+
*/
|
|
51
|
+
close: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the LocationHour interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfLocationHour(value: object): value is LocationHour {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
60
|
+
if (!('day' in value) || value['day'] === undefined) return false;
|
|
61
|
+
if (!('open' in value) || value['open'] === undefined) return false;
|
|
62
|
+
if (!('close' in value) || value['close'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function LocationHourFromJSON(json: any): LocationHour {
|
|
67
|
+
return LocationHourFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function LocationHourFromJSONTyped(json: any, ignoreDiscriminator: boolean): LocationHour {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': json['id'],
|
|
77
|
+
'locationId': json['locationId'],
|
|
78
|
+
'day': json['day'],
|
|
79
|
+
'open': json['open'],
|
|
80
|
+
'close': json['close'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function LocationHourToJSON(json: any): LocationHour {
|
|
85
|
+
return LocationHourToJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function LocationHourToJSONTyped(value?: LocationHour | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
+
if (value == null) {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'locationId': value['locationId'],
|
|
97
|
+
'day': value['day'],
|
|
98
|
+
'open': value['open'],
|
|
99
|
+
'close': value['close'],
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
package/models/MyClubDto.ts
CHANGED
|
@@ -71,6 +71,18 @@ export interface MyClubDto {
|
|
|
71
71
|
* @memberof MyClubDto
|
|
72
72
|
*/
|
|
73
73
|
headerUrl?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Background color for the club header (hex)
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof MyClubDto
|
|
78
|
+
*/
|
|
79
|
+
bgColor?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Foreground/text color for the club header (hex)
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof MyClubDto
|
|
84
|
+
*/
|
|
85
|
+
fgColor?: string | null;
|
|
74
86
|
/**
|
|
75
87
|
*
|
|
76
88
|
* @type {Array<Sport>}
|
|
@@ -143,6 +155,8 @@ export function MyClubDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
143
155
|
'customerName': json['customerName'],
|
|
144
156
|
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
145
157
|
'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
|
|
158
|
+
'bgColor': json['bgColor'] == null ? undefined : json['bgColor'],
|
|
159
|
+
'fgColor': json['fgColor'] == null ? undefined : json['fgColor'],
|
|
146
160
|
'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
|
|
147
161
|
'active': json['active'],
|
|
148
162
|
'userRole': json['userRole'],
|
|
@@ -167,6 +181,8 @@ export function MyClubDtoToJSONTyped(value?: MyClubDto | null, ignoreDiscriminat
|
|
|
167
181
|
'customerName': value['customerName'],
|
|
168
182
|
'avatarUrl': value['avatarUrl'],
|
|
169
183
|
'headerUrl': value['headerUrl'],
|
|
184
|
+
'bgColor': value['bgColor'],
|
|
185
|
+
'fgColor': value['fgColor'],
|
|
170
186
|
'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
|
|
171
187
|
'active': value['active'],
|
|
172
188
|
'userRole': value['userRole'],
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { RegisterClubParamsLocationHoursInner } from './RegisterClubParamsLocationHoursInner';
|
|
17
|
+
import {
|
|
18
|
+
RegisterClubParamsLocationHoursInnerFromJSON,
|
|
19
|
+
RegisterClubParamsLocationHoursInnerFromJSONTyped,
|
|
20
|
+
RegisterClubParamsLocationHoursInnerToJSON,
|
|
21
|
+
RegisterClubParamsLocationHoursInnerToJSONTyped,
|
|
22
|
+
} from './RegisterClubParamsLocationHoursInner';
|
|
16
23
|
import type { Sport } from './Sport';
|
|
17
24
|
import {
|
|
18
25
|
SportFromJSON,
|
|
@@ -123,6 +130,12 @@ export interface RegisterClubParams {
|
|
|
123
130
|
* @memberof RegisterClubParams
|
|
124
131
|
*/
|
|
125
132
|
headerBase64?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Optional operating hours pre-loaded from Google Places
|
|
135
|
+
* @type {Array<RegisterClubParamsLocationHoursInner>}
|
|
136
|
+
* @memberof RegisterClubParams
|
|
137
|
+
*/
|
|
138
|
+
locationHours?: Array<RegisterClubParamsLocationHoursInner>;
|
|
126
139
|
}
|
|
127
140
|
|
|
128
141
|
/**
|
|
@@ -172,6 +185,7 @@ export function RegisterClubParamsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
172
185
|
'placeId': json['placeId'],
|
|
173
186
|
'avatarBase64': json['avatarBase64'] == null ? undefined : json['avatarBase64'],
|
|
174
187
|
'headerBase64': json['headerBase64'] == null ? undefined : json['headerBase64'],
|
|
188
|
+
'locationHours': json['locationHours'] == null ? undefined : ((json['locationHours'] as Array<any>).map(RegisterClubParamsLocationHoursInnerFromJSON)),
|
|
175
189
|
};
|
|
176
190
|
}
|
|
177
191
|
|
|
@@ -202,6 +216,7 @@ export function RegisterClubParamsToJSONTyped(value?: RegisterClubParams | null,
|
|
|
202
216
|
'placeId': value['placeId'],
|
|
203
217
|
'avatarBase64': value['avatarBase64'],
|
|
204
218
|
'headerBase64': value['headerBase64'],
|
|
219
|
+
'locationHours': value['locationHours'] == null ? undefined : ((value['locationHours'] as Array<any>).map(RegisterClubParamsLocationHoursInnerToJSON)),
|
|
205
220
|
};
|
|
206
221
|
}
|
|
207
222
|
|
|
@@ -0,0 +1,84 @@
|
|
|
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 RegisterClubParamsLocationHoursInner
|
|
20
|
+
*/
|
|
21
|
+
export interface RegisterClubParamsLocationHoursInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RegisterClubParamsLocationHoursInner
|
|
26
|
+
*/
|
|
27
|
+
day: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof RegisterClubParamsLocationHoursInner
|
|
32
|
+
*/
|
|
33
|
+
open: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof RegisterClubParamsLocationHoursInner
|
|
38
|
+
*/
|
|
39
|
+
close: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the RegisterClubParamsLocationHoursInner interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfRegisterClubParamsLocationHoursInner(value: object): value is RegisterClubParamsLocationHoursInner {
|
|
46
|
+
if (!('day' in value) || value['day'] === undefined) return false;
|
|
47
|
+
if (!('open' in value) || value['open'] === undefined) return false;
|
|
48
|
+
if (!('close' in value) || value['close'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RegisterClubParamsLocationHoursInnerFromJSON(json: any): RegisterClubParamsLocationHoursInner {
|
|
53
|
+
return RegisterClubParamsLocationHoursInnerFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function RegisterClubParamsLocationHoursInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegisterClubParamsLocationHoursInner {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'day': json['day'],
|
|
63
|
+
'open': json['open'],
|
|
64
|
+
'close': json['close'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function RegisterClubParamsLocationHoursInnerToJSON(json: any): RegisterClubParamsLocationHoursInner {
|
|
69
|
+
return RegisterClubParamsLocationHoursInnerToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function RegisterClubParamsLocationHoursInnerToJSONTyped(value?: RegisterClubParamsLocationHoursInner | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'day': value['day'],
|
|
80
|
+
'open': value['open'],
|
|
81
|
+
'close': value['close'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
package/models/ServiceType.ts
CHANGED
|
@@ -12,27 +12,54 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
16
|
/**
|
|
17
17
|
* Type of service configuration (WhatsApp or Tuya IoT)
|
|
18
18
|
* @export
|
|
19
|
+
* @interface ServiceType
|
|
19
20
|
*/
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
export interface ServiceType {
|
|
22
|
+
/**
|
|
23
|
+
* Unique identifier
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ServiceType
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the customer (club) that owns this service type
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ServiceType
|
|
32
|
+
*/
|
|
33
|
+
customerId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Display name of the service (e.g. "Wi-Fi", "Vestuario")
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ServiceType
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Material Icons name (e.g. "wifi", "fitness_center", "restaurant")
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ServiceType
|
|
44
|
+
*/
|
|
45
|
+
icon: string;
|
|
46
|
+
/**
|
|
47
|
+
* Optional short description of the service
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ServiceType
|
|
50
|
+
*/
|
|
51
|
+
description?: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the ServiceType interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfServiceType(value: object): value is ServiceType {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
60
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
62
|
+
return true;
|
|
36
63
|
}
|
|
37
64
|
|
|
38
65
|
export function ServiceTypeFromJSON(json: any): ServiceType {
|
|
@@ -40,14 +67,35 @@ export function ServiceTypeFromJSON(json: any): ServiceType {
|
|
|
40
67
|
}
|
|
41
68
|
|
|
42
69
|
export function ServiceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceType {
|
|
43
|
-
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'id': json['id'],
|
|
76
|
+
'customerId': json['customerId'],
|
|
77
|
+
'name': json['name'],
|
|
78
|
+
'icon': json['icon'],
|
|
79
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
80
|
+
};
|
|
44
81
|
}
|
|
45
82
|
|
|
46
|
-
export function ServiceTypeToJSON(
|
|
47
|
-
return
|
|
83
|
+
export function ServiceTypeToJSON(json: any): ServiceType {
|
|
84
|
+
return ServiceTypeToJSONTyped(json, false);
|
|
48
85
|
}
|
|
49
86
|
|
|
50
|
-
export function ServiceTypeToJSONTyped(value
|
|
51
|
-
|
|
87
|
+
export function ServiceTypeToJSONTyped(value?: ServiceType | null, ignoreDiscriminator: boolean = false): any {
|
|
88
|
+
if (value == null) {
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'id': value['id'],
|
|
95
|
+
'customerId': value['customerId'],
|
|
96
|
+
'name': value['name'],
|
|
97
|
+
'icon': value['icon'],
|
|
98
|
+
'description': value['description'],
|
|
99
|
+
};
|
|
52
100
|
}
|
|
53
101
|
|
|
@@ -0,0 +1,92 @@
|
|
|
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 ServiceTypeDto
|
|
20
|
+
*/
|
|
21
|
+
export interface ServiceTypeDto {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the customer (club) that owns this service type
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ServiceTypeDto
|
|
26
|
+
*/
|
|
27
|
+
customerId: string;
|
|
28
|
+
/**
|
|
29
|
+
* Display name of the service (e.g. "Wi-Fi", "Vestuario")
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ServiceTypeDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Material Icons name (e.g. "wifi", "fitness_center", "restaurant")
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ServiceTypeDto
|
|
38
|
+
*/
|
|
39
|
+
icon: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional short description of the service
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ServiceTypeDto
|
|
44
|
+
*/
|
|
45
|
+
description?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the ServiceTypeDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfServiceTypeDto(value: object): value is ServiceTypeDto {
|
|
52
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
53
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
54
|
+
if (!('icon' in value) || value['icon'] === undefined) return false;
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ServiceTypeDtoFromJSON(json: any): ServiceTypeDto {
|
|
59
|
+
return ServiceTypeDtoFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ServiceTypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ServiceTypeDto {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
|
|
68
|
+
'customerId': json['customerId'],
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'icon': json['icon'],
|
|
71
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function ServiceTypeDtoToJSON(json: any): ServiceTypeDto {
|
|
76
|
+
return ServiceTypeDtoToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ServiceTypeDtoToJSONTyped(value?: ServiceTypeDto | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'customerId': value['customerId'],
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'icon': value['icon'],
|
|
89
|
+
'description': value['description'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AppLocationHourItem } from './AppLocationHourItem';
|
|
17
|
+
import {
|
|
18
|
+
AppLocationHourItemFromJSON,
|
|
19
|
+
AppLocationHourItemFromJSONTyped,
|
|
20
|
+
AppLocationHourItemToJSON,
|
|
21
|
+
AppLocationHourItemToJSONTyped,
|
|
22
|
+
} from './AppLocationHourItem';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateAppLocationParams
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateAppLocationParams {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateAppLocationParams
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UpdateAppLocationParams
|
|
40
|
+
*/
|
|
41
|
+
phone?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof UpdateAppLocationParams
|
|
46
|
+
*/
|
|
47
|
+
email?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof UpdateAppLocationParams
|
|
52
|
+
*/
|
|
53
|
+
website?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateAppLocationParams
|
|
58
|
+
*/
|
|
59
|
+
instagramHandle?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof UpdateAppLocationParams
|
|
64
|
+
*/
|
|
65
|
+
facebookHandle?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof UpdateAppLocationParams
|
|
70
|
+
*/
|
|
71
|
+
twitterHandle?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof UpdateAppLocationParams
|
|
76
|
+
*/
|
|
77
|
+
youtubeHandle?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* When provided, replaces all hours for this location
|
|
80
|
+
* @type {Array<AppLocationHourItem>}
|
|
81
|
+
* @memberof UpdateAppLocationParams
|
|
82
|
+
*/
|
|
83
|
+
locationHours?: Array<AppLocationHourItem> | null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the UpdateAppLocationParams interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfUpdateAppLocationParams(value: object): value is UpdateAppLocationParams {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function UpdateAppLocationParamsFromJSON(json: any): UpdateAppLocationParams {
|
|
94
|
+
return UpdateAppLocationParamsFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function UpdateAppLocationParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAppLocationParams {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
104
|
+
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
105
|
+
'email': json['email'] == null ? undefined : json['email'],
|
|
106
|
+
'website': json['website'] == null ? undefined : json['website'],
|
|
107
|
+
'instagramHandle': json['instagramHandle'] == null ? undefined : json['instagramHandle'],
|
|
108
|
+
'facebookHandle': json['facebookHandle'] == null ? undefined : json['facebookHandle'],
|
|
109
|
+
'twitterHandle': json['twitterHandle'] == null ? undefined : json['twitterHandle'],
|
|
110
|
+
'youtubeHandle': json['youtubeHandle'] == null ? undefined : json['youtubeHandle'],
|
|
111
|
+
'locationHours': json['locationHours'] == null ? undefined : ((json['locationHours'] as Array<any>).map(AppLocationHourItemFromJSON)),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function UpdateAppLocationParamsToJSON(json: any): UpdateAppLocationParams {
|
|
116
|
+
return UpdateAppLocationParamsToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function UpdateAppLocationParamsToJSONTyped(value?: UpdateAppLocationParams | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'name': value['name'],
|
|
127
|
+
'phone': value['phone'],
|
|
128
|
+
'email': value['email'],
|
|
129
|
+
'website': value['website'],
|
|
130
|
+
'instagramHandle': value['instagramHandle'],
|
|
131
|
+
'facebookHandle': value['facebookHandle'],
|
|
132
|
+
'twitterHandle': value['twitterHandle'],
|
|
133
|
+
'youtubeHandle': value['youtubeHandle'],
|
|
134
|
+
'locationHours': value['locationHours'] == null ? undefined : ((value['locationHours'] as Array<any>).map(AppLocationHourItemToJSON)),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|