@jugarhoy/api 1.0.8 → 1.0.10

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 (38) hide show
  1. package/apis/AppPlayRegistrationApi.ts +177 -0
  2. package/apis/AppPlaySearchApi.ts +323 -0
  3. package/apis/AuthApi.ts +12 -12
  4. package/apis/NotificationsApi.ts +167 -0
  5. package/apis/index.ts +3 -0
  6. package/models/ClubPlace.ts +184 -0
  7. package/models/CreateClubPlaceRequest.ts +161 -0
  8. package/models/CreatePlayRegistrationRequest.ts +92 -0
  9. package/models/CreatePlaySearchRequest.ts +197 -0
  10. package/models/DominantSide.ts +53 -0
  11. package/models/MarkNotificationAsRead200Response.ts +65 -0
  12. package/models/Notification.ts +147 -0
  13. package/models/NotificationCategory.ts +58 -0
  14. package/models/NotificationChannelType.ts +55 -0
  15. package/models/NotificationDto.ts +139 -0
  16. package/models/NotificationListResponseDto.ts +89 -0
  17. package/models/NotificationType.ts +5 -5
  18. package/models/PlayRegistration.ts +159 -0
  19. package/models/PlayRegistrationDTO.ts +151 -0
  20. package/models/PlayRegistrationDTOUser.ts +97 -0
  21. package/models/PlayRegistrationListResponse.ts +97 -0
  22. package/models/PlayRegistrationType.ts +55 -0
  23. package/models/PlaySearch.ts +252 -0
  24. package/models/PlaySearchDTO.ts +266 -0
  25. package/models/PlaySearchDTOClubPlace.ts +121 -0
  26. package/models/PlaySearchDetailDTO.ts +296 -0
  27. package/models/PlaySearchDetailDTOAllOfCounts.ts +73 -0
  28. package/models/PlaySearchDetailDTOAllOfRegistrations.ts +124 -0
  29. package/models/PlaySearchDetailDTOAllOfUser.ts +89 -0
  30. package/models/PlaySearchListResponse.ts +97 -0
  31. package/models/PlaySearchStatus.ts +56 -0
  32. package/models/RegistrationStatus.ts +55 -0
  33. package/models/SubscriptionStatus.ts +58 -0
  34. package/models/UnreadCountResponseDto.ts +65 -0
  35. package/models/{UserNotification.ts → UserNotificationConfig.ts} +27 -27
  36. package/models/index.ts +29 -2
  37. package/package.json +1 -1
  38. package/models/RequestPasswordReset200Response.ts +0 -65
