@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,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
+ /**
17
+ *
18
+ * @export
19
+ * @interface CreateCheckoutPreferenceRequestItemsInner
20
+ */
21
+ export interface CreateCheckoutPreferenceRequestItemsInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateCheckoutPreferenceRequestItemsInner
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CreateCheckoutPreferenceRequestItemsInner
32
+ */
33
+ title?: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof CreateCheckoutPreferenceRequestItemsInner
38
+ */
39
+ unitPrice?: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof CreateCheckoutPreferenceRequestItemsInner
44
+ */
45
+ quantity?: number;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the CreateCheckoutPreferenceRequestItemsInner interface.
50
+ */
51
+ export function instanceOfCreateCheckoutPreferenceRequestItemsInner(value: object): value is CreateCheckoutPreferenceRequestItemsInner {
52
+ return true;
53
+ }
54
+
55
+ export function CreateCheckoutPreferenceRequestItemsInnerFromJSON(json: any): CreateCheckoutPreferenceRequestItemsInner {
56
+ return CreateCheckoutPreferenceRequestItemsInnerFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function CreateCheckoutPreferenceRequestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCheckoutPreferenceRequestItemsInner {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'id': json['id'] == null ? undefined : json['id'],
66
+ 'title': json['title'] == null ? undefined : json['title'],
67
+ 'unitPrice': json['unit_price'] == null ? undefined : json['unit_price'],
68
+ 'quantity': json['quantity'] == null ? undefined : json['quantity'],
69
+ };
70
+ }
71
+
72
+ export function CreateCheckoutPreferenceRequestItemsInnerToJSON(json: any): CreateCheckoutPreferenceRequestItemsInner {
73
+ return CreateCheckoutPreferenceRequestItemsInnerToJSONTyped(json, false);
74
+ }
75
+
76
+ export function CreateCheckoutPreferenceRequestItemsInnerToJSONTyped(value?: CreateCheckoutPreferenceRequestItemsInner | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'id': value['id'],
84
+ 'title': value['title'],
85
+ 'unit_price': value['unitPrice'],
86
+ 'quantity': value['quantity'],
87
+ };
88
+ }
89
+
@@ -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
+ import type { PaymentMethod } from './PaymentMethod';
17
+ import {
18
+ PaymentMethodFromJSON,
19
+ PaymentMethodFromJSONTyped,
20
+ PaymentMethodToJSON,
21
+ PaymentMethodToJSONTyped,
22
+ } from './PaymentMethod';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateCustomerPaymentConfigDto
28
+ */
29
+ export interface CreateCustomerPaymentConfigDto {
30
+ /**
31
+ *
32
+ * @type {PaymentMethod}
33
+ * @memberof CreateCustomerPaymentConfigDto
34
+ */
35
+ paymentMethod: PaymentMethod;
36
+ /**
37
+ * Whether this payment configuration is enabled
38
+ * @type {boolean}
39
+ * @memberof CreateCustomerPaymentConfigDto
40
+ */
41
+ enabled?: boolean;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the CreateCustomerPaymentConfigDto interface.
48
+ */
49
+ export function instanceOfCreateCustomerPaymentConfigDto(value: object): value is CreateCustomerPaymentConfigDto {
50
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
51
+ return true;
52
+ }
53
+
54
+ export function CreateCustomerPaymentConfigDtoFromJSON(json: any): CreateCustomerPaymentConfigDto {
55
+ return CreateCustomerPaymentConfigDtoFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function CreateCustomerPaymentConfigDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCustomerPaymentConfigDto {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'paymentMethod': PaymentMethodFromJSON(json['paymentMethod']),
65
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
66
+ };
67
+ }
68
+
69
+ export function CreateCustomerPaymentConfigDtoToJSON(json: any): CreateCustomerPaymentConfigDto {
70
+ return CreateCustomerPaymentConfigDtoToJSONTyped(json, false);
71
+ }
72
+
73
+ export function CreateCustomerPaymentConfigDtoToJSONTyped(value?: CreateCustomerPaymentConfigDto | null, ignoreDiscriminator: boolean = false): any {
74
+ if (value == null) {
75
+ return value;
76
+ }
77
+
78
+ return {
79
+
80
+ 'paymentMethod': PaymentMethodToJSON(value['paymentMethod']),
81
+ 'enabled': value['enabled'],
82
+ };
83
+ }
84
+
@@ -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 CreateDefault500Response
20
+ */
21
+ export interface CreateDefault500Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateDefault500Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateDefault500Response interface.
32
+ */
33
+ export function instanceOfCreateDefault500Response(value: object): value is CreateDefault500Response {
34
+ return true;
35
+ }
36
+
37
+ export function CreateDefault500ResponseFromJSON(json: any): CreateDefault500Response {
38
+ return CreateDefault500ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function CreateDefault500ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDefault500Response {
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 CreateDefault500ResponseToJSON(json: any): CreateDefault500Response {
52
+ return CreateDefault500ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function CreateDefault500ResponseToJSONTyped(value?: CreateDefault500Response | 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,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 CreateFromInvite400Response
20
+ */
21
+ export interface CreateFromInvite400Response {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof CreateFromInvite400Response
26
+ */
27
+ error?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the CreateFromInvite400Response interface.
32
+ */
33
+ export function instanceOfCreateFromInvite400Response(value: object): value is CreateFromInvite400Response {
34
+ return true;
35
+ }
36
+
37
+ export function CreateFromInvite400ResponseFromJSON(json: any): CreateFromInvite400Response {
38
+ return CreateFromInvite400ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function CreateFromInvite400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFromInvite400Response {
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 CreateFromInvite400ResponseToJSON(json: any): CreateFromInvite400Response {
52
+ return CreateFromInvite400ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function CreateFromInvite400ResponseToJSONTyped(value?: CreateFromInvite400Response | 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,153 @@
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 CreateShiftRequest
28
+ */
29
+ export interface CreateShiftRequest {
30
+ /**
31
+ * Type of the shift
32
+ * @type {string}
33
+ * @memberof CreateShiftRequest
34
+ */
35
+ type: CreateShiftRequestTypeEnum;
36
+ /**
37
+ * Name of the shift
38
+ * @type {string}
39
+ * @memberof CreateShiftRequest
40
+ */
41
+ name?: string;
42
+ /**
43
+ * IDs of play spots included in this shift
44
+ * @type {Array<string>}
45
+ * @memberof CreateShiftRequest
46
+ */
47
+ playSpotIds: Array<string>;
48
+ /**
49
+ * IDs of coaches for this shift
50
+ * @type {Array<string>}
51
+ * @memberof CreateShiftRequest
52
+ */
53
+ coachIds?: Array<string>;
54
+ /**
55
+ * Days of the week when this shift occurs
56
+ * @type {Array<DayOfWeek>}
57
+ * @memberof CreateShiftRequest
58
+ */
59
+ days?: Array<DayOfWeek>;
60
+ /**
61
+ * Start time in HH:MM format (e.g., "09:15", "14:30")
62
+ * @type {string}
63
+ * @memberof CreateShiftRequest
64
+ */
65
+ fromHour: string;
66
+ /**
67
+ * End time in HH:MM format (e.g., "09:15", "14:30")
68
+ * @type {string}
69
+ * @memberof CreateShiftRequest
70
+ */
71
+ toHour: string;
72
+ /**
73
+ * Allowed durations in hours
74
+ * @type {Array<number>}
75
+ * @memberof CreateShiftRequest
76
+ */
77
+ durations?: Array<number>;
78
+ /**
79
+ * Location ID of the shift
80
+ * @type {string}
81
+ * @memberof CreateShiftRequest
82
+ */
83
+ locationId: string;
84
+ }
85
+
86
+
87
+ /**
88
+ * @export
89
+ */
90
+ export const CreateShiftRequestTypeEnum = {
91
+ Play: 'play',
92
+ Coach: 'coach'
93
+ } as const;
94
+ export type CreateShiftRequestTypeEnum = typeof CreateShiftRequestTypeEnum[keyof typeof CreateShiftRequestTypeEnum];
95
+
96
+
97
+ /**
98
+ * Check if a given object implements the CreateShiftRequest interface.
99
+ */
100
+ export function instanceOfCreateShiftRequest(value: object): value is CreateShiftRequest {
101
+ if (!('type' in value) || value['type'] === undefined) return false;
102
+ if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
103
+ if (!('fromHour' in value) || value['fromHour'] === undefined) return false;
104
+ if (!('toHour' in value) || value['toHour'] === undefined) return false;
105
+ if (!('locationId' in value) || value['locationId'] === undefined) return false;
106
+ return true;
107
+ }
108
+
109
+ export function CreateShiftRequestFromJSON(json: any): CreateShiftRequest {
110
+ return CreateShiftRequestFromJSONTyped(json, false);
111
+ }
112
+
113
+ export function CreateShiftRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateShiftRequest {
114
+ if (json == null) {
115
+ return json;
116
+ }
117
+ return {
118
+
119
+ 'type': json['type'],
120
+ 'name': json['name'] == null ? undefined : json['name'],
121
+ 'playSpotIds': json['playSpotIds'],
122
+ 'coachIds': json['coachIds'] == null ? undefined : json['coachIds'],
123
+ 'days': json['days'] == null ? undefined : ((json['days'] as Array<any>).map(DayOfWeekFromJSON)),
124
+ 'fromHour': json['fromHour'],
125
+ 'toHour': json['toHour'],
126
+ 'durations': json['durations'] == null ? undefined : json['durations'],
127
+ 'locationId': json['locationId'],
128
+ };
129
+ }
130
+
131
+ export function CreateShiftRequestToJSON(json: any): CreateShiftRequest {
132
+ return CreateShiftRequestToJSONTyped(json, false);
133
+ }
134
+
135
+ export function CreateShiftRequestToJSONTyped(value?: CreateShiftRequest | null, ignoreDiscriminator: boolean = false): any {
136
+ if (value == null) {
137
+ return value;
138
+ }
139
+
140
+ return {
141
+
142
+ 'type': value['type'],
143
+ 'name': value['name'],
144
+ 'playSpotIds': value['playSpotIds'],
145
+ 'coachIds': value['coachIds'],
146
+ 'days': value['days'] == null ? undefined : ((value['days'] as Array<any>).map(DayOfWeekToJSON)),
147
+ 'fromHour': value['fromHour'],
148
+ 'toHour': value['toHour'],
149
+ 'durations': value['durations'],
150
+ 'locationId': value['locationId'],
151
+ };
152
+ }
153
+
@@ -0,0 +1,93 @@
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 { NotificationType } from './NotificationType';
17
+ import {
18
+ NotificationTypeFromJSON,
19
+ NotificationTypeFromJSONTyped,
20
+ NotificationTypeToJSON,
21
+ NotificationTypeToJSONTyped,
22
+ } from './NotificationType';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface CreateUserNotificationDto
28
+ */
29
+ export interface CreateUserNotificationDto {
30
+ /**
31
+ *
32
+ * @type {NotificationType}
33
+ * @memberof CreateUserNotificationDto
34
+ */
35
+ type: NotificationType;
36
+ /**
37
+ * JSON object containing subscription information for this notification type
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof CreateUserNotificationDto
40
+ */
41
+ subscriptionId?: { [key: string]: any; };
42
+ /**
43
+ * Whether this notification type should be enabled
44
+ * @type {boolean}
45
+ * @memberof CreateUserNotificationDto
46
+ */
47
+ enabled: boolean;
48
+ }
49
+
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the CreateUserNotificationDto interface.
54
+ */
55
+ export function instanceOfCreateUserNotificationDto(value: object): value is CreateUserNotificationDto {
56
+ if (!('type' in value) || value['type'] === undefined) return false;
57
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
58
+ return true;
59
+ }
60
+
61
+ export function CreateUserNotificationDtoFromJSON(json: any): CreateUserNotificationDto {
62
+ return CreateUserNotificationDtoFromJSONTyped(json, false);
63
+ }
64
+
65
+ export function CreateUserNotificationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateUserNotificationDto {
66
+ if (json == null) {
67
+ return json;
68
+ }
69
+ return {
70
+
71
+ 'type': NotificationTypeFromJSON(json['type']),
72
+ 'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
73
+ 'enabled': json['enabled'],
74
+ };
75
+ }
76
+
77
+ export function CreateUserNotificationDtoToJSON(json: any): CreateUserNotificationDto {
78
+ return CreateUserNotificationDtoToJSONTyped(json, false);
79
+ }
80
+
81
+ export function CreateUserNotificationDtoToJSONTyped(value?: CreateUserNotificationDto | null, ignoreDiscriminator: boolean = false): any {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+
86
+ return {
87
+
88
+ 'type': NotificationTypeToJSON(value['type']),
89
+ 'subscriptionId': value['subscriptionId'],
90
+ 'enabled': value['enabled'],
91
+ };
92
+ }
93
+