@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
|
@@ -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 ExpireUnpaidReservations500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface ExpireUnpaidReservations500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ExpireUnpaidReservations500Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ExpireUnpaidReservations500Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfExpireUnpaidReservations500Response(value: object): value is ExpireUnpaidReservations500Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function ExpireUnpaidReservations500ResponseFromJSON(json: any): ExpireUnpaidReservations500Response {
|
|
38
|
+
return ExpireUnpaidReservations500ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function ExpireUnpaidReservations500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpireUnpaidReservations500Response {
|
|
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 ExpireUnpaidReservations500ResponseToJSON(json: any): ExpireUnpaidReservations500Response {
|
|
52
|
+
return ExpireUnpaidReservations500ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ExpireUnpaidReservations500ResponseToJSONTyped(value?: ExpireUnpaidReservations500Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
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 Feature
|
|
28
|
+
*/
|
|
29
|
+
export interface Feature {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the feature
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Feature
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Name of the feature
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Feature
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Description of the feature
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Feature
|
|
46
|
+
*/
|
|
47
|
+
description: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {Sport}
|
|
51
|
+
* @memberof Feature
|
|
52
|
+
*/
|
|
53
|
+
sport: Sport;
|
|
54
|
+
/**
|
|
55
|
+
* Date and time when the feature was created
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof Feature
|
|
58
|
+
*/
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
/**
|
|
61
|
+
* Date and time when the feature was last updated
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof Feature
|
|
64
|
+
*/
|
|
65
|
+
updatedAt: Date;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the Feature interface.
|
|
72
|
+
*/
|
|
73
|
+
export function instanceOfFeature(value: object): value is Feature {
|
|
74
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
75
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
76
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
77
|
+
if (!('sport' in value) || value['sport'] === undefined) return false;
|
|
78
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
79
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
80
|
+
return true;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function FeatureFromJSON(json: any): Feature {
|
|
84
|
+
return FeatureFromJSONTyped(json, false);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function FeatureFromJSONTyped(json: any, ignoreDiscriminator: boolean): Feature {
|
|
88
|
+
if (json == null) {
|
|
89
|
+
return json;
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'id': json['id'],
|
|
94
|
+
'name': json['name'],
|
|
95
|
+
'description': json['description'],
|
|
96
|
+
'sport': SportFromJSON(json['sport']),
|
|
97
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
98
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function FeatureToJSON(json: any): Feature {
|
|
103
|
+
return FeatureToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function FeatureToJSONTyped(value?: Feature | null, ignoreDiscriminator: boolean = false): any {
|
|
107
|
+
if (value == null) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'id': value['id'],
|
|
114
|
+
'name': value['name'],
|
|
115
|
+
'description': value['description'],
|
|
116
|
+
'sport': SportToJSON(value['sport']),
|
|
117
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
118
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -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 { Occurrence } from './Occurrence';
|
|
17
|
+
import {
|
|
18
|
+
OccurrenceFromJSON,
|
|
19
|
+
OccurrenceFromJSONTyped,
|
|
20
|
+
OccurrenceToJSON,
|
|
21
|
+
OccurrenceToJSONTyped,
|
|
22
|
+
} from './Occurrence';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface FindOccurrences200Response
|
|
28
|
+
*/
|
|
29
|
+
export interface FindOccurrences200Response {
|
|
30
|
+
/**
|
|
31
|
+
* List of calculated occurrences
|
|
32
|
+
* @type {Array<Occurrence>}
|
|
33
|
+
* @memberof FindOccurrences200Response
|
|
34
|
+
*/
|
|
35
|
+
occurrences: Array<Occurrence>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether there are scheduling conflicts
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof FindOccurrences200Response
|
|
40
|
+
*/
|
|
41
|
+
hasConflicts: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* List of conflicting occurrences (if any)
|
|
44
|
+
* @type {Array<Occurrence>}
|
|
45
|
+
* @memberof FindOccurrences200Response
|
|
46
|
+
*/
|
|
47
|
+
conflicts?: Array<Occurrence>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the FindOccurrences200Response interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfFindOccurrences200Response(value: object): value is FindOccurrences200Response {
|
|
54
|
+
if (!('occurrences' in value) || value['occurrences'] === undefined) return false;
|
|
55
|
+
if (!('hasConflicts' in value) || value['hasConflicts'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function FindOccurrences200ResponseFromJSON(json: any): FindOccurrences200Response {
|
|
60
|
+
return FindOccurrences200ResponseFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function FindOccurrences200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FindOccurrences200Response {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'occurrences': ((json['occurrences'] as Array<any>).map(OccurrenceFromJSON)),
|
|
70
|
+
'hasConflicts': json['hasConflicts'],
|
|
71
|
+
'conflicts': json['conflicts'] == null ? undefined : ((json['conflicts'] as Array<any>).map(OccurrenceFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function FindOccurrences200ResponseToJSON(json: any): FindOccurrences200Response {
|
|
76
|
+
return FindOccurrences200ResponseToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function FindOccurrences200ResponseToJSONTyped(value?: FindOccurrences200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return {
|
|
85
|
+
|
|
86
|
+
'occurrences': ((value['occurrences'] as Array<any>).map(OccurrenceToJSON)),
|
|
87
|
+
'hasConflicts': value['hasConflicts'],
|
|
88
|
+
'conflicts': value['conflicts'] == null ? undefined : ((value['conflicts'] as Array<any>).map(OccurrenceToJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
@@ -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
|
+
* The frequency of a subscription
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const Frequency = {
|
|
21
|
+
Weekly: 'weekly',
|
|
22
|
+
Biweekly: 'biweekly',
|
|
23
|
+
Monthly: 'monthly'
|
|
24
|
+
} as const;
|
|
25
|
+
export type Frequency = typeof Frequency[keyof typeof Frequency];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfFrequency(value: any): boolean {
|
|
29
|
+
for (const key in Frequency) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(Frequency, key)) {
|
|
31
|
+
if (Frequency[key as keyof typeof Frequency] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function FrequencyFromJSON(json: any): Frequency {
|
|
40
|
+
return FrequencyFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function FrequencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Frequency {
|
|
44
|
+
return json as Frequency;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function FrequencyToJSON(value?: Frequency | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function FrequencyToJSONTyped(value: any, ignoreDiscriminator: boolean): Frequency {
|
|
52
|
+
return value as Frequency;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -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 GenerateCode500Response
|
|
20
|
+
*/
|
|
21
|
+
export interface GenerateCode500Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GenerateCode500Response
|
|
26
|
+
*/
|
|
27
|
+
error?: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the GenerateCode500Response interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfGenerateCode500Response(value: object): value is GenerateCode500Response {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function GenerateCode500ResponseFromJSON(json: any): GenerateCode500Response {
|
|
38
|
+
return GenerateCode500ResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function GenerateCode500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GenerateCode500Response {
|
|
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 GenerateCode500ResponseToJSON(json: any): GenerateCode500Response {
|
|
52
|
+
return GenerateCode500ResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function GenerateCode500ResponseToJSONTyped(value?: GenerateCode500Response | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'error': value['error'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,154 @@
|
|
|
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
|
+
import type { PlaySpot } from './PlaySpot';
|
|
24
|
+
import {
|
|
25
|
+
PlaySpotFromJSON,
|
|
26
|
+
PlaySpotFromJSONTyped,
|
|
27
|
+
PlaySpotToJSON,
|
|
28
|
+
PlaySpotToJSONTyped,
|
|
29
|
+
} from './PlaySpot';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface GetAllDevices200ResponseInner
|
|
35
|
+
*/
|
|
36
|
+
export interface GetAllDevices200ResponseInner {
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the device
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GetAllDevices200ResponseInner
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Display name for the device
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof GetAllDevices200ResponseInner
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
* Location identifier of the device
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof GetAllDevices200ResponseInner
|
|
53
|
+
*/
|
|
54
|
+
locationId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Hardware identifier of the device
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof GetAllDevices200ResponseInner
|
|
59
|
+
*/
|
|
60
|
+
hwDeviceId: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {DeviceType}
|
|
64
|
+
* @memberof GetAllDevices200ResponseInner
|
|
65
|
+
*/
|
|
66
|
+
deviceType: DeviceType;
|
|
67
|
+
/**
|
|
68
|
+
* References to the PlaySpots where this device is located
|
|
69
|
+
* @type {Array<string>}
|
|
70
|
+
* @memberof GetAllDevices200ResponseInner
|
|
71
|
+
*/
|
|
72
|
+
playSpotIds: Array<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Action to perform when the device should start
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof GetAllDevices200ResponseInner
|
|
77
|
+
*/
|
|
78
|
+
startAction: string;
|
|
79
|
+
/**
|
|
80
|
+
* Action to perform when the device should end
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof GetAllDevices200ResponseInner
|
|
83
|
+
*/
|
|
84
|
+
endAction: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {Array<PlaySpot>}
|
|
88
|
+
* @memberof GetAllDevices200ResponseInner
|
|
89
|
+
*/
|
|
90
|
+
playSpots?: Array<PlaySpot>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the GetAllDevices200ResponseInner interface.
|
|
97
|
+
*/
|
|
98
|
+
export function instanceOfGetAllDevices200ResponseInner(value: object): value is GetAllDevices200ResponseInner {
|
|
99
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
100
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
101
|
+
if (!('locationId' in value) || value['locationId'] === undefined) return false;
|
|
102
|
+
if (!('hwDeviceId' in value) || value['hwDeviceId'] === undefined) return false;
|
|
103
|
+
if (!('deviceType' in value) || value['deviceType'] === undefined) return false;
|
|
104
|
+
if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
|
|
105
|
+
if (!('startAction' in value) || value['startAction'] === undefined) return false;
|
|
106
|
+
if (!('endAction' in value) || value['endAction'] === undefined) return false;
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function GetAllDevices200ResponseInnerFromJSON(json: any): GetAllDevices200ResponseInner {
|
|
111
|
+
return GetAllDevices200ResponseInnerFromJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function GetAllDevices200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAllDevices200ResponseInner {
|
|
115
|
+
if (json == null) {
|
|
116
|
+
return json;
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'id': json['id'],
|
|
121
|
+
'name': json['name'],
|
|
122
|
+
'locationId': json['locationId'],
|
|
123
|
+
'hwDeviceId': json['hwDeviceId'],
|
|
124
|
+
'deviceType': DeviceTypeFromJSON(json['deviceType']),
|
|
125
|
+
'playSpotIds': json['playSpotIds'],
|
|
126
|
+
'startAction': json['startAction'],
|
|
127
|
+
'endAction': json['endAction'],
|
|
128
|
+
'playSpots': json['playSpots'] == null ? undefined : ((json['playSpots'] as Array<any>).map(PlaySpotFromJSON)),
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function GetAllDevices200ResponseInnerToJSON(json: any): GetAllDevices200ResponseInner {
|
|
133
|
+
return GetAllDevices200ResponseInnerToJSONTyped(json, false);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function GetAllDevices200ResponseInnerToJSONTyped(value?: GetAllDevices200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
|
|
137
|
+
if (value == null) {
|
|
138
|
+
return value;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
|
|
143
|
+
'id': value['id'],
|
|
144
|
+
'name': value['name'],
|
|
145
|
+
'locationId': value['locationId'],
|
|
146
|
+
'hwDeviceId': value['hwDeviceId'],
|
|
147
|
+
'deviceType': DeviceTypeToJSON(value['deviceType']),
|
|
148
|
+
'playSpotIds': value['playSpotIds'],
|
|
149
|
+
'startAction': value['startAction'],
|
|
150
|
+
'endAction': value['endAction'],
|
|
151
|
+
'playSpots': value['playSpots'] == null ? undefined : ((value['playSpots'] as Array<any>).map(PlaySpotToJSON)),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|