@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.
Files changed (171) hide show
  1. package/apis/AdminCoachesApi.ts +259 -0
  2. package/apis/AdminCustomersApi.ts +374 -0
  3. package/apis/AdminDevicesApi.ts +364 -0
  4. package/apis/AdminLocationsApi.ts +304 -0
  5. package/apis/AdminPaymentConfigsApi.ts +358 -0
  6. package/apis/AdminPlayPricesApi.ts +397 -0
  7. package/apis/AdminPlaySpotShiftsApi.ts +267 -0
  8. package/apis/AdminPlaySpotsApi.ts +307 -0
  9. package/apis/AdminReservationsApi.ts +335 -0
  10. package/apis/AdminSubscriptionsApi.ts +354 -0
  11. package/apis/AdminUsersApi.ts +323 -0
  12. package/apis/AuthApi.ts +196 -0
  13. package/apis/BackgroundApi.ts +66 -0
  14. package/apis/ClubApi.ts +174 -0
  15. package/apis/DevicesApi.ts +136 -0
  16. package/apis/HealthApi.ts +56 -0
  17. package/apis/MercadoPagoApi.ts +111 -0
  18. package/apis/MercadoPagoIPNApi.ts +80 -0
  19. package/apis/PlaySpotsApi.ts +207 -0
  20. package/apis/ReservesApi.ts +366 -0
  21. package/apis/UsersApi.ts +648 -0
  22. package/apis/index.ts +23 -0
  23. package/index.ts +5 -0
  24. package/models/AddMemberToSubscriptionRequest.ts +66 -0
  25. package/models/ApiAdminPlayPricesIdPutRequest.ts +140 -0
  26. package/models/ApiAdminPlayPricesPostRequest.ts +146 -0
  27. package/models/AvailabilityShift.ts +89 -0
  28. package/models/AvailabilityShiftHour.ts +81 -0
  29. package/models/AvailabilityShiftSpot.ts +89 -0
  30. package/models/CancelReservationParams.ts +75 -0
  31. package/models/CancelReservationRequest.ts +66 -0
  32. package/models/CancelReservationResult.ts +89 -0
  33. package/models/ChargeOn.ts +53 -0
  34. package/models/Check200Response.ts +65 -0
  35. package/models/CheckUserExists200Response.ts +73 -0
  36. package/models/ClubDto.ts +164 -0
  37. package/models/ClubSearchParams.ts +119 -0
  38. package/models/ClubSearchParamsGeo.ts +73 -0
  39. package/models/ClubSearchParamsPaging.ts +73 -0
  40. package/models/ClubSearchResponse.ts +88 -0
  41. package/models/ClubSearchResponseDataInner.ts +168 -0
  42. package/models/ClubSearchResponsePagination.ts +89 -0
  43. package/models/Coach.ts +121 -0
  44. package/models/CoachDto.ts +119 -0
  45. package/models/CoachDtoAvailabilityInner.ts +88 -0
  46. package/models/ConfirmReservationParams.ts +74 -0
  47. package/models/ConfirmReservationResponse.ts +83 -0
  48. package/models/ConfirmReservationResponseResult.ts +81 -0
  49. package/models/CreateBasicUserDto.ts +112 -0
  50. package/models/CreateCheckoutPreferenceRequest.ts +104 -0
  51. package/models/CreateCheckoutPreferenceRequestBackUrls.ts +81 -0
  52. package/models/CreateCheckoutPreferenceRequestItemsInner.ts +89 -0
  53. package/models/CreateCustomerPaymentConfigDto.ts +84 -0
  54. package/models/CreateDefault500Response.ts +65 -0
  55. package/models/CreateFromInvite400Response.ts +65 -0
  56. package/models/CreateShiftRequest.ts +153 -0
  57. package/models/CreateUserNotificationDto.ts +93 -0
  58. package/models/Customer.ts +235 -0
  59. package/models/CustomerDocument.ts +128 -0
  60. package/models/CustomerDto.ts +209 -0
  61. package/models/CustomerDtoRefund.ts +103 -0
  62. package/models/CustomerLocationDto.ts +102 -0
  63. package/models/CustomerPaymentConfig.ts +144 -0
  64. package/models/CustomerPaymentConfigDto.ts +85 -0
  65. package/models/CustomerRefund.ts +102 -0
  66. package/models/CustomerStatus.ts +53 -0
  67. package/models/DayOfWeek.ts +58 -0
  68. package/models/DeleteShift200Response.ts +65 -0
  69. package/models/Device.ts +139 -0
  70. package/models/DeviceDto.ts +131 -0
  71. package/models/DeviceState.ts +111 -0
  72. package/models/DeviceType.ts +53 -0
  73. package/models/DominantPlaySide.ts +54 -0
  74. package/models/ErrorResponse.ts +66 -0
  75. package/models/ExpireUnpaidReservationResult.ts +81 -0
  76. package/models/ExpireUnpaidReservations401Response.ts +65 -0
  77. package/models/ExpireUnpaidReservations500Response.ts +65 -0
  78. package/models/Feature.ts +121 -0
  79. package/models/FindOccurrences200Response.ts +91 -0
  80. package/models/Frequency.ts +54 -0
  81. package/models/GenerateCode500Response.ts +65 -0
  82. package/models/GetAllDevices200ResponseInner.ts +154 -0
  83. package/models/GetAllPlaySpots200ResponseInner.ts +213 -0
  84. package/models/GetAllShifts200ResponseInner.ts +199 -0
  85. package/models/GetHourlyReservationStatus200Response.ts +89 -0
  86. package/models/GetHourlyReservationStatus200ResponseHourlyStatusInner.ts +97 -0
  87. package/models/GetMercadoPagoAuthUrl200Response.ts +66 -0
  88. package/models/GetSession401Response.ts +65 -0
  89. package/models/GetSession500Response.ts +65 -0
  90. package/models/HourShiftDetail.ts +81 -0
  91. package/models/InitiateReservationParams.ts +137 -0
  92. package/models/Level.ts +54 -0
  93. package/models/LightControlResponse.ts +83 -0
  94. package/models/Location.ts +209 -0
  95. package/models/LocationDto.ts +204 -0
  96. package/models/ManageLightSwitch200Response.ts +81 -0
  97. package/models/ManageLightSwitch500Response.ts +73 -0
  98. package/models/MatchRequirements.ts +100 -0
  99. package/models/MercadoPagoIPN.ts +135 -0
  100. package/models/NotificationType.ts +55 -0
  101. package/models/Occurrence.ts +84 -0
  102. package/models/PaymentDetail.ts +185 -0
  103. package/models/PaymentMethod.ts +56 -0
  104. package/models/PaymentRefund.ts +111 -0
  105. package/models/PaymentStatus.ts +55 -0
  106. package/models/PaymentTerms.ts +85 -0
  107. package/models/PlayPrice.ts +165 -0
  108. package/models/PlaySpot.ts +197 -0
  109. package/models/PlaySpotAvailabilityDetail.ts +89 -0
  110. package/models/PlaySpotDateSummary.ts +81 -0
  111. package/models/PlaySpotDeviceExecutionState.ts +127 -0
  112. package/models/PlaySpotDto.ts +185 -0
  113. package/models/PlaySpotShift.ts +184 -0
  114. package/models/PlaySpotShortDto.ts +97 -0
  115. package/models/PlaySubscription.ts +293 -0
  116. package/models/PlaySubscriptionCreateDto.ts +167 -0
  117. package/models/PlaySubscriptionParams.ts +114 -0
  118. package/models/PlaySubscriptionType.ts +55 -0
  119. package/models/PlayerCategory.ts +61 -0
  120. package/models/ProcessEmailMessageRequest.ts +66 -0
  121. package/models/ProcessMercadoPagoIPN200Response.ts +73 -0
  122. package/models/ProcessMercadoPagoPaymentParams.ts +83 -0
  123. package/models/ProcessMercadoPagoPaymentResponse.ts +83 -0
  124. package/models/ProcessMercadoPagoPaymentResponseResult.ts +89 -0
  125. package/models/RefundPolicy.ts +54 -0
  126. package/models/RegisterClub400Response.ts +65 -0
  127. package/models/RegisterClub401Response.ts +65 -0
  128. package/models/RegisterClub500Response.ts +65 -0
  129. package/models/RegisterClubParams.ts +191 -0
  130. package/models/RegisterClubResponse.ts +83 -0
  131. package/models/RegisterClubResponseResult.ts +96 -0
  132. package/models/RentHour.ts +73 -0
  133. package/models/ReservationAccessCodeResponse.ts +91 -0
  134. package/models/ReservationAccessCodeResponseResult.ts +107 -0
  135. package/models/ReservationParams.ts +121 -0
  136. package/models/ReservationStatus.ts +55 -0
  137. package/models/Reserve.ts +290 -0
  138. package/models/ReserveDto.ts +207 -0
  139. package/models/ReserveSlotDto.ts +81 -0
  140. package/models/ReserveStatus.ts +57 -0
  141. package/models/ReserveType.ts +58 -0
  142. package/models/SearchClubs400Response.ts +65 -0
  143. package/models/SearchClubs500Response.ts +65 -0
  144. package/models/SetAuthCodeDto.ts +85 -0
  145. package/models/Shift.ts +93 -0
  146. package/models/Sport.ts +61 -0
  147. package/models/SuccessResponse.ts +66 -0
  148. package/models/TimeOfDay.ts +54 -0
  149. package/models/TriggerDeviceAction200Response.ts +81 -0
  150. package/models/TriggerDeviceActionRequest.ts +73 -0
  151. package/models/UpdateReservationAdminRequest.ts +83 -0
  152. package/models/UpdateReserveDto.ts +83 -0
  153. package/models/UpdateUserNotificationDto.ts +73 -0
  154. package/models/User.ts +243 -0
  155. package/models/UserAuth.ts +135 -0
  156. package/models/UserDto.ts +142 -0
  157. package/models/UserNotification.ts +123 -0
  158. package/models/UserNotificationDto.ts +115 -0
  159. package/models/UserRating.ts +75 -0
  160. package/models/UserReserveDto.ts +230 -0
  161. package/models/UserRole.ts +53 -0
  162. package/models/UserSession.ts +129 -0
  163. package/models/UserSessionCustomer.ts +81 -0
  164. package/models/UserSportProfile.ts +117 -0
  165. package/models/UserSportProfileDto.ts +117 -0
  166. package/models/UserType.ts +54 -0
  167. package/models/VerifyPhoneNumber200Response.ts +65 -0
  168. package/models/VerifyPhoneNumberRequest.ts +66 -0
  169. package/models/index.ts +147 -0
  170. package/package.json +35 -0
  171. package/runtime.ts +432 -0
