@jugarhoy/api 1.0.0
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/AdminCoachesApi.ts +259 -0
- package/apis/AdminCustomersApi.ts +374 -0
- package/apis/AdminDevicesApi.ts +364 -0
- package/apis/AdminLocationsApi.ts +304 -0
- package/apis/AdminPaymentConfigsApi.ts +358 -0
- package/apis/AdminPlayPricesApi.ts +397 -0
- package/apis/AdminPlaySpotShiftsApi.ts +267 -0
- package/apis/AdminPlaySpotsApi.ts +307 -0
- package/apis/AdminReservationsApi.ts +335 -0
- package/apis/AdminSubscriptionsApi.ts +354 -0
- package/apis/AdminUsersApi.ts +323 -0
- package/apis/AuthApi.ts +196 -0
- package/apis/BackgroundApi.ts +66 -0
- package/apis/ClubApi.ts +174 -0
- package/apis/DevicesApi.ts +136 -0
- package/apis/HealthApi.ts +56 -0
- package/apis/MercadoPagoApi.ts +111 -0
- package/apis/MercadoPagoIPNApi.ts +80 -0
- package/apis/PlaySpotsApi.ts +207 -0
- package/apis/ReservesApi.ts +366 -0
- package/apis/UsersApi.ts +648 -0
- package/apis/index.ts +23 -0
- package/index.ts +5 -0
- package/models/AddMemberToSubscriptionRequest.ts +66 -0
- package/models/ApiAdminPlayPricesIdPutRequest.ts +140 -0
- package/models/ApiAdminPlayPricesPostRequest.ts +146 -0
- package/models/AvailabilityShift.ts +89 -0
- package/models/AvailabilityShiftHour.ts +81 -0
- package/models/AvailabilityShiftSpot.ts +89 -0
- package/models/CancelReservationParams.ts +75 -0
- package/models/CancelReservationRequest.ts +66 -0
- package/models/CancelReservationResult.ts +89 -0
- package/models/ChargeOn.ts +53 -0
- package/models/Check200Response.ts +65 -0
- package/models/CheckUserExists200Response.ts +73 -0
- package/models/ClubDto.ts +164 -0
- package/models/ClubSearchParams.ts +119 -0
- package/models/ClubSearchParamsGeo.ts +73 -0
- package/models/ClubSearchParamsPaging.ts +73 -0
- package/models/ClubSearchResponse.ts +88 -0
- package/models/ClubSearchResponseDataInner.ts +168 -0
- package/models/ClubSearchResponsePagination.ts +89 -0
- package/models/Coach.ts +121 -0
- package/models/CoachDto.ts +119 -0
- package/models/CoachDtoAvailabilityInner.ts +88 -0
- package/models/ConfirmReservationParams.ts +74 -0
- package/models/ConfirmReservationResponse.ts +83 -0
- package/models/ConfirmReservationResponseResult.ts +81 -0
- package/models/CreateBasicUserDto.ts +112 -0
- package/models/CreateCheckoutPreferenceRequest.ts +104 -0
- package/models/CreateCheckoutPreferenceRequestBackUrls.ts +81 -0
- package/models/CreateCheckoutPreferenceRequestItemsInner.ts +89 -0
- package/models/CreateCustomerPaymentConfigDto.ts +84 -0
- package/models/CreateDefault500Response.ts +65 -0
- package/models/CreateFromInvite400Response.ts +65 -0
- package/models/CreateShiftRequest.ts +153 -0
- package/models/CreateUserNotificationDto.ts +93 -0
- package/models/Customer.ts +235 -0
- package/models/CustomerDocument.ts +128 -0
- package/models/CustomerDto.ts +209 -0
- package/models/CustomerDtoRefund.ts +103 -0
- package/models/CustomerLocationDto.ts +102 -0
- package/models/CustomerPaymentConfig.ts +144 -0
- package/models/CustomerPaymentConfigDto.ts +85 -0
- package/models/CustomerRefund.ts +102 -0
- package/models/CustomerStatus.ts +53 -0
- package/models/DayOfWeek.ts +58 -0
- package/models/DeleteShift200Response.ts +65 -0
- package/models/Device.ts +139 -0
- package/models/DeviceDto.ts +131 -0
- package/models/DeviceState.ts +111 -0
- package/models/DeviceType.ts +53 -0
- package/models/DominantPlaySide.ts +54 -0
- package/models/ErrorResponse.ts +66 -0
- package/models/ExpireUnpaidReservationResult.ts +81 -0
- package/models/ExpireUnpaidReservations401Response.ts +65 -0
- package/models/ExpireUnpaidReservations500Response.ts +65 -0
- package/models/Feature.ts +121 -0
- package/models/FindOccurrences200Response.ts +91 -0
- package/models/Frequency.ts +54 -0
- package/models/GenerateCode500Response.ts +65 -0
- package/models/GetAllDevices200ResponseInner.ts +154 -0
- package/models/GetAllPlaySpots200ResponseInner.ts +213 -0
- package/models/GetAllShifts200ResponseInner.ts +199 -0
- package/models/GetHourlyReservationStatus200Response.ts +89 -0
- package/models/GetHourlyReservationStatus200ResponseHourlyStatusInner.ts +97 -0
- package/models/GetMercadoPagoAuthUrl200Response.ts +66 -0
- package/models/GetSession401Response.ts +65 -0
- package/models/GetSession500Response.ts +65 -0
- package/models/HourShiftDetail.ts +81 -0
- package/models/InitiateReservationParams.ts +137 -0
- package/models/Level.ts +54 -0
- package/models/LightControlResponse.ts +83 -0
- package/models/Location.ts +209 -0
- package/models/LocationDto.ts +204 -0
- package/models/ManageLightSwitch200Response.ts +81 -0
- package/models/ManageLightSwitch500Response.ts +73 -0
- package/models/MatchRequirements.ts +100 -0
- package/models/MercadoPagoIPN.ts +135 -0
- package/models/NotificationType.ts +55 -0
- package/models/Occurrence.ts +84 -0
- package/models/PaymentDetail.ts +185 -0
- package/models/PaymentMethod.ts +56 -0
- package/models/PaymentRefund.ts +111 -0
- package/models/PaymentStatus.ts +55 -0
- package/models/PaymentTerms.ts +85 -0
- package/models/PlayPrice.ts +165 -0
- package/models/PlaySpot.ts +197 -0
- package/models/PlaySpotAvailabilityDetail.ts +89 -0
- package/models/PlaySpotDateSummary.ts +81 -0
- package/models/PlaySpotDeviceExecutionState.ts +127 -0
- package/models/PlaySpotDto.ts +185 -0
- package/models/PlaySpotShift.ts +184 -0
- package/models/PlaySpotShortDto.ts +97 -0
- package/models/PlaySubscription.ts +293 -0
- package/models/PlaySubscriptionCreateDto.ts +167 -0
- package/models/PlaySubscriptionParams.ts +114 -0
- package/models/PlaySubscriptionType.ts +55 -0
- package/models/PlayerCategory.ts +61 -0
- package/models/ProcessEmailMessageRequest.ts +66 -0
- package/models/ProcessMercadoPagoIPN200Response.ts +73 -0
- package/models/ProcessMercadoPagoPaymentParams.ts +83 -0
- package/models/ProcessMercadoPagoPaymentResponse.ts +83 -0
- package/models/ProcessMercadoPagoPaymentResponseResult.ts +89 -0
- package/models/RefundPolicy.ts +54 -0
- package/models/RegisterClub400Response.ts +65 -0
- package/models/RegisterClub401Response.ts +65 -0
- package/models/RegisterClub500Response.ts +65 -0
- package/models/RegisterClubParams.ts +191 -0
- package/models/RegisterClubResponse.ts +83 -0
- package/models/RegisterClubResponseResult.ts +96 -0
- package/models/RentHour.ts +73 -0
- package/models/ReservationAccessCodeResponse.ts +91 -0
- package/models/ReservationAccessCodeResponseResult.ts +107 -0
- package/models/ReservationParams.ts +121 -0
- package/models/ReservationStatus.ts +55 -0
- package/models/Reserve.ts +290 -0
- package/models/ReserveDto.ts +207 -0
- package/models/ReserveSlotDto.ts +81 -0
- package/models/ReserveStatus.ts +57 -0
- package/models/ReserveType.ts +58 -0
- package/models/SearchClubs400Response.ts +65 -0
- package/models/SearchClubs500Response.ts +65 -0
- package/models/SetAuthCodeDto.ts +85 -0
- package/models/Shift.ts +93 -0
- package/models/Sport.ts +61 -0
- package/models/SuccessResponse.ts +66 -0
- package/models/TimeOfDay.ts +54 -0
- package/models/TriggerDeviceAction200Response.ts +81 -0
- package/models/TriggerDeviceActionRequest.ts +73 -0
- package/models/UpdateReservationAdminRequest.ts +83 -0
- package/models/UpdateReserveDto.ts +83 -0
- package/models/UpdateUserNotificationDto.ts +73 -0
- package/models/User.ts +243 -0
- package/models/UserAuth.ts +135 -0
- package/models/UserDto.ts +142 -0
- package/models/UserNotification.ts +123 -0
- package/models/UserNotificationDto.ts +115 -0
- package/models/UserRating.ts +75 -0
- package/models/UserReserveDto.ts +230 -0
- package/models/UserRole.ts +53 -0
- package/models/UserSession.ts +129 -0
- package/models/UserSessionCustomer.ts +81 -0
- package/models/UserSportProfile.ts +117 -0
- package/models/UserSportProfileDto.ts +117 -0
- package/models/UserType.ts +54 -0
- package/models/VerifyPhoneNumber200Response.ts +65 -0
- package/models/VerifyPhoneNumberRequest.ts +66 -0
- package/models/index.ts +147 -0
- package/package.json +35 -0
- package/runtime.ts +432 -0
package/models/Device.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
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 { DeviceType } from './DeviceType';
|
|
17
|
+
import {
|
|
18
|
+
DeviceTypeFromJSON,
|
|
19
|
+
DeviceTypeFromJSONTyped,
|
|
20
|
+
DeviceTypeToJSON,
|
|
21
|
+
DeviceTypeToJSONTyped,
|
|
22
|
+
} from './DeviceType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Device
|
|
28
|
+
*/
|
|
29
|
+
export interface Device {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the device
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Device
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Display name for the device
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Device
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Location identifier of the device
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Device
|
|
46
|
+
*/
|
|
47
|
+
locationId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Hardware identifier of the device
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Device
|
|
52
|
+
*/
|
|
53
|
+
hwDeviceId: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {DeviceType}
|
|
57
|
+
* @memberof Device
|
|
58
|
+
*/
|
|
59
|
+
deviceType: DeviceType;
|
|
60
|
+
/**
|
|
61
|
+
* References to the PlaySpots where this device is located
|
|
62
|
+
* @type {Array<string>}
|
|
63
|
+
* @memberof Device
|
|
64
|
+
*/
|
|
65
|
+
playSpotIds: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
* Action to perform when the device should start
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof Device
|
|
70
|
+
*/
|
|
71
|
+
startAction: string;
|
|
72
|
+
/**
|
|
73
|
+
* Action to perform when the device should end
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof Device
|
|
76
|
+
*/
|
|
77
|
+
endAction: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the Device interface.
|
|
84
|
+
*/
|
|
85
|
+
export function instanceOfDevice(value: object): value is Device {
|
|
86
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
87
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
88
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
89
|
+
if (!('hwDeviceId' in value) || value['hwDeviceId'] === undefined) return false;
|
|
90
|
+
if (!('deviceType' in value) || value['deviceType'] === undefined) return false;
|
|
91
|
+
if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
|
|
92
|
+
if (!('startAction' in value) || value['startAction'] === undefined) return false;
|
|
93
|
+
if (!('endAction' in value) || value['endAction'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function DeviceFromJSON(json: any): Device {
|
|
98
|
+
return DeviceFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function DeviceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Device {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'id': json['id'],
|
|
108
|
+
'name': json['name'],
|
|
109
|
+
'locationId': json['locationId'],
|
|
110
|
+
'hwDeviceId': json['hwDeviceId'],
|
|
111
|
+
'deviceType': DeviceTypeFromJSON(json['deviceType']),
|
|
112
|
+
'playSpotIds': json['playSpotIds'],
|
|
113
|
+
'startAction': json['startAction'],
|
|
114
|
+
'endAction': json['endAction'],
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function DeviceToJSON(json: any): Device {
|
|
119
|
+
return DeviceToJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function DeviceToJSONTyped(value?: Device | null, ignoreDiscriminator: boolean = false): any {
|
|
123
|
+
if (value == null) {
|
|
124
|
+
return value;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'id': value['id'],
|
|
130
|
+
'name': value['name'],
|
|
131
|
+
'locationId': value['locationId'],
|
|
132
|
+
'hwDeviceId': value['hwDeviceId'],
|
|
133
|
+
'deviceType': DeviceTypeToJSON(value['deviceType']),
|
|
134
|
+
'playSpotIds': value['playSpotIds'],
|
|
135
|
+
'startAction': value['startAction'],
|
|
136
|
+
'endAction': value['endAction'],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -0,0 +1,131 @@
|
|
|
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 DeviceDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DeviceDto {
|
|
22
|
+
/**
|
|
23
|
+
* Display name for the device
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DeviceDto
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* ID of the location where the device is installed
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DeviceDto
|
|
32
|
+
*/
|
|
33
|
+
locationId: string;
|
|
34
|
+
/**
|
|
35
|
+
* Hardware identifier of the device
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof DeviceDto
|
|
38
|
+
*/
|
|
39
|
+
hwDeviceId: string;
|
|
40
|
+
/**
|
|
41
|
+
* Type of the device
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof DeviceDto
|
|
44
|
+
*/
|
|
45
|
+
deviceType: DeviceDtoDeviceTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Array of PlaySpot IDs where this device is located
|
|
48
|
+
* @type {Array<string>}
|
|
49
|
+
* @memberof DeviceDto
|
|
50
|
+
*/
|
|
51
|
+
playSpotIds: Array<string>;
|
|
52
|
+
/**
|
|
53
|
+
* Action to perform when the device should start
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof DeviceDto
|
|
56
|
+
*/
|
|
57
|
+
startAction: string;
|
|
58
|
+
/**
|
|
59
|
+
* Action to perform when the device should end
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof DeviceDto
|
|
62
|
+
*/
|
|
63
|
+
endAction: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
export const DeviceDtoDeviceTypeEnum = {
|
|
71
|
+
Lightswitch: 'lightswitch',
|
|
72
|
+
Doorlock: 'doorlock'
|
|
73
|
+
} as const;
|
|
74
|
+
export type DeviceDtoDeviceTypeEnum = typeof DeviceDtoDeviceTypeEnum[keyof typeof DeviceDtoDeviceTypeEnum];
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the DeviceDto interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfDeviceDto(value: object): value is DeviceDto {
|
|
81
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
82
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
83
|
+
if (!('hwDeviceId' in value) || value['hwDeviceId'] === undefined) return false;
|
|
84
|
+
if (!('deviceType' in value) || value['deviceType'] === undefined) return false;
|
|
85
|
+
if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
|
|
86
|
+
if (!('startAction' in value) || value['startAction'] === undefined) return false;
|
|
87
|
+
if (!('endAction' in value) || value['endAction'] === undefined) return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function DeviceDtoFromJSON(json: any): DeviceDto {
|
|
92
|
+
return DeviceDtoFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function DeviceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceDto {
|
|
96
|
+
if (json == null) {
|
|
97
|
+
return json;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'name': json['name'],
|
|
102
|
+
'locationId': json['locationId'],
|
|
103
|
+
'hwDeviceId': json['hwDeviceId'],
|
|
104
|
+
'deviceType': json['deviceType'],
|
|
105
|
+
'playSpotIds': json['playSpotIds'],
|
|
106
|
+
'startAction': json['startAction'],
|
|
107
|
+
'endAction': json['endAction'],
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function DeviceDtoToJSON(json: any): DeviceDto {
|
|
112
|
+
return DeviceDtoToJSONTyped(json, false);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function DeviceDtoToJSONTyped(value?: DeviceDto | null, ignoreDiscriminator: boolean = false): any {
|
|
116
|
+
if (value == null) {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return {
|
|
121
|
+
|
|
122
|
+
'name': value['name'],
|
|
123
|
+
'locationId': value['locationId'],
|
|
124
|
+
'hwDeviceId': value['hwDeviceId'],
|
|
125
|
+
'deviceType': value['deviceType'],
|
|
126
|
+
'playSpotIds': value['playSpotIds'],
|
|
127
|
+
'startAction': value['startAction'],
|
|
128
|
+
'endAction': value['endAction'],
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
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 { DeviceType } from './DeviceType';
|
|
17
|
+
import {
|
|
18
|
+
DeviceTypeFromJSON,
|
|
19
|
+
DeviceTypeFromJSONTyped,
|
|
20
|
+
DeviceTypeToJSON,
|
|
21
|
+
DeviceTypeToJSONTyped,
|
|
22
|
+
} from './DeviceType';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface DeviceState
|
|
28
|
+
*/
|
|
29
|
+
export interface DeviceState {
|
|
30
|
+
/**
|
|
31
|
+
* The unique identifier of the device
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DeviceState
|
|
34
|
+
*/
|
|
35
|
+
deviceId: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {DeviceType}
|
|
39
|
+
* @memberof DeviceState
|
|
40
|
+
*/
|
|
41
|
+
deviceType: DeviceType;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the device operation was executed
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof DeviceState
|
|
46
|
+
*/
|
|
47
|
+
isExecuted: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Whether the last operation was successful
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof DeviceState
|
|
52
|
+
*/
|
|
53
|
+
success: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Optional error message if the operation failed
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof DeviceState
|
|
58
|
+
*/
|
|
59
|
+
error?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the DeviceState interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfDeviceState(value: object): value is DeviceState {
|
|
68
|
+
if (!('deviceId' in value) || value['deviceId'] === undefined) return false;
|
|
69
|
+
if (!('deviceType' in value) || value['deviceType'] === undefined) return false;
|
|
70
|
+
if (!('isExecuted' in value) || value['isExecuted'] === undefined) return false;
|
|
71
|
+
if (!('success' in value) || value['success'] === undefined) return false;
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function DeviceStateFromJSON(json: any): DeviceState {
|
|
76
|
+
return DeviceStateFromJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function DeviceStateFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceState {
|
|
80
|
+
if (json == null) {
|
|
81
|
+
return json;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
|
|
85
|
+
'deviceId': json['deviceId'],
|
|
86
|
+
'deviceType': DeviceTypeFromJSON(json['deviceType']),
|
|
87
|
+
'isExecuted': json['isExecuted'],
|
|
88
|
+
'success': json['success'],
|
|
89
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function DeviceStateToJSON(json: any): DeviceState {
|
|
94
|
+
return DeviceStateToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function DeviceStateToJSONTyped(value?: DeviceState | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'deviceId': value['deviceId'],
|
|
105
|
+
'deviceType': DeviceTypeToJSON(value['deviceType']),
|
|
106
|
+
'isExecuted': value['isExecuted'],
|
|
107
|
+
'success': value['success'],
|
|
108
|
+
'error': value['error'],
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Types of devices that can be controlled
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const DeviceType = {
|
|
21
|
+
Lightswitch: 'lightswitch',
|
|
22
|
+
Doorlock: 'doorlock'
|
|
23
|
+
} as const;
|
|
24
|
+
export type DeviceType = typeof DeviceType[keyof typeof DeviceType];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfDeviceType(value: any): boolean {
|
|
28
|
+
for (const key in DeviceType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(DeviceType, key)) {
|
|
30
|
+
if (DeviceType[key as keyof typeof DeviceType] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function DeviceTypeFromJSON(json: any): DeviceType {
|
|
39
|
+
return DeviceTypeFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function DeviceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeviceType {
|
|
43
|
+
return json as DeviceType;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function DeviceTypeToJSON(value?: DeviceType | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function DeviceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): DeviceType {
|
|
51
|
+
return value as DeviceType;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Represents the dominant playing side of a member
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const DominantPlaySide = {
|
|
21
|
+
Left: 'LEFT',
|
|
22
|
+
Right: 'RIGHT',
|
|
23
|
+
Balanced: 'BALANCED'
|
|
24
|
+
} as const;
|
|
25
|
+
export type DominantPlaySide = typeof DominantPlaySide[keyof typeof DominantPlaySide];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfDominantPlaySide(value: any): boolean {
|
|
29
|
+
for (const key in DominantPlaySide) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(DominantPlaySide, key)) {
|
|
31
|
+
if (DominantPlaySide[key as keyof typeof DominantPlaySide] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function DominantPlaySideFromJSON(json: any): DominantPlaySide {
|
|
40
|
+
return DominantPlaySideFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function DominantPlaySideFromJSONTyped(json: any, ignoreDiscriminator: boolean): DominantPlaySide {
|
|
44
|
+
return json as DominantPlaySide;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function DominantPlaySideToJSON(value?: DominantPlaySide | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function DominantPlaySideToJSONTyped(value: any, ignoreDiscriminator: boolean): DominantPlaySide {
|
|
52
|
+
return value as DominantPlaySide;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 ErrorResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface ErrorResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Error message describing what went wrong
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ErrorResponse
|
|
26
|
+
*/
|
|
27
|
+
error: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ErrorResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfErrorResponse(value: object): value is ErrorResponse {
|
|
34
|
+
if (!('error' in value) || value['error'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ErrorResponseFromJSON(json: any): ErrorResponse {
|
|
39
|
+
return ErrorResponseFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ErrorResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorResponse {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'error': json['error'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ErrorResponseToJSON(json: any): ErrorResponse {
|
|
53
|
+
return ErrorResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ErrorResponseToJSONTyped(value?: ErrorResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'error': value['error'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -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
|
+
import type { Reserve } from './Reserve';
|
|
17
|
+
import {
|
|
18
|
+
ReserveFromJSON,
|
|
19
|
+
ReserveFromJSONTyped,
|
|
20
|
+
ReserveToJSON,
|
|
21
|
+
ReserveToJSONTyped,
|
|
22
|
+
} from './Reserve';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ExpireUnpaidReservationResult
|
|
28
|
+
*/
|
|
29
|
+
export interface ExpireUnpaidReservationResult {
|
|
30
|
+
/**
|
|
31
|
+
* Number of reservations that were expired
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ExpireUnpaidReservationResult
|
|
34
|
+
*/
|
|
35
|
+
expiredCount?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Array of expired reservations
|
|
38
|
+
* @type {Array<Reserve>}
|
|
39
|
+
* @memberof ExpireUnpaidReservationResult
|
|
40
|
+
*/
|
|
41
|
+
expiredReservations?: Array<Reserve>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ExpireUnpaidReservationResult interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfExpireUnpaidReservationResult(value: object): value is ExpireUnpaidReservationResult {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ExpireUnpaidReservationResultFromJSON(json: any): ExpireUnpaidReservationResult {
|
|
52
|
+
return ExpireUnpaidReservationResultFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ExpireUnpaidReservationResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpireUnpaidReservationResult {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'expiredCount': json['expiredCount'] == null ? undefined : json['expiredCount'],
|
|
62
|
+
'expiredReservations': json['expiredReservations'] == null ? undefined : ((json['expiredReservations'] as Array<any>).map(ReserveFromJSON)),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ExpireUnpaidReservationResultToJSON(json: any): ExpireUnpaidReservationResult {
|
|
67
|
+
return ExpireUnpaidReservationResultToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ExpireUnpaidReservationResultToJSONTyped(value?: ExpireUnpaidReservationResult | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'expiredCount': value['expiredCount'],
|
|
78
|
+
'expiredReservations': value['expiredReservations'] == null ? undefined : ((value['expiredReservations'] as Array<any>).map(ReserveToJSON)),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 ExpireUnpaidReservations401Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ExpireUnpaidReservations401Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExpireUnpaidReservations401Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ExpireUnpaidReservations401Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfExpireUnpaidReservations401Response(value: object): value is ExpireUnpaidReservations401Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ExpireUnpaidReservations401ResponseFromJSON(json: any): ExpireUnpaidReservations401Response {
|
|
38
|
+
return ExpireUnpaidReservations401ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ExpireUnpaidReservations401ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpireUnpaidReservations401Response {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'error': json['error'] == null ? undefined : json['error'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ExpireUnpaidReservations401ResponseToJSON(json: any): ExpireUnpaidReservations401Response {
|
|
52
|
+
return ExpireUnpaidReservations401ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ExpireUnpaidReservations401ResponseToJSONTyped(value?: ExpireUnpaidReservations401Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|