@jugarhoy/api 1.0.9 → 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.
- package/apis/AppPlayRegistrationApi.ts +177 -0
- package/apis/AppPlaySearchApi.ts +323 -0
- package/apis/index.ts +2 -0
- package/models/ClubPlace.ts +184 -0
- package/models/CreateClubPlaceRequest.ts +161 -0
- package/models/CreatePlayRegistrationRequest.ts +92 -0
- package/models/CreatePlaySearchRequest.ts +197 -0
- package/models/DominantSide.ts +53 -0
- package/models/PlayRegistration.ts +159 -0
- package/models/PlayRegistrationDTO.ts +151 -0
- package/models/PlayRegistrationDTOUser.ts +97 -0
- package/models/PlayRegistrationListResponse.ts +97 -0
- package/models/PlayRegistrationType.ts +55 -0
- package/models/PlaySearch.ts +252 -0
- package/models/PlaySearchDTO.ts +266 -0
- package/models/PlaySearchDTOClubPlace.ts +121 -0
- package/models/PlaySearchDetailDTO.ts +296 -0
- package/models/PlaySearchDetailDTOAllOfCounts.ts +73 -0
- package/models/PlaySearchDetailDTOAllOfRegistrations.ts +124 -0
- package/models/PlaySearchDetailDTOAllOfUser.ts +89 -0
- package/models/PlaySearchListResponse.ts +97 -0
- package/models/PlaySearchStatus.ts +56 -0
- package/models/RegistrationStatus.ts +55 -0
- package/models/SubscriptionStatus.ts +58 -0
- package/models/index.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
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 PlaySearchDetailDTOAllOfCounts
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaySearchDetailDTOAllOfCounts {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PlaySearchDetailDTOAllOfCounts
|
|
26
|
+
*/
|
|
27
|
+
primary?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PlaySearchDetailDTOAllOfCounts
|
|
32
|
+
*/
|
|
33
|
+
waitlist?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PlaySearchDetailDTOAllOfCounts interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPlaySearchDetailDTOAllOfCounts(value: object): value is PlaySearchDetailDTOAllOfCounts {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PlaySearchDetailDTOAllOfCountsFromJSON(json: any): PlaySearchDetailDTOAllOfCounts {
|
|
44
|
+
return PlaySearchDetailDTOAllOfCountsFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PlaySearchDetailDTOAllOfCountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTOAllOfCounts {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'primary': json['primary'] == null ? undefined : json['primary'],
|
|
54
|
+
'waitlist': json['waitlist'] == null ? undefined : json['waitlist'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PlaySearchDetailDTOAllOfCountsToJSON(json: any): PlaySearchDetailDTOAllOfCounts {
|
|
59
|
+
return PlaySearchDetailDTOAllOfCountsToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PlaySearchDetailDTOAllOfCountsToJSONTyped(value?: PlaySearchDetailDTOAllOfCounts | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'primary': value['primary'],
|
|
70
|
+
'waitlist': value['waitlist'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,124 @@
|
|
|
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 { PlaySearchDetailDTOAllOfUser } from './PlaySearchDetailDTOAllOfUser';
|
|
17
|
+
import {
|
|
18
|
+
PlaySearchDetailDTOAllOfUserFromJSON,
|
|
19
|
+
PlaySearchDetailDTOAllOfUserFromJSONTyped,
|
|
20
|
+
PlaySearchDetailDTOAllOfUserToJSON,
|
|
21
|
+
PlaySearchDetailDTOAllOfUserToJSONTyped,
|
|
22
|
+
} from './PlaySearchDetailDTOAllOfUser';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlaySearchDetailDTOAllOfRegistrations
|
|
28
|
+
*/
|
|
29
|
+
export interface PlaySearchDetailDTOAllOfRegistrations {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
40
|
+
*/
|
|
41
|
+
userId?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {PlaySearchDetailDTOAllOfUser}
|
|
45
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
46
|
+
*/
|
|
47
|
+
user?: PlaySearchDetailDTOAllOfUser;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
52
|
+
*/
|
|
53
|
+
status?: PlaySearchDetailDTOAllOfRegistrationsStatusEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
58
|
+
*/
|
|
59
|
+
registrationOrder?: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof PlaySearchDetailDTOAllOfRegistrations
|
|
64
|
+
*/
|
|
65
|
+
createdAt?: Date;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const PlaySearchDetailDTOAllOfRegistrationsStatusEnum = {
|
|
73
|
+
Primary: 'PRIMARY',
|
|
74
|
+
Waitlist: 'WAITLIST'
|
|
75
|
+
} as const;
|
|
76
|
+
export type PlaySearchDetailDTOAllOfRegistrationsStatusEnum = typeof PlaySearchDetailDTOAllOfRegistrationsStatusEnum[keyof typeof PlaySearchDetailDTOAllOfRegistrationsStatusEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the PlaySearchDetailDTOAllOfRegistrations interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfPlaySearchDetailDTOAllOfRegistrations(value: object): value is PlaySearchDetailDTOAllOfRegistrations {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function PlaySearchDetailDTOAllOfRegistrationsFromJSON(json: any): PlaySearchDetailDTOAllOfRegistrations {
|
|
87
|
+
return PlaySearchDetailDTOAllOfRegistrationsFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function PlaySearchDetailDTOAllOfRegistrationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTOAllOfRegistrations {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
97
|
+
'userId': json['userId'] == null ? undefined : json['userId'],
|
|
98
|
+
'user': json['user'] == null ? undefined : PlaySearchDetailDTOAllOfUserFromJSON(json['user']),
|
|
99
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
100
|
+
'registrationOrder': json['registrationOrder'] == null ? undefined : json['registrationOrder'],
|
|
101
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function PlaySearchDetailDTOAllOfRegistrationsToJSON(json: any): PlaySearchDetailDTOAllOfRegistrations {
|
|
106
|
+
return PlaySearchDetailDTOAllOfRegistrationsToJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function PlaySearchDetailDTOAllOfRegistrationsToJSONTyped(value?: PlaySearchDetailDTOAllOfRegistrations | null, ignoreDiscriminator: boolean = false): any {
|
|
110
|
+
if (value == null) {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
|
|
116
|
+
'id': value['id'],
|
|
117
|
+
'userId': value['userId'],
|
|
118
|
+
'user': PlaySearchDetailDTOAllOfUserToJSON(value['user']),
|
|
119
|
+
'status': value['status'],
|
|
120
|
+
'registrationOrder': value['registrationOrder'],
|
|
121
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -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 PlaySearchDetailDTOAllOfUser
|
|
20
|
+
*/
|
|
21
|
+
export interface PlaySearchDetailDTOAllOfUser {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
32
|
+
*/
|
|
33
|
+
firstName?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
38
|
+
*/
|
|
39
|
+
lastName?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PlaySearchDetailDTOAllOfUser
|
|
44
|
+
*/
|
|
45
|
+
avatarUrl?: string | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PlaySearchDetailDTOAllOfUser interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPlaySearchDetailDTOAllOfUser(value: object): value is PlaySearchDetailDTOAllOfUser {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PlaySearchDetailDTOAllOfUserFromJSON(json: any): PlaySearchDetailDTOAllOfUser {
|
|
56
|
+
return PlaySearchDetailDTOAllOfUserFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PlaySearchDetailDTOAllOfUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchDetailDTOAllOfUser {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
66
|
+
'firstName': json['firstName'] == null ? undefined : json['firstName'],
|
|
67
|
+
'lastName': json['lastName'] == null ? undefined : json['lastName'],
|
|
68
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PlaySearchDetailDTOAllOfUserToJSON(json: any): PlaySearchDetailDTOAllOfUser {
|
|
73
|
+
return PlaySearchDetailDTOAllOfUserToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PlaySearchDetailDTOAllOfUserToJSONTyped(value?: PlaySearchDetailDTOAllOfUser | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
'firstName': value['firstName'],
|
|
85
|
+
'lastName': value['lastName'],
|
|
86
|
+
'avatarUrl': value['avatarUrl'],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { PlaySearchDTO } from './PlaySearchDTO';
|
|
17
|
+
import {
|
|
18
|
+
PlaySearchDTOFromJSON,
|
|
19
|
+
PlaySearchDTOFromJSONTyped,
|
|
20
|
+
PlaySearchDTOToJSON,
|
|
21
|
+
PlaySearchDTOToJSONTyped,
|
|
22
|
+
} from './PlaySearchDTO';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlaySearchListResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface PlaySearchListResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<PlaySearchDTO>}
|
|
33
|
+
* @memberof PlaySearchListResponse
|
|
34
|
+
*/
|
|
35
|
+
data?: Array<PlaySearchDTO>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof PlaySearchListResponse
|
|
40
|
+
*/
|
|
41
|
+
total?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof PlaySearchListResponse
|
|
46
|
+
*/
|
|
47
|
+
page?: number;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof PlaySearchListResponse
|
|
52
|
+
*/
|
|
53
|
+
size?: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the PlaySearchListResponse interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfPlaySearchListResponse(value: object): value is PlaySearchListResponse {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function PlaySearchListResponseFromJSON(json: any): PlaySearchListResponse {
|
|
64
|
+
return PlaySearchListResponseFromJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function PlaySearchListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchListResponse {
|
|
68
|
+
if (json == null) {
|
|
69
|
+
return json;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(PlaySearchDTOFromJSON)),
|
|
74
|
+
'total': json['total'] == null ? undefined : json['total'],
|
|
75
|
+
'page': json['page'] == null ? undefined : json['page'],
|
|
76
|
+
'size': json['size'] == null ? undefined : json['size'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function PlaySearchListResponseToJSON(json: any): PlaySearchListResponse {
|
|
81
|
+
return PlaySearchListResponseToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function PlaySearchListResponseToJSONTyped(value?: PlaySearchListResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(PlaySearchDTOToJSON)),
|
|
92
|
+
'total': value['total'],
|
|
93
|
+
'page': value['page'],
|
|
94
|
+
'size': value['size'],
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
* Status of a player search (Falta1 feature)
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const PlaySearchStatus = {
|
|
21
|
+
Open: 'OPEN',
|
|
22
|
+
Filled: 'FILLED',
|
|
23
|
+
Confirmed: 'CONFIRMED',
|
|
24
|
+
Cancelled: 'CANCELLED',
|
|
25
|
+
Expired: 'EXPIRED'
|
|
26
|
+
} as const;
|
|
27
|
+
export type PlaySearchStatus = typeof PlaySearchStatus[keyof typeof PlaySearchStatus];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export function instanceOfPlaySearchStatus(value: any): boolean {
|
|
31
|
+
for (const key in PlaySearchStatus) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(PlaySearchStatus, key)) {
|
|
33
|
+
if (PlaySearchStatus[key as keyof typeof PlaySearchStatus] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function PlaySearchStatusFromJSON(json: any): PlaySearchStatus {
|
|
42
|
+
return PlaySearchStatusFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function PlaySearchStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlaySearchStatus {
|
|
46
|
+
return json as PlaySearchStatus;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PlaySearchStatusToJSON(value?: PlaySearchStatus | null): any {
|
|
50
|
+
return value as any;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PlaySearchStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PlaySearchStatus {
|
|
54
|
+
return value as PlaySearchStatus;
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -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
|
+
* Status of a player registration
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const RegistrationStatus = {
|
|
21
|
+
Primary: 'PRIMARY',
|
|
22
|
+
Waitlist: 'WAITLIST',
|
|
23
|
+
Confirmed: 'CONFIRMED',
|
|
24
|
+
Cancelled: 'CANCELLED'
|
|
25
|
+
} as const;
|
|
26
|
+
export type RegistrationStatus = typeof RegistrationStatus[keyof typeof RegistrationStatus];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfRegistrationStatus(value: any): boolean {
|
|
30
|
+
for (const key in RegistrationStatus) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(RegistrationStatus, key)) {
|
|
32
|
+
if (RegistrationStatus[key as keyof typeof RegistrationStatus] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function RegistrationStatusFromJSON(json: any): RegistrationStatus {
|
|
41
|
+
return RegistrationStatusFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function RegistrationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RegistrationStatus {
|
|
45
|
+
return json as RegistrationStatus;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function RegistrationStatusToJSON(value?: RegistrationStatus | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function RegistrationStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): RegistrationStatus {
|
|
53
|
+
return value as RegistrationStatus;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -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
|
+
* Status of a tournament subscription
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const SubscriptionStatus = {
|
|
21
|
+
Draft: 'DRAFT',
|
|
22
|
+
Open: 'OPEN',
|
|
23
|
+
Closed: 'CLOSED',
|
|
24
|
+
Confirmed: 'CONFIRMED',
|
|
25
|
+
Active: 'ACTIVE',
|
|
26
|
+
Finished: 'FINISHED',
|
|
27
|
+
Cancelled: 'CANCELLED'
|
|
28
|
+
} as const;
|
|
29
|
+
export type SubscriptionStatus = typeof SubscriptionStatus[keyof typeof SubscriptionStatus];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
export function instanceOfSubscriptionStatus(value: any): boolean {
|
|
33
|
+
for (const key in SubscriptionStatus) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(SubscriptionStatus, key)) {
|
|
35
|
+
if (SubscriptionStatus[key as keyof typeof SubscriptionStatus] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function SubscriptionStatusFromJSON(json: any): SubscriptionStatus {
|
|
44
|
+
return SubscriptionStatusFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function SubscriptionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionStatus {
|
|
48
|
+
return json as SubscriptionStatus;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SubscriptionStatusToJSON(value?: SubscriptionStatus | null): any {
|
|
52
|
+
return value as any;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SubscriptionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): SubscriptionStatus {
|
|
56
|
+
return value as SubscriptionStatus;
|
|
57
|
+
}
|
|
58
|
+
|
package/models/index.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './Check200Response';
|
|
|
22
22
|
export * from './CheckUserExists200Response';
|
|
23
23
|
export * from './ClonePlaySpotRequest';
|
|
24
24
|
export * from './ClubDto';
|
|
25
|
+
export * from './ClubPlace';
|
|
25
26
|
export * from './ClubSearchParams';
|
|
26
27
|
export * from './ClubSearchParamsGeo';
|
|
27
28
|
export * from './ClubSearchParamsPaging';
|
|
@@ -43,11 +44,14 @@ export * from './CreateClubForSuperadminParams';
|
|
|
43
44
|
export * from './CreateClubForSuperadminResponse';
|
|
44
45
|
export * from './CreateClubForSuperadminResponseResult';
|
|
45
46
|
export * from './CreateClubForSuperadminResponseResultAdminUser';
|
|
47
|
+
export * from './CreateClubPlaceRequest';
|
|
46
48
|
export * from './CreateCustomerPaymentConfigDto';
|
|
47
49
|
export * from './CreateDefault500Response';
|
|
48
50
|
export * from './CreateFeatureRequest';
|
|
49
51
|
export * from './CreateFromInvite400Response';
|
|
50
52
|
export * from './CreateInvitationDto';
|
|
53
|
+
export * from './CreatePlayRegistrationRequest';
|
|
54
|
+
export * from './CreatePlaySearchRequest';
|
|
51
55
|
export * from './CreateServiceConfigRequest';
|
|
52
56
|
export * from './CreateShiftRequest';
|
|
53
57
|
export * from './CreateUserNotificationDto';
|
|
@@ -69,6 +73,7 @@ export * from './DeviceDto';
|
|
|
69
73
|
export * from './DeviceState';
|
|
70
74
|
export * from './DeviceType';
|
|
71
75
|
export * from './DominantPlaySide';
|
|
76
|
+
export * from './DominantSide';
|
|
72
77
|
export * from './ErrorResponse';
|
|
73
78
|
export * from './ExpireUnpaidReservationResult';
|
|
74
79
|
export * from './ExpireUnpaidReservations401Response';
|
|
@@ -123,6 +128,20 @@ export * from './PaymentRefund';
|
|
|
123
128
|
export * from './PaymentStatus';
|
|
124
129
|
export * from './PaymentTerms';
|
|
125
130
|
export * from './PlayPrice';
|
|
131
|
+
export * from './PlayRegistration';
|
|
132
|
+
export * from './PlayRegistrationDTO';
|
|
133
|
+
export * from './PlayRegistrationDTOUser';
|
|
134
|
+
export * from './PlayRegistrationListResponse';
|
|
135
|
+
export * from './PlayRegistrationType';
|
|
136
|
+
export * from './PlaySearch';
|
|
137
|
+
export * from './PlaySearchDTO';
|
|
138
|
+
export * from './PlaySearchDTOClubPlace';
|
|
139
|
+
export * from './PlaySearchDetailDTO';
|
|
140
|
+
export * from './PlaySearchDetailDTOAllOfCounts';
|
|
141
|
+
export * from './PlaySearchDetailDTOAllOfRegistrations';
|
|
142
|
+
export * from './PlaySearchDetailDTOAllOfUser';
|
|
143
|
+
export * from './PlaySearchListResponse';
|
|
144
|
+
export * from './PlaySearchStatus';
|
|
126
145
|
export * from './PlaySpot';
|
|
127
146
|
export * from './PlaySpotAvailabilityDetail';
|
|
128
147
|
export * from './PlaySpotDateSummary';
|
|
@@ -148,6 +167,7 @@ export * from './RegisterClub500Response';
|
|
|
148
167
|
export * from './RegisterClubParams';
|
|
149
168
|
export * from './RegisterClubResponse';
|
|
150
169
|
export * from './RegisterClubResponseResult';
|
|
170
|
+
export * from './RegistrationStatus';
|
|
151
171
|
export * from './RentHour';
|
|
152
172
|
export * from './RequestPasswordReset500Response';
|
|
153
173
|
export * from './RequestPasswordResetRequest';
|
|
@@ -176,6 +196,7 @@ export * from './SetAuthCodeDto';
|
|
|
176
196
|
export * from './Shift';
|
|
177
197
|
export * from './Sport';
|
|
178
198
|
export * from './SubscriptionBill';
|
|
199
|
+
export * from './SubscriptionStatus';
|
|
179
200
|
export * from './SuccessResponse';
|
|
180
201
|
export * from './TestNotificationTemplate200Response';
|
|
181
202
|
export * from './TestNotificationTemplateRequest';
|