@@ -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 AddMemberToSubscriptionRequest
20
+ */
21
+ export interface AddMemberToSubscriptionRequest {
22
+ /**
23
+ * ID of the member to add
24
+ * @type {string}
25
+ * @memberof AddMemberToSubscriptionRequest
26
+ */
27
+ memberId: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the AddMemberToSubscriptionRequest interface.
32
+ */
33
+ export function instanceOfAddMemberToSubscriptionRequest(value: object): value is AddMemberToSubscriptionRequest {
34
+ if (!('memberId' in value) || value['memberId'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function AddMemberToSubscriptionRequestFromJSON(json: any): AddMemberToSubscriptionRequest {
39
+ return AddMemberToSubscriptionRequestFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AddMemberToSubscriptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddMemberToSubscriptionRequest {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'memberId': json['memberId'],
49
+ };
50
+ }
51
+
52
+ export function AddMemberToSubscriptionRequestToJSON(json: any): AddMemberToSubscriptionRequest {
53
+ return AddMemberToSubscriptionRequestToJSONTyped(json, false);
54
+ }
55
+
56
+ export function AddMemberToSubscriptionRequestToJSONTyped(value?: AddMemberToSubscriptionRequest | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'memberId': value['memberId'],
64
+ };
65
+ }
66
+
@@ -0,0 +1,140 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DayOfWeek } from './DayOfWeek';
17
+ import {
18
+ DayOfWeekFromJSON,
19
+ DayOfWeekFromJSONTyped,
20
+ DayOfWeekToJSON,
21
+ DayOfWeekToJSONTyped,
22
+ } from './DayOfWeek';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiAdminPlayPricesIdPutRequest
28
+ */
29
+ export interface ApiAdminPlayPricesIdPutRequest {
30
+ /**
31
+ * Name of the play price
32
+ * @type {string}
33
+ * @memberof ApiAdminPlayPricesIdPutRequest
34
+ */
35
+ name?: string;
36
+ /**
37
+ * Duration in minutes
38
+ * @type {number}
39
+ * @memberof ApiAdminPlayPricesIdPutRequest
40
+ */
41
+ duration?: number;
42
+ /**
43
+ * Price amount
44
+ * @type {number}
45
+ * @memberof ApiAdminPlayPricesIdPutRequest
46
+ */
47
+ price?: number;
48
+ /**
49
+ * IDs of the play spots this price applies to
50
+ * @type {Array<string>}
51
+ * @memberof ApiAdminPlayPricesIdPutRequest
52
+ */
53
+ playSpotIds?: Array<string>;
54
+ /**
55
+ * Time from which the price applies in HH:MM format
56
+ * @type {string}
57
+ * @memberof ApiAdminPlayPricesIdPutRequest
58
+ */
59
+ hourFrom?: string;
60
+ /**
61
+ * Days of the week this price applies to
62
+ * @type {Array<DayOfWeek>}
63
+ * @memberof ApiAdminPlayPricesIdPutRequest
64
+ */
65
+ weekDays?: Array<DayOfWeek>;
66
+ /**
67
+ * Whether this price is for subscription-based access
68
+ * @type {boolean}
69
+ * @memberof ApiAdminPlayPricesIdPutRequest
70
+ */
71
+ isSubscription?: boolean;
72
+ /**
73
+ * When to charge for this price
74
+ * @type {string}
75
+ * @memberof ApiAdminPlayPricesIdPutRequest
76
+ */
77
+ chargeOn?: ApiAdminPlayPricesIdPutRequestChargeOnEnum;
78
+ }
79
+
80
+
81
+ /**
82
+ * @export
83
+ */
84
+ export const ApiAdminPlayPricesIdPutRequestChargeOnEnum = {
85
+ Session: 'session',
86
+ Monthly: 'monthly'
87
+ } as const;
88
+ export type ApiAdminPlayPricesIdPutRequestChargeOnEnum = typeof ApiAdminPlayPricesIdPutRequestChargeOnEnum[keyof typeof ApiAdminPlayPricesIdPutRequestChargeOnEnum];
89
+
90
+
91
+ /**
92
+ * Check if a given object implements the ApiAdminPlayPricesIdPutRequest interface.
93
+ */
94
+ export function instanceOfApiAdminPlayPricesIdPutRequest(value: object): value is ApiAdminPlayPricesIdPutRequest {
95
+ return true;
96
+ }
97
+
98
+ export function ApiAdminPlayPricesIdPutRequestFromJSON(json: any): ApiAdminPlayPricesIdPutRequest {
99
+ return ApiAdminPlayPricesIdPutRequestFromJSONTyped(json, false);
100
+ }
101
+
102
+ export function ApiAdminPlayPricesIdPutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminPlayPricesIdPutRequest {
103
+ if (json == null) {
104
+ return json;
105
+ }
106
+ return {
107
+
108
+ 'name': json['name'] == null ? undefined : json['name'],
109
+ 'duration': json['duration'] == null ? undefined : json['duration'],
110
+ 'price': json['price'] == null ? undefined : json['price'],
111
+ 'playSpotIds': json['playSpotIds'] == null ? undefined : json['playSpotIds'],
112
+ 'hourFrom': json['hourFrom'] == null ? undefined : json['hourFrom'],
113
+ 'weekDays': json['weekDays'] == null ? undefined : ((json['weekDays'] as Array<any>).map(DayOfWeekFromJSON)),
114
+ 'isSubscription': json['isSubscription'] == null ? undefined : json['isSubscription'],
115
+ 'chargeOn': json['chargeOn'] == null ? undefined : json['chargeOn'],
116
+ };
117
+ }
118
+
119
+ export function ApiAdminPlayPricesIdPutRequestToJSON(json: any): ApiAdminPlayPricesIdPutRequest {
120
+ return ApiAdminPlayPricesIdPutRequestToJSONTyped(json, false);
121
+ }
122
+
123
+ export function ApiAdminPlayPricesIdPutRequestToJSONTyped(value?: ApiAdminPlayPricesIdPutRequest | null, ignoreDiscriminator: boolean = false): any {
124
+ if (value == null) {
125
+ return value;
126
+ }
127
+
128
+ return {
129
+
130
+ 'name': value['name'],
131
+ 'duration': value['duration'],
132
+ 'price': value['price'],
133
+ 'playSpotIds': value['playSpotIds'],
134
+ 'hourFrom': value['hourFrom'],
135
+ 'weekDays': value['weekDays'] == null ? undefined : ((value['weekDays'] as Array<any>).map(DayOfWeekToJSON)),
136
+ 'isSubscription': value['isSubscription'],
137
+ 'chargeOn': value['chargeOn'],
138
+ };
139
+ }
140
+
@@ -0,0 +1,146 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Jugar Hoy - API
5
+ * API documentation for Jugar Hoy application
6
+ *
7
+ * The version of the OpenAPI document: 1.5.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { DayOfWeek } from './DayOfWeek';
17
+ import {
18
+ DayOfWeekFromJSON,
19
+ DayOfWeekFromJSONTyped,
20
+ DayOfWeekToJSON,
21
+ DayOfWeekToJSONTyped,
22
+ } from './DayOfWeek';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ApiAdminPlayPricesPostRequest
28
+ */
29
+ export interface ApiAdminPlayPricesPostRequest {
30
+ /**
31
+ * Name of the play price
32
+ * @type {string}
33
+ * @memberof ApiAdminPlayPricesPostRequest
34
+ */
35
+ name: string;
36
+ /**
37
+ * Duration in minutes
38
+ * @type {number}
39
+ * @memberof ApiAdminPlayPricesPostRequest
40
+ */
41
+ duration: number;
42
+ /**
43
+ * Price amount
44
+ * @type {number}
45
+ * @memberof ApiAdminPlayPricesPostRequest
46
+ */
47
+ price: number;
48
+ /**
49
+ * IDs of the play spots this price applies to
50
+ * @type {Array<string>}
51
+ * @memberof ApiAdminPlayPricesPostRequest
52
+ */
53
+ playSpotIds: Array<string>;
54
+ /**
55
+ * Time from which the price applies in HH:MM format (e.g., "09:15", "14:30")
56
+ * @type {string}
57
+ * @memberof ApiAdminPlayPricesPostRequest
58
+ */
59
+ hourFrom?: string;
60
+ /**
61
+ * Days of the week this price applies to
62
+ * @type {Array<DayOfWeek>}
63
+ * @memberof ApiAdminPlayPricesPostRequest
64
+ */
65
+ weekDays: Array<DayOfWeek>;
66
+ /**
67
+ * Whether this price is for subscription-based access
68
+ * @type {boolean}
69
+ * @memberof ApiAdminPlayPricesPostRequest
70
+ */
71
+ isSubscription: boolean;
72
+ /**
73
+ * When to charge for this price (per session or monthly)
74
+ * @type {string}
75
+ * @memberof ApiAdminPlayPricesPostRequest
76
+ */
77
+ chargeOn?: ApiAdminPlayPricesPostRequestChargeOnEnum;
78
+ }
79
+
80
+
81
+ /**
82
+ * @export
83
+ */
84
+ export const ApiAdminPlayPricesPostRequestChargeOnEnum = {
85
+ Session: 'session',
86
+ Monthly: 'monthly'
87
+ } as const;
88
+ export type ApiAdminPlayPricesPostRequestChargeOnEnum = typeof ApiAdminPlayPricesPostRequestChargeOnEnum[keyof typeof ApiAdminPlayPricesPostRequestChargeOnEnum];
89
+
90
+
91
+ /**
92
+ * Check if a given object implements the ApiAdminPlayPricesPostRequest interface.
93
+ */
94
+ export function instanceOfApiAdminPlayPricesPostRequest(value: object): value is ApiAdminPlayPricesPostRequest {
95
+ if (!('name' in value) || value['name'] === undefined) return false;
96
+ if (!('duration' in value) || value['duration'] === undefined) return false;
97
+ if (!('price' in value) || value['price'] === undefined) return false;
98
+ if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
99
+ if (!('weekDays' in value) || value['weekDays'] === undefined) return false;
100
+ if (!('isSubscription' in value) || value['isSubscription'] === undefined) return false;
101
+ return true;
102
+ }
103
+
104
+ export function ApiAdminPlayPricesPostRequestFromJSON(json: any): ApiAdminPlayPricesPostRequest {
105
+ return ApiAdminPlayPricesPostRequestFromJSONTyped(json, false);
106
+ }
107
+
108
+ export function ApiAdminPlayPricesPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApiAdminPlayPricesPostRequest {
109
+ if (json == null) {
110
+ return json;
111
+ }
112
+ return {
113
+
114
+ 'name': json['name'],
115
+ 'duration': json['duration'],
116
+ 'price': json['price'],
117
+ 'playSpotIds': json['playSpotIds'],
118
+ 'hourFrom': json['hourFrom'] == null ? undefined : json['hourFrom'],
119
+ 'weekDays': ((json['weekDays'] as Array<any>).map(DayOfWeekFromJSON)),
120
+ 'isSubscription': json['isSubscription'],
121
+ 'chargeOn': json['chargeOn'] == null ? undefined : json['chargeOn'],
122
+ };
123
+ }
124
+
125
+ export function ApiAdminPlayPricesPostRequestToJSON(json: any): ApiAdminPlayPricesPostRequest {
126
+ return ApiAdminPlayPricesPostRequestToJSONTyped(json, false);
127
+ }
128
+
129
+ export function ApiAdminPlayPricesPostRequestToJSONTyped(value?: ApiAdminPlayPricesPostRequest | null, ignoreDiscriminator: boolean = false): any {
130
+ if (value == null) {
131
+ return value;
132
+ }
133
+
134
+ return {
135
+
136
+ 'name': value['name'],
137
+ 'duration': value['duration'],
138
+ 'price': value['price'],
139
+ 'playSpotIds': value['playSpotIds'],
140
+ 'hourFrom': value['hourFrom'],
141
+ 'weekDays': ((value['weekDays'] as Array<any>).map(DayOfWeekToJSON)),
142
+ 'isSubscription': value['isSubscription'],
143
+ 'chargeOn': value['chargeOn'],
144
+ };
145
+ }
146
+
@@ -0,0 +1,89 @@
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 { AvailabilityShiftSpot } from './AvailabilityShiftSpot';
17
+ import {
18
+ AvailabilityShiftSpotFromJSON,
19
+ AvailabilityShiftSpotFromJSONTyped,
20
+ AvailabilityShiftSpotToJSON,
21
+ AvailabilityShiftSpotToJSONTyped,
22
+ } from './AvailabilityShiftSpot';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AvailabilityShift
28
+ */
29
+ export interface AvailabilityShift {
30
+ /**
31
+ * Hour of the day in HH:MM format
32
+ * @type {string}
33
+ * @memberof AvailabilityShift
34
+ */
35
+ hour?: string;
36
+ /**
37
+ * Date and time for this hour
38
+ * @type {Date}
39
+ * @memberof AvailabilityShift
40
+ */
41
+ rentedFrom?: Date;
42
+ /**
43
+ * List of available spots for this hour
44
+ * @type {Array<AvailabilityShiftSpot>}
45
+ * @memberof AvailabilityShift
46
+ */
47
+ spots?: Array<AvailabilityShiftSpot>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the AvailabilityShift interface.
52
+ */
53
+ export function instanceOfAvailabilityShift(value: object): value is AvailabilityShift {
54
+ return true;
55
+ }
56
+
57
+ export function AvailabilityShiftFromJSON(json: any): AvailabilityShift {
58
+ return AvailabilityShiftFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function AvailabilityShiftFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityShift {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'hour': json['hour'] == null ? undefined : json['hour'],
68
+ 'rentedFrom': json['rentedFrom'] == null ? undefined : (new Date(json['rentedFrom'])),
69
+ 'spots': json['spots'] == null ? undefined : ((json['spots'] as Array<any>).map(AvailabilityShiftSpotFromJSON)),
70
+ };
71
+ }
72
+
73
+ export function AvailabilityShiftToJSON(json: any): AvailabilityShift {
74
+ return AvailabilityShiftToJSONTyped(json, false);
75
+ }
76
+
77
+ export function AvailabilityShiftToJSONTyped(value?: AvailabilityShift | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'hour': value['hour'],
85
+ 'rentedFrom': value['rentedFrom'] == null ? undefined : ((value['rentedFrom']).toISOString()),
86
+ 'spots': value['spots'] == null ? undefined : ((value['spots'] as Array<any>).map(AvailabilityShiftSpotToJSON)),
87
+ };
88
+ }
89
+
@@ -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 AvailabilityShiftHour
20
+ */
21
+ export interface AvailabilityShiftHour {
22
+ /**
23
+ * ID of the play price
24
+ * @type {string}
25
+ * @memberof AvailabilityShiftHour
26
+ */
27
+ playPriceId?: string;
28
+ /**
29
+ * Price for this shift
30
+ * @type {number}
31
+ * @memberof AvailabilityShiftHour
32
+ */
33
+ price?: number;
34
+ /**
35
+ * Duration of the shift in minutes
36
+ * @type {number}
37
+ * @memberof AvailabilityShiftHour
38
+ */
39
+ duration?: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the AvailabilityShiftHour interface.
44
+ */
45
+ export function instanceOfAvailabilityShiftHour(value: object): value is AvailabilityShiftHour {
46
+ return true;
47
+ }
48
+
49
+ export function AvailabilityShiftHourFromJSON(json: any): AvailabilityShiftHour {
50
+ return AvailabilityShiftHourFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function AvailabilityShiftHourFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityShiftHour {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'playPriceId': json['playPriceId'] == null ? undefined : json['playPriceId'],
60
+ 'price': json['price'] == null ? undefined : json['price'],
61
+ 'duration': json['duration'] == null ? undefined : json['duration'],
62
+ };
63
+ }
64
+
65
+ export function AvailabilityShiftHourToJSON(json: any): AvailabilityShiftHour {
66
+ return AvailabilityShiftHourToJSONTyped(json, false);
67
+ }
68
+
69
+ export function AvailabilityShiftHourToJSONTyped(value?: AvailabilityShiftHour | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'playPriceId': value['playPriceId'],
77
+ 'price': value['price'],
78
+ 'duration': value['duration'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,89 @@
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 { AvailabilityShiftHour } from './AvailabilityShiftHour';
17
+ import {
18
+ AvailabilityShiftHourFromJSON,
19
+ AvailabilityShiftHourFromJSONTyped,
20
+ AvailabilityShiftHourToJSON,
21
+ AvailabilityShiftHourToJSONTyped,
22
+ } from './AvailabilityShiftHour';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AvailabilityShiftSpot
28
+ */
29
+ export interface AvailabilityShiftSpot {
30
+ /**
31
+ * ID of the play spot
32
+ * @type {string}
33
+ * @memberof AvailabilityShiftSpot
34
+ */
35
+ playSpotId?: string;
36
+ /**
37
+ * ID of the location
38
+ * @type {string}
39
+ * @memberof AvailabilityShiftSpot
40
+ */
41
+ locationId?: string;
42
+ /**
43
+ * List of available shifts for this spot
44
+ * @type {Array<AvailabilityShiftHour>}
45
+ * @memberof AvailabilityShiftSpot
46
+ */
47
+ hourShifts?: Array<AvailabilityShiftHour>;
48
+ }
49
+
50
+ /**
51
+ * Check if a given object implements the AvailabilityShiftSpot interface.
52
+ */
53
+ export function instanceOfAvailabilityShiftSpot(value: object): value is AvailabilityShiftSpot {
54
+ return true;
55
+ }
56
+
57
+ export function AvailabilityShiftSpotFromJSON(json: any): AvailabilityShiftSpot {
58
+ return AvailabilityShiftSpotFromJSONTyped(json, false);
59
+ }
60
+
61
+ export function AvailabilityShiftSpotFromJSONTyped(json: any, ignoreDiscriminator: boolean): AvailabilityShiftSpot {
62
+ if (json == null) {
63
+ return json;
64
+ }
65
+ return {
66
+
67
+ 'playSpotId': json['playSpotId'] == null ? undefined : json['playSpotId'],
68
+ 'locationId': json['locationId'] == null ? undefined : json['locationId'],
69
+ 'hourShifts': json['hourShifts'] == null ? undefined : ((json['hourShifts'] as Array<any>).map(AvailabilityShiftHourFromJSON)),
70
+ };
71
+ }
72
+
73
+ export function AvailabilityShiftSpotToJSON(json: any): AvailabilityShiftSpot {
74
+ return AvailabilityShiftSpotToJSONTyped(json, false);
75
+ }
76
+
77
+ export function AvailabilityShiftSpotToJSONTyped(value?: AvailabilityShiftSpot | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'playSpotId': value['playSpotId'],
85
+ 'locationId': value['locationId'],
86
+ 'hourShifts': value['hourShifts'] == null ? undefined : ((value['hourShifts'] as Array<any>).map(AvailabilityShiftHourToJSON)),
87
+ };
88
+ }
89
+
@@ -0,0 +1,75 @@
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 CancelReservationParams
20
+ */
21
+ export interface CancelReservationParams {
22
+ /**
23
+ * The ID of the reservation to cancel
24
+ * @type {string}
25
+ * @memberof CancelReservationParams
26
+ */
27
+ reservationId: string;
28
+ /**
29
+ * The ID of the user requesting the cancellation
30
+ * @type {string}
31
+ * @memberof CancelReservationParams
32
+ */
33
+ userId: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the CancelReservationParams interface.
38
+ */
39
+ export function instanceOfCancelReservationParams(value: object): value is CancelReservationParams {
40
+ if (!('reservationId' in value) || value['reservationId'] === undefined) return false;
41
+ if (!('userId' in value) || value['userId'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function CancelReservationParamsFromJSON(json: any): CancelReservationParams {
46
+ return CancelReservationParamsFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function CancelReservationParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelReservationParams {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'reservationId': json['reservationId'],
56
+ 'userId': json['userId'],
57
+ };
58
+ }
59
+
60
+ export function CancelReservationParamsToJSON(json: any): CancelReservationParams {
61
+ return CancelReservationParamsToJSONTyped(json, false);
62
+ }
63
+
64
+ export function CancelReservationParamsToJSONTyped(value?: CancelReservationParams | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'reservationId': value['reservationId'],
72
+ 'userId': value['userId'],
73
+ };
74
+ }
75
+