@jugarhoy/api 1.1.25 → 1.1.27
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/AdminPaymentConfigsApi.ts +37 -0
- package/apis/AdminSubscriptionBillingApi.ts +357 -1
- package/apis/AdminSubscriptionsApi.ts +215 -0
- package/apis/AdminUsersApi.ts +69 -0
- package/apis/AppPlayRegistrationApi.ts +10 -3
- package/apis/BackgroundApi.ts +35 -0
- package/apis/ClubApi.ts +185 -0
- package/apis/ClubPlacesApi.ts +75 -0
- package/apis/TeamsApi.ts +145 -0
- package/apis/index.ts +1 -0
- package/models/ApiAdminPlayPricesPostRequest.ts +2 -3
- package/models/BankCard.ts +109 -0
- package/models/BillingSummaryItemDto.ts +120 -0
- package/models/BulkImportResult.ts +119 -0
- package/models/BulkImportRowError.ts +81 -0
- package/models/BulkMarkBillsPaid200Response.ts +81 -0
- package/models/BulkMarkBillsPaid200ResponseErrorsInner.ts +81 -0
- package/models/ClubMySubscriptionDto.ts +205 -0
- package/models/ClubPlaceRegistrationStatus.ts +91 -0
- package/models/ClubProfileDto.ts +105 -0
- package/models/ClubProfileDtoProfile.ts +227 -0
- package/models/ClubProfileNextMatchDto.ts +128 -0
- package/models/ClubSubscriptionOfferingDto.ts +148 -0
- package/models/CreateCustomerPaymentConfigDto.ts +34 -0
- package/models/CreatePlaySearchRequest.ts +16 -0
- package/models/CreateRecurringGameRequest.ts +41 -1
- package/models/CreateTeamRequest.ts +55 -0
- package/models/CustomerPaymentConfig.ts +35 -0
- package/models/CustomerPaymentConfigDto.ts +35 -0
- package/models/Frequency.ts +3 -1
- package/models/GenerateRecurringGames200Response.ts +73 -0
- package/models/GenerateSubscriptionBillsRequest.ts +14 -5
- package/models/LocationDto.ts +8 -0
- package/models/MarkBillAsPaidRequest.ts +99 -0
- package/models/MyClubClubPlace.ts +128 -0
- package/models/MyClubDefaultLocation.ts +84 -0
- package/models/MyClubDto.ts +177 -0
- package/models/PaymentMethod.ts +2 -1
- package/models/PlayPrice.ts +3 -4
- package/models/PlayRegistrationDTO.ts +15 -0
- package/models/PlayRegistrationDTOPlaySearch.ts +137 -0
- package/models/PlayRegistrationDTOPlaySearchClubPlace.ts +81 -0
- package/models/PlaySearchDTO.ts +8 -0
- package/models/PlaySearchDetailDTO.ts +8 -0
- package/models/PlaySearchType.ts +3 -1
- package/models/PlaySubscription.ts +48 -0
- package/models/PlaySubscriptionCreateDto.ts +48 -0
- package/models/PlaySubscriptionListDto.ts +8 -0
- package/models/PlaySubscriptionType.ts +2 -1
- package/models/RecurringGame.ts +8 -0
- package/models/RecurringGameResponse.ts +16 -0
- package/models/RegisterClubParams.ts +16 -0
- package/models/RegisterForPlaySearchRequest.ts +73 -0
- package/models/Sport.ts +8 -0
- package/models/SubscriptionBill.ts +84 -1
- package/models/SubscriptionBillItemDto.ts +308 -0
- package/models/SubscriptionBillPageDto.ts +101 -0
- package/models/SubscriptionMemberDto.ts +134 -0
- package/models/SubscriptionMembersPageDto.ts +101 -0
- package/models/TeamFeedItemResponse.ts +8 -0
- package/models/TeamMemberResponse.ts +16 -0
- package/models/TeamPreviewResponse.ts +209 -0
- package/models/TeamPreviewResponseCoachesInner.ts +73 -0
- package/models/TeamResponse.ts +32 -0
- package/models/TeamType.ts +3 -2
- package/models/UpdateMemberPaymentConfigRequest.ts +65 -0
- package/models/UpdateRecurringGameRequest.ts +8 -0
- package/models/UpdateTeamRequest.ts +32 -0
- package/models/UploadBillReceipt200Response.ts +65 -0
- package/models/UserDto.ts +3 -4
- package/models/index.ts +28 -0
- package/package.json +1 -1
- package/runtime.ts +1 -1
|
@@ -0,0 +1,128 @@
|
|
|
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 MyClubClubPlace
|
|
20
|
+
*/
|
|
21
|
+
export interface MyClubClubPlace {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MyClubClubPlace
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Google Maps Place ID
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MyClubClubPlace
|
|
32
|
+
*/
|
|
33
|
+
placeId: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MyClubClubPlace
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof MyClubClubPlace
|
|
44
|
+
*/
|
|
45
|
+
address: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof MyClubClubPlace
|
|
50
|
+
*/
|
|
51
|
+
latitude: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof MyClubClubPlace
|
|
56
|
+
*/
|
|
57
|
+
longitude: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof MyClubClubPlace
|
|
62
|
+
*/
|
|
63
|
+
photoUrls: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof MyClubClubPlace
|
|
68
|
+
*/
|
|
69
|
+
rating?: number | null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the MyClubClubPlace interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfMyClubClubPlace(value: object): value is MyClubClubPlace {
|
|
76
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
77
|
+
if (!('placeId' in value) || value['placeId'] === undefined) return false;
|
|
78
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
79
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
80
|
+
if (!('latitude' in value) || value['latitude'] === undefined) return false;
|
|
81
|
+
if (!('longitude' in value) || value['longitude'] === undefined) return false;
|
|
82
|
+
if (!('photoUrls' in value) || value['photoUrls'] === undefined) return false;
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function MyClubClubPlaceFromJSON(json: any): MyClubClubPlace {
|
|
87
|
+
return MyClubClubPlaceFromJSONTyped(json, false);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function MyClubClubPlaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): MyClubClubPlace {
|
|
91
|
+
if (json == null) {
|
|
92
|
+
return json;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'id': json['id'],
|
|
97
|
+
'placeId': json['placeId'],
|
|
98
|
+
'name': json['name'],
|
|
99
|
+
'address': json['address'],
|
|
100
|
+
'latitude': json['latitude'],
|
|
101
|
+
'longitude': json['longitude'],
|
|
102
|
+
'photoUrls': json['photoUrls'],
|
|
103
|
+
'rating': json['rating'] == null ? undefined : json['rating'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function MyClubClubPlaceToJSON(json: any): MyClubClubPlace {
|
|
108
|
+
return MyClubClubPlaceToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function MyClubClubPlaceToJSONTyped(value?: MyClubClubPlace | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'id': value['id'],
|
|
119
|
+
'placeId': value['placeId'],
|
|
120
|
+
'name': value['name'],
|
|
121
|
+
'address': value['address'],
|
|
122
|
+
'latitude': value['latitude'],
|
|
123
|
+
'longitude': value['longitude'],
|
|
124
|
+
'photoUrls': value['photoUrls'],
|
|
125
|
+
'rating': value['rating'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface MyClubDefaultLocation
|
|
20
|
+
*/
|
|
21
|
+
export interface MyClubDefaultLocation {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof MyClubDefaultLocation
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof MyClubDefaultLocation
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof MyClubDefaultLocation
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the MyClubDefaultLocation interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfMyClubDefaultLocation(value: object): value is MyClubDefaultLocation {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
48
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function MyClubDefaultLocationFromJSON(json: any): MyClubDefaultLocation {
|
|
53
|
+
return MyClubDefaultLocationFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function MyClubDefaultLocationFromJSONTyped(json: any, ignoreDiscriminator: boolean): MyClubDefaultLocation {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'code': json['code'],
|
|
64
|
+
'name': json['name'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function MyClubDefaultLocationToJSON(json: any): MyClubDefaultLocation {
|
|
69
|
+
return MyClubDefaultLocationToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function MyClubDefaultLocationToJSONTyped(value?: MyClubDefaultLocation | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'code': value['code'],
|
|
81
|
+
'name': value['name'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Jugar Hoy - API
|
|
5
|
+
* API documentation for Jugar Hoy application
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.5.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { Sport } from './Sport';
|
|
17
|
+
import {
|
|
18
|
+
SportFromJSON,
|
|
19
|
+
SportFromJSONTyped,
|
|
20
|
+
SportToJSON,
|
|
21
|
+
SportToJSONTyped,
|
|
22
|
+
} from './Sport';
|
|
23
|
+
import type { MyClubDefaultLocation } from './MyClubDefaultLocation';
|
|
24
|
+
import {
|
|
25
|
+
MyClubDefaultLocationFromJSON,
|
|
26
|
+
MyClubDefaultLocationFromJSONTyped,
|
|
27
|
+
MyClubDefaultLocationToJSON,
|
|
28
|
+
MyClubDefaultLocationToJSONTyped,
|
|
29
|
+
} from './MyClubDefaultLocation';
|
|
30
|
+
import type { MyClubClubPlace } from './MyClubClubPlace';
|
|
31
|
+
import {
|
|
32
|
+
MyClubClubPlaceFromJSON,
|
|
33
|
+
MyClubClubPlaceFromJSONTyped,
|
|
34
|
+
MyClubClubPlaceToJSON,
|
|
35
|
+
MyClubClubPlaceToJSONTyped,
|
|
36
|
+
} from './MyClubClubPlace';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface MyClubDto
|
|
42
|
+
*/
|
|
43
|
+
export interface MyClubDto {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof MyClubDto
|
|
48
|
+
*/
|
|
49
|
+
customerId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Club code, used for navigation
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof MyClubDto
|
|
54
|
+
*/
|
|
55
|
+
customerCode: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof MyClubDto
|
|
60
|
+
*/
|
|
61
|
+
customerName: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof MyClubDto
|
|
66
|
+
*/
|
|
67
|
+
avatarUrl?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof MyClubDto
|
|
72
|
+
*/
|
|
73
|
+
headerUrl?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {Array<Sport>}
|
|
77
|
+
* @memberof MyClubDto
|
|
78
|
+
*/
|
|
79
|
+
sports: Array<Sport>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof MyClubDto
|
|
84
|
+
*/
|
|
85
|
+
active: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Current user's role in this club
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof MyClubDto
|
|
90
|
+
*/
|
|
91
|
+
userRole: MyClubDtoUserRoleEnum;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {MyClubClubPlace}
|
|
95
|
+
* @memberof MyClubDto
|
|
96
|
+
*/
|
|
97
|
+
clubPlace?: MyClubClubPlace;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {MyClubDefaultLocation}
|
|
101
|
+
* @memberof MyClubDto
|
|
102
|
+
*/
|
|
103
|
+
defaultLocation?: MyClubDefaultLocation;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @export
|
|
109
|
+
*/
|
|
110
|
+
export const MyClubDtoUserRoleEnum = {
|
|
111
|
+
Admin: 'ADMIN',
|
|
112
|
+
Coach: 'COACH',
|
|
113
|
+
Member: 'MEMBER'
|
|
114
|
+
} as const;
|
|
115
|
+
export type MyClubDtoUserRoleEnum = typeof MyClubDtoUserRoleEnum[keyof typeof MyClubDtoUserRoleEnum];
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Check if a given object implements the MyClubDto interface.
|
|
120
|
+
*/
|
|
121
|
+
export function instanceOfMyClubDto(value: object): value is MyClubDto {
|
|
122
|
+
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
123
|
+
if (!('customerCode' in value) || value['customerCode'] === undefined) return false;
|
|
124
|
+
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
125
|
+
if (!('sports' in value) || value['sports'] === undefined) return false;
|
|
126
|
+
if (!('active' in value) || value['active'] === undefined) return false;
|
|
127
|
+
if (!('userRole' in value) || value['userRole'] === undefined) return false;
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export function MyClubDtoFromJSON(json: any): MyClubDto {
|
|
132
|
+
return MyClubDtoFromJSONTyped(json, false);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function MyClubDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): MyClubDto {
|
|
136
|
+
if (json == null) {
|
|
137
|
+
return json;
|
|
138
|
+
}
|
|
139
|
+
return {
|
|
140
|
+
|
|
141
|
+
'customerId': json['customerId'],
|
|
142
|
+
'customerCode': json['customerCode'],
|
|
143
|
+
'customerName': json['customerName'],
|
|
144
|
+
'avatarUrl': json['avatarUrl'] == null ? undefined : json['avatarUrl'],
|
|
145
|
+
'headerUrl': json['headerUrl'] == null ? undefined : json['headerUrl'],
|
|
146
|
+
'sports': ((json['sports'] as Array<any>).map(SportFromJSON)),
|
|
147
|
+
'active': json['active'],
|
|
148
|
+
'userRole': json['userRole'],
|
|
149
|
+
'clubPlace': json['clubPlace'] == null ? undefined : MyClubClubPlaceFromJSON(json['clubPlace']),
|
|
150
|
+
'defaultLocation': json['defaultLocation'] == null ? undefined : MyClubDefaultLocationFromJSON(json['defaultLocation']),
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function MyClubDtoToJSON(json: any): MyClubDto {
|
|
155
|
+
return MyClubDtoToJSONTyped(json, false);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function MyClubDtoToJSONTyped(value?: MyClubDto | null, ignoreDiscriminator: boolean = false): any {
|
|
159
|
+
if (value == null) {
|
|
160
|
+
return value;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
return {
|
|
164
|
+
|
|
165
|
+
'customerId': value['customerId'],
|
|
166
|
+
'customerCode': value['customerCode'],
|
|
167
|
+
'customerName': value['customerName'],
|
|
168
|
+
'avatarUrl': value['avatarUrl'],
|
|
169
|
+
'headerUrl': value['headerUrl'],
|
|
170
|
+
'sports': ((value['sports'] as Array<any>).map(SportToJSON)),
|
|
171
|
+
'active': value['active'],
|
|
172
|
+
'userRole': value['userRole'],
|
|
173
|
+
'clubPlace': MyClubClubPlaceToJSON(value['clubPlace']),
|
|
174
|
+
'defaultLocation': MyClubDefaultLocationToJSON(value['defaultLocation']),
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
|
package/models/PaymentMethod.ts
CHANGED
|
@@ -22,7 +22,8 @@ export const PaymentMethod = {
|
|
|
22
22
|
Mercadopago: 'MERCADOPAGO',
|
|
23
23
|
Qr: 'QR',
|
|
24
24
|
BankTransfer: 'BANK_TRANSFER',
|
|
25
|
-
Subscription: 'SUBSCRIPTION'
|
|
25
|
+
Subscription: 'SUBSCRIPTION',
|
|
26
|
+
Tarjeta: 'TARJETA'
|
|
26
27
|
} as const;
|
|
27
28
|
export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
|
|
28
29
|
|
package/models/PlayPrice.ts
CHANGED
|
@@ -38,11 +38,11 @@ export interface PlayPrice {
|
|
|
38
38
|
*/
|
|
39
39
|
name: string;
|
|
40
40
|
/**
|
|
41
|
-
* Duration in minutes
|
|
41
|
+
* Duration in minutes. Null for subscription prices.
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof PlayPrice
|
|
44
44
|
*/
|
|
45
|
-
duration
|
|
45
|
+
duration?: number | null;
|
|
46
46
|
/**
|
|
47
47
|
* Price amount
|
|
48
48
|
* @type {number}
|
|
@@ -92,7 +92,6 @@ export type PlayPriceChargeOnEnum = typeof PlayPriceChargeOnEnum[keyof typeof Pl
|
|
|
92
92
|
export function instanceOfPlayPrice(value: object): value is PlayPrice {
|
|
93
93
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
94
94
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
95
|
-
if (!('duration' in value) || value['duration'] === undefined) return false;
|
|
96
95
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
97
96
|
if (!('playSpotIds' in value) || value['playSpotIds'] === undefined) return false;
|
|
98
97
|
if (!('playSpotShiftIds' in value) || value['playSpotShiftIds'] === undefined) return false;
|
|
@@ -114,7 +113,7 @@ export function PlayPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
114
113
|
'id': json['id'],
|
|
115
114
|
'customerId': json['customerId'] == null ? undefined : json['customerId'],
|
|
116
115
|
'name': json['name'],
|
|
117
|
-
'duration': json['duration'],
|
|
116
|
+
'duration': json['duration'] == null ? undefined : json['duration'],
|
|
118
117
|
'price': json['price'],
|
|
119
118
|
'playSpotIds': json['playSpotIds'],
|
|
120
119
|
'playSpotShiftIds': json['playSpotShiftIds'],
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PlayRegistrationDTOPlaySearch } from './PlayRegistrationDTOPlaySearch';
|
|
17
|
+
import {
|
|
18
|
+
PlayRegistrationDTOPlaySearchFromJSON,
|
|
19
|
+
PlayRegistrationDTOPlaySearchFromJSONTyped,
|
|
20
|
+
PlayRegistrationDTOPlaySearchToJSON,
|
|
21
|
+
PlayRegistrationDTOPlaySearchToJSONTyped,
|
|
22
|
+
} from './PlayRegistrationDTOPlaySearch';
|
|
16
23
|
import type { RegistrationStatus } from './RegistrationStatus';
|
|
17
24
|
import {
|
|
18
25
|
RegistrationStatusFromJSON,
|
|
@@ -107,6 +114,12 @@ export interface PlayRegistrationDTO {
|
|
|
107
114
|
* @memberof PlayRegistrationDTO
|
|
108
115
|
*/
|
|
109
116
|
createdAt?: Date;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {PlayRegistrationDTOPlaySearch}
|
|
120
|
+
* @memberof PlayRegistrationDTO
|
|
121
|
+
*/
|
|
122
|
+
playSearch?: PlayRegistrationDTOPlaySearch | null;
|
|
110
123
|
}
|
|
111
124
|
|
|
112
125
|
|
|
@@ -148,6 +161,7 @@ export function PlayRegistrationDTOFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
148
161
|
'companionNames': json['companionNames'],
|
|
149
162
|
'displayName': json['displayName'],
|
|
150
163
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
164
|
+
'playSearch': json['playSearch'] == null ? undefined : PlayRegistrationDTOPlaySearchFromJSON(json['playSearch']),
|
|
151
165
|
};
|
|
152
166
|
}
|
|
153
167
|
|
|
@@ -173,6 +187,7 @@ export function PlayRegistrationDTOToJSONTyped(value?: PlayRegistrationDTO | nul
|
|
|
173
187
|
'companionNames': value['companionNames'],
|
|
174
188
|
'displayName': value['displayName'],
|
|
175
189
|
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
190
|
+
'playSearch': PlayRegistrationDTOPlaySearchToJSON(value['playSearch']),
|
|
176
191
|
};
|
|
177
192
|
}
|
|
178
193
|
|
|
@@ -0,0 +1,137 @@
|
|
|
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 { PlayRegistrationDTOPlaySearchClubPlace } from './PlayRegistrationDTOPlaySearchClubPlace';
|
|
17
|
+
import {
|
|
18
|
+
PlayRegistrationDTOPlaySearchClubPlaceFromJSON,
|
|
19
|
+
PlayRegistrationDTOPlaySearchClubPlaceFromJSONTyped,
|
|
20
|
+
PlayRegistrationDTOPlaySearchClubPlaceToJSON,
|
|
21
|
+
PlayRegistrationDTOPlaySearchClubPlaceToJSONTyped,
|
|
22
|
+
} from './PlayRegistrationDTOPlaySearchClubPlace';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PlayRegistrationDTOPlaySearch
|
|
28
|
+
*/
|
|
29
|
+
export interface PlayRegistrationDTOPlaySearch {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
34
|
+
*/
|
|
35
|
+
id?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
40
|
+
*/
|
|
41
|
+
sport?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
46
|
+
*/
|
|
47
|
+
type?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
52
|
+
*/
|
|
53
|
+
tournamentName?: string | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
58
|
+
*/
|
|
59
|
+
matchDateTime?: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
64
|
+
*/
|
|
65
|
+
status?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
70
|
+
*/
|
|
71
|
+
quota?: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
76
|
+
*/
|
|
77
|
+
quotaFilledCount?: number;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {PlayRegistrationDTOPlaySearchClubPlace}
|
|
81
|
+
* @memberof PlayRegistrationDTOPlaySearch
|
|
82
|
+
*/
|
|
83
|
+
clubPlace?: PlayRegistrationDTOPlaySearchClubPlace | null;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the PlayRegistrationDTOPlaySearch interface.
|
|
88
|
+
*/
|
|
89
|
+
export function instanceOfPlayRegistrationDTOPlaySearch(value: object): value is PlayRegistrationDTOPlaySearch {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function PlayRegistrationDTOPlaySearchFromJSON(json: any): PlayRegistrationDTOPlaySearch {
|
|
94
|
+
return PlayRegistrationDTOPlaySearchFromJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function PlayRegistrationDTOPlaySearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationDTOPlaySearch {
|
|
98
|
+
if (json == null) {
|
|
99
|
+
return json;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
|
|
103
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
104
|
+
'sport': json['sport'] == null ? undefined : json['sport'],
|
|
105
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
106
|
+
'tournamentName': json['tournamentName'] == null ? undefined : json['tournamentName'],
|
|
107
|
+
'matchDateTime': json['matchDateTime'] == null ? undefined : (new Date(json['matchDateTime'])),
|
|
108
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
109
|
+
'quota': json['quota'] == null ? undefined : json['quota'],
|
|
110
|
+
'quotaFilledCount': json['quotaFilledCount'] == null ? undefined : json['quotaFilledCount'],
|
|
111
|
+
'clubPlace': json['clubPlace'] == null ? undefined : PlayRegistrationDTOPlaySearchClubPlaceFromJSON(json['clubPlace']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function PlayRegistrationDTOPlaySearchToJSON(json: any): PlayRegistrationDTOPlaySearch {
|
|
116
|
+
return PlayRegistrationDTOPlaySearchToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function PlayRegistrationDTOPlaySearchToJSONTyped(value?: PlayRegistrationDTOPlaySearch | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': value['id'],
|
|
127
|
+
'sport': value['sport'],
|
|
128
|
+
'type': value['type'],
|
|
129
|
+
'tournamentName': value['tournamentName'],
|
|
130
|
+
'matchDateTime': value['matchDateTime'] == null ? undefined : ((value['matchDateTime']).toISOString()),
|
|
131
|
+
'status': value['status'],
|
|
132
|
+
'quota': value['quota'],
|
|
133
|
+
'quotaFilledCount': value['quotaFilledCount'],
|
|
134
|
+
'clubPlace': PlayRegistrationDTOPlaySearchClubPlaceToJSON(value['clubPlace']),
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -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 PlayRegistrationDTOPlaySearchClubPlace
|
|
20
|
+
*/
|
|
21
|
+
export interface PlayRegistrationDTOPlaySearchClubPlace {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PlayRegistrationDTOPlaySearchClubPlace
|
|
26
|
+
*/
|
|
27
|
+
id?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PlayRegistrationDTOPlaySearchClubPlace
|
|
32
|
+
*/
|
|
33
|
+
name?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof PlayRegistrationDTOPlaySearchClubPlace
|
|
38
|
+
*/
|
|
39
|
+
address?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the PlayRegistrationDTOPlaySearchClubPlace interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfPlayRegistrationDTOPlaySearchClubPlace(value: object): value is PlayRegistrationDTOPlaySearchClubPlace {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function PlayRegistrationDTOPlaySearchClubPlaceFromJSON(json: any): PlayRegistrationDTOPlaySearchClubPlace {
|
|
50
|
+
return PlayRegistrationDTOPlaySearchClubPlaceFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function PlayRegistrationDTOPlaySearchClubPlaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PlayRegistrationDTOPlaySearchClubPlace {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
60
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
61
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function PlayRegistrationDTOPlaySearchClubPlaceToJSON(json: any): PlayRegistrationDTOPlaySearchClubPlace {
|
|
66
|
+
return PlayRegistrationDTOPlaySearchClubPlaceToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PlayRegistrationDTOPlaySearchClubPlaceToJSONTyped(value?: PlayRegistrationDTOPlaySearchClubPlace | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'address': value['address'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|