@@ -0,0 +1,197 @@
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 { CreateClubPlaceRequest } from './CreateClubPlaceRequest';
17
+ import {
18
+ CreateClubPlaceRequestFromJSON,
19
+ CreateClubPlaceRequestFromJSONTyped,
20
+ CreateClubPlaceRequestToJSON,
21
+ CreateClubPlaceRequestToJSONTyped,
22
+ } from './CreateClubPlaceRequest';
23
+ import type { DominantSide } from './DominantSide';
24
+ import {
25
+ DominantSideFromJSON,
26
+ DominantSideFromJSONTyped,
27
+ DominantSideToJSON,
28
+ DominantSideToJSONTyped,
29
+ } from './DominantSide';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface CreatePlaySearchRequest
35
+ */
36
+ export interface CreatePlaySearchRequest {
37
+ /**
38
+ *
39
+ * @type {CreateClubPlaceRequest}
40
+ * @memberof CreatePlaySearchRequest
41
+ */
42
+ clubPlace: CreateClubPlaceRequest;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof CreatePlaySearchRequest
47
+ */
48
+ matchDateTime: Date;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof CreatePlaySearchRequest
53
+ */
54
+ duration: CreatePlaySearchRequestDurationEnum;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof CreatePlaySearchRequest
59
+ */
60
+ gender?: string | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof CreatePlaySearchRequest
65
+ */
66
+ category?: string | null;
67
+ /**
68
+ *
69
+ * @type {DominantSide}
70
+ * @memberof CreatePlaySearchRequest
71
+ */
72
+ dominantSide?: DominantSide;
73
+ /**
74
+ *
75
+ * @type {number}
76
+ * @memberof CreatePlaySearchRequest
77
+ */
78
+ quota: number;
79
+ /**
80
+ *
81
+ * @type {Date}
82
+ * @memberof CreatePlaySearchRequest
83
+ */
84
+ registrationDeadline: Date;
85
+ /**
86
+ *
87
+ * @type {number}
88
+ * @memberof CreatePlaySearchRequest
89
+ */
90
+ price?: number | null;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof CreatePlaySearchRequest
95
+ */
96
+ currency?: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof CreatePlaySearchRequest
101
+ */
102
+ paymentMethod: string;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof CreatePlaySearchRequest
107
+ */
108
+ notes?: string | null;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof CreatePlaySearchRequest
113
+ */
114
+ reserveId?: string | null;
115
+ }
116
+
117
+
118
+ /**
119
+ * @export
120
+ */
121
+ export const CreatePlaySearchRequestDurationEnum = {
122
+ NUMBER_15: 15,
123
+ NUMBER_30: 30,
124
+ NUMBER_45: 45,
125
+ NUMBER_60: 60,
126
+ NUMBER_90: 90,
127
+ NUMBER_120: 120
128
+ } as const;
129
+ export type CreatePlaySearchRequestDurationEnum = typeof CreatePlaySearchRequestDurationEnum[keyof typeof CreatePlaySearchRequestDurationEnum];
130
+
131
+
132
+ /**
133
+ * Check if a given object implements the CreatePlaySearchRequest interface.
134
+ */
135
+ export function instanceOfCreatePlaySearchRequest(value: object): value is CreatePlaySearchRequest {
136
+ if (!('clubPlace' in value) || value['clubPlace'] === undefined) return false;
137
+ if (!('matchDateTime' in value) || value['matchDateTime'] === undefined) return false;
138
+ if (!('duration' in value) || value['duration'] === undefined) return false;
139
+ if (!('quota' in value) || value['quota'] === undefined) return false;
140
+ if (!('registrationDeadline' in value) || value['registrationDeadline'] === undefined) return false;
141
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
142
+ return true;
143
+ }
144
+
145
+ export function CreatePlaySearchRequestFromJSON(json: any): CreatePlaySearchRequest {
146
+ return CreatePlaySearchRequestFromJSONTyped(json, false);
147
+ }
148
+
149
+ export function CreatePlaySearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePlaySearchRequest {
150
+ if (json == null) {
151
+ return json;
152
+ }
153
+ return {
154
+
155
+ 'clubPlace': CreateClubPlaceRequestFromJSON(json['clubPlace']),
156
+ 'matchDateTime': (new Date(json['matchDateTime'])),
157
+ 'duration': json['duration'],
158
+ 'gender': json['gender'] == null ? undefined : json['gender'],
159
+ 'category': json['category'] == null ? undefined : json['category'],
160
+ 'dominantSide': json['dominantSide'] == null ? undefined : DominantSideFromJSON(json['dominantSide']),
161
+ 'quota': json['quota'],
162
+ 'registrationDeadline': (new Date(json['registrationDeadline'])),
163
+ 'price': json['price'] == null ? undefined : json['price'],
164
+ 'currency': json['currency'] == null ? undefined : json['currency'],
165
+ 'paymentMethod': json['paymentMethod'],
166
+ 'notes': json['notes'] == null ? undefined : json['notes'],
167
+ 'reserveId': json['reserveId'] == null ? undefined : json['reserveId'],
168
+ };
169
+ }
170
+
171
+ export function CreatePlaySearchRequestToJSON(json: any): CreatePlaySearchRequest {
172
+ return CreatePlaySearchRequestToJSONTyped(json, false);
173
+ }
174
+
175
+ export function CreatePlaySearchRequestToJSONTyped(value?: CreatePlaySearchRequest | null, ignoreDiscriminator: boolean = false): any {
176
+ if (value == null) {
177
+ return value;
178
+ }
179
+
180
+ return {
181
+
182
+ 'clubPlace': CreateClubPlaceRequestToJSON(value['clubPlace']),
183
+ 'matchDateTime': ((value['matchDateTime']).toISOString()),
184
+ 'duration': value['duration'],
185
+ 'gender': value['gender'],
186
+ 'category': value['category'],
187
+ 'dominantSide': DominantSideToJSON(value['dominantSide']),
188
+ 'quota': value['quota'],
189
+ 'registrationDeadline': ((value['registrationDeadline']).toISOString()),
190
+ 'price': value['price'],
191
+ 'currency': value['currency'],
192
+ 'paymentMethod': value['paymentMethod'],
193
+ 'notes': value['notes'],
194
+ 'reserveId': value['reserveId'],
195
+ };
196
+ }
197
+
@@ -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
+ * Dominant hand/side of a player
18
+ * @export
19
+ */
20
+ export const DominantSide = {
21
+ Left: 'LEFT',
22
+ Right: 'RIGHT'
23
+ } as const;
24
+ export type DominantSide = typeof DominantSide[keyof typeof DominantSide];
25
+
26
+
27
+ export function instanceOfDominantSide(value: any): boolean {
28
+ for (const key in DominantSide) {
29
+ if (Object.prototype.hasOwnProperty.call(DominantSide, key)) {
30
+ if (DominantSide[key as keyof typeof DominantSide] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function DominantSideFromJSON(json: any): DominantSide {
39
+ return DominantSideFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DominantSideFromJSONTyped(json: any, ignoreDiscriminator: boolean): DominantSide {
43
+ return json as DominantSide;
44
+ }
45
+
46
+ export function DominantSideToJSON(value?: DominantSide | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function DominantSideToJSONTyped(value: any, ignoreDiscriminator: boolean): DominantSide {
51
+ return value as DominantSide;
52
+ }
53
+
@@ -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 MarkNotificationAsRead200Response
20
+ */
21
+ export interface MarkNotificationAsRead200Response {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof MarkNotificationAsRead200Response
26
+ */
27
+ success?: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the MarkNotificationAsRead200Response interface.
32
+ */
33
+ export function instanceOfMarkNotificationAsRead200Response(value: object): value is MarkNotificationAsRead200Response {
34
+ return true;
35
+ }
36
+
37
+ export function MarkNotificationAsRead200ResponseFromJSON(json: any): MarkNotificationAsRead200Response {
38
+ return MarkNotificationAsRead200ResponseFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function MarkNotificationAsRead200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarkNotificationAsRead200Response {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'success': json['success'] == null ? undefined : json['success'],
48
+ };
49
+ }
50
+
51
+ export function MarkNotificationAsRead200ResponseToJSON(json: any): MarkNotificationAsRead200Response {
52
+ return MarkNotificationAsRead200ResponseToJSONTyped(json, false);
53
+ }
54
+
55
+ export function MarkNotificationAsRead200ResponseToJSONTyped(value?: MarkNotificationAsRead200Response | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'success': value['success'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,147 @@
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 { NotificationCategory } from './NotificationCategory';
17
+ import {
18
+ NotificationCategoryFromJSON,
19
+ NotificationCategoryFromJSONTyped,
20
+ NotificationCategoryToJSON,
21
+ NotificationCategoryToJSONTyped,
22
+ } from './NotificationCategory';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface Notification
28
+ */
29
+ export interface Notification {
30
+ /**
31
+ * Unique identifier for the notification
32
+ * @type {string}
33
+ * @memberof Notification
34
+ */
35
+ id?: string;
36
+ /**
37
+ * ID of the user who receives this notification
38
+ * @type {string}
39
+ * @memberof Notification
40
+ */
41
+ userId?: string;
42
+ /**
43
+ *
44
+ * @type {NotificationCategory}
45
+ * @memberof Notification
46
+ */
47
+ type?: NotificationCategory;
48
+ /**
49
+ * Notification title (Spanish)
50
+ * @type {string}
51
+ * @memberof Notification
52
+ */
53
+ title?: string;
54
+ /**
55
+ * Notification message body (Spanish)
56
+ * @type {string}
57
+ * @memberof Notification
58
+ */
59
+ message?: string;
60
+ /**
61
+ * Whether the user has read this notification
62
+ * @type {boolean}
63
+ * @memberof Notification
64
+ */
65
+ read?: boolean;
66
+ /**
67
+ * Optional ID of related entity (e.g., reserveId, paymentId) for deep linking
68
+ * @type {string}
69
+ * @memberof Notification
70
+ */
71
+ relatedId?: string | null;
72
+ /**
73
+ * Optional JSON object with additional data for navigation/deep linking
74
+ * @type {{ [key: string]: any; }}
75
+ * @memberof Notification
76
+ */
77
+ metadata?: { [key: string]: any; } | null;
78
+ /**
79
+ * When the notification was created
80
+ * @type {Date}
81
+ * @memberof Notification
82
+ */
83
+ createdAt?: Date;
84
+ /**
85
+ * When the notification was last updated
86
+ * @type {Date}
87
+ * @memberof Notification
88
+ */
89
+ updatedAt?: Date;
90
+ }
91
+
92
+
93
+
94
+ /**
95
+ * Check if a given object implements the Notification interface.
96
+ */
97
+ export function instanceOfNotification(value: object): value is Notification {
98
+ return true;
99
+ }
100
+
101
+ export function NotificationFromJSON(json: any): Notification {
102
+ return NotificationFromJSONTyped(json, false);
103
+ }
104
+
105
+ export function NotificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): Notification {
106
+ if (json == null) {
107
+ return json;
108
+ }
109
+ return {
110
+
111
+ 'id': json['id'] == null ? undefined : json['id'],
112
+ 'userId': json['userId'] == null ? undefined : json['userId'],
113
+ 'type': json['type'] == null ? undefined : NotificationCategoryFromJSON(json['type']),
114
+ 'title': json['title'] == null ? undefined : json['title'],
115
+ 'message': json['message'] == null ? undefined : json['message'],
116
+ 'read': json['read'] == null ? undefined : json['read'],
117
+ 'relatedId': json['relatedId'] == null ? undefined : json['relatedId'],
118
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
119
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
120
+ 'updatedAt': json['updatedAt'] == null ? undefined : (new Date(json['updatedAt'])),
121
+ };
122
+ }
123
+
124
+ export function NotificationToJSON(json: any): Notification {
125
+ return NotificationToJSONTyped(json, false);
126
+ }
127
+
128
+ export function NotificationToJSONTyped(value?: Notification | null, ignoreDiscriminator: boolean = false): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+
133
+ return {
134
+
135
+ 'id': value['id'],
136
+ 'userId': value['userId'],
137
+ 'type': NotificationCategoryToJSON(value['type']),
138
+ 'title': value['title'],
139
+ 'message': value['message'],
140
+ 'read': value['read'],
141
+ 'relatedId': value['relatedId'],
142
+ 'metadata': value['metadata'],
143
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
144
+ 'updatedAt': value['updatedAt'] == null ? undefined : ((value['updatedAt']).toISOString()),
145
+ };
146
+ }
147
+
@@ -0,0 +1,58 @@
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
+ * Category of notification for users
18
+ * @export
19
+ */
20
+ export const NotificationCategory = {
21
+ Reservation: 'reservation',
22
+ Payment: 'payment',
23
+ General: 'general',
24
+ Promo: 'promo',
25
+ FindPlayer: 'find_player',
26
+ NewTournament: 'new_tournament',
27
+ Training: 'training'
28
+ } as const;
29
+ export type NotificationCategory = typeof NotificationCategory[keyof typeof NotificationCategory];
30
+
31
+
32
+ export function instanceOfNotificationCategory(value: any): boolean {
33
+ for (const key in NotificationCategory) {
34
+ if (Object.prototype.hasOwnProperty.call(NotificationCategory, key)) {
35
+ if (NotificationCategory[key as keyof typeof NotificationCategory] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function NotificationCategoryFromJSON(json: any): NotificationCategory {
44
+ return NotificationCategoryFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function NotificationCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationCategory {
48
+ return json as NotificationCategory;
49
+ }
50
+
51
+ export function NotificationCategoryToJSON(value?: NotificationCategory | null): any {
52
+ return value as any;
53
+ }
54
+
55
+ export function NotificationCategoryToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationCategory {
56
+ return value as NotificationCategory;
57
+ }
58
+
@@ -0,0 +1,55 @@
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 notification channels that can be enabled/disabled
18
+ * @export
19
+ */
20
+ export const NotificationChannelType = {
21
+ Whatsapp: 'WHATSAPP',
22
+ PushWeb: 'PUSH_WEB',
23
+ PushNative: 'PUSH_NATIVE',
24
+ Email: 'EMAIL'
25
+ } as const;
26
+ export type NotificationChannelType = typeof NotificationChannelType[keyof typeof NotificationChannelType];
27
+
28
+
29
+ export function instanceOfNotificationChannelType(value: any): boolean {
30
+ for (const key in NotificationChannelType) {
31
+ if (Object.prototype.hasOwnProperty.call(NotificationChannelType, key)) {
32
+ if (NotificationChannelType[key as keyof typeof NotificationChannelType] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function NotificationChannelTypeFromJSON(json: any): NotificationChannelType {
41
+ return NotificationChannelTypeFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function NotificationChannelTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationChannelType {
45
+ return json as NotificationChannelType;
46
+ }
47
+
48
+ export function NotificationChannelTypeToJSON(value?: NotificationChannelType | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function NotificationChannelTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): NotificationChannelType {
53
+ return value as NotificationChannelType;
54
+ }
55